@clickview/reports 0.11.1-rc.0 → 0.11.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/reports",
3
- "version": "0.11.1-rc.0",
3
+ "version": "0.11.1-rc.2",
4
4
  "description": "ClickView Reports",
5
5
  "main": "dist/reports-app.js",
6
6
  "scripts": {
@@ -27,7 +27,7 @@
27
27
  "redux-devtools-extension": "2.13.8"
28
28
  },
29
29
  "dependencies": {
30
- "@clickview/styles": "1.11.1-rc.0",
30
+ "@clickview/styles": "1.11.1-rc.2",
31
31
  "chroma-js": "2.1.2",
32
32
  "highcharts": "9.1.0",
33
33
  "highcharts-react-official": "3.0.0",
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[772],{48386:(e,t,n)=>{n.d(t,{V:()=>b});var a,r=n(1024),o=n(28400),i=n(67453),c=n(54610),l=n(8493),s=n(5465),u=n(83345);!function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(a||(a={}));var m=n(22902),d=n(16714),p=n(65858),v=n(17836),y=function(e){var t=e.name,n=e.multiline,a="".concat(v.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),o="";return n?o+=" ".concat(v.Z.clamped," clamp-2"):(a+=" text-nowrap",o+=" text-truncate"),r.createElement("div",{className:a},r.createElement("small",{className:"text-muted"},r.createElement(u.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),r.createElement("p",{className:"".concat(v.Z.name," h6")},r.createElement("span",{className:o},t)))},f=function(e){var t=e.name,n=e.multiline,a=e.presentationName,o="px-3 text-center d-flex flex-column justify-content-center",i="".concat(v.Z.name," h6");return n?i+=" ".concat(v.Z.clamped," clamp-2 text-left"):(o+=" text-nowrap text-truncate",i+=" text-truncate mb-0 pb-1"),r.createElement("div",{className:o},a&&r.createElement("div",{className:"text-secondary ".concat(v.Z.text)},a),r.createElement("div",{className:i},t))};function g(e){var t,n,o=(null===(t=e.data)||void 0===t?void 0:t.status)===a.ComingSoon,l=i.j.createUrl(null===(n=e.data.cover)||void 0===n?void 0:n.url,{size:c.h2.Small}),u=function(e,t){var n,a=(0,(0,m.T)().hasPermissions)(d.C.StudentExperience);if((null==t?void 0:t.length)>=2&&!a)return null===(n=null==t?void 0:t.find((function(t){return t.id===e})))||void 0===n?void 0:n.name}(null==e?void 0:e.data.presentationId,null==e?void 0:e.availablePresentations),p={name:e.data.name,presentationName:u,multiline:e.isLarge};return r.createElement("div",{className:"border d-flex position-relative ".concat(v.Z.widgetItem),id:e.data.id},r.createElement("div",{className:"".concat(v.Z.imagePanel," ").concat(e.isLarge?v.Z.large:"")},r.createElement("div",{className:v.Z.image,style:{backgroundImage:"url('".concat(l,"')")}}),r.createElement(s.oy,{type:s.mS.Subject,extraClasses:e.isLarge?v.Z.large:""})),o?r.createElement(y,Object.assign({},p)):r.createElement(f,Object.assign({},p)))}var b=r.memo((function(e){var t,n,i,c,s=!!e.appLink&&Object.assign(Object.assign({},e.appLink),{args:[e.data.id,o.m.slugify(e.data.name)]}),u=(null===(t=e.data)||void 0===t?void 0:t.status)===a.ComingSoon,m=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(i=e.data)||void 0===i?void 0:i.name,presentationId:null===(c=e.data)||void 0===c?void 0:c.presentationId,comingSoon:!!u}),d=Object.assign(Object.assign({location:p.LocationContext.ClassificationListItem},e.analyticsOptions),{actionType:p.UserAction.Click,entity:p.EntityType.Classification,descriptor:p.ClickDescriptor.Cover}),y={data:e.data,isLarge:e.isLarge,availablePresentations:e.availablePresentations};return s?r.createElement(l.F,{className:v.Z.appLink,appLink:s,analyticsData:m,analyticsOptions:d},r.createElement(g,Object.assign({},y))):r.createElement(g,Object.assign({},y))}))},97308:(e,t,n)=>{n.d(t,{f:()=>P});var a,r,o,i,c,l,s=n(1024),u=n.n(s),m=n(72306),d=n.n(m),p=n(70312),v=n.n(p),y=n(99910),f=n(23481),g=n(99183),b=n(75896),h=n(39709),E=n(85408),w=n(62798),j=n(34354);function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=(C(a={},w.t.Login,"login_group_by"),C(a,w.t.VideoView,"video_view_group_by"),a),S=(C(r={},j.k.YearGroup,"yearGroups"),C(r,j.k.Role,"role"),C(r,j.a.ContentType,"contentType"),C(r,j.a.Subject,"subject"),C(r,j.a.Topic,"topic"),r),N=j.k.YearGroup,x=(C(c={},w.t.Login,(C(o={},j.k.YearGroup,"totalStudentLogins"),C(o,j.k.Role,"totalLogins"),o)),C(c,w.t.VideoView,(C(i={},j.k.YearGroup,"totalStudentViews"),C(i,j.k.Role,"totalViews"),C(i,j.a.ContentType,"totalViews"),C(i,j.a.Subject,"totalViews"),C(i,j.a.Topic,"totalViews"),i)),c),k=(C(l={},w.t.Login,"logins"),C(l,w.t.VideoView,"views"),l),I={title:{text:null},credits:{enabled:!1},chart:{backgroundColor:"transparent",spacing:[0,0,0,0]},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0}}};function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function A(e,t){var n=T[e];return t?n+"_single":n}function L(e,t){return Object.assign(Object.assign({},I),{series:[{type:"pie",name:t,data:e}]})}function V(e,t,n,a){var r={},o=e[t];return null==o||o.forEach((function(e){var t;e.name&&!(null==n?void 0:n.includes(e.name.toLowerCase()))&&(r[e.name]=null!==(t=r[e.name])&&void 0!==t?t:0,r[e.name]+=e.count)})),(0,E.n)(b.m.sortBy(Object.keys(r).map((function(e){return{name:a?a(e):e,y:r[e],type:"pie"}})),"name"))}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var R=f.T.encloseNamespace("shared.userActivityPieChart");function _(e){var t=function(e,t){var n,a=[j.k.YearGroup,j.k.Role];return e===w.t.VideoView&&a.push(j.a.ContentType),t&&a.push.apply(a,function(e){if(Array.isArray(e))return O(e)}(n=t.map((function(e){return e.type})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a}(e.eventType,e.customGroupBy);return u().createElement(y.Dropdown,{alignRight:!0},u().createElement(y.Dropdown.Toggle,{id:"group-by-dropdown",variant:"outline-dark",className:"no-caret"},R(S[e.selectedOption])),u().createElement(y.Dropdown.Menu,null,t.map((function(t,n){return e.selectedOption!==t&&u().createElement(y.Dropdown.Item,{key:n,onSelect:function(){return e.onSelect(t)}},R(S[t]))}))))}function P(e){var t,n,a,r,o,i=(r=u().useState((t=e.eventType,n=!!e.objectId,null!=(a=localStorage.getItem(A(t,n)))?a:N)),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){c=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw r}}return o}}(r,o)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=i[0],l=i[1];(0,g.I)();var s,m,p,y=function(e,t){switch(t){case j.k.YearGroup:return V(e,"yearGroupCount",["staff","unknown"]);case j.k.Role:return V(e,"userTypeCount",null,h.j);case j.a.ContentType:return V(e,"contentTypeCount")}}(e.events,c),f=function(e){var t;return null!==(t=null==e?void 0:e.reduce((function(e,t){return e+t.y}),0))&&void 0!==t?t:null}(y),b=(s=c,m=e.customGroupBy,Array.isArray(m)?null===(p=m.find((function(e){return e.type===s})))||void 0===p?void 0:p.getComponent:void 0);return u().createElement(u().Fragment,null,u().createElement("div",{className:"d-flex align-items-start justify-content-between w-100"},u().createElement("div",null,u().createElement("h3",{className:"h6 m-0"},R(x[e.eventType][c])),"number"==typeof f&&u().createElement("strong",{className:"wWFbs"},f)),u().createElement(_,{eventType:e.eventType,selectedOption:c,onSelect:function(t){!function(e,t,n){localStorage.setItem(A(e,n),t)}(e.eventType,t,!!e.objectId),l(t)},customGroupBy:e.customGroupBy})),!!b&&b(),!b&&((null==y?void 0:y.length)?u().createElement(v(),{highcharts:d(),options:L(y,R(k[e.eventType])),containerProps:{className:"".concat("qJ6EX"," position-absolute w-100 h-75 flex-grow-1")}}):e.emptyStateComponent))}},4557:(e,t,n)=>{n.d(t,{J:()=>o});var a=n(1024),r=n.n(a);function o(){return r().createElement("div",{className:"d-flex align-items-start justify-content-between"},r().createElement("div",null,r().createElement("div",{className:"partial-loading-background mb-2 ".concat("UVI0o")}),r().createElement("div",{className:"partial-loading-background ".concat("uuZBw")})),r().createElement("div",{className:"partial-loading-background rounded ".concat("kSt5B")}))}},34354:(e,t,n)=>{var a,r;n.d(t,{a:()=>r,k:()=>a}),function(e){e.YearGroup="year_group",e.Role="role"}(a||(a={})),function(e){e.ContentType="content_type",e.Subject="subject",e.Topic="topic"}(r||(r={}))},62798:(e,t,n)=>{var a;n.d(t,{t:()=>a}),function(e){e.Login="login",e.VideoView="video_view"}(a||(a={}))},24685:(e,t,n)=>{var a;n.d(t,{T:()=>a}),function(e){e[e.RootTopic=1]="RootTopic",e[e.ChildTopic=2]="ChildTopic"}(a||(a={}))},43990:(e,t,n)=>{n.d(t,{x:()=>i});var a=n(97395),r=n(82974);function o(e,t){return Object.assign(Object.assign({},e),{topicAnalyticsType:t,query:"cover"})}var i={topTopics:function(e,t,n,i,c){return{url:a._.urlBuilder("{gateway}/v1/analytics/topics/top",o(e,t)),key:(0,r.H)("top:topics:".concat(t),e),success:n,error:i,always:c}},viewsByTopic:function(e,t,n,i,c){return{url:a._.urlBuilder("{gateway}/v1/analytics/topics/count",o(e,t)),key:(0,r.H)("views:topics:".concat(t),e),normalize:!1,success:n,error:i,always:c}}}},99183:(e,t,n)=>{n.d(t,{I:()=>o});var a=n(2948),r=n(79489);function o(){(0,a.D)(r.y.LEFT_NAV_STATE)}},85408:(e,t,n)=>{n.d(t,{n:()=>r});var a=["#FF9300","#38A2E8","#7A76E8","#B679C7","#F7847B","#D9584F","#FFCD52","#5DC786","#40BCC3","#40C2BB"];function r(e){return e.map((function(e,t){return Object.assign(Object.assign({},e),{color:a[t%a.length]})}))}},39709:(e,t,n)=>{n.d(t,{B:()=>l,j:()=>s});var a=n(76198),r=n(23481),o=n(55452),i=n(76881),c=r.T.encloseNamespace("reportsShared.utils");function l(e,t){return t?(0,a._8)(function(e){var t=+"".concat(e.id).concat(Math.floor((new Date).getMinutes()/5));return{dictionaries:[a.O9,a.yd],separator:" ",length:2,style:"capital",seed:t}}(e)):o.l.getFullName(e)}function s(e){switch(e){case i.Y.Learner:return c("student");case i.Y.Staff:return c("staff");default:return e}}},67772:(e,t,n)=>{n.d(t,{m:()=>V});var a=n(1024),r=n.n(a),o=n(20354),i=n(65858),c=n(31949),l=n(52622),s=n(25964),u=n(15311),m=n(12754),d=n(9537),p=n(99827),v=n(9977),y=n(97308),f=n(4557),g=n(62798),b=n(34354),h=n(24685),E=n(23232),w=n(23481),j=n(55884),C=w.T.encloseNamespace("reportsShared.viewCountPieChartEmptyState");function T(e){return r().createElement(E.u,{className:"flex-grow-1 justify-content-center"},r().createElement(E.u.Image,{src:j.W.EmptyStates.Shared.ViewCount,className:"w-75 pb-0"}),r().createElement(E.u.Heading,null,C("heading")),r().createElement(E.u.Info,{className:"w-100"},C(e.singular?"descriptionSingular":"descriptionMultiple")))}var S=n(54976),N=n.n(S),x=n(48386),k=n(36532),I=n(43990);const O="yAC35";var A=w.T.encloseNamespace("reportsShared.viewCountByTopicCard");function L(e){var t=(0,p.R)(),n=o.a.useBasicFetch(!!t&&I.x.viewsByTopic(t,e.type));return n.data?n.data.length?r().createElement("div",{className:"h-100 mr-n2"},r().createElement(N(),{height:"100%",className:"mt-2"},r().createElement("div",{className:"d-flex align-items-center pr-1"},r().createElement("div",{className:"d-flex flex-wrap pr-2 ".concat(O)},r().createElement("strong",{className:"mr-1"},A(e.type===h.T.RootTopic?"subject":"topic")),r().createElement("span",{className:"text-muted"},A(e.type===h.T.RootTopic?"multipleSubjects":"multipleTopics"))),r().createElement("strong",null,A("views"))),r().createElement("ul",{className:"list-unstyled"},n.data.map((function(e,t){return r().createElement("li",{key:t},r().createElement(k.u,{title:e.collection.name,spanHack:!0,spanHackClassName:"d-flex align-items-center pr-1"},r().createElement("div",{className:"py-2 pr-2 ".concat(O)},r().createElement(x.V,{data:e.collection})),r().createElement("strong",null,A("viewCount",{smartCount:e.count}))))}))))):r().createElement(T,null):r().createElement(r().Fragment,null)}function V(e){var t,n=(0,p.R)(),a=o.a.useBasicFetch(!!e.useSharerId&&c.N.currentUser()),E=(0,u.r)(),w=E.hasProduct,j=E.products,C=(0,s.r)(i.LocationContext.VideoOverview).hasOnlineTopics,S=o.a.useBasicFetch(!!n&&(e.useSharerId?a.hasCompleted&&j.hasCompleted&&d.u.views(n,e.objectId,a.data.id):d.u.views(n,e.objectId)));(0,l.v)(S),(0,v.n)(S);var N=(C||w(m.x.Primary))&&!e.objectId;return r().createElement("div",{className:"bg-white rounded p-3 position-relative d-flex flex-column ".concat(null!==(t=e.className)&&void 0!==t?t:"")},S.data?r().createElement(y.f,{eventType:g.t.VideoView,events:S.data,objectId:e.objectId,emptyStateComponent:r().createElement(T,{singular:!!e.objectId}),customGroupBy:N?[{type:b.a.Subject,getComponent:function(){return r().createElement(L,{type:h.T.RootTopic})}},{type:b.a.Topic,getComponent:function(){return r().createElement(L,{type:h.T.ChildTopic})}}]:null}):r().createElement(f.J,null))}},17836:(e,t,n)=>{n.d(t,{Z:()=>a});const a={appLink:"AiJnp",name:"YvZtY",widgetItem:"h7_j7",text:"eu1no",imagePanel:"RYgR7",image:"RNQOy",large:"YdRuN",comingSoonPanel:"Qjdcy",editSubjectsItem:"JD4tV",allSubjectsItem:"TxMRU",logoContainer:"KzrsJ"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[786],{19390:(e,t,n)=>{n.d(t,{i:()=>R});var r=n(1024),a=n.n(r),l=n(35509),o=n(83914),i=n(58130);var c;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(c||(c={}));var s=r.memo((function(e){var t=e.direction===c.Left,n=t?i.vn.ChevronLeft:i.vn.ChevronRight,a=(e.contents,"BVcIS"+(t?" VSAPU":" kgeXh"));return e.hide?r.createElement(r.Fragment,null):r.createElement(r.Fragment,null,r.createElement("div",{role:"button",className:"".concat(a," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&r.createElement("span",{className:"pl-3 pr-2 ".concat("APA36")},e.hoverText),r.createElement(o.x,{svgName:n,size:o.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})),e.useGradientBackdrop&&r.createElement("div",{className:t?"Pt3nx":"ZuAif"}),!e.hideExtendedClickableArea&&r.createElement("div",{role:"button",onClick:e.onClick,className:t?"wi8c2":"aLa_J"}))})),u=n(8493),d=n(67445),m=n(17592);function f(e){var t=(0,d.nB)({id:e.id}),n=t.setNodeRef,r=t.transform,l=t.transition,o=t.isSorting,i=t.listeners,c=t.attributes,s=t.activeIndex,u=t.overIndex,f=t.index,v={transform:m.ux.Transform.toString(r),transition:l,touchAction:"none",position:"relative"};o&&f===s&&(v.visibility="hidden");var g=e.childComponent,p=function(e,t,n){return t!==e?null:n>t?"down":n<t?"up":null}(f,s,u);return a().createElement(g,Object.assign({},e.childProps,{ref:n,style:v,dragListeners:i,dragAttributes:c,dragDirection:p}))}var v=n(20455),g=n(95339);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e){var t,n,r=(t=a().useState(null),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(l.push(r.value),!t||l.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw a}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=r[0],o=r[1],i=(0,v.Dy)((0,v.VT)(v.we,{activationConstraint:{distance:10}}),(0,v.VT)(v.Lg,{coordinateGetter:d.is}));return e.disabled?a().createElement(a().Fragment,null,e.children):a().createElement(v.LB,{sensors:i,collisionDetection:v.pE,onDragStart:function(e){o(e.active.id)},onDragEnd:function(t){o(null),e.onSortEnd(t)},modifiers:[g.DL]},a().createElement(d.Fo,{items:e.ids,strategy:d.qw},e.children),a().createElement(v.y9,{dropAnimation:e.dropAnimation},l?e.getDragOverlay(l):null))}b.defaultProps={dropAnimation:{duration:250,easing:"ease"}};var h={opacity:"0.8",cursor:"grabbing"},y=n(79014);function S(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){var t,n,r,a;return{canScrollLeft:(null===(t=e.current)||void 0===t?void 0:t.scrollLeft)>0,canScrollRight:(null===(n=e.current)||void 0===n?void 0:n.scrollLeft)<(null===(r=e.current)||void 0===r?void 0:r.scrollWidth)-(null===(a=e.current)||void 0===a?void 0:a.clientWidth)}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){var t,n;return e.column.canSort?a().createElement("span",{className:"".concat("gFhu0","\n ").concat(e.column.isSorted?"":"text-muted","\n ").concat(null!==(n=null===(t=e.theme)||void 0===t?void 0:t.sortIndicator)&&void 0!==n?n:"")},a().createElement(o.x,{svgName:e.column.isSortedDesc||!e.column.isSorted?i.vn.ArrowRight:i.vn.ArrowLeft,size:o.S.Small})):a().createElement(a().Fragment,null)}function k(e){var t,n,r,o,i,c,s,d,m={columns:e.columns,data:e.data,disableSortBy:!e.enableSort,manualSortBy:e.manualSort,autoResetHiddenColumns:e.autoResetHiddenColumns,autoResetSortBy:e.autoResetSortBy};e.initialSelectedRowIds&&(m.initialState={selectedRowIds:(s=e.initialSelectedRowIds,d={},s.forEach((function(e){return d[e]=!0})),d)}),e.getRowId&&(m.getRowId=e.getRowId);var v,g=l.useTable.apply(void 0,[m].concat((v=function(e){var t=[l.useFlexLayout,l.useSortBy,l.useRowSelect];return e.allowFiltering&&(t=[].concat(S(t),[l.useFilters])),e.allowGlobalFiltering&&(t=[].concat(S(t),[l.useGlobalFilter])),t}(Object.assign({},e)),function(e){if(Array.isArray(e))return N(e)}(v)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(v)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(v)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))),p=g.getTableProps,y=g.getTableBodyProps,E=g.headerGroups,x=g.rows,w=g.prepareRow,k=g.toggleAllRowsSelected,R=g.setGlobalFilter,A=g.setHiddenColumns,T=g.state.sortBy;function j(){return x.map((function(t){w(t);var n=function(t){var n,r,a,l,o=null!==(r=null===(n=e.theme)||void 0===n?void 0:n.row)&&void 0!==r?r:"";return t.isSelected&&(null===(a=e.theme)||void 0===a?void 0:a.selectedRow)&&(o+=" ".concat(null===(l=e.theme)||void 0===l?void 0:l.selectedRow)),e.onSelectRow&&(o+=" cursor-pointer"),e.enableSortableRows&&(o+=" cursor-grab"),o}(t),r=!!e.getRowAppLink&&e.getRowAppLink(t);function l(){e.onSelectRow&&(e.allowSelectMultipleRows||k(!1),e.onSelectRow(t),t.toggleRowSelected(!0))}function o(e,o){var i=function(e,t){return"dragAttributes"in e&&"dragListeners"in e?Object.assign(Object.assign(Object.assign({},e.dragAttributes),e.dragListeners),{"aria-roledescription":"Sortable row",ref:t}):{}}(e,o);return r?a().createElement("div",{role:"row"},a().createElement(u.F,Object.assign({},e,i,{className:n,appLink:r}),I(t))):a().createElement("div",Object.assign({},e,i,{role:"row",className:n,onClick:l}),I(t))}var i=t.getRowProps();return e.enableSortableRows?a().createElement(f,{id:t.original.id,key:t.id,childProps:i,childComponent:a().forwardRef((function(e,t){return o(e,t)}))}):o(i)}))}function I(t){return t.cells.map((function(n){var r=function(t,n){var r,a,l="";return"function"==typeof(null===(r=e.theme)||void 0===r?void 0:r.cell)&&(l=e.theme.cell(t,n)),"string"==typeof(null===(a=e.theme)||void 0===a?void 0:a.cell)&&(l=e.theme.cell),e.onSelectCell&&(l+=" cursor-pointer"),l}(t,n);return a().createElement("div",Object.assign({key:n.column.id},n.getCellProps(),{className:r,onClick:function(){e.onSelectCell&&e.onSelectCell(n)}}),n.render("Cell"))}))}return a().useEffect((function(){e.onSort&&e.onSort(T)}),[T]),a().useEffect((function(){e.globalFilter&&R(e.globalFilter)}),[e.globalFilter]),a().useEffect((function(){e.hiddenColumns&&A(e.hiddenColumns)}),[e.hiddenColumns&&e.hiddenColumns.length]),a().createElement("div",Object.assign({},p(),{className:null!==(n=null===(t=e.theme)||void 0===t?void 0:t.table)&&void 0!==n?n:""}),a().createElement("div",{className:null!==(o=null===(r=e.theme)||void 0===r?void 0:r.header)&&void 0!==o?o:""},E.map((function(t){var n,r;return a().createElement("div",Object.assign({},t.getHeaderGroupProps(),{className:null!==(r=null===(n=e.theme)||void 0===n?void 0:n.headerRow)&&void 0!==r?r:""}),t.headers.map((function(t){var n,r;return a().createElement("div",Object.assign({},t.getHeaderProps(t.getSortByToggleProps()),{className:null!==(r=null===(n=e.theme)||void 0===n?void 0:n.headerCell)&&void 0!==r?r:""}),t.render("Header",{renderSortIndicator:function(){return a().createElement(C,{column:t,theme:e.theme})}}),!t.hideSortIndicator&&a().createElement(C,{column:t,theme:e.theme}))})))}))),a().createElement("div",Object.assign({},y(),{className:null!==(c=null===(i=e.theme)||void 0===i?void 0:i.body)&&void 0!==c?c:""}),e.enableSortableRows?a().createElement(b,{ids:x.map((function(e){return e.original.id})),getDragOverlay:function(t){var n,r,l=x.findIndex((function(e){return e.original.id===t})),o=x[l];return a().createElement("div",Object.assign({},e,{className:(n=e.theme,r="no-gutters ",n&&(r+=n.row),r),style:h}),I(o))},onSortEnd:e.onSortingRowsEnd},j()):j()))}function R(e){var t=e.enableSlider,n=e.scrollIncrement,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["enableSlider","scrollIncrement"]),l=function(){var e,t,n=a().useRef(),r=(e=a().useState(w(n)),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(l.push(r.value),!t||l.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw a}}return l}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=r[0],o=r[1];function i(){o(w(n))}return a().useEffect((function(){if(n.current){var e=y.q.throttle(i,200);return o(w(n)),n.current.addEventListener("scroll",e),function(){n.current.removeEventListener("scroll",e)}}}),[n.current]),{ref:n,scrollState:l,scroll:function(e){var t;null===(t=n.current)||void 0===t||t.scrollBy({left:e,top:0,behavior:"smooth"})}}}(),o=l.ref,i=l.scrollState,u=l.scroll;if(!t)return a().createElement(k,Object.assign({},r));function d(e){o.current&&u(n*("right"===e?1:-1))}return a().createElement("div",{className:"mx-n3 overflow-hidden-x"},a().createElement("div",{className:"px-3"},a().createElement("div",{className:"position-relative"},a().createElement(s,{direction:c.Left,onClick:function(){return d("left")},hide:!i.canScrollLeft}),a().createElement("div",{className:"sWUp9",ref:o},a().createElement(k,Object.assign({},r))),a().createElement(s,{direction:c.Right,onClick:function(){return d("right")},hide:!i.canScrollRight}))))}R.defaultProps={scrollIncrement:250}},91470:(e,t,n)=>{n.d(t,{I:()=>d});var r=n(1024),a=n.n(r),l=n(99910),o=n(95602),i=a().createElement(l.Row,{className:"py-3"},a().createElement(l.Col,{xs:1,className:"d-flex align-items-center justify-content-center"},a().createElement("div",{className:"partial-loading-background ".concat(o.Z.partialNumber)})),a().createElement(l.Col,{xs:5,className:"d-flex align-items-center"},a().createElement("div",{className:"partial-loading-background ".concat(o.Z.partialShortText)})),a().createElement(l.Col,{xs:2,className:"d-flex align-items-center"},a().createElement("div",{className:"d-block partial-loading-background mx-4 ".concat(o.Z.partialShortText)})),a().createElement(l.Col,{xs:4,className:"d-flex align-items-center"},a().createElement("div",{className:"d-block partial-loading-background mx-4 ".concat(o.Z.partialShortText)}))),c=a().createElement(l.Row,{className:"py-3"},a().createElement(l.Col,{xs:5,className:"d-flex align-items-center"},a().createElement("div",{className:"partial-loading-background mx-4 ".concat(o.Z.partialShortText)})),a().createElement(l.Col,{xs:2,className:"d-flex align-items-center"},a().createElement("div",{className:"d-block partial-loading-background mx-4 ".concat(o.Z.partialShortText)})),a().createElement(l.Col,{xs:2,className:"d-flex align-items-center"},a().createElement("div",{className:"d-block partial-loading-background mx-4 ".concat(o.Z.partialShortText)})),a().createElement(l.Col,{xs:3,className:"d-flex align-items-center"},a().createElement("div",{className:"d-block partial-loading-background mx-4 ".concat(o.Z.partialShortText)}))),s=a().createElement(l.Row,{className:"py-3"},a().createElement(l.Col,{xs:9,className:"d-flex align-items-center"},a().createElement("div",{className:"partial-loading-background mx-3 ".concat(o.Z.partialShortText)})),a().createElement(l.Col,{xs:3,className:"d-flex align-items-center"},a().createElement("div",{className:"d-block partial-loading-background ".concat(o.Z.partialShortText," ").concat(o.Z.onlineUserContainer)}))),u=a().createElement(l.Row,{className:"py-3"},a().createElement(l.Col,{xs:2,className:"d-flex"},a().createElement("div",{className:"partial-loading-background mx-3 ".concat(o.Z.partialShortText)})),a().createElement(l.Col,{xs:2,className:"d-flex justify-content-center"},a().createElement("div",{className:"partial-loading-background mx-2 ".concat(o.Z.partialShortText)})),a().createElement(l.Col,{xs:2,className:"d-flex justify-content-center"},a().createElement("div",{className:"partial-loading-background ".concat(o.Z.partialShortText)})),a().createElement(l.Col,{xs:6,className:"d-flex justify-content-between"},a().createElement("div",{className:"d-block partial-loading-background ".concat(o.Z.heatMapItemContainer," ").concat(o.Z.partialShortText)})));function d(e){var t,n,r=function(e){switch(e){case"video-views":return{headerComponent:i,tableStyle:o.Z.videoTable};case"interactives":return{headerComponent:c,tableStyle:o.Z.interactiveTable};case"online-users":return{headerComponent:s,tableStyle:o.Z.userTable};case"engagement-users":return{headerComponent:u,tableStyle:o.Z.userTable};default:return{headerComponent:a().createElement(a().Fragment,null),tableStyle:""}}}(e.variant),l=r.headerComponent,d=r.tableStyle;return a().createElement("div",{className:"bg-white rounded ".concat(d," ").concat(null!==(t=e.className)&&void 0!==t?t:"")},a().createElement("div",{className:"border-bottom ".concat(o.Z.header," ").concat(null!==(n=e.headerClassName)&&void 0!==n?n:"")},l),e.children)}},95602:(e,t,n)=>{n.d(t,{Z:()=>r});const r={videoTable:"PT_It",interactiveTable:"GHe8q",userTable:"nbjsx",header:"iXtL9",itemHeader:"m8bTu",videoItemContainer:"z4_as",interactiveItemContainer:"GFx4k",userItemContainer:"zc5wl",heatMapItemContainer:"L0FuZ",onlineUserContainer:"yvcn1",partialAvatar:"RG2PB",partialNumber:"bjOQq",partialLongText:"b3oVS",partialMediumText:"pb1z8",partialShortText:"Mm5Da",partialThumbnail:"fXWEe",partialHeatMap:"WcStG"}}}]);