Initial commit
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{W as s,X as e,Z as r,aa as t}from"../../../vendor.js?ver=3.1.8";import{_ as n}from"../../../fc-bits-ui.js?ver=3.1.8";import"../../../vendor-element-plus.js?ver=3.1.8";const i={class:"fcrm_no_permission text-align-center"};const o=n({},[["render",function(n,o){return s(),e("div",i,[r("h3",null,t(n.$t("permission.title")),1),r("p",null,t(n.$t("permission.desc")),1)])}]]);export{o as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{T as e}from"../../../../TopNav.js?ver=3.1.8";import{P as a}from"../../../../PromoCard.js?ver=3.1.8";import{P as r}from"../../../../PageHeader.js?ver=3.1.8";import{aQ as o,W as s,X as t,Z as i,ab as c,a5 as n,a9 as m,aa as l}from"../../../../vendor.js?ver=3.1.8";import{_ as d}from"../../../../fc-bits-ui.js?ver=3.1.8";import"../../../../vendor-element-plus.js?ver=3.1.8";const p={class:"fcrm_email_sequences_page"},u={class:"fcrm_page_header_top_nav_wrapper"},_={class:"fcrm_page_header_top_nav"},v={class:"fcrm-layout-width"},f={class:"fcrm_body_boxed"};const h={key:0,class:"fc_sequence_root"},g={key:1};const b=d({name:"sequence-view",components:{EmailSequencePromo:d({name:"EmailSequencePromo",components:{PromoCard:a,TopNav:e,PageHeader:r}},[["render",function(e,a,r,d,h,g){const b=o("TopNav"),w=o("page-header"),y=o("PromoCard");return s(),t("div",p,[i("div",u,[i("div",_,[c(b)]),a[0]||(a[0]=i("div",{class:"fcrm_page_header_top_actions"},null,-1))]),i("div",v,[c(w,null,{title:n(()=>[m(l(e.$t("Email Sequences")),1)]),_:1}),i("div",f,[c(y,{heading:e.$t("Email Sequences"),description:e.$t("EmailSequencePromo.title")},{"before-cta":n(()=>[...a[1]||(a[1]=[i("iframe",{style:{display:"block",margin:"20px auto 0 auto"},width:"764",height:"430",src:"https://www.youtube.com/embed/6nYOK2UzoVk",title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,-1)])]),_:1},8,["heading","description"])])])])}]])},data:()=>({}),mounted(){this.changeTitle(this.$t("Email Sequences"))}},[["render",function(e,a,r,i,n,m){const l=o("router-view"),d=o("email-sequence-promo");return e.has_campaign_pro?(s(),t("div",h,[c(l)])):(s(),t("div",g,[c(d)]))}]]);export{b as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{aQ as e,W as r,Y as o}from"../../../vendor.js?ver=3.1.8";import{_ as s}from"../../../fc-bits-ui.js?ver=3.1.8";import"../../../vendor-element-plus.js?ver=3.1.8";const t=s({name:"email-view"},[["render",function(s,t,n,a,i,m){const v=e("router-view");return r(),o(v)}]]);export{t as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{k as i,ax as s}from"../../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as e,W as n,X as t,ab as a,a5 as r,Z as c,aa as g,a9 as m}from"../../../../../vendor.js?ver=3.1.8";import{R as o}from"../../../../../RecipientTaggerForm.js?ver=3.1.8";import{C as l,B as _}from"../../../../../_conditions.js?ver=3.1.8";import{_ as d}from"../../../../../fc-bits-ui.js?ver=3.1.8";import"../../../../../fc-bits.js?ver=3.1.8";const p={class:"fcrm_single_recurring_camp_settings"},f={class:"fcrm_single_recurring_camp_settings--form-item"},u={class:"fcrm_single_recurring_camp_settings--form-item-header"},v={class:"fcrm_single_recurring_camp_settings--form-schedule"},h={class:"fcrm_single_recurring_camp_settings--form-item"},b={class:"fcrm_single_recurring_camp_settings--form-item-header"},S={class:"fcrm_single_recurring_camp_settings--form-conditions"},$={class:"fcrm_single_recurring_camp_settings--form-item"},j={class:"fcrm_single_recurring_camp_settings--form-item-header"},C={class:"fcrm_single_recurring_camp_settings--form-recipients"},y={class:"fcrm_single_recurring_camp_settings--form-footer"};const R=d({name:"RecurringEmailSettings",props:["campaign"],components:{RecipientTaggerForm:o,BasicSettings:_,ConditionsSettings:l},data:()=>({saving:!1}),methods:{updateCampaign(){this.saving=!0;const i={campaign:JSON.stringify({settings:this.campaign.settings,title:this.campaign.title})};this.$post("recurring-campaigns/"+this.campaign.id+"/update-settings",i).then(i=>{this.$notify.success(i.message)}).catch(i=>{this.handleError(i)}).finally(()=>{this.saving=!1})}},mounted(){this.changeTitle(this.$t("Settings")+" - "+this.campaign.title)}},[["render",function(o,l,_,d,R,T){const V=e("basic-settings"),k=e("conditions-settings"),x=e("recipient-tagger-form"),B=i,E=s;return n(),t("div",p,[a(E,{"label-position":"top",class:"fcrm_single_recurring_camp_settings--form"},{default:r(()=>[c("div",f,[c("div",u,[c("h3",null,g(o.$t("Scheduling Settings")),1)]),c("div",v,[a(V,{campaign:_.campaign},null,8,["campaign"])])]),c("div",h,[c("div",b,[c("h3",null,g(o.$t("Sending Conditions")),1)]),c("div",S,[a(k,{sending_conditions:_.campaign.settings.sending_conditions},null,8,["sending_conditions"])])]),c("div",$,[c("div",j,[c("h3",null,g(o.$t("Recipients")),1)]),c("div",C,[a(x,{modelValue:_.campaign.settings.subscribers_settings,"onUpdate:modelValue":l[0]||(l[0]=i=>_.campaign.settings.subscribers_settings=i)},null,8,["modelValue"])])]),c("div",y,[a(B,{loading:R.saving,disabled:R.saving,onClick:l[1]||(l[1]=i=>T.updateCampaign()),type:"primary"},{default:r(()=>[m(g(o.$t("Save Settings")),1)],void 0,!0),_:1},8,["loading","disabled"])])],void 0),_:1})])}]]);export{R as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{T as r}from"../../../../TopNav.js?ver=3.1.8";import{P as a}from"../../../../PromoCard.js?ver=3.1.8";import{P as e}from"../../../../PageHeader.js?ver=3.1.8";import{aQ as o,W as s,X as i,Z as n,ab as m,a5 as c,a9 as t,aa as p}from"../../../../vendor.js?ver=3.1.8";import{_ as d}from"../../../../fc-bits-ui.js?ver=3.1.8";import"../../../../vendor-element-plus.js?ver=3.1.8";const _={class:"fcrm_email_recurring_campaigns_page"},l={class:"fcrm_page_header_top_nav_wrapper"},g={class:"fcrm_page_header_top_nav"},v={class:"fcrm-layout-width"},u={class:"fcrm_body_boxed"};const f={key:0,class:"fc_recurring_root"},h={key:1};const P=d({name:"RecurringCampaignsView",components:{EmailRecurringPromo:d({name:"EmailRecurringPromo",components:{PromoCard:a,TopNav:r,PageHeader:e}},[["render",function(r,a,e,d,f,h){const P=o("TopNav"),y=o("page-header"),j=o("PromoCard");return s(),i("div",_,[n("div",l,[n("div",g,[m(P)]),a[0]||(a[0]=n("div",{class:"fcrm_page_header_top_actions"},null,-1))]),n("div",v,[m(y,null,{title:c(()=>[t(p(r.$t("Recurring Email Campaigns")),1)]),_:1}),n("div",u,[m(j,{heading:r.$t("Recurring Campaigns"),description:r.$t("Send_Email_Daily_Weekly_Monthly")},null,8,["heading","description"])])])])}]])}},[["render",function(r,a,e,n,c,t){const p=o("router-view"),d=o("email-recurring-promo");return r.has_campaign_pro?(s(),i("div",f,[m(p)])):(s(),i("div",h,[m(d)]))}]]);export{P as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{aZ as a,a_ as i,aP as e,aB as t,ap as s}from"../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as n,W as c,X as r,Z as m,ab as g,a5 as d,a9 as p,aa as l,a8 as o,a0 as _,av as u}from"../../../../vendor.js?ver=3.1.8";import{S as h}from"../../../../TestEmail.js?ver=3.1.8";import{_ as f}from"../../../../fc-bits-ui.js?ver=3.1.8";const v={class:"fcrm_single_recurring_camp_page"},y={class:"fcrm-layout-width"},b={key:0,class:"fcrm_page_header"},$={class:"fcrm_page_header_content"},x={class:"fcrm_page_header_breadcrumb"},S={class:"fcrm_page_header_actions"},k={key:1,class:"fcrm_single_recurring_camp_body fcrm_body_boxed"},j={class:"fcrm_single_recurring_camp_body_header"},w={class:"fcrm_single_recurring_camp_body_header--left"},E={key:0,class:"fcrm_action_menu"},C={class:"fcrm_single_recurring_camp_body_header--right"},T={class:"fcrm_single_recurring_camp_body--email-body fcrm_sticky_block_composer_page"},V={key:2,class:"fluentcrm_body fluentcrm_body_boxed"};const A=f({name:"ViewSingleCampaign",components:{SendTestEmail:h},props:["campaign_id"],data:()=>({ArrowRightBold:u(s),campaign:{},loading:!0}),methods:{fetchCampaign(){this.loading=!0,this.$get("recurring-campaigns/"+this.campaign_id).then(a=>{this.campaign=a.campaign}).catch(a=>{this.handleError(a)}).finally(()=>{this.loading=!1})},changeStatus(){const a=this.campaign.status,i=()=>this.$post("recurring-campaigns/"+this.campaign.id+"/change-status",{status:a}).then(a=>{this.$notify.success(a.message)});"active"===a?this.$post("recurring-campaigns/update-campaign-data",{campaign:JSON.stringify(this.campaign),campaign_id:this.campaign.id,validate_subject:"yes"}).then(i).catch(a=>{this.handleError(a),this.campaign.status="draft"}):i().catch(a=>{this.handleError(a),this.campaign.status="active"})},campaignStatusText(a){return{active:this.$t("Active"),draft:this.$t("Draft")}[a]||a}},mounted(){this.fetchCampaign()}},[["render",function(s,u,h,f,A,B){const R=a,Z=i,D=n("send-test-email"),H=n("router-link"),J=e,N=n("router-view"),O=t;return c(),r("div",v,[m("div",y,[A.campaign?(c(),r("div",b,[m("div",$,[m("div",x,[g(Z,{"separator-icon":A.ArrowRightBold},{default:d(()=>[g(R,{to:{name:"recurring_campaigns"}},{default:d(()=>[p(l(s.$t("Recurring Campaigns")),1)],void 0,!0),_:1}),g(R,null,{default:d(()=>[p(l(A.campaign.title),1)],void 0,!0),_:1})],void 0),_:1},8,["separator-icon"])])]),m("div",S,[g(D,{campaign:{email_subject:A.campaign.email_subject,email_pre_header:A.campaign.post_excerpt,email_body:A.campaign.post_content||A.campaign.email_body,design_template:A.campaign.design_template,settings:A.campaign.settings}},null,8,["campaign"])])])):o("",!0),A.campaign&&A.campaign.id?(c(),r("div",k,[m("div",j,[m("div",w,[A.campaign.id?(c(),r("ul",E,[m("li",null,[g(H,{to:{name:"view_recurring_campaign",params:{campaign_id:A.campaign.id}}},{default:d(()=>[p(l(s.$t("Email Configuration")),1)],void 0),_:1},8,["to"])]),m("li",null,[g(H,{to:{name:"recurring_campaign_settings",params:{campaign_id:A.campaign.id}}},{default:d(()=>[p(l(s.$t("Settings")),1)],void 0),_:1},8,["to"])]),m("li",null,[g(H,{to:{name:"past_recurring_emails",params:{campaign_id:A.campaign.id}}},{default:d(()=>[p(l(s.$t("Email History")),1)],void 0),_:1},8,["to"])])])):o("",!0)]),m("div",C,[g(J,{onChange:u[0]||(u[0]=a=>B.changeStatus()),modelValue:A.campaign.status,"onUpdate:modelValue":u[1]||(u[1]=a=>A.campaign.status=a),"active-value":"active","inactive-value":"draft","active-text":B.campaignStatusText(A.campaign.status)},null,8,["modelValue","active-text"])])]),m("div",T,[A.campaign.id?(c(),r("div",{key:0,class:_([s.$route.name,"fcrm_single_recurring_camp_body--email-body-inner"])},[g(N,{campaign:A.campaign},null,8,["campaign"])],2)):o("",!0)])])):A.loading?(c(),r("div",V,[g(O,{animated:!0,style:{padding:"20px"},rows:7})])):o("",!0)])])}]]);export{A as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{aQ as s,W as t,X as a,ab as e}from"../../../vendor.js?ver=3.1.8";import{_ as i}from"../../../fc-bits-ui.js?ver=3.1.8";import"../../../vendor-element-plus.js?ver=3.1.8";const o={class:"fcrm_funnel_root fc_funnel_root"};const n=i({name:"FunnelRoute",data:()=>({app_ready:!1,options:{}}),methods:{getOptions(){this.app_ready=!1;const s={fields:"campaigns,email_sequences"};this.has_company_module&&(s.fields=`${s.fields},companies`),this.$get("reports/options",s).then(s=>{this.options=s.options,this.options.tags=this.appVars.available_tags,this.options.lists=this.appVars.available_lists,this.options.editable_statuses=this.appVars.available_contact_editable_statuses}).catch(s=>{this.handleError(s)}).finally(()=>{this.app_ready=!0})}},mounted(){this.getOptions(),this.changeTitle(this.$t("Automations"))}},[["render",function(i,n,p,r,l,h){const c=s("router-view");return t(),a("div",o,[e(c,{options:l.options},null,8,["options"])])}]]);export{n as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{P as t,aB as e,bj as s,bi as i,aJ as n,aQ as a,aO as o}from"../../../../vendor-element-plus.js?ver=3.1.8";import{c6 as l,aQ as r,W as c,X as d,ab as u,a5 as f,Z as _,aa as p,J as h,az as m,Y as b,a0 as y,a9 as g,a8 as v}from"../../../../vendor.js?ver=3.1.8";import{_ as $}from"../../../../fc-bits-ui.js?ver=3.1.8";const k={key:0,class:"fc_loading"},w={key:1,style:{padding:"10px 15px"},class:"fc_individual_progress"},z={style:{"margin-bottom":"15px"}},I={class:"fluentcrm_clickable"};const L=$({name:"LazyIndividualProgress",props:["subscriber_id","funnel"],data:()=>({funnel_subscriber:{},sequences:[],loading:!0,isLoaded:!1,MoreFilledIcon:t}),computed:{keyedMetrics(){return this.isLoaded?l(this.funnel_subscriber.metrics,"sequence_id"):{}},timelines(){if(!this.isLoaded)return[];let t=this.$t("Entrance (%s)",this.funnel.title);"pending"===this.funnel_subscriber.status?t+=this.$t("_In_Wfdoc"):"waiting"===this.funnel_subscriber.status&&(t+=this.$t("_In_Wfna"));const e=[{content:t,timestamp:this.nsHumanDiffTime(this.funnel_subscriber.created_at),size:"large",type:"primary",icon:this.MoreFilledIcon}];let s=!1;return this.each(this.sequences,(t,i)=>{const n=this.keyedMetrics[t.id]||{};let a=t.title;"pending"===a?a+=this.$t("_In_Wfdc"):"waiting"===a&&(a+=this.$t("_In_Wfna")),"conditional"==t.type&&(s=t);let o="";if(t.condition_type){o="fc_path_"+t.condition_type,s&&(o="fc_"+s.action_name+" "+o);let e=this.$t("Condition:")+" "+t.condition_type;if("funnel_ab_testing"==s.action_name){const s="yes"==t.condition_type?this.$t("B"):this.$t("A");e=this.$t("Path: ")+s,o+="_"+s}a+=" ( "+e+" )"}n.status||(o+=" fc_timeline_empty"),e.push({content:a,status:n.status,notes:n.notes,timestamp:this.nsHumanDiffTime(n.created_at),color:this.getTimelineColor(n),wrapper_class:o})}),e}},methods:{getTimelineColor:t=>t.status&&"completed"===t.status?"#0bbd87":"",fetchData(){this.loading=!0,this.$get(`funnels/${this.funnel.id}/subscribers/${this.subscriber_id}`).then(t=>{this.funnel_subscriber=t.funnel_subscriber,this.sequences=t.sequences}).catch(t=>{this.handleError(t)}).finally(()=>{this.loading=!1,this.isLoaded=!0})},maybeFetchData(){this.isLoaded||this.fetchData()}}},[["render",function(t,l,$,L,D,q){const W=e,j=a,x=n,C=i,F=s,M=r("router-link"),T=o;return c(),d("div",null,[u(T,{placement:"right",onShow:l[0]||(l[0]=t=>q.maybeFetchData()),width:"400","popper-class":"fc_individual_progress_popover",trigger:"click"},{reference:f(()=>[_("span",I,p($.funnel.title),1)]),default:f(()=>[_("div",null,[D.loading?(c(),d("div",k,[u(W,{loading:!0,rows:3})])):D.isLoaded?(c(),d("div",w,[_("div",z,p(t.$t("Current Status:"))+" "+p(D.funnel_subscriber.status),1),u(F,null,{default:f(()=>[(c(!0),d(h,null,m(q.timelines,(t,e)=>(c(),b(C,{key:e,class:y(t.wrapper_class),icon:t.icon,type:t.type,color:t.color,size:t.size,timestamp:t.timestamp},{default:f(()=>[g(p(t.content)+" ",1),_("template",null,[t.notes?(c(),b(x,{key:0,class:"item",effect:"dark",content:t.notes,placement:"top-start"},{default:f(()=>[u(j,{size:"small",type:"info"},{default:f(()=>[g(p(t.status),1)],void 0,!0),_:2},1024)],void 0,!0),_:2},1032,["content"])):t.status?(c(),b(j,{key:1,size:"small",type:"info"},{default:f(()=>[g(p(t.status),1)],void 0,!0),_:2},1024)):v("",!0)])],void 0,!0),_:2},1032,["class","icon","type","color","size","timestamp"]))),128))],void 0,!0),_:1}),u(M,{to:{name:"edit_funnel",params:{funnel_id:this.funnel.id}}},{default:f(()=>[g(p(t.$t("View Automation Steps")),1)],void 0,!0),_:1},8,["to"])])):v("",!0)])],void 0),_:1})])}]]);export{L as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{ay as a,aA as t,k as e,aD as s,aR as i}from"../../../../vendor-element-plus.js?ver=3.1.8";import{a6 as n,W as d,X as r,Z as l,ab as o,a5 as c,aa as f,a9 as _}from"../../../../vendor.js?ver=3.1.8";import{_ as u}from"../../../../fc-bits-ui.js?ver=3.1.8";const p={class:"fluentcrm_databox"},m={class:"fluentcrm_contact_header"},v={class:"fc_uploader_drawer"};const g=u({name:"ProfileFiles",props:["subscriber_id"],data:()=>({adding_file:!1,files:[],loading:!1,pagination:{total:0,per_page:10,current_page:1},new_note:{title:"",description:"",type:"note"}}),methods:{fetchAttachments(){}},mounted(){this.fetchAttachments()}},[["render",function(u,g,h,b,A,y){const j=t,w=e,x=s,k=i,C=a;return n((d(),r("div",p,[l("div",m,[o(x,{gutter:30},{default:c(()=>[o(j,{span:12},{default:c(()=>[l("h3",null,f(u.$t("Pro_Contact_F_A")),1)],void 0,!0),_:1}),o(j,{class:"text-align-right",span:12},{default:c(()=>[o(w,{onClick:g[0]||(g[0]=a=>A.adding_file=!A.adding_file),type:"primary",size:"small"},{default:c(()=>[_(f(u.$t("Add New")),1)],void 0,!0),_:1})],void 0,!0),_:1})],void 0),_:1})]),l("div",v,[o(k)]),g[1]||(g[1]=l("div",null,null,-1))])),[[C,A.loading]])}]]);export{g as default};
|
||||
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{aA as t,aB as r,aH as e,aI as a,ay as s,k as o,aD as i}from"../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as n,W as l,X as d,ab as c,a5 as h,Z as _,Y as p,a6 as u,J as m,az as y,a9 as b,aa as f,a8 as g}from"../../../../vendor.js?ver=3.1.8";import{P as v}from"../../../../PaginationBar.js?ver=3.1.8";import{D as k}from"../../../../DataTable.js?ver=3.1.8";import{_ as S}from"../../../../fc-bits-ui.js?ver=3.1.8";const C={class:"purchase_history_block fcrm_mb_24"},P={class:"fcrm_table_header_inner_left_title"},w={class:"fcrm_purchase_history_table_header_actions"},H={class:"fcrm_purchase_history_table_body"},D=["innerHTML"],T=["innerHTML"],q=["innerHTML"];const $={key:0,class:"fluentcrm_purchase_history_wrapper"},B={key:1},L={class:"text-align-center"};const M=S({name:"ProfilePurchaseHistory",props:["subscriber_id"],components:{PurchaseHistoryBlock:S({name:"PurchaseHistoryBlock",props:["provider","subscriber_id"],components:{PaginationBar:v,DataTable:k},data:()=>({loading:!1,orders:[],pagination:{per_page:10,current_page:1,total:0},sidebar_html:"",after_html:"",has_recount:!1,columnsConfig:{},query_data:{sort_by:"",sort_type:""},sortState:{currentProp:"",direction:""}}),computed:{table_columns(){let t=[];return this.orders&&this.orders.length&&(t=this.orders[0]),t}},methods:{handleSortable(t){t.prop?(this.query_data.sort_by=t.prop,this.sortState.currentProp!==t.prop?(this.sortState.currentProp=t.prop,this.sortState.direction="ASC"):this.sortState.direction="ASC"===this.sortState.direction?"DESC":"ASC",this.query_data.sort_type=this.sortState.direction,this.fetch()):(this.query_data.sort_by="",this.query_data.sort_type="",this.sortState.currentProp="",this.sortState.direction="")},fetch(t=!1){this.loading=!0,this.$get(`subscribers/${this.subscriber_id}/purchase-history`,{provider:this.provider.provider_key,page:this.pagination.current_page,per_page:this.pagination.per_page,sort_by:this.query_data.sort_by,sort_type:this.query_data.sort_type,will_recount:t}).then(t=>{this.orders=t.orders.data,this.pagination.total=parseInt(t.orders.total),t.orders.sidebar_html&&(this.sidebar_html=t.orders.sidebar_html),t.orders.after_html&&(this.after_html=t.orders.after_html),this.has_recount=t.orders.has_recount,t.orders.columns_config&&(this.columnsConfig=t.orders.columns_config)}).catch(t=>{this.handleError(t)}).finally(()=>{this.loading=!1})}},mounted(){this.fetch()}},[["render",function(v,k,S,$,B,L){const M=o,j=r,A=a,x=e,E=n("pagination-bar"),F=n("data-table"),z=t,I=i,J=s;return l(),d("div",C,[c(I,{gutter:24},{default:h(()=>[c(z,{md:B.sidebar_html?16:24,sm:24},{default:h(()=>[c(F,{class:"fcrm_purchase_history_table_wrapper",wrapper_border:!0,"has-selection":!1},{"header-left":h(()=>[_("h3",P,f(S.provider.title),1)]),"header-actions":h(()=>[_("div",w,[B.has_recount?(l(),p(M,{key:0,class:"fcrm_purchase_history_resync_btn",onClick:k[0]||(k[0]=t=>L.fetch("yes")),type:"default",size:"small"},{default:h(()=>[b(f(v.$t("Re-Sync")),1)],void 0,!0),_:1})):g("",!0)])]),table:h(()=>[_("div",H,[B.loading?(l(),p(j,{key:0,animated:"",rows:10})):u((l(),p(x,{key:1,"empty-text":v.$t("No Data Found"),border:"",stripe:"",data:B.orders,onSortChange:L.handleSortable},{empty:h(()=>[_("p",null,[b(f(v.$t("Purchase History from"))+" ",1),_("b",null,f(S.provider.name),1),b(" "+f(v.$t("PurchaseHistoryBlock.empty_desc")),1)])]),default:h(()=>[(l(!0),d(m,null,y(L.table_columns,(t,r)=>{var e,a;return l(),p(A,{key:r,width:B.columnsConfig[r]?B.columnsConfig[r].width:"",label:B.columnsConfig[r]&&B.columnsConfig[r].label?B.columnsConfig[r].label:"",prop:(null==(e=B.columnsConfig[r])?void 0:e.sortable)?B.columnsConfig[r].key:"",sortable:!!(null==(a=B.columnsConfig[r])?void 0:a.sortable)},{default:h(t=>[_("div",{innerHTML:t.row[r]},null,8,D)]),_:2},1032,["width","label","prop","sortable"])}),128))],void 0,!0),_:1},8,["empty-text","data","onSortChange"])),[[J,B.loading]]),B.after_html?(l(),d("div",{key:2,class:"fc_history_before",innerHTML:B.after_html},null,8,T)):g("",!0)])]),pagination:h(()=>[c(E,{pagination:B.pagination,onFetch:L.fetch},null,8,["pagination","onFetch"])]),_:1})],void 0,!0),_:1},8,["md"]),B.sidebar_html?(l(),p(z,{key:0,md:8,sm:24},{default:h(()=>[_("div",{class:"fc_history_sidebar",innerHTML:B.sidebar_html},null,8,q)],void 0,!0),_:1})):g("",!0)],void 0),_:1})])}]])},data:()=>({providersData:{},app_ready:!1}),computed:{is_empty_item(){return this.isEmptyValue(this.providersData)}},mounted(){this.each(window.fcAdmin.purchase_providers,(t,r)=>{const e={title:t.title,name:t.name,provider_key:r};this.providersData[r]=e}),this.app_ready=!0}},[["render",function(t,r,e,a,s,o){const i=n("purchase-history-block");return s.app_ready?(l(),d("div",$,[o.is_empty_item?(l(),d("div",B,[_("h3",L,f(t.$t("Pro_Purchase_hfEwbsh")),1)])):(l(!0),d(m,{key:0},y(s.providersData,(t,r)=>(l(),p(i,{key:r,provider:t,subscriber_id:e.subscriber_id},null,8,["provider","subscriber_id"]))),128))])):g("",!0)}]]);export{M as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{aH as t,aI as e,ay as a}from"../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as i,W as s,X as r,ab as o,a5 as n,a6 as c,Y as p,J as l,az as d,Z as u,a9 as _,aa as m,a8 as h}from"../../../../vendor.js?ver=3.1.8";import{P as b}from"../../../../PaginationBar.js?ver=3.1.8";import{D as f}from"../../../../DataTable.js?ver=3.1.8";import{_ as g}from"../../../../fc-bits-ui.js?ver=3.1.8";const k={class:"purchase_history_block"},v={class:"fcrm_table_header_inner_left_title"},y=["innerHTML"];const T={key:0};const w=g({name:"ProfileSuportTickets",props:["subscriber_id"],components:{SupportTicketsBlock:g({name:"SupportTicketsBlock",props:["provider","subscriber_id"],components:{DataTable:f,PaginationBar:b},data:()=>({loading:!1,tickets:[],pagination:{per_page:10,current_page:1,total:0},columnsConfig:{}}),computed:{table_columns(){let t=[];return this.tickets&&this.tickets.length&&(t=this.tickets[0]),t}},methods:{fetch(){this.loading=!0,this.$get(`subscribers/${this.subscriber_id}/support-tickets`,{provider:this.provider.provider_key,page:this.pagination.current_page,per_page:this.pagination.per_page}).then(t=>{this.tickets=t.tickets.data,this.pagination.total=parseInt(t.tickets.total),t.tickets.columns_config&&(this.columnsConfig=t.tickets.columns_config)}).catch(t=>{this.handleError(t)}).finally(()=>{this.loading=!1})}},mounted(){this.fetch()}},[["render",function(h,b,f,g,T,w){const C=e,D=t,j=i("pagination-bar"),$=i("data-table"),B=a;return s(),r("div",k,[o($,{class:"fcrm_support_ticket_block",wrapper_border:!0,"has-selection":!1},{"header-left":n(()=>[u("h3",v,m(f.provider.title),1)]),table:n(()=>[c((s(),p(D,{"empty-text":h.$t("No Data Found"),border:"",stripe:"",data:T.tickets},{empty:n(()=>[u("p",null,[_(m(h.$t("Support Tickets from"))+" ",1),u("b",null,m(f.provider.name),1),_(" "+m(h.$t("no_tickets_found_for_this_subscriber")),1)])]),default:n(()=>[(s(!0),r(l,null,d(w.table_columns,(t,e)=>(s(),p(C,{key:e,width:T.columnsConfig[e]?T.columnsConfig[e].width:"",label:T.columnsConfig[e]&&T.columnsConfig[e].label?T.columnsConfig[e].label:h.ucFirst(e)},{default:n(t=>[u("div",{innerHTML:t.row[e]},null,8,y)]),_:2},1032,["width","label"]))),128))],void 0,!0),_:1},8,["empty-text","data"])),[[B,T.loading]])]),pagination:n(()=>[o(j,{pagination:T.pagination,onFetch:w.fetch},null,8,["pagination","onFetch"])]),_:1})])}]])},data:()=>({providersData:{},app_ready:!1}),computed:{},mounted(){this.each(window.fcAdmin.support_tickets_providers,(t,e)=>{const a={title:t.title,name:t.name,provider_key:e};this.providersData[e]=a}),this.app_ready=!0}},[["render",function(t,e,a,o,n,c){const u=i("support-tickets-block");return n.app_ready?(s(),r("div",T,[(s(!0),r(l,null,d(n.providersData,(t,e)=>(s(),p(u,{key:e,provider:t,subscriber_id:a.subscriber_id},null,8,["provider","subscriber_id"]))),128))])):h("",!0)}]]);export{w as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{k as e,aT as t,aD as i,aA as r,aB as s}from"../../../../vendor-element-plus.js?ver=3.1.8";import{aQ as a,W as o,X as n,Z as d,aa as l,ab as c,a5 as h,a9 as _,a8 as m,a0 as f,Y as u}from"../../../../vendor.js?ver=3.1.8";import{F as p}from"../../../../_FormBuilder2.js?ver=3.1.8";import{_ as v}from"../../../../fc-bits-ui.js?ver=3.1.8";import"../../../../PhotoWidget.js?ver=3.1.8";import"../../../../input-popover-dropdown.js?ver=3.1.8";import"../../../../data_config.js?ver=3.1.8";import"../../../../_OptionSelector.js?ver=3.1.8";import"../../../../_AjaxSelector.js?ver=3.1.8";import"../../../../_VerifiedEmailInput.js?ver=3.1.8";const g={key:0,class:"fcrm_external_profile_wrapper"},b={class:"fcrm_external_profile_header"},w={class:"fcrm_external_profile_header--title"},y={key:0,class:"fcrm_external_profile_header--actions"},x=["innerHTML"],j={key:0},F={key:0,style:{padding:"10px 15px"}},k={class:"fc_drawer_footer"};const D=v({name:"SubscriberProfileExternalView",props:["subscriber","subscriber_id"],components:{FormBuilder:p},data(){return{direction:"rtl",profile_section:this.$route.query.handler,heading:"",content_html:"",loading:!0,crud:null,showForm:!1,crudConfig:{},saving:!1}},methods:{fetchData(){this.loading=!0,this.$get(`subscribers/${this.subscriber_id}/external_view`,{section_provider:this.profile_section}).then(e=>{this.heading=e.heading,this.content_html=e.content_html,e.crud&&(this.crud=e.crud)}).catch(e=>{this.handleError(e)}).finally(()=>{this.loading=!1})},initCrudForm(){if(!this.crud.fields)return;const e={};this.each(this.crud.fields,(t,i)=>{e[i]=t.default_value||""}),this.crudConfig.model=e,this.showForm=!0},saveData(){this.saving=!0,this.$post(`subscribers/${this.subscriber_id}/external_view`,{section_provider:this.profile_section,data:this.crudConfig.model}).then(e=>{this.$notify.success(e.message||"Saved successfully"),this.showForm=!1,e.content_html?(this.content_html=e.content_html,e.heading&&(this.heading=e.heading)):this.fetchData()}).catch(e=>{this.handleError(e)}).finally(()=>{this.saving=!1})}},mounted(){window.fcAdmin&&window.fcAdmin.is_rtl&&(this.direction="ltr"),this.fetchData()}},[["render",function(p,v,D,C,S,$){const V=e,z=a("form-builder"),A=t,E=s,B=r,T=i;return S.loading?(o(),u(E,{key:1,style:{"margin-top":"20px"},class:"fc_skeleton_loader",animated:""},{template:h(()=>[c(T,{gutter:30},{default:h(()=>[c(B,{span:12},{default:h(()=>[c(E,{rows:10})],void 0,!0),_:1}),c(B,{span:12},{default:h(()=>[c(E,{rows:3})],void 0,!0),_:1})],void 0,!0),_:1})]),_:1})):(o(),n("div",g,[d("div",b,[d("h3",w,l(S.heading),1),S.crud&&S.crud.btn_label?(o(),n("div",y,[c(V,{onClick:v[0]||(v[0]=e=>$.initCrudForm()),size:"small"},{default:h(()=>[_(l(S.crud.btn_label),1)],void 0),_:1})])):m("",!0)]),d("div",{class:f(["fcrm_external_profile_data","fcrm_section_"+S.profile_section]),innerHTML:S.content_html},null,10,x),S.crud&&S.crud.btn_label?(o(),n("div",j,[c(A,{direction:S.direction,class:"fc_company_info_drawer","with-header":!0,size:p.globalDrawerSize,title:S.crud.form_heading,"append-to-body":!0,modelValue:S.showForm,"onUpdate:modelValue":v[2]||(v[2]=e=>S.showForm=e)},{default:h(()=>[S.showForm?(o(),n("div",F,[c(z,{formData:S.crudConfig.model,fields:S.crud.fields},null,8,["formData","fields"]),d("div",k,[c(V,{type:"primary",onClick:v[1]||(v[1]=e=>$.saveData())},{default:h(()=>[_(l(S.crud.save_btn_text||"Save"),1)],void 0,!0),_:1})])])):m("",!0)],void 0),_:1},8,["direction","size","title","modelValue"])])):m("",!0)]))}]]);export{D as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{e,S as t,R as s}from"../fc-bits.js?ver=3.1.8";import{aE as a,bI as d,bJ as n,bK as o,bL as i,bM as b,bN as r,bO as w,bP as l,bQ as m,bR as v}from"../vendor.js?ver=3.1.8";a.extend(d),a.extend(n),a.extend(o),a.extend(i),a.extend(b),window.dayjs=a,window.FLUENTCRM={Rest:s,Storage:t,eventBus:e,addFilter:v,addAction:m,applyFilters:l,doAction:w,removeAllActions:r},document.dispatchEvent(new Event("fluentCRMBootReady")),delete window._wpemojiSettings;
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
!function(e){function t(t){if(t){e(".fcrm_menu_item, .fcrm_icon_menu").removeClass("fcrm_active");var c=[".fcrm_item_"+t,'.fcrm_menu_item[data-key="'+t+'"]','.fcrm_icon_menu[data-key="'+t+'"]'].join(", "),m=e(c);m.length&&m.addClass("fcrm_active")}}e(document).ready(function(){function c(){var t=e("#fc_server_timestamp");if(t.length){var c=parseInt(t.data("timestamp"));if(c){var m=new Date(1e3*c),n=m.getUTCFullYear()+"-"+("0"+(m.getUTCMonth()+1)).slice(-2)+"-"+("0"+m.getUTCDate()).slice(-2)+" "+("0"+(m.getUTCHours()%12||12)).slice(-2)+":"+("0"+m.getUTCMinutes()).slice(-2)+(m.getUTCHours()<12?" am":" pm");t.text("Server Time: "+n),t.data("timestamp",c+60)}}}if(e(".fcrm_submenu_items").on("click","a",function(){window.innerWidth>768&&e(this).closest(".fcrm_submenu_items").addClass("fcrm_force_hide")}),e(".fcrm_has_sub_items").on("mouseenter",function(){e(this).find(".fcrm_submenu_items").removeClass("fcrm_force_hide")}),e(".fcrm_menu").on("click",".fcrm_menu_item > .fcrm_menu_primary",function(c){t(e(this).closest(".fcrm_menu_item").data("key")),"SPAN"!==c.target.nodeName&&e(".fcrm_menu").removeClass("fcrm_menu_open")}),e(".fcrm_topbar_right").on("click",".fcrm_icon_menu",function(){t(e(this).data("key"))}),e("body").on("click",".components-color-palette__custom-color",function(e){e.preventDefault()}),c(),setInterval(c,6e4),!e(".fcrm_menu_item.fcrm_active, .fcrm_icon_menu.fcrm_active").length){var m=(window.location.hash||"").match(/^#\/([^\/?#]+)/),n=m?m[1]:"";"subscribers"===n&&(n="contacts"),t(n)}}),e(document).on("fluentcrm_route_change",function(e,c){t(c)})}(jQuery);
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Silence is golden.
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user