1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="958f3bb7-f3df-4ee7-af59-e455de00b26a",e._sentryDebugIdIdentifier="sentry-dbid-958f3bb7-f3df-4ee7-af59-e455de00b26a")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"25d2de487b0a18e46de1baaec15d9c06f3e82aec"},(this.webpackChunkfrontend=this.webpackChunkfrontend||[]).push([[1692,9256],{335538:(e,t,n)=>{n.d(t,{A:()=>s}),n(41594);var o,r=n(541500),i=n(972095);function l(e,t,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,l=arguments.length-3;if(t||0===l||(t={children:void 0}),1===l)t.children=r;else if(l>1){for(var a=Array(l),s=0;s<l;s++)a[s]=arguments[s+3];t.children=a}if(t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});return{$$typeof:o,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}var a=function(e){var t=e.to;return(0,i.Qg)({title:"Oops...",text:"This portal is connected to an inactive subscription. Please re-subscribe to have access."}),l(r.Redirect,{to:t})};a.displayName="InactiveRedirect";const s=a},723207:(e,t,n)=>{n.d(t,{A:()=>Ie});var o,r,i,l,a,s=n(41594),d=n.n(s),u=n(48623),c=n(541500),f=n(647531),p=n.n(f),h=n(108985),b=n.n(h),y=n(197241),m=n(479931),g=n(959352),v=n(560506),w=n(305416),C=n(423780),A=n(329788),O=n(807029),k=n(615699),I=n(218061),F=n(351246),S=n(898733),_=n(685737);function T(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var D,x,M=(0,u.Ay)(F.A).attrs({color:S.mq.TRANSPARENT}).withConfig({displayName:"styledComponents__StyledButton",componentId:"sc-lgwib-0"})(["padding-left:12px;padding-right:12px;margin-right:0.5rem;"]),R=u.Ay.div.withConfig({displayName:"styledComponents__Top",componentId:"sc-lgwib-1"})(["padding:30px 30px 0;display:flex;align-items:center;flex-direction:column;width:100%;",""],I.A.tablet(o||(o=T(["\n flex-direction: row;\n justify-content: space-between;\n "])))),j=u.Ay.div.withConfig({displayName:"styledComponents__Controls",componentId:"sc-lgwib-2"})(["display:flex;flex-grow:1;width:100%;align-items:flex-start;flex-direction:row-reverse;justify-content:space-between;gap:0.5rem;",""],I.A.tablet(r||(r=T(["\n align-items: center;\n flex-direction: row;\n width: auto;\n justify-content: flex-end;\n "])))),P=u.Ay.h1.withConfig({displayName:"styledComponents__H1",componentId:"sc-lgwib-3"})(["margin:0;padding:7px 20px 7px 0;font-size:1.5rem;font-weight:700;display:flex;align-items:center;z-index:",";"],k.vJ),E=u.Ay.div.withConfig({displayName:"styledComponents__RightItems",componentId:"sc-lgwib-4"})(["display:flex;align-items:center;&:only-child{margin-right:auto;}"," > *{margin:0;}> span{display:flex;align-items:center;justify-content:center;}"],I.A.tablet(i||(i=T(["\n &:only-child {\n margin-left: auto;\n margin-right: 0;\n }\n "])))),V=u.Ay.div.withConfig({displayName:"styledComponents__Title",componentId:"sc-lgwib-5"})(["display:flex;align-items:center;gap:0.5rem;"]),N=(0,u.Ay)(_.A).withConfig({displayName:"styledComponents__ThemeToggle",componentId:"sc-lgwib-6"})([""," .cluster-button{height:28px;width:35px;padding:4px;","}"],I.A.tablet(l||(l=T(["\n margin-right: auto;\n "]))),I.A.tablet(a||(a=T(["\n height: 40px;\n width: 40px;\n padding: 8px;\n "])))),L=n(562094),z=n(8116),$=n(477434),B=n(836314),H=n(422216),U=n(452188),W=n.n(U),Y=n(809696),q=n(42208),X=n(936523),G=n(84703),K=n(822248),Q=n(843186),J=n(571817),Z=n(805085),ee=n(304644);function te(e,t,n,o){x||(x="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=o;else if(i>1){for(var l=Array(i),a=0;a<i;a++)l[a]=arguments[a+3];t.children=l}if(t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});return{$$typeof:x,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}var ne=u.Ay.div.withConfig({displayName:"ClientToolbar__ToolbarRow",componentId:"sc-1bx070g-0"})(["display:flex;align-items:center;width:100%;flex-wrap:wrap;"]),oe=u.Ay.div.withConfig({displayName:"ClientToolbar__SlotWrap",componentId:"sc-1bx070g-1"})(["display:flex;align-items:center;",""],(function(e){return e.$bookMonth&&I.A.tablet(D||(t=["\n margin-left: auto;\n "],n||(n=t.slice(0)),D=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))));var t,n})),re="ai",ie="filter",le="export",ae="pdf",se="bookMonth",de=[re,ie,le,ae,se],ue=[se,ie,re,le,ae],ce=function(e){var t=e.dashboard,n=e.companyId,o=e.companyHasFilters,r=e.tableCollection,i=e.dashboardLayout,l=e.bookMonth,a=e.currentBookMonth,u=e.fiscalYearMonth,c=e.linkCode,f=e.tagValues,p=e.divi
1dersInfo,h=e.aiEnabled,b=e.tilesLoading,y=e.integrations,m=e.isConsolidationCompany,g=e.tooltipContent,v=e.hasDashboardFilter,w=e.checkedFilterValueDisplay,C=e.selectOptions,A=e.filterIsActive,k=e.showDashboardFiltersModal,I=e.checkedTopValue,_=e.checkedFilterValue,T=e.singleSelection,D=e.dashboardFiltersModalRef,x=e.setAiSelectedMetrics,M=e.setDashboardFilterValues,R=e.handleShowHideDashboardFiltersModal,j=e.handleSetCheckedTopValue,P=e.handleSetCheckedFilterValue,E=e.handleSetCheckedFilterValueDisplay,V=e.handleBookMonthChange,N=e.handleDownloadPdf,L=e.order,z=e.compactOrder,$=void 0===z?ue:z,B=e.expandedOrder,H=void 0===B?de:B,U=(0,ee.A)().tablet,W=(0,s.useMemo)((function(){return L||(U?H:$)}),[L,U,H,$]),Y=h&&t.allowClientAi,ce=t.allowClientDashboardFilters&&o,fe=t.allowClientExcelExport,pe=t.allowClientBookMonth&&"SUMMIT"!==t.accountingIntegration;return te(ne,{},void 0,W.map((function(e){var o=function(e){switch(e){case re:return Y?te(Q.A,{companyId:n,tableCollection:r,bookMonth:a||l,fiscalYearMonth:u,linkCode:c,identifier:"dashboard",dashboardLayout:i,setAiSelectedMetrics:x,disabled:b}):null;case ie:return ce?d().createElement(d().Fragment,null,(y||[]).includes(J.n.XERO)&&!m?te(q.A,{content:g},void 0,te(F.A,{color:S.mq.TRANSPARENT,textColor:v?S.r7.DANGER:void 0,icon:{icon:O.In.FUNNEL},onClick:function(){return R(!0)}},void 0,w||void 0)):0!==C.length&&te(Z.A,{selectOptions:C,companyId:n,isActive:A,isDashboardFilter:!0,filterDisplay:w||void 0,tooltipContent:g,marginRight:"20px"}),(y||[]).includes(J.n.XERO)&&d().createElement(G.A,{ref:D,showDashboardFiltersModal:k,setDashboardFilterValues:M,handleShowHideDashboardFiltersModal:R,checkedTopValue:null!=I?I:"",handleSetCheckedTopValue:j,checkedFilterValue:_,handleSetCheckedFilterValue:P,companyId:n,handleSetCheckedFilterValueDisplay:E,singleSelection:T})):null;case le:return fe?te(X.A,{title:t.name,itemType:"Dashboard",tableCollection:r,dashboardLayout:i,tagValues:f,dividersInfo:p,disabled:b},void 0,te(q.A,{content:"Export to Excel",disabled:b},void 0,te(F.A,{color:S.mq.TRANSPARENT,icon:{icon:O.In.DOWNLOAD},disabled:b}))):null;case ae:return te(q.A,{content:"Download PDF. Long statements or those with a scrollbar may produce sub-optimal results. Your dashboard may resize while exporting."},void 0,te(F.A,{color:S.mq.TRANSPARENT,icon:{icon:O.In.PRINTER},disabled:b,onClick:N}));case se:return pe?te(K.A,{bookMonth:a&&a.clone().subtract(1,"month")||l.clone().subtract(1,"month"),maxDate:l.clone().subtract(1,"month"),onChange:V,isBookMonthFixed:!(!a||!l||a.isSame(l,"year")&&a.isSame(l,"month"))}):null;default:return null}}(e);return o?te(oe,{$bookMonth:e===se},e,o):null})))};ce.displayName="ClientToolbar";const fe=ce;function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}var he,be=["id"];function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ye.apply(null,arguments)}function me(e,t,n,o){he||(he="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=o;else if(i>1){for(var l=Array(i),a=0;a<i;a++)l[a]=arguments[a+3];t.children=l}if(t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});return{$$typeof:he,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ve(e,t,n){return(t=function(e){var t=function(e){if("object"!=pe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function we(e,t){return 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 o,r,i,l,a=[],s=!0,d=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);s=!0);}catch(e){d=!0,r=e}
1finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw r}}return a}}(e,t)||Ce(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.")}()}function Ce(e,t){if(e){if("string"==typeof e)return Ae(e,t);var n={}.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)?Ae(e,t):void 0}}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Oe=me(g.A,{}),ke=function(e){var t=e.data,n=e.noThemeToggle,o=e.backButton,r=e.readOnly,i=e.companyId,l=e.tagValues,a=e.supportedTopItems,f=e.bookMonth,h=e.fiscalYearMonth,g=e.logo,k=e.useLogoDefault,I=e.useThemeDefault,F=e.defaultLogoUrl,S=e.defaultTheme,_=e.aiEnabled,T=e.linkCode,D=e.blankRowMappings,x=e.getDividersInfo,U=e.dividersInfo,q=(0,A.A)(),X=(0,c.useHistory)(),G=(0,c.useLocation)(),K=(0,s.useMemo)((function(){return b().parse(G.search)}),[G.search]),Q=we((0,s.useState)([]),2),J=Q[0],Z=Q[1],ee=(0,z.A)(i),te=(0,Y.T)(f),ne=te.tableCollection,oe=te.dashboardLayout,re=te.aiSelectedMetrics,ie=te.currentBookMonth,le=te.dashboardFilterValues,ae=te.showDashboardFiltersModal,se=te.hasDashboardFilter,de=te.checkedTopValue,ue=te.checkedFilterValue,ce=te.checkedFilterValueDisplay,pe=te.tilesLoading,he=te.dashboardFiltersModalRef,ke=te.resetDashboardFilters,Ie=te.onTilesLoading,Fe=te.beginTilesReload,Se=te.getTableCollection,_e=te.getDashboardLayout,Te=te.handleBookMonthChange,De=te.handleShowHideDashboardFiltersModal,xe=te.handleSetCheckedTopValue,Me=te.handleSetCheckedFilterValue,Re=te.handleSetCheckedFilterValueDisplay,je=te.setDashboardFilterValues,Pe=te.setAiSelectedMetrics,Ee=(0,s.useMemo)((function(){return K&&K.bg?K.bg:null}),[K]),Ve=(0,s.useMemo)((function(){return window.location.search.indexOf("theme")>-1}),[]),Ne=(0,s.useMemo)((function(){if(Ve)return window.location.search.indexOf("light")>-1?"light":"dark"}),[Ve]),Le=we((0,s.useState)(Ve?"dark"===Ne:"DARK"===(0,L.O4)()),2),ze=Le[0],$e=Le[1],Be=(0,s.useCallback)((function(e){e!==ze&&($e(e),ke())}),[ze,ke]),He=(0,s.useMemo)((function(){if(!n){if(Ee){var e="string"==typeof Ee?Ee:Ee.toString();if(ze){var t,o=(0,m.h1)(q,w.A);return null!==(t=o.new_default)&&void 0!==t&&t.body&&(o.new_default.body.background=e),o}return(0,y.Ay)(q,(function(t){var n;null!==(n=t.new_default)&&void 0!==n&&n.body&&(t.new_default.body.background=e)}))}return ze?(0,m.h1)(q,w.A):q}return q}),[Ee,ze,n,q]);(0,s.useEffect)((function(){p().setOptions(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},He.chartStyles)),t.colors&&p().setOptions({colors:t.colors})}),[t.colors,He.chartStyles]);var Ue=t.currency;(0,s.useEffect)((function(){(0,L.Yl)(ze?"DARK":"LIGHT")}),[ze]);var We=(0,$.A)(i),Ye=(0,B.A)(i),qe=(0,s.useMemo)((function(){return(0,H.P)(We,Ye)}),[We,Ye]),Xe=Ye&&Ye.length>0,Ge="XERO"===t.accountingIntegration&&!t.isConsolidation,Ke=(0,s.useCallback)((function(e){var t=[];if(Xe&&t.push({width:"10rem",multiple:!0,filterType:"consolidationFilter",selected:(null==e?void 0:e.activeCompanyFilterIds)||[],options:Ye.map((function(e){return"company_".concat(e.id)})),allowedFilters:{enabled:!0,title:null,companyIds:null},onChange:function(e){Me(e),xe("companyId")}}),We&&We.length>0){var n=We.find((function(e){return"classId"===e.key})),o=We.find((function(e){return"departmentId"===e.key})),r=n?n.items.map((function(e){return{value:e.id,label:e.name}})):[],i=o?o.items.map((function(e){return{value:e.id,label:e.name}})):[],l=We.map((function(t){return{integration:t.integration,title:t.name,key:t.key,options:t.items.map((function(e){return{value:e.id,label:e.name}})),selected:null!=e&&e.integrationFilterValues&&e.integrationFilterValues[t.key]||[]}}));t.push({width:"10rem",multiple:!0,modalTitle:"Filters",selected:ue,options:r,options2:i,optionsTitle:(null==n?void 0:n.name)||"Classes",optionsTitle2:(null==o?void 0:o.name)||"Departments",optionsList:l,allowedFilters:{enabled:!0,title:null,classIds:null==n?void 0:n.items.map((function(e){return e.id})),departmentIds:null==o?void 0:o.items.map((function(e){return e.id}))},onChange:function(e){Me(e)}})}return t}),[Ye,We,ue,Me,xe,Xe]);(0,s.useEffect)((function(){return Z(Ke())}),[Ke]),(0,s.useEffect)((function(){var e=W().subscribe("DASHBOARD_FILTERS_CHANGED",(function(e,t){Z(Ke(t));var n=[];if(t.integrationFilterValues){var o=[],r=t.integrationFilterValues||{};
1Object.keys(t.integrationFilterValues).forEach((function(e){var t;r[e]&&o.push.apply(o,function(e){if(Array.isArray(e))return Ae(e)}(t=r[e])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Ce(t)||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.")}())})),n=o}else t.activeCompanyFilterIds&&(n=t.activeCompanyFilterIds||[]);je&&(je(t),t.filterValuesAndNames&&Re&&Re(t.filterValuesAndNames,n,!0))}));return function(){W().unsubscribe(e)}}),[Ke,je,Re]);var Qe=(0,s.useMemo)((function(){return J.some((function(e){return e.selected.length>0}))}),[J]),Je=we((0,s.useState)(!1),2),Ze=Je[0],et=Je[1],tt=(0,s.useCallback)((function(){et(!0)}),[]),nt=t.id,ot=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,be);return me(u.NP,{theme:He},void 0,me("div",{},void 0,Oe,me(R,{},void 0,me(V,{},void 0,o&&me(M,{onClick:function(){return X.goBack()},icon:{icon:O.In.BACK,size:16}}),me(P,{},void 0,t.name)),me(j,{},void 0,!Ve&&!n&&me(N,{noMargin:!0,buttons:[{icon:{icon:O.In.SUN,size:16},onClick:function(){return Be(!1)},active:!ze},{icon:{icon:O.In.MOON,size:16},onClick:function(){return Be(!0)},active:ze}]}),me(E,{},void 0,me(fe,{dashboard:t,companyId:i,companyHasFilters:qe,tableCollection:ne,dashboardLayout:oe,bookMonth:f,currentBookMonth:ie,fiscalYearMonth:h,linkCode:T,tagValues:l,dividersInfo:U,aiEnabled:_,tilesLoading:pe,integrations:ee,isConsolidationCompany:Xe,tooltipContent:"All metrics will be overridden by the dashboard filter.",hasDashboardFilter:se,checkedFilterValueDisplay:ce,selectOptions:J,filterIsActive:Qe,showDashboardFiltersModal:ae,checkedTopValue:de,checkedFilterValue:ue,singleSelection:Ge,dashboardFiltersModalRef:he,setAiSelectedMetrics:Pe,setDashboardFilterValues:je,handleShowHideDashboardFiltersModal:De,handleSetCheckedTopValue:xe,handleSetCheckedFilterValue:Me,handleSetCheckedFilterValueDisplay:Re,handleBookMonthChange:Te,handleDownloadPdf:tt})))),d().createElement(v.A,ye({key:ze?"dark":"light",id:"dashboard",dashboardId:nt,data:t},ot,{isConsolidation:!!t.isConsolidation,logo:g,useLogoDefault:k,useThemeDefault:I,defaultLogoUrl:F,defaultTheme:S,readOnly:r,companyId:i,tagValues:l,supportedTopItems:a,getTableCollection:Se,getDashboardLayout:_e,selectedBookMonth:ie||f,fiscalYearMonth:h,dashboardFilterValues:le,hasDashboardFilter:se,onTilesLoading:Ie,beginTilesReload:Fe,aiSelectedMetrics:re,blankRowMappings:D,getDividersInfo:x,downloadPdf:Ze,setDownloadPdf:et})),me(C.A,{currencyCode:Ue})))};ke.displayName="PublishedDashboard";const Ie=ke},743262:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(517039);const r=function(e,t,n){(0,o.A)(e?{mode:"paidFeature",context:e,freeTierOptions:n}:null,t)}},517039:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(41594),r=n(541500),i=n(332854),l={workspace:"/dashboards",dashboard:"/dashboards",report:"/reports",metric:"/dashboards",template:"/dashboards",budgets:"/dashboards",dataSheets:"/dashboards",clientPortal:"/dashboards"};const a=function(e,t){var n,a,s,d=(0,r.useHistory)(),u="paidFeature"===(null==e?void 0:e.mode)?e.freeTierOptions:void 0,c=(0,i.f)(u),f=c.restricted,p=c.isLoading,h="presetFree"===(null==e?void 0:e.mode)?e:null,b=(0,i.f)(null==h?void 0:h.freeTierOptions),y=b.restricted,m=b.isLoading,g=!t&&"presetFree"===(null==e?void 0:e.mode)&&m,v=!t&&"paidFeature"===(null==e?void 0:e.mode)&&!!e.context&&!p&&f,w=!t&&!m&&"presetFree"===(null==e?void 0:e.mode)&&y&&!e.presetFree,C=v||w,A=t||!g&&!C,O="paidFeature"===(null==e?void 0:e.mode)?e.context:"presetFree"===(null==e?void 0:e.mode)?null!==(n=e.context)&&void 0!==n?n:"dashboard":null,k=null!==(a=null==e?void 0:e.redirectPath)&&void 0!==a?a:O&&null!==(s=l[O])&&void 0!==s?s:"/dashboards";return(0,o.useEffect)((function(){!t&&C&&O&&d.replace(k)}),[t,C,O,d,k]),{allowAccess:A,isChecking:!t&&g}}},369256:(e,t,n)=>{n.r(t),n.d(t,{default:()=>C});var o,r=n(41594),i=n.n(r),l=n(48623),a=n(541500),s=n(959352);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function u(e,t,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,l=arguments.length-3;if(t||0===l||(t={children:void 0}),1===l)t.children=r;else if(l>1){for(var a=Array(l),s=0;s<l;s++)a[s]=arguments[s+3];t.children=a}if(t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});return{$$typeof:o,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function p(e,t,n){return t=b(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}
1function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var m=l.Ay.div.withConfig({displayName:"NotFound__Div",componentId:"sc-1kzrbkt-0"})(["text-align:center;margin:5%;"]),g=l.Ay.h1.withConfig({displayName:"NotFound__H1",componentId:"sc-1kzrbkt-1"})(["color:",";font-size:80px;font-weight:400;"],(function(e){return e.theme.colors.primary})),v=l.Ay.h3.withConfig({displayName:"NotFound__H3",componentId:"sc-1kzrbkt-2"})(["font-size:16px;"]),w=u(m,{},void 0,u(s.A,{}),u(g,{},void 0,"404"),u(v,{},void 0,"Page not found. Return ",u(a.Link,{to:"/"},void 0,"Home."))),C=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){return w}}])&&c(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i().PureComponent);C.displayName="NotFoundPage"},639979:(e,t,n)=>{n.r(t),n.d(t,{default:()=>R});var o,r,i=n(41594),l=n(599555),a=n(647531),s=n.n(a),d=n(152839),u=n(723207),c=n(959352),f=n(636150),p=n(369256),h=n(131684),b=n(182776),y=n(565671),m=n(541500),g=n(743262),v=n(190258),w=n(136018),C=n(335538);function A(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,l=arguments.length-3;if(t||0===l||(t={children:void 0}),1===l)t.children=o;else if(l>1){for(var a=Array(l),s=0;s<l;s++)a[s]=arguments[s+3];t.children=a}if(t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var k,I,F=(0,l.default)(o||(k=["\n query FolderDashboard(\n $folderId: Int!\n $companyId: Int!\n $dashboardId: Int!\n $utcOffset: Int\n ) {\n getFolderContents(folderId: $folderId, companyId: $companyId) {\n id\n dashboard(id: $dashboardId) {\n id\n name\n allowClientBookMonth\n allowClientExcelExport\n allowClientDashboardFilters\n accountingIntegration\n isConsolidation\n currency\n colors\n hideActualsAfterBm\n useLogoDefault\n useThemeDefault\n defaultLogoUrl\n defaultTheme\n defaultThemeCustom\n aiEnabled\n allowClientAi\n inactiveWorkspace\n tagValues(utcOffset: $utcOffset) {\n ...TagValueFields\n }\n logo {\n id\n url\n }\n tables {\n ...TableFields\n layout\n companyId\n }\n queryTables {\n ...QueryTableFields\n }\n aiWidgets {\n ...AiWidgetFields\n }\n dividers {\n ...DividerFields\n }\n dashboardLiveTexts {\n ...DashboardLiveTextDataFields\n }\n }\n }\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"],I||(I=k.slice(0)),o=Object.freeze(Object.defineProperties(k,{raw:{value:Object.freeze(I)}}))),d.Bt,d.sX,d.oj,d.Is,d.iv,d.$C),S=(0,w.o)(),_=A(f.A,{}),T=A(C.A,{to:"/portal"}),D=(p.default,A(c.A,{})),x=A(h.A,{}),M=function(e){var t=e.companyId,n=e.folderId,o=e.dashboardId,r=(0,m.useLocation)(),l=/\/workspaces\/\d+\/client\//.test(r.pathname);(0,g.A)("clientPortal",!l);var a=(0,i.useMemo)((function(){return{companyId:t}}),[t]),d=(0,v.A)(t),c=d.bookMonth,f=d.fiscalYearMonth,p=function(e,t){return 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 o,r,i,l,a=[],s=!0,d=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);s=!0);}catch(e){d=!0,r=e}
1finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.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}}(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.")}()}((0,i.useState)([]),2),h=p[0],w=p[1],C=(0,i.useCallback)((function(e){w(e||[])}),[]),k=(0,y.useQuery)(F,{variables:{folderId:n,companyId:t,dashboardId:o,utcOffset:S},skip:!n||!t||!o}),I=k.data,M=k.loading,R=k.error;return M||R||!c?_:I.getFolderContents.dashboard.inactiveWorkspace?T:(I.getFolderContents,I.getFolderContents.dashboard.colors&&s().setOptions({colors:I.getFolderContents.dashboard.colors}),A(b.A.Provider,{value:a},void 0,A("div",{},void 0,D,A(u.A,{data:I.getFolderContents.dashboard,tagValues:I.getFolderContents.dashboard.tagValues,noThemeToggle:!0,backButton:!0,readOnly:!0,companyId:t,bookMonth:c,fiscalYearMonth:f,logo:I.getFolderContents.dashboard.logo&&I.getFolderContents.dashboard.logo.url,aiEnabled:I.getFolderContents.dashboard.aiEnabled,useLogoDefault:I.getFolderContents.dashboard.useLogoDefault,defaultLogoUrl:I.getFolderContents.dashboard.defaultLogoUrl,useThemeDefault:I.getFolderContents.dashboard.useThemeDefault,defaultTheme:I.getFolderContents.dashboard.defaultTheme,getDividersInfo:C,dividersInfo:h}),x)))};M.displayName="PortalDashboard";const R=M},456246:(e,t,n)=>{function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r=o(n(478304)),i=o(n(610739)),l=o(n(259)),a=n(41594),s=o(n(362688)),d=o(n(678041)),u=["client","offset","scroll","bounds","margin"];function c(e){var t=[];return u.forEach((function(n){e[n]&&t.push(n)})),t}function f(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var o=e.getBoundingClientRect();n.bounds={top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:o.width,height:o.height}}if(t.indexOf("margin")>-1){var r=getComputedStyle(e);n.margin={top:r?parseInt(r.marginTop):0,right:r?parseInt(r.marginRight):0,bottom:r?parseInt(r.marginBottom):0,left:r?parseInt(r.marginLeft):0}}return n}var p=function(e){return function(t){var n,o;return o=n=function(n){function o(){for(var t,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(t=n.call.apply(n,[this].concat(r))||this).state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},t._animationFrameID=null,t._resizeObserver=null,t._node=null,t._window=null,t.measure=function(n){var o=f(t._node,e||c(t.props));n&&(o.entry=n[0].contentRect),t._animationFrameID=t._window.requestAnimationFrame((function(){null!==t._resizeObserver&&(t.setState({contentRect:o}),"function"==typeof t.props.onResize&&t.props.onResize(o))}))},t._handleRef=function(e){var n;null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.unobserve(t._node),t._node=e,t._window=(n=t._node)&&n.ownerDocument&&n.ownerDocument.defaultView||window;var o=t.props.innerRef;o&&("function"==typeof o?o(t._node):o.current=t._node),null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.observe(t._node)},t}l(o,n);var s=o.prototype;return s.componentDidMount=function(){this._resizeObserver=null!==this._window&&this._window.ResizeObserver?new this._window.ResizeObserver(this.measure):new d(this.measure),null!==this._node&&(this._resizeObserver.observe(this._node),"function"==typeof this.props.onResize&&this.props.onResize(f(this._node,e||c(this.props))))},s.componentWillUnmount=function(){null!==this._window&&this._window.cancelAnimationFrame(this._animationFrameID),null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)},s.render=function(){var e=this.props,n=(e.innerRef,e.onResize,i(e,["innerRef","onResize"]));return a.createElement(t,r({},n,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},o}(a.Component),n.propTypes={client:s.bool,offset:s.bool,scroll:s.bool,bounds:s.bool,margin:s.bool,innerRef:s.oneOfType([s.object,s.func]),onResize:s.func},o}}()((function(e){var t=e.measure,n=e.measureRef,o=e.contentRect;return(0,e.children)({measure:t,measureRef:n,contentRect:o})}));p.displayName="Measure",p.propTypes.children=s.func,t.Ay=p}}]); 2//# sourceMappingURL=/1692.9dba4f7102d7fb49b5fc.chunk.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.