1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e7bcd826-e604-4565-9551-8c775940b3c7",e._sentryDebugIdIdentifier="sentry-dbid-e7bcd826-e604-4565-9551-8c775940b3c7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43936],{13468:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/reporting/custom_reports",function(){return r(50006)}])},21014:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var o=r(96501),n=r(37876);let s=(0,o.A)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline")},40259:(e,t,r)=>{"use strict";r.d(t,{A:()=>s}),r(14232);var o=r(96501),n=r(37876);let s=(0,o.A)((0,n.jsx)("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"}),"Facebook")},40561:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var o=r(96501),n=r(37876);let s=(0,o.A)((0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},43531:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var o=r(96501),n=r(37876);let s=(0,o.A)((0,n.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},50006:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>eA,default:()=>eR});var o=r(20640),n=r(31777),s=r(23745),a=r(67251),i=r(29898),c=r(52672),u=r(76966),p=r(42969),l=r(47091),d=r.n(l),h=r(14232),f=r(28118),m=r(77328),x=r.n(m),b=r(40561),g=r(59234),v=r(71858),j=r(46783),y=r(21471),A=r(74679),R=r(83129),w=r(55024),S=r(59105),k=r(63857),C=r(60180),O=r.n(C),E=r(33713),_=r(34626),D=r(37876);function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function H(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(H=function(){return!!e})()}var T=function(e){function t(e){var r,o,n,s;return(0,a.default)(this,t),o=t,n=[e],o=(0,c.default)(o),r=(0,i.default)(this,H()?Reflect.construct(o,n||[],(0,c.default)(this).constructor):o.apply(this,n)),(0,p.default)(r,"handleChange",function(e){return function(t){var o=t.target?t.target.value:t,n={fieldErrors:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach(function(t){(0,p.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},r.state.fieldErrors)};switch(e){case"title":n.title=o,delete n.fieldErrors.title;break;case"description":n.description=o;break;case"embedLink":n.embedLink=o,delete n.fieldErrors.embed}r.setState(n)}}),(0,p.default)(r,"componentDidMount",(0,k.A)(O().mark(function e(){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.props.reportId){e.next=3;break}return e.next=3,r.props.fetchDashboard(r.props.reportId);case 3:r.props.triggerNewForm?r.props.updateReport("id",""):r.setState({title:r.props.dashboard.title||"",description:r.props.dashboard.description||"",embedLink:r.props.dashboard.embedLink||""});case 4:case"end":return e.stop()}},e)}))),(0,p.default)(r,"validateFields",function(){var e=r.props.t,t={},o=(r.state.title||"").trim(),n=(r.state.embedLink||"").trim();if(o||(t.title=e("custom-reports:customReports.report.formFieldBlankError")),n)if(n.length<30)t.embed=e("custom-reports:customReports.report.embedLinkUrlLimit");else try{new URL(n)}catch(r){t.embed=e("custom-reports:customReports.report.embedLinkUrlCheck")}else t.embed=e("custom-reports:customReports.report.formFieldBlankError");return r.setState({fieldErrors:t}),0===Object.keys(t).length}),(0,p.default)(r,"handleSubmit",(s=(0,k.A)(O().mark(function e(t){var o;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),r.validateFields()){e.next=3;break}return e.abrupt("return");
1case 3:return r.props.updateReport("title",r.state.title),r.props.updateReport("description",r.state.description),r.props.updateReport("embedLink",r.state.embedLink),r.props.updateReport("sequence",r.props.dashboards.length+1),e.next=9,r.props.createReport();case 9:if(r.props.saveError){e.next=14;break}return e.next=12,r.props.fetchDashboards();case 12:r.props.dashboards.length>0&&(o=r.props.dashboards[0],r.props.fetchDashboard(o.id)),r.props.triggerDrawerClose();case 14:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)})),(0,p.default)(r,"render",function(){var e,t=r.props.t,o=r.state.fieldErrors;return(0,D.jsx)(g.A,{component:"form",onSubmit:r.handleSubmit,noValidate:!0,children:(0,D.jsxs)(E.A,{spacing:2,children:[(0,D.jsx)(_.A,{required:!0,id:"title",name:"title",label:t("custom-reports:customReports.report.title"),placeholder:t("custom-reports:customReports.report.title.placeholder"),value:r.state.title,onChange:r.handleChange("title"),inputProps:{maxLength:255},disabled:r.props.saving,error:!!o.title,helperText:null!=(e=o.title)?e:"".concat(r.state.t
1itle.length,"/255"),fullWidth:!0,margin:"normal"}),(0,D.jsx)(_.A,{id:"description",name:"description",label:t("custom-reports:customReports.report.description"),placeholder:t("custom-reports:customReports.report.description.placeholder"),value:r.state.description,onChange:r.handleChange("description"),inputProps:{maxLength:500},disabled:r.props.saving,helperText:"".concat(r.state.description.length,"/500"),fullWidth:!0,margin:"normal",multiline:!0,minRows:3,maxRows:5}),(0,D.jsx)(_.A,{required:!0,id:"embed",name:"embed",label:t("custom-reports:customReports.report.embed"),placeholder:t("custom-reports:customReports.report.embed.placeholder"),value:r.state.embedLink,onChange:r.handleChange("embedLink"),disabled:r.props.saving,error:!!o.embed,helperText:o.embed,fullWidth:!0,margin:"normal",multiline:!0,minRows:3,maxRows:5}),(0,D.jsx)(g.A,{sx:{pt:1},children:(0,D.jsx)(y.A,{type:"submit",variant:"contained",disabled:r.props.saving||!r.state.title.trim()||!r.state.embedLink.trim(),children:t("custom-reports:customReports.report.saveClose")})})]})})}),r.state={title:"",description:"",embedLink:"",fieldErrors:{}},r}return(0,u.default)(t,e),(0,s.default)(t)}(h.Component);let P=(0,f.withTranslation)(["custom-reports","errors"])(T),B=(0,n.Ng)(function(e){return{dashboards:e.dashboards.dashboards,dashboard:e.dashboard.dashboard,saving:e.dashboard.saving,saveError:e.dashboard.saveError,errors:e.dashboard.errors}},function(e){return(0,R.zH)({createReport:w.LU,updateReport:w.A0,fetchDashboard:w.f7,fetchDashboards:S.S},e)})(P);var L=r(86085),I=r(92105),U=r(31123);function F(e){var t=e.open,r=e.onClose,o=e.title,n=e.width,s=e.children;return(0,D.jsx)(I.Ay,{anchor:"right",open:t,onClose:r,PaperProps:{sx:{width:void 0===n?"40%":n,maxWidth:"100vw",boxSizing:"border-box"}},children:(0,D.jsxs)(g.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,D.jsxs)(g.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,px:2.5,py:2,borderBottom:1,borderColor:"divider",flexShrink:0},children:[(0,D.jsx)(j.A,{component:"h2",variant:"h6",sx:{pr:1},children:o}),(0,D.jsx)(U.A,{"aria-label":"close",onClick:r,edge:"end",size:"small",children:(0,D.jsx)(L.A,{})})]}),(0,D.jsx)(g.A,{sx:{flex:1,overflow:"auto",px:"5%",py:2.5},children:t?s:null})]})})}function M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(M=function(){return!!e})()}var N=function(e){function t(){(0,a.default)(this,t);for(var e,r,o,n=arguments.length,s=Array(n),u=0;u<n;u++)s[u]=arguments[u];return r=t,o=[].concat(s),r=(0,c.default)(r),e=(0,i.default)(this,M()?Reflect.construct(r,o||[],(0,c.default)(this).constructor):r.apply(this,o)),(0,p.default)(e,"state",{visible:!1}),(0,p.default)(e,"toggle",function(){return e.setState({visible:!e.state.visible})}),e}return(0,u.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.state.visible,t=this.props.t;return(0,D.jsxs)("div",{children:[(0,D.jsx)(y.A,{variant:"contained",size:"large",onClick:this.toggle,children:t("custom-reports:customReports.addReport")}),(0,D.jsx)(F,{open:e,onClose:this.toggle,width:"40%",title:t("custom-reports:customReports.addReport"),children:(0,D.jsxs)(g.A,{sx:{mt:2.5},children:[(0,D.jsx)(A.A,{}),(0,D.jsx)(B,{triggerDrawerClose:this.toggle,triggerNewForm:!0})]})})]})}}])}(h.Component);(0,p.default)(N,"displayName","AddReport");let V=(0,f.withTranslation)(["custom-reports"])(N);var W=r(21014),q=r(82803),K=r(69364),Q=r.n(K),G=r(43531);function X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(X=function(){return!!e})()}var $=function(e){function t(){(0,a.default)(this,t);for(var e,r,o,n=arguments.length,s=Array(n),u=0;u<n;u++)s[u]=arguments[u];return r=t,o=[].concat(s),r=(0,c.default)(r),e=(0,i.default)(this,X()?Reflect.construct(r,o||[],(0,c.default)(this).constructor):r.apply(this,o)),(0,p.default)(e,"state",{visible:!1}),(0,p.default)(e,"toggle",function(){return e.setState({visible:!e.state.visible})}),e}return(0,u.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.state.visible,t=this.props.t;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(y.A,{variant:"outlined",size:"small",startIcon:(0,D.jsx)(G.A,{}),onClick:this.toggle,children:t("common:common.edit")}),(0,D.jsx)(F,{open:e,onClose:this.toggle,width:"35%",title:t("custom-reports:customReports.editReport"),children:(0,D.jsx)(B,{reportId:this.props.reportId,triggerDrawerClose:this.toggle})})]})}}])}(h.Component);(0,p.default)($,"displayName","EditButton");let Y=(0,f.withTranslation)(["custom-reports"])($);function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J=function(){return!!e})()}var Z=function(e){function t(){(0,a.default)(this,t);for(var e,r,o,n=arguments.length,s=Array(n),u=0;u<n;u++)s[u]=arguments[u];return r=t,o=[].concat(s),r=(0,c.default)(r),e=(0,i.default)(this,J()?Reflect.construct(r,o||[],(0,c.default)(this).constructor):r.apply(this,o)),(0,p.default)(e,"state",{visible:!1,snackbarOpen:!1,snackbarMessage:""}),(0,p.default)(e,"toggle",function(){return e.setState({visible:!e.state.visible})}),(0,p.default)(e,"showSnackbar",function(t){e.setState({snackbarOpen:!0,snackbarMessage:t})}),(0,p.default)(e,"renderDashboards",function(){var t=e.props,r=t.t;return t.dashboards.map(function(t){return(0,D.jsxs)(g.A,{sx:{bgcolor:"#ebf6fe",p:2,fontSize:14,border:"1px solid #ebf6fe",borderRadius:1,mb:1.25},children:[(0,D.jsx)(j.A,{sx:{color:"#6d7278"},variant:"body2",children:(0,D.jsx)("strong",{children:Q()(t.title,{length:60})})}),(0,D.jsx)(j.A,{sx:{color:"#6d7278",mt:.5},variant:"body2",children:Q()(t.description,{length:140})}),(0,D.jsxs)(E.A,{direction:"row",flexWrap:"wrap",useFlexGap:!0,spacing:1,sx:{mt:1.25},children:[(0,D.jsx)(Y,{reportId:t.id}),(0,D.jsx)(y.A,{variant:"outlined",size:"small",startIcon:(0,D.jsx)(W.A,{}
1),onClick:e.handleClick(t.id),children:r("common:common.delete")})]})]},t.id)})}),(0,p.default)(e,"handleClick",function(t){return(0,k.A)(O().mark(function r(){var o;return O().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.props.deleteDashboard(t);case 2:if(e.props.deleteError){r.next=8;break}return r.next=5,e.props.fetchDashboards();case 5:e.props.dashboards.length>1&&(o=e.props.dashboards[0],e.props.fetchDashboard(o.id),e.props.dashboards.map(function(t,r){e.props.updateReport("id",t.id),e.props.updateReport("title",t.title),e.props.updateReport("description",t.description),e.props.updateReport("embedLink",t.embedLink),e.props.updateReport("sequence",r+1),e.props.createReport()})),e.toggle(),e.showSnackbar(e.props.t("custom-reports:customReports.report.deletedSuccess"));case 8:case"end":return r.stop()}},r)}))}),e}return(0,u.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this,t=this.state,r=t.visible,o=t.snackbarOpen,n=t.snackbarMessage,s=this.props.t;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(y.A,{variant:"contained",size:"large",onClick:this.toggle,children:s("custom-reports:customReports.addEditReport")}),(0,D.jsx)(F,{open:r,onClose:this.toggle,width:"40%",title:s("custom-reports:customReports.addEditReport"),children:(0,D.jsxs)(g.A,{sx:{mt:2.5},children:[(0,D.jsx)(A.A,{}),(0,D.jsx)(g.A,{sx:{ml:"35%",mb:2,mt:-1.25},children:(0,D.jsx)(V,{})}),this.renderDashboards()]})}),(0,D.jsx)(q.A,{open:o,autoHideDuration:6e3,onClose:function(){return e.setState({snackbarOpen:!1})},message:n})]})}}])}(h.Component);(0,p.default)(Z,"displayName","AddEditReport");let ee=(0,f.withTranslation)(["common","custom-reports"])(Z),et=(0,n.Ng)(function(e){return{dashboards:e.dashboards.dashboards,deleteError:e.dashboard.deleteError,deleting:e.dashboard.deleting}},function(e){return(0,R.zH)({fetchDashboard:w.f7,updateReport:w.A0,createReport:w.LU,deleteDashboard:w.A_,fetchDashboards:S.S},e)})(ee);var er=r(37900),eo=r(18847),en=r.n(eo);function es(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(es=function(){return!!e})()}var ea=en()(function(){return r.e(4183).then(r.bind(r,4183))},{ssr:!1,loading:function(){return(0,D.jsx)(g.A,{sx:{display:"flex",justifyContent:"center",py:2},children:(0,D.jsx)(v.A,{})})},loadableGenerated:{webpack:function(){return[4183]}}}),ei=en()(function(){return Promise.resolve().then(r.bind(r,66999))},{ssr:!1,loadableGenerated:{webpack:function(){return[66999]}}}),ec=function(e){function t(){(0,a.default)(this,t);for(var e,r,o,n=arguments.length,s=Array(n),u=0;u<n;u++)s[u]=arguments[u];return r=t,o=[].concat(s),r=(0,c.default)(r),e=(0,i.default)(this,es()?Reflect.construct(r,o||[],(0,c.default)(this).constructor):r.apply(this,o)),(0,p.default)(e,"insightRow",function(t,r){return(0,D.jsxs)(g.A,{sx:{display:"flex",alignItems:"flex-start",gap:1.25,mt:3.125,color:"#444",fontSize:16,lineHeight:"22px"},children:[(0,D.jsx)(b.A,{color:"success",sx:{fontSize:22,flexShrink:0,mt:"2px"}}),(0,D.jsxs)(g.A,{component:"span",children:[(0,D.jsx)("strong",{children:e.props.t(t)})," - ",(0,D.jsx)(g.A,{component:"span",children:e.props.t(r)})]})]})}),(0,p.default)(e,"renderContent",function(){return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(j.A,{component:"h3",variant:"h6",sx:{color:"#444",fontSize:18,fontWeight:600,lineHeight:"24px",mb:2},children:e.props.t("custom-reports:customReports.overview")}),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px"},children:e.props.t("custom-reports:customReports.reportingAndAnalysing")}),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px"},children:e.props.t("custom-reports:customReports.engagementIQ")}),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px"},children:e.props.t("custom-reports:customReports.visualizeEngagement")}),(0,D.jsx)(j.A,{component:"h3",variant:"h6",sx:{color:"#444",fontSize:18,fontWeight:600,lineHeight:"24px",mt:5,mb:2},children:e.props.t("custom-reports:customReports.keyVisualInsights")}),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px"},children:e.props.t("custom-reports:customReports.keyVisualInsightsText")}),e.insightRow("custom-reports:customReports.whoParticipated","custom-reports:customReports.whoParticipatedKey"),e.insightRow("custom-reports:customReports.whatWasSaid","custom-reports:customReports.whatWasSaidKey"),e.insightRow("custom-reports:customReports.recommendations","custom-reports:customReports.recommendationsKey"),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px",mt:5},children:e.props.t("custom-reports:customReports.useCustomDashboard")}),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px"},children:e.props.t("custom-reports:customReports.thisServiceAllows")})]})}),(0,p.default)(e,"render",function(){return(0,D.jsx)(D.Fragment,{children:e.props.dashboards.length>0?(0,D.jsx)(er.A,{title:e.props.t("custom-reports:customReports.heading"),actions:(0,D.jsx)(et,{}),navigation:(0,D.jsx)(ea,{}),content:(0,D.jsx)(ei,{})}):(0,D.jsx)(er.A,{title:e.props.t("custom-reports:customReports.heading"),actions:(0,D.jsx)(V,{}),content:e.renderContent()})})}),e}return(0,u.default)(t,e),(0,s.default)(t)}(h.Component);let eu=(0,f.withTranslation)(["custom-reports"])(ec),ep=(0,n.Ng)(function(e){return{dashboards:e.dashboards.dashboards}})(eu);var el=r(66999);function ed(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ed=function(){return!!e})()}var eh=en()(function(){return r.e(4183).then(r.bind(r,4183))},{ssr:!1,loading:function(){return(0,D.jsx)(g.A,{sx:{display:"flex",justifyContent:"center",py:2},children:(0,D.jsx)(v.A,{})})},loadableGenerated:{webpack:function(){return[4183]}}}),ef=function(e){function t(){(0,a.default)(this,t);for(var e,r,o,n=arguments.length,s=Array(n),u=0;u<n;u++)s[u]=arguments[u];return r=t,o=[].concat(s),r=(0,c.default)(r),e=(0,i.default)(this,ed()?Reflect.construct(r,o||[],(0,c.default)(this).constructor):r.apply(this,o)),(0,p.default)(e,"insightRow",function(t,r){return(0,D.jsxs)(g.A,{sx:{display:"flex",alignItems:"flex-start",ga
1p:1.25,mt:3.125,color:"#444",fontSize:16,lineHeight:"22px"},children:[(0,D.jsx)(b.A,{color:"success",sx:{fontSize:22,flexShrink:0,mt:"2px"}}),(0,D.jsxs)(g.A,{component:"span",children:[(0,D.jsx)("strong",{children:e.props.t(t)})," - ",(0,D.jsx)(g.A,{component:"span",children:e.props.t(r)})]})]})}),(0,p.default)(e,"renderContent",function(){return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(j.A,{component:"h3",variant:"h6",sx:{color:"#444",fontSize:18,fontWeight:600,lineHeight:"24px",mb:2},children:e.props.t("custom-reports:customReports.overview")}),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px"},children:e.props.t("custom-reports:customReports.reportingAndAnalysing")}),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px"},children:e.props.t("custom-reports:customReports.engagementIQ")}),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px"},children:e.props.t("custom-reports:customReports.visualizeEngagement")}),(0,D.jsx)(j.A,{component:"h3",variant:"h6",sx:{color:"#444",fontSize:18,fontWeight:600,lineHeight:"24px",mt:5,mb:2},children:e.props.t("custom-reports:customReports.keyVisualInsights")}),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px"},children:e.props.t("custom-reports:customReports.keyVisualInsightsText")}),e.insightRow("custom-reports:customReports.whoParticipated","custom-reports:customReports.whoParticipatedKey"),e.insightRow("custom-reports:customReports.whatWasSaid","custom-reports:customReports.whatWasSaidKey"),e.insightRow("custom-reports:customReports.recommendations","custom-reports:customReports.recommendationsKey"),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px",mt:5},children:e.props.t("custom-reports:customReports.useCustomDashboard")}),(0,D.jsx)(j.A,{sx:{color:"#444",fontSize:16,lineHeight:"22px"},children:e.props.t("custom-reports:customReports.thisServiceAllows")}),(0,D.jsx)(g.A,{sx:{mt:5},children:e.renderButton("bottom")})]})}),(0,p.default)(e,"renderButton",function(t){var r=encodeURIComponent(e.props.t("custom-reports:customReports.mailSubject")),o=encodeURIComponent(e.props.t("custom-reports:customReports.mailBody")),n="mailto:[email protected]?subject=".concat(r,"&body=").concat(o);return(0,D.jsx)(y.A,{component:"a",href:n,target:"_blank",rel:"noopener noreferrer",variant:"contained",size:"large",children:"top"===t?e.props.t("custom-reports:customReports.getInTouch"):e.props.t("custom-reports:customReports.registerYourInterest")})}),(0,p.default)(e,"render",function(){return(0,D.jsx)(D.Fragment,{children:e.props.dashboards.length>0?(0,D.jsx)(er.A,{title:e.props.t("custom-reports:customReports.heading"),navigation:(0,D.jsx)(eh,{}),content:(0,D.jsx)(el.default,{})}):(0,D.jsx)(er.A,{title:e.props.t("custom-reports:customReports.heading"),actions:e.renderButton("top"),content:e.renderContent()})})}),e}return(0,u.default)(t,e),(0,s.default)(t)}(h.Component);let em=(0,f.withTranslation)(["custom-reports"])(ef),ex=(0,n.Ng)(function(e){return{dashboards:e.dashboards.dashboards}})(em);function eb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eb=function(){return!!e})()}var eg=function(e){function t(){(0,a.default)(this,t);for(var e,r,o,n=arguments.length,s=Array(n),u=0;u<n;u++)s[u]=arguments[u];return r=t,o=[].concat(s),r=(0,c.default)(r),e=(0,i.default)(this,eb()?Reflect.construct(r,o||[],(0,c.default)(this).constructor):r.apply(this,o)),(0,p.default)(e,"renderContent",function(){return"platform_admin"===e.props.user.roleName?(0,D.jsx)(ep,{}):(0,D.jsx)(ex,{})}),(0,p.default)(e,"render",function(){return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(x(),{children:(0,D.jsx)("title",{className:"jsx-4215173132",children:e.props.t("custom-reports:customReports.title")})}),e.renderContent(),(0,D.jsx)(d(),{id:"4215173132",children:[".page.jsx-4215173132 .page-navigation.jsx-4215173132{margin-top:-10px;}"]})]})}),e}return(0,u.default)(t,e),(0,s.default)(t)}(h.Component);let ev=(0,f.withTranslation)(["custom-reports"])(eg),ej=(0,n.Ng)(function(e){return{user:e.currentUser.user}})(ev);var ey=(0,o.A)(ej),eA=!0;let eR=ey},51796:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});var o=r(14232),n=o.useLayoutEffect,s=o.useEffect;function a(e){var t=e.headManager,r=e.reduceComponentsToState;function a(){if(t&&t.mountedInstances){var e=o.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return n(function(){var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),function(){var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),n(function(){return t&&(t._pendingUpdate=a),function(){t&&(t._pendingUpdate=a)}}),s(function(){return t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),function(){t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)}}),null}},55024:(e,t,r)=>{"use strict";r.d(t,{A0:()=>h,A_:()=>f,LU:()=>d,f7:()=>l});var o=r(42969),n=r(63857),s=r(60180),a=r.n(s),i=r(20126),c=r(57171);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var l=function(e){var t;return t=(0,n.A)(a().mark(function t(r){var o;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r({type:i.A.FETCH_DASHBOARD_REQUEST}),t.prev=1,t.next=4,c.A.fetch(e);case 4:o=t.sent,r({type:i.A.FETCH_DASHBOARD_SUCCESS,dashboard:p({id:o.id},o.attributes())}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),r({type:i.A.FETCH_DASHBOARD_FAILURE,errorMessage:t.t0.statusText||t.t0.status});case 11:case"end":return t.stop()}},t,null,[[1,8]])})),function(e){return t.apply(this,arguments)}},d=function(){var e;return e=(0,n.A)(a().mark(function e(t,r){var o,n;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t({type:i.A.CREATE_DASHBOARD_REPORT_REQUEST}),o=new c.A(r().dashboard.dashboard),e.prev=2,e.next=5,o.save();case 5:n=e.sent,t({type:i.A.CREATE_DASHBOARD_REPORT_SUCCESS,dashboard:p({id:n.id},n.attributes())}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),t({type:i.A.CREATE_DASHBOARD_REPORT_FAILURE,errorMessage:e.t0.message||e.t0.statusText||e.t0.status,errors:o.errors.extract()});case 12:case"end":return e.stop()}},e,null,[[2,9]])})),function(t,r){return e.apply(this,arguments)}},h=function(e,t){return{type:i.A.UPDATE_DASHBOARD_REPORT,key:e,value:t}},f=function(e){var t;return t=(0,n.A)(a().mark(function t(r){var o;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r({type:i.A.DELETE_DASHBOARD_REQUEST,id:e}),o=c.A.new({id:e}),t.prev=2,t.next=5,o.destroy();case 5:r({type:i.A.DELETE_DASHBOARD_SUCCESS,id:e}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),r({type:i.A.DELETE_DASHBOARD_FAILURE,id:e,errorMessage:t.t0.statusText||t.t0.status});case 11:case"end":return t.stop()}},t,null,[[2,8]])})),function(e){return t.apply(this,arguments)}}},66999:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>j});var o=r(31777),n=r(67251),s=r(23745),a=r(29898),i=r(52672),c=r(76966),u=r(42969),p=r(47091),l=r.n(p),d=r(14232),h=r(28118),f=r(95062),m=r.n(f),x=r(37876);function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var g=function(e){function t(){var e,r;return(0,n.default)(this,t),e=t,r=arguments,e=(0,i.default)(e),(0,a.default)(this,b()?Reflect.construct(e,r||[],(0,i.default)(this).constructor):e.apply(this,r))}return(0,c.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props.dashboard;return(0,x.jsxs)(d.Fragment,{children:[(0,x.jsx)("div",{className:"jsx-3488835778",children:(0,x.jsx)("iframe",{src:e.embedLink,frameBorder:0,className:"jsx-3488835778 iframe-report"})}),(0,x.jsx)(l(),{id:"3488835778",children:[".iframe-report.jsx-3488835778{width:100%;height:calc(100vh - 65px);}",".title.jsx-3488835778{font-size:18px;color:#4a5864;}",".description.jsx-3488835778{font-size:14px;color:#333333;margin-bottom:30px;}"]})]})}}])}(d.Component);(0,u.default)(g,"propStypes",{dashboard:m().object.isRequired,t:m().func.isRequired});let v=(0,h.withTranslation)(["custom-reports"])(g),j=(0,o.Ng)(function(e){return{dashboard:e.dashboard.dashboard}})(v)},70571:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var o={default:function(){return m},defaultHead:function(){return l}};for(var n in o)Object.defineProperty(t,n,{enumerable:!0,get:o[n]});var s=r(72687),a=r(63732),i=r(37876),c=a._(r(14232)),u=s._(r(51796)),p=r(72563);function l(){return[(0,i.jsx)("meta",{charSet:"utf-8"},"charset"),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===c.default.Fragment?e.concat(c.default.Children.toArray(t.props.children).reduce(function(e,t){return"string"==typeof t||"number"==typeof t?e:e.concat(t)},[])):e.concat(t)}r(75360);var h=["name","httpEquiv","charSet","itemProp"];function f(e){var t,r,o,n;return e.reduce(d,[]).reverse().concat(l().reverse()).filter((t=new Set,r=new Set,o=new Set,n={},function(e){var s=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;var i=e.key.slice(e.key.indexOf("$")+1);t.has(i)?s=!1:t.add(i)}switch(e.type){case"title":case"base":r.has(e.type)?s=!1:r.add(e.type);break;case"meta":for(var c=0,u=h.length;c<u;c++){var p=h[c];if(e.props.hasOwnProperty(p))if("charSet"===p)o.has(p)?s=!1:o.add(p);else{var l=e.props[p],d=n[p]||new Set;("name"!==p||!a)&&d.has(l)?s=!1:(d.add(l),n[p]=d)}}}return s})).reverse().map(function(e,t){var r=e.key||t;return c.default.cloneElement(e,{key:r})})}var m=function(e){var t=e.children,r=(0,c.useContext)(p.HeadManagerContext);return(0,i.jsx)(u.default,{reduceComponentsToState:f,headManager:r,children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73614:(e,t,r)=>{"use strict";r.d(t,{A:()=>s}),r(14232);var o=r(96501),n=r(37876);let s=(0,o.A)((0,n.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"}),"Twitter")},77328:(e,t,r)=>{e.exports=r(70571)},79753:(e,t,r)=>{"use strict";r.d(t,{A:()=>s}),r(14232);var o=r(96501),n=r(37876);let s=(0,o.A)((0,n.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn")}},e=>{e.O(0,[70206,75514,26478,34018,20776,21471,94686,63877,62095,8145,28672,62070,3608,98073,93394,51293,37900,90636,46593,38792],()=>e(e.s=13468)),_N_E=e.O()}]); 2//# sourceMappingURL=custom_reports-7687942fd4c5fab2.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.