diff --git a/build/index.html b/build/index.html index 8abdb12..e011ed9 100644 --- a/build/index.html +++ b/build/index.html @@ -1 +1,5 @@ -
>>0,i=0,l=0;0==(1&a);)if(a=P(e,n),n+=3,a>>>1!=0)for(a>>1==1?(i=9,l=5):(n=ee(e,n),i=J,l=Q);;){!t&&r
").replace(ip,(function(e){return""+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}function cp(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function mp(e){for(var t="",n=0,a=0,s=0,o=0,r=0,i=0;n22)throw new Error("Bad Code Name: Worksheet"+r)}}));for(var o=0;o"+r+"
"),a.push(function(e,t,n,a){if(!e)return"";var s=[];if(e["!margins"]&&(s.push(""+o.join("")+" "}var Yv='"}function Jv(e,t){var n=t||{},a=null!=n.header?n.header:Yv,s=null!=n.footer?n.footer:Zv,o=[a],r=Lh(e["!ref"]);n.dense=Array.isArray(e),o.push(Xv(0,0,n));for(var i=r.s.r;i<=r.e.r;++i)o.push($v(e,r,i,n));return o.push("
"+s),o.join("")}function Qv(e,t,n){var a=n||{};var s=0,o=0;if(null!=a.origin)if("number"==typeof a.origin)s=a.origin;else{var r="string"==typeof a.origin?Rh(a.origin):a.origin;s=r.r,o=r.c}var i=t.getElementsByTagName("tr"),l=Math.min(a.sheetRows||1e7,i.length),c={s:{r:0,c:0},e:{r:s,c:o}};if(e["!ref"]){var m=Lh(e["!ref"]);c.s.r=Math.min(c.s.r,m.s.r),c.s.c=Math.min(c.s.c,m.s.c),c.e.r=Math.max(c.e.r,m.e.r),c.e.c=Math.max(c.e.c,m.e.c),-1==s&&(c.e.r=s=m.e.r+1)}var d=[],u=0,p=e["!rows"]||(e["!rows"]=[]),h=0,f=0,g=0,y=0,v=0,b=0;for(e["!cols"]||(e["!cols"]=[]);ho?.3:1}},a)}));return(0,er.jsx)("div",{className:Ux,children:c})}Zx.defaultProps={rows:[]};const Xx=Zx,Jx="line_year_chart_month_info__Cv+xl";function Qx(e){let{max:t,month:n,showEvents:a,hideMoney:s}=e,o="";n.tasks&&(o="\u2611 ".concat(n.tasks||0)),!s&&n.money&&(o="\u2611 ".concat(n.tasks||0," \u2014 ").concat(Yn(n.money||0,0)));const r=s?"tasks":"tasks and money";return(0,er.jsxs)("div",{className:Wx,children:[(0,er.jsx)(Kx,{month:n}),(0,er.jsx)(Xx,{month:n,maxCommits:t.commits,showEvents:a}),(0,er.jsx)("div",{title:r,className:Jx,children:o})]})}Qx.defaultProps={hideMoney:!1};const eT=Qx;function tT(e){let{maxCommits:n=100,showEvents:a=!0,wordDays:s=[],authors:o=[]}=e;const r=(0,t.useRef)(null),[i,l]=(0,t.useState)(16);if((0,t.useEffect)((()=>{var e;if(!r.current)return;const t=(null===(e=r.current)||void 0===e?void 0:e.getBoundingClientRect())||{},n=Math.floor(t.width/135),a=function(e,t){for(let n=16;n<=24;n+=.3)if((7+8*n)*t>e)return n-.3;return 24}(t.width,n);l(a)}),[]),!s||!s.length)return null;const c=function(e){const t={},n={};return e.forEach((e=>{if(e.isStaff)return;const a="".concat(e.firstCommit.month,"-").concat(e.firstCommit.year);t[a]||(t[a]={}),t[a][e.firstCommit.dayInMonth]=e;const s="".concat(e.lastCommit.month,"-").concat(e.lastCommit.year);n[s]||(n[s]={}),n[s][e.lastCommit.dayInMonth]=e})),{firstDay:t,lastDay:n}}(o),m=Fx(s,c),d=1===(null===o||void 0===o?void 0:o.length),u={tasks:new Ka,money:new Ka};m.forEach((e=>{u.tasks.update(e.tasks),u.money.update(e.money)}));const p=m.map((e=>(0,er.jsx)(eT,{max:{tasks:u.tasks.max,money:u.money.max,commits:n},month:e,showEvents:a,hideMoney:d},e.id))),h={"--day-size":"".concat(i.toFixed(1),"px")};return(0,er.jsx)("div",{ref:r,style:h,className:Mx,children:p})}tT.defaultProps={showEvents:!0};const nT=tT,aT=un((e=>{var t;let{mode:n}=e;const a=$o.dataGrip.author.statistic,s=$o.dataGrip.timestamp.statistic,o=s.commitsByTimestampCounter.max,r=null===(t=$o.dataGrip.recommendations.team)||void 0===t?void 0:t.byTimestamp;return(0,er.jsxs)(er.Fragment,{children:["fullscreen"!==n&&(0,er.jsx)(Iw,{mode:n,recommendations:r}),(0,er.jsx)(pm,{title:"page.team.month.title"}),(0,er.jsx)(Cc,{template:"table",children:(0,er.jsx)(nT,{maxCommits:o,authors:a,wordDays:s.allCommitsByTimestamp})})]})})),sT=aT;function oT(e,t){const n=e.map(((e,t)=>({id:t+1,title:e})));return n.unshift({id:0,title:t("page.team.tree.filters.all")}),n}const rT=un((e=>{let{filters:n,onChange:a}=e;const{t:s}=Bt(),o=$o.dataGrip.author.list,r=(0,t.useMemo)((()=>oT(o,s)),[o]),i=$o.dataGrip.company.statistic.map((e=>e.company)),l=(0,t.useMemo)((()=>oT(i,s)),[i]);return(0,er.jsxs)("div",{className:z_,children:[(0,er.jsx)(B_,{title:"page.team.tree.filters.author",value:n.user,className:U_,options:r,onChange:e=>{a({...n,user:e,company:0})}}),(0,er.jsx)(B_,{title:"page.team.tree.filters.author",value:n.company,className:U_,options:l,onChange:e=>{a({...n,user:0,company:e})}})]})})),iT=rT;function lT(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=fw({max:Lw(t,"commits"),suffix:"page.team.type.tasksSmall"});return(0,er.jsxs)(nw,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,er.jsx)(sw,{isFixed:!0,isSortable:!0,template:e=>(0,er.jsx)(Xw,{task:e}),title:"page.team.tasks.task",properties:"task",width:120}),(0,er.jsx)(sw,{properties:"types",template:e=>(0,er.jsx)(Lc,{value:e}),width:100}),(0,er.jsx)(sw,{properties:"scope",template:e=>(0,er.jsx)(Lc,{value:e}),width:100}),(0,er.jsx)(sw,{isSortable:!0,template:(e,t)=>(0,er.jsx)(Qw,{prId:null===t||void 0===t?void 0:t.prId}),properties:"task",width:40}),(0,er.jsx)(sw,{template:Dm.STRING,properties:"comments"}),(0,er.jsx)(sw,{template:Dm.STRING,title:"page.team.tasks.author",properties:"author",width:170}),(0,er.jsx)(sw,{template:Dm.STRING,title:"page.team.tasks.from",properties:"from",width:150,formatter:Kn}),(0,er.jsx)(sw,{template:Dm.STRING,title:"page.team.tasks.to",properties:"to",width:150,formatter:Kn}),(0,er.jsx)(sw,{template:Dm.STRING,title:"page.team.tasks.pr",properties:"to",width:150,formatter:Kn}),(0,er.jsx)(sw,{template:Dm.STRING,title:"page.team.tasks.prAuthor",properties:"prAuthor",width:170}),(0,er.jsx)(sw,{template:Dm.SHORT_NUMBER,properties:"commits"}),(0,er.jsx)(sw,{isSortable:!0,title:"page.team.tasks.commits",properties:"commits",minWidth:170,template:e=>(0,er.jsx)(pw,{options:o,value:e})})]})}lT.defaultProps={response:void 0};const cT=un((e=>{let{mode:n}=e;const a=$o.dataGrip.tasks.statistic,[s,o]=(0,t.useState)({user:0,company:0});return null!==a&&void 0!==a&&a.length?(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"common.filters"}),(0,er.jsx)(Cc,{children:(0,er.jsx)(iT,{filters:s,onChange:o})}),(0,er.jsxs)(nm,{to:"response",loader:(e,t)=>mm({content:a,pagination:e,sort:t,mode:n}),watch:"".concat(n).concat($o.hash),children:[(0,er.jsx)(lT,{mode:n,rowsForExcel:a}),(0,er.jsx)(cm,{})]})]}):"print"!==n?(0,er.jsx)(Kc,{}):null})),mT="GameBanner_game_banner__b5+Fg",dT="GameBanner_game_banner_description__MbaLC";const uT=function(e){let{src:t,children:n}=e;return t?(0,er.jsx)("div",{className:mT,style:{backgroundImage:"url(".concat(t,")")},children:n?(0,er.jsx)("div",{className:dT,children:n}):null}):null};function pT(e){return Math.floor(Math.random()*(e+1))}function hT(e){for(let t,n,a=e.length;a;t=parseInt(Math.random()*a),n=e[--a],e[a]=e[t],e[t]=n);return e}const fT="info_races_track_info__83WxU";const gT=function(e){let{title:t,duration:n}=e;return console.log(t),(0,er.jsx)("div",{className:fT,style:{animationDelay:"".concat(n+1,"s")},children:"4"})},yT="car_races_track_car__4-hbF",vT="car_races_track_car_title__xLQOO",bT="car_races_track_car_cover__MLOUy",wT="car_races_track_car_animation__kzPcN",kT=["ease","ease-in","ease-out","ease-in-out","linear","cubic-bezier(0.1, 0.7, 1, 0.1)"];function _T(e){let{title:n,duration:a,type:s,canStart:o}=e;const r=pT(kT.length-1),[i]=(0,t.useState)(kT[r]);(0,t.useEffect)((()=>{hT(kT)}),[]);const l=o?wT:"";return(0,er.jsxs)("div",{className:"".concat(yT," ").concat(s||""," ").concat(l||""),style:{animationTimingFunction:i,animationDuration:"".concat(a,"s")},children:[(0,er.jsx)("div",{className:"".concat(vT," ").concat(s||""),children:n}),(0,er.jsx)("img",{className:bT,src:"./assets/games/races/car.png"})]})}_T.defaultProps={type:"",canStart:!1};const xT=_T,TT="styles_races__VtaYM",ST="styles_races_green__vJq+q",CT="styles_races_track__OTXZ8",ET="styles_races_button__bvtiA",AT=10,jT=20;function NT(e){let{title:t,speed:n,type:a,canStart:s}=e;if(!t)return null;const o=AT+jT*(1-n)*3;return(0,er.jsxs)("div",{className:"".concat(CT," ").concat(a||""),style:{backgroundImage:"url(./assets/games/races/road.png)"},children:[s&&(0,er.jsx)(gT,{title:t,duration:o}),(0,er.jsx)(xT,{title:t,duration:o,type:a,canStart:s})]})}NT.defaultProps={type:"",canStart:!1};const DT=NT;const OT=function(e){let{tracks:n}=e;const{t:a}=Bt(),[s,o]=(0,t.useState)(!1),[r]=(0,t.useState)([...hT(n)]);if(!n.length)return null;const i=r.map((e=>(0,er.jsx)(DT,{title:e.title,speed:e.speed,canStart:s},e.title)));return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(uT,{src:"./assets/games/races/bg.png",children:!s&&(0,er.jsx)(or,{className:ET,onClick:()=>{o(!0)},children:a("uiKit.races.go")})}),(0,er.jsx)("div",{className:ST,style:{backgroundImage:"url(./assets/games/races/greenTop.png)"}}),(0,er.jsx)("div",{className:TT,children:i}),(0,er.jsx)("div",{className:ST,style:{backgroundImage:"url(./assets/games/races/greenBottom.png)"}})]})},PT="styles_show_symbol_wrapper__CF9a1",RT="styles_show_symbol__ABylg",IT="styles_show_symbol_s__ukgag",LT="styles_show_symbol_hide__SAUag",FT="styles_show_symbol_bg__UXOUQ",MT="styles_show_symbol_bg_hide__qEC99";const WT=function(e){let{show:n,children:a,mode:s}=e;const[o,r]=(0,t.useState)(!1);(0,t.useEffect)((()=>{r(n)}),[n]);const i=o?LT:"",l=o?MT:"",c={"table-row":IT}[s||""]||"";return(0,er.jsxs)("div",{className:"".concat(RT," ").concat(i," ").concat(c),children:[a,(0,er.jsx)("div",{className:"".concat(FT," ").concat(l),onClick:()=>r(!0)})]})};const BT=function(e){let{children:t,onClick:n,mode:a}=e;const s={"table-row":IT}[a||""]||"";return(0,er.jsx)("div",{className:"".concat(RT," ").concat(LT," ").concat(s),onClick:()=>n(),children:t})};const zT=function(e){let{text:n,length:a,mode:s}=e;const[o,r]=(0,t.useState)(!1);if((0,t.useEffect)((()=>{r(!1)}),[n]),!n&&!a)return null;const i=function(e,t){const n=(e||"").split(""),a=t?t-1:n.length-1;return n.length-1>a&&(n[a]="\u2026"),n}(n,a),l=((a?new Array(a).fill(1):null)||i).map(((e,t)=>(0,er.jsx)(WT,{mode:s,show:o,children:i[t]||""},"".concat(n,"|").concat(e,"|").concat(t))));return(0,er.jsxs)("div",{className:"".concat(PT),style:{paddingTop:"table-row"===s?"8px":0},children:[l,(0,er.jsx)(BT,{mode:s,onClick:()=>r(!0),children:"\xbb"})]})},UT="track_swimming_pool_track__Pi+9u",HT="track_swimming_pool_track_value__crbBH",GT="track_swimming_pool_track_line__93r0Q",VT="track_swimming_pool_track_chart__Caa5Q",KT="track_swimming_pool_track_man__GPkAm";function qT(e,t){return t?{className:e,style:{backgroundImage:"url(".concat(t,")")}}:{className:e}}const $T=function(e){let{title:t,value:n,maxValue:a}=e;if(!t)return null;const s=1.1*a/100,o=Math.ceil(n/s);return(0,er.jsxs)("div",{...qT(UT,"./assets/games/swimmingPool/track_title.png"),children:[(0,er.jsx)(zT,{text:t,length:10}),(0,er.jsx)("div",{...qT(HT,"./assets/games/swimmingPool/block.png"),children:n}),(0,er.jsx)("div",{...qT(GT,"./assets/games/swimmingPool/water.png"),children:(0,er.jsx)("div",{className:VT,style:{width:"".concat(o,"%")},children:(0,er.jsx)("img",{className:KT,src:"./assets/games/swimmingPool/man.png"})})})]})},YT="styles_swimming_pool_top_border__ul57s",ZT="styles_swimming_pool_bottom_border__MVEyy";const XT=function(e){let{tracks:n}=e;const[a]=(0,t.useState)([...hT(n)]);if(!n.length)return null;const s=a.map((e=>(0,er.jsx)($T,{title:e.title,value:e.value,maxValue:300},e.title)));return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(uT,{src:"./assets/games/swimmingPool/bg.png"}),(0,er.jsx)("div",{className:YT,style:{backgroundImage:"url(./assets/games/swimmingPool/block2.png)"}}),s,(0,er.jsx)("div",{className:ZT,style:{backgroundImage:"url(./assets/games/swimmingPool/block2.png)"}})]})},JT={quiz_result_title:"result_quiz_result_title__nXjLv",quiz_result_description:"result_quiz_result_description__qbj7p"},QT={quiz_container:"styles_quiz_container__M2XFf",quiz_cloud:"styles_quiz_cloud__+7wpo",quiz_cloud_bg:"styles_quiz_cloud_bg__nWu9Q",quiz_slider:"styles_quiz_slider__Ot+b-",quiz_slider_animation:"styles_quiz_slider_animation__E90I-",quiz_footer:"styles_quiz_footer__fVgz6",quiz_title:"styles_quiz_title__qnA9f",quiz_description:"styles_quiz_description__BIeom",quiz_icon:"styles_quiz_icon__3SHFo"};const eS=function(e){let{result:t,onClick:n}=e;return(0,er.jsxs)("section",{className:JT.quiz_result,children:[(0,er.jsx)("h4",{className:QT.quiz_title,children:t.title}),(0,er.jsx)("p",{className:QT.quiz_description,children:t.description}),(0,er.jsx)("div",{className:QT.quiz_footer,children:(0,er.jsx)(or,{onClick:()=>{n()},children:"Replay"})})]})},tS="answer_quiz_answer__EwZhy",nS="answer_quiz_answer_wrapper__K9cQA",aS="answer_quiz_answer_wrapper_small__6cbHL",sS="answer_quiz_answer_icon__82bgB",oS="answer_quiz_answer_text__fvCwR",rS="answer_quiz_answer_text_selected__heF++",iS="answer_quiz_answer_text_correct__IaL2y",lS="answer_quiz_answer_text_error__hwu1C";const cS=function(e){let{answer:n,mode:a,onClick:s}=e;const[o]=(0,t.useState)(pT(5)),r=[nS],i=[oS];return"small"!==a&&"error"!==a||r.push(aS),"selected"===a&&i.push(rS),"correct"===a&&i.push(iS),"error"===a&&i.push(lS),(0,er.jsx)("div",{className:r.join(" "),children:(0,er.jsxs)("figure",{className:tS,onClick:()=>{s()},children:[(0,er.jsx)("img",{className:sS,src:"./assets/games/quiz/balloon_".concat(o,".png")}),(0,er.jsx)("figcaption",{className:i.join(" "),children:n.title})]})})},mS={quiz_question_title:"question_quiz_question_title__1bocM",quiz_question_answer:"question_quiz_question_answer__E3gmJ"};function dS(e,t){return(e||[]).map((e=>null!==e&&void 0!==e&&e.score?"correct":null!==e&&void 0!==e&&e.score||e!==t?"small":"error"))}const uS=function(e){let{question:n,onClick:a}=e;const[s,o]=(0,t.useState)(null),[r,i]=(0,t.useState)(!1),[l,c]=(0,t.useState)([]),m=n.answers||[];if((0,t.useEffect)((()=>{c([]),o(null),i(!1)}),[n]),!n)return null;const d=m.map(((e,t)=>(0,er.jsx)(cS,{mode:l[t],answer:e,onClick:()=>{if(!r){if(s!==e){const n=[];return n[t]="selected",c(n),void o(e)}i(!0),setTimeout((()=>{c(dS(m,s))}),1e3),setTimeout((()=>{a(s)}),3e3)}}},"".concat(e.id||"","|").concat(e.title))));return(0,er.jsx)("div",{className:mS.quiz_question,children:(0,er.jsxs)("div",{className:mS.quiz_question_body,children:[(0,er.jsx)("div",{className:QT.quiz_title,style:{backgroundImage:"url(./assets/games/quiz/cloud_big.png)"},children:n.title}),(0,er.jsx)("div",{className:QT.quiz_question_answer,children:d}),(0,er.jsx)("div",{className:QT.quiz_footer,children:(0,er.jsx)(or,{disabled:r,onClick:()=>{i(!0),setTimeout((()=>{c(dS(m,s))}),1e3),setTimeout((()=>{a(s)}),3e3)},children:n.button||"Next question"})})]})})},pS={};const hS=function(e){let{quiz:t,onClick:n}=e;return(0,er.jsxs)("section",{className:pS.quiz_start,children:[(0,er.jsx)("h4",{className:QT.quiz_title,children:t.title}),(0,er.jsx)("p",{className:QT.quiz_description,children:t.description}),(0,er.jsx)("div",{className:QT.quiz_footer,children:(0,er.jsx)(or,{onClick:()=>{n()},children:t.button||"GO"})})]})};const fS=function(e){let{quiz:n,onEnd:a}=e;const[s,o]=(0,t.useState)(n.questions[0]),[r,i]=(0,t.useState)(n.results[0]),[l,c]=(0,t.useState)([]),[m,d]=(0,t.useState)("start"),[u,p]=(0,t.useState)(!1),h=function(e,t){return n=>{e(!0),setTimeout((()=>{n()}),t/2),setTimeout((()=>{e(!1)}),t)}}(p,1500),f=function(e){const t={},n={};return e.forEach(((e,a)=>{null!==e&&void 0!==e&&e.id&&(t[null===e||void 0===e?void 0:e.id]=e),n[a]=e,e.index=a})),{byId:t,byIndex:n}}(n.questions);let g=null;"start"===m&&(g=(0,er.jsx)(hS,{quiz:n,onClick:()=>{h((()=>{d("question")}))}})),"question"===m&&(g=(0,er.jsx)(uS,{question:s,onClick:e=>{const t=f.byId[e.nextQuestionId||""],a=f.byIndex[s.index+1],r=function(e,t){const n=e.reduce(((e,t)=>e+(t.score||0)),0);let a=t[0];return t.forEach((e=>{(e.min&&e.max&&n>=e.min&&n<=e.max||e.min&&!e.max&&n>=e.min||!e.min&&e.max&&n<=e.max)&&(a=e)})),a}(l,n.results);c([...l,e]),e.isEnd&&h((()=>{i(r),d("result")})),e.nextQuestionId&&t?h((()=>{o(t)})):h(a?()=>{o(a)}:()=>{i(r),d("result")})}})),"result"===m&&(g=(0,er.jsx)(eS,{result:r,onClick:()=>{h((()=>{a(),o(n.questions[0]),c([]),d("start")}))}}));const y=u?"".concat(QT.quiz_slider," ").concat(QT.quiz_slider_animation):QT.quiz_slider;return(0,er.jsxs)("div",{className:QT.quiz_container,style:{backgroundImage:"url(./assets/games/quiz/cloud_bg.png)"},children:[(0,er.jsx)("div",{className:QT.quiz_cloud_bg,style:{backgroundImage:"url(./assets/games/quiz/cloud_bg.png)"}}),(0,er.jsx)("div",{className:QT.quiz_cloud,style:{backgroundImage:"url(./assets/games/quiz/cloud.png)"}}),(0,er.jsx)("div",{className:y,children:g})]})},gS={title:"\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u0430",icon:"./assets/games/wheel.jpg",description:"\u0422\u0435\u043a\u0441\u0442 \u0441 \u043a\u0430\u043a\u0438\u043c \u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043d\u0430 \u0442\u0440\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0442\u0440\u0438\u0433\u0443\u044e\u0442 \u0438 \u043c\u0430\u043d\u044f\u0442 \u043f\u0440\u043e\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u0443\u043d\u044b\u043b\u044b\u0439 \u043a\u0432\u0438\u0437 \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0438.",questions:[{title:"\u0421\u043a\u043e\u043b\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0441\u043e\u0437\u0434\u0430\u043b Anatoliy?",answers:[{title:"17",icon:"./assets/games/wheel.jpg",score:0},{title:"23",icon:"./assets/games/wheel.jpg",score:1},{title:"29",icon:"./assets/games/wheel.jpg",score:0}]},{title:"Albert \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442 \u0447\u0430\u0449\u0435 Marrie?",answers:[{title:"\u0414\u0430",icon:"./assets/games/wheel.jpg",score:0},{title:"\u041d\u0435\u0442",icon:"./assets/games/wheel.jpg",score:1}]},{title:"\u0421\u0430\u043c\u043e\u0435 \u0434\u043b\u0438\u043d\u043d\u043e\u0435 commit message \u043e\u0441\u0442\u0430\u0432\u0438\u043b:",answers:[{title:"Kolya Elow",icon:"./assets/games/wheel.jpg",score:0},{title:"Subrine Titan",icon:"./assets/games/wheel.jpg",score:0},{title:"Grebenshikov Muz TV",icon:"./assets/games/wheel.jpg",score:1}]}],results:[{title:"\u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u0435\u043c, \u043f\u044b\u0442\u043a\u0430 \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u0430",icon:"./assets/games/wheel.jpg",description:"\u0412\u044b \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u044d\u0442\u043e\u0442 \u043a\u0432\u0438\u0437 \u0438 \u0433\u043e\u0442\u043e\u0432\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u043e\u0442\u0437\u044b\u0432 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0434\u0432\u0430 \u0438\u043b\u0438 \u0442\u0440\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f.",min:0,max:60}]};const yS=function(e){let{}=e;return(0,er.jsx)(fS,{quiz:gS,onEnd:()=>{}})},vS=un((()=>{const e=$o.dataGrip.author.statistic.filter((e=>!e.isStaff)),t=e.map((e=>e.taskInDay)),n=Math.max(...t),a=e.map((e=>({title:e.author,speed:e.taskInDay/n}))),s=[...e].sort(((e,t)=>t.maxMessageLength-e.maxMessageLength)).map((e=>({title:e.author,value:e.maxMessageLength})));return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(yS,{}),(0,er.jsx)(OT,{tracks:a}),(0,er.jsx)(pm,{title:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0430"}),(0,er.jsx)(XT,{tracks:s})]})})),bS=vS;const wS=function(){return(0,er.jsx)("div",{style:{pageBreakAfter:"always",breakAfter:"always"},children:" "})};function kS(e,t,n,a,s,o){const r=Math.abs(s-o)>180?1:0,i=(n,a)=>function(e,t,n,a){const s=a*Math.PI/180;return[e+n*Math.cos(s),t+n*Math.sin(s)]}(e,t,n,a).map((e=>e.toPrecision(5))).join(",");return["M".concat(i(n,s)),"A".concat(n,",").concat(n,",0,").concat(r,",1,").concat(i(n,o)),"L".concat(i(a,o)),"A".concat(a,",").concat(a,",0,").concat(r,",0,").concat(i(a,s)),"Z"].join("")}const _S="PieSVG_pie_svg__mDKRu",xS="PieSVG_pie_svg_sector__NIcy9";function TS(e){let{options:t,parts:n,center:a}=e;const s=(a||72)/100*49;let o=0;const r=n.map((e=>{const n=t.color.get(e.title).first,a=360*e.width/100,r=Math.min(o+a,360),i=kS(50,50,s,50,o+-90,r+-90);return o+=a,(0,er.jsx)("path",{style:{fill:n},d:i,className:xS,children:(0,er.jsx)("title",{children:"".concat(e.title," ").concat(e.description||"")})},e.title)}));return(0,er.jsx)("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",className:_S,children:r})}TS.defaultProps={className:""};const SS=TS,CS="PieChart_pie_chart__9AHjv",ES="PieChart_pie_chart_data__iKrW1",AS="PieChart_pie_chart_icon__4VF68",jS="PieChart_pie_chart_legend__SzWES",NS="PieChart_pie_chart_line__NFQ2x",DS="PieChart_pie_chart_color__oRdh3",OS="PieChart_pie_chart_percent__HMOyT",PS="PieChart_pie_chart_text__u9VHo";const RS=function(e){let{parts:t,options:n}=e;const{t:a}=Bt(),s=t.map((e=>(0,er.jsxs)("p",{className:NS,children:[(0,er.jsx)("span",{className:DS,style:{backgroundColor:n.color.get(e.title).first}}),(0,er.jsx)("span",{className:OS,children:"".concat(e.width,"%")}),(0,er.jsx)("span",{className:PS,children:a(e.title)})]},e.title)));return(0,er.jsx)("div",{className:jS,children:s})};function IS(e){let{title:t,options:n,value:a,details:s,center:o,className:r}=e;if(0===a)return null;const i=s||function(e,t){return{a:e,b:t-e}}(a||100,n.max||100),l=rw(i,n);return(0,er.jsxs)("div",{className:"".concat(CS," ").concat(r||""),children:[(0,er.jsx)(pm,{title:t||""}),(0,er.jsxs)("div",{className:ES,children:[(0,er.jsx)("div",{className:AS,children:(0,er.jsx)(SS,{parts:l,options:n,center:o})}),(0,er.jsx)(RS,{parts:l,options:n})]})]})}IS.defaultProps={value:void 0,details:void 0,className:"",title:""};const LS=IS;const FS=function(){const{t:e}=Bt(),t=$o.dataGrip.pr.statistic,n=bs.getPRByGroups(t,"workDays"),a=fw({order:n.order,limit:3,suffix:"page.team.pr.tasks"}),s=bs.getPRByGroups(t,"delayDays"),o=fw({order:s.order,limit:3,suffix:"PR"}),r=Math.round(n.weightedAverage),i=Math.round(s.weightedAverage),l=r+i,c=fw({order:["page.team.pr.word","page.team.pr.delay"],suffix:"page.team.pr.days"});return console.log(l.toFixed(1)),(0,er.jsxs)(Cc,{children:[(0,er.jsxs)(Nc,{children:[(0,er.jsx)(LS,{title:"page.team.pr.workDays",options:a,details:n.details}),(0,er.jsx)(LS,{title:"page.team.pr.middleTimeRelease",options:c,details:{"page.team.pr.work":r,"page.team.pr.delay":i}})]}),(0,er.jsxs)(Nc,{children:[(0,er.jsx)(LS,{title:"page.team.pr.delayDays",options:o,details:s.details}),(0,er.jsx)(ti,{text:e("page.team.pr.description1")}),(0,er.jsx)(ti,{text:e("page.team.pr.description2")}),(0,er.jsx)(ti,{text:e("page.team.pr.description3")})]})]})};function MS(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=fw({order:["page.team.pr.chart.1day","page.team.pr.chart.3day","page.team.pr.chart.7day","page.team.pr.chart.14day","page.team.pr.chart.30day","page.team.pr.chart.more"],limit:3}),r=fw({max:Lw(t,"weightedAverage"),order:["page.team.pr.work","page.team.pr.delay"],suffix:"page.team.pr.days"});return(0,er.jsxs)(nw,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,fullScreenMode:"author",children:[(0,er.jsx)(sw,{isSortable:!0,template:Dm.STRING,title:"page.team.pr.author",properties:"author",width:250}),(0,er.jsx)(sw,{title:"page.team.pr.workDays",properties:"workDays",template:e=>(0,er.jsx)(pw,{options:o,details:e})}),(0,er.jsx)(sw,{title:"page.team.pr.delayDays",properties:"delayDays",template:e=>(0,er.jsx)(pw,{options:o,details:e})}),(0,er.jsx)(sw,{properties:"weightedAverage",template:Dm.SHORT_NUMBER}),(0,er.jsx)(sw,{title:"page.team.pr.middleTimeRelease",properties:"weightedAverageDetails",width:300,template:(e,t)=>(0,er.jsx)(pw,{options:r,value:t.weightedAverage,details:{"page.team.pr.work":e.workDays,"page.team.pr.delay":e.delayDays}})})]})}MS.defaultProps={response:void 0};const WS=MS;function BS(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=fw({max:Lw(t,"workDays")}),r=fw({max:Lw(t,"delayDays")}),i=fw({order:$o.dataGrip.author.list});return(0,er.jsxs)(nw,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?2:void 0,fullScreenMode:"all",children:["print"===s?(0,er.jsx)(sw,{isSortable:!0,title:"page.team.pr.task",properties:"task",width:120}):(0,er.jsx)(sw,{isSortable:!0,template:(e,t)=>(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(Xw,{task:e}),(0,er.jsx)(Qw,{prId:null===t||void 0===t?void 0:t.prId})]}),title:"page.team.pr.task",properties:"task",width:120}),(0,er.jsx)(sw,{isSortable:!0,template:Dm.STRING,title:"page.team.pr.firstCommitTime",properties:"beginTaskTime",formatter:Kn,width:130}),(0,er.jsx)(sw,{isSortable:!0,template:Dm.STRING,title:"page.team.pr.lastCommitTime",properties:"endTaskTime",formatter:Kn,width:130}),(0,er.jsx)(sw,{template:Dm.SHORT_NUMBER,properties:"workDays",width:40}),(0,er.jsx)(sw,{isSortable:!0,title:"page.team.pr.all.workDays",properties:"workDays",minWidth:100,template:e=>(0,er.jsx)(pw,{options:o,value:e})}),(0,er.jsx)(sw,{template:Dm.SHORT_NUMBER,properties:"commits",width:40}),(0,er.jsx)(sw,{isSortable:!0,title:"page.team.pr.commits",properties:"commitsByAuthors",minWidth:100,template:e=>(0,er.jsx)(pw,{options:i,details:e})}),(0,er.jsx)(sw,{template:Dm.SHORT_NUMBER,properties:"delayDays",width:40}),(0,er.jsx)(sw,{isSortable:!0,title:"page.team.pr.all.delayDays",properties:"delayDays",minWidth:200,template:e=>(0,er.jsx)(pw,{options:r,value:e})}),(0,er.jsx)(sw,{isSortable:!0,template:Dm.STRING,title:"page.team.pr.date",properties:"milliseconds",formatter:Kn,width:130}),(0,er.jsx)(sw,{isSortable:!0,template:Dm.STRING,title:"page.team.pr.mergeAuthor",properties:"author",width:250})]})}BS.defaultProps={mode:void 0,response:void 0};const zS=BS,US=un((e=>{let{mode:t}=e;const n=$o.dataGrip.pr.statistic.filter((e=>e.delayDays>3));if((null===n||void 0===n?void 0:n.length)<2)return"print"!==t?(0,er.jsx)(Kc,{}):null;const a=$o.dataGrip.pr.statisticByName,s=Object.values(a);return(0,er.jsxs)(er.Fragment,{children:[!Fi.isOpen&&(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"page.team.pr.oneTaskDays"}),(0,er.jsx)(FS,{})]}),Fi.isOpen&&"author"!==Fi.mode?null:(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"page.team.pr.statByAuthors"}),(0,er.jsxs)(nm,{to:"response",loader:(e,n)=>mm({content:s,pagination:e,sort:n,mode:t}),children:[(0,er.jsx)(WS,{mode:t,rowsForExcel:s}),(0,er.jsx)(cm,{})]})]}),(0,er.jsx)(wS,{}),Fi.isOpen&&"all"!==Fi.mode?null:(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"page.team.pr.longDelay"}),(0,er.jsxs)(nm,{to:"response",loader:(e,a)=>mm({content:n,pagination:"print"===t?{size:20}:e,sort:a}),children:[(0,er.jsx)(zS,{mode:t,rowsForExcel:n}),"print"!==t&&(0,er.jsx)(cm,{})]})]})]})})),HS="table-of-contents_table_of_contents__Becki",GS="table-of-contents_table_of_contents_title__3qPIE",VS="table-of-contents_table_of_contents_item__6hX4X";const KS=function(e){let{titles:t}=e;const{t:n}=Bt(),a=(t||[]).map((e=>(0,er.jsx)("a",{className:VS,href:"#".concat(e),children:n(e||"")},e)));return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{className:GS,title:"page.print.tableOfContents"}),(0,er.jsx)("nav",{className:HS,children:a})]})},qS="cover_cover__VAtbV",$S="cover_cover_title__l1TfU",YS="cover_cover_sub_title__u8Khz",ZS=un((()=>{const{t:e}=Bt();return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsxs)("div",{className:qS,children:[(0,er.jsx)("h1",{className:$S,children:e("page.print.title")}),(0,er.jsx)("h2",{className:YS,children:document.title}),(0,er.jsx)(KS,{titles:["page.team.total.titleA","page.team.total.titleB","page.team.scope.title","page.team.author.title","page.team.type.title","page.team.pr.oneTaskDays","page.team.pr.statByAuthors","page.team.pr.longDelay","page.team.hours.title","page.common.words.title"]}),(0,er.jsx)(ti,{text:e("page.print.description")})]}),(0,er.jsx)(cx,{}),(0,er.jsx)(wS,{}),(0,er.jsx)(Mk,{mode:"print"}),(0,er.jsx)(wS,{}),(0,er.jsx)(Bw,{mode:"print"}),(0,er.jsx)(wS,{}),(0,er.jsx)(Dx,{mode:"print"}),(0,er.jsx)(wS,{}),(0,er.jsx)(US,{mode:"print"}),(0,er.jsx)(wS,{}),(0,er.jsx)(Rx,{mode:"print"}),(0,er.jsx)(wS,{}),(0,er.jsx)(sT,{mode:"print"}),(0,er.jsx)(Sk,{mode:"print"}),(0,er.jsx)(Ik,{mode:"print"})]})})),XS=ZS;function JS(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Lw(t,"delayInDays"),r=Lw(t,"waitingInDays"),i=fw({max:Math.max(o,r),suffix:"page.team.release.chart"});return(0,er.jsxs)(nw,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,er.jsx)(sw,{isFixed:!0,template:Dm.DETAILS,width:40,formatter:e=>{const t=e.pr.map((e=>{var t,n,a;return null===$o||void 0===$o||null===(t=$o.dataGrip)||void 0===t||null===(n=t.pr)||void 0===n||null===(a=n.pr)||void 0===a?void 0:a[e.prId]})).filter((e=>null===e||void 0===e?void 0:e.firstCommit));return(0,er.jsx)(zS,{response:{content:t}})}}),(0,er.jsx)(sw,{isFixed:!0,template:Dm.STRING,title:"page.team.release.title",properties:"title",width:200}),(0,er.jsx)(sw,{template:Dm.STRING,title:"page.team.release.from",width:150,properties:"from",formatter:Kn}),(0,er.jsx)(sw,{template:Dm.STRING,title:"page.team.release.to",width:150,properties:"to",formatter:Kn}),(0,er.jsx)(sw,{template:Dm.SHORT_NUMBER,title:"page.team.release.prLength",properties:"prLength"}),(0,er.jsx)(sw,{template:Dm.SHORT_NUMBER,properties:"delayInDays"}),(0,er.jsx)(sw,{isSortable:!0,title:"page.team.release.delay",properties:"delayInDays",width:170,minWidth:170,template:e=>(0,er.jsx)(pw,{options:i,value:e})}),(0,er.jsx)(sw,{template:Dm.SHORT_NUMBER,properties:"waitingInDays"}),(0,er.jsx)(sw,{isSortable:!0,title:"page.team.release.waiting",properties:"waitingInDays",width:170,minWidth:170,template:e=>(0,er.jsx)(pw,{options:i,value:e})})]})}JS.defaultProps={response:void 0};const QS=un((e=>{let{mode:t}=e;const n=$o.dataGrip.release.statistic;return(null===n||void 0===n?void 0:n.length)<2?"print"!==t?(0,er.jsx)(Kc,{}):null:(0,er.jsxs)(er.Fragment,{children:["print"===t?(0,er.jsx)(pm,{title:"sidebar.team.extension"}):(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)("br",{}),(0,er.jsx)("br",{}),(0,er.jsx)("br",{})]}),(0,er.jsxs)(nm,{to:"response",loader:e=>mm({content:n,pagination:e,mode:t}),watch:"".concat(t).concat($o.hash),children:[(0,er.jsx)(JS,{mode:t,rowsForExcel:n}),(0,er.jsx)(cm,{})]})]})})),eC=un((e=>{let t,{page:n}=e;return Fi.isOpen&&(t="fullscreen"),Ml.processing&&(t="print"),"total"===n?(0,er.jsx)(cx,{}):"scope"===n?(0,er.jsx)(Mk,{mode:t}):"author"===n?(0,er.jsx)(Bw,{mode:t}):"company"===n?(0,er.jsx)(mk,{mode:t}):"type"===n?(0,er.jsx)(Dx,{mode:t}):"pr"===n?(0,er.jsx)(US,{mode:t}):"day"===n?(0,er.jsx)(q_,{}):"week"===n?(0,er.jsx)(Rx,{mode:t}):"month"===n?(0,er.jsx)(sT,{mode:t}):"hours"===n?(0,er.jsx)(Sk,{mode:t}):"files"===n?(0,er.jsx)(xx,{}):"removedFiles"===n?(0,er.jsx)(xx,{type:"removed"}):"extension"===n?(0,er.jsx)(Ax,{mode:t}):"release"===n?(0,er.jsx)(QS,{mode:t}):"commits"===n?(0,er.jsx)(lk,{}):"changes"===n?(0,er.jsx)(uk,{}):"words"===n?(0,er.jsx)(Ik,{mode:t}):"building"===n?(0,er.jsx)(bS,{}):"print"===n?(0,er.jsx)(XS,{}):"tasks"===n?(0,er.jsx)(cT,{}):(0,er.jsx)(cx,{})}));function tC(){const{type:e}=Q();return e&&"team"!==e?null:(0,er.jsx)(kc,{getViewById:e=>(0,er.jsx)(eC,{page:e})})}const nC=un((e=>{let{filters:n,onChange:a}=e;const{type:s,page:o,userId:r}=Q(),i=J(),l=parseInt(r||"0",10)||0,c=$o.dataGrip.author.list.map(((e,t)=>({id:t,title:e}))),m=$o.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],d=(0,t.useMemo)((()=>H_(m)),[m]);return(0,er.jsxs)("div",{className:z_,children:[(0,er.jsx)(B_,{title:"page.team.tree.filters.author",value:l,className:U_,options:c,onChange:e=>{i("/".concat(s,"/").concat(o,"/").concat(e))}}),"day"===o?(0,er.jsx)(B_,{reverse:!0,title:"page.team.tree.filters.author",value:(null===n||void 0===n?void 0:n.week)||m[m.length-1].week,className:U_,options:d.reverse(),onChange:e=>{a({...n,week:e})}}):null]})})),aC=nC,sC=un((e=>{let{user:t}=e;const n=$o.dataGrip.timestamp.statisticByAuthor[t.author];return(0,er.jsx)(dk,{statistic:n})})),oC=un((e=>{let{user:t}=e;const n=$o.dataGrip.timestamp.statisticByAuthor[t.author];return(0,er.jsx)(ik,{statistic:n})})),rC=un((e=>{let{user:t}=e;return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"page.person.hours.title"}),(0,er.jsx)(Cc,{template:"table",children:(0,er.jsx)(xk,{statistic:t})})]})}));const iC=function(){return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)("p",{className:Bc,children:(0,xe.t)("uiKit.nothingFound.staff.title")}),(0,er.jsx)("p",{className:zc,children:(0,xe.t)("uiKit.nothingFound.staff.description1")}),(0,er.jsx)("p",{className:zc,children:(0,xe.t)("uiKit.nothingFound.staff.description2")})]})},lC=un((e=>{let{user:t}=e;const n=t,a=$o.dataGrip.scoring.total,s=$o.dataGrip.scoring.statisticByName[t.author],o=$o.dataGrip.timestamp.statisticByAuthor[n.author],r=n.tasks.length;return n.isStaff?(0,er.jsx)(Kc,{children:(0,er.jsx)(iC,{})}):(0,er.jsxs)(Cc,{children:[(0,er.jsxs)(Nc,{children:[(0,er.jsx)(pm,{title:"page.person.money.title.total"}),(0,er.jsxs)("div",{children:[(0,er.jsx)(ix,{value:Yn(n.moneyAll),icon:"./assets/cards/money_total.png",title:"page.person.money.moneyAll.title",description:"page.person.money.moneyAll.description",scoring:{value:s.moneyAll,total:a.moneyAll}}),(0,er.jsx)(ix,{value:Yn(n.moneyWorked),icon:"./assets/cards/money_work.png",title:"page.person.money.moneyWorked.title",description:"page.person.money.moneyWorked.description",scoring:{value:s.moneyWorked,total:a.moneyWorked}}),(0,er.jsx)(ix,{value:Yn(n.moneyLosses),icon:"./assets/cards/money_lazy.png",title:"page.person.money.moneyLosses.title",description:"page.person.money.moneyLosses.description",scoring:{value:s.moneyLosses,total:a.moneyLosses}}),(0,er.jsx)(ix,{value:Yn(o.weekendPayment),icon:"./assets/cards/money_holidays.png",title:"page.team.total.weekendPayment.title",description:"page.team.total.weekendPayment.description",scoring:{value:s.weekendPayment,total:a.weekendPayment}})]})]}),(0,er.jsxs)(Nc,{children:[(0,er.jsx)(pm,{title:"page.person.money.title.middle"}),0===r?(0,er.jsx)(Kc,{}):(0,er.jsxs)("div",{children:[(0,er.jsx)(ix,{size:"l",value:r?Yn(n.moneyWorked/r,0):null,icon:"./assets/cards/money_task.png",title:"page.person.money.tasks.title",description:"page.person.money.tasks.description",scoring:{value:s.moneyForTask,total:a.moneyForTask}}),(0,er.jsx)(ix,{size:"l",value:r?Yn(n.moneyWorked/n.commits,0):null,icon:"./assets/cards/money_work.png",title:"page.person.money.commits.title",description:"page.person.money.commits.description",scoring:{value:s.moneyForCommit,total:a.moneyForCommit}})]})]})]})})),cC=un((e=>{let{user:t,mode:n}=e;const a=t.wordStatistics;return(0,er.jsx)(Rk,{mode:n,statistic:a})}));function mC(e){let{size:t}=e;const n=[$_,ax];return"s"===t&&n.push(tx),"l"===t&&n.push(nx),(0,er.jsx)(vw,{className:n.join(" ")})}mC.defaultProps={size:"m"};const dC=mC,uC=un((e=>{let{user:t}=e;const n=t,a=$o.dataGrip.timestamp.statisticByAuthor[n.author],s=$o.dataGrip.scoring.statisticByName[t.author],o=$o.dataGrip.scoring.total,r=n.tasks.length;return n.isStaff?(0,er.jsx)(Kc,{children:(0,er.jsx)(iC,{})}):(0,er.jsxs)(Cc,{children:[(0,er.jsxs)(Nc,{children:[(0,er.jsx)(pm,{title:"page.person.speed.task"}),0===r?(0,er.jsx)(Kc,{}):(0,er.jsxs)("div",{children:[(0,er.jsx)(ix,{value:n.daysForTask&&r?Zn(n.daysForTask):null,icon:"./assets/cards/month.png",title:"page.person.speed.days.title",description:"page.person.speed.days.description",scoring:{value:s.daysForTask,total:o.daysForTask}}),(0,er.jsx)(ix,{value:r?(n.commits/r).toFixed(1):null,icon:"./assets/cards/commits.png",title:"page.person.speed.commits.title",description:"page.person.speed.commits.description",scoring:{value:s.commitsForTask,total:o.commitsForTask}}),(0,er.jsx)(ix,{value:r?n.changesForTask:null,icon:"./assets/cards/lines.png",title:"page.person.speed.line.title",description:"page.person.speed.line.description",scoring:{value:s.changesForTask,total:o.changesForTask}}),(0,er.jsx)(dC,{})]})]}),(0,er.jsxs)(Nc,{children:[(0,er.jsx)(pm,{title:"page.person.speed.max"}),(0,er.jsxs)("div",{children:[(0,er.jsx)(ix,{size:"l",value:a.tasksByTimestampCounter.max,icon:"./assets/cards/tasks.png",title:"page.person.speed.tasks.title",description:"page.person.speed.tasks.description",scoring:{value:s.speedMaxTasks,total:o.speedMaxTasks}}),(0,er.jsx)(ix,{size:"l",value:a.commitsByTimestampCounter.max,icon:"./assets/cards/commits.png",title:"page.person.speed.maxCommits.title",description:"page.person.speed.maxCommits.description",scoring:{value:s.speedMaxCommits,total:o.speedMaxCommits}})]})]})]})})),pC={achievement_container:"styles_achievement_container__+OdlC",achievement:"styles_achievement__KB0AO",achievement_icon_container:"styles_achievement_icon_container__0xQ3d",achievement_icon:"styles_achievement_icon__YbtA0",achievement_icon_svg:"styles_achievement_icon_svg__1pahq",achievement_title:"styles_achievement_title__AUtfn",achievement_description:"styles_achievement_description__FkUIC",achievement_good:"styles_achievement_good__12XCY",achievement_bad:"styles_achievement_bad__BmbF0"};const hC=function(e){let{code:t}=e;const{t:n}=Bt();if(!wn[t])return null;const a=n("achievements.".concat(t,".title")),s=n("achievements.".concat(t,".description")),o=[pC.achievement_good,pC.achievement_middle,pC.achievement_bad][wn[t]-1];return(0,er.jsxs)("div",{className:pC.achievement,children:[(0,er.jsx)("div",{className:pC.achievement_icon_container,children:(0,er.jsx)("div",{className:"".concat(pC.achievement_icon," ").concat(o||""),children:(0,er.jsx)("img",{className:pC.achievement_icon_svg,src:"./assets/achievements/".concat(t,".svg")})})}),(0,er.jsx)("div",{className:pC.achievement_title,children:a}),(0,er.jsx)("div",{className:pC.achievement_description,children:s})]})};const fC=function(e){let{list:t}=e;const n=null===t||void 0===t?void 0:t.map((e=>(0,er.jsx)(hC,{code:e},e)));return(0,er.jsx)("div",{className:pC.achievement_container,children:n})};const gC="styles_get_list__xuTNI",yC="styles_get_list_container__YnNGO",vC="styles_get_list_title__J-b47",bC="styles_get_list_icon__I4DqV",wC="styles_get_list_big_number__RbCn9",kC="styles_get_list_task__ZHFFW",_C="styles_get_list_pr__sE+Qx",xC="styles_get_list_date__rcfNx";const TC=function(e){var t;let{commit:n,mode:a}=e;const s=((null===(t=n.taskNumber)||void 0===t?void 0:t.length)||1)>5?wC:"",o=zs.pr.prByTask[n.task];return(0,er.jsxs)("div",{className:gC,children:[(0,er.jsxs)("div",{className:vC,children:[(0,er.jsx)(Xw,{task:n.task,className:kC}),"print"!==a&&(0,er.jsx)(Qw,{text:"pull request",prId:o,className:_C})]}),(0,er.jsx)("div",{className:"".concat(bC," ").concat(s),children:n.taskNumber}),(0,er.jsx)("div",{className:xC,children:Kn(n.date)})]})};const SC=function(e){let{list:t,mode:n}=e;const a=null===t||void 0===t?void 0:t.map((e=>(0,er.jsx)(TC,{commit:e,mode:n},e.taskNumber)));return(0,er.jsx)("div",{className:yC,children:a})};function CC(e){let{title:t,achievements:n}=e;const{t:a}=Bt();return null!==n&&void 0!==n&&n.length?(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(ti,{text:"# ".concat(a(t))}),(0,er.jsx)(fC,{list:n})]}):null}const EC=un((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=$o.dataGrip.get.getsByAuthor[t.author],o=$o.dataGrip.scoring.statisticByName[t.author],r=$o.dataGrip.scoring.total,i=a.tasks.length,l=On.authors[a.author];return(0,er.jsxs)(Cc,{children:[(0,er.jsxs)(Nc,{children:[(0,er.jsx)(pm,{title:"page.person.total.title"}),(0,er.jsxs)("div",{children:[!1,(0,er.jsx)(ix,{value:a.daysWorked,icon:"./assets/cards/work_days.png",title:"page.person.total.daysWorked.title",description:"page.person.total.daysWorked.description",scoring:{value:o.daysWorked,total:r.daysWorked}}),(0,er.jsx)(ix,{value:i||null,icon:"./assets/cards/tasks.png",title:"page.person.total.tasks.title",description:"page.person.total.tasks.description",scoring:{value:o.tasks,total:r.tasks}}),(0,er.jsx)(ix,{value:a.daysLosses,icon:"./assets/cards/lazy.png",title:"page.team.total.daysLosses.title",description:"page.team.total.daysLosses.description",scoring:{value:o.daysLosses,total:r.daysLosses}}),(0,er.jsx)(ix,{value:a.commits,icon:"./assets/cards/commits.png",title:"page.team.total.commits.title",description:"page.team.total.commits.description",scoring:{value:o.commits,total:r.commits}}),(0,er.jsx)(dC,{size:"l"})]}),!1,!1]}),(0,er.jsxs)(Nc,{children:[(0,er.jsx)(pm,{title:"page.person.achievement.title"}),(0,er.jsx)(CC,{title:"page.person.achievement.positive",achievements:l[yn-1]}),(0,er.jsx)(CC,{title:"page.person.achievement.normal",achievements:l[vn-1]}),(0,er.jsx)(CC,{title:"page.person.achievement.negative",achievements:l[bn-1]}),(0,er.jsx)(ti,{text:n("page.person.achievement.description")}),(0,er.jsx)("br",{}),(0,er.jsx)("br",{}),null!==s&&void 0!==s&&s.length?(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"page.person.gets.title"}),(0,er.jsx)(SC,{list:s}),(0,er.jsx)(ti,{text:n("page.person.gets.description")})]}):null]})]})})),AC=EC;function jC(e){let{response:t,updateSort:n,name:a,mode:s}=e;if(!t)return null;const o=fw({max:Lw(t,"authors",a),order:$o.dataGrip.type.list}),r=fw({max:7,order:["page.person.week.workDay","page.person.week.weekends"],suffix:"page.person.week.days"}),i=fw({max:Lw(t,"taskInDay",a)});return(0,er.jsxs)(nw,{rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,er.jsx)(sw,{isFixed:!0,template:Dm.STRING,title:"page.person.week.date",properties:"timestamp",formatter:Xn,width:200}),(0,er.jsx)(sw,{template:Dm.SHORT_NUMBER,properties:"authors",formatter:e=>e[a]||0}),(0,er.jsx)(sw,{title:"page.person.week.tasks",template:e=>(0,er.jsx)(pw,{options:o,value:e.authors[a],details:e.typeByAuthor[a]}),width:200}),(0,er.jsx)(sw,{template:Dm.SHORT_NUMBER,properties:"workDays",formatter:e=>e[a]||0}),(0,er.jsx)(sw,{title:"page.person.week.workDays",template:e=>{let[t,n]=e;return(0,er.jsx)(pw,{options:r,value:t+n,details:{"page.person.week.workDay":t,"page.person.week.weekends":n}})},formatter:e=>(null===e||void 0===e?void 0:e.workDays[a])>5?[5,(null===e||void 0===e?void 0:e.workDays[a])-5]:[null===e||void 0===e?void 0:e.workDays[a],0],width:200}),(0,er.jsx)(sw,{template:Dm.SHORT_NUMBER,properties:"taskInDay",formatter:e=>Zn(e[a]||0)}),(0,er.jsx)(sw,{title:"page.person.week.taskInDay",properties:"taskInDay",template:e=>(0,er.jsx)(pw,{options:i,value:e[a]}),width:200})]})}jC.defaultProps={response:void 0};const NC=un((e=>{var t;let{user:n,mode:a}=e;const s=n,o=$o.dataGrip.week.statistic.filter((e=>e.authors[s.author]));if(null===o||void 0===o||!o.length)return(0,er.jsx)(Kc,{});const r=null===(t=$o.dataGrip.recommendations.person)||void 0===t?void 0:t.byWeek[s.author];return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(Iw,{mode:a,recommendations:r}),(0,er.jsxs)(nm,{to:"response",loader:(e,t)=>mm({content:o,pagination:e,sort:t}),children:[(0,er.jsx)(jC,{name:s.author,mode:a}),"print"!==a&&(0,er.jsx)(cm,{})]})]})})),DC=NC,OC=un((e=>{let{user:t}=e;const n=t,a=$o.dataGrip.timestamp.statisticByAuthor[n.author],s=a.commitsByTimestampCounter.max;return(0,er.jsx)(Cc,{template:"table",children:(0,er.jsx)(nT,{showEvents:!1,maxCommits:s,authors:[n],wordDays:a.allCommitsByTimestamp})})})),PC=un((e=>{let{user:t,mode:n}=e;const a=$o.dataGrip.tasks.statistic.filter((e=>e.author===t.author||(e.authors||[]).includes(t.author)));return null!==a&&void 0!==a&&a.length?(0,er.jsxs)(nm,{to:"response",loader:(e,t)=>mm({content:a,pagination:e,sort:t,mode:n}),watch:"".concat(n).concat($o.hash).concat(t.author),children:[(0,er.jsx)(lT,{mode:n,rowsForExcel:a}),(0,er.jsx)(cm,{})]}):"print"!==n?(0,er.jsx)(Kc,{}):null}));function RC(e){let{response:t,user:n}=e;return t?(0,er.jsx)(v_,{days:t.content,author:n}):null}RC.defaultProps={response:void 0};const IC=un((e=>{let{user:t,filters:n}=e;const a=$o.dataGrip.timestamp.statistic.allCommitsByTimestamp||[];if(null===a||void 0===a||!a.length)return(0,er.jsx)(Kc,{});const s=function(e,t){return t.filter((t=>t.week===e.week)).slice(0,7)}({week:n.week,user:t.author},a);return null!==s&&void 0!==s&&s.length?(0,er.jsx)(er.Fragment,{children:(0,er.jsx)(Cc,{template:"table",children:(0,er.jsxs)(nm,{to:"response",loader:()=>mm({content:s}),watch:JSON.stringify(n),children:[(0,er.jsx)(RC,{user:t.author}),(0,er.jsx)(cm,{})]})})}):(0,er.jsx)(Kc,{})})),LC="print_place_for_photo__WPPt6",FC=un((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=a.tasks.length;return(0,er.jsxs)(Cc,{children:[(0,er.jsxs)(Nc,{children:[(0,er.jsx)(ix,{value:"",icon:"./assets/cards/work_days.png",title:"page.person.print.photo.title"}),(0,er.jsx)("div",{className:LC,children:n("page.person.print.photo.description")})]}),(0,er.jsxs)(Nc,{children:[(0,er.jsx)(pm,{title:a.author}),(0,er.jsxs)("div",{children:[(0,er.jsx)(ix,{value:a.daysWorked,icon:"./assets/cards/work_days.png",title:"page.person.total.daysWorked.title",description:"page.person.total.daysWorked.description"}),(0,er.jsx)(ix,{value:s||null,icon:"./assets/cards/tasks.png",title:"page.person.total.tasks.title",description:"page.person.total.tasks.description"}),(0,er.jsx)(ix,{value:a.daysLosses,icon:"./assets/cards/lazy.png",title:"page.team.total.daysLosses.title",description:"page.team.total.daysLosses.description"}),(0,er.jsx)(ix,{value:a.commits,icon:"./assets/cards/commits.png",title:"page.team.total.commits.title",description:"page.team.total.commits.description"})]})]})]})})),MC=FC;function WC(e){let{title:t,achievements:n}=e;return null!==n&&void 0!==n&&n.length?(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(ti,{text:"# ".concat(t)}),(0,er.jsx)(fC,{list:n})]}):null}const BC=un((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=$o.dataGrip.get.getsByAuthor[a.author],o=On.authors[a.author];return(0,er.jsxs)(Cc,{children:[(0,er.jsxs)(Nc,{children:[(0,er.jsx)(pm,{title:"page.person.achievement.title"}),(0,er.jsx)(WC,{title:"page.person.achievement.positive",achievements:o[yn-1]})]}),(0,er.jsxs)(Nc,{children:[(0,er.jsx)(pm,{title:n("_")}),(0,er.jsx)(WC,{title:"page.person.achievement.normal",achievements:o[vn-1]}),(0,er.jsx)(WC,{title:"page.person.achievement.negative",achievements:o[bn-1]}),(0,er.jsx)("br",{}),(0,er.jsx)("br",{}),null!==s&&void 0!==s&&s.length?(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"page.person.gets.title"}),(0,er.jsx)(SC,{mode:"print",list:s}),(0,er.jsx)(ti,{text:n("page.person.gets.description")})]}):null]})]})})),zC=BC,UC=un((e=>{let{user:t}=e;const{t:n}=Bt();return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsxs)("div",{className:qS,children:[(0,er.jsx)("h1",{className:$S,children:n("page.print.title")}),(0,er.jsx)("h2",{className:YS,children:t.author}),(0,er.jsx)(KS,{titles:["page.team.total.titleA","page.person.speed.task","page.person.speed.max","page.team.total.titleB","page.person.achievement.title","page.person.hours.title","page.common.words.title"]}),(0,er.jsx)(ti,{text:n("page.print.description")})]}),(0,er.jsx)(wS,{}),(0,er.jsx)(MC,{user:t}),(0,er.jsx)(uC,{user:t}),(0,er.jsx)(lC,{user:t}),(0,er.jsx)(wS,{}),(0,er.jsx)(zC,{user:t}),(0,er.jsx)(wS,{}),(0,er.jsx)(rC,{user:t}),(0,er.jsx)(DC,{user:t,mode:"print"}),(0,er.jsx)(wS,{}),(0,er.jsx)(OC,{user:t}),(0,er.jsx)(cC,{user:t,mode:"print"})]})})),HC=UC;const GC=un((e=>{let{userId:n}=e;const{t:a}=Bt(),{type:s,page:o,userId:r}=Q(),i=$o.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],l=i.length?i[i.length-1].week:0,[c,m]=(0,t.useState)({week:l}),d=$o.dataGrip.author.statistic[n||r||0];if("person"!==s||!d)return null;const u=function(e,t){return function(n){let a;return Fi.isOpen&&(a="fullscreen"),Ml.processing&&(a="print"),"total"===n?(0,er.jsx)(AC,{user:e}):"money"===n?(0,er.jsx)(lC,{user:e}):"week"===n?(0,er.jsx)(DC,{user:e,mode:a}):"month"===n?(0,er.jsx)(OC,{user:e}):"hours"===n?(0,er.jsx)(rC,{user:e}):"commits"===n?(0,er.jsx)(oC,{user:e}):"changes"===n?(0,er.jsx)(sC,{user:e}):"words"===n?(0,er.jsx)(cC,{user:e,mode:a}):"speed"===n?(0,er.jsx)(uC,{user:e}):"day"===n?(0,er.jsx)(IC,{user:e,filters:t}):"print"===n?(0,er.jsx)(HC,{user:e}):"tasks"===n?(0,er.jsx)(PC,{user:e}):(0,er.jsx)(AC,{user:e})}}(d,c);return(0,er.jsxs)(er.Fragment,{children:["print"!==o&&(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:a("common.filters")}),(0,er.jsx)(aC,{filters:c,onChange:m})]}),(0,er.jsx)(kc,{getViewById:u})]})})),VC=GC,KC=un((()=>{const e=$o.dataGrip.author.statistic,t=Object.entries(e).filter((e=>{let[,t]=e;return!t.isStaff})).map((e=>{let[t,n]=e;return(0,er.jsx)(HC,{user:n},t)}));return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(XS,{}),t]})})),qC="Console_console__5nFvk",$C="Console_console_header__XP1IR",YC="Console_console_body__5PXuM",ZC="Console_console_header_icon__oXixF",XC="Console_console_copy__LHjsv";function JC(e){let{className:t,textForCopy:n,children:a}=e;return(0,er.jsxs)("div",{className:"".concat(qC," ").concat(t||""),children:[(0,er.jsxs)("div",{className:"".concat($C),children:[(0,er.jsx)("span",{className:"".concat(ZC)}),(0,er.jsx)("span",{className:"".concat(ZC)}),(0,er.jsx)("span",{className:"".concat(ZC)})]}),(0,er.jsx)("div",{className:"".concat(YC),children:a||n}),n?(0,er.jsx)(or,{mode:"second",className:"".concat(XC),onClick:()=>{ai(n),ni.Z.show((0,xe.t)("uiKit.console.notification"))},children:(0,xe.t)("uiKit.console.button")}):null]})}JC.defaultProps={textForCopy:void 0,children:void 0,className:""};const QC=JC,eE="styles_welcome__owZYZ",tE="styles_welcome_console__dmg4D",nE="styles_welcome_row__rormW",aE="styles_welcome_warning__sf+kx",sE="styles_welcome_warning_text__vMmIf",oE="styles_welcome_description__lB3jg",rE="styles_welcome_first_title__zay7R",iE="styles_welcome_last_title__Ef7FS",lE="styles_welcome_title_link__csDka";function cE(){return(0,er.jsxs)("h4",{className:aE,children:[(0,er.jsx)(ti,{text:(0,xe.t)("page.welcome.warning1"),className:sE}),(0,er.jsx)(ti,{text:(0,xe.t)("page.welcome.warning2"),className:sE})]})}const mE=function(){const e=window.ym;return(0,er.jsxs)(er.Fragment,{children:[e&&(0,er.jsx)(cE,{}),(0,er.jsx)("section",{className:eE,children:(0,er.jsxs)("div",{className:nE,children:[(0,er.jsx)("h2",{className:rE,children:(0,xe.t)("page.welcome.step1")}),(0,er.jsx)(QC,{className:tE,textForCopy:'git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%aN>%aE>%s" > log.txt\n'}),(0,er.jsx)(ti,{text:(0,xe.t)("page.welcome.description"),className:"".concat(oE)}),(0,er.jsxs)("h2",{className:iE,children:["page.welcome.step2"===(0,xe.t)("page.welcome.step2")?"":(0,xe.t)("page.welcome.step2"),(0,er.jsxs)("label",{className:lE,children:[(0,xe.t)("page.welcome.step3"),(0,er.jsx)("input",{multiple:!0,type:"file",style:{display:"none"},onChange:async e=>{const t=Array.from(e.target.files),n=Zo(await Xo(t));Ro.show(),$o.asyncSetCommits(n)}})]}),(0,xe.t)("page.welcome.step4")]})]})})]})};const dE=function(e){let{title:n,mode:a,disabled:s,className:o,options:r,onClick:i,children:l}=e;if(null===r||void 0===r||!r.length)return null;const[c,m]=(0,t.useState)(!1),d=sr(a,s),u=null===r||void 0===r?void 0:r.map((e=>{var t,a,s;const o=null!==(t=null!==(a=null!==(s=null===e||void 0===e?void 0:e.title)&&void 0!==s?s:null===e||void 0===e?void 0:e.id)&&void 0!==a?a:e)&&void 0!==t?t:"";return(0,er.jsx)("button",{className:nr.ui_kit_button_menu,onClick:()=>{i&&i(e),m(!1)},children:o},n)}));return(0,er.jsx)(er.Fragment,{children:(0,er.jsxs)("button",{title:n,className:"".concat(nr.ui_kit_button," ").concat(d||""," ").concat(o||""),style:{position:"relative"},onClick:()=>{m(!c)},children:[l,c&&(0,er.jsx)("div",{className:nr.ui_kit_dialog,children:u})]})})};const uE=function(e){let{columns:t,className:n,children:a}=e;return(0,er.jsx)("div",{className:"".concat(hl," ").concat(n||""),style:{columnCount:t||2},children:a})},pE="switch_ui_kit_switch__ITpXv",hE="switch_ui_kit_switch_item__oGEAZ",fE="switch_ui_kit_switch_item_selected__poF9E",gE="switch_ui_kit_switch_item_disabled__7Inlc";const yE=function(e){let{title:t,description:n,help:a,error:s,className:o,disabled:r,multiple:i,value:l,options:c,onChange:m}=e;const d=l||0===l||!1===l;let u=l;d&&!Array.isArray(l)&&(u=[l]);const p=(c||[]).map(((e,t)=>{var n,a;const s="object"!==typeof e?{id:e,title:e}:e,o=d&&u.includes(null===s||void 0===s?void 0:s.id),l=[hE];return o&&l.push(fE),r&&l.push(gE),(0,er.jsx)("button",{className:l.join(" "),onClick:()=>{if(!m)return;let e=[null===s||void 0===s?void 0:s.id];i&&(e=o?u.filter((e=>e!==(null===s||void 0===s?void 0:s.id))):[...u,null===s||void 0===s?void 0:s.id].sort()),m(e)},children:null!==(n=null!==(a=null===s||void 0===s?void 0:s.title)&&void 0!==a?a:null===s||void 0===s?void 0:s.id)&&void 0!==n?n:""},"".concat(null===s||void 0===s?void 0:s.id,"_").concat(t))}));return(0,er.jsx)(bl,{title:t,description:n,help:a,error:s,className:o,children:(0,er.jsx)("div",{className:pE,children:p})})};function vE(e){let{title:t,description:n,help:a,error:s,className:o,value:r,placeholder:i,onChange:l}=e;const c=(null===r||void 0===r?void 0:r.length)>10?r.substring(0,10):r;return(0,er.jsx)(bl,{title:t,description:n,help:a,error:s,className:o,children:(0,er.jsx)("input",{type:"date",value:c,placeholder:i,className:wl,onChange:e=>{l&&l("".concat(e.target.value,"T00:00:00.000Z"))}})})}vE.defaultProps={placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"};const bE=vE;const wE=function(e){let{salary:n,index:a,onChange:s,onRemove:o}=e;const[r,i]=(0,t.useState)(!1);return(0,er.jsxs)("div",{className:Cl.salary,children:[(0,er.jsx)(pm,{title:xe.Z.get("page.settings.user.subTitle",a),className:r?"":Cl.salary_title}),(0,er.jsx)("div",{className:Cl.salary_icons,children:(0,er.jsx)("img",{className:Cl.salary_icons_item,src:"./assets/list/arrow.svg",onClick:()=>i(!r)})}),r&&(0,er.jsxs)(er.Fragment,{children:[(0,er.jsxs)(uE,{children:[(0,er.jsx)(bE,{title:"page.settings.user.from",value:null===n||void 0===n?void 0:n.from,onChange:e=>{s({...n,from:e})}}),(0,er.jsx)(yE,{disabled:!0,title:"page.settings.common.workDaysInWeek",value:n.workDaysInWeek,options:[1,2,3,4,5,6,7],onChange:e=>{s({...n,workDaysInWeek:e})}})]}),(0,er.jsxs)(uE,{children:[(0,er.jsx)(dx,{title:"page.settings.common.salary",value:null===n||void 0===n?void 0:n.value,onChange:e=>{s({...n,value:e})}}),(0,er.jsx)(yE,{disabled:!0,title:"page.settings.common.currency",value:null===n||void 0===n?void 0:n.currency,options:["RUB","USD","EUR"],onChange:e=>{s({...n,currency:e})}})]}),(0,er.jsxs)(uE,{children:[(0,er.jsx)(dx,{title:"page.settings.common.workDaysInYear",value:null===n||void 0===n?void 0:n.workDaysInYear,onChange:e=>{s({...n,workDaysInYear:e})}}),(0,er.jsx)(dx,{title:"page.settings.common.vacationDaysInYear",value:null===n||void 0===n?void 0:n.vacationDaysInYear,onChange:e=>{s({...n,vacationDaysInYear:e})}})]}),(0,er.jsx)("div",{className:Cl.salary_footer,children:(0,er.jsx)(or,{mode:"second",onClick:()=>bi.open().then((()=>o())),children:xe.Z.get("page.settings.form.remove")})})]})]})};const kE=function(e){let{user:t,onChange:n,onRemove:a}=e;const s=t.salary.map(((e,a)=>(0,er.jsx)(wE,{index:a+1,salary:e,onChange:a=>{n({...t,salary:t.salary.map((t=>t.id===e.id?a:t))})},onRemove:()=>{n({...t,salary:t.salary.filter((t=>t.id!==e.id))})}},t.id)));return(0,er.jsxs)(Ac,{className:Cl.user,onRemove:()=>bi.open().then((()=>a())),children:[(0,er.jsx)(pm,{title:(null===t||void 0===t?void 0:t.name)||"",className:Cl.user_title}),s,(0,er.jsx)("div",{className:Cl.user_footer,children:(0,er.jsx)(or,{mode:"slim",onClick:()=>{n({...t,salary:[...t.salary,Rn($i.state)]})},children:xe.Z.get("page.settings.form.addContract")})})]})},_E=un((()=>{const e=$i.state.defaultSalary;return e?(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"page.settings.common.title"}),(0,er.jsxs)(Ac,{children:[(0,er.jsx)(yE,{disabled:!0,title:"page.settings.common.type.title",value:e.type,options:[{id:"full",title:xe.Z.get("page.settings.common.type.full")},{id:"part",title:xe.Z.get("page.settings.common.type.part")}],onChange:e=>{$i.updateState("defaultSalary.type",null===e||void 0===e?void 0:e.id)}}),(0,er.jsx)(yE,{disabled:!0,multiple:!0,title:"page.settings.common.workDaysInWeek",value:e.workDaysInWeek.map(((e,t)=>e?t+1:null)),options:[{id:1,title:Hn(0,"short")},{id:2,title:Hn(1,"short")},{id:3,title:Hn(2,"short")},{id:4,title:Hn(3,"short")},{id:5,title:Hn(4,"short")},{id:6,title:Hn(5,"short")},{id:7,title:Hn(6,"short")}],onChange:e=>{const t=new Array(7).fill(0).map(((t,n)=>e.includes(n+1)));console.log(t),$i.updateState("defaultSalary.workDaysInWeek",t)}}),(0,er.jsxs)(uE,{children:[(0,er.jsx)(dx,{title:"page.settings.common.salary",value:e.value,onChange:e=>{$i.updateState("defaultSalary.value",e)}}),(0,er.jsx)(dx,{disabled:!0,title:"page.settings.common.tax",value:e.tax,onChange:e=>{$i.updateState("defaultSalary.tax",e)}})]}),(0,er.jsxs)(uE,{children:[(0,er.jsx)(dx,{title:"page.settings.common.workDaysInYear",value:e.workDaysInYear,onChange:e=>{$i.updateState("defaultSalary.workDaysInYear",e)}}),(0,er.jsx)(dx,{title:"page.settings.common.vacationDaysInYear",value:e.vacationDaysInYear,onChange:e=>{$i.updateState("defaultSalary.vacationDaysInYear",e)}})]}),(0,er.jsx)(yE,{title:"page.settings.common.currency",value:e.currency,options:["USD","EUR","RUB","CNY","JPY","KRW","CAD"],onChange:e=>{$i.updateState("defaultSalary.currency",e)}})]})]}):null})),xE=_E,TE="checkbox_ui_kit_checkbox__4Wbr7",SE="checkbox_ui_kit_checkbox_box__OE3mx",CE="checkbox_ui_kit_checkbox_title__8wt7A";const EE=function(e){let{title:t,description:n,help:a,error:s,className:o,value:r,onChange:i}=e;const{t:l}=Bt(),c="checkbox-".concat(Math.ceil(1e4*Math.random()));return(0,er.jsx)(bl,{description:n,help:a,error:s,className:o,children:(0,er.jsxs)("div",{className:TE,children:[(0,er.jsx)("input",{type:"checkbox",id:c,checked:!!r,className:SE,onChange:()=>{i(!r)}}),(0,er.jsx)("label",{htmlFor:c,className:CE,children:l(t||"")})]})})},AE=un((()=>{const{i18n:e}=Bt(),[n,a]=(0,t.useState)(document.title),[s,o]=(0,t.useState)(xe.Z.language);return(0,t.useEffect)((()=>{e.changeLanguage(s)}),[s]),(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"page.settings.document.title"}),(0,er.jsxs)(Ac,{children:[(0,er.jsx)(sm,{title:"page.settings.document.name",value:n,placeholder:xe.Z.get("common.title"),onChange:e=>{a(e),document.title=e||xe.Z.get("common.title"),Io.C.title=!0}}),(0,er.jsx)(Sl,{title:"page.settings.document.language",value:s,options:[{id:"ru",title:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},{id:"en",title:"English"},{id:"zh",title:"\u4e2d\u6587"},{id:"es",title:"Espa\xf1ol"},{id:"fr",title:"Fran\xe7ais"},{id:"pt",title:"Portugu\xeas"},{id:"de",title:"Deutsch"},{id:"ja",title:"\u65e5\u672c\u8a9e"}],onChange:(e,t)=>{xe.Z.language=t,o(t)}}),(0,er.jsx)(EE,{value:$o.isDepersonalized,title:"page.settings.document.depersonalize",onChange:()=>{$o.depersonalized(!$o.isDepersonalized)}})]})]})})),jE=un((()=>{var e,t;return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"page.settings.links.title"}),(0,er.jsxs)(Ac,{children:[(0,er.jsx)(sm,{title:"page.settings.links.task",value:null===(e=$i.state)||void 0===e||null===(t=e.linksPrefix)||void 0===t?void 0:t.task,placeholder:"https://jira.com/secure/RapidBoard.jspa?task=",onChange:e=>{$i.updateState("linksPrefix.task",e)}}),(0,er.jsx)(sm,{title:"page.settings.links.pr",value:$i.state.linksPrefix.pr,placeholder:"https://bitbucket.com/projects/assayo/repos/frontend/pull-requests/",onChange:e=>{$i.updateState("linksPrefix.pr",e)}})]})]})}));const NE=function(){const e=$o.dataGrip.author.statistic.map((e=>"".concat(e.author," <").concat(e.firstCommit.email,"> <").concat(e.firstCommit.email,">"))).sort(),t=e.map((e=>(0,er.jsx)("p",{children:e},e))),n=e.join("\r\n");return(0,er.jsx)("div",{className:Cl.races_track,children:(0,er.jsx)(QC,{textForCopy:n,children:t})})},DE=un((e=>{const t=$i.state.employees;if(!e||!t)return null;const n=t.map((e=>e.name)),a=$o.dataGrip.author.list.filter((e=>!n.includes(e))).map(((e,t)=>({id:t,title:e}))),s=$i.state.employees.map((e=>(0,er.jsx)(kE,{user:e,onChange:n=>{const a=t.map((t=>t.id===e.id?n:t));$i.updateState("employees",a)},onRemove:()=>{const n=t.filter((t=>t.id!==e.id));$i.updateState("employees",n)}},e.id)));return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsxs)(Cc,{children:[(0,er.jsxs)(Nc,{children:[(0,er.jsx)(AE,{}),(0,er.jsx)(xE,{})]}),(0,er.jsxs)(Nc,{children:[(0,er.jsx)(jE,{}),(0,er.jsx)(pm,{title:"page.settings.mailmap"}),(0,er.jsx)(NE,{})]})]}),(0,er.jsxs)(Cc,{children:[(0,er.jsx)(pm,{title:"page.settings.user.title"}),t.length>0?s:(0,er.jsx)(Kc,{message:"page.settings.user.notFound"}),a.length&&(0,er.jsx)("div",{className:Cl.buttons_footer,children:(0,er.jsx)(dE,{options:a,onClick:e=>{$i.updateState("employees",[...t,In(null===e||void 0===e?void 0:e.title,$i.state,null===n||void 0===n?void 0:n.length)])},children:xe.Z.get("page.settings.form.addEmployee")})})]})]})})),OE=un((()=>(0,er.jsx)(nm,{to:"response",loader:()=>Fn.loadSettings().then((e=>($i.setInitState(e),Promise.resolve(e)))),children:(0,er.jsx)(DE,{})})));function PE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e)return t;for(let n in e){const a=e[n];null!==a&&void 0!==a&&a.title?t.push(a):"string"===typeof a?t.push({title:a}):PE(a,t)}return t}const RE=function(){const e=PE(xe.Z.translations[xe.Z.language].recommendations).map((e=>(0,er.jsx)(Dw,{recommendation:e},e[1]))),t=Object.entries(wn).sort(((e,t)=>e[1]-t[1])).map((e=>{let[t]=e;return(0,er.jsx)(hC,{code:t},t)}));return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(pm,{title:"page.person.achievement.title"}),(0,er.jsx)("div",{style:{columnCount:3,marginBottom:"24px"},children:t}),(0,er.jsx)("section",{children:e})]})};function IE(){return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(ii,{}),(0,er.jsx)(wi,{}),(0,er.jsxs)(de,{children:[(0,er.jsx)(ce,{path:"/settings",element:(0,er.jsx)(hc,{children:(0,er.jsx)(OE,{})})}),(0,er.jsx)(ce,{path:"/debug",element:(0,er.jsx)(hc,{children:(0,er.jsx)(RE,{})})}),(0,er.jsx)(ce,{path:"/print",element:(0,er.jsx)(hc,{children:(0,er.jsx)(KC,{})})}),(0,er.jsx)(ce,{path:"/:type/:page",element:(0,er.jsx)(hc,{children:(0,er.jsx)(tC,{})})}),(0,er.jsx)(ce,{path:"/:type/:page/:userId",element:(0,er.jsx)(hc,{children:(0,er.jsx)(VC,{})})}),(0,er.jsx)(ce,{path:"*",element:(0,er.jsx)(hc,{children:(0,er.jsx)(tC,{})})})]})]})}function LE(){return(0,er.jsx)(de,{children:(0,er.jsx)(ce,{path:"*",element:(0,er.jsx)(mE,{})})})}let FE=1;const ME=un((()=>{const e=Go.view;return(0,t.useEffect)((()=>{var e;const t=(null===(e=window)||void 0===e?void 0:e.report)||[];null!==t&&void 0!==t&&t.length&&FE!==(null===t||void 0===t?void 0:t.length)?(FE=null===t||void 0===t?void 0:t.length,$o.asyncSetCommits(t)):Go.toggle(Ho.WELCOME)}),[]),(0,t.useEffect)((()=>{e!==Ho.INFO||window.location.hash||(window.location.hash="#/team/total")}),[e]),e===Ho.EMPTY?null:(0,er.jsxs)(er.Fragment,{children:[e===Ho.WELCOME&&(0,er.jsx)(LE,{}),e===Ho.INFO&&(0,er.jsx)(IE,{}),(0,er.jsx)(vi,{}),(0,er.jsx)(tr,{onChange:(e,t)=>{"dump"===e&&$o.asyncSetCommits(t)}})]})})),WE=ME,BE="styles_notifications__87i8g",zE="styles_notifications_item__5QkTA",UE="styles_notifications_item_icon__DfYX+",HE="styles_notifications_item_error__scoxJ",GE="styles_notifications_item_warning__L7TAD",VE="styles_notifications_item_success__Kkmlt",KE="styles_notifications_item_info__i59W4",qE="styles_notifications_item_title__nX-MS",$E="styles_notifications_item_description__ehatL";const YE=function(e){let{message:t}=e;const n={error:HE,warning:GE,success:VE,info:KE}[t.type||"success"]||KE,a={error:"./assets/notifications/alert.svg",warning:"./assets/notifications/warning.svg",success:"./assets/notifications/info.svg",info:"./assets/notifications/info.svg"}[t.type||"info"]||"./assets/notifications/info.svg";return(0,er.jsxs)("div",{className:"".concat(zE," ").concat(n),children:[(0,er.jsx)("img",{className:UE,src:a}),t.title&&(0,er.jsx)("h6",{className:qE,children:t.title}),t.description&&(0,er.jsx)("p",{className:$E,children:t.description})]})},ZE=un((()=>{const e=ni.Z.messages.map((e=>(0,er.jsx)(YE,{message:e},e.id)));return Vt.createPortal((0,er.jsx)("div",{className:BE,children:e}),document.body)}));xe.Z.parse("de",Te),xe.Z.parse("en",Se),xe.Z.parse("es",Ce),xe.Z.parse("fr",Ee),xe.Z.parse("ja",Ae),xe.Z.parse("pt",je),xe.Z.parse("ru",Ne),xe.Z.parse("zh",De),(0,Io.Z)((e=>{!function(e){const t=e||localStorage.getItem("language")||Ht||"en";xe.Z.language=t,vt.use(Rt).init({lng:t,debug:!1,resources:Ut})}(e.lang||e.language),Or.setUrlParameters(e),Wn.loadUserSettings().then((()=>{!function(){window.onafterprint=()=>{Ml.endPrint()};const e=document.getElementById("root");e&&(0,a.s)(e).render((0,er.jsx)(t.StrictMode,{children:(0,er.jsxs)(ve,{children:[(0,er.jsx)(WE,{}),(0,er.jsx)(ZE,{})]})}))}()}))}))})()})();
-//# sourceMappingURL=main.6942b2ae.js.map
\ No newline at end of file
+//# sourceMappingURL=main.6942b2ae.js.map
+=======
+/*! For license information please see main.1aeae6b9.js.LICENSE.txt */
+(()=>{var __webpack_modules__={806:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function getGlobalValue(){return window.report}function setGlobalValue(e){window.report=e||[]}function getStringsForParser(text){let temp=getGlobalValue();setGlobalValue([]);const firstText=text.slice(0,3);if("rep"===firstText||"r(f"===firstText)try{eval(text)}catch(e){return void setGlobalValue(temp)}else setGlobalValue(text.split("\n"));return getGlobalValue()}async function getStringFromFileList(e){return(await Promise.all(e.map((e=>e.text())))).filter((e=>e)).map((e=>({key:e.substring(13,32),text:e}))).sort(((e,t)=>(e.key||"").localeCompare(t.key||""))).map((e=>e.text)).join("\n")}function getOnDrop(e,t){return async function(n){var s;n.preventDefault(),n.stopPropagation();const a=[...(null===n||void 0===n||null===(s=n.dataTransfer)||void 0===s?void 0:s.items)||[]].map((e=>"file"===e.kind?null===e||void 0===e?void 0:e.getAsFile():null)).filter((e=>e));if(console.log(a),e(!1),!a.length)return;const o=getStringsForParser(await getStringFromFileList(a));t("dump",o)}}function getShowDropZone(e){return function(t){t.preventDefault(),t.stopPropagation(),e(!0)}}__webpack_require__.d(__webpack_exports__,{BE:()=>getStringFromFileList,C4:()=>getShowDropZone,IM:()=>getStringsForParser,ae:()=>getOnDrop})},122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(98),a=n(289);class o{constructor(){this.timer=null,this.limit=6,this.messages=[],(0,s.rC)(this,{messages:s.LO,show:s.aD,startClearTimer:s.aD})}static getTime(){return(new Date).getTime()}show(e){this.messages.push({id:o.getTime(),title:a.Z.get((null===e||void 0===e?void 0:e.title)||e||"common.notifications.save"),description:(null===e||void 0===e?void 0:e.description)||"",type:(null===e||void 0===e?void 0:e.type)||"success"}),this.messages.length>this.limit&&this.messages.shift(),this.startClearTimer()}startClearTimer(){this.timer||(this.timer=setInterval((()=>{const e=o.getTime()-3500;this.messages=this.messages.filter((t=>(null===t||void 0===t?void 0:t.id)>e)),this.messages.length||(clearInterval(this.timer),this.timer=null)}),500))}}const r=new o},289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,t:()=>h});var s=n(274),a=n(359),o=(0,a.Z)("addInTranslate"),r=(0,a.Z)("createPathByKey"),i=(0,a.Z)("addInObject");function l(e,t){const n=e.split(".");let s=this.translations;for(let a=0,o=n.length;a{let n=t.indexOf("\n");n===t.length-1&&(n=t.indexOf(":"));const a=e+"."+t.slice(0,n),r=t.slice(n+1).trim();(0,s.Z)(this,o)[o](a,r)}))}add(e,t){t?(0,s.Z)(this,i)[i]((0,s.Z)(this,r)[r](e),t):(0,s.Z)(this,i)[i](this.translations,e)}};window.localization=d;const u=d;function h(e){return d.get(e)}},575:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>applicationHasCustom,Z:()=>applyUrlCommands});var ts_helpers_Localization__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(289),ts_components_Notifications_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(122);function getParametersFromString(e){return Object.fromEntries((e||"").substring(1,1/0).split("&").map((e=>e.split("="))))}function getParametersFromURL(){const e={...getParametersFromString(location.search),...getParametersFromString(location.hash)};return delete e[""],e}function loadJsLocal(e,t){const n=document.createElement("script");n.src=e,n.async=!0,n.onload=t,n.onerror=()=>{ts_components_Notifications_store__WEBPACK_IMPORTED_MODULE_1__.Z.show("common.fileLoader.notification")},document.body.appendChild(n)}function loadJsLGlobal(url,callback){fetch(url).then((e=>e.text())).then((text=>text?"r"===text[0]?(eval(text),callback()):(window.report=text.split("\n"),void callback()):callback()))}function loadJsDump(e,t){"."===(null===e||void 0===e?void 0:e[0])?loadJsLocal(e,t):loadJsLGlobal(e,t)}function loadCssFile(e){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.body.appendChild(t)}let applicationHasCustom={theme:!1,title:!1};function applyUrlCommands(e){const t=getParametersFromURL(),n=t.style||t.theme;n&&(loadCssFile(n),applicationHasCustom.theme=!0);const s=t.title;s&&(document.title=decodeURIComponent(s),applicationHasCustom.title=!0);const a=t.lang||t.language;a&&(ts_helpers_Localization__WEBPACK_IMPORTED_MODULE_0__.Z.language=a);const o=t.dump||t.log;o?loadJsDump(o,(()=>e(t))):e(t)}},98:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>je,Gf:()=>zt,LO:()=>Ce,aD:()=>Nt,jQ:()=>Wt,le:()=>gt,rC:()=>cn});function s(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s=In),Mn=String.fromCharCode(32),Wn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Gn(e,t,n,s){Ce(s),0<(t=Vs(t,"onChange")).length&&(n=new mn("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var Vn=null,Kn=null;function qn(e){Ms(e,0)}function Yn(e){if(K(wa(e)))return e}function Zn(e,t){if("change"===e)return t}var Xn=!1;if(m){var Jn;if(m){var Qn="oninput"in document;if(!Qn){var es=document.createElement("div");es.setAttribute("oninput","return;"),Qn="function"===typeof es.oninput}Jn=Qn}else Jn=!1;Xn=Jn&&(!document.documentMode||9