mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-16 04:07:51 +00:00
1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1942],{94011:function(e,t,r){r.d(t,{Z:function(){return u}});var s=r(83910),n=r(44194),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},i=r(5901),o=function(e,t){return n.createElement(i.Z,(0,s.Z)({},e,{ref:t,icon:a}))};var u=n.forwardRef(o)},1920:function(e,t,r){r.d(t,{Z:function(){return u}});var s=r(83910),n=r(44194),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},i=r(5901),o=function(e,t){return n.createElement(i.Z,(0,s.Z)({},e,{ref:t,icon:a}))};var u=n.forwardRef(o)},86883:function(e,t,r){var s=(0,r(35182).i)("Column");t.Z=s},2294:function(e,t,r){var s=(0,r(35182).i)("DualAxes");t.Z=s},69563:function(e,t,r){var s=(0,r(35182).i)("Heatmap");t.Z=s},25847:function(e,t,r){var s=(0,r(35182).i)("Pie");t.Z=s},44635:function(e,t,r){r.d(t,{LE:function(){return l},W5:function(){return h},p0:function(){return f},zl:function(){return g}});var s=r(90819),n=r.n(s),a=r(73193),i=r.n(a),o=r(89933),u=r.n(o),c=r(62395);function l(e){return d.apply(this,arguments)}function d(){return(d=u()(n()().mark((function e(t){return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.request)("/api/v1/workgroup/query/org",{method:"GET",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return(p=u()(n()().mark((function e(t){return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.request)("/api/v1/workgroup/create",{method:"POST",data:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return x.apply(this,arguments)}function x(){return(x=u()(n()().mark((function e(t){return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.request)("/api/v1/workgroup/update",{method:"POST",data:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return m.apply(this,arguments)}function m(){return(m=u()(n()().mark((function e(t){return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.request)("/api/v1/workgroup/delete",{method:"POST",data:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},60345:function(e,t,r){r.r(t);var s=r(90819),n=r.n(s),a=r(89933),i=r.n(a),o=r(45332),u=r.n(o),c=r(44194),l=r(35079),d=r(78380),f=r(63052),p=r(89654),h=r(92393),x=r(62954),g=r(72264),m=r(21478),v=r(22888),j=r(35490),k=r(33633),y=r(67194),w=r(44966),Z=r(2294),b=r(69563),F=r(86883),M=r(25847),R=r(57949),W=r(94011),S=r(35911),O=r(33e3),C=r(43837),A=r(12715),T=r(1920),z=r(62395),E=r(6677),I=r(44635),q=r(99754),P=r(77686),H=r(66675),U=r(81997),V=r(68992),B=r(45634),D=r.n(B),G=r(61489),L=r(31549),N=l.default.RangePicker,Q=d.Z.Option;t.default=function(){var e,t,r=(0,z.useIntl)(),s=(0,q.Z)().translateStringTranct,a=(0,c.useState)(D()().startOf("day")),o=u()(a,2),l=o[0],B=o[1],$=(0,c.useState)(D()().endOf("day")),J=u()($,2),_=J[0],K=J[1],X=(0,c.useState)("today"),Y=u()(X,2),ee=Y[0],te=Y[1],re=(0,c.useState)(V.whQ),se=u()(re,2),ne=se[0],ae=se[1],ie=(0,c.useState)(),oe=u()(ie,2),ue=oe[0],ce=oe[1],le=(0,c.useState)(),de=u()(le,2),fe=de[0],pe=de[1],he=(0,P.u)((function(e){return e.currentOrg})),xe=(0,H.E)((function(e){return e})),ge=xe.agentResult,me=xe.setAgentResult,ve=(0,U.$)((function(e){return e})),je=ve.workgroupResult,ke=ve.setWorkgroupResult,ye=(0,c.useState)(),we=u()(ye,2),Ze=(we[0],we[1],(0,c.useState)(V.OwA)),be=u()(Ze,2),Fe=be[0],Me=be[1],Re=(0,c.useState)(!1),We=u()(Re,2),Se=(We[0],We[1]),Oe=[{label:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.timeRange.today"}),value:"today"},{label:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.timeRange.yesterday"}),value:"yesterday"},{label:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.timeRange.week"}),value:"week"},{label:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.timeRange.lastWeek"}),value:"lastWeek"},{label:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.timeRange.month"}),value:"month"},{label:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.timeRange.custom"}),value:"custom"}],Ce={total:1580,newToday:12,updatedMonth:156,coverage:85.6},Ae={total:25600,avgClicks:35,searchCount:8900,hitRate:92.5},Te={helpful:2360,unhelpful:180,feedbackRate:15.8,comments:560},ze=(z.FormattedMessage,z.FormattedMessage,z.FormattedMessage,z.FormattedMessage,z.FormattedMessage,{newArticles:85,updates:156,visits:12580,searches:4560}),Ee=[{date:"2024-01",articles:1200,updates:580,visits:25600},{date:"2024-02",articles:1280,updates:620,visits:28900}];(0,c.useEffect)((function(){if("custom"===ee)B(l),K(_),Me(V.dd4);else{var e=D()();"today"===ee?(B(e),K(e),Me(V.OwA)):"yesterday"===ee?(B(e.subtract(1,"day")),K(e.subtract(1,"day")),Me(V.OwA)):"week"===ee?(B(e.startOf("week")),K(e.endOf("week")),Me(V.dd4)):"lastWeek"===ee?(B(e.subtract(1,"week").startOf("week")),K(e.subtract(1,"week").endOf("week")),Me(V.dd4)):"month"===ee&&(B(e.startOf("month")),K(e.endOf("month")),Me(V.dd4))}}),[ee]);var Ie=function(){var e=i()(n()().mark((function e(){var t,r;return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G.yw.loading("loading"),t={pageNumber:0,pageSize:50,orgUid:null==he?void 0:he.uid},e.next=4,(0,I.LE)(t);case 4:r=e.sent,console.log("fetchAllWorkgroups: ",r),200===r.code?(G.yw.destroy(),ke(r),r.data.content.length>0&&pe(r.data.content[0].uid)):(G.yw.destroy(),G.yw.error(r.message));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qe=function(){var e=i()(n()().mark((function e(){var t,r;return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G.yw.loading("loading"),t={pageNumber:0,pageSize:50,orgUid:null==he?void 0:he.uid},e.next=4,(0,E._t)(t);case 4:r=e.sent,console.log("fetchAllAgents: ",r),200===r.code?(G.yw.destroy(),me(r),r.data.content.length>0&&ce(r.data.content[0].uid)):(G.yw.destroy(),G.yw.error(s(r.message))),console.log("queryAllAgents response",r);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Pe=function(){var e=i()(n()().mark((function e(){return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Se(!0);try{G.yw.loading("loading")}catch(e){G.yw.error(r.formatMessage({id:"ticket.message.operation.failed"}))}finally{Se(!1)}case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),He=function(){var e=i()(n()().mark((function e(){return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:G.yw.loading("loading");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){Ie(),qe()}),[]),(0,c.useEffect)((function(){Pe()}),[ne,ue,fe]),(0,c.useEffect)((function(){He()}),[Fe,ne,ue,fe]),(0,c.useEffect)((function(){Pe()}),[l,_]),(0,L.jsxs)("div",{style:{padding:16},children:[(0,L.jsx)(f.Z,{style:{marginBottom:16},children:(0,L.jsxs)(p.Z,{direction:"vertical",style:{width:"100%"},children:[(0,L.jsxs)(p.Z,{wrap:!0,children:[(0,L.jsx)(h.ZP.Group,{value:ee,onChange:function(e){return te(e.target.value)},children:Oe.map((function(e){return(0,L.jsx)(h.ZP.Button,{value:e.value,children:e.label},e.value)}))}),"custom"===ee&&(0,L.jsx)(N,{value:[l,_],onChange:function(e){B(e[0]),K(e[1])}})]}),(0,L.jsxs)(p.Z,{wrap:!0,children:[(0,L.jsxs)(d.Z,{placeholder:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.filter.type"}),style:{width:200},value:ne,onChange:function(e){return ae(e)},children:[(0,L.jsx)(Q,{value:V.whQ,children:(0,L.jsx)(z.FormattedMessage,{id:"i18n.all"})}),(0,L.jsx)(Q,{value:V.fyH,children:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.filter.agent"})}),(0,L.jsx)(Q,{value:V.v5D,children:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.filter.workgroup"})})]}),ne===V.fyH&&(0,L.jsx)(d.Z,{placeholder:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.filter.agent"}),style:{width:200},value:ue,onChange:function(e){return ce(e)},children:null===(e=ge.data)||void 0===e||null===(e=e.content)||void 0===e?void 0:e.map((function(e){return(0,L.jsx)(Q,{value:null==e?void 0:e.uid,children:s(null==e?void 0:e.nickname)},null==e?void 0:e.uid)}))}),ne===V.v5D&&(0,L.jsx)(d.Z,{placeholder:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.filter.department"}),style:{width:200},value:fe,onChange:function(e){return pe(e)},children:null===(t=je.data)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.map((function(e){return(0,L.jsx)(Q,{value:null==e?void 0:e.uid,children:s(null==e?void 0:e.nickname)},null==e?void 0:e.uid)}))}),(0,L.jsx)(x.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.filter.export"}),children:(0,L.jsx)(g.ZP,{icon:(0,L.jsx)(W.Z,{}),onClick:function(){G.yw.warning("TODO: 待实现")},children:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.filter.export"})})}),(0,L.jsx)(x.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.filter.refresh"}),children:(0,L.jsx)(g.ZP,{icon:(0,L.jsx)(S.Z,{}),onClick:function(){return Pe()},children:(0,L.jsx)(z.FormattedMessage,{id:"ticket.statistic.filter.refresh"})})}),!1]})]})}),(0,L.jsx)(f.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.analysis"}),children:(0,L.jsxs)(m.Z,{gutter:[16,16],children:[(0,L.jsx)(v.Z,{span:6,children:(0,L.jsx)(j.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.newArticles"}),value:ze.newArticles,suffix:(0,L.jsx)(x.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.compare"}),children:(0,L.jsx)(k.Z,{color:"green",children:"+15%"})})})}),(0,L.jsx)(v.Z,{span:6,children:(0,L.jsx)(j.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.updates"}),value:ze.updates,suffix:(0,L.jsx)(x.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.compare"}),children:(0,L.jsx)(k.Z,{color:"blue",children:"+8%"})})})}),(0,L.jsx)(v.Z,{span:6,children:(0,L.jsx)(j.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.visits"}),value:ze.visits,suffix:(0,L.jsx)(x.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.compare"}),children:(0,L.jsx)(k.Z,{color:"green",children:"+23%"})})})}),(0,L.jsx)(v.Z,{span:6,children:(0,L.jsx)(j.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.searches"}),value:ze.searches,suffix:(0,L.jsx)(x.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.compare"}),children:(0,L.jsx)(k.Z,{color:"blue",children:"+12%"})})})})]})}),(0,L.jsx)(f.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.growth.trend"}),style:{marginTop:16},children:(0,L.jsx)(Z.Z,{data:[Ee,Ee],xField:"date",yField:["articles","visits"],geometryOptions:[{geometry:"column",columnStyle:{radius:[4,4,0,0]}},{geometry:"line",lineStyle:{lineWidth:2}}]})}),(0,L.jsx)(f.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.heatmap"}),style:{marginTop:16},children:(0,L.jsx)(b.Z,{data:[{hour:"00:00",day:"周一",value:10},{hour:"01:00",day:"周一",value:5}],xField:"hour",yField:"day",colorField:"value",shape:"square"})}),(0,L.jsxs)(m.Z,{gutter:[16,16],style:{marginTop:16},children:[(0,L.jsx)(v.Z,{span:12,children:(0,L.jsx)(f.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.comparison"}),children:(0,L.jsx)(F.Z,{data:[{type:"上周",value:890},{type:"本周",value:1080},{type:"环比",value:980},{type:"同比",value:850}],xField:"type",yField:"value",label:{position:"top"}})})}),(0,L.jsx)(v.Z,{span:12,children:(0,L.jsx)(f.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.time.distribution"}),children:(0,L.jsx)(M.Z,{data:[{time:"工作时间",value:68},{time:"非工作时间",value:32}],angleField:"value",colorField:"time",radius:.8})})})]}),(0,L.jsxs)(m.Z,{gutter:[16,16],children:[(0,L.jsx)(v.Z,{span:6,children:(0,L.jsxs)(f.Z,{children:[(0,L.jsx)(j.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.articles.total"}),value:Ce.total,prefix:(0,L.jsx)(O.Z,{}),suffix:(0,L.jsxs)("small",{style:{fontSize:14},children:["(+",Ce.newToday,")"]})}),(0,L.jsx)(y.Z,{percent:Ce.coverage,size:"small",status:"active"})]})}),(0,L.jsx)(v.Z,{span:6,children:(0,L.jsxs)(f.Z,{children:[(0,L.jsx)(j.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.visits.total"}),value:Ae.total,prefix:(0,L.jsx)(C.Z,{})}),(0,L.jsx)(y.Z,{percent:Ae.avgClicks/50*100,size:"small"})]})}),(0,L.jsx)(v.Z,{span:6,children:(0,L.jsxs)(f.Z,{children:[(0,L.jsx)(j.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.search.count"}),value:Ae.searchCount,prefix:(0,L.jsx)(A.Z,{})}),(0,L.jsx)(y.Z,{percent:Ae.hitRate,size:"small",status:"active"})]})}),(0,L.jsx)(v.Z,{span:6,children:(0,L.jsxs)(f.Z,{children:[(0,L.jsx)(j.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.feedback.helpful"}),value:Te.helpful,prefix:(0,L.jsx)(T.Z,{})}),(0,L.jsx)(y.Z,{percent:Te.feedbackRate,size:"small"})]})})]}),(0,L.jsxs)(m.Z,{gutter:[16,16],style:{marginTop:16},children:[(0,L.jsx)(v.Z,{span:12,children:(0,L.jsx)(f.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.article.status"}),children:(0,L.jsx)(M.Z,{data:[{status:"已发布",value:1200},{status:"待审核",value:85},{status:"草稿",value:156},{status:"已归档",value:89},{status:"待更新",value:50}],angleField:"value",colorField:"status",radius:.8})})}),(0,L.jsx)(v.Z,{span:12,children:(0,L.jsx)(f.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.visit.trend"}),children:(0,L.jsx)(R.Z,{data:[{date:"2024-01-01",visits:580,searches:256},{date:"2024-01-02",visits:680,searches:312}],xField:"date",yField:"visits",seriesField:"type"})})})]}),(0,L.jsx)(f.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.search.hot"}),style:{marginTop:16},children:(0,L.jsx)(F.Z,{data:[{word:"登录问题",count:256},{word:"密码重置",count:198},{word:"账号注册",count:156}],xField:"word",yField:"count",label:{position:"top"}})}),(0,L.jsxs)(m.Z,{gutter:[16,16],style:{marginTop:16},children:[(0,L.jsx)(v.Z,{span:8,children:(0,L.jsx)(f.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.quality.score"})})}),(0,L.jsx)(v.Z,{span:16,children:(0,L.jsx)(f.Z,{title:(0,L.jsx)(z.FormattedMessage,{id:"kbase.statistic.quality.detail"}),children:(0,L.jsx)(w.Z,{columns:[{key:"metric",title:"指标",dataIndex:"metric"},{key:"score",title:"得分",dataIndex:"score"},{key:"trend",title:"趋势",dataIndex:"trend"}],dataSource:[{key:"metric",metric:"内容完整度",score:85,trend:"上升"},{key:"score",metric:"更新及时性",score:78,trend:"稳定"},{key:"trend",metric:"用户满意度",score:92,trend:"上升"}],size:"small"})})})]})]})}},81997:function(e,t,r){r.d(t,{$:function(){return d}});var s=r(73193),n=r.n(s),a=r(76711),i=r.n(a),o=r(68992),u=r(58063),c=r(66266),l=r(31403),d=(0,u.Ue)()((0,c.mW)((0,c.tJ)((0,l.n)((function(e,t){return{workgroupResult:{data:{content:[]}},currentWorkgroup:{uid:"",nickname:"",avatar:"",description:"",orgUid:""},insertWorkgroup:function(t){e((function(e){e.workgroupResult.data.content.unshift(t)}))},updateWorkgroup:function(t){e((function(e){var r=e.workgroupResult.data.content,s=r.findIndex((function(e){return e.uid===t.uid}));-1!==s?r[s]=t:console.warn("Workgroup with uid ".concat(t.uid," not found."))}))},deleteWorkgroup:function(t){e((function(e){var r=e.workgroupResult.data.content,s=r.findIndex((function(e){return e.uid===t.uid}));-1!==s?r.splice(s,1):console.warn("Workgroup with uid ".concat(t.uid," not found."))}))},setWorkgroupResult:function(r){var s;(e({workgroupResult:r}),""===t().currentWorkgroup.uid)&&((null===(s=r.data)||void 0===s||null===(s=s.content)||void 0===s?void 0:s.length)>0&&e({currentWorkgroup:r.data.content[0]}))},setCurrentWorkgroup:function(r){var s=t().workgroupResult.data.content,a=s.findIndex((function(e){return e.uid===r.uid}));if(-1!==a){var o=[].concat(i()(s.slice(0,a)),[r],i()(s.slice(a+1))),u=n()(n()({},t().workgroupResult),{},{data:{content:o}});e({workgroupResult:u,currentWorkgroup:r})}else console.warn("Workgroup with the specified uid not found."),e({currentWorkgroup:r})},deleteCurrentWorkgroup:function(r){var s=t().workgroupResult.data.content,a=s.findIndex((function(e){return e.uid===r}));-1!==a?e({workgroupResult:n()(n()({},t().workgroupResult),{},{data:{content:[].concat(i()(s.slice(0,a)),i()(s.slice(a+1)))}})}):console.warn("Workgroup not found in cache:",r),t().currentWorkgroup.uid===r&&e({currentWorkgroup:{uid:"",orgUid:""}})},deleteWorkgroupCache:function(){return e({},!0)}}})),{name:o.b6l})))},50301:function(e,t,r){r.d(t,{Z:function(){return n}});var s=r(99845);function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=(0,s.Z)(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){u=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw i}}}}}}]); |