1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1513],{60660:function(e,o,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/org/[org]/invoice",function(){return t(33993)}])},1547:function(e,o,t){"use strict";var a=t(85893),i=t(41664),n=t.n(i),r=t(11163),c=t(83027),s=t(14261),d=t.n(s);o.Z=e=>{let{isLayout:o}=e,t=(0,r.useRouter)(),{org:i}=t.query;return(0,a.jsxs)("div",{className:"".concat(d().unauthorized," ").concat(o?d().isLayout:""),children:[o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"You are not a member of this organization"}),(0,a.jsx)("p",{children:"Please contact the administrators of your team to add you to this organization"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"You are not authorized to view the content of the page"}),(0,a.jsx)("p",{children:"You can request adequate authorization from your adminstrators to view the content of this page"})]}),(0,a.jsx)(n(),{href:"".concat(o?"".concat(c.o0.findex):"".concat(c.o0.org,"/").concat(i)),className:"button",children:"Go Back"})]})}},62315:function(e,o,t){"use strict";t.d(o,{Z:function(){return B}});var a=t(85893),i=t(67294),n=t(56183),r=t(33299),c=t(11163),s=t(11727),d=t(90436),l=t(73502),u=t(37934),h=t(47485),m=t(89788),v=t(78119),g=t(75432),f=t(74323),x=t(92710);let _=e=>async o=>{try{o({type:f.HB,payload:e})}catch(e){(0,x._)()}};var p=t(17370),y=t(82130),b=t(50205),j=t(29941),w=t(81471),E=t(1547),N=t(36105),k=t(83027),z=t(22920),P=t(54310),Z=t.n(P),B=e=>{var o,t,f;let{children:x,section:P,loading:B}=e,R=(0,c.useRouter)(),{org:C,invoice:T,receipt:D}=R.query,I=(0,n.T)(),{theme:L,sidebar:{showDashboardSidebar:O}}=(0,n.C)(e=>({sidebar:e.sidebarReducer,theme:e.themeReducer})),[q]=(0,b.Z)("defaultTheme",""),{data:A,isLoading:M,error:Y,isError:F,isSuccess:K,isUninitialized:S,refetch:U}=(0,s.gl)({accountName:C},{skip:!C}),{data:G,isLoading:H}=(0,s.RM)(null==A?void 0:A._id,{skip:!K}),{data:X}=(0,r.useSession)(),[W,J]=(0,i.useState)(!1),V=(null==A?void 0:A.currency)||g.Tl.NGN;(0,i.useEffect)(()=>{if(Y&&404!==Y.status){var e;z.Am.error("".concat(null==Y?void 0:null===(e=Y.data)||void 0===e?void 0:e.message),{theme:L===g.bB.DARK?"light":"dark"})}},[Y]),(0,i.useEffect)(()=>{A&&X&&I(_(A.executives.includes((null==X?void 0:X.user).id)?g.g8.EXECUTIVE:A.admins.includes((null==X?void 0:X.user).id)?g.g8.ADMIN:g.g8.MEMBER))},[A,X]),(0,i.useEffect)(()=>{if(null==A?void 0:A.logo){let e=new Image;e.src=null==A?void 0:A.logo,e.onload=()=>{I((0,N.o)({width:e.width,height:e.height,aspectRatio:e.width/e.height}))}}},[A]),(0,i.useEffect)(()=>{let e=document.getElementsByTagName("BODY")[0];L===g.bB.DARK?e.style.backgroundColor="var(--bg-dm)":e.style.backgroundColor="var(--white)"},[L]),(0,i.useEffect)(()=>{var e;if((null===(e=window)||void 0===e?void 0:e.innerWidth)<641&&J(!0),!L){let e=document.getElementsByTagName("BODY")[0];q?(I((0,j.x)(q)),e.style.backgroundColor="var(--bg-dm)"):(I((0,j.x)(window.matchMedia("(prefers-color-scheme: dark)").matches?g.bB.DARK:g.bB.LIGHT)),e.style.backgroundColor=window.matchMedia("(prefers-color-scheme: dark)").matches?"var(--bg-dm)":"var(--white)")}},[L]);let Q=C?"".concat(k.o0.org,"/").concat(C):"".concat(k.o0.findex),{customization:$}=(0,n.C)(e=>({customization:e.customizationReducer})),ee=R.asPath==="".concat(Q,"/").concat(k.o0.invoice,"#invoice")||R.asPath==="".concat(Q,"/").concat(k.o0.invoice)||R.asPath==="".concat(Q,"/").concat(k.o0.invoice,"/").concat(T)||R.asPath==="".concat(Q,"/").concat(k.o0.receipt,"#receipt")||R.asPath==="".concat(Q,"/").concat(k.o0.receipt)||R.asPath==="".concat(Q,"/").concat(k.o0.receipt,"/").concat(D);return(0,i.useEffect)(()=>{let e=document.querySelector(":root");ee?e.style.setProperty("--primary",(null==$?void 0:$.theme__color)||g.P0.theme_color):e.style.setProperty("--primary",g.P0.theme_color)},[R,$]),(0,i.useEffect)(()=>{ee||I((0,w.k)(g.P0.theme_color))},[ee]),(0,a.jsx)("div",{className:"".concat(Z().dashboard," ").concat(L===g.bB.DARK?Z().dark__mode:""),children:(null===(o=null==X?void 0:X.user)||void 0===o?void 0:o.id)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.Z,{orgDashboard:!0,team:null==G?void 0:G.members,fetching:H,profile:{id:(null==A?void 0:A._id)||"",userId:null===(t=null==X?void 0:X.user)||void 0===t?void 0:t.id,name:(null==A?void 0:A.name)||"Organization",avatar:(null==A?void 0:A.logo)||"",currency:V}}),(0,a.jsx)(l.Z,{}),F&&(null==Y?void 0:Y.status)!==404&&(0,a.jsx)(y.Z,{retry:()=>{S||U()}}),(M||B)&&(0,a.jsx)("div",{className:Z().dashboard__loader,children:(0,a.jsx)(m.Z,{})}),(null==Y?void 0:Y.status)===404?(0,a.jsx)(E.Z,{isLayout:!0}):(0,a.jsx)(a.Fragment,{children:!M&&!F&&(0,a.jsxs)("main",{className:Z().dashboard__layout,style:O?{width:W?"100%":"calc(100% - 120px)"}:{},children:[(0,a.jsx)(u.Z,{section:P,currency:V,name:(null==A?void 0:A.name)||"Organization",subscribed:(0,p.Y)((null==A?void 0:null===(f=A.subscription)||void 0===f?void 0:f.expires_at)||""),isCreator:(null==A?void 0:A.creator)===(null==X?void 0:X.user).id}),!!A&&x]})}),(0,a.jsx)(h.Z,{})]}):(0,a.jsx)("div",{className:Z().dashboard__spinner,children:(0,a.jsx)(v.Z,{color:"var(--primary)",size:"32px"})})})}},33993:function(e,o,t){"use strict";t.r(o);var a=t(85893),i=t(57328),n=t(62315),r=t(75432),c=t(73594);o.default=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{title:"Invoice (Organization) - ".concat(r.P0.long_name),noIndex:!0}),(0,a.jsx)(n.Z,{section:"invoice",children:(0,a.jsx)(i.Z,{})})]})},14261:function(e){e.exports={unauthorized:"Unauthorized_unauthorized__aHfqu",isLayout:"Unauthorized_isLayout__J4ibW"}}},function(e){e.O(0,[7847,9814,5675,124,7437,2524,7316,7920,8879,4986,5885,9774,2888,179],function(){return e(e.s=60660)}),_N_E=e.O()}]);
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.