PageSourceSearch

https://www.spleis.no/public/organization-organization-control-org…?v=ed8c5e909b2dbcc6fd85

js spleis.no collected 2026-09-24 09:45:21 UTC 41,283 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6786],{3270:(t,e,r)=>{r.r(e),r.d(e,{default:()=>n});let n={cardContainer:"GFEwt",shadow:"N77Wp",link:"I25ic",titleWrapper:"NA4Yg",title:"IqCh0",caret:"vbVQ7",actionCardContainer:"_3Xp_",actionCardText:"CkGUV",actionCardButton:"OZD_O",actionCardSubText:"B8lNJ",actionCardTitle:"ZLdln"}},3993:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Card",{enumerable:!0,get:function(){return s}});var n=r(74848),a=c(r(85103)),o=r(40157),i=c(r(90424)),l=c(r(3270)),u=r(20777);function c(t){return t&&t.__esModule?t:{default:t}}var s=function(t){var e=t.title,r=t.shadow,c=t.hideCaret,s=t.children,f=t.to,d=f?a.default:"div";return(0,n.jsxs)(d,{to:f,className:[l.default.cardContainer,void 0!==r&&r?l.default.shadow:"",f?l.default.link:""].join(" "),children:[(0,n.jsxs)("div",{className:l.default.titleWrapper,children:[(0,n.jsx)(u.Heading4,{className:l.default.title,children:e}),f&&!(void 0!==c&&c)&&(0,n.jsx)(o.Icon,{fileUrl:i.default,className:l.default.caret})]}),s]})}},4188:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{LAST_SEVEN_DAYS:function(){return a},LAST_SIX_MONTHS:function(){return l},LAST_THREE_MONTHS:function(){return i},LAST_YEAR:function(){return c},SELF_DEFINED:function(){return f},SINCE_START:function(){return s},THIS_MONTH:function(){return o},THIS_YEAR:function(){return u},TODAY:function(){return r},YESTERDAY:function(){return n}});var r="TODAY",n="YESTERDAY",a="LAST_SEVEN_DAYS",o="THIS_MONTH",i="LAST_THREE_MONTHS",l="LAST_SIX_MONTHS",u="THIS_YEAR",c="LAST_YEAR",s="SINCE_START",f="SELF_DEFINED"},5272:(t,e,r)=>{r.r(e),r.d(e,{Dropdown:()=>n.m});var n=r(90767)},9900:(t,e,r)=>{r.r(e),r.d(e,{default:()=>n});let n={card:"NV2VW",hideShadow:"o9EO3",cardHoverEffects:"zqLWN",bottomContent:"AqlC8",topContent:"wp9kL",image:"Y9CXY",textWrapper:"OWQRB",flipTextDirection:"TkxK2",bodyText:"H43Cu"}},18122:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{DARK_GREY:function(){return r},FJELL_70:function(){return n},FROST:function(){return a}});var r="#676767",n="#4d689f",a="#7EB5D2"},34801:(t,e,r)=>{r.r(e),r.d(e,{default:()=>n});let n={wrapper:"JSS8g",contentWrapper:"ah6Ks",cardWrapper:"Xce4I",ctaTemplateCardContainer:"qy6TL"}},36724:(t,e)=>{function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var Storage=function(){var t,e;function Storage(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,Storage),this.storageType=t}return t=[{key:"getStorage",value:function(){try{if("sessionStorage"===this.storageType)return sessionStorage;return localStorage}catch(t){}}},{key:"toArray",value:function(t){var e=this.getStorage().getItem(t);if(!e)return[];var r=JSON.parse(e);return Array.isArray(r)?r:[]}},{key:"push",value:function(t,e){var r=this.toArray(t);r.push(e),this.getStorage()&&this.getStorage().setItem(t,JSON.stringify(r))}},{key:"set",value:function(t,e){this.getStorage()&&this.getStorage().setItem(t,JSON.stringify(e))}},{key:"get",value:function(t){if(this.getStorage()){var e=this.getStorage().getItem(t);return e?JSON.parse(e):void 0}}},{key:"getFirst",value:function(t){var e=this.get(t);return e&&e.length>0?e[0]:void 0}},{key:"getLast",value:function(t){var e=this.get(t);return e&&e.length>0?e[e.length-1]:void 0}},{key:"remove",value:function(t){if(!this.getStorage())return!1;this.getStorage().removeItem(t)}},{key:"contains",value:function(t,e){return this.toArray(t).indexOf(e)>-1}}],r(Storage.prototype,t),e&&r(Storage,e),Storage}();function n(t){return new Storage(t)}},38788:(t,e,r)=>{r.r(e),r.d(e,{default:()=>n});let n={hyphens:"BSboE",tooltip:"poYzJ",graphContainer:"pQ06D",yAxisLabel:"ynlfw"}},38976:(t,e,r)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});var n=r(74848),a=r(40157),o=r(80041),i=r(96540),l=function(t){return t&&t.__esModule?t:{default:t}}(r(55067));function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var c=function(t){var e,r=t.iconFileUrl,c=t.title,s=t.tooltipText,f=t.number,d=function(t){if(Array.isArray(t))return t}(e=(0,i.useState)(!1))||function(t,e){var r,n,a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(t);!(i=(r=a.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,n=t}finally{try{i||null==a.return||a.return()}finally{if(l)throw n}}return o}}(e,2)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(t,e)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=d[0],v=d[1];return(0,n.jsxs)("div",{className:l.default.statsBlock,children:[(0,n.jsx)("div",{className:l.default.icon,children:(0,n.jsx)(a.Icon,{fileUrl:r,size:"xl"})}),(0,n.jsxs)("div",{className:l.default.statsBlockText,children:[(0,n.jsxs)("div",{className:l.default.statsTitleWithTooltip,children:[(0,n.jsx)("div",{className:l.default.blockHeader,children:c}),(0,n.jsx)(o.Tooltip,{"aria-controls":c,onClick:function(){return v(!p)}})]}),(0,n.jsx)("div",{hidden:!p,id:c,className:l.default.tooltipText,children:s}),(0,n.jsx)("div",{className:l.default.blockNumber,children:f})]})]})}},41890:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{fetchAverageDonationStatistics:function(){return p},fetchCollectedStatistics:function(){return l},fetchNumberOfProjectsStatistics:function(){return f},fetchNumberOfUniqueGiversStatistics:function(){return d},fetchNumerOfGiverdataTransactionsStatistics:function(){return h},fetchNumerOfRecurringGiversStatistics:function(){return v},fetchOrganizationGiversStatistics:function(){return c},fetchTotalCollectedSumStatistics:function(){return s},fetchVisitedStatistics:function(){return u}});var n=function(t){return t&&t.__esModule?t:{default:t}}(r(86663));function a(t,e,r,n,a,o,i){try{var l=t[o](i),u=l.value}catch(t){r(t);return}l.done?e(u):Promise.resolve(u).then(n,a)}function o(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function l(t){a(i,n,o,l,u,"next",t)}function u(t){a(i,n,o,l,u,"throw",t)}l(void 0)})}}function i(t,e){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var l=function(){var t=o(function(t){var e,r,a,o,l,u;return i(this,function(i){switch(i.label){case 0:return e=t.organizationId,r=t.from,a=t.to,o=t.baseURL,l=n.default.stringify({from:r,to:a}),u=o.concat("/api/private/organization/".concat(e,"/statistics/collected?").concat(l)),[4,fetch(u)];case 1:return[4,i.sent().json()];case 2:return[2,i.sent()]}})});return function(e){return t.apply(this,arguments)}}(),u=function(){var t=o(function(t){var e,r,a,o,l,u;return i(this,function(i){switch(i.label){case 0:return e=t.organizationId,r=t.from,a=t.to,o=t.baseURL,l=n.default.stringify({from:r,to:a}),u=o.concat("/api/private/organization/".concat(e,"/statistics/visits?").concat(l)),[4,fetch(u)];case 1:return[4,i.sent().json()];case 2:return[2,i.sent()]}})});return function(e){return t.apply(this,arguments)}}(),c=function(){var t=o(function(t){var e,r,a,o,l,u;return i(this,function(i){switch(i.label){case 0:return e=t.organizationId,r=t.from,a=t.to,o=t.baseURL,l=n.default.stringify({from:r,to:a}),u=o.concat("/api/private/organization/".concat(e,"/statistics/givers?").concat(l)),[4,fetch(u)];case 1:return[4,i.sent().json()];case 2:return[2,i.sent()]}})});return function(e){return t.apply(this,arguments)}}(),s=function(){var t=o(function(t){var e,r,a,o,l,u,c,s,f;return i(this,function(i){switch(i.label){case 0:return e=t.organizationId,r=t.dateFrom,a=t.dateTo,o=t.baseURL,l=n.default.stringify({dateFrom:r,dateTo:a}),u=o.concat("/api/private/organization/".concat(e,"/statistics/total-collected-sum?").concat(l)),[4,fetch(u)];case 1:return[4,(c=i.sent()).json()];case 2:if(s=i.sent(),!(null==c?void 0:c.ok))throw Error(null==s?void 0:null===(f=s.errors)||void 0===f?void 0:f.global);return[2,null==s?void 0:s.value]}})});return function(e){return t.apply(this,arguments)}}(),f=function(){var t=o(function(t){var e,r,a,o,l,u,c,s,f;return i(this,function(i){switch(i.label){case 0:return e=t.organizationId,r=t.dateFrom,a=t.dateTo,o=t.baseURL,l=n.default.stringify({dateFrom:r,dateTo:a}),u=o.concat("/api/private/organization/".concat(e,"/statistics/number-of-projects?").concat(l)),[4,fetch(u)];case 1:return[4,(c=i.sent()).json()];case 2:if(s=i.sent(),!(null==c?void 0:c.ok))throw Error(null==s?void 0:null===(f=s.errors)||void 0===f?void 0:f.global);return[2,null==s?void 0:s.value]}})});return function(e){return t.apply(this,arguments)}}(),d=function(){var t=o(function(t){var e,r,a,o,l,u,c,s,f;return i(this,function(i){switch(i.label){case 0:return e=t.organizationId,r=t.dateFrom,a=t.dateTo,o=t.baseURL,l=n.default.stringify({dateFrom:r,dateTo:a}),u=o.concat("/api/private/organization/".concat(e,"/statistics/number-of-unique-givers?").concat(l)),[4,fetch(u)];case 1:return[4,(c=i.sent()).json()];case 2:if(s=i.sent(),!(null==c?void 0:c.ok))throw Error(null==s?void 0:null===(f=s.errors)||void 0===f?void 0:f.global);return[2,null==s?void 0:s.value]}})});return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o(function(t){var e,r,a,o,l,u,c,s,f;return i(this,function(i){switch(i.label){case 0:return e=t.organizationId,r=t.dateFrom,a=t.dateTo,o=t.baseURL,l=n.default.stringify({dateFrom:r,dateTo:a}),u=o.concat("/api/private/organization/".concat(e,"/statistics/average-donation?").concat(l)),[4,fetch(u)];case 1:return[4,(c=i.sent()).json()];case 2:if(s=i.sent(),!(null==c?void 0:c.ok))throw Error(null==s?void 0:null===(f=s.errors)||void 0===f?void 0:f.global);return[2,null==s?void 0:s.value]}})});return function(e){return t.apply(this,arguments)}}(),v=function(){var t=o(function(t){var e,r,a,o,l,u,c,s,f;return i(this,function(i){switch(i.label){case 0:return e=t.organizationId,r=t.dateFrom,a=t.dateTo,o=t.baseURL,l=n.default.stringify({dateFrom:r,dateTo:a}),u=o.concat("/api/private/organization/".concat(e,"/statistics/count-recurring-givers?").concat(l)),[4,fetch(u)];case 1:return[4,(c=i.sent()).json()];case 2:if(s=i.sent(),!(null==c?void 0:c.ok))throw Error(null==s?void 0:null===(f=s.errors)||void 0===f?void 0:f.global);return[2,null==s?void 0:s.value]}})});return function(e){return t.apply(this,arguments)}}(),h=function(){var t=o(function(t){var e,r,a,o,l,u,c,s,f;return i(this,function(i){switch(i.label){case 0:return e=t.organizationId,r=t.dateFrom,a=t.dateTo,o=t.baseURL,l=n.default.stringify({dateFrom:r,dateTo:a}),u=o.concat("/api/private/organization/".concat(e,"/statistics/num-giverdata-transactions?").concat(l)),[4,fetch(u)];case 1:return[4,(c=i.sent()).json()];case 2:if(s=i.sent(),!(null==c?void 0:c.ok))throw Error(null==s?void 0:null===(f=s.errors)||void 0===f?void 0:f.global);return[2,null==s?void 0:s.value]}})});return function(e){return t.apply(this,arguments)}}()},42949:(t,e,r)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return O}});var n=r(74848),a=T(r(53255)),o=T(r(61310)),i=T(r(79182)),l=r(20777),u=r(80041),c=r(5272),s=r(4188),f=r(90143),d=r(96540),p=T(r(44480)),v=r(5273),h=r(3993),b=T(r(55067)),m=r(41890),y=r(69733),g=T(r(95093)),x=T(r(54582)),j=T(r(38976));function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function T(t){return t&&t.__esModule?t:{default:t}}function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r,n,a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(t);!(i=(r=a.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,n=t}finally{try{i||null==a.return||a.return()}finally{if(l)throw n}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var O=function(t){var e=t.organization,r=D((0,d.useState)(""),2),S=r[0],T=r[1],O=D((0,d.useState)(""),2),_=O[0],A=O[1],Y=D((0,d.useState)(),2),k=Y[0],N=Y[1],w=D((0,d.useState)(s.SINCE_START),2),E=w[0],I=w[1],M=(0,y.useSelector)(function(t){return t.baseURL}),C=new p.default(e.created_at),P=function(t){var e=C.getDateValues(t);T(e.fromDate),A(e.toDate)};return(0,d.useEffect)(function(){(null==e?void 0:e.id)&&(0,g.default)(S,"DD.MM.YYYY",!0).isValid()&&(0,g.default)(_,"DD.MM.YYYY",!0).isValid()&&(0,m.fetchOrganizationGiversStatistics)({baseURL:M,organizationId:e.id,from:(0,g.default)(S,"DD.MM.YYYY").format("YYYY-MM-DD"),to:(0,g.default)(_,"DD.MM.YYYY").format("YYYY-MM-DD")}).then(function(t){N(t)})},[null==e?void 0:e.id,S,_]),(0,d.useEffect)(function(){P(s.SINCE_START)},[]),(0,n.jsx)("div",{className:b.default.wrapper,children:(0,n.jsxs)("div",{className:b.default.container,children:[(0,n.jsx)(l.Heading2,{children:"Rapporter"}),(0,n.jsxs)("div",{className:b.default.choosePeriod,children:[(0,n.jsx)(u.InputGroup,{label:"Velg periode",children:(0,n.jsxs)(c.Dropdown,{value:E,onChange:function(t){I(t.target.value),P(t.target.value)},children:[(0,n.jsx)("option",{value:s.SINCE_START,children:"Siden oppstart"}),(0,n.jsx)("option",{value:s.TODAY,children:"I dag"}),(0,n.jsx)("option",{value:s.YESTERDAY,children:"I g\xe5r"}),(0,n.jsx)("option",{value:s.LAST_SEVEN_DAYS,children:"Siste 7 dager"}),(0,n.jsx)("option",{value:s.THIS_MONTH,children:"Denne m\xe5neden"}),(0,n.jsx)("option",{value:s.LAST_THREE_MONTHS,children:"Siste 3 m\xe5neder"}),(0,n.jsx)("option",{value:s.LAST_SIX_MONTHS,children:"Siste 6 m\xe5neder"}),(0,n.jsx)("option",{value:s.THIS_YEAR,children:"I \xe5r"}),(0,n.jsx)("option",{value:s.LAST_YEAR,children:"I fjor"}),(0,n.jsx)("option",{value:s.SELF_DEFINED,disabled:!0,children:"Egendefinert"})]})}),(0,n.jsx)(u.InputGroup,{label:"Fra",labelId:"datepicker-from",children:(0,n.jsx)(f.Datepicker,{locale:"nb",maxDate:_||(0,v.formatToNbDate)(new Date),minDate:(0,v.formatToNbDate)(e.created_at)||"01.01.2016",onChange:function(t){var e=C.getPredefinedKey({fromDate:t,toDate:_});T(t),I(e||s.SELF_DEFINED)},value:S,labelId:"datepicker-from"})}),(0,n.jsx)(u.InputGroup,{label:"Til",labelId:"datepicker-to",children:(0,n.jsx)(f.Datepicker,{locale:"nb",maxDate:(0,v.formatToNbDate)(new Date),minDate:S,onChange:function(t){var e=C.getPredefinedKey({fromDate:S,toDate:t});A(t),I(e||s.SELF_DEFINED)},value:_,labelId:"datepicker-to"})})]}),(0,n.jsx)(h.Card,{title:"Donasjoner",children:(0,n.jsxs)("div",{className:b.default.statsBlocks,children:[(0,n.jsx)(j.default,{iconFileUrl:o.default,title:"Antall donasjoner",tooltipText:"Noen givere kan ha donert flere ganger",number:(0,v.formatNumber)(null==k?void 0:k.givers)}),(0,n.jsx)(j.default,{iconFileUrl:i.default,title:"Snittbel\xf8p donasjoner",tooltipText:"Totalt innsamlet bel\xf8p delt p\xe5 antall donasjoner",number:(0,v.formatMoneyKr)(null==k?void 0:k.averageAmou
1nt,!0)}),(0,n.jsx)(j.default,{iconFileUrl:i.default,title:"Typetall donasjoner",tooltipText:"Donasjonsbel\xf8pet som forekommer flest ganger",number:(0,v.formatMoneyKr)(null==k?void 0:k.mode)})]})}),(0,n.jsx)(a.default,{organizationId:e.id,from:S,to:_,setFrom:T,setTo:A}),(0,n.jsx)(x.default,{organizationId:e.id,from:S,to:_,setFrom:T,setTo:A})]})})}},42958:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"OrganizationYearSummary",{enumerable:!0,get:function(){return g}});var n=r(74848),a=v(r(95093)),o=r(20777),i=r(69733),l=r(41890),u=r(5273),c=r(43870),s=r(96540),f=v(r(34801));function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e,r,n,a,o,i){try{var l=t[o](i),u=l.value}catch(t){r(t);return}l.done?e(u):Promise.resolve(u).then(n,a)}function v(t){return t&&t.__esModule?t:{default:t}}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}function b(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r.push.apply(r,n)}return r}
1)(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}var m=function(t){var e=t.id,r=t.fetchNumberOfRecurringGivers,a=t.hasAcceptedRecurringPayment,o={topColor:"#fadde1",subText:"Faste givere",hideShadow:!0,src:"illustrations/mann_trompet.svg",fetchFunc:r};return a?(0,n.jsx)(c.WaveCardWithData,b(h({},o),{id:e,title:function(t){return"".concat((0,u.formatNumber)(t)," ").concat((0,u.pluralize)(t,"person","personer"))},subText:"Faste givere",bodyText:function(t){return"har blitt ".concat((0,u.pluralize)(t,"fast st\xf8ttespiller","faste st\xf8ttespillere"))},to:"../recurring"})):(0,n.jsx)(c.WaveCardWithData,b(h({},o),{id:e,title:"Rekrutter faste givere",subText:"Faste givere",bodyText:function(t){return t>0?"".concat((0,u.formatNumber)(t)," ").concat((0,u.pluralize)(t,"person","personer")," \xf8nsker \xe5 bli ").concat((0,u.pluralize)(t,"fast st\xf8ttespiller","faste st\xf8ttespillere")):"G\xe5 til innstillinger"},to:"../recurring/settings"}))},y=function(t){var e,r=t.id,a=t.organizationId,o=t.fetchGiverDataNumber,i=function(t){if(Array.isArray(t))return t}(e=(0,s.useState)(null))||function(t,e){var r,n,a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(t);!(i=(r=a.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,n=t}finally{try{i||null==a.return||a.return()}finally{if(l)throw n}}return o}}(e,2)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=i[0],f=i[1],v={topColor:"#f5d9b3",subText:"Giverdata",hideShadow:!0,src:"illustrations/snakkebobler.svg",fetchFunc:o};return((0,s.useEffect)(function(){var t,e;(t=function(){return function(t,e){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(t){return fetch("/api/public/organization/".concat(a,"/giver-data-signed")).then(function(t){return t.json()}).then(function(t){return f(!!(null==t?void 0:t.signed))}),[2]})},e=function(){var e=this,r=arguments;return new Promise(function(n,a){var o=t.apply(e,r);function i(t){p(o,n,a,i,l,"next",t)}function l(t){p(o,n,a,i,l,"throw",t)}i(void 0)})},function(){return e.apply(this,arguments)})()},[a]),l)?(0,n.jsx)(c.WaveCardWithData,b(h({},v),{id:r,title:function(t){return"".concat((0,u.formatNumber)(t)," ").concat((0,u.pluralize)(t,"person","personer"))},bodyText:"har sagt at de vil h\xf8re fra dere",to:"../giverdata"})):(0,n.jsx)(c.WaveCardWithData,b(h({},v),{title:"Samle inn giverdata",bodyText:function(t){return t>0?"".concat((0,u.formatNumber)(t)," ").concat((0,u.pluralize)(t,"person","personer")," \xf8nsker \xe5 h\xf8re fra dere"):"G\xe5 til innstillinger"},to:"../giverdata/settings"}))},g=function(t){var e=t.organizationName,r=t.organizationId,d=t.year,p=void 0===d?(0,a.default)().year():d,v=t.isOrgIdrettslag,h=t.hasAcceptedRecurringPayment,b=(0,i.useSelector)(function(t){return t.baseURL}),g=(0,u.getDateFormatted)((0,a.default)(p,"YYYY").startOf("year")),x=(0,u.getDateFormatted)((0,a.default)(p,"YYYY").endOf("year")),j=(0,s.useCallback)(function(){return(0,l.fetchTotalCollectedSumStatistics)({baseURL:b,organizationId:r,dateFrom:g,dateTo:x})},[b,r,g,x]),S=(0,s.useCallback)(function(){return(0,l.fetchNumberOfProjectsStatistics)({baseURL:b,organizationId:r,dateFrom:g,dateTo:x})},[b,r,g,x]),T=(0,s.useCallback)(function(){return(0,l.fetchNumberOfUniqueGiversStatistics)({baseURL:b,organizationId:r,dateFrom:g,dateTo:x})},[b,r,g,x]),D=(0,s.useCallback)(function(){return(0,l.fetchAverageDonationStatistics)({baseURL:b,organizationId:r,dateFrom:g,dateTo:x})},[b,r,g,x]),O=(0,s.useCallback)(function(){return(0,l.fetchNumerOfRecurringGiversStatistics)({baseURL:b,organizationId:r,dateFrom:g,dateTo:x})},[b,r,g,x]),_=(0,s.useCallback)(function(){return(0,l.fetchNumerOfGiverdataTransactionsStatistics)({baseURL:b,organizationId:r,dateFrom:g,dateTo:x})},[b,r,g,x]);return(0,n.jsx)("div",{className:f.default.wrapper,children:(0,n.jsxs)("div",{className:f.default.contentWrapper,children:[(0,n.jsx)(o.Heading2,{children:"\xc5ret s\xe5 langt"}),(0,n.jsxs)("p",{children:["N\xf8kkeltall for ",e," sitt resultat p\xe5 Spleis 
1i ",p]}),(0,n.jsxs)("div",{className:f.default.cardWrapper,children:[(0,n.jsx)(c.WaveCardWithData,{id:"collected",topColor:"#f2f2f9",title:function(t){return(0,u.formatMoneyKr)(t)},fetchFunc:j,subText:"Innsamlet bel\xf8p",bodyText:"har blitt samlet inn p\xe5 Spleis",src:"illustrations/sparegris.svg",hideShadow:!0}),(0,n.jsx)(c.WaveCardWithData,{id:"projects",topColor:"#C2E7DA",title:function(t){return"".concat((0,u.formatNumber)(t)," ").concat((0,u.pluralize)(t,"spleis","spleiser"))},fetchFunc:S,subText:"Antall innsamlinger",bodyText:"har blitt startet for dere",src:"illustrations/hand_hjerte.svg",hideShadow:!0}),(0,n.jsx)(c.WaveCardWithData,{id:"givers",topColor:"#fcece9",title:function(t){return"".concat((0,u.formatNumber)(t)," fine folk")},fetchFunc:T,subText:"Antall givere",bodyText:"har st\xf8ttet en spleis for dere",src:"illustrations/to_personer_klemmer.svg",hideShadow:!0}),!v&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.WaveCardWithData,{id:"average-donation",topColor:"#fde8d9",title:function(t){return(0,u.formatMoneyKr)(t)},fetchFunc:D,subText:"Snittbel\xf8p donasjoner",bodyText:"Snittbel\xf8p for donasjoner er",src:"illustrations/hand_mynter.svg",flipTitleDisplay:!0,hideShadow:!0}),(0,n.jsx)(m,{id:"recurring",organizationId:r,fetchNumberOfRecurringGivers:O,hasAcceptedRecurringPayment:h}),(0,n.jsx)(y,{id:"giverdata",organizationId:r,fetchGiverDataNumber:_})]})]})]})})}},43870:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WaveCardWithData",{enumerable:!0,get:function(){return u}});var n=r(74848),a=r(96540),o=r(86610);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r,n,a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(t);!(i=(r=a.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,n=t}finally{try{i||null==a.return||a.return()}finally{if(l)throw n}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(t){var e=t.id,r=t.topColor,i=t.title,u=t.subText,c=t.bodyText,s=t.src,f=t.fetchFunc,d=t.flipTitleDisplay,p=t.hideShadow,v=t.to,h=l((0,a.useState)(),2),b=h[0],m=h[1],y=l((0,a.useState)(!1),2),g=y[0],x=y[1],j=l((0,a.useState)(),2),S=j[0],T=j[1];return(0,a.useEffect)(function(){f&&(x(!0),f().then(function(t){m(t),T(null)}).catch(function(t){return T(t)}).finally(function(){return x(!1)}))},[f]),(0,n.jsx)(o.WaveCard,{id:e,topColor:r,title:g?"Laster...":S?"":"function"==typeof i?i(b):i,subText:u,bodyText:S?"Kunne ikke hente data":"function"==typeof c?c(b):c,src:s,flipTitleDisplay:d,hideShadow:p,to:v})}},44480:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var n=function(t){return t&&t.__esModule?t:{default:t}}(r(95093)),a=r(4188),o=r(5273);function i(t,e,r){if(!e.has(t))throw TypeError("attempted to get private field on non-instance");return r}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=(0,o.formatToNbDate)(new Date),s=new WeakSet,f=function(){var t,e;function r(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),function(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}(this,s),s.add(this),this.organizationCreatedAt=t}return t=[{key:"getDateValues",value:function(t){return i(this,s,d).call(this)[t]}},{key:"getPredefinedKey",value:function(t){var e=t.fromDate,r=t.toDate,n=this;return Object.keys(i(this,s,d).call(this)).find(function(t){return i(n,s,d).call(n)[t].fromDate===e&&i(n,s,d).call(n)[t].toDate===r})}}],l(r.prototype,t),e&&l(r,e),r}();function d(){var t;return u(t={},a.SINCE_START,{fromDate:(0,o.formatToNbDate)(this.organizationCreatedAt),toDate:c}),u(t,a.TODAY,{fromDate:c,toDate:c}),u(t,a.YESTERDAY,{fromDate:(0,o.formatToNbDate)((0,n.default)().subtract(1,"day")),toDate:(0,o.formatToNbDate)((0,n.default)().subtract(1,"day"))}),u(t,a.LAST_SEVEN_DAYS,{fromDate:(0,o.formatToNbDate)((0,n.default)().subtract(7,"day")),toDate:c}),u(t,a.THIS_MONTH,{fromDate:(0,o.formatToNbDate)((0,n.default)().date(1)),toDate:c}),u(t,a.LAST_THREE_MONTHS,{fromDate:(0,o.formatToNbDate)((0,n.default)().subtract(3,"months")),toDate:c}),u(t,a.LAST_SIX_MONTHS,{fromDate:(0,o.formatToNbDate)((0,n.default)().subtract(6,"months")),toDate:c}),u(t,a.THIS_YEAR,{fromDate:(0,o.formatToNbDate)((0,n.default)().dayOfYear(1)),toDate:c}),u(t,a.LAST_YEAR,{fromDate:(0,o.formatToNbDate)((0,n.default)().subtract(1,"year").dayOfYear(1)),toDate:(0,o.formatToNbDate)((0,n.default)().subtract(1,"year").month(11).date(31))}),t}},46699:(t,e,r)=>{r.r(e),r.d(e,{default:()=>n});let n={headerWrapper:"bQcS1"}},52049:(t,e,r)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return y}});var n=r(74848),a=r(5273),o=r(1041),i=r(96540),l=r(69733),u=r(20777),c=r(3993),s=r(18122),f=b(r(95093)),d=r(93783),p=b(r(9620)),v=b(r(38788));function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function b(t){return t&&t.__esModule?t:{default:t}}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r,n,a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(t);!(i=(r=a.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,n=t}finally{try{i||null==a.return||a.return()}finally{if(l)throw n}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=function(t){var e=t.organizationId,r=t.from,h=t.to,b=t.setFrom,y=t.setTo,g=t.tooltipFormatFunction,x=t.fetchData,j=t.title,S=t.contextMessage,T=t.errorMessage,D=t.yAxisLabel,O=t.dataKey,_=m((0,i.useState)([]),2),A=_[0],Y=_[1],k=(0,l.useSelector)(function(t){return t.baseURL}),N=m((0,i.useState)(!0),2),w=N[0],E=N[1];(0,i.useEffect)(function(){(0,f.default)(r,"DD.MM.YYYY",!0).isValid()&&(0,f.default)(h,"DD.MM.YYYY",!0).isValid()&&(Y([]),E(!0),x({baseURL:k,organizationId:e,from:r,to:h}).then(function(t){Y(t)}).finally(function(){return E(!1)}))},[e,r,h,k]);var I=m((0,i.useState)(),2),M=I[0],C=I[1],P=m((0,i.useState)(),2),F=P[0],L=P[1];return(0,n.jsxs)(c.Card,{title:j,children:[S&&(0,n.jsx)(d.ContextInfoMessage,{compact:!0,children:S}),T&&(0,n.jsx)(d.ContextErrorMessage,{compact:!0,children:T}),(null==A?void 0:A.length)===0&&w?(0,n.jsx)(p.default,{}):(0,n.jsxs)("div",{className:v.default.graphContainer,children:[(0,n.jsx)(u.SmallText,{className:v.default.yAxisLabel,children:D}),(0,n.jsx)(o.ResponsiveContainer,{children:(0,n.jsxs)(o.AreaChart,{data:A,onMouseDown:function(t){C(null==t?void 0:t.activeLabel)},onMouseMove:function(t){M&&(null==t?void 0:t.activeLabel)&&L(t.activeLabel)},onMouseUp:function(){M!==F&&((0,f.default)(M,"DD.MM.YYYY").isBefore((0,f.default)(F,"DD.MM.YYYY"))?(b(M),y(F)):(b(F),y(M)),L(void 0),C(void 0))},children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"areaFill",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,n.jsx)("stop",{offset:"10%",stopColor:s.FROST,stopOpacity:.9}),(0,n.jsx)("stop",{offset:"90%",stopColor:s.FROST,stopOpacity:.1})]})}),(0,n.jsx)(o.CartesianGrid,{strokeDasharray:"3"}),(0,n.jsx)(o.XAxis,{stroke:s.DARK_GREY,dataKey:"date",fontSize:"0.875rem"}),(0,n.jsx)(o.YAxis,{width:function(){var t=3;if(null==A?void 0:A.length){var e=!0,r=!1,n=void 0;try{for(var o,i=A[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var l=o.value;t=Math.max(t,(0,a.formatNumber)(l[O]).length)}}catch(t){r=!0,n=t}finally{try{e||null==i.return||i.return()}finally{if(r)throw n}}}return 9.1*t}(),stroke:s.DARK_GREY,dataKey:O,allowDecimals:!1,tickFormatter:function(t){return 0===t?"":(0,a.formatNumber)(t)},fontSize:"0.875rem"}),(0,n.jsx)(o.Area,{type:"basis",dataKey:O,stroke:s.FJELL_70,fill:"url(#areaFill)",isAnimationActive:!1}),M&&F&&(0,n.jsx)(o.ReferenceArea,{x1:M,x2:F,strokeOpacity:.3}),(0,n.jsx)(o.Tooltip,{cursor:{strokeDasharray:"3 3"},content:(0,n.jsx)(function(t){var e=t.active,r=t.payload;return e&&(null==r?void 0:r.length)>0?(0,n.jsxs)("div",{className:v.default.tooltip,children:[(0,n.jsxs)("div",{children:["Dato: ",r[0].payload.date]}),(0,n.jsxs)("div",{children:[r[0].name,": ",g(r[0].value)]})]}):null},{})})]})})]})]})}},53255:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});
1var n=r(74848),a=r(5273),o=r(41890),i=u(r(95093)),l=u(r(52049));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){var e=t.organizationId,r=t.from,u=t.to,c=t.setFrom,s=t.setTo;return(0,n.jsx)(l.default,{from:r,to:u,setFrom:c,setTo:s,organizationId:e,dataKey:"sum",title:"Innsamlet over tid",yAxisLabel:"Kroner",tooltipFormatFunction:a.formatMoneyKr,fetchData:function(t){var e=t.baseURL,r=t.organizationId,n=t.from,a=t.to;return(0,o.fetchCollectedStatistics)({baseURL:e,organizationId:r,from:(0,i.default)(n,"DD.MM.YYYY").format("YYYY-MM-DD"),to:(0,i.default)(a,"DD.MM.YYYY").format("YYYY-MM-DD")})}})}},54582:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var n=r(74848),a=r(5273),o=r(41890),i=s(r(95093)),l=s(r(52049)),u=r(96540);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function s(t){return t&&t.__esModule?t:{default:t}}var f=function(t){var e,r=t.organizationId,s=t.from,f=t.to,d=t.setFrom,p=t.setTo,v=function(t){if(Array.isArray(t))return t}(e=(0,u.useState)(""))||function(t,e){var r,n,a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(t);!(i=(r=a.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,n=t}finally{try{i||null==a.return||a.return()}finally{if(l)throw n}}return o}}(e,2)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=v[0],b=v[1];return(0,n.jsx)(l.default,{from:s,to:f,setFrom:d,setTo:p,organizationId:r,dataKey:"Antall",title:"Bes\xf8kstall",yAxisLabel:"Bes\xf8k",tooltipFormatFunction:a.formatNumber,contextMessage:"Bes\xf8kstall er kun tilgjenglig for bes\xf8k fra og med 18. september 2024",errorMessage:h,fetchData:function(t){var e=t.baseURL,r=t.organizationId,n=t.from,a=t.to;return b(""),(0,o.fetchVisitedStatistics)({baseURL:e,organizationId:r,from:(0,i.default)(n,"DD.MM.YYYY").min((0,i.default)("18.09.2024","DD.MM.YYYY")).format("YYYY-MM-DD"),to:(0,i.default)(a,"DD.MM.YYYY").format("YYYY-MM-DD")}).catch(function(){b("Klarte ikke \xe5 hente statistikk. Vennligst pr\xf8v igjen senere.")})}})}},55067:(t,e,r)=>{r.r(e),r.d(e,{default:()=>n});let n={wrapper:"LmbJh",container:"m2Vj0",statsBlock:"wXi7p",statsBlockText:"eKnfq",choosePeriod:"lPl_y",statsBlocks:"O2Ze1",icon:"Npz2P",blockHeader:"bzxwa",blockNumber:"TFitf",statsTitleWithTooltip:"GyP0f",tooltipText:"TIqPQ"}},58650:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return y}});var n=r(74848),a=r(42958),o=r(88004),i=m(r(42949)),l=r(96540),u=r(84605),c=r(13948),s=r(20777),f=r(47162),d=r(12829),p=r(54928),v=r(79465),h=r(57444),b=m(r(46699));function m(t){return t&&t.__esModule?t:{default:t}}var y=function(){var t,e=(0,p.useOutletContext)().organization;return(0,v.useBackgroundColor)(h.THEMES.SAND30),(0,l.useEffect)(function(){(0,u.trackPageView)({urlAsEvent:"organization-statistics"})},[]),(0,c.useTitle)("Rapporter"),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:b.default.headerWrapper,children:[(0,n.jsx)(s.Heading1,{children:"Rapporter"}),(0,n.jsx)(f.Lead,{children:"F\xe5 oversikt over hvordan det g\xe5r p\xe5 Spleis, ta et dypdykk ned i statistikken og hent ut rapporter"})]}),(0,n.jsx)(a.OrganizationYearSummary,{organizationId:e.id,organizationName:e.name,isOrgIdrettslag:(0,o.isOrganizationIdrettslag)(e),hasAcceptedRecurringPayment:!!(null==e?void 0:null===(t=e.profile)||void 0===t?void 0:t.acceptRecurringPayment)}),(0,n.jsx)(i.default,{organization:e}),(0,n.jsx)(d.OrganizationControlFeedback,{})]})}},61310:(t,e,r)=>{t.exports=r.p+"035d76a622cba976039c.svg"},79182:(t,e,r)=>{t.exports=r.p+"35b39c84d0c9452a5fef.svg"},79465:(t,e,r)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useBackgroundColor",{enumerable:!0,get:function(){return i}});var n=r(54928),a=r(57444),o=r(96540),i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.THEMES.HVIT,e=(0,n.useOutletContext)();(0,o.useEffect)(function(){(null==e?void 0:e.setBackgroundColor)&&e.setBackgroundColor(t)},[null==e?void 0:e.setBackgroundColor,t])}},86610:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WaveCard",{enumerable:!0,get:function(){return v}});var n=r(74848),a=r(20777),o=s(r(43179)),i=r(54928),l=r(84605),u=r(96540),c=s(r(9900));function s(t){return t&&t.__esModule?t:{default:t}}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}function d(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r.push.apply(r,n)}return r}
1)(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}var p=function(t){var e=t.to,r=t.children,a=function(t,e){if(null==t)return{};var r,n,a=function(t,e){if(null==t)return{};var r,n,a={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(a[r]=t[r]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}(t,["to","children"]);return e?(0,n.jsx)(i.Link,d(f({onClick:function(){(0,l.trackEvent)("wave-card","click-link",{url:e})},to:e},a),{children:r})):(0,n.jsx)("div",d(f({},a),{children:r}))},v=function(t){var e=t.id,r=t.subText,l=t.title,s=t.bodyText,f=t.src,d=t.topColor,v=t.flipTitleDisplay,h=t.hideShadow,b=t.to,m=(0,u.useRef)(null),y=(0,i.useLocation)();return(0,u.useEffect)(function(){m.current&&y.hash==="#".concat(e)&&m.current.scrollIntoView({block:"center",behavior:"instant"})},[y,e]),(0,n.jsxs)(p,{to:b,className:[c.default.card,void 0!==h&&h?c.default.hideShadow:"",b?c.default.cardHoverEffects:""].join(" "),style:{backgroundColor:void 0===d?"#f2f2f9":d},ref:m,children:[(0,n.jsx)("div",{className:c.default.topContent,children:(0,n.jsx)(a.SmallText,{children:void 0===r?"":r})}),(0,n.jsxs)("div",{className:c.default.bottomContent,children:[(0,n.jsx)(o.default,{className:c.default.image,src:void 0===f?"":f}),(0,n.jsxs)("div",{className:[c.default.textWrapper,void 0!==v&&v?c.default.flipTextDirection:""].join(" "),children:[(0,n.jsx)(a.Heading4,{noMargin:!0,children:void 0===l?"":l}),(0,n.jsx)("span",{className:c.default.bodyText,children:void 0===s?"":s})]})]})]})}},90424:(t,e,r)=>{t.exports=r.p+"2d626e2989692f5c6a5e.svg"}}]);
2//# sourceMappingURL=organization-organization-control-organization-statistics-OrganizationStatisticsOverview.js.map?v=ed8c5e909b2dbcc6fd85

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.