1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a5e884b4-0cbf-413b-a768-4f3857e714c4",e._sentryDebugIdIdentifier="sentry-dbid-a5e884b4-0cbf-413b-a768-4f3857e714c4")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1196],{5492:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>tb});var n=a(37876),s=a(78703),i=a(97135),l=a(53849),r=a(93471),o=a(64525),d=a(89099),c=a(14232),u=a(88992),x=a(15380),m=a(15240),p=a(90869),y=a(39091),h=a(15246);let f=y.Ik().shape({body:y.Yj().required()}).required(),g=y.Ik().shape({key:y.Yj().required(),body:y.Yj().required()}).required(),v=y.Ik().shape({key:y.Yj().required(),label:y.Yj().required()}).required();y.Ik().shape({key:y.Yj().required(),label:y.Yj().required()}).required(),y.Ik().shape({value:y.Yj().required(),label:y.Yj().required()}).required();let b=y.Ik().shape({question:f.required()}),j=y.Ik().shape({question:f.required(),start:y.ai().required(),end:y.ai().required(),step:y.ai().required()}).required(),A=y.Ik().shape({title:f.required(),questions:y.YO().of(g).required(),start:y.ai().required(),end:y.ai().required(),step:y.ai().required()}).required(),w=y.Ik().shape({question:f.required("Question body is required"),options:y.YO().of(v).required().min(1)}).required(),F=y.Ik().shape({title:f.required(),questions:y.YO().of(f).required().min(1),options:y.YO().of(v).required().min(1)}).required(),B=y.Ik().shape({question:f.required(),options:y.YO().of(v).required().min(1)}).required(),L=e=>e===h.FeedbackQuestionTypes.TEXT||e===h.FeedbackQuestionTypes.TEXT_MULTILINE?b:e===h.FeedbackQuestionTypes.RATING?j:e===h.FeedbackQuestionTypes.RATING_GRID?A:e===h.FeedbackQuestionTypes.SINGLE_SELECT?w:e===h.FeedbackQuestionTypes.SINGLE_SELECT_GRID?F:B,C=y.gl().test("check-feedback-question-structure-type","Invalid feedback question structure type",e=>(L(e.type).validateSync(e.data),y.Ik().shape({id:y.Yj().uuid().required(),type:y.Yj().oneOf(Object.values(h.FeedbackQuestionTypes)).required()}).required())),k=y.Ik({name:y.Yj().required().max(25,"Feedback cycle name must be less than 25 characters"),description:y.Yj(),startDate:y.p6().required(),endDate:y.p6().required(),reviewerRevieweeMapping:y.YO().of(y.Ik().shape({recipient_email:y.Yj().email().required(),reviewer_emails:y.YO().of(y.Yj().email()).required()}).required()),reviewObservers:y.YO().of(y.Yj()),anonymous:y.zM(),questions:y.YO().of(C.required()).required(),metaDefaultSelfFeedback:y.zM(),metaDefaultPeerFeedback:y.zM(),metaDefaultManagerFeedback:y.zM(),metaDefaultReporteeFeedback:y.zM()});var q=a(21495),T=a(64195),S=a(17271),M=a(8840),R=a(43033),Q=a(67840),E=a(2426),_=a(98922),I=a(718),D=a(73255),P=a(84340),z=a(11290),Z=a(11355),G=a(83910),N=a(54347),W=a(6504),O=a(98583),U=a(59060);let H=(e,t,a)=>{let{setError:n,clearErrors:s}=(0,u.xW)(),i=L(a);return{validateOptions:()=>{try{i.validateSyncAt("options",t),s("questions.".concat(e,".data.options"))}catch(t){n("questions.".concat(e,".data.options"),{type:"manual",message:"At-least 1 option is required"})}},validateQuestion:()=>{try{i.validateSyncAt("question",t),s("questions.".concat(e,".data.question"))}catch(t){n("questions.".concat(e,".data.question"),{type:"manual",message:"This field is required"})}},validateQuestions:()=>{try{i.validateSyncAt("questions",t),s("questions.".concat(e,".data.questions"))}catch(t){n("questions.".concat(e,".data.questions"),{type:"manual",message:"At-least 1 question is required"})}},validateTitle:()=>{try{i.validateSyncAt("title",t),s("questions.".concat(e,".data.title"))}catch(t){n("questions.".concat(e,".data.title"),{type:"manual",message:"This field is required"})}}}},Y={[h.FeedbackQuestionTypes.TEXT]:["validateQuestion"],[h.FeedbackQuestionTypes.TEXT_MULTILINE]:["validateQuestion"],[h.FeedbackQuestionTypes.SINGLE_SELECT]:["validateQuestion","validateOptions"],[h.FeedbackQuestionTypes.SINGLE_SELECT_GRID]:["validateOptions","validateQuestions","validateTitle"],[h.FeedbackQuestionTypes.MULTIPLE_CHOICE]:["validateOptions","validateQuestion"],[h.FeedbackQuestionTypes.RATING]:["validateQuestion"],[h.FeedbackQuestionTypes.RATING_GRID]:["validateTitle","validateQuestions"]},V=new Set(["name","description","startDate","endDate","reviewObservers","reviewerRevieweeMapping","anonymous"]),X=()=>{let e=(0,R.useDispatch)(),t=(0,d.useRouter)(),{addModal:a,setModalLoading:s}=(0,G.hS)(),{userId:i}=(0,N.useAuth)(),l=(0,R.useSelector)(e=>e.feedbackCycle.activeQuestionnaire),r=(0,R.useSelector)(e=>e.feedbackCycle.activeFeedbackCycle),o=(0,Q.A)(),{watch:x,formState:{dirtyFields:m}}=(0,u.xW)(),p=(null==r?void 0:r.state)===h.FeedbackCycleState.PUBLISHED,y=(()=>{let{watch:e,setError:t,clearErrors:a,formState:{errors:n}}=(0,u.xW)(),s=e("questions"),i=(0,c.useMemo)(()=>({validateOptions:(e,n,s)=>{try{s.validateSyncAt("options",n),a("questions.".concat(e,".data.options"))}catch(a){t("questions.".concat(e,".data.options"),{type:"manual",message:"At-least 1 option is required"})}},validateQuestions:(e,n,s)=>{try{if(s.validateSyncAt("questions",n),!n.questions.length)throw Error("atleast 1 sub question is required");a("questions.".concat(e,".data.questions"))}catch(a){t("questions.".concat(e,".data.questions"),{type:"manual",message:"At-least 1 question is required"})}},validateQuestion:(e,n,s)=>{try{s.validateSyncAt("question",n),a("questions.".concat(e,".data.question"))}catch(a){t("questions.".concat(e,".data.question"),{type:"manual",message:"This field is required"})}},validateTitle:(e,n,s)=>{try{s.validateSyncAt("title",n),a("questions.".concat(e,".data.title"))}catch(a){t("questions.".concat(e,".data.title"),{type:"manual",message:"This field is required"})}}}),[a,t]);return(0,c.useCallback)(()=>{var e;
1return(null==s||s.forEach((e,t)=>{let a=L(e.type);Y[e.type].map(n=>i[n](t,e.data,a))}),n&&(null==n?void 0:n.questions)&&Array.isArray(null==n?void 0:n.questions))?null==n||null==(e=n.questions)?void 0:e.map((e,t)=>null!==e?t:null).filter(e=>null!==e):[]},[n,s,i])})(),f=(()=>{let e=(0,Q.A)(),t=document.getElementById("questions-wrapper"),[a,n]=(0,c.useState)(null);return(0,c.useEffect)(()=>{let s;if(null!==a){let i=t.children[a];i.scrollIntoView({behavior:"smooth"}),i.style.border="1px solid ".concat(e.colors.error.dark),s=setTimeout(()=>{i.style.border="",n(null)},2e3)}return()=>clearTimeout(s)},[a,null==t?void 0:t.children,e.colors.error.dark]),(0,c.useCallback)(e=>{n(e)},[])})(),g=x(),v=Object.keys(m).some(e=>V.has(e)&&(0,U.gO)(m[e])),b=!(0,D.a)(null==l?void 0:l.questions,g.questions)||!(0,D.a)(null==l?void 0:l.recipient_reviewer_mappings,g.reviewerRevieweeMapping),j=v||b,A=(0,W.useBoolState)(!1),w=(0,W.useBoolState)(!1),F=(0,W.useBoolState)(!1),B=A.value?(0,n.jsxs)(n.Fragment,{children:["Saving draft ",(0,n.jsx)(_.A,{size:24,color:"inherit"})]}):"Save draft",C=F.value?(0,n.jsxs)(n.Fragment,{children:["Publishing feedback cycle ",(0,n.jsx)(_.A,{size:24,color:"inherit"})]}):"Publish feedback cycle",k=w.value?(0,n.jsxs)(n.Fragment,{children:["Deleting feedback cycle ",(0,n.jsx)(_.A,{size:24,color:"inherit"})]}):"Delete feedback cycle",{enqueueSnackbar:q}=(0,I.useSnackbar)(),S=(0,c.useCallback)((e,t)=>{q(t?e===h.FeedbackCycleState.DRAFT?"Form details saved successfully":"Form published successfully":"Unable to save details",{variant:t?"success":"error",autoHideDuration:3e3})},[q]),M=(0,c.useCallback)(async t=>{let a=t===h.FeedbackCycleState.PUBLISHED;t===h.FeedbackCycleState.DRAFT&&A.set(!0),a&&F.set(!0);let n=y();if(n.length){A.set(!1),F.set(!1),f(n[0]);return}let s=!0;b&&await e((0,O.pI)({feedback_cycle_id:r.id,questionnaire_id:l.id,name:l.name,description:l.description||"",state:l.state,allow_anonymous_reviews:l.allow_anonymous_reviews,is_deleted:l.is_deleted,questions:g.questions,updated_by:i,recipient_reviewer_mappings:g.reviewerRevieweeMapping})).then(e=>{"fulfilled"!==e.meta.requestStatus&&(s=!1)}),(v||a)&&await e((0,O.Rv)({feedback_cycle_id:r.id,start_date:g.startDate,end_date:g.endDate,review_observers:g.reviewObservers,updated_by:i,description:g.description,name:g.name,state:t})).then(e=>{"fulfilled"!==e.meta.requestStatus&&(s=!1)}),A.set(!1),F.set(!1),S(t,s)},[null==r?void 0:r.id,e,f,F,A,v,b,null==l?void 0:l.allow_anonymous_reviews,null==l?void 0:l.description,null==l?void 0:l.id,null==l?void 0:l.is_deleted,null==l?void 0:l.name,null==l?void 0:l.state,S,i,y,g.description,g.endDate,g.name,g.questions,g.reviewObservers,g.reviewerRevieweeMapping,g.startDate]),H=(0,c.useCallback)(()=>{a({title:"Delete ".concat(g.name,"?"),body:(0,n.jsx)(T.FlexBox,{col:!0,gap1:!0,maxWidth:"600px",children:(0,n.jsxs)(P.Line,{children:["This will delete feedback cycle ",(0,n.jsxs)(P.Line,{bold:!0,children:[g.name," "]})]})}),actions:{confirmBody:"Delete",confirmType:"primary",async confirm(a){s(a.key),w.set(!0),await e((0,O.pk)({feedback_cycle_id:r.id,user_id:i})).then(()=>{t.replace(Z.ROUTES.GROWTH.FEEDBACK_CYCLE.LIST.PATH)}),w.set(!1),(0,z.track)("FEEDBACK_CYCLE_DELETED")}}})},[a,null==r?void 0:r.id,e,w,t,s,i,g.name]),X=(0,c.useCallback)(()=>{a({title:"Publish ".concat(g.name,"?"),body:(0,n.jsx)(T.FlexBox,{col:!0,gap1:!0,maxWidth:"600px",children:(0,n.jsxs)(P.Line,{children:["This will publish feedback cycle ",(0,n.jsxs)(P.Line,{bold:!0,children:[g.name," "]})," ","and every participant will be notified."]})}),actions:{confirmBody:"Publish",confirmType:"primary",async confirm(e){s(e.key),await M(h.FeedbackCycleState.PUBLISHED),t.replace(Z.ROUTES.GROWTH.FEEDBACK_CYCLE.LIST.PATH),(0,z.track)("FEEDBACK_CYCLE_PUBLISHED")}}})},[a,t,M,s,g.name]);return(0,n.jsxs)(T.FlexBox,{gap1:!0,"data-sentry-element":"FlexBox","data-sentry-component":"FormActions","data-sentry-source-file":"FormActions.tsx",children:[(0,n.jsx)(E.A,{sx:{fontWeight:"bold",color:o.colors.info.main,bgcolor:o.colors.info.light,":hover":{bgcolor:o.colors.info.lighter}},onClick:()=>M(h.FeedbackCycleState.DRAFT),disabled:p||!j||A.value,"data-sentry-element":"Button","data-sentry-source-file":"FormActions.tsx",children:(0,n.jsx)(T.FlexBox,{alignCenter:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"FormActions.tsx",children:B})}),(0,n.jsx)(E.A,{sx:{fontWeight:"bold",color:o.colors.success.main,bgcolor:o.colors.success.light,":hover":{bgcolor:o.colors.success.lighter}},onClick:X,disabled:p||F.value,"data-sentry-element":"Button","data-sentry-source-file":"FormActions.tsx",children:(0,n.jsx)(T.FlexBox,{alignCenter:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"FormActions.tsx",children:C})}),(0,n.jsx)(E.A,{sx:{ml:"auto",fontWeight:"bold",color:o.colors.warning.dark,border:"1px solid",borderColor:o.colors.warning.light,":hover":{bgcolor:o.colors.warning.lighter}},onClick:H,"data-sentry-element":"Button","data-sentry-source-file":"FormActions.tsx",children:(0,n.jsx)(T.FlexBox,{alignCenter:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"FormActions.tsx",children:k})})]})};var K=a(16819),J=a(74564),$=a(17808),ee=a(49582);function et(){return(et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let ea=function(e){return c.createElement("svg",et({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},e),c.createElement("path",{d:"m316.23 95.72 5.08 7.32 8.54 2.57-5.41 7.09.2 8.91-8.41-2.95-8.41 2.95.2-8.91-5.4-7.09 8.54-2.57 5.07-7.32zM141.15 220.47l5.07 7.33 8.54 2.56-5.4 7.09.2 8.91-8.41-2.94-8.42 2.94.21-8.91-5.41-7.09 8.54-2.56 5.08-7.33zm
161.8 80.59 2.54 3.66 4.27 1.28-2.7 3.55.1 4.45-4.21-1.47-4.21 1.47.1-4.45-2.69-3.55 4.26-1.28 2.54-3.66zm162.71-90.84 2.54 3.67 4.26 1.28-2.7 3.54.11 4.46-4.21-1.47-4.21 1.47.1-4.46-2.7-3.54 4.27-1.28 2.54-3.67zM286.98 80.45l2.54 3.66 4.27 1.28-2.7 3.55.1 4.46-4.21-1.48-4.2 1.48.1-4.46-2.7-3.55 4.27-1.28 2.53-3.66z",style:{fill:"#7e57c2"}}),c.createElement("path",{d:"M80.44 356.63s-22.11 39.1-22.12 39.13c-3.56 7.88-6.53 14.86-7.73 18.61a.14.14 0 0 0 0 .06 6 6 0 0 0-.51 2.7s0 .05 0 .07c1.63 2.64 63.81 32.86 66.33 33.18s3.65-6.84 2.17-9.94-20.12-25.31-20.12-25.31l21.71-39.25Z",style:{fill:"#eb9481"}}),c.createElement("path",{d:"M115.42 450.16c-2.52-.33-63.71-30.32-65.34-33a.25.25 0 0 1 0-.07 6 6 0 0 1 .51-2.7.11.11 0 0 1 0-.06c1.2-3.75 4.18-10.73 7.72-18.62 0 0 3.73-6.83 5.21-9.2L103.07 407l-4.61 8.14s17.64 22 19.12 25.08.42 10.27-2.16 9.94Z",style:{fill:"#ebebeb"}}),c.createElement("path",{d:"M116.55 449.31c-2.54-.38-64.49-32.3-66.07-35-.62-1 3.5-10.32 8.81-21.41l.17-.35 40.2 20.15-.37.67s18.25 22.82 19.68 26 .12 10.34-2.42 9.94Z",style:{fill:"#7e57c2"}}),c.createElement("path",{d:"M117.09 446.55c-10.31-5.64-52.43-27.4-63-32.18-.09 0-.12 0 0 .06 10.09 5.81 52.39 27.23 63 32.29.14.11.22-.05 0-.17Z",style:{fill:"#fff"}}),c.createElement("path",{d:"M102.59 415.21c-3.72-2.89-9.07-4.85-13.72-3.54-.18.06-.1.31 0 .34a64.8 64.8 0 0 1 13.38 3.71.3.3 0 0 0 .34-.51Zm2.04 3.31c-3.71-2.88-9.06-4.84-13.71-3.53-.18.05-.11.31 0 .33a65 65 0 0 1 13.43 3.68.29.29 0 0 0 .28-.48Zm2.05 3.32C103 419 97.61 417 93 418.31c-.18.05-.1.3.05.33a64.63 64.63 0 0 1 13.38 3.71.3.3 0 0 0 .25-.51Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M66.11 404.75c-3.33-4.56-10.42.62-7.08 5.18s10.42-.61 7.08-5.18Z",style:{fill:"#fff"}}),c.createElement("path",{d:"m102 416.78 4.45 27.82a108.33 108.33 0 0 0 10.08 4.71c2.53.4 3.83-6.81 2.42-10-1.06-2.31-11.79-16.04-16.95-22.53Z",style:{opacity:.1}}),c.createElement("path",{d:"M118.64 447.58c.89 1-1.27 4.6-2.22 4.48S48.07 416.85 47.06 416s1.53-4.75 3-4.27 68.58 35.85 68.58 35.85ZM63.43 382.9 108 406.69s56.24-80.16 57.36-101.21c1.56-29.09-23.28-121.42-23.28-121.42l-39.61-.27s16.11 95 14.8 111.16c-.7 8.47-53.84 87.95-53.84 87.95Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M111.87 397.48c-2.29-1.66-23.41-13.89-39.49-21.71a.09.09 0 0 0-.09.16c4.88 3.22 36.41 20.49 39.47 21.72.1.04.24-.1.11-.17Zm10.89-122.82c-1.84-13.9-3.87-27.77-6.18-41.6s-4.76-27.76-7.66-41.54q-.54-2.52-1.1-5a.2.2 0 0 0-.4.08c2.44 13.67 5 27.32 7.19 41s4.39 27.4 6.23 41.18q.69 5.1 1.35 10.22a90 90 0 0 1 1 10.61 27.23 27.23 0 0 1-1.69 9.95 57 57 0 0 1-4.57 8.94c-7.16 12.12-39.26 65.1-40.09 66.64 0 .1.09.21.15.11 7.7-12 31.59-50.12 38.86-62.44 3.28-5.56 7-11.19 8.11-17.67 1.12-6.74-.32-13.79-1.2-20.48Z",style:{fill:"#37474f"}}),c.createElement("path",{d:"m111.34 382.9-.44 45.22c.23 8.64.6 16.21 1.15 20.12a.13.13 0 0 0 0 .06 6.07 6.07 0 0 0 .71 2.65l.06.05c2.62 1.67 71.75 1.78 74.16 1s.3-7.75-2.38-9.89-29.14-14-29.14-14v-45.16Z",style:{fill:"#eb9481"}}),c.createElement("path",{d:"m111 418.84-.09 9.28c.23 8.64.6 16.21 1.15 20.12a.13.13 0 0 0 0 .06 12 12 0 0 0 .71 2.65l.06.05c2.62 1.67 71.75 1.78 74.16 1s.3-7.75-2.38-9.89-29.14-14-29.14-14v-9.42Z",style:{fill:"#ebebeb"}}),c.createElement("path",{d:"M187 451.89c-2.44.77-72.12-.45-74.74-2.19-1-.64-1.42-10.8-1.57-23.09v-.39l45 .29v.76s26.46 12.4 29.14 14.61 4.64 9.24 2.17 10.01Z",style:{fill:"#7e57c2"}}),c.createElement("path",{d:"M186.28 449.17c-11.74-.5-59.14-1.38-70.78-1-.09 0-.1.07 0 .07 11.62.75 59 1.25 70.78 1.1.25.02.25-.16 0-.17Z",style:{fill:"#fff"}}),c.createElement("path",{d:"M159.41 427.47c-4.6-.94-10.27-.33-13.86 2.9-.14.13 0 .32.19.28a64.52 64.52 0 0 1 13.65-2.59.3.3 0 0 0 .02-.59Zm3.31 2.07c-4.61-.94-10.28-.33-13.87 2.9-.14.12 0 .32.19.28a64.52 64.52 0 0 1 13.65-2.59.3.3 0 0 0 .03-.59Zm3.28 2.07c-4.61-.94-10.28-.33-13.87 2.9-.13.12 0 .32.2.28A64.43 64.43 0 0 1 166 432.2a.3.3 0 0 0 0-.59Zm22.13 17.8c1.24.5.9 4.68 0 5s-76.87-1.35-78.16-1.66-.73-4.94.78-5.15 77.38 1.81 77.38 1.81Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M122.08 434.23c-5-2.62-9.08 5.16-4.07 7.78s9.08-5.16 4.07-7.78Z",style:{fill:"#fff"}}),c.createElement("path",{d:"M141.57 184c-.26.82-14.5 39.83-15.84 40.45-1.52.7 31.45 56.07 33.4 81.8 1.24 16.45-1.2 109.56-1.2 109.56h-48.2s2.31-83.71 3.41-110.23c.43-10.29-33.09-61.5-33.5-93.38-.13-10.05 7.09-28.42 7.09-28.42Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M113.42 304.87c0-.43-.34-.56-.37-.13-1.09 14.36-1.34 28.63-2 43s-.29 17.79-.93 32.13c-.36 8.11 0 16.25-.21 24.37a.1.1 0 0 0 .2 0c1.47-14.24 3.3-91.24 3.31-99.37Zm45.7 1.95a70.78 70.78 0 0 0-1-10.57 53.13 53.13 0 0 0-3-9.92c-2.67-6.71-5.81-13.26-8.82-19.82s-6.16-13.27-9.37-19.85q-2.72-5.53-5.46-11.06c-1.85-3.72-3.84-7.38-5.78-11.06a.13.13 0 0 0-.23.11c3.09 6.63 6.13 13.28 9.22 19.91s6.12 13.29 9.16 19.95 6 13.1 8.79 19.73a64.74 64.74 0 0 1 3.44 9.74 57.14 57.14 0 0 1 1.41 10.5c.46 8.23.69 16.49 1.5 24.7 0 .1.18.09.18 0 .3-7.44.18-14.93-.04-22.36Zm-4.69 99.47c-2.8-.36-24.16-1.1-42-.34a.09.09 0 0 0 0 .18c5.83.52 38.72.74 42 .37.08-.01.13-.19 0-.21Z",style:{fill:"#37474f"}}),c.createElement("path",{d:"M132.38 222.29a92.67 92.67 0 0 0-15.07 5.23.16.
116 0 0 0 .11.31c5-1.59 10.2-3.07 15.16-4.93a.32.32 0 0 0-.2-.61Zm4.86-33.03c0-.17-.28-.24-.3-.06-.55 5.76-1.44 10.78-2.47 16.11-.48 2.47-3.91 16.06-8.13 14.61-.71-.25-1-1-1-2.1a17.5 17.5 0 0 1 1-4.17c.78-2.84 1.46-5.7 2-8.59a79.29 79.29 0 0 0 1.49-16.33.14.14 0 0 0-.28 0 149.86 149.86 0 0 1-3.62 22.39c-.91 3.54-3.27 8.75.42 9.69s7.17-7.84 7.89-10.27a83 83 0 0 0 3-21.28Z",style:{fill:"#37474f"}}),c.createElement("path",{d:"M126.42 220.3a23.71 23.71 0 0 0-1.27 2.76 6.48 6.48 0 0 0-.64 2.31c0 .15.2.19.29.09a8.38 8.38 0 0 0 1.24-2.18c.42-.85.86-1.69 1.25-2.56a.48.48 0 0 0-.87-.42Zm-8.07 98.7c.25-6.85 1-14-1.24-20.65a68.36 68.36 0 0 0-4.39-9.38q-2.5-4.83-4.92-9.71c-6.44-13-12.51-26.22-17.93-39.68-2.61-6.49-4.94-13.14-5.87-20.1a61.88 61.88 0 0 1 1.34-21.86c.41-1.78.84-3.56 1.33-5.32 0-.13-.16-.2-.2-.07a71.94 71.94 0 0 0-3.76 20.9 59.13 59.13 0 0 0 3.63 20c2.31 6.72 5.2 13.26 8 19.77q4.41 10.08 9.16 20c3.15 6.57 6.51 13 9.84 19.51a35.35 35.35 0 0 1 3.7 9.85 51.21 51.21 0 0 1 .4 10.79c-.57 15.15-1.88 65.6-2.07 80.72 0 1.92 0 3.84-.07 5.75 0 .17.26.2.27 0 1.01-15.05 2.24-65.38 2.78-80.52Z",style:{fill:"#37474f"}}),c.createElement("path",{d:"M107.54 193.79c0-.11-.16-.09-.18 0-.57 4.17-.89 8.5-2.91 12.28-1.84 3.47-5.07 5.71-8.58 7.28a65.09 65.09 0 0 1-6.26 2.31c-.15.05-.11.28 0 .25 4-.83 8-1.76 11.51-4 3.7-2.39 5.61-6.23 6.22-10.52a36.54 36.54 0 0 0 .2-7.6Z",style:{fill:"#37474f"}}),c.createElement("path",{d:"M136 127.73c8.19 15.64 33.92 38.24 42.12 40.22 10.12 2.43 32.58-14.51 41.29-24.49 3.6-4.13-11.41-22.13-17.87-21.29-3.56.47-21.77 18.76-24.78 17.5-7.25-3-17.33-9.22-31.72-17.55-7.83-4.53-14.13-4.12-9.04 5.61Z",style:{fill:"#eb9481"}}),c.createElement("path",{d:"M193.78 128.2s4.08-7.27 6.58-10.07 15.64-9.82 17.32-7.07c2.16 3.56-4.63 9.1-8.31 11.38 0 0 5 8.22 1 13.26s-16.59-7.5-16.59-7.5Z",style:{fill:"#eb9481"}}),c.createElement("path",{d:"M216.65 146.14c2.78-1.59 14.87-10 17.71-13.07s10.37-12.57 8.23-15-4.57.18-4.57.18 2.54-4.5.16-6.74-6 1.93-6 1.93 2.28-4.82-.26-6.88-5.49 2.75-5.49 2.75 2.28-4.31-.52-5.13c-3.37-1-6.69 7.44-10.08 10.61-.77.72-16.66 13.51-16.66 13.51Z",style:{fill:"#eb9481"}}),c.createElement("path",{d:"M226.67 108.91c-2.46 6.19-4.6 8.47-9.9 12.33-.1.08 0 .25.1.18 5.53-3.31 8.64-5.78 10.1-12.4.08-.33-.18-.4-.3-.11Zm5.67 4.09c-3.11 6.2-5.41 8.7-10.66 13.15-.08.06 0 .2.1.14 5.52-3.94 8.56-6.48 10.85-13.09.11-.33-.14-.52-.29-.2Zm5.4 5.48c-3.45 5.79-5.86 8.64-11.51 12.3a.13.13 0 0 0 .13.22c6.12-3.18 9.15-6.71 11.55-12.39.16-.39.09-.49-.17-.13ZM218 112.23c-.36 4.67-5.39 7.35-8.79 9.83a.39.39 0 0 0 0 .64c1.87 3.58 3.47 9.18 1.49 13a.1.1 0 0 0 .17.1c2.67-3.77 1.55-9.4-.75-13.2 3.53-2.48 8.45-5.4 7.95-10.33l-.07-.04Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M164.21 131.3 154 154.91s-17.79-22-21.19-29.95C129 116 134.38 116 143 119.38s21.21 11.92 21.21 11.92Z",style:{fill:"#455a64"}}),c.createElement("path",{d:"M157.75 129.43a1.83 1.83 0 0 1-.85-.24 1.61 1.61 0 0 1-.79-1.41 1.91 1.91 0 0 0-1.19-1.73 2.08 2.08 0 0 0-1-.1c-.32 0-.65.07-1 .13l1 .12a2 2 0 0 1 .87.22 1.59 1.59 0 0 1 .84 1.37 1.9 1.9 0 0 0 1.13 1.76 1.85 1.85 0 0 0 1 .14c.33-.05.66-.07 1-.13-.35-.06-.68-.09-1.01-.13Zm-25-5.44c0-.33-.07-.65-.13-1-.06.33-.08.65-.12 1a.5.5 0 0 1 0 .12l.25.62a2.06 2.06 0 0 0-.03-.73Zm16.19 14.3a1.78 1.78 0 0 1-.78.43 1.61 1.61 0 0 1-1.55-.43 1.91 1.91 0 0 0-2.06-.39 2.07 2.07 0 0 0-.81.67c-.2.26-.41.5-.6.78.27-.19.52-.4.78-.6a2 2 0 0 1 .77-.47 1.61 1.61 0 0 1 1.56.38 1.88 1.88 0 0 0 2.87-.19c.2-.26.41-.51.6-.78-.3.19-.55.4-.81.6Z",style:{fill:"#fff"}}),c.createElement("path",{d:"M159.58 130.28c-1.71 2.83-5.64 12-6.3 13.56-.35.8-1.61 4-2 4.84 0 .1.12.15.16 0 .68-1.51 1.52-3 2.21-4.47s5-10.74 6-13.92a.06.06 0 0 0-.07-.01Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M132.8 125c3.4 8 21.19 30 21.19 30l5.26-12.17-24.72-25.43c-3.01.07-4.01 2.23-1.73 7.6Z",style:{opacity:.1}}),c.createElement("path",{d:"m80.21 194.22 68.13 13.2c-.26 1.34 2.92-47-2.06-80.55-1.47-9.92-12.61-14.61-23-5.84-21.93 18.46-43.23 74.06-43.07 73.19Z",style:{fill:"#455a64"}}),c.createElement("path",{d:"m94.33 163.15-.32.64.2-.22c.19-.26.41-.51.59-.78-.16.11-.32.21-.47.36Zm53.36 31a1.9 1.9 0 0 0-2.06-.38 2 2 0 0 0-.81.66c-.2.26-.41.51-.6.78.27-.19.52-.4.78-.6a2 2 0 0 1 .77-.46 1.59 1.59 0 0 1 1.56.38 2 2 0 0 0 1.45.58v-.48a1.61 1.61 0 0 1-1.09-.51Zm-39.95 3.62a1.91 1.91 0 0 1-.78.44 1.62 1.62 0 0 1-1.55-.44 1.92 1.92 0 0 0-2.07-.38 2 2 0 0 0-.8.66l-.36.46h.14l.39-.3a2 2 0 0 1 .76-.46 1.6 1.6 0 0 1 1.57.38 1.88 1.88 0 0 0 2.87-.2c.2-.26.41-.5.6-.78-.26.18-.51.39-.77.59Zm17.86-35.18a1.81 1.81 0 0 1-.77.43 1.6 1.6 0 0 1-1.56-.43 1.88 1.88 0 0 0-2.06-.38 2 2 0 0 0-.81.66c-.2.26-.41.51-.6.78.27-.19.52-.4.78-.6a1.82 1.82 0 0 1 .77-.46 1.58 1.58 0 0 1 1.56.37 1.91 1.91 0 0 0 2 .45 1.85 1.85 0 0 0 .83-.64c.2-.26.41-.51.6-.78-.23.16-.48.37-.74.57Zm22.07-23.8a1.56 1.56 0 0 1-1.09-.47 1.91 1.91 0 0 0-2.06-.39 2.07 2.07 0 0 0-.81.67c-.2.26-.41.5-.6.78.27-.19.52-.4.78-.6a2 2 0 0 1 .77-.47 1.61 1.61 0 0 1 1.56.38 1.94 1.94 0 0 0 1.49.57 3.73 3.73 0 0 0-.04-.5Zm1.15 19a1.93 1.93 0 0 0-1.46 1.11 2 2 0 0 0-.13 1c0 .32.07.65.13 1 .06-.32.08-.65.12-1a2 2 0 0 1 .25-.86 1.61 1.61 0 0 1 1.11-.77c-.01-.2-.02-.37-.02-.55Zm-40-7.55c0-.33-.07-.66-.13-1-.06.32-.08.65-.13 1a2 2 0 0 1-.21.86 1.6 1.6 0 0 1-1.37.84 1.93 1.93 0 0 0-1.77 1.13 2 2 0 0 0-.13 1c0 .33.07.65.13 1 .06-.33.08-.65.13-1a1.87 1.87 0 0 1 .24-.86 1.63 1.63 0 0 1 1.41-.79 1.9 1.9 0 0 0 1.73-1.19 2 2 0 0 0 .12-1.06Zm-15.44 33.08c0-.32-.07-.65-.13-1-.06.33-.08.66-.12 1a2 2 0 0 1-.22.87 1.59 1.59 0 0 1-1.37.84 1.9 1.9 0 0 0-1.76 1.13 1.88 1.88 0 0 0-.14 1c0 .32.07.65.13 1 .06-.32.08-.65.13-1a1.84 1.84 0 0 1 .24-.86 1.61 1.61 0 0 1 1.41-.79 1.91 1.91 0 0 0 1.73-1.19 2.08 2.08 0 0 0 .1-1Zm31.58-2
1c0-.32-.07-.65-.13-1-.06.32-.08.65-.13 1a2 2 0 0 1-.21.87 1.6 1.6 0 0 1-1.37.84 1.94 1.94 0 0 0-1.77 1.13 2 2 0 0 0-.13 1c0 .32.07.65.13 1 .06-.32.08-.65.13-1a1.84 1.84 0 0 1 .24-.86 1.61 1.61 0 0 1 1.41-.79 1.91 1.91 0 0 0 1.73-1.19 2.08 2.08 0 0 0 .14-1.05Zm7.76-57.32c0-.33-.07-.65-.13-1-.06.33-.08.65-.12 1a2.15 2.15 0 0 1-.22.87 1.59 1.59 0 0 1-1.37.83 1.94 1.94 0 0 0-1.77 1.13 2 2 0 0 0-.13 1c0 .33.07.65.13 1 .06-.33.08-.65.13-1a1.8 1.8 0 0 1 .24-.85 1.59 1.59 0 0 1 1.41-.79 1.93 1.93 0 0 0 1.73-1.19 2.08 2.08 0 0 0 .1-1Zm-19.44 11.8a1.85 1.85 0 0 1-.76.46 1.58 1.58 0 0 1-1.56-.37 1.51 1.51 0 0 0-.43-.32q-.14.21-.3.42a1.54 1.54 0 0 1 .36.27 1.9 1.9 0 0 0 2.07.38 2 2 0 0 0 .8-.66c.2-.26.42-.51.6-.78-.27.19-.52.4-.78.6Zm29.63 38.83a1.87 1.87 0 0 1-.86-.24 1.64 1.64 0 0 1-.79-1.41 1.9 1.9 0 0 0-1.19-1.73 2 2 0 0 0-1-.1c-.33 0-.66.07-1 .12.32.06.65.09 1 .13a2 2 0 0 1 .86.22 1.58 1.58 0 0 1 .84 1.37 1.92 1.92 0 0 0 1.13 1.76 1.9 1.9 0 0 0 1 .14c.33 0 .65-.07 1-.13-.34-.06-.66-.09-.99-.13Zm-17.79 27.57a1.88 1.88 0 0 0-1.19-1.73 1.85 1.85 0 0 0-1-.1c-.33 0-.66.06-1 .12.32.06.65.09 1 .13a1.86 1.86 0 0 1 .86.22 1.58 1.58 0 0 1 .84 1.37 1.71 1.71 0 0 0 .11.63l.6.12a1.53 1.53 0 0 1-.22-.76Zm-17.89-25.68a1.87 1.87 0 0 1-.86-.24 1.61 1.61 0 0 1-.79-1.41 1.9 1.9 0 0 0-1.19-1.73 2.08 2.08 0 0 0-1-.1c-.32 0-.65.07-1 .13.32.05.65.08 1 .12a2 2 0 0 1 .87.22 1.59 1.59 0 0 1 .84 1.37 1.89 1.89 0 0 0 2.17 1.9c.32-.05.65-.07 1-.13-.39-.06-.72-.09-1.04-.13Zm24-28.76a1.73 1.73 0 0 1-.85-.25 1.59 1.59 0 0 1-.79-1.4 1.92 1.92 0 0 0-1.19-1.73 2 2 0 0 0-1-.11c-.33 0-.65.07-1 .13.33.06.65.09 1 .13a1.87 1.87 0 0 1 .87.22 1.6 1.6 0 0 1 .84 1.37 1.92 1.92 0 0 0 1.12 1.76 1.89 1.89 0 0 0 1 .13c.33 0 .66-.07 1-.13-.32-.05-.65-.08-.98-.12Z",style:{fill:"#fff"}}),c.createElement("path",{d:"M141.75 129c-3.32.73-10.14-3.29-12.41-8.05-.15-.33.52-3.64 1.14-7.71.37-2.46.73-5.22.87-7.76 0-.52 15.71 4.76 15.71 4.76a40.53 40.53 0 0 0-2.08 9.66 5.14 5.14 0 0 0 .05 1s0 .1 0 .17c.22 2.07.27 7.18-3.28 7.93Z",style:{fill:"#eb9481"}}),c.createElement("path",{d:"M145 121v.17a10 10 0 0 1-1.64 0c-9.36-.72-11.18-12.59-11.49-15.59 2.81.56 15.15 4.72 15.15 4.72a40.31 40.31 0 0 0-2.09 9.66A7.07 7.07 0 0 0 145 121Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M129.5 85.57c-1.87 5.61.73 22 4.66 25.75 5.71 5.42 15.24 6.15 19.89-.75 4.51-6.68.75-28-3.66-31.42-6.5-5.03-18.15-1.87-20.89 6.42Z",style:{fill:"#eb9481"}}),c.createElement("path",{d:"M145.19 95.73s-.08.06-.07.11c.21 1.1.26 2.39-.69 2.91v.06c1.22-.36 1.13-2.07.76-3.08Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M144 94.72c-1.8.14-1.39 3.73.27 3.6s1.27-3.71-.27-3.6Zm7.65.46s.09 0 .09.09c.1 1.11.39 2.37 1.43 2.63v.06c-1.24-.03-1.61-1.71-1.52-2.78Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M152.51 93.91c1.77-.34 2.32 3.23.68 3.54s-2.19-3.26-.68-3.54Zm-10.08-.67a13.53 13.53 0 0 0 1.33-.64 2.5 2.5 0 0 0 1.24-.92.79.79 0 0 0-.23-.91 1.91 1.91 0 0 0-1.92 0 2.85 2.85 0 0 0-1.46 1.38.82.82 0 0 0 1.04 1.09Zm11.26-1.3a12.1 12.1 0 0 1-1.47-.21 2.33 2.33 0 0 1-1.45-.49.77.77 0 0 1-.06-.94 1.89 1.89 0 0 1 1.83-.56 2.77 2.77 0 0 1 1.81.86.82.82 0 0 1-.66 1.34Zm-8.35 14.22c.29.23.6.56 1 .55a3.06 3.06 0 0 0 1.16-.42h.05a1.51 1.51 0 0 1-1.34.77 1.22 1.22 0 0 1-1-.89c0-.01.08-.04.13-.01Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M146.13 102.7a3.81 3.81 0 0 0 2.71 1.4 4.85 4.85 0 0 0 1.37-.1 1.1 1.1 0 0 0 .26-.06 1.2 1.2 0 0 0 .24-.06.26.26 0 0 0 .19-.27.5.5 0 0 0 0-.12v-.1c-.07-.86-.3-2.15-.3-2.15.33.12 2 .66 1.93.21a56.84 56.84 0 0 0-2.77-11.28.1.1 0 0 0-.2 0c.48 3.55 1.58 7 2.11 10.57a6.49 6.49 0 0 0-1.85-.34c-.11 0 .49 2.49.5 2.88a5.28 5.28 0 0 1-4.05-.77c-.14.02-.22.11-.14.19Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M150 103.8a4.92 4.92 0 0 1-1.81 1.7 2.18 2.18 0 0 1-1.32.2c-1-.16-1.1-1-1-1.81a5 5 0 0 1 .32-1.2 6.37 6.37 0 0 0 3.81 1.11Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M148.16 105.5a2.18 2.18 0 0 1-1.32.2c-1-.16-1.1-1-1-1.81a2.27 2.27 0 0 1 2.32 1.61Z",style:{fill:"#ff9abb"}}),c.createElement("path",{d:"M134.76 94.73c1.06-3.2-.82-8.53.77-10 3.42-3.13 10.54 2.76 15.39 2.75s6.24-3 5.36-6.86-4.14-6.34-9.42-7.08a19.86 19.86 0 0 0-13.11 3.22s1.17-1.91.72-2.5-2.74 1.26-3.44 2a7.27 7.27 0 0 0-1.13 2.28 7.56 7.56 0 0 0-2.14-.21 4.46 4.46 0 0 0-2.76 1.34c-.08.28 1.63.49 2.83.54 0 0-2.21 3-2.14 5.53s4.12 14.58 5.07 14.7c1.24.16 3.57-4.44 4-5.71Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M128.27 79.9s.1 0 .06.06a8.11 8.11 0 0 0-2.51 3.62 9.91 9.91 0 0 0 0 5.24c.77 3.33 2.43 6.35 3.87 9.41 0 .09-.11.17-.15.08a35.53 35.53 0 0 1-4.19-10.14c-.58-3.04.1-6.55 2.92-8.27Zm7.06 3.62a11.39 11.39 0 0 1 4.27.24 16.58 16.58 0 0 1 3.67 1.78 16.23 16.23 0 0 0 8.7 2.31s0 .06 0 .06a14.21 14.21 0 0 1-8.1-1.66 35.22 35.22 0 0 0-3.81-2 14.76 14.76 0 0 0-4.73-.51.13.13 0 0 1 0-.22Zm1.3-8.1a22.41 22.41 0 0 1 6-2 17.75 17.75 0 0 1 6.08-.26c3.48.54 6.71 2.73 7.55 6.3a7.58 7.58 0 0 1-.66 5.43.1.1 0 0 1-.18-.09 7.84 7.84 0 0 0-1.86-9.22c-2.88-2.45-6.89-2.61-10.45-2a32 32 0 0 0-6.49 1.92l.01-.08Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M133.3 99.16s-3.67-5.29-6.07-4 .34 9 3.15 10a2.86 2.86 0 0 0 3.84-1.52Z",style:{fill:"#eb948
11"}}),c.createElement("path",{d:"M128.07 97.35v.08c2 .8 3 2.64 3.72 4.54a1.59 1.59 0 0 0-2.37-.44s0 .11.06.1a1.76 1.76 0 0 1 1.93.62 8 8 0 0 1 .92 1.58c.1.17.42.08.35-.12.03-2.57-1.91-6.09-4.61-6.36Z",style:{fill:"#263238"}}),c.createElement("path",{d:"m257.17 77.47 42.71 61.68 57.53 12.72 14.33 8.85-45.45 59.69 1.69 75-70.81-24.78-70.82 24.78-14.33-8.84 16.02-66.16-45.45-59.69 71.85-21.57 28.4-70.53 14.33 8.85z",style:{fill:"#7e57c2"}}),c.createElement("path",{d:"m257.17 77.47 42.71 61.68 57.53 12.72 14.33 8.85-45.45 59.69 1.69 75-70.81-24.78-70.82 24.78-14.33-8.84 16.02-66.16-45.45-59.69 71.85-21.57 28.4-70.53 14.33 8.85z",style:{opacity:.1}}),c.createElement("path",{d:"m242.84 68.62 42.72 61.68 71.85 21.57-45.45 59.69 1.69 75.01-70.81-24.79-70.82 24.79 1.69-75.01-45.45-59.69 71.86-21.57 42.72-61.68z",style:{fill:"#7e57c2"}}),c.createElement("g",{style:{opacity:.2}},c.createElement("path",{d:"m172.94 245.75.77-34.19-9.85-12.94 99.85-99.85 21.84 31.53 2.18.66-114.79 114.79zm175.95-96.44L232.97 265.23l-33.25 11.64 132.55-132.55 16.62 4.99zm-183.2-8.68-26.11 26.11-9.34-12.26 4.58-4.58 30.87-9.27zm94.55-46.87L160.19 193.81l-.92-1.21 100.1-100.1.87 1.26zm52.66 159.53-24.46 24.46-1.57-.55 25.98-25.98.05 2.07z",style:{fill:"#fff"}})),c.createElement("path",{d:"M119.34 132.74c-2.48 16.52-8.65 50.67-1.74 60.94 9.07 13.48 39.39 22.65 47.34 25.38 3.46 1.19 12.71-21.36 10.81-24.77S142.37 178 140.24 176s-4.88-29.06-7.65-43c-3.49-17.53-11.15-14.24-13.25-.26Z",style:{fill:"#eb9481"}}),c.createElement("path",{d:"M185.19 202.34c-1.24-1.4-.52-2.06 2.75-1.46s15.68 5.71 17.1 1.23-16.2-11.45-21.71-12-14.63.43-14.63.43c3.16 2.02 10.3 7.71 16.49 11.8Z",style:{fill:"#eb9481"}}),c.createElement("path",{d:"M156.29 215.28c9.1 5.43 20.11 12.75 32.07 12.82a5.94 5.94 0 0 0 3.7-1.16c5.36.13 7-2.36 7-2.36 5-1.41 6.39-4.2 6.39-4.2s6.29.08 7-3.71c.78-4.26-8.22-3.54-13.4-6.17-11.89-6-27.1-17.9-30.35-20Z",style:{fill:"#eb9481"}}),c.createElement("path",{d:"M182.16 213a86.87 86.87 0 0 0 10.7 4.68 86.4 86.4 0 0 0 12.53 2.64.1.1 0 0 1 0 .2 45.22 45.22 0 0 1-23.29-7.37c-.18-.15-.1-.29.06-.15Zm-4.68 6.59c3.53 1.47 9.75 4 21.62 4.86 0 0 .05.07 0 .07a40.65 40.65 0 0 1-21.69-4.76c-.21-.11-.16-.27.07-.17Zm-2.48 3.62c6.1 2.26 10.23 2.92 17 3.7v.08c-7.79-.09-10.61-1-17.1-3.58-.2-.09-.1-.29.1-.2Z",style:{fill:"#263238"}}),c.createElement("path",{d:"m137.16 152-24.22 8.06s4.51-27.71 8.14-35.48c4.08-8.75 7.66-4.75 10.87 3.84s5.21 23.58 5.21 23.58Z",style:{fill:"#455a64"}}),c.createElement("path",{d:"M131.25 147.76a1.73 1.73 0 0 1-.85-.25 1.59 1.59 0 0 1-.79-1.4 1.92 1.92 0 0 0-1.19-1.73 2 2 0 0 0-1-.11c-.33 0-.65.07-1 .13.33.06.65.09 1 .13a1.87 1.87 0 0 1 .87.22 1.6 1.6 0 0 1 .84 1.37 1.92 1.92 0 0 0 1.12 1.76 1.89 1.89 0 0 0 1 .13c.33 0 .66-.07 1-.13-.34-.05-.67-.08-1-.12Zm-.41-22.07a2 2 0 0 0-1.73 1.13 2 2 0 0 0-.13 1c0 .33.07.65.13 1 .06-.33.08-.65.13-1a1.8 1.8 0 0 1 .24-.85 1.59 1.59 0 0 1 1.41-.79.5.5 0 0 0 .17 0c-.06-.18-.15-.32-.22-.49Z",style:{fill:"#fff"}}),c.createElement("path",{d:"M134.85 147.93c-3.22.6-12.63 3.79-14.19 4.3-.83.27-4.06 1.49-4.88 1.75-.11 0 0 .19.07.16 1.57-.5 3.19-.84 4.77-1.33s11.27-3.38 14.27-4.76c.11-.05.03-.14-.04-.12Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M117.88 135.42c0-.12-.15-.14-.18 0-.65 2.3-1.24 4.61-1.79 6.94a20.39 20.39 0 0 1 .35-3.73c0-.06-.07-.07-.09 0a16.85 16.85 0 0 0-.39 4.31c-.38 1.62-.75 3.24-1.1 4.87-.88 4.14-1.81 8.28-2.46 12.46a.3.3 0 0 0 .4.32c.83-.31 1.65-.64 2.46-1 .08 0 .06-.19 0-.17-.72.14-1.43.33-2.14.51 1-4 1.71-8 2.56-12s1.67-8.34 2.38-12.51Zm17.86 5.74c-.09-1.35-.19-2.69-.32-4 0 1 .08 2 .14 3-.43-1.93-.89-3.85-1.44-5.74.41 3 1 5.91 1.45 8.87s1 5.79 1.49 8.68c-.52.27-1.05.52-1.58.77a.09.09 0 0 0 .06.16c.62-.17 1.24-.34 1.87-.49a.29.29 0 0 0 .25-.31c-.56-3.69-1.16-7.33-1.92-10.94Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M160.03 38.57v38.28h4.43v7.67l7.67-7.67h78.17V38.57h-90.27z",style:{fill:"#fff"}}),c.createElement("path",{d:"M160 38.57c.13 11.29.22 27.19.28 38.28l-.28-.28h4.73v7.96l-.56-.23 7.64-7.69.11-.11 58.78-.13h19.54l-.45.44.09-38.28.36.37c-22.5 0-67.77-.23-90.27-.37Zm0 0c22.49-.13 67.78-.34 90.27-.36h.36v.36l.09 38.28v.45h-.45c-21.8.11-56.12 0-78.17-.08l.26-.11-7.7 7.64-.55.55v-8.45l.29.3h-4.71c.01-11.27.31-27.15.31-38.58Z",style:{fill:"#263238"}}),c.createElement("path",{d:"M191.06 57.76a10.9 10.9 0 1 1-10.9-10.9 10.9 10.9 0 0 1 10.9 10.9Z",style:{fill:"#ebebeb"}}),c.createElement("circle",{cx:180.3,cy:56.19,r:3.43,style:{fill:"#fff"}}),c.createElement("path",{d:"M174.38 65.65v1.41a10.91 10.91 0 0 0 3.25 1.36 11.18 11.18 0 0 0 8.6-1.36v-1.41a5.93 5.93 0 1 0-11.85 0Z",style:{fill:"#fff"}}),c.createElement("path",{d:"M198.78 51.14h40.88v.62h-40.88zm0 4.24h40.88V56h-40.88zm0 4.24h40.88v.62h-40.88zm0 4.24h20.26v.62h-20.26z",style:{fill:"#ebebeb"}}))};var en=a(15329),es=a(24871),ei=a(90381),el=a(62882),er=a(74441),eo=a(97544),ed=a(24792),ec=a(98504),eu=a(82001),ex=a(20442),em=a(2286),ep=a(16119),ey=a(39367);let eh=()=>{let e=(0,R.useSelector)(e=>
1e.feedbackCycle.users_map);return(0,c.useMemo)(()=>(0,ey.Ay)(Object.values(e),"email"),[e])};var ef=a(48266),eg=a(79542),ev=a(83641),eb=a(94092),ej=a(42709),eA=a(20987),ew=a(74116),eF=a(75775),eB=a(13522);let eL=()=>{let e=(0,R.useSelector)(e=>e.feedbackCycle.users_map),t=(0,R.useSelector)(e=>e.feedbackCycle.teams_map);return(0,c.useMemo)(()=>{let a=Object.values(t).flatMap(e=>[e.manager_id,...e.member_ids].filter(Boolean).map(t=>[e.id,t])).map(e=>{let[t,a]=e;return[a,t]}).reduce((e,t)=>{let[a,n]=t;return{...e,[a]:(e[a]||[]).concat(n)}},{}),n=Object.values(e).map(n=>{var s;return{...n,teams:(null==(s=a[n.id])?void 0:s.map(a=>{let n=t[a];if(n)return{...t[a],manager:e[n.manager_id],members:n.member_ids.map(t=>e[t])}}).filter(Boolean))||[]}}),s=(0,eb.A)([(0,eg.A)((0,eA.A)(Boolean,(0,eF.A)(["teams","length"]))),(0,ef.A)((0,eA.A)(eB.A,(0,ev.A)("name")))],n),[i,l]=(0,ew.A)(e=>!!e.teams.length,s);return{usersList:s,usersInTeams:i,usersWithoutTeams:l}},[t,e])};var eC=function(e){return e.ALL_PEERS="ALL_PEERS",e.ALL_MANAGERS="ALL_MANAGERS",e.ALL_REPORTEES="ALL_REPORTEES",e}(eC||{});let ek=e=>{let{email:t}=e,{watch:a,setValue:s}=(0,u.xW)(),i=a("reviewerRevieweeMapping",[]),l=(0,c.useMemo)(()=>{var e;return null!=(e=null==i?void 0:i.findIndex(e=>e.recipient_email===t))?e:-1},[t,i]),r=a("reviewerRevieweeMapping.".concat(l)),o=(()=>{let e=(0,R.useSelector)(e=>e.feedbackCycle.users_map);return(0,c.useMemo)(()=>Object.values(e).map(e=>e.email),[e])})(),d=(e=>{let{usersInTeams:t}=eL();return(0,c.useMemo)(()=>t.find(t=>t.email===e),[e,t])})(t),x=(0,c.useMemo)(()=>null==d?void 0:d.teams.flatMap(e=>{var t;return null==(t=e.manager)?void 0:t.email}).filter(e=>e&&e!==t),[t,null==d?void 0:d.teams]),m=(0,c.useMemo)(()=>null==d?void 0:d.teams.filter(e=>{var a;return(null==(a=e.manager)?void 0:a.email)!==t}).flatMap(e=>e.members.map(e=>e.email)).filter(e=>e&&e!==t),[t,null==d?void 0:d.teams]),p=(0,c.useMemo)(()=>null==d?void 0:d.teams.filter(e=>{var a;return(null==(a=e.manager)?void 0:a.email)===t}).flatMap(e=>e.members.map(e=>e.email)).filter(e=>e&&e!==t),[t,null==d?void 0:d.teams]),y=(0,c.useMemo)(()=>(null==r?void 0:r.reviewer_emails)||[],[null==r?void 0:r.reviewer_emails]),h=(0,c.useMemo)(()=>(0,eb.A)([(0,eg.A)(e=>"Self Feedback"===e.label),(0,ef.A)((0,ev.A)("label"))],(0,ej.A)(y).map(e=>({label:e===t?"Self Feedback":e.toLowerCase(),value:e}))),[t,y]),f=(0,c.useMemo)(()=>(0,eb.A)([(0,eg.A)(e=>"Self Feedback"===e.label),(0,ef.A)((0,ev.A)("label"))],(0,ej.A)([...y,...o,t]).map(e=>({label:e===t?"Self Feedback":e.toLowerCase(),value:e}))),[t,o,y]),g=(0,c.useMemo)(()=>[...[!!(null==m?void 0:m.length)&&{label:"Choose all peers to write feedback for them",value:"ALL_PEERS"},!!(null==x?void 0:x.length)&&{label:"Choose all managers to write feedback for them",value:"ALL_MANAGERS"},!!(null==p?void 0:p.length)&&{label:"Choose all reportees to write feedback for them",value:"ALL_REPORTEES"}].filter(Boolean),...f],[null==x?void 0:x.length,f,null==m?void 0:m.length,null==p?void 0:p.length]),v=(0,c.useCallback)(e=>e.value===ee.$Y?e.label:"ALL_MANAGERS"===e.value?x:"ALL_PEERS"===e.value?m:"ALL_REPORTEES"===e.value?p:e.value,[x,m,p]);return(0,n.jsx)(ee.DW,{multiple:!0,onChange:e=>{r?s("reviewerRevieweeMapping.".concat(l),{recipient_email:r.recipient_email,reviewer_emails:e.flatMap(v)},{shouldDirty:!0}):s("reviewerRevieweeMapping",[...i,{recipient_email:t,reviewer_emails:e.flatMap(v)}],{shouldDirty:!0})},options:g,value:h,clearable:!0,sx:{width:"100%"},addIfMissing:!0,"data-sentry-element":"AsyncSelect","data-sentry-component":"MemberSelect","data-sentry-source-file":"MemberSelect.tsx"})},eq=()=>{let e=(0,Q.A)(),{watch:t,setValue:a}=(0,u.xW)(),s=eh(),i=t("reviewerRevieweeMapping"),l=(0,c.useMemo)(()=>(null==i?void 0:i.filter(e=>!s[e.recipient_email]))||[],[i,s]),{enqueueSnackbar:r}=(0,I.useSnackbar)(),o=e=>{if(e.key&&(null==e?void 0:e.key)!=="Enter")return;let t=e.target,n=t.value.trim();try{eT.validateSync(n),a("reviewerRevieweeMapping",[...i,{recipient_email:n,reviewer_emails:[]}])}catch(e){r(ep.A.capitalize(e.message),{variant:"error"})}t.value=""};
1return(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-component":"AddMoreUsers","data-sentry-source-file":"AddMoreUsers.tsx",children:[(0,n.jsx)($.A,{sx:{bgcolor:"secondary.light",my:1},"data-sentry-element":"Divider","data-sentry-source-file":"AddMoreUsers.tsx"}),(0,n.jsxs)(T.FlexBox,{col:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"AddMoreUsers.tsx",children:[(0,n.jsx)(P.Line,{bigish:!0,bold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"AddMoreUsers.tsx",children:"Add people to the feedback cycle, who haven't been added to Middleware before"}),(0,n.jsx)(P.Line,{small:!0,medium:!0,"data-sentry-element":"Line","data-sentry-source-file":"AddMoreUsers.tsx",children:"You can use this to add non-engineering people, such as product managers, and research, non-technical, or support staff."})]}),(0,n.jsx)(J.A,{size:"small",placeholder:"Invite participants by mail",sx:{maxWidth:"400px"},InputProps:{startAdornment:(0,n.jsx)(ex.A,{fontSize:"inherit",sx:{mr:1}}),endAdornment:(0,n.jsx)(em.A,{fontSize:"inherit",sx:{ml:2}})},onKeyUp:o,onBlur:o,"data-sentry-element":"TextField","data-sentry-source-file":"AddMoreUsers.tsx"}),(0,n.jsx)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"AddMoreUsers.tsx",children:l.map(t=>(0,n.jsxs)(T.FlexBox,{gap:2,alignBase:!0,children:[(0,n.jsx)(T.FlexBox,{col:!0,gap1:!0,width:"200px",noShrink:!0,children:(0,n.jsx)(T.FlexBox,{relative:!0,top:e.spacing(.8),children:(0,n.jsx)(P.Line,{white:!0,children:t.recipient_email})})}),(0,n.jsx)(T.FlexBox,{fullWidth:!0,children:(0,n.jsx)(ek,{email:t.recipient_email})})]},t.recipient_email))})]})},eT=y.Yj().email().required();var eS=a(74824),eM=a(54478),eR=a(41636),eQ=a(97344),eE=a(67878),e_=a(87598),eI=a(59727),eD=a.n(eI),eP=a(38719),ez=a(53101);let eZ=e=>{let{teams:t}=e,a=(0,Q.A)();return(0,n.jsxs)(T.FlexBox,{gap:.5,col:!0,"data-sentry-element":"FlexBox","data-sentry-component":"ParticipantTooltip","data-sentry-source-file":"ParticipantTooltip.tsx",children:[(0,n.jsxs)(P.Line,{medium:!0,white:!0,bigish:!0,"data-sentry-element":"Line","data-sentry-source-file":"ParticipantTooltip.tsx",children:["They are in ",eD()("this",t.length)," ",eD()("team",t.length)]}),(0,n.jsx)(T.FlexBox,{gap:.5,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantTooltip.tsx",children:t.map(e=>(0,n.jsx)(T.FlexBox,{corner:"100vw",border:"1px solid ".concat(a.colors.primary.dark),color:(0,er.a)(a.colors.primary.main,.4),px:1,fit:!0,link:Z.ROUTES.TEAMS.ROUTE.add(e.id).PATH,children:(0,n.jsx)(P.Line,{small:!0,medium:!0,children:e.name})},e.id))})]})},eG=(0,c.createContext)({openModals:new Set,toggleModal:e=>{},bulk:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}),eN=e=>{let{children:t}=e,a=(0,W.useEasyState)(new Set),s=a.value,i=(0,c.useCallback)(e=>{s.has(e)?s.delete(e):s.add(e),(0,ez.depFn)(a.set,new Set(s))},[a.set,s]),l=(0,c.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,ez.depFn)(a.set,new Set(t))},[a.set]);return(0,n.jsx)(eG.Provider,{value:{openModals:a.value,toggleModal:i,bulk:l},"data-sentry-element":"unknown","data-sentry-component":"ParticipantTeamAccordionStateContextProvider","data-sentry-source-file":"ParticipantComponents.tsx",children:t})},eW=e=>{let{teams:t}=e,{bulk:a,openModals:s}=(0,c.useContext)(eG),i=s.size===t.length,l=0===s.size;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(P.Line,{white:!0,bold:!0,big:!0,mb:1,display:"flex",alignItems:"center",gap:1,"data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(eS.A,{"data-sentry-element":"SupervisedUserCircleRounded","data-sentry-source-file":"ParticipantComponents.tsx"})," ",(0,n.jsx)(P.Line,{"data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:"Teams"})," ",(0,n.jsxs)(T.FlexBox,{gap:0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[!i&&(0,n.jsx)(E.A,{size:"small",sx:{py:0,fontSize:"0.8em",borderTopRightRadius:l?void 0:0,borderBottomRightRadius:l?void 0:0,mr:i||l?void 0:"-1px"},variant:"outlined",onClick:()=>a(...t.map(e=>e.id)),children:"Expand all"}),!l&&(0,n.jsx)(E.A,{size:"small",sx:{py:0,fontSize:"0.8em",borderTopLeftRadius:i?void 0:0,borderBottomLeftRadius:i?void 0:0},variant:"outlined",onClick:()=>a(),children:"Collapse all"})]})]}),t.length?t.map(e=>(0,n.jsx)(eO,{team:e},e.id)):(0,n.jsx)(P.Line,{children:"No teams added on Middleware"})]})}
1,eO=e=>{let{team:t}=e,a=(0,Q.A)(),{openModals:s,toggleModal:i}=(0,c.useContext)(eG),l=s.has(t.id);return(0,n.jsxs)(eQ.A,{sx:{border:"1px solid ".concat(a.colors.secondary.light),borderRadius:a.spacing(1),width:"100%"},expanded:l,onChange:()=>i(t.id),"data-sentry-element":"Accordion","data-sentry-component":"ParticipantTeam","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(eE.A,{"data-sentry-element":"AccordionSummary","data-sentry-source-file":"ParticipantComponents.tsx",children:(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap:2,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(ed.A,{sx:{borderRadius:"100vw",transform:l?"rotate(0deg)":"rotate(180deg)",transition:"all 0.2s"},"data-sentry-element":"IconButton","data-sentry-source-file":"ParticipantComponents.tsx",children:(0,n.jsx)(eM.A,{"data-sentry-element":"ArrowDownwardRounded","data-sentry-source-file":"ParticipantComponents.tsx"})}),(0,n.jsxs)(T.FlexBox,{col:!0,gap:.5,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(P.Line,{white:!0,semibold:!0,bigish:!0,"data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:t.name}),(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap:.5,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[t.manager?(0,n.jsxs)(P.Line,{small:!0,children:["Managed by: ",(0,n.jsx)(P.Line,{children:t.manager.name})]}):(0,n.jsx)(P.Line,{small:!0,children:"No manager"}),"â¢",(0,n.jsxs)(P.Line,{small:!0,"data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:[t.members.length||"No"," ",eD()("member",t.members.length)]})]})]})]})}),(0,n.jsxs)(e_.A,{"data-sentry-element":"AccordionDetails","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(eY,{"data-sentry-element":"ReviewParticipantsHeader","data-sentry-source-file":"ParticipantComponents.tsx"}),(0,n.jsx)(T.FlexBox,{gap1:!0,col:!0,mb:1,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[!!t.manager&&(0,n.jsxs)(T.FlexBox,{gap:2,alignBase:!0,children:[(0,n.jsxs)(T.FlexBox,{width:"200px",noShrink:!0,relative:!0,top:a.spacing(.8),col:!0,children:[(0,n.jsx)(P.Line,{white:!0,children:t.manager.name}),(0,n.jsx)(eP.C,{sx:{width:"fit-content"},variant:"outlined",color:"info",children:"Team Manager"})]}),(0,n.jsx)(T.FlexBox,{fullWidth:!0,children:(0,n.jsx)(ek,{email:t.manager.email})})]}),t.members.map(e=>(0,n.jsx)(eV,{user:e},e.id))]})})]})]})},eU=()=>{let e=(0,Q.A)(),{usersInTeams:t}=eL(),a=(0,W.useBoolState)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(T.FlexBox,{mt:-1,fullWidth:!0,col:!0,gap:2,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsxs)(eQ.A,{sx:{border:"1px solid ".concat(e.colors.secondary.light),borderRadius:e.spacing(1),width:"100%"},expanded:a.value,onChange:a.toggle,"data-sentry-element":"Accordion","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(eE.A,{"data-sentry-element":"AccordionSummary","data-sentry-source-file":"ParticipantComponents.tsx",children:(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap:2,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(ed.A,{sx:{borderRadius:"100vw",transform:a.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.2s"},"data-sentry-element":"IconButton","data-sentry-source-file":"ParticipantComponents.tsx",children:(0,n.jsx)(eM.A,{"data-sentry-element":"ArrowDownwardRounded","data-sentry-source-file":"ParticipantComponents.tsx"})}),(0,n.jsxs)(P.Line,{white:!0,semibold:!0,"data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:["People that have been added to"," ",(0,n.jsx)(P.Line,{color:"success","data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:"at least one team"})," ",(0,n.jsxs)(P.Line,{color:"secondary","data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:["(",t.length||"No"," people)"]})]})]})}
1),(0,n.jsxs)(e_.A,{"data-sentry-element":"AccordionDetails","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(eY,{"data-sentry-element":"ReviewParticipantsHeader","data-sentry-source-file":"ParticipantComponents.tsx"}),(0,n.jsx)(T.FlexBox,{col:!0,gap1:!0,fullWidth:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:t.map(e=>(0,n.jsx)(c.Fragment,{children:(0,n.jsx)(eV,{user:e})},e.id))})]})]}),(0,n.jsx)(eH,{"data-sentry-element":"ParticipantsNotInTeams","data-sentry-source-file":"ParticipantComponents.tsx"})]})})},eH=()=>{let e=(0,Q.A)(),{usersWithoutTeams:t}=eL(),a=(0,W.useBoolState)();return(0,n.jsxs)(eQ.A,{sx:{border:"1px solid ".concat(e.colors.secondary.light),borderRadius:e.spacing(1),width:"100%"},expanded:a.value,onChange:a.toggle,"data-sentry-element":"Accordion","data-sentry-component":"ParticipantsNotInTeams","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(eE.A,{"data-sentry-element":"AccordionSummary","data-sentry-source-file":"ParticipantComponents.tsx",children:(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap:2,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(ed.A,{sx:{borderRadius:"100vw",transform:a.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.2s"},"data-sentry-element":"IconButton","data-sentry-source-file":"ParticipantComponents.tsx",children:(0,n.jsx)(eM.A,{"data-sentry-element":"ArrowDownwardRounded","data-sentry-source-file":"ParticipantComponents.tsx"})}),(0,n.jsxs)(P.Line,{white:!0,semibold:!0,"data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:["People that have"," ",(0,n.jsx)(P.Line,{color:"warning","data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:"not been added to any team"})," ",(0,n.jsxs)(P.Line,{color:"secondary","data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:["(",t.length||"No"," people)"]})]})]})}),(0,n.jsxs)(e_.A,{"data-sentry-element":"AccordionDetails","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(eY,{"data-sentry-element":"ReviewParticipantsHeader","data-sentry-source-file":"ParticipantComponents.tsx"}),(0,n.jsx)(T.FlexBox,{col:!0,gap1:!0,fullWidth:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:t.map(e=>(0,n.jsx)(c.Fragment,{children:(0,n.jsx)(eV,{user:e})},e.id))})]})]})},eY=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap:2,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(T.FlexBox,{width:"200px",noShrink:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:(0,n.jsx)(P.Line,{white:!0,bold:!0,"data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:"Review Participants"})}),(0,n.jsxs)(P.Line,{bold:!0,"data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:["Reviewers ","->"," They would be requested to submit the feedback form for the participants"]})]}),(0,n.jsx)($.A,{sx:{bgcolor:"secondary.light",my:1,mb:2},"data-sentry-element":"Divider","data-sentry-source-file":"ParticipantComponents.tsx"})]}),eV=e=>{var t,a;let{user:s}=e,i=(0,Q.A)(),{watch:l}=(0,u.xW)(),r=l("reviewerRevieweeMapping"),o=(0,c.useMemo)(()=>{var e;return null!=(e=null==r?void 0:r.findIndex(e=>e.recipient_email===s.email))?e:-1},[r,s.email]),d=l("reviewerRevieweeMapping.".concat(o)),x=!!(null==d||null==(t=d.reviewer_emails)?void 0:t.length);return(0,n.jsxs)(T.FlexBox,{gap:2,alignBase:!0,"data-sentry-element":"FlexBox","data-sentry-component":"ParticipantListItem","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,width:"200px",noShrink:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsxs)(T.FlexBox,{relative:!0,top:i.spacing(.8),col:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:[(0,n.jsx)(P.Line,{color:x?"white":"warning",semibold:!x,"data-sentry-element":"Line","data-sentry-source-file":"ParticipantComponents.tsx",children:s.name}),!x&&(0,n.jsxs)(P.Line,{tiny:!0,color:"warning",component:T.FlexBox,gap:.5,alignCenter:!0,display:"flex",darkTip:!0,pointer:!0,title:(0,n.jsxs)(T.FlexBox,{
1col:!0,gap:.5,children:[(0,n.jsx)(P.Line,{children:"They have no reviewers assigned"}),(0,n.jsx)(P.Line,{bold:!0,color:"warning",children:"So they will not be added to this review cycle"}),(0,n.jsx)(P.Line,{children:"If you'd like them to be a part of this review cycle, add a reviewer for them"}),(0,n.jsx)($.A,{sx:{my:1}}),(0,n.jsx)(P.Line,{bold:!0,color:"info",children:'As a first step: We recommend clicking the "Request Self Feedback for all" button at the top to let everyone write feedback for themselves'})]}),children:[(0,n.jsx)(P.Line,{children:"No reviewers"}),(0,n.jsx)(eR.A,{fontSize:"inherit"})]})]}),!!(null==(a=s.teams)?void 0:a.length)&&(0,n.jsx)(T.FlexBox,{corner:"100vw",border:"1px solid ".concat(i.colors.secondary.dark),px:1,fit:!0,darkTip:!0,pointer:!0,title:(0,n.jsx)(eZ,{teams:s.teams}),children:(0,n.jsxs)(P.Line,{tiny:!0,medium:!0,children:[s.teams.length," ",eD()("team",s.teams.length)]})})]}),(0,n.jsx)(T.FlexBox,{fullWidth:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ParticipantComponents.tsx",children:(0,n.jsx)(ek,{email:s.email,"data-sentry-element":"MemberSelect","data-sentry-source-file":"ParticipantComponents.tsx"})})]})};var eX=function(e){return e[e.AddedToTeam=0]="AddedToTeam",e[e.ByTeam=1]="ByTeam",e}({}),eK=a(32655),eJ=a(82820),e$=a(14171);let e0=()=>{let{watch:e,setValue:t}=(0,u.xW)(),[a,s,i,l]=e(["metaDefaultSelfFeedback","metaDefaultPeerFeedback","metaDefaultManagerFeedback","metaDefaultReporteeFeedback"]),r=e("reviewerRevieweeMapping"),o=eh(),{usersInTeams:d}=eL(),x=(0,c.useMemo)(()=>(0,ey.Ay)(d,"email"),[d]),m=(0,c.useMemo)(()=>{let e={...o};return null==r||r.forEach(t=>{delete e[t.recipient_email]}),Object.values(e).map(e=>e.email)},[r,o]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(T.FlexBox,{col:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuickAddActions.tsx",children:[(0,n.jsx)(P.Line,{white:!0,bold:!0,bigish:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuickAddActions.tsx",children:"Quick-fill actions"}),(0,n.jsxs)(P.Line,{small:!0,medium:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuickAddActions.tsx",children:["These actions allow you to quickly assign reviewers for all the participants below."," ",(0,n.jsx)(P.Line,{color:"warning",bold:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuickAddActions.tsx",children:"These changes are not reversible"})]})]}),(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,wrap:!0,mb:2,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuickAddActions.tsx",children:[(0,n.jsx)(T.FlexBox,{darkTip:!0,title:(0,n.jsxs)(T.FlexBox,{col:!0,gap:.5,children:[(0,n.jsxs)(P.Line,{bold:!0,children:[a?"Remove":"Add"," Self Feedback for all participants"]}),(0,n.jsxs)(P.Line,{underline:!0,dotted:!0,children:["Clicking this will"," ",(0,n.jsx)(P.Line,{bold:!0,color:"info",children:a?"remove":"add"})," ","every participant as a reviewer for themselves"]}),(0,n.jsx)(e1,{}),(0,n.jsx)($.A,{sx:{my:1}}),(0,n.jsx)(P.Line,{bold:!0,children:"How is this useful?"}),(0,n.jsx)(P.Line,{children:"This can be useful for getting opinions or answers by themselves, for themselves to the provided questionnaire, which can be compared against the feedback they receive from others"})]}),"data-sentry-element":"FlexBox","data-sentry-source-file":"QuickAddActions.tsx",children:(0,n.jsx)(E.A,{size:"small",variant:"outlined",color:"info",sx:{px:1.5,py:.5,fontSize:"0.9em"},startIcon:a?(0,n.jsx)(eK.A,{}):(0,n.jsx)(eJ.A,{}),endIcon:(0,n.jsx)(T.FlexBox,{fit:!0,centered:!0,children:(0,n.jsx)(eR.A,{sx:{fontSize:"0.8em"}})}),onClick:()=>{let e=!a;t("metaDefaultSelfFeedback",e,{shouldDirty:!0}),t("reviewerRevieweeMapping",r.map(t=>({recipient_email:t.recipient_email,reviewer_emails:e?[...t.reviewer_emails,t.recipient_email]:t.reviewer_emails.filter(e=>e!==t.recipient_email)})).concat(m.map(t=>({recipient_email:t,reviewer_emails:e?[t]:[]}))),{shouldDirty:!0})},"data-sentry-element":"Button","data-sentry-source-file":"QuickAddActions.tsx",children:"Request Self-Feedback for all"})}
1),(0,n.jsx)(T.FlexBox,{darkTip:!0,title:(0,n.jsxs)(T.FlexBox,{col:!0,gap:.5,children:[(0,n.jsxs)(P.Line,{bold:!0,children:[s?"Remove":"Add"," Peer Feedback for all participants"]}),(0,n.jsxs)(P.Line,{underline:!0,dotted:!0,children:["Clicking this will"," ",(0,n.jsx)(P.Line,{bold:!0,color:"info",children:s?"remove":"add"})," ","all team members of the participant (across all teams that they are in) as a reviewer for themselves"]}),(0,n.jsx)(e1,{}),(0,n.jsx)($.A,{sx:{my:1}}),(0,n.jsx)(P.Line,{bold:!0,children:"How is this useful?"}),(0,n.jsx)(P.Line,{children:"This can be useful for getting opinions or answers by their peers to the provided questionnaire, to get an idea about how they are viewed in their teams, and get a sense of their collaborative spirit"})]}),"data-sentry-element":"FlexBox","data-sentry-source-file":"QuickAddActions.tsx",children:(0,n.jsx)(E.A,{size:"small",variant:"outlined",color:"info",sx:{px:1.5,py:.5,fontSize:"0.9em"},startIcon:s?(0,n.jsx)(eK.A,{}):(0,n.jsx)(eJ.A,{}),endIcon:(0,n.jsx)(T.FlexBox,{fit:!0,centered:!0,children:(0,n.jsx)(eR.A,{sx:{fontSize:"0.8em"}})}),onClick:()=>{let e=!s;t("metaDefaultPeerFeedback",e,{shouldDirty:!0}),t("reviewerRevieweeMapping",r.map(t=>{var a;let n=(null==(a=x[t.recipient_email])?void 0:a.teams.filter(e=>{var a;return(null==(a=e.manager)?void 0:a.email)!==t.recipient_email}).flatMap(e=>e.members.map(e=>e.email)).filter(e=>e!==t.recipient_email))||[];return{recipient_email:t.recipient_email,reviewer_emails:(0,e$.s)(e?[...t.reviewer_emails,...n]:t.reviewer_emails.filter(e=>!n.includes(e)))}}).concat(m.map(t=>{var a;let n=(null==(a=x[t])?void 0:a.teams.filter(e=>{var a;return(null==(a=e.manager)?void 0:a.email)!==t}).flatMap(e=>e.members.map(e=>e.email)).filter(e=>e!==t))||[];return{recipient_email:t,reviewer_emails:e?n:[]}})),{shouldDirty:!0})},"data-sentry-element":"Button","data-sentry-source-file":"QuickAddActions.tsx",children:"Request Peer-Feedback for all"})}),(0,n.jsx)(T.FlexBox,{darkTip:!0,title:(0,n.jsxs)(T.FlexBox,{col:!0,gap:.5,children:[(0,n.jsxs)(P.Line,{bold:!0,children:[i?"Remove":"Add"," Manager Feedback for all team-member participants"]}),(0,n.jsxs)(P.Line,{underline:!0,dotted:!0,children:["Clicking this will"," ",(0,n.jsx)(P.Line,{bold:!0,color:"info",children:i?"remove":"add"})," ","the managers of every participant that is a member of a team as their reviewers"]}),(0,n.jsx)(e1,{}),(0,n.jsx)($.A,{sx:{my:1}}),(0,n.jsx)(P.Line,{bold:!0,children:"How is this useful?"}),(0,n.jsx)(P.Line,{children:"Manager feedback can be useful for getting opinions or answers by their managers, which can be compared against their self-feedback or peer-feedback to see how the participants interactions and perceptions differ between their peers, managers, and themselves"})]}),"data-sentry-element":"FlexBox","data-sentry-source-file":"QuickAddActions.tsx",children:(0,n.jsx)(E.A,{size:"small",variant:"outlined",color:"info",sx:{px:1.5,py:.5,fontSize:"0.9em"},startIcon:i?(0,n.jsx)(eK.A,{}):(0,n.jsx)(eJ.A,{}),endIcon:(0,n.jsx)(T.FlexBox,{fit:!0,centered:!0,children:(0,n.jsx)(eR.A,{sx:{fontSize:"0.8em"}})}),onClick:()=>{let e=!i;t("metaDefaultManagerFeedback",e,{shouldDirty:!0}),t("reviewerRevieweeMapping",r.map(t=>{var a;let n=(null==(a=x[t.recipient_email])?void 0:a.teams.flatMap(e=>{var t;return null==(t=e.manager)?void 0:t.email}).filter(e=>e&&e!==t.recipient_email))||[];return{recipient_email:t.recipient_email,reviewer_emails:(0,e$.s)(e?[...t.reviewer_emails,...n]:t.reviewer_emails.filter(e=>!n.includes(e)))}}).concat(m.map(t=>{var a;let n=(null==(a=x[t])?void 0:a.teams.flatMap(e=>{var t;return null==(t=e.manager)?void 0:t.email}).filter(e=>e&&e!==t))||[];return{recipient_email:t,reviewer_emails:e?n:[]}})),{shouldDirty:!0})},"data-sentry-element":"Button","data-sentry-source-file":"QuickAddActions.tsx",children:"Request Manager Feedback for all team members"})}),(0,n.jsx)(T.FlexBox,{darkTip:!0,title:(0,n.jsxs)(T.FlexBox,{col:!0,gap:.5,children:[(0,n.jsxs)(P.Line,{bold:!0,children:[i?"Remove":"Add"," Reportee Feedback for all managers"]}),(0,n.jsxs)(P.Line,{underline:!0,dotted:!0,children:["Clicking this will"," ",(0,n.jsx)(P.Line,{bold:!0,color:"info",children:i?"remove":"add"})," ","the team members of all managers as reviewers for themselves"]}),(0,n.jsx)(e1,{}),(0,n.jsx)($.A,{sx:{my:1}}),(0,n.jsx)(P.Line,{bold:!0,children:"How is this useful?"}),(0,n.jsx)(P.Line,{children:"Reportee feedback can be crucial in understanding a manager is perceived by their teams, and whether they excel in running a productive, bonded, and happy team."}),(0,n.jsx)(P.Line,{color:"info",children:"It is advisable for feedback from reportees to managers to be shared anonymously"})]}),"data-sentry-element":"FlexBox","data-sentry-source-file":"QuickAddActions.tsx",children:(0,n.jsx)(E.A,{size:"small",variant:"outlined",color:"info",sx:{px:1.5,py:.5,fontSize:"0.9em"},startIcon:l?(0,n.jsx)(eK.A,{}):(0,n.jsx)(eJ.A,{}),endIcon:(0,n.jsx)(T.FlexBox,{fit:!0,centered:!0,children:(0,n.jsx)(eR.A,{sx:{fontSize:"0.8em"}})}),onClick:()=>{let e=!l;t("metaDefaultReporteeFeedback",e,{shouldDirty:!0}),t("reviewerRevieweeMapping",r.map(t=>{var a;let n=(null==(a=x[t.recipient_email])?void 0:a.teams.filter(e=>{var a;return(null==(a=e.manager)?void 0:a.email)===t.recipient_email}).flatMap(e=>e.members.map(e=>e.email)).filter(e=>e!==t.recipient_email))||[];return{recipient_email:t.recipient_email,reviewer_emails:(0,e$.s)(e?[...t.reviewer_emails,...n]:t.reviewer_emails.filter(e=>!n.includes(e)))}}).concat(m.map(t=>{var a;let n=(null==(a=x[t])?void 0:a.teams.filter(e=>{var a;return(null==(a=e.manager)?void 0:a.email)===t}).flatMap(e=>e.members.map(e=>e.email)).filter(e=>e&&e!==t))||[];return{recipient_email:t,reviewer_emails:e?n:[]}})),{shouldDirty:!0})},"data-sentry-element":"Button","data-sentry-source-file":"QuickAddActions.tsx",children:"Request Team Feedback for all managers"})})]})]})},e1=()=>(0,n.jsx)(P.Line,{bold:!0,color:"warning","data-sentry-element":"Line","data-sentry-component":"QuickAddWarning","data-sentry-source-file":"QuickAddActions.tsx",children:"This action will update your existing participant-reviewer settings (even if set manually), and is not und
1o-able"}),e2=()=>{let e=(0,Q.A)(),t=(0,W.useEasyState)(eX.ByTeam),a=(0,W.useBoolState)(),s=(0,W.useBoolState)(!1),{enqueueSnackbar:i}=(0,I.useSnackbar)(),l=(0,R.useDispatch)(),{userId:r}=(0,N.useAuth)(),{watch:o}=(0,u.xW)(),d=o(),{loading:x,augmentedTeamsList:m}=(()=>{let{orgId:e}=(0,N.useAuth)(),t=(0,R.useDispatch)();(0,c.useEffect)(()=>{t((0,O.gz)({orgId:e}))},[t,e]);let a=(0,R.useSelector)(e=>e.feedbackCycle.users_map),n=(0,R.useSelector)(e=>e.feedbackCycle.teams_map),s=(0,R.useSelector)(e=>{var t;return(null==(t=e.feedbackCycle.requests)?void 0:t.teams_map)===M.e.REQUEST});return(0,c.useMemo)(()=>{let e=Object.values(n),t=e.filter(e=>[e.manager_id,...e.member_ids].filter(Boolean).length).map(e=>({...e,manager:a[e.manager_id],members:e.member_ids.map(e=>a[e]).filter(Boolean)}));return{teams:e,users:a,loading:s,augmentedTeamsList:t}},[s,n,a])})(),{usersWithoutTeams:p}=eL(),y=(0,R.useSelector)(e=>e.feedbackCycle.activeQuestionnaire),h=(0,R.useSelector)(e=>e.feedbackCycle.activeFeedbackCycle),f=async()=>{let e=!0;s.true(),await l((0,O.pI)({feedback_cycle_id:h.id,questionnaire_id:y.id,name:y.name,description:y.description||"",state:y.state,allow_anonymous_reviews:y.allow_anonymous_reviews,is_deleted:y.is_deleted,questions:d.questions,updated_by:r,recipient_reviewer_mappings:d.reviewerRevieweeMapping})).then(t=>{"fulfilled"!==t.meta.requestStatus&&(e=!1)}),i(e?"Saved successfully!":"Failed to save!",{variant:e?"success":"error"}),s.false()};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ei.A,{loading:x,size:"small",variant:"outlined",onClick:a.toggle,endIcon:(0,n.jsx)(T.FlexBox,{centered:!0,children:s.value?(0,n.jsx)(_.A,{size:"24px"}):(0,n.jsx)(en.A,{fontSize:"medium"})}),sx:{fontWeight:"bold",height:"60px",textAlign:"left",whiteSpace:"nowrap",flexShrink:0},"data-sentry-element":"LoadingButton","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:(0,n.jsxs)(P.Line,{mr:2,"data-sentry-element":"Line","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:["Show Participants",(0,n.jsx)("br",{}),"and their Reviewers"]})}),(0,n.jsxs)(el.A,{open:a.value,onClose:async()=>{f(),a.false()},TransitionComponent:eu.Transition,PaperProps:{sx:{bgcolor:(0,er.X4)((0,er.a)(e.palette.background.default,.1),.92),maxWidth:"unset"}},"data-sentry-element":"Dialog","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:[(0,n.jsx)(eo.A,{"data-sentry-element":"DialogTitle","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:(0,n.jsxs)(T.FlexBox,{justifyBetween:!0,alignCenter:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:[(0,n.jsx)(P.Line,{big:!0,white:!0,bold:!0,"data-sentry-element":"Line","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:"Define who participates in this feedback cycle, and who provides feedback for them"}),(0,n.jsx)(ed.A,{onClick:a.false,"data-sentry-element":"IconButton","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:(0,n.jsx)(es.A,{"data-sentry-element":"CloseRounded","data-sentry-source-file":"ReviewerRevieweeMappings.tsx"})})]})}),(0,n.jsx)(ec.A,{"data-sentry-element":"DialogContent","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,fullWidth:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:[(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:[(0,n.jsx)(P.Line,{bigish:!0,bold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:t.value===eX.AddedToTeam?"People are ordered by name":"Members are grouped by teams"}),(0,n.jsx)(E.A,{size:"small",variant:"outlined",onClick:()=>t.set(t.value===eX.AddedToTeam?eX.ByTeam:eX.AddedToTeam),"data-sentry-element":"Button","data-sentry-source-file":"ReviewerRevieweeMappings.tsx",children:t.value===eX.AddedToTeam?"Group people by teams":"List by name"})]}),(0,n.jsx)(e0,{"data-sentry-element":"QuickAddActions","data-sentry-source-file":"ReviewerRevieweeMappings.tsx"}),(0,n.jsx)($.A,{sx:{bgcolor:"secondary.light",mb:2,mt:-1},"data-sentry-element":"Divider","data-sentry-source-file":"ReviewerRevieweeMappings.tsx"}),t.value===eX.AddedToTeam?(0,n.jsx)(eU,{}
1):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eN,{children:(0,n.jsx)(eW,{teams:m})}),!!p.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($.A,{sx:{bgcolor:"secondary.light",my:1}}),(0,n.jsx)(eH,{})]})]}),(0,n.jsx)(eq,{"data-sentry-element":"AddMoreUsers","data-sentry-source-file":"ReviewerRevieweeMappings.tsx"})]})})]})]})},e3=()=>{let{control:e,setValue:t,watch:a}=(0,u.xW)(),s=(0,R.useSelector)(e=>e.feedbackCycle.users_map),i=(0,c.useMemo)(()=>Object.values(s).map(e=>({label:e.email,value:e.email})),[s]);return(0,n.jsxs)(T.FlexBox,{col:!0,gap:3,"data-sentry-element":"FlexBox","data-sentry-component":"QuestionnaireMeta","data-sentry-source-file":"QuestionnaireMeta.tsx",children:[(0,n.jsx)(T.FlexBox,{position:"fixed",top:100,right:-150,height:"500px",width:"500px",sx:{opacity:.35,transform:"rotateY(180deg) rotateZ(30deg)"},"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionnaireMeta.tsx",children:(0,n.jsx)(ea,{"data-sentry-element":"FeedbackImage","data-sentry-source-file":"QuestionnaireMeta.tsx"})}),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionnaireMeta.tsx",children:[(0,n.jsx)(P.Line,{white:!0,bold:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionnaireMeta.tsx",children:"Title for this Feedback Cycle"}),(0,n.jsx)(u.xI,{name:"name",control:e,render:e=>{let{field:t,fieldState:{error:a}}=e;return(0,n.jsx)(J.A,{...t,placeholder:"E.g.: Yearly Review, Mid-year review, etc...",variant:"standard",InputProps:{sx:{fontSize:"3em",fontWeight:"600"}},error:!!a,helperText:null==a?void 0:a.message})},"data-sentry-element":"Controller","data-sentry-source-file":"QuestionnaireMeta.tsx"})]}),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionnaireMeta.tsx",children:[(0,n.jsx)(P.Line,{white:!0,bold:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionnaireMeta.tsx",children:"Description/Instructions"}),(0,n.jsx)(u.xI,{name:"description",control:e,render:e=>{let{field:t}=e;return(0,n.jsx)(J.A,{...t,multiline:!0,placeholder:"Any notes, guidance, or instructions for filling up this feedback cycle",rows:3})},"data-sentry-element":"Controller","data-sentry-source-file":"QuestionnaireMeta.tsx"})]}),(0,n.jsxs)(T.FlexBox,{col:!0,gap:1.5,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionnaireMeta.tsx",children:[(0,n.jsx)(P.Line,{white:!0,bold:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionnaireMeta.tsx",children:"Cycle start and end dates"}),(0,n.jsxs)(T.FlexBox,{gap:1,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionnaireMeta.tsx",children:[(0,n.jsx)(u.xI,{name:"startDate",control:e,render:e=>{let{field:t}=e;return(0,n.jsx)(K.A,{minDate:new Date,...t,label:"Start Date",renderInput:e=>(0,n.jsx)(J.A,{...e})})},"data-sentry-element":"Controller","data-sentry-source-file":"QuestionnaireMeta.tsx"}),(0,n.jsx)(u.xI,{name:"endDate",control:e,render:e=>{let{field:t}=e;return(0,n.jsx)(K.A,{minDate:a("startDate"),...t,label:"End Date",renderInput:e=>(0,n.jsx)(J.A,{...e})})},"data-sentry-element":"Controller","data-sentry-source-file":"QuestionnaireMeta.tsx"})]})]}),(0,n.jsxs)(T.FlexBox,{gap:2,alignCenter:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionnaireMeta.tsx",children:[(0,n.jsxs)(T.FlexBox,{col:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionnaireMeta.tsx",children:[(0,n.jsx)(P.Line,{white:!0,bold:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionnaireMeta.tsx",children:"Participants"}),(0,n.jsx)(P.Line,{small:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionnaireMeta.tsx",children:"These are the people that would be under review, and will need to write a review for themselves, others, or receive reviews from others"})]}),(0,n.jsx)(e2,{"data-sentry-element":"ReviewerRevieweeMappings","data-sentry-source-file":"QuestionnaireMeta.tsx"})]}),(0,n.jsxs)(T.FlexBox,{gap1:!0,col:!0,justifyCenter:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionnaireMeta.tsx",children:[(0,n.jsx)(P.Line,{white:!0,bold:!0,whiteSpace:"nowrap","data-sentry-element":"Line","data-sentry-source-file":"QuestionnaireMeta.tsx",children:"Review Observers (Admins)"}),(0,n.jsx)(P.Line,{small:!0,mt:-1,"data-sentry-element":"Line","data-sentry-source-file":"QuestionnaireMeta.tsx",children:'They are "admins" of this review cycle, and will be able to edit, view responses and analytics of this cycle'}),(0,n.jsx)(u.xI,{name:"reviewObservers",control:e,render:e=>{let{field:a}=e;return(0,n.jsx)(ee.DW,{multiple:!0,options:i,value:(a.value||[]).map(e=>({label:e,value:e})),onChange:e=>{t("reviewObservers",e.map(e=>e.label),{shouldDirty:!0})},sx:{width:"100%"},addIfMissing:!0})},"data-sentry-element":"Controller","data-sentry-source-file":"QuestionnaireMeta.tsx"})]}),(0,n.jsx)($.A,{sx:{bgcolor:"secondary.light",mb:2},"data-sentry-element":"Divider","data-sentry-source-file":"QuestionnaireMeta.tsx"})]})};var e4=a(4366),e7=a(76747);let e6=()=>{let{enqueueSnackbar:e}=(0,I.useSnackbar)(),{watch:t}=(0,u.xW)(),a=t("questions");return{questionsLimitReached:((null==a?void 0:a.reduce((e,t)=>
1{var a;return e+1+((null==(a=t.data.questions)?void 0:a.length)||0)},0))||0)>=100,showQuestionLimitReachedToast:(0,c.useCallback)(()=>{e("Max ".concat(100," questions or sub-questions can be added."),{variant:"error",autoHideDuration:4e3})},[e])}},e5=e=>{let{side:t="bottom"}=e,{userId:a}=(0,N.useAuth)(),{control:s}=(0,u.xW)(),{append:i,prepend:l}=(0,u.jz)({control:s,name:"questions"}),r=(0,c.useCallback)(e=>"bottom"===t?i(e):l(e),[i,l,t]),{questionsLimitReached:o}=e6();return(0,n.jsxs)(T.FlexBox,{gap1:!0,alignCenter:!0,noShrink:!0,id:"add-new-question--".concat(t),"data-sentry-element":"FlexBox","data-sentry-component":"AddNewQuestion","data-sentry-source-file":"AddNewQuestion.tsx",children:[(0,n.jsxs)(T.FlexBox,{"data-sentry-element":"FlexBox","data-sentry-source-file":"AddNewQuestion.tsx",children:[(0,n.jsx)(E.A,{variant:"contained",size:"small",onClick:()=>r({type:h.FeedbackQuestionTypes.TEXT,created_by:a,updated_by:a,id:(0,U.uR)(),data:{question:{body:""}}}),disabled:o,sx:{borderTopRightRadius:0,borderBottomRightRadius:0,pr:1},"data-sentry-element":"Button","data-sentry-source-file":"AddNewQuestion.tsx",children:"Text"}),(0,n.jsx)($.A,{orientation:"vertical",sx:{bgcolor:!o&&"primary.dark"},"data-sentry-element":"Divider","data-sentry-source-file":"AddNewQuestion.tsx"}),(0,n.jsx)(E.A,{variant:"contained",size:"small",onClick:()=>r({type:h.FeedbackQuestionTypes.TEXT_MULTILINE,created_by:a,updated_by:a,id:(0,U.uR)(),data:{question:{body:""}}}),disabled:o,sx:{borderTopLeftRadius:0,borderBottomLeftRadius:0,pl:1},"data-sentry-element":"Button","data-sentry-source-file":"AddNewQuestion.tsx",children:"Multi line"})]}),(0,n.jsxs)(T.FlexBox,{"data-sentry-element":"FlexBox","data-sentry-source-file":"AddNewQuestion.tsx",children:[(0,n.jsx)(E.A,{variant:"contained",size:"small",sx:{borderTopRightRadius:0,borderBottomRightRadius:0,pr:1},disabled:o,onClick:()=>r({type:h.FeedbackQuestionTypes.SINGLE_SELECT,created_by:a,updated_by:a,id:(0,U.uR)(),data:{question:{body:""},options:[]}}),"data-sentry-element":"Button","data-sentry-source-file":"AddNewQuestion.tsx",children:"Single-Choice"}),(0,n.jsx)($.A,{orientation:"vertical",sx:{bgcolor:!o&&"primary.dark"},"data-sentry-element":"Divider","data-sentry-source-file":"AddNewQuestion.tsx"}),(0,n.jsx)(E.A,{variant:"contained",size:"small",sx:{borderTopLeftRadius:0,borderBottomLeftRadius:0,pl:1},disabled:o,onClick:()=>r({type:h.FeedbackQuestionTypes.SINGLE_SELECT_GRID,created_by:a,updated_by:a,id:(0,U.uR)(),data:{title:{body:""},options:[],questions:[]}}),"data-sentry-element":"Button","data-sentry-source-file":"AddNewQuestion.tsx",children:"Group"})]}),(0,n.jsx)(E.A,{variant:"contained",size:"small",onClick:()=>r({type:h.FeedbackQuestionTypes.MULTIPLE_CHOICE,created_by:a,updated_by:a,id:(0,U.uR)(),data:{question:{body:""},options:[]}}),disabled:o,"data-sentry-element":"Button","data-sentry-source-file":"AddNewQuestion.tsx",children:"Multi-Choice"}),(0,n.jsxs)(T.FlexBox,{"data-sentry-element":"FlexBox","data-sentry-source-file":"AddNewQuestion.tsx",children:[(0,n.jsx)(E.A,{variant:"contained",size:"small",sx:{borderTopRightRadius:0,borderBottomRightRadius:0,pr:1},disabled:o,onClick:()=>r({type:h.FeedbackQuestionTypes.RATING,created_by:a,updated_by:a,id:(0,U.uR)(),data:{question:{body:""},start:1,end:5,step:1}}),"data-sentry-element":"Button","data-sentry-source-file":"AddNewQuestion.tsx",children:"Rating"}),(0,n.jsx)($.A,{orientation:"vertical",sx:{bgcolor:!o&&"primary.dark"},"data-sentry-element":"Divider","data-sentry-source-file":"AddNewQuestion.tsx"}),(0,n.jsx)(E.A,{variant:"contained",size:"small",sx:{borderTopLeftRadius:0,borderBottomLeftRadius:0,pl:1},disabled:o,onClick:()=>r({type:h.FeedbackQuestionTypes.RATING_GRID,created_by:a,updated_by:a,id:(0,U.uR)(),data:{title:{body:""},questions:[],start:1,end:5,step:1}}),"data-sentry-element":"Button","data-sentry-source-file":"AddNewQuestion.tsx",children:"Group"})]})]})};var e8=a(32849),e9=a(8389),te=a(53788),tt=a(18660);let ta=e=>{let{index:t}=e,{control:a}=(0,u.xW)(),{remove:s}=(0,u.jz)({control:a,name:"questions"});return(0,n.jsx)(ed.A,{size:"small",onClick:()=>s(t),"data-sentry-element":"IconButton","data-sentry-component":"DeleteQuestion","data-sentry-source-file":"DeleteQuestion.tsx",children:(0,n.jsx)(es.A,{fontSize:"small","data-sentry-element":"CloseRounded","data-sentry-source-file":"DeleteQuestion.tsx"})})};var tn=a(85863);let ts=e=>{let{index:t,type:a,children:s}=e;
1return(0,n.jsxs)(T.FlexBox,{col:!0,gap:2,fullWidth:!0,p:2,"data-sentry-element":"FlexBox","data-sentry-component":"QuestionHeaderWrapper","data-sentry-source-file":"QuestionHeaderWrapper.tsx",children:[(0,n.jsxs)(T.FlexBox,{alignCenter:!0,justifyBetween:!0,mx:-2,mt:-2,py:1/3,px:2,bgcolor:(0,er.X4)(tn.Vv[a].color,.2),"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionHeaderWrapper.tsx",children:[(0,n.jsx)(P.Line,{color:(0,er.a)(tn.Vv[a].color,.5),bold:!0,tiny:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionHeaderWrapper.tsx",children:tn.Vv[a].header}),(0,n.jsx)(T.FlexBox,{alignCenter:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionHeaderWrapper.tsx",children:(0,n.jsx)(ta,{index:t,"data-sentry-element":"DeleteQuestion","data-sentry-source-file":"QuestionHeaderWrapper.tsx"})})]}),s]})},ti=e=>{var t,a,s,i,l,r,o,d,c,x,m,p,y;let{index:f}=e,{watch:g,setValue:v,formState:{errors:b}}=(0,u.xW)(),j="questions.".concat(f),A=e=>"".concat(j,".").concat(e),w=g(j),{validateOptions:F,validateQuestion:B}=H(f,w.data,h.FeedbackQuestionTypes.MULTIPLE_CHOICE);if(!(null==w?void 0:w.data))return null;let L=e=>{if(e.key&&"Enter"!==e.key)return;let t=e.target;
1t.value&&(v(A("data.options"),[...w.data.options,(0,tn.Bl)(t.value)]),t.value="",F())};return(0,n.jsx)(ts,{index:f,type:h.FeedbackQuestionTypes.MULTIPLE_CHOICE,"data-sentry-element":"QuestionHeaderWrapper","data-sentry-component":"QuestionMultiChoice","data-sentry-source-file":"QuestionMultiChoice.tsx",children:(0,n.jsxs)(T.FlexBox,{col:!0,gap:2,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionMultiChoice.tsx",children:[(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionMultiChoice.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionMultiChoice.tsx",children:"Define the question"}),(0,n.jsx)(J.A,{size:"small",placeholder:"Define question",value:w.data.question.body,onChange:e=>{v(A("data.question.body"),e.target.value),B()},error:!!(null==b||null==(s=b.questions)||null==(a=s[f])||null==(t=a.data)?void 0:t.question),helperText:null==b||null==(o=b.questions)||null==(r=o[f])||null==(l=r.data)||null==(i=l.question)?void 0:i.message,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionMultiChoice.tsx"})]}),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionMultiChoice.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionMultiChoice.tsx",children:"Reviewers can choose multiple options"}),(0,n.jsxs)(T.FlexBox,{gap1:!0,col:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionMultiChoice.tsx",children:[w.data.options.map((e,t)=>(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,children:[(0,n.jsx)(te.A,{fontSize:"small"}),(0,n.jsx)(P.Line,{children:e.label}),(0,n.jsx)(ed.A,{size:"small",onClick:()=>{v(A("data.options"),(0,tt.A)(t,1,w.data.options)),F()},children:(0,n.jsx)(es.A,{fontSize:"small"})})]},e.key)),(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionMultiChoice.tsx",children:[(0,n.jsx)(J.A,{size:"small",placeholder:"Add option",InputProps:{startAdornment:(0,n.jsx)(ex.A,{fontSize:"inherit",sx:{mr:1}}),endAdornment:(0,n.jsx)(em.A,{fontSize:"inherit",sx:{ml:2}})},onKeyUp:L,onBlur:L,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionMultiChoice.tsx"}),(null==b||null==(x=b.questions)||null==(c=x[f])||null==(d=c.data)?void 0:d.options)&&(0,n.jsx)(P.Line,{color:"error",children:null==b||null==(y=b.questions)||null==(p=y[f])||null==(m=p.data)?void 0:m.options.message})]})]})]})]})})},tl=e=>{var t,a,s,i,l,r,o;let{index:d}=e,{watch:c,setValue:x,formState:{errors:m}}=(0,u.xW)(),p="questions.".concat(d),y=c(p),{validateQuestion:f}=H(d,y.data,h.FeedbackQuestionTypes.TEXT_MULTILINE);return(null==y?void 0:y.data)?(0,n.jsx)(ts,{index:d,type:h.FeedbackQuestionTypes.TEXT_MULTILINE,"data-sentry-element":"QuestionHeaderWrapper","data-sentry-component":"QuestionMultiLineText","data-sentry-source-file":"QuestionMultiLineText.tsx",children:(0,n.jsx)(J.A,{multiline:!0,placeholder:"Define question",value:y.data.question.body,onChange:e=>{x("".concat(p,".").concat("data.question.body"),e.target.value),f()},error:!!(null==m||null==(s=m.questions)||null==(a=s[d])||null==(t=a.data)?void 0:t.question),helperText:null==m||null==(o=m.questions)||null==(r=o[d])||null==(l=r.data)||null==(i=l.question)?void 0:i.message,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionMultiLineText.tsx"})}):null},tr=e=>{var t,a,s,i,l,r,o;let{index:d}=e,{watch:c,setValue:x,formState:{errors:m}}=(0,u.xW)(),p="questions.".concat(d),y=c(p),{validateQuestion:f}=H(d,y.data,h.FeedbackQuestionTypes.TEXT);return(null==y?void 0:y.data)?(0,n.jsx)(ts,{index:d,type:h.FeedbackQuestionTypes.TEXT,"data-sentry-element":"QuestionHeaderWrapper","data-sentry-component":"QuestionPlainText","data-sentry-source-file":"QuestionPlainText.tsx",children:(0,n.jsx)(J.A,{placeholder:"Define question",value:y.data.question.body,onChange:e=>{x("".concat(p,".").concat("data.question.body"),e.target.value),f()},error:!!(null==m||null==(s=m.questions)||null==(a=s[d])||null==(t=a.data)?void 0:t.question),helperText:null==m||null==(o=m.questions)||null==(r=o[d])||null==(l=r.data)||null==(i=l.question)?void 0:i.message,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionPlainText.tsx"})}):null};var to=a(62684),td=a(49943);let tc=e=>{var t,a,s,i,l,r,o;let{index:d}=e,c=(0,Q.A)(),{watch:x,setValue:m,formState:{errors:p}}=(0,u.xW)(),y="questions.".concat(d),f=e=>"".concat(y,".").concat(e),g=x(y),{validateQuestion:v}=H(d,g.data,h.FeedbackQuestionTypes.RATING);if(!(null==g?void 0:g.data))return null;let b=(0,td.AP)(g.data.end-g.data.start+1,e=>e*g.data.step+g.data.start),j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return a=>{var n;if(void 0!==t)return void m(f("data.".concat(e)),t);m(f("data.".concat(e)),""===(n=a.target.value)?"":Number(n))}};return(0,n.jsxs)(ts,{index:d,type:h.FeedbackQuestionTypes.RATING,"data-sentry-element":"QuestionHeaderWrapper","data-sentry-component":"QuestionRatings","data-sentry-source-file":"QuestionRatings.tsx",children:[(0,n.jsxs)(T.FlexBox,{
1col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatings.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionRatings.tsx",children:"Define the question"}),(0,n.jsx)(J.A,{size:"small",placeholder:"Define question",value:g.data.question.body,onChange:e=>{m(f("data.question.body"),e.target.value),v()},error:!!(null==p||null==(s=p.questions)||null==(a=s[d])||null==(t=a.data)?void 0:t.question),helperText:null==p||null==(o=p.questions)||null==(r=o[d])||null==(l=r.data)||null==(i=l.question)?void 0:i.message,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionRatings.tsx"})]}),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatings.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionRatings.tsx",children:"Reviewers can select one value"}),(0,n.jsx)(T.FlexBox,{gap:"".concat(c.spacing(1)," ").concat(c.spacing(3)),wrap:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatings.tsx",children:b.slice(0,100).map(e=>(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,children:[(0,n.jsx)(to.A,{fontSize:"small"}),(0,n.jsx)(P.Line,{children:e})]},e))})]}),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatings.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionRatings.tsx",children:"Set range"}),(0,n.jsxs)(T.FlexBox,{gap1:!0,maxWidth:"300px","data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatings.tsx",children:[(0,n.jsx)(J.A,{type:"number",label:"Min",size:"small",value:g.data.start,onBlur:e=>e.target.value?null:j("start",0),onChange:j("start"),"data-sentry-element":"TextField","data-sentry-source-file":"QuestionRatings.tsx"}),(0,n.jsx)(J.A,{error:g.data.end<g.data.start,onBlur:e=>e.target.value?null:m(f("data.end"),0),type:"number",label:"Max",size:"small",value:g.data.end,onChange:j("end"),"data-sentry-element":"TextField","data-sentry-source-file":"QuestionRatings.tsx"})]}),g.data.end<g.data.start?(0,n.jsxs)(P.Line,{error:!0,children:[(0,n.jsx)("em",{children:"Max"})," value cannot be smaller than the ",(0,n.jsx)("em",{children:"Min"})," value"]}):g.data.end-g.data.start>=100?(0,n.jsxs)(P.Line,{error:!0,children:[(0,n.jsx)("em",{children:"Effective range"})," cannot be greater than 100"]}):null]})]})},tu=e=>{var t,a,s,i,l,r,o,d,c,x,m,p,y,f;let{index:g}=e,{watch:v,setValue:b,formState:{errors:j}}=(0,u.xW)(),A="questions.".concat(g),w=e=>"".concat(A,".").concat(e),F=v(A),{validateTitle:B,validateQuestions:L}=H(g,F.data,h.FeedbackQuestionTypes.RATING_GRID),{questionsLimitReached:C,showQuestionLimitReachedToast:k}=e6();if(!(null==F?void 0:F.data))return null;let q=(0,td.AP)(F.data.end-F.data.start+1,e=>e*F.data.step+F.data.start),S=(null==j||null==(s=j.questions)||null==(a=s[g])||null==(t=a.data)?void 0:t.questions)||(null==j?void 0:j.questions),M=e=>{if(e.key&&"Enter"!==e.key)return;let t=e.target;if(t.value){if(C)return k();b(w("data.questions"),[...F.data.questions,(0,tn.az)(t.value)]),t.value="",L()}},R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return a=>{var n;if(void 0!==t)return void b(w("data.".concat(e)),t);b(w("data.".concat(e)),""===(n=a.target.value)?"":Number(n))}};return(0,n.jsxs)(ts,{index:g,type:h.FeedbackQuestionTypes.RATING_GRID,"data-sentry-element":"QuestionHeaderWrapper","data-sentry-component":"QuestionRatingsGrid","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:[(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:"Define the main question for this group"}),(0,n.jsx)(J.A,{size:"small",placeholder:"Define question",value:F.data.title.body,onChange:e=>{b(w("data.title.body"),e.target.value),B()},error:!!(null==j||null==(r=j.questions)||null==(l=r[g])||null==(i=l.data)?void 0:i.title),helperText:null==j||null==(x=j.questions)||null==(c=x[g])||null==(d=c.data)||null==(o=d.title)?void 0:o.message,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionRatingsGrid.tsx"})]}
1),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:"Define sub-questions for this group"}),(0,n.jsxs)(T.FlexBox,{gap1:!0,col:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:[F.data.questions.map((e,t)=>(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,children:[(0,n.jsx)(P.Line,{children:e.body}),(0,n.jsx)(ed.A,{size:"small",onClick:()=>{b(w("data.questions"),(0,tt.A)(t,1,F.data.questions)),L()},children:(0,n.jsx)(es.A,{fontSize:"small"})})]},e.key)),(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:[(0,n.jsx)(J.A,{size:"small",placeholder:"Add sub-question",InputProps:{startAdornment:(0,n.jsx)(ex.A,{fontSize:"inherit",sx:{mr:1}}),endAdornment:(0,n.jsx)(em.A,{fontSize:"inherit",sx:{ml:2}})},onKeyUp:M,onBlur:M,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionRatingsGrid.tsx"}),S&&(0,n.jsx)(P.Line,{color:"error",children:null==j||null==(f=j.questions)||null==(y=f[g])||null==(p=y.data)||null==(m=p.questions)?void 0:m.message})]})]})]}),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:"Reviewers can select one value"}),(0,n.jsx)(T.FlexBox,{gap:3,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:q.slice(0,100).map(e=>(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,children:[(0,n.jsx)(to.A,{fontSize:"small"}),(0,n.jsx)(P.Line,{children:e})]},e))})]}),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:[(0,n.jsx)(P.Line,{white:!0,semibold:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:"Set range"}),(0,n.jsxs)(T.FlexBox,{gap1:!0,maxWidth:"300px","data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionRatingsGrid.tsx",children:[(0,n.jsx)(J.A,{type:"number",label:"Min",size:"small",value:F.data.start,onBlur:e=>e.target.value?null:R("start",0),onChange:R("start"),"data-sentry-element":"TextField","data-sentry-source-file":"QuestionRatingsGrid.tsx"}),(0,n.jsx)(J.A,{error:F.data.end<F.data.start,onBlur:e=>e.target.value?null:b(w("data.end"),0),type:"number",label:"Max",size:"small",value:F.data.end,onChange:R("end"),"data-sentry-element":"TextField","data-sentry-source-file":"QuestionRatingsGrid.tsx"})]}),F.data.end<F.data.start?(0,n.jsxs)(P.Line,{error:!0,children:[(0,n.jsx)("em",{children:"Max"})," value cannot be smaller than the ",(0,n.jsx)("em",{children:"Min"})," value"]}):F.data.end-F.data.start>=100?(0,n.jsxs)(P.Line,{error:!0,children:[(0,n.jsx)("em",{children:"Effective range"})," cannot be greater than 100"]}):null]})]})};var tx=a(40552);let tm=e=>{var t,a,s,i,l,r,o,d,c,x,m,p,y;let{index:f}=e,g=(0,Q.A)(),{watch:v,setValue:b,formState:{errors:j}}=(0,u.xW)(),A="questions.".concat(f),w=e=>"".concat(A,".").concat(e),F=v(A),{validateQuestion:B,validateOptions:L}=H(f,F.data,h.FeedbackQuestionTypes.SINGLE_SELECT);if(!(null==F?void 0:F.data))return null;let C=e=>{if(e.key&&"Enter"!==e.key)return;let t=e.target;
1t.value&&(b(w("data.options"),[...F.data.options,(0,tn.Bl)(t.value)]),t.value="",L())};return(0,n.jsxs)(ts,{index:f,type:h.FeedbackQuestionTypes.SINGLE_SELECT,"data-sentry-element":"QuestionHeaderWrapper","data-sentry-component":"QuestionSingleChoice","data-sentry-source-file":"QuestionSingleChoice.tsx",children:[(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoice.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionSingleChoice.tsx",children:"Define the question"}),(0,n.jsx)(J.A,{size:"small",placeholder:"Define question",value:F.data.question.body,onChange:e=>{b(w("data.question.body"),e.target.value),B()},error:!!(null==j||null==(s=j.questions)||null==(a=s[f])||null==(t=a.data)?void 0:t.question),helperText:null==j||null==(o=j.questions)||null==(r=o[f])||null==(l=r.data)||null==(i=l.question)?void 0:i.message,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionSingleChoice.tsx"})]}),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoice.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionSingleChoice.tsx",children:"Reviewers can select one option"}),(0,n.jsxs)(T.FlexBox,{gap:"".concat(g.spacing(1)," ").concat(g.spacing(3)),wrap:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoice.tsx",children:[F.data.options.map((e,t)=>(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,children:[(0,n.jsx)(to.A,{fontSize:"small"}),(0,n.jsx)(P.Line,{children:e.label}),(0,n.jsx)(ed.A,{size:"small",onClick:()=>{b(w("data.options"),(0,tt.A)(t,1,F.data.options)),L()},children:(0,n.jsx)(es.A,{fontSize:"small"})})]},e.key)),(0,n.jsx)(T.FlexBox,{"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoice.tsx",children:(0,n.jsx)(J.A,{size:"small",placeholder:"Add option",InputProps:{startAdornment:(0,n.jsx)(ex.A,{fontSize:"inherit",sx:{mr:1}}),endAdornment:(0,n.jsx)(em.A,{fontSize:"inherit",sx:{ml:2}})},onKeyUp:C,onBlur:C,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionSingleChoice.tsx"})}),(0,n.jsx)(T.FlexBox,{alignCenter:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoice.tsx",children:(null==j||null==(x=j.questions)||null==(c=x[f])||null==(d=c.data)?void 0:d.options)&&(0,n.jsx)(tx.A,{color:"error",children:null==j||null==(y=j.questions)||null==(p=y[f])||null==(m=p.data)?void 0:m.options.message})})]})]})]})},tp=e=>{var t,a,s,i,l,r,o,d,c,x,m,p,y,f,g,v,b,j,A;let{index:w}=e,F=(0,Q.A)(),{watch:B,setValue:L,formState:{errors:C}}=(0,u.xW)(),k="questions.".concat(w),q=e=>"".concat(k,".").concat(e),S=B(k),{validateOptions:M,validateQuestions:R,validateTitle:E}=H(w,S.data,h.FeedbackQuestionTypes.SINGLE_SELECT_GRID),{questionsLimitReached:_,showQuestionLimitReachedToast:I}=e6();if(!(null==S?void 0:S.data))return null;let D=e=>{if(e.key&&"Enter"!==e.key)return;let t=e.target;if(t.value){if(_)return I();L(q("data.questions"),[...S.data.questions,(0,tn.az)(t.value)]),t.value="",R()}},z=e=>{if(e.key&&"Enter"!==e.key)return;let t=e.target;
1t.value&&(L(q("data.options"),[...S.data.options,(0,tn.Bl)(t.value)]),t.value="",M())};return(0,n.jsxs)(ts,{index:w,type:h.FeedbackQuestionTypes.SINGLE_SELECT_GRID,"data-sentry-element":"QuestionHeaderWrapper","data-sentry-component":"QuestionSingleChoiceGrid","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:[(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:"Define the question for this group"}),(0,n.jsx)(J.A,{size:"small",placeholder:"Define question",value:S.data.title.body,onChange:e=>{L(q("data.title.body"),e.target.value),E()},error:!!(null==C||null==(s=C.questions)||null==(a=s[w])||null==(t=a.data)?void 0:t.title),helperText:null==C||null==(o=C.questions)||null==(r=o[w])||null==(l=r.data)||null==(i=l.title)?void 0:i.message,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx"})]}),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:"Define sub-questions for this group"}),(0,n.jsxs)(T.FlexBox,{gap1:!0,col:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:[S.data.questions.map((e,t)=>(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,children:[(0,n.jsx)(P.Line,{children:e.body}),(0,n.jsx)(ed.A,{size:"small",onClick:()=>{L(q("data.questions"),(0,tt.A)(t,1,S.data.questions)),R()},children:(0,n.jsx)(es.A,{fontSize:"small"})})]},e.key)),(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:[(0,n.jsx)(J.A,{size:"small",placeholder:"Add sub-question",InputProps:{startAdornment:(0,n.jsx)(ex.A,{fontSize:"inherit",sx:{mr:1}}),endAdornment:(0,n.jsx)(em.A,{fontSize:"inherit",sx:{ml:2}})},onKeyUp:D,onBlur:D,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx"}),(null==C||null==(x=C.questions)||null==(c=x[w])||null==(d=c.data)?void 0:d.questions)&&(0,n.jsx)(P.Line,{color:"error",children:null==C||null==(y=C.questions)||null==(p=y[w])||null==(m
1=p.data)?void 0:m.questions.message})]})]})]}),(0,n.jsxs)(T.FlexBox,{col:!0,gap1:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:[(0,n.jsx)(P.Line,{semibold:!0,white:!0,"data-sentry-element":"Line","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:"Reviewers can select one option for each sub-question"}),(0,n.jsxs)(T.FlexBox,{gap:"".concat(F.spacing(1)," ").concat(F.spacing(3)),wrap:!0,alignCenter:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:[S.data.options.map((e,t)=>(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap1:!0,children:[(0,n.jsx)(to.A,{fontSize:"small"}),(0,n.jsx)(P.Line,{children:e.label}),(0,n.jsx)(ed.A,{size:"small",onClick:()=>{L(q("data.options"),(0,tt.A)(t,1,S.data.options)),M()},children:(0,n.jsx)(es.A,{fontSize:"small"})})]},e.key)),(0,n.jsx)(T.FlexBox,{"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx",children:(0,n.jsx)(J.A,{size:"small",placeholder:"Add option",InputProps:{startAdornment:(0,n.jsx)(ex.A,{fontSize:"inherit",sx:{mr:1}}),endAdornment:(0,n.jsx)(em.A,{fontSize:"inherit",sx:{ml:2}})},onKeyUp:z,onBlur:z,"data-sentry-element":"TextField","data-sentry-source-file":"QuestionSingleChoiceGrid.tsx"})}),(null==C||null==(v=C.questions)||null==(g=v[w])||null==(f=g.data)?void 0:f.options)&&(0,n.jsx)(P.Line,{color:"error",children:null==C||null==(A=C.questions)||null==(j=A[w])||null==(b=j.data)?void 0:b.options.message})]})]})]})},ty=e=>{let{index:t,type:a,provided:s}=e,i=(0,Q.A)(),l=(0,c.useMemo)(()=>{switch(a){case h.FeedbackQuestionTypes.TEXT:return(0,n.jsx)(tr,{index:t});case h.FeedbackQuestionTypes.TEXT_MULTILINE:return(0,n.jsx)(tl,{index:t});case h.FeedbackQuestionTypes.SINGLE_SELECT:return(0,n.jsx)(tm,{index:t});case h.FeedbackQuestionTypes.SINGLE_SELECT_GRID:return(0,n.jsx)(tp,{index:t});case h.FeedbackQuestionTypes.MULTIPLE_CHOICE:return(0,n.jsx)(ti,{index:t});case h.FeedbackQuestionTypes.RATING:return(0,n.jsx)(tc,{index:t});case h.FeedbackQuestionTypes.RATING_GRID:return(0,n.jsx)(tu,{index:t});default:return null}},[a,t]);return(0,n.jsxs)(T.FlexBox,{mt:2*(t>0),component:e4.A,alignCenter:!0,ref:s.innerRef,...s.draggableProps,"data-sentry-element":"FlexBox","data-sentry-component":"DraggableWrapper","data-sentry-source-file":"DraggableWrapper.tsx",children:[(0,n.jsxs)(T.FlexBox,{...s.dragHandleProps,centered:!0,px:.5,bgcolor:i.colors.secondary.lighter,col:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"DraggableWrapper.tsx",children:[(0,n.jsx)(e8.A,{sx:{opacity:.7,transform:"scale(0.6)"},"data-sentry-element":"ArrowUpwardRounded","data-sentry-source-file":"DraggableWrapper.tsx"}),(0,n.jsx)(e9.A,{sx:{opacity:.8,transform:"scale(0.8)"},"data-sentry-element":"DragIndicatorIcon","data-sentry-source-file":"DraggableWrapper.tsx"}),(0,n.jsx)(eM.A,{sx:{opacity:.7,transform:"scale(0.6)"},"data-sentry-element":"ArrowDownwardRounded","data-sentry-source-file":"DraggableWrapper.tsx"})]}),l]})},th=()=>{let e=(0,Q.A)(),{watch:t,control:a}=(0,u.xW)(),{move:s}=(0,u.jz)({control:a,name:"questions"}),i=t("questions"),{questionsLimitReached:l}=e6();return(0,n.jsx)(e7.JY,{onDragEnd:e=>s(e.source.index,e.destination.index),"data-sentry-element":"DragDropContext","data-sentry-component":"QuestionnaireSection","data-sentry-source-file":"QuestionnaireSection.tsx",children:(0,n.jsxs)(T.FlexBox,{alignBase:!0,col:!0,"data-sentry-element":"FlexBox","data-sentry-source-file":"QuestionnaireSection.tsx",children:[(0,n.jsx)(P.Line,{white:!0,bold:!0,big:!0,p:2,sx:{borderTopLeftRadius:e.spacing(1),borderTopRightRadius:e.spacing(1),boxShadow:"none",border:"1px solid ".concat(e.colors.secondary.light),borderBottom:0},"data-sentry-element":"Line","data-sentry-source-file":"QuestionnaireSection.tsx",children:"Questionnaire"}),(0,n.jsx)(e7.gL,{droppableId:"droppable-list","data-sentry-element":"Droppable","data-sentry-source-file":"QuestionnaireSection.tsx",children:t=>(0,n.jsx)(T.FlexBox,{p:2,pt:2,component:e4.A,bgcolor:"transparent",fullWidth:!0,col:!0,gap:2,sx:{borderTopLeftRadius:0,boxShadow:"none",border:"1px solid ".concat(e.colors.secondary.light)},...t.droppableProps,ref:t.innerRef,children:(0,n.jsxs)(T.FlexBox,{gap:2,col:!0,children:[(0,n.jsxs)(T.FlexBox,{gap:"".concat(e.spacing(1)," ").concat(e.spacing(4)),alignCenter:!0,wrap:!0,children:[(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap:2,children:[(0,n.jsx)(ex.A,{fontSize:"small",color:"info"}),(0,n.jsxs)(P.Line,{bigish:!0,white:!0,semibold:!0,noWrap:!0,children:["Add a question"," ",!!(null==i?void 0:i.length)&&"to the top"]})]}),(0,n.jsx)(e5,{side:"top"})]}),l&&(0,n.jsxs)(P.Line,{color:"error",fontSize:"small",children:["Max ",100," questions or sub-questions can be added."]}
1),(0,n.jsx)(T.FlexBox,{col:!0,id:"questions-wrapper",children:(null==i?void 0:i.length)?null==i?void 0:i.map((e,t)=>(0,n.jsx)(e7.sx,{draggableId:e.id,index:t,children:a=>(0,n.jsx)(ty,{index:t,type:e.type,provided:a})},e.id)):(0,n.jsx)(P.Line,{white:!0,medium:!0,children:"No questions added. Add the first one using one of the buttons above."})}),!!(null==i?void 0:i.length)&&(0,n.jsxs)(T.FlexBox,{gap:"".concat(e.spacing(1)," ").concat(e.spacing(4)),alignCenter:!0,wrap:!0,children:[(0,n.jsxs)(T.FlexBox,{alignCenter:!0,gap:2,children:[(0,n.jsx)(ex.A,{fontSize:"small",color:"info"}),(0,n.jsx)(P.Line,{bigish:!0,white:!0,semibold:!0,noWrap:!0,children:"Add a question to the end"})]}),(0,n.jsx)(e5,{side:"bottom"})]}),l&&(0,n.jsxs)(P.Line,{color:"error",fontSize:"small",children:["Max ",100," questions or sub-questions can be added."]})]})})})]})})},tf=()=>{let e=(0,R.useSelector)(e=>e.feedbackCycle.activeQuestionnaire||{});return(0,R.useSelector)(e=>{var t;return(null==(t=e.feedbackCycle.requests)?void 0:t.activeFeedbackCycle)===M.e.REQUEST})&&(0,q.I)(e)?(0,n.jsx)(S.J,{label:"Fetching feedback cycle"}):(0,n.jsxs)(T.FlexBox,{col:!0,gap:2,maxWidth:"900px","data-sentry-element":"FlexBox","data-sentry-component":"ViewFormBody","data-sentry-source-file":"ViewFormBody.tsx",children:[(0,n.jsx)(e3,{"data-sentry-element":"QuestionnaireMeta","data-sentry-source-file":"ViewFormBody.tsx"}),(0,n.jsx)(th,{"data-sentry-element":"QuestionnaireSection","data-sentry-source-file":"ViewFormBody.tsx"}),(0,n.jsx)(X,{"data-sentry-element":"FormActions","data-sentry-source-file":"ViewFormBody.tsx"})]})},tg=()=>{let e=(0,R.useDispatch)(),{userId:t}=(0,N.useAuth)(),{cycleId:a}=(0,d.useRouter)().query,s=(0,u.mN)({resolver:(0,r.t)(k),mode:"onChange",defaultValues:{name:""}}),i=(0,R.useSelector)(e=>e.feedbackCycle.activeFeedbackCycle),l=(0,R.useSelector)(e=>e.feedbackCycle.activeQuestionnaire);return(0,c.useEffect)(()=>{t&&a&&e((0,O.gW)({user_id:t,feedback_cycle_id:a}))},[a,e,t]),(0,c.useEffect)(()=>{i&&l&&s.reset({name:i.name,description:i.description,startDate:new Date(i.start_date),endDate:new Date(i.end_date),reviewObservers:i.review_observers,reviewerRevieweeMapping:l.recipient_reviewer_mappings,anonymous:l.allow_anonymous_reviews,questions:l.questions})},[s,i,l]),(0,n.jsxs)(u.Op,{...s,"data-sentry-element":"FormProvider","data-sentry-component":"View","data-sentry-source-file":"View.tsx",children:[(0,n.jsx)(p.Z,{"data-sentry-element":"PageTitleWrapper","data-sentry-source-file":"View.tsx",children:(0,n.jsx)(m.A,{icon:(0,n.jsx)(o.A,{}),title:"Feedback Cycle -> View: ".concat((null==i?void 0:i.name)||"Fetching Name"),"data-sentry-element":"PageHeader","data-sentry-source-file":"View.tsx"})}),(0,n.jsx)(x.s,{"data-sentry-element":"PageContentWrapper","data-sentry-source-file":"View.tsx",children:(0,n.jsx)(tf,{"data-sentry-element":"ViewFormBody","data-sentry-source-file":"View.tsx"})})]})};function tv(){return(0,l.N)("feedback_cycle"),(0,n.jsx)(tg,{"data-sentry-element":"View","data-sentry-component":"Page","data-sentry-source-file":"[cycleId].tsx"})}tv.getLayout=e=>(0,n.jsx)(s.Y,{children:(0,n.jsx)(i.A,{children:e})});let tb=tv},45532:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/growth/feedback-cycle/[cycleId]",function(){return a(5492)}])},73255:(e,t,a)=>{"use strict";a.d(t,{a:()=>n.A});var n=a(44167)},85863:(e,t,a)=>{"use strict";a.d(t,{Bl:()=>c,Vv:()=>d,az:()=>u});var n=a(37876),s=a(71733),i=a(84340),l=a(99845),r=a(15246),o=a(59060);let d={[r.FeedbackQuestionTypes.TEXT]:{color:l.kY.info,pill:(0,n.jsx)(s.A,{label:"Simple text question"}),header:(0,n.jsxs)(i.Line,{children:["Simple text question"," ",(0,n.jsx)(i.Line,{fontSize:"smaller",medium:!0,children:"(for short/one-line answers)"})]})},[r.FeedbackQuestionTypes.TEXT_MULTILINE]:{color:l.I8.generic.brown,pill:(0,n.jsx)(s.A,{label:"Long text question"}),header:(0,n.jsxs)(i.Line,{children:["Long text question"," ",(0,n.jsx)(i.Line,{fontSize:"smaller",medium:!0,children:"(for lengthly answers, that require details)"})]})},[r.FeedbackQuestionTypes.SINGLE_SELECT]:{color:l.I8.branch.custom,pill:(0,n.jsx)(s.A,{label:"Single-choice question"}),header:(0,n.jsxs)(i.Line,{children:["Single-choice question"," ",(0,n.jsx)(i.Line,{fontSize:"smaller",medium:!0,children:"(users can select one option)"})]})},[r.FeedbackQuestionTypes.SINGLE_SELECT_GRID]:{color:l.I8.meet.scheduled,pill:(0,n.jsx)(s.A,{label:"Group of single-choice questions"}),header:(0,n.jsxs)(i.Line,{children:["Group of single-choice questions"," ",(0,n.jsx)(i.Line,{fontSize:"smaller",medium:!0,children:"(to combine multiple questions of a similar kind, with the same options)"})]})},[r.FeedbackQuestionTypes.MULTIPLE_CHOICE]:{color:l.I8.pr.review,pill:(0,n.jsx)(s.A,{label:"Multiple-choice question"}),header:(0,n.jsxs)(i.Line,{children:["Multiple-choice question"," ",(0,n.jsx)(i.Line,{fontSize:"smaller",medium:!0,children:"(users can select multiple options)"})]})},[r.FeedbackQuestionTypes.RATING]:{color:l.I8.ticketState.done,pill:(0,n.jsx)(s.A,{label:"Ratings question"}),header:(0,n.jsxs)(i.Line,{children:["Ratings question"," ",(0,n.jsx)(i.Line,{fontSize:"smaller",medium:!0,children:"(to get graded answers/opinions to a question)"})]})},[r.FeedbackQuestionTypes.RATING_GRID]:{color:l.I8.pr.merge,pill:(0,n.jsx)(s.A,{label:"Group of ratings questions"}),header:(0,n.jsxs)(i.Line,{children:["Group of ratings questions"," ",(0,n.jsx)(i.Line,{fontSize:"smaller",medium:!0,children:"(to combine multiple questions of a similar kind, with the same options)"})]})}},c=e=>({key:(0,o.uR)(),label:e.trim()}),u=e=>({key:(0,o.uR)(),body:e.trim()})}},e=>{e.O(0,[1289,4631,1529,7135,636,6593,8792],()=>e(e.s=45532)),_N_E=e.O()}]); 2//# sourceMappingURL=[cycleId]-5b07fee692f0b65b.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.