1(()=>{"use strict";var e={5792:(e,t,a)=>{a.d(t,{c:()=>l});var r=a(1280),s=a.n(r),n=a(3396);class d extends s().Component{constructor(e){super(e)}render(){let e="";return 1==this.props.text&&(e=(0,r.createElement)("span",{className:"supporting-text"},(0,n.__)("Your report is being generated.","learndash-reports-pro"))),(0,r.createElement)("div",{className:"wisdm-learndash-reports-chart-block","data-wisdm-loader":"true"},(0,r.createElement)("div",{className:"wisdm-learndash-reports-revenue-from-courses graph-card-container"},(0,r.createElement)("div",{className:"wisdm-graph-loading"},(0,r.createElement)("img",{src:wisdm_ld_reports_common_script_data.plugin_asset_url+"/images/loader.svg",alt:""}),e)))}}const l=d},1280:e=>{e.exports=window.React},3396:e=>{e.exports=window.wp.i18n}},t={};function a(r){var s=t[r];if(void 0!==s)return s.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e=a(1280),t=a.n(e),r=a(5792);const s=window.moment;var n=a.n(s),d=a(3396);const l=window.wp.element;class o extends e.Component{constructor(e){super(e),this.state={isLoaded:!1,error:null,start_date:n()(new Date(wisdm_ld_reports_common_script_data.start_date)).unix(),end_date:n()(new Date(wisdm_ld_reports_common_script_data.end_date)).unix()},this.durationUpdated=this.durationUpdated.bind(this),this.updateBlock=this.updateBlock.bind(this)}durationUpdated(e){this.setState({start_date:e.detail.startDate,end_date:e.detail.endDate},(()=>{this.updateBlock()}))}componentDidMount(){document.addEventListener("duration_updated",this.durationUpdated),this.updateBlock()}updateBlock(){let e="/rp/v1/total-learners?start_date="+this.state.start_date+"&end_date="+this.state.end_date;wisdm_ld_reports_common_script_data.wpml_lang&&(e+="&wpml_lang="+wisdm_ld_reports_common_script_data.wpml_lang),wp.apiFetch({path:e}).then((e=>{const t=e.percentChange;let a="udup",r="change-value",s="",l="",o="";0<t?(a="udup",r="change-value-positive",l=(0,d.__)("Up","learndash-reports-pro"),o=wisdm_ld_reports_common_script_data.plugin_asset_url+"/images/up.png"):0>t?(a="uddown",r="change-value-negative",l=(0,d.__)("Down","learndash-reports-pro"),o=wisdm_ld_reports_common_script_data.plugin_asset_url+"/images/down.png"):0==t&&(s="wrld-hidden",l=(0,d.__)("Up","learndash-reports-pro"),o=wisdm_ld_reports_common_script_data.plugin_asset_url+"/images/up.png"),this.setState({isLoaded:!0,graphData:{totalLearners:e.totalLearners,percentChange:t+"%",chnageDirectionClass:a,percentValueClass:r,hideChange:s,udtxt:l,udsrc:o},startDate:n().unix(e.requestData.start_date).format("MMM, DD YYYY"),endDate:n().unix(e.requestData.end_date).format("MMM, DD YYYY")})})).catch((e=>{this.setState({error:e,graph_summary:[],isLoaded:!0,series:[]})}))}render(){let t=(0,e.createElement)("div",null);return t=this.state.isLoaded?this.state.error?(0,e.createElement)("div",{className:"wisdm-learndash-reports-chart-block error"},(0,e.createElement)("div",null,this.state.error.message)):(0,e.createElement)("div",{className:"wisdm-learndash-reports-chart-block"},(0,e.createElement)("div",{className:"total-learners-container top-card-container"},(0,e.createElement)("div",{className:"wrld-date-filter"},(0,e.createElement)("span",{className:"dashicons dashicons-calendar-alt"}),(0,e.createElement)("div",{className:"wdm-tooltip"},(0,d.__)("Date filter applied:","learndash-reports-pro"),(0,e.createElement)("br",null),this.state.startDate," -"," ",this.state.endDate)),(0,e.createElement)("div",{className:"total-learners-icon"},(0,e.createElement)("img",{src:wisdm_ld_reports_common_script_data.plugin_asset_url+"/images/icon_learners_counter.png"})),(0,e.createElement)("div",{className:"total-learners-details"},(0,e.createElement)("div",{className:"total-learners-text top-label-text"},(0,e.createElement)("span",null,(0,d.__)("Total Learners","learndash-reports-pro"))),(0,e.createElement)("div",{className:"total-learners-figure"},(0,e.createElement)("span",null,this.state.graphData.totalLearners)),(0,e.createElement)("div",{className:`total-learners-percent-change ${this.state.graphData.hideChange}`},(0,e.createElement)("span",{className:this.state.graphData.chnageDirectionClass},(0,e.createElement)("img",{src:this.state.graphData.udsrc})),(0,e.createElement)("span",{className:this.state.graphData.percentValueClass},this.state.graphData.percentChange),(0,e.createElement)("span",{className:"ud-txt"},this.state.graphData.udtxt))))):(0,e.createElement)(r.c,null),t}}document.addEventListener("DOMContentLoaded",(function(e){const a=document.getElementsByClassName("wisdm-learndash-reports-total-learners front");a.length>0&&(0,l.createRoot)(a[0]).render(t().createElement(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.