PageSourceSearch

https://groovio.com.au/main-93b00865.636b56a6.js

js groovio.com.au collected 2026-09-24 10:57:25 UTC 20,711 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkgroovio=globalThis.webpackChunkgroovio||[]).push([[9352],{T7q8(e,n,t){t.d(n,{A:()=>_});var a=t("nKUr"),o=t("q1tI"),l=t("V4z/"),r=t("8KIq"),i=t("vvQw"),s=t("CbZc"),u=t("y2R7"),c=t("wd/R"),d=t.n(c),v=t("dZIp"),p=t("g02y"),m=t("MG9a"),f=t("vj2F"),h=t("tYjL"),b=t("DcvE"),g=function(e,n,t,a){return new(t||(t=Promise))(function(o,l){function r(e){try{s(a.next(e))}catch(e){l(e)}}function i(e){try{s(a.throw(e))}catch(e){l(e)}}function s(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(r,i)}s((a=a.apply(e,n||[])).next())})},y=function(e,n){var t,a,o,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return r.next=i(0),r.throw=i(1),r.return=i(2),"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,i[0]&&(l=0)),l;)try{if(t=1,a&&(o=2&i[0]?a.return:i[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,i[1])).done)return o;switch(a=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,a=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=n.call(e,l)}catch(e){i=[6,e],a=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};const _=function(){var e,n,t,c=this,_=(0,l.Zp)(),x=(0,i.wA)(),C=(0,i.d4)(function(e){return e.GetStudioProfileState}).studio_profile_data,F=(0,i.d4)(function(e){return e.GetActiveMembershipState}),S=(0,i.d4)(function(e){return e.ActiveMembershipExportState}),w=(0,b.V2)((null===(e=null==C?void 0:C.data)||void 0===e?void 0:e.terminologies)||[]),k=(null===(n=null==C?void 0:C.data)||void 0===n?void 0:n.currency_symbol)?null===(t=null==C?void 0:C.data)||void 0===t?void 0:t.currency_symbol:"",j=(0,o.useState)(!1),E=j[0],M=j[1],z=(0,o.useState)([]),N=z[0],R=z[1],I=(0,o.useState)({pageIndex:0,pageSize:10}),A=I[0],D=I[1],P=(0,o.useState)(0),Y=P[0],B=P[1],K=(0,o.useState)("")[0],T=(0,o.useState)(!0),G=T[0],L=T[1],O=(0,o.useState)(!1),U=O[0],W=O[1],q=(0,o.useState)([]),Z=q[0],V=q[1],Q=(0,o.useState)(""),H=Q[0],J=Q[1],X=(0,o.useState)([]),$=X[0],ee=(X[1],[{accessorKey:"name",header:"Name",accessorFn:function(e){return(null==e?void 0:e.first_name)?(null==e?void 0:e.first_name)+" "+(null==e?void 0:e.last_name)||"":"-"},enableColumnFilter:!1},{accessorKey:"email",header:"Email",accessorFn:function(e){return(null==e?void 0:e.email)?null==e?void 0:e.email:"-"},enableColumnFilter:!1,size:50},{accessorKey:"dob",header:"DOB",accessorFn:function(e){return(null==e?void 0:e.dob)?d()(null==e?void 0:e.dob).format("DD/MM/YYYY"):"-"},enableColumnFilter:!1,enableSorting:!1,size:80},{accessorKey:"feature_detail",header:"Membership Name",accessorFn:function(e){var n,t;return(null===(n=null==e?void 0:e.feature_detail)||void 0===n?void 0:n.name)?null===(t=null==e?void 0:e.feature_detail)||void 0===t?void 0:t.name:"-"},enableColumnFilter:!1,enableSorting:!1,size:100},{accessorKey:"membership_status_type",header:"Status",accessorFn:function(e){return(null==e?void 0:e.membership_status_type)?null==e?void 0:e.membership_status_type:"-"},enableColumnFilter:!1,size:100},{accessorKey:"expiration_date_type",header:"Expiry",accessorFn:function(e){var n;return(null==e?void 0:e.end_date_time)?(0,s.SH)(null==e?void 0:e.end_date_time,null===(n=null==C?void 0:C.data)||void 0===n?void 0:n.currency):"-"},enableColumnFilter:!1,size:100},{id:"next_payment_time",header:"Next Billing Date",accessorFn:function(e){return(null==e?void 0:e.next_payment_time)?d().utc(null==e?void 0:e.next_payment_time).local().format("DD/MM/YYYY hh:mm A"):"-"},enableColumnFilter:!1,size:100},{accessorKey:"total_classes",header:"Remaining classes / No of total classes",accessorFn:function(e){return(null==e?void 0:e.total_classes)||(null==e?void 0:e.remaining_classes)?(null==e?void 0:e.remaining_classes)+" / "+(null==e?void 0:e.total_classes):"-"},enableColumnFilter:!1,size:80},{id:"purchase_date",header:"Most Recent Payment",accessorFn:function(e){return(null==e?void 0:e.purchase_date)?d()(null==e?void 0:e.purchase_date).format("DD/MM/YYYY"):"-"},enableColumnFilter:!1,size:100},{accessorKey:"template_price",header:"Template Price",accessorFn:function(e){return null!==(null==e?void 0:e.template_price)&&void 0!==(null==e?void 0:e.template_price)&&""!==(null==e?void 0:e.template_price)?"".concat(k," ").concat(null==e?void 0:e.template_price):"-"},enableColumnFilter:!1,enableSorting:!1,size:80},{accessorKey:"recurring_amount",header:"Recurring Amount",accessorFn:function(e){return null!==(null==e?void 0:e.recurring_amount)&&void 0!==(null==e?void 0:e.recurring_amount)&&""!==(null==e?void 0:e.recurring_amount)?"".concat(k," ").concat(null==e?void 0:e.recurring_amount):"-"},enableColumnFilter:!1,enableSorting:!1,size:80},{id:"membership_start_date",header:"Entire Membership Start Date",accessorFn:function(e){return(null==e?void 0:e.membership_start_date)?d().utc(null==e?void 0:e.membership_start_date).local().format("DD/MM/YYYY"):"-"},enableColumnFilter:!1,size:100},{id:"membership_cycles",header:"Completed Membership Cycles",accessorFn:function(e){return(null==e?void 0:e.membership_cycles)?null==e?void 0:e.membership_cycles:"-"},enableColumnFilter:!1,enableSorting:!1,size:100},{accessorKey:"id",header:"Seq/No.",accessorFn:function(e,n){return A.pageSize*A.pageIndex+n+1},enableColumnFilter:!1,enableSorting:!1,size:50}]);(0,o.useEffect)(function(){var e,n;V(null===(e=null==F?void 0:F.data)||void 0===e?void 0:e.data),B(null===(n=null==F?void 0:F.data)||void 0===n?void 0:n.count)},[F]),(0,o.useEffect)(function(){var e,n,t,a,o;if(null==S?void 0:S.status)if(""!=(null===(n=null===(e=null==S?void 0:S.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.file_url)){var l=p.b.split("com.au"),r=(null==l?void 0:l[0])+"com.au"+(null===(a=null===(t=null==S?void 0:S.data)||void 0===t?void 0:t.data)||void 0===a?void 0:a.file_url),i=r.split(".")[(null===(o=r.split("."))||void 0===o?void 0:o.length)-1],s=Date.now()+(1e5*
1Math.random()).toFixed()+"."+i;fetch(r).then(function(e){return e.text()}).then(function(e){var n=new Blob([e],{type:"text/".concat(i)}),t=window.URL.createObjectURL(n),a=document.createElement("a");a.href=r,a.download=s,a.style.display="none",document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(t),document.body.removeChild(a)})}else(0,m.Qg)("Record not Found");x({type:f.Eps,data:null})},[null==S?void 0:S.status,x]),(0,o.useEffect)(function(){ne()},[N,K,A.pageIndex,A.pageSize,H,$]);var ne=function(){return g(c,void 0,void 0,function(){var e,n,t;return y(this,function(a){switch(a.label){case 0:(null==Z?void 0:Z.status)?(L(!1),W(!0)):W(!0),a.label=1;case 1:return a.trys.push([1,3,,4]),e=(0,s.R7)(A.pageSize,A.pageIndex+1,H.trim(),null===(n=$[0])||void 0===n?void 0:n.id,0===(null==$?void 0:$.length)?[]:(null===(t=$[0])||void 0===t?void 0:t.desc)?"DESC":"ASC",!0),[4,x((0,v.lx)(e))];case 2:return a.sent(),[3,4];case 3:return a.sent(),M(!0),[2];case 4:return M(!1),L(!1),W(!1),[2]}})})};return(0,a.jsxs)(o.Fragment,{children:[(null==S?void 0:S.loading)?(0,a.jsx)(h.A,{}):"",(0,a.jsxs)("div",{className:"main-right w-100 schedule-main-right",children:[(0,a.jsx)("div",{className:"tab-ul schedule-top",children:(0,a.jsxs)("div",{className:"row d-flex align-items-center",children:[(0,a.jsxs)("div",{className:"col-sm-10 d-flex align-items-center",children:[(0,a.jsx)("button",{className:"back-bg",onClick:function(){return _(-1)},children:(0,a.jsx)("span",{className:"icon-arrow"})}),(0,a.jsx)("span",{children:(0,a.jsx)("h5",{children:"Active Membership List"})})]}),(0,a.jsx)("div",{className:"col-sm-2",children:(0,a.jsx)("button",{onClick:function(){x((0,v.Rt)({}))},className:"btn-secondry mt-2 mt-sm-0",children:"Export"})})]})}),(0,a.jsx)("div",{className:"right-side-main",children:(0,a.jsx)("div",{className:"table-responsive same-table retail-table tabelSameICon",children:!1===G?(0,a.jsx)(r.zp,{columns:ee,data:null!=Z?Z:[],initialState:{showGlobalFilter:!0},manualFiltering:!0,manualPagination:!0,muiToolbarAlertBannerProps:E?{color:"error",children:"Error loading data"}:void 0,onColumnFiltersChange:R,onPaginationChange:D,onGlobalFilterChange:J,rowCount:Y,state:{columnFilters:N,globalFilter:K,isLoading:G,pagination:A,showAlertBanner:E,showProgressBars:U},enableDensityToggle:!1,enableGlobalFilter:!0,enableColumnFilters:!1,positionGlobalFilter:"left",muiSearchTextFieldProps:{placeholder:"Search by membership, ".concat(w("student")," name"),variant:"outlined",size:"medium",sx:{width:"50%",minWidth:"400px","& .MuiOutlinedInput-root":{borderRadius:"8px",backgroundColor:"#f8f9fa",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",transition:"all 0.3s ease","& fieldset":{borderColor:"#dee2e6",borderWidth:"2px"},"&:hover":{backgroundColor:"#ffffff",boxShadow:"0 4px 8px rgba(0,0,0,0.15)","& fieldset":{borderColor:"#6c757d"}},"&.Mui-focused":{backgroundColor:"#ffffff",boxShadow:"0 4px 12px rgba(13, 110, 253, 0.25)","& fieldset":{borderColor:"#0d6efd",borderWidth:"2px"}}},"& .MuiInputBase-input":{padding:"12px 16px",fontSize:"14px",fontWeight:"500",color:"#495057","&::placeholder":{color:"#6c757d",opacity:1,fontWeight:"400"}},"& .MuiInputAdornment-root":{display:"none"},"& .MuiIconButton-root":{display:"none"}}}}):(0,a.jsx)(u.A,{})})})]})]})}},"0/Yc"(e,n,t){t.d(n,{A:()=>_});var a=t("nKUr"),o=t("q1tI"),l=t("V4z/"),r=t("8KIq"),i=t("vvQw"),s=t("CbZc"),u=t("y2R7"),c=t("wd/R"),d=t.n(c),v=t("dZIp"),p=t("g02y"),m=t("MG9a"),f=t("vj2F"),h=t("tYjL"),b=t("DcvE"),g=function(e,n,t,a){return new(t||(t=Promise))(function(o,l){function r(e){try{s(a.next(e))}catch(e){l(e)}}function i(e){try{s(a.throw(e))}catch(e){l(e)}}function s(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(r,i)}s((a=a.apply(e,n||[])).next())})},y=function(e,n){var t,a,o,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return r.next=i(0),r.throw=i(1),r.return=i(2),"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,i[0]&&(l=0)),l;)try{if(t=1,a&&(o=2&i[0]?a.return:i[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,i[1])).done)return o;switch(a=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,a=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=n.call(e,l)}catch(e){i=[6,e],a=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};const _=function(){var e,n=this,t=(0,l.Zp)(),c=(0,i.wA)(),_=(0,i.d4)(function(e){return e.GetStudioProfileState}).studio_profile_data,x=(0,i.d4)(function(e){return e.GetActivePackageState}),C=(0,i.d4)(function(e){return e.ActivePackageExportState}),F=(0,b.V2)((null===(e=null==_?void 0:_.data)||void 0===e?void 0:e.terminologies)||[]),S=(0,o.useState)(!1),w=S[0],k=S[1],j=(0,o.useState)([]),E=j[0],M=j[1],z=(0,o.useState)({pageIndex:0,pageSize:10}),N=z[0],R=z[1],I=(0,o.useState)(0),A=I[0],D=I[1],P=(0,o.useState)("")[0],Y=(0,o.useState)(!0),B=Y[0],K=Y[1],T=(0,o.useState)(!1),G=T[0],L=T[1],O=(0,o.useState)([]),U=O[0],W=O[1],q=(0,o.useState)(""),Z=q[0],V=q[1],Q=(0,o.useState)([]),H=Q[0],J=(Q[1],[{accessorKey:"name",header:"Name",accessorFn:function(e){return(null==e?void 0:e.first_name)?(null==e?void 0:e.first_name)+" "+(null==e?void 0:e.last_name)||"":"-"},enableColumnFilter:!1},{accessorKey:"email",header:"Email",accessorFn:function(e){return(null==e?void 0:e.email)?null==e?void 0:e.email:"-"},enableColumnFilter:!1,size:50},{accessorKey:"feature_detail",header:"Package Name",accessorFn:function(e){var n,t;return(null===(n=null==e?void 0:e.feature_detail)||void 0===n?void 0:n.name)?null===(t=null==e?void 0:e.feature_detail)||void 0===t?void 0:t.name:"-"},enableColumnFilter:!1,enableSorting:!1,size:100},{accessorKey:"membership_status_type",header:"Status",accessorFn:function(e){return(null==e?void 0:e.membership_status_type)?null==e?void 0:e.membership_status_type:"-"},enableColumnFilter:!1,size:100},{accessorKey:"expiration_date_type",header:"Expiry",accessorFn:function(e){var n;return(null==e?void 0:e.activate_on_first_booking)&&(null==e?void 0:e.is_package_deactivated)?"Pending Activation":(null==e?void 0:e.end_date_time)?(0,s.SH)(null==e?void 0:e.end_date_time,null===(n=null==_?void 0:_.data)||void 0===n?void 0:n.currency):"-"},enableColumnFilter:!1,size:100},{accessorKey:"total_classes",header:"Remaining / Total Classes",accessorFn:function(e){return(null==e?void 0:e.total_classes)||(null==e?void 0:e.remaining_classes)?(null==e?void 0:e.remaining_classes)+" / "+(null==e?void 0:e.total_classes):"-"},enableColumnFilter:!1,size:80},{id:"purchase_date",header:"Purchase Date",accessorFn:function(e){return(null==e?void 0:e.purchase_date)?d()(null==e?void 0:e.purchase_date).format("DD/MM/YYYY"):"-"},enableColumnFilter:!1,size:100},{accessorKey:"id",header:"Seq/No.",accessorFn:function(e,n){return N.pageSize*N.pageIndex+n+1},enableColumnFilter:!1,enableSorting:!1,size:50}]);(0,o.useEffect)(function(){var e,n;W(null===(e=null==x?void 0:x.data)||void 0===e?void 0:e.data),D(null===(n=null==x?void 0:x.data)||void 0===n?void 0:n.count)},[x]),(0,o.useEffect)(function(){var e,n,t,a,o;if(null==C?void 0:C.status)if(""!=(null===(n=null===(e=null==C?void 0:C.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.file_url)){var l=p.b.split("com.au"),r=(null==l?void 0:l[0])+"com.au"+(null===(a=null===(t=null==C?void 0:C.data)||void 0===t?void 0:t.data)||void 0===a?void 0:a.file_url),i=r.split(".")[(null===(o=r.split("."))||void 0===o?void 0:o.length)-1],s=Date.now()+(1e5*
1Math.random()).toFixed()+"."+i;fetch(r).then(function(e){return e.text()}).then(function(e){var n=new Blob([e],{type:"text/".concat(i)}),t=window.URL.createObjectURL(n),a=document.createElement("a");a.href=r,a.download=s,a.style.display="none",document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(t),document.body.removeChild(a)})}else(0,m.Qg)("Record not Found");c({type:f.eIG,data:null})},[null==C?void 0:C.status,c]),(0,o.useEffect)(function(){X()},[E,P,N.pageIndex,N.pageSize,Z,H]);var X=function(){return g(n,void 0,void 0,function(){var e,n,t;return y(this,function(a){switch(a.label){case 0:(null==U?void 0:U.status)?(K(!1),L(!0)):L(!0),a.label=1;case 1:return a.trys.push([1,3,,4]),e=(0,s.R7)(N.pageSize,N.pageIndex+1,Z.trim(),null===(n=H[0])||void 0===n?void 0:n.id,0===(null==H?void 0:H.length)?[]:(null===(t=H[0])||void 0===t?void 0:t.desc)?"DESC":"ASC",!0),[4,c((0,v.JE)(e))];case 2:return a.sent(),[3,4];case 3:return a.sent(),k(!0),[2];case 4:return k(!1),K(!1),L(!1),[2]}})})};return(0,a.jsxs)(o.Fragment,{children:[(null==C?void 0:C.loading)?(0,a.jsx)(h.A,{}):"",(0,a.jsxs)("div",{className:"main-right w-100 schedule-main-right",children:[(0,a.jsx)("div",{className:"tab-ul schedule-top",children:(0,a.jsxs)("div",{className:"row d-flex align-items-center",children:[(0,a.jsxs)("div",{className:"col-sm-10 d-flex align-items-center",children:[(0,a.jsx)("button",{className:"back-bg",onClick:function(){return t(-1)},children:(0,a.jsx)("span",{className:"icon-arrow"})}),(0,a.jsx)("span",{children:(0,a.jsx)("h5",{children:"Active Package List"})})]}),(0,a.jsx)("div",{className:"col-sm-2",children:(0,a.jsx)("button",{onClick:function(){c((0,v.D5)({}))},className:"btn-secondry mt-2 mt-sm-0",children:"Export"})})]})}),(0,a.jsx)("div",{className:"right-side-main",children:(0,a.jsx)("div",{className:"table-responsive same-table retail-table tabelSameICon",children:!1===B?(0,a.jsx)(r.zp,{columns:J,data:null!=U?U:[],initialState:{showGlobalFilter:!0},manualFiltering:!0,manualPagination:!0,muiToolbarAlertBannerProps:w?{color:"error",children:"Error loading data"}:void 0,onColumnFiltersChange:M,onPaginationChange:R,onGlobalFilterChange:V,rowCount:A,state:{columnFilters:E,globalFilter:P,isLoading:B,pagination:N,showAlertBanner:w,showProgressBars:G},enableDensityToggle:!1,enableGlobalFilter:!0,enableColumnFilters:!1,positionGlobalFilter:"left",muiSearchTextFieldProps:{placeholder:"Search by package, ".concat(F("student")," name"),variant:"outlined",size:"medium",sx:{width:"50%",minWidth:"400px","& .MuiOutlinedInput-root":{borderRadius:"8px",backgroundColor:"#f8f9fa",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",transition:"all 0.3s ease","& fieldset":{borderColor:"#dee2e6",borderWidth:"2px"},"&:hover":{backgroundColor:"#ffffff",boxShadow:"0 4px 8px rgba(0,0,0,0.15)","& fieldset":{borderColor:"#6c757d"}},"&.Mui-focused":{backgroundColor:"#ffffff",boxShadow:"0 4px 12px rgba(13, 110, 253, 0.25)","& fieldset":{borderColor:"#0d6efd",borderWidth:"2px"}}},"& .MuiInputBase-input":{padding:"12px 16px",fontSize:"14px",fontWeight:"500",color:"#495057","&::placeholder":{color:"#6c757d",opacity:1,fontWeight:"400"}},"& .MuiInputAdornment-root":{display:"none"},"& .MuiIconButton-root":{display:"none"}}}}):(0,a.jsx)(u.A,{})})})]})]})}},H5VK(e,n,t){t.d(n,{Dc:()=>m,Ft:()=>h,Mm:()=>l,gx:()=>s,u_:()=>p});var a=function(){return a=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},a.apply(this,arguments)},o="Gross",l="".concat(o," revenue by category — refunds are subtracted from Total Revenue only, ")+"never from an individual category.",r=[{key:"classes_sales",label:"Classes",bannerColor:"#A855F7",chartColor:"#842CD2"},{key:"services_sales",label:"Services",bannerColor:"#6366F1",chartColor:"#585EE5"},{key:"package_revenue",label:"Packages",bannerColor:"#3B82F6",chartColor:"#10B981"},{key:"membership_revenue",label:"Memberships",bannerColor:"#06B6D4",chartColor:"#F59E0B"},{key:"retail_revenue",label:"Retail",bannerColor:"#10B981",chartColor:"#EF4444"},{key:"wallet_revenue",label:"Wallet",bannerColor:"#F59E0B",chartColor:"#6B7280"},{key:"leads_revenue",label:"Leads",bannerColor:"#EC4899",chartColor:"#EC4899"}],i=function(e){var n=Number(e);return Number.isFinite(n)?n:0},s=function(e){return r.map(function(n){return a(a({},n),{value:i(null==e?void 0:e[n.key])})})},u=function(e){return e.reduce(function(e,n){return e+n.value},0)},c=function(e){var n=String(e);return/[",\n]/.test(n)?'"'.concat(n.replace(/"/g,'""'),'"'):n},d=function(e){return e.map(c).join(",")},v=function(e){return(Math.round(100*e)/100).toFixed(2)},p=function(e,n){void 0===n&&(n="");var t=s(e),a=n?"Revenue (".concat(o," in ").concat(n,")"):"Revenue (".concat(o,")"),r=[d(["Category",a])];return t.forEach(function(e){return r.push(d([e.label,v(e.value)]))}),r.push(""),r.push(d(["Summary",a])),r.push(d(["Category Total (".concat(o,")"),v(u(t))])),r.push(d(["Refunds",v(i(null==e?void 0:e.total_refunds))])),r.push(d(["Total Revenue",v(i(null==e?void 0:e.total_revenue))])),r.push(d(["Avg. Transaction",v(i(null==e?void 0:e.avg_transaction_value))])),r.push(d(["Basis",l])),"".concat(r.join("\n"),"\n")},m=function(e,n){void 0===e&&(e=""),void 0===n&&(n="");var t=e&&n?"-".concat(e,"-to-").concat(n):"";return"revenue-breakdown".concat(t,".csv")},f=[{key:"total_revenue_percent",label:"Revenue"},{key:"classes_sales_percent",label:"Classes"},{key:"sold_membership_percent",label:"Memberships"},{key:"sold_package_percent",label:"Packages"},{key:"clint_percent",label:"__STUDENTS__"},{key:"attendance_percent",label:"Attendance"}],h=function(e,n){void 0===n&&(n="Student");var t=[];return f.forEach(function(a){var o=a.key,l=a.label,r=i(null==e?void 0:e[o]);if(function(e){return 0!==e&&100!==Math.abs(e)}(r)){var s="__STUDENTS__"===l?"".concat(n,"s"):l;
1t.push("".concat(s," ").concat(function(e,n){var t=Math.abs(e);return t>=200?n?"".concat((t/100+1).toFixed(1),"x more"):"".concat((100/(100-Math.min(t,99))).toFixed(1),"x less"):"".concat(n?"up":"down"," ").concat(t.toFixed(0),"%")}(r,r>=0)))}}),0===t.length&&t.push("Not enough data in the previous period to compare"),t}}}]);

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.