Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/ts.corals.io/frontend/dist/_nuxt/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/ts.corals.io/frontend/dist/_nuxt/34faf83.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{294:function(t,e,r){"use strict";r.r(e);r(192),r(237),r(19),r(33),r(420),r(14),r(12);var o={name:"CoralsReportsDateForm",props:{form:{required:!0},rowClass:{required:!1,type:String}},data:function(){return{periodOptions:{currentWeek:"Current Week",currentMonth:"Current Month",previousMonth:"Previous Month",currentYear:"Current Year",previousYear:"Previous Year",custom:"Custom"}}},mounted:function(){var t=this.$route.query.period;t&&Object.keys(this.periodOptions).includes(t)&&(this.form.period=t),this.datePeriod()},methods:{checkDatePattern:function(t){return t&&t.match(/^\d{4}-\d{2}-\d{2}$/)?t:null},datePeriod:function(){var t=new Date;switch(t=new Date(t.getFullYear(),t.getMonth(),3),this.form.period){case"previousWeek":this.form.from_date=this.getFormattedDate("week",!0,!0),this.form.to_date=this.getFormattedDate("week",!1,!0);break;case"currentWeek":this.form.from_date=this.getFormattedDate("week"),this.form.to_date=this.getFormattedDate("week",!1);break;case"previousMonth":this.form.from_date=this.getFormattedDate("month",!0,!0),this.form.to_date=this.getFormattedDate("month",!1,!0);break;case"currentYear":this.form.from_date=this.getFormattedDate("year"),this.form.to_date=this.getFormattedDate("year",!1);break;case"previousYear":this.form.from_date=this.getFormattedDate("year",!0,!0),this.form.to_date=this.getFormattedDate("year",!1,!0);break;case"custom":this.form.from_date=this.checkDatePattern(this.$route.query.from_date),this.form.to_date=this.checkDatePattern(this.$route.query.to_date);break;default:this.form.from_date=this.getFormattedDate("month"),this.form.to_date=this.getFormattedDate("month",!1)}if("custom"!==this.form.period){var e={};delete(e=Object.assign(JSON.parse(JSON.stringify(this.$route.query)),{period:this.form.period})).from_date,delete e.to_date,this.$router.push({query:e}),this.filter()}else this.changePeriodToCustom()},changePeriodToCustom:function(){this.form.period="custom";var t;t=Object.assign(JSON.parse(JSON.stringify(this.$route.query)),{period:this.form.period,from_date:this.form.from_date,to_date:this.form.to_date}),this.$router.push({query:t}),t.from_date&&t.to_date&&this.filter()},getFormattedDate:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.$moment();return r&&(o=o.subtract(1,t)),(o=e?o.startOf(t):o.endOf(t)).format("YYYY-MM-DD")},filter:function(){this.$emit("filter")}}},d=o,n=r(88),component=Object(n.a)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-3"},[r("corals-select",{attrs:{form:t.form,field:"period",options:t.periodOptions},on:{input:t.datePeriod}})],1),t._v(" "),r("div",{staticClass:"col-md-3"},[r("corals-datepicker",{attrs:{form:t.form,field:"from_date",max:this.form.to_date,label:"From Date"},on:{input:t.changePeriodToCustom}})],1),t._v(" "),r("div",{staticClass:"col-md-3"},[r("corals-datepicker",{attrs:{form:t.form,field:"to_date",min:this.form.from_date,label:"End Date"},on:{input:t.changePeriodToCustom}})],1),t._v(" "),t._t("custom-actions",(function(){return[r("div",{staticClass:"col-md-2",staticStyle:{"margin-top":"35px"}},[r("a",{staticClass:"btn btn-success btn-sm",on:{click:function(e){return e.preventDefault(),t.filter.apply(null,arguments)}}},[r("fa",{attrs:{icon:"search"}})],1)])]}))],2)}),[],!1,null,null,null);e.default=component.exports}}]);

Spamworldpro Mini