Initial commit

This commit is contained in:
gustavooth
2026-07-23 22:56:30 -03:00
commit 22a1006598
1816 changed files with 410742 additions and 0 deletions
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{W as e,Y as t,a5 as o,_ as n,a8 as i,ad as a,X as r,a7 as s}from"./vendor.js?ver=3.1.8";import{_ as l}from"./fc-bits-ui.js?ver=3.1.8";const d=l({name:"TransitionFade",props:{visible:{type:Boolean,default:!1}}},[["render",function(r,s,l,d,f,u){return e(),t(a,null,{default:o(()=>[l.visible?n(r.$slots,"default",{key:0},void 0,!0):i("",!0)],void 0),_:3})}],["__scopeId","data-v-5204b068"]]),f={name:"TransitionAccordion",props:{visible:{type:Boolean,default:!1},duration:{type:Number,default:300}},methods:{beforeEnter(e){e.style.height="0",e.style.opacity="0",e.style.overflow="hidden"},enter(e,t){const o=e.scrollHeight+"px";e.style.transition=`height ${this.duration}ms ease, opacity ${this.duration}ms ease`,requestAnimationFrame(()=>{e.style.height=o,e.style.opacity="1"}),setTimeout(()=>t(),this.duration)},afterEnter(e){e.style.height="auto",e.style.overflow=""},beforeLeave(e){e.style.height=e.scrollHeight+"px",e.style.opacity="1",e.style.overflow="hidden"},leave(e,t){e.offsetHeight,e.style.transition=`height ${this.duration}ms ease, opacity ${this.duration}ms ease`,e.style.height="0",e.style.opacity="0";const o=()=>{e.style.transition="",e.style.height="",e.style.opacity="",e.style.overflow="",e.removeEventListener("transitionend",o),t()};e.addEventListener("transitionend",o)},afterLeave(e){}}},u={key:0};const v=l(f,[["render",function(s,l,d,f,v,y){return e(),t(a,{onBeforeEnter:y.beforeEnter,onEnter:y.enter,onAfterEnter:y.afterEnter,onBeforeLeave:y.beforeLeave,onLeave:y.leave,onAfterLeave:y.afterLeave,mode:"in-out"},{default:o(()=>[d.visible?(e(),r("div",u,[n(s.$slots,"default",{},void 0,!0)])):i("",!0)],void 0),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}],["__scopeId","data-v-dcfff484"]]);const y=l({name:"Animation",components:{TransitionFade:d,TransitionAccordion:v},props:{visible:{type:Boolean,default:!1},duration:{type:Number,default:300},fade:{type:Boolean,default:!1},accordion:{type:Boolean,default:!1}},computed:{TransitionComponent(){return this.fade?d:v}}},[["render",function(i,a,r,l,d,f){return e(),t(s(f.TransitionComponent),{visible:r.visible,duration:r.duration},{default:o(()=>[n(i.$slots,"default")],void 0),_:3},8,["visible","duration"])}]]);export{y as A};
@@ -0,0 +1 @@
import{W as e,X as s,_ as t,a9 as r,aa as n,a0 as a}from"./vendor.js?ver=3.1.8";import{_ as c}from"./fc-bits-ui.js?ver=3.1.8";const i=c({name:"Badge",props:["type","plain"],methods:{badgeText(e){switch(e){case"completed":return this.$t("Completed");case"active":return this.$t("Active");case"publish":case"published":return this.$t("Published");case"shipped":return this.$t("Shipped");case"success":return this.$t("Success");case"failed":return this.$t("Failed");case"canceled":return this.$t("Canceled");case"bounced":return this.$t("Bounced");case"pending":return this.$t("Pending");case"subscribed":return this.$t("Subscribed");case"unsubscribed":return this.$t("Unsubscribed");case"draft":return this.$t("Draft");case"transactional":return this.$t("Transactional");case"archived":return this.$t("Archived");case"future":return this.$t("Future");case"inactive":return this.$t("Inactive");case"processing":return this.$t("Processing");case"working":return this.$t("Working");case"scheduled":return this.$t("Scheduled");case"on-hold":return this.$t("On Hold");case"dispute":return this.$t("Dispute");case"licensed":return this.$t("Licensed");case"sent":return this.$t("Sent");case"complained":return this.$t("Complained");case"spammed":return this.$t("Spammed");case"sms_subscribed":return this.$t("SMS Subscribed");case"sms_unsubscribed":return this.$t("SMS Unsubscribed");case"sms_pending":return this.$t("SMS Pending");case"sms_bounced":return this.$t("SMS Bounced");case"paused":return this.$t("Paused");case"pending-scheduled":return this.$t("Pending Scheduled");case"cancelled":return this.$t("Cancelled");default:return e}}}},[["render",function(c,i,u,d,h,$){return e(),s("span",{class:a(["fcrm_badge","fcrm_badge_"+u.type+(u.plain?" fcrm_badge_plain":"")])},[t(c.$slots,"icon"),r(" "+n($.badgeText(u.type)),1)],2)}]]);export{i as B};
@@ -0,0 +1 @@
import{ay as s}from"./vendor-element-plus.js?ver=3.1.8";import{W as a,X as e,_ as o,a8 as t,a6 as r,a0 as d}from"./vendor.js?ver=3.1.8";import{_ as c}from"./fc-bits-ui.js?ver=3.1.8";const l={name:"BaseCard",props:{bodyLoading:{type:Boolean,default:!1},noBodyPadding:{type:Boolean,default:!1},body_class:{type:[String,Array,Object],default:""}},computed:{hasHeader(){return Boolean(this.$slots.title||this.$slots.header_action)}}},_={class:"fcrm_base_card"},i={key:0,class:"fcrm_base_card_header"},n={key:0,class:"fcrm_base_card_title_wrap"},f={key:1,class:"fcrm_base_card_header_actions"},y={key:1,class:"fcrm_base_card_footer"};const m=c(l,[["render",function(c,l,m,b,p,v){const u=s;return a(),e("div",_,[v.hasHeader?(a(),e("div",i,[c.$slots.title?(a(),e("div",n,[o(c.$slots,"title")])):t("",!0),c.$slots.header_action?(a(),e("div",f,[o(c.$slots,"header_action")])):t("",!0)])):t("",!0),r((a(),e("div",{class:d(["fcrm_base_card_body",[m.body_class,{fcrm_p_0:m.noBodyPadding}]])},[o(c.$slots,"body",{},()=>[o(c.$slots,"default")])],2)),[[u,m.bodyLoading]]),c.$slots.footer?(a(),e("div",y,[o(c.$slots,"footer")])):t("",!0)])}]]);export{m as B};
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{W as r,X as n,Z as o}from"./vendor.js?ver=3.1.8";import{_ as t}from"./fc-bits-ui.js?ver=3.1.8";const H={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const V=t({name:"CalendarIcon"},[["render",function(t,V,e,s,C,i){return r(),n("svg",H,[...V[0]||(V[0]=[o("path",{d:"M13.75 3.25H16.75C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H6.25V1.75H7.75V3.25H12.25V1.75H13.75V3.25ZM12.25 4.75H7.75V6.25H6.25V4.75H4V7.75H16V4.75H13.75V6.25H12.25V4.75ZM16 9.25H4V15.25H16V9.25Z",fill:"currentColor"},null,-1)])])}]]);export{V as C};
@@ -0,0 +1 @@
import{W as a,X as e,J as s,az as t,Z as c,aa as i,a8 as r,a9 as n}from"./vendor.js?ver=3.1.8";import{_ as m}from"./fc-bits-ui.js?ver=3.1.8";const p={name:"CampaignSubjectLines",props:{campaign:{type:Object,required:!0},showPriority:{type:Boolean,default:!0}},computed:{activeSubjects(){return(this.campaign.subjects||[]).filter(a=>a&&a.value&&a.value.trim())}}},u={class:"fcrm_campaign_subject_lines"},o={class:"fcrm_campaign_subject_lines--value"},l={key:0,class:"fcrm_campaign_subject_lines--priority"};const _=m(p,[["render",function(m,p,_,j,b,f){return a(),e("span",u,[f.activeSubjects.length?(a(!0),e(s,{key:0},t(f.activeSubjects,(s,t)=>(a(),e("span",{key:s.id||t,class:"fcrm_campaign_subject_lines--item"},[c("span",o,i(s.value),1),_.showPriority?(a(),e("span",l,i(s.key)+"% ",1)):r("",!0)]))),128)):(a(),e(s,{key:1},[n(i(_.campaign.email_subject||"--"),1)],64))])}]]);export{_ as C};
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{a6 as e,k as t,E as i,aO as s}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as n,W as o,Y as r,a5 as a,Z as c,ab as d,a9 as l,aa as m,_ as f}from"./vendor.js?ver=3.1.8";import{_ as p}from"./fc-bits-ui.js?ver=3.1.8";const u=["innerHTML"],h={class:"action-buttons"};const v=p({name:"Confirm",components:{Delete:e},emits:["no","yes"],props:{placement:{type:String,default:"top-end"},message:{type:String,default:"Are you sure to delete this?"},width:{type:[Number,String],default:180},confirmText:{type:String,default:""},cancelText:{type:String,default:""},confirmType:{type:String,default:"danger"}},data:()=>({visible:!1,_confirmed:!1}),computed:{confirmTextComputed(){return this.confirmText||this.$t("Yes")},cancelTextComputed(){return this.cancelText||this.$t("No")},confirmButtonType(){return this.confirmType||"danger"}},methods:{show(){this._confirmed=!1,this.visible=!0},hide(){this.visible=!1},confirm(){this._confirmed=!0,this.hide(),this.$emit("yes")},cancel(){this._confirmed=!1,this.hide(),this.$emit("no")},onHide(){this._confirmed||this.$emit("no")}}},[["render",function(e,p,v,y,_,b){const T=t,g=n("Delete"),x=i,C=s;return o(),r(C,{width:v.width,onHide:b.onHide,visible:_.visible,"onUpdate:visible":p[2]||(p[2]=e=>_.visible=e),placement:v.placement,trigger:"click"},{reference:a(()=>[f(e.$slots,"reference",{},()=>[f(e.$slots,"default",{},()=>[d(x,{style:{cursor:"pointer"}},{default:a(()=>[d(g)],void 0,!0),_:1})])])]),default:a(()=>[c("p",{innerHTML:v.message,class:"fcrm_secondary_text fcrm_mb_12"},null,8,u),c("div",h,[d(T,{size:"small",class:"fcrm_secondary_btn",onClick:p[0]||(p[0]=e=>b.cancel())},{default:a(()=>[l(m(b.cancelTextComputed),1)],void 0,!0),_:1}),d(T,{type:b.confirmButtonType,size:"small",onClick:p[1]||(p[1]=e=>b.confirm())},{default:a(()=>[l(m(b.confirmTextComputed),1)],void 0,!0),_:1},8,["type"])])],void 0),_:3},8,["width","onHide","visible","placement"])}]]);export{v as C};
@@ -0,0 +1 @@
import{a6 as e,k as s,E as i,aO as t}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as a,W as n,Y as l,a5 as o,Z as r,ab as d,a9 as c,aa as m,_ as f}from"./vendor.js?ver=3.1.8";import{_ as v}from"./fc-bits-ui.js?ver=3.1.8";const p=["innerHTML"],u={class:"action-buttons"};const h=v({name:"Confirm",components:{Delete:e},emits:["no","yes"],props:{placement:{default:"top-end"},message:{default:"Are you sure to delete this?"},width:{default:170}},data:()=>({visible:!1}),methods:{hide(){this.visible=!1},confirm(){this.hide(),this.$emit("yes")},cancel(){this.hide(),this.$emit("no")}}},[["render",function(e,v,h,b,_,g){const $=s,k=a("Delete"),w=i,y=t;return n(),l(y,{width:h.width,onHide:g.cancel,visible:_.visible,"onUpdate:visible":v[2]||(v[2]=e=>_.visible=e),trigger:"click",placement:h.placement},{reference:o(()=>[f(e.$slots,"reference",{},()=>[d(w,null,{default:o(()=>[d(k)],void 0,!0),_:1})])]),default:o(()=>[r("p",{innerHTML:h.message},null,8,p),r("div",u,[d($,{size:"small",onClick:v[0]||(v[0]=e=>g.cancel())},{default:o(()=>[c(m(e.$t("No")),1)],void 0,!0),_:1}),d($,{type:"danger",size:"small",onClick:v[1]||(v[1]=e=>g.confirm())},{default:o(()=>[c(m(e.$t("Yes")),1)],void 0,!0),_:1})])],void 0),_:3},8,["width","onHide","visible","placement"])}]]);export{h as C};
@@ -0,0 +1 @@
import{av as s,aQ as t,W as a,X as e,Z as o,J as i,az as r,a0 as n,ab as m,a5 as c,a9 as _,aa as h,_ as l}from"./vendor.js?ver=3.1.8";import{u,a1 as p,J as d,O as f,ab as v}from"./vendor-element-plus.js?ver=3.1.8";import{_ as g}from"./fc-bits-ui.js?ver=3.1.8";const w={class:"fcrm_page_header_top_nav_wrapper"},$={class:"fcrm_page_header_top_nav"},P={class:"fcrm_page_header_top_nav_links"},b={class:"fcrm_page_header_top_actions"};const k=g({name:"ContactHeaderPopNav",data(){return{routeName:this.$route.name,menuItems:this.getMenuItems()}},watch:{"$route.name"(s){this.routeName=s}},methods:{getMenuItems(){var t,a;const e=null==(a=null==(t=this.appVars)?void 0:t.addons)?void 0:a.company_module,o=!this.hasPermission||(this.hasPermission("fcrm_read_contacts")||this.hasPermission("fcrm_manage_contacts")),i=!this.hasPermission||(this.hasPermission("fcrm_manage_contact_cats")||this.hasPermission("fcrm_manage_contact_cats_delete"));return[{show:o,title:this.$t("All Contacts"),route:"subscribers",icon:s(u)},{show:i,title:this.$t("Lists"),route:"lists",icon:s(p)},{show:i,title:this.$t("Tags"),route:"tags",icon:s(d)},{show:i&&e,title:this.$t("Companies"),route:"companies",icon:s(f)},{show:i,title:this.$t("Segments"),route:"dynamic_segments",icon:s(v)}].filter(s=>s.show).map(({show:s,...t})=>t)}}},[["render",function(s,u,p,d,f,v){const g=t("router-link");return a(),e("div",w,[o("div",$,[o("ul",P,[(a(!0),e(i,null,r(f.menuItems,s=>(a(),e("li",{key:s.route,class:n("fcrm_item_"+s.route+" fcrm_top_menu_item "+(s.item_class||""))},[m(g,{to:{name:s.route},class:"fcrm_top_nav_link"},{default:c(()=>[_(h(s.title),1)],void 0),_:2},1032,["to"])],2))),128))])]),o("div",b,[l(s.$slots,"actions")])])}]]);export{k as C};
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{W as e,X as a,Z as s,_ as r,a8 as t,a0 as l}from"./vendor.js?ver=3.1.8";import{_ as o}from"./fc-bits-ui.js?ver=3.1.8";const c={name:"DataTable",props:{hasSelection:{type:Boolean,default:!1},wrapper_border:{type:Boolean,default:!1}}},i={class:"fcrm_table_header"},_={key:0,class:"fcrm_table_header_inner"},n={key:0,class:"fcrm_table_header_inner_left"},d={key:1,class:"fcrm_table_header_inner_actions"},f={class:"fcrm_table_header_bulk_actions"},b={class:"fcrm_table_body"};const p=o(c,[["render",function(o,c,p,h,m,v){return e(),a("div",{class:l(["fcrm_table_wrapper",{fcrm_table_wrapper_border:p.wrapper_border}])},[s("div",i,[p.hasSelection?t("",!0):(e(),a("div",_,[o.$slots["header-left"]?(e(),a("div",n,[r(o.$slots,"header-left")])):t("",!0),o.$slots["header-actions"]?(e(),a("div",d,[r(o.$slots,"header-actions")])):t("",!0)])),s("div",f,[p.hasSelection?r(o.$slots,"bulk-actions",{key:0}):t("",!0),p.hasSelection?t("",!0):r(o.$slots,"active-filters",{key:1})])]),r(o.$slots,"header-extra"),s("div",b,[r(o.$slots,"table"),r(o.$slots,"pagination")])],2)}]]);export{p as D};
@@ -0,0 +1 @@
import{aD as e,aA as a,aw as t,e as s,ax as i}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as l,W as o,X as d,Y as m,a5 as r,ab as _,a8 as n,_ as c}from"./vendor.js?ver=3.1.8";import{E as u}from"./BlockComposer.js?ver=3.1.8";import{I as p}from"./_FormBuilder2.js?ver=3.1.8";import{S as b}from"./TestEmail.js?ver=3.1.8";import{_ as g}from"./fc-bits-ui.js?ver=3.1.8";const v={class:"email_composer_wrapper"},h={key:1};const f=g({name:"EmailComposer",props:["campaign","label_align","disable_subject","disable_templates","disable_fixed","enable_test","show_merge","extra_tags","show_audit","disable_gutenberg_autosave","hide_gutenberg_save_button"],emits:["save"],components:{EmailBlockComposer:u,InputPopover:p,SendTestEmail:b},data:()=>({smartcodes:window.fcAdmin.globalSmartCodes,email_subject_status:!0}),methods:{triggerSave(){this.$emit("save")},resetSubject(){this.email_subject_status=!1,this.$nextTick(()=>{this.email_subject_status=!0})}},mounted(){this.extra_tags&&(this.smartcodes=[...this.smartcodes,...this.extra_tags]),window.fcAdmin.extendedSmartCodes&&(this.smartcodes=[...this.smartcodes,...window.fcAdmin.extendedSmartCodes])}},[["render",function(u,p,b,g,f,j){const x=l("input-popover"),w=t,S=a,E=s,k=e,$=i,C=l("email-block-composer"),V=l("send-test-email");return o(),d("div",v,[b.disable_subject?n("",!0):(o(),m($,{key:0,"label-position":b.label_align,model:b.campaign},{default:r(()=>[_(k,{gutter:20,class:"mb-10"},{default:r(()=>[_(S,{sm:24,md:12},{default:r(()=>[_(w,{label:u.$t("Email Subject")},{default:r(()=>[f.email_subject_status?(o(),m(x,{key:0,doc_url:"https://fluentcrm.com/docs/merge-codes-smart-codes-usage/",popper_extra:"fc_with_c_fields",placeholder:u.$t("Email Subject"),data:f.smartcodes,modelValue:b.campaign.email_subject,"onUpdate:modelValue":p[0]||(p[0]=e=>b.campaign.email_subject=e)},null,8,["placeholder","data","modelValue"])):n("",!0)],void 0,!0),_:1},8,["label"])],void 0,!0),_:1}),_(S,{sm:24,md:12},{default:r(()=>[_(w,{label:u.$t("Email Pre-Header")},{default:r(()=>[_(E,{placeholder:u.$t("Email Pre-Header"),modelValue:b.campaign.email_pre_header,"onUpdate:modelValue":p[1]||(p[1]=e=>b.campaign.email_pre_header=e)},null,8,["placeholder","modelValue"])],void 0,!0),_:1},8,["label"])],void 0,!0),_:1})],void 0,!0),_:1})],void 0),_:1},8,["label-position","model"])),_(C,{onSave:p[2]||(p[2]=e=>j.triggerSave()),iframe_nav_mode:"compose","hide-back-btn":!0,"hide-next-btn":!0,"hide-save-btn":b.hide_gutenberg_save_button,"disable-gutenberg-autosave":b.disable_gutenberg_autosave,show_audit:b.show_audit,extra_tags:b.extra_tags,show_merge:!0,enable_template_save:!0,onTemplate_inserted:p[3]||(p[3]=e=>j.resetSubject()),disable_fixed:b.disable_fixed,enable_templates:!b.disable_templates,campaign:b.campaign},{fc_editor_actions:r(()=>[c(u.$slots,"actions")]),_:3},8,["hide-save-btn","disable-gutenberg-autosave","show_audit","extra_tags","disable_fixed","enable_templates","campaign"]),c(u.$slots,"after_block_composer"),b.enable_test?(o(),d("div",h,[_(V,{campaign:b.campaign},null,8,["campaign"])])):n("",!0)])}]]);export{f as E};
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{W as r,X as o,aa as e,a8 as s}from"./vendor.js?ver=3.1.8";import{_ as a}from"./fc-bits-ui.js?ver=3.1.8";const n={key:0,class:"el-form-item__error"};const t=a({name:"Error",props:["error"]},[["render",function(a,t,m,i,p,c){return m.error?(r(),o("span",n,e(m.error),1)):s("",!0)}]]);export{t as E};
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{at as e,h as s,k as o,E as r,j as t}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as a,W as l,X as n,ab as d,a5 as f,_ as i,a9 as c,aa as m}from"./vendor.js?ver=3.1.8";import{_ as p}from"./fc-bits-ui.js?ver=3.1.8";const u={class:"fcrm_filterer"};const _=p({name:"Filterer",components:{ArrowDown:e},props:{placement:{default:"bottom-start"},filter_type:{default:"filterer"}},methods:{hide(){var e;null==(e=this.$refs.dropdownRef)||e.handleClose()}}},[["render",function(e,p,_,v,w,$){const h=a("ArrowDown"),b=r,j=o,k=s,g=t;return l(),n("div",u,[d(g,{ref:"dropdownRef",class:"fcrm_fluentcrm-filter",placement:_.placement,"hide-on-click":!1,trigger:"click"},{default:f(()=>[i(e.$slots,"header",{},()=>[d(j,{plain:"",size:"small"},{default:f(()=>[i(e.$slots,"label",{},()=>[c(m(e.$t("Columns")),1)]),i(e.$slots,"icon",{},()=>[d(b,null,{default:f(()=>[d(h)],void 0,!0),_:1})])],void 0,!0),_:3})])]),dropdown:f(()=>[d(k,{class:"fcrm_filter_dropdown"},{default:f(()=>[i(e.$slots,"items"),i(e.$slots,"footer")],void 0,!0),_:3})]),_:3},8,["placement"]),i(e.$slots,"dropdown_footer")])}]]);export{_ as F};
@@ -0,0 +1 @@
import{at as e,h as s,k as o,E as r,j as t}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as a,W as l,X as n,ab as d,a5 as f,_ as i,a9 as c,aa as m}from"./vendor.js?ver=3.1.8";import{_ as p}from"./fc-bits-ui.js?ver=3.1.8";const u={class:"fcrm_filterer"};const _=p({name:"Filterer",components:{ArrowDown:e},props:{placement:{default:"bottom-start"},filter_type:{default:"filterer"}},methods:{hide(){var e;null==(e=this.$refs.dropdownRef)||e.handleClose()}}},[["render",function(e,p,_,v,w,$){const h=a("ArrowDown"),b=r,j=o,k=s,g=t;return l(),n("div",u,[d(g,{ref:"dropdownRef",class:"fcrm_fluentcrm-filter",placement:_.placement,"hide-on-click":!1,trigger:"click"},{default:f(()=>[i(e.$slots,"header",{},()=>[d(j,{plain:"",size:"small"},{default:f(()=>[i(e.$slots,"label",{},()=>[c(m(e.$t("Columns")),1)]),i(e.$slots,"icon",{},()=>[d(b,null,{default:f(()=>[d(h)],void 0,!0),_:1})])],void 0,!0),_:3})])]),dropdown:f(()=>[d(k,{class:"fcrm_filter_dropdown"},{default:f(()=>[i(e.$slots,"items"),i(e.$slots,"footer")],void 0,!0),_:3})]),_:3},8,["placement"]),i(e.$slots,"dropdown_footer")])}]]);export{_ as F};
@@ -0,0 +1 @@
import{c as e,E as l,k as t}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as s,W as a,X as o,_ as c,Z as n,ab as i,a5 as d,aa as r,a8 as u,Y as f,a9 as m,a0 as _}from"./vendor.js?ver=3.1.8";import{_ as y}from"./fc-bits-ui.js?ver=3.1.8";const b={name:"FloatingBulkActionShell",components:{Close:e},emits:["select-all","select-only-page","deselect"],props:{visible:{type:Boolean,default:!1},customLayout:{type:Boolean,default:!1},themeMode:{type:String,default:"light"},selectedCount:{type:Number,default:0},selectedLabel:{type:String,default:"selected"},showSelectAll:{type:Boolean,default:!1},showSelectOnlyPage:{type:Boolean,default:!1},selectAllLabel:{type:String,default:""},selectOnlyPageLabel:{type:String,default:""},deselectLabel:{type:String,default:"Deselect"}},computed:{containerClass(){return{"fcrm-dark":"light"===this.themeMode,"fcrm-force-light":"dark"===this.themeMode}}}},p={key:1,class:"fcrm_bulk_action_bar"},k={class:"fcrm_bulk_action_left"},v={class:"fcrm_selection_count"},g={class:"fcrm_selection_count_number"},h={class:"fcrm_selection_count_text"},S={key:0,class:"fcrm_bulk_divider"},L={key:3,class:"fcrm_bulk_divider"};const C=y(b,[["render",function(e,y,b,C,$,w){const A=s("Close"),B=l,O=t;return b.visible?(a(),o("div",{key:0,class:_(["fcrm_fixed_bulk_actions_to_bottom",w.containerClass])},[b.customLayout?c(e.$slots,"default",{key:0}):(a(),o("div",p,[n("div",k,[i(O,{link:"","aria-label":b.deselectLabel,onClick:y[0]||(y[0]=l=>e.$emit("deselect"))},{default:d(()=>[i(B,null,{default:d(()=>[i(A)],void 0,!0),_:1})],void 0),_:1},8,["aria-label"]),n("div",v,[c(e.$slots,"count",{},()=>[n("span",g,r(b.selectedCount),1),n("span",h,r(b.selectedLabel),1)])]),b.showSelectAll||b.showSelectOnlyPage?(a(),o("div",S)):u("",!0),b.showSelectAll?(a(),f(O,{key:1,link:"",onClick:y[1]||(y[1]=l=>e.$emit("select-all"))},{default:d(()=>[m(r(b.selectAllLabel),1)],void 0),_:1})):u("",!0),b.showSelectOnlyPage?(a(),f(O,{key:2,link:"",onClick:y[2]||(y[2]=l=>e.$emit("select-only-page"))},{default:d(()=>[m(r(b.selectOnlyPageLabel),1)],void 0),_:1})):u("",!0),e.$slots.actions?(a(),o("div",L)):u("",!0),c(e.$slots,"actions")])]))],2)):u("",!0)}]]);export{C as F};
@@ -0,0 +1 @@
import{P as r}from"./PromoCard.js?ver=3.1.8";import{aQ as o,W as e,X as a,ab as s}from"./vendor.js?ver=3.1.8";import{_ as i}from"./fc-bits-ui.js?ver=3.1.8";const n={class:"fc_promo_body"};const t=i({name:"GenericPromo",components:{PromoCard:r},props:{heading:{type:String,required:!1,default:""}}},[["render",function(r,i,t,d,p,c){const m=o("PromoCard");return e(),a("div",n,[s(m,{heading:t.heading||r.$t("This is a pro feature"),description:r.$t("Lin_This_iapfPdtFPta"),"show-header-upgrade-icon":!1},null,8,["heading","description"])])}],["__scopeId","data-v-832a775e"]]);export{t as G};
@@ -0,0 +1 @@
import{P as r}from"./PromoCard.js?ver=3.1.8";import{aQ as o,W as e,X as a,ab as i}from"./vendor.js?ver=3.1.8";import{_ as s}from"./fc-bits-ui.js?ver=3.1.8";const n={class:"fcrm_promo_body"};const t=s({name:"GenericPromo",components:{PromoCard:r},props:{heading:{type:String,required:!1,default:""}}},[["render",function(r,s,t,d,m,p){const c=o("PromoCard");return e(),a("div",n,[i(c,{heading:t.heading||r.$t("This is a pro feature"),description:r.$t("Lin_This_iapfPdtFPta")},null,8,["heading","description"])])}]]);export{t as G};
@@ -0,0 +1 @@
import{k as o,aB as i,aT as d}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as s,W as e,X as a,ab as t,a5 as c,Z as n,a9 as l,aa as r,a0 as h}from"./vendor.js?ver=3.1.8";import{_,I as m}from"./fc-bits-ui.js?ver=3.1.8";const w={class:"fc_inline_doc",style:{display:"inline-block"}},p={class:"icon"},u=["innerHTML"],f={key:1,class:"doc_read"};const v=_({name:"InlineDoc",components:{Icons:m},props:["doc_id","btn_class"],data:()=>({loading:!1,doc:{},show_doc:!1,direction:"rtl",docSize:"700px",isLoaded:!1}),methods:{showDoc(){this.show_doc=!0,this.isLoaded||this.getDoc()},getDoc(){this.loading=!0,this.$get("docs/"+this.doc_id).then(o=>{this.doc=o}).catch(o=>{this.handleError(o)}).finally(()=>{this.loading=!1,this.isLoaded=!0})}},mounted(){window.fcAdmin&&window.fcAdmin.is_rtl&&(this.direction="ltr"),window.outerWidth<701&&(this.docSize=window.outerWidth-50+"px")}},[["render",function(_,m,v,b,g,y){const k=s("Icons"),z=o,D=i,I=d;return e(),a("div",w,[t(z,{title:_.$t("View related documentation"),class:h(v.btn_class),onClick:y.showDoc},{default:c(()=>[n("span",p,[t(k,{"icon-name":"graduationCap"})]),l(" "+r(_.$t("Tutorial")),1)],void 0),_:1},8,["title","class","onClick"]),t(I,{modelValue:g.show_doc,"onUpdate:modelValue":m[0]||(m[0]=o=>g.show_doc=o),title:g.doc.title,"append-to-body":!0,size:g.docSize,direction:g.direction,"header-class":"fc_doc_drawer_header","body-class":"fc_doc_drawer_body"},{default:c(()=>[g.loading?(e(),a("div",f,[t(D,{animated:!0,rows:10})])):(e(),a("div",{key:0,class:"doc_read",innerHTML:g.doc.content},null,8,u))],void 0),_:1},8,["modelValue","title","size","direction"])])}]]);export{v as I};
@@ -0,0 +1 @@
import{aj as t,aJ as e,k as o,E as a,e as i}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as s,W as n,Y as c,a5 as p,ab as l,a8 as r}from"./vendor.js?ver=3.1.8";import{_ as d,I as u}from"./fc-bits-ui.js?ver=3.1.8";const m=d({name:"ItemCopier",components:{Icons:u,Check:t},props:{text:{type:String,required:!0},showViewButton:{type:Boolean,default:!1}},data:()=>({copy_success:!1}),computed:{copyTooltipText(){return this.copy_success?this.$t("Copied"):this.$t("Copy")},viewTooltipText(){return this.$t("View in new tab")}},methods:{copyItem(){this.copy_success=!1;const t=this.text;let e=!1;if(window.clipboardData&&window.clipboardData.setData)window.clipboardData.clipboardData.setData("Text",t),e=!0;else if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const a=document.createElement("textarea");a.textContent=t,a.style.position="fixed",document.body.appendChild(a),a.select();try{document.execCommand("copy"),e=!0}catch(o){console.warn("Copy to clipboard failed.",o),e=!1}finally{document.body.removeChild(a)}}e?(this.copy_success=!0,this.$notify({message:this.$t("Copied to your clipboard"),position:"bottom-right",customClass:"bottom_right",type:"success"}),setTimeout(()=>{this.copy_success=!1},2e3)):this.$notify({message:this.$t("Your Browser does not support JS copy. Please copy manually"),position:"bottom-right",customClass:"bottom_right",type:"error"})},openUrl(){if(this.text){const t=window.open(this.text,"_blank");t&&(t.opener=null)}}}},[["render",function(t,d,u,m,y,h){const b=s("Check"),f=a,v=s("Icons"),w=o,C=e,x=i;return n(),c(x,{size:"small",readonly:!0,"model-value":u.text,"aria-label":t.$t("Copyable item value"),class:"fc-item-copier-input"},{append:p(()=>[l(C,{content:h.copyTooltipText,placement:"top"},{default:p(()=>[l(w,{class:"copy-btn","native-type":"button","aria-label":h.copyTooltipText,onClick:h.copyItem},{default:p(()=>[y.copy_success?(n(),c(f,{key:0,"aria-hidden":"true"},{default:p(()=>[l(b)],void 0,!0),_:1})):(n(),c(v,{key:1,"icon-name":"duplicate","aria-hidden":"true"}))],void 0,!0),_:1},8,["aria-label","onClick"])],void 0,!0),_:1},8,["content"]),u.showViewButton?(n(),c(C,{key:0,content:h.viewTooltipText,placement:"top"},{default:p(()=>[l(w,{type:"primary",class:"view-btn","native-type":"button","aria-label":h.viewTooltipText,onClick:h.openUrl},{default:p(()=>[l(v,{"icon-name":"externalLink","aria-hidden":"true"})],void 0,!0),_:1},8,["aria-label","onClick"])],void 0,!0),_:1},8,["content"])):r("",!0)]),_:1},8,["model-value","aria-label"])}]]);export{m as I};
@@ -0,0 +1 @@
import{aj as t,ac as o,E as e}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as s,W as c,X as a,Z as r,aa as i,Y as n,a5 as p,ab as m}from"./vendor.js?ver=3.1.8";import{_ as d}from"./fc-bits-ui.js?ver=3.1.8";const l={class:"fcrm_item_copier_wrapper"},u={class:"fcrm_smart_url_box"},y={class:"fcrm_smart_url_text"};const _=d({name:"ItemCopier",components:{CopyDocument:o,Check:t},props:["text","showViewButton"],data:()=>({copy_success:!1}),methods:{copyItem(){this.copy_success=!1;const t=this.text;let o=!1;if(window.clipboardData&&window.clipboardData.setData)window.clipboardData.clipboardData.setData("Text",t),o=!0;else if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const s=document.createElement("textarea");s.textContent=t,s.style.position="fixed",document.body.appendChild(s),s.select();try{document.execCommand("copy"),o=!0}catch(e){console.warn("Copy to clipboard failed.",e),o=!1}finally{document.body.removeChild(s)}}o?(this.copy_success=!0,this.$notify({message:this.$t("Copied to your clipboard"),position:"bottom-right",customClass:"bottom_right",type:"success"}),setTimeout(()=>{this.copy_success=!1},2e3)):this.$notify({message:this.$t("Your Browser does not support JS copy. Please copy manually"),position:"bottom-right",customClass:"bottom_right",type:"error"})},openUrl(){this.text&&window.open(this.text,"_blank")}}},[["render",function(t,o,d,_,h,f){const b=s("CopyDocument"),C=e,w=s("Check");return c(),a("div",l,[r("div",u,[r("span",y,i(d.text),1),r("button",{class:"fcrm_copy_btn",onClick:o[0]||(o[0]=(...t)=>f.copyItem&&f.copyItem(...t)),type:"button"},[h.copy_success?(c(),n(C,{key:1,class:"fcrm_check_icon"},{default:p(()=>[m(w)],void 0),_:1})):(c(),n(C,{key:0,class:"fcrm_copy_icon"},{default:p(()=>[m(b)],void 0),_:1}))])])])}]]);export{_ as I};
@@ -0,0 +1 @@
import{W as s,X as e,Z as a,_ as r,a8 as t}from"./vendor.js?ver=3.1.8";import{_ as c}from"./fc-bits-ui.js?ver=3.1.8";const o={class:"fcrm_page_header"},i={class:"fcrm_page_header_content"},d={key:0,class:"fcrm_page_header_title"},_={key:1,class:"fcrm_page_header_description"},l={key:2,class:"fcrm_page_header_breadcrumb"},n={key:0,class:"fcrm_page_header_actions"};const m=c({name:"PageHeader"},[["render",function(c,m,p,f,v,$){return s(),e("div",o,[a("div",i,[c.$slots.title?(s(),e("div",d,[r(c.$slots,"title")])):t("",!0),c.$slots.description?(s(),e("div",_,[r(c.$slots,"description")])):t("",!0),c.$slots.breadcrumb?(s(),e("div",l,[r(c.$slots,"breadcrumb")])):t("",!0)]),c.$slots.actions?(s(),e("div",n,[r(c.$slots,"actions")])):t("",!0)])}]]);export{m as P};
@@ -0,0 +1 @@
import{b5 as a,aL as e,aK as t}from"./vendor-element-plus.js?ver=3.1.8";import{W as i,Y as n,aQ as r,X as s,Z as o,aa as g,ab as p,a5 as l,J as c,az as h,a0 as u,a8 as _}from"./vendor.js?ver=3.1.8";import{_ as d}from"./fc-bits-ui.js?ver=3.1.8";const m={name:"PaginationBar",components:{Pagination:d({name:"Pagination",emits:["fetch","per_page_change"],props:{pagination:{required:!0,type:Object},extra_sizes:{required:!1,type:Array,default:()=>[]},hide_on_single:{required:!1,type:Boolean,default:()=>!1},layout:{required:!1,type:String,default:()=>"total, sizes, prev, pager, next"}},computed:{page_sizes(){const a=[];this.pagination.per_page<10&&a.push(this.pagination.per_page);return[...a,10,20,50,80,100,120,150,...this.extra_sizes]}},methods:{changePage(a){this.pagination.current_page=a,this.$emit("fetch")},changeSize(a){this.pagination.per_page=a,this.$emit("per_page_change",a),this.$emit("fetch")}}},[["render",function(e,t,r,s,o,g){const p=a;return i(),n(p,{class:"fcrm_pagination",background:!1,layout:r.layout,onCurrentChange:g.changePage,onSizeChange:g.changeSize,"hide-on-single-page":r.hide_on_single,"current-page":r.pagination.current_page,"onUpdate:currentPage":t[0]||(t[0]=a=>r.pagination.current_page=a),"page-sizes":g.page_sizes,"page-size":r.pagination.per_page,total:r.pagination.total},null,8,["layout","onCurrentChange","onSizeChange","hide-on-single-page","current-page","page-sizes","page-size","total"])}]])},emits:["fetch"],props:{pagination:{type:Object,required:!0},hide_on_single:{type:Boolean,default:!1},page_sizes:{type:Array,default:()=>[]},extra_sizes:{type:Array,default:()=>[]},wrapperClass:{type:[String,Array,Object],default:""}},computed:{currentPage(){var a;return Number(null==(a=this.pagination)?void 0:a.current_page)||1},totalPages(){var a,e;const t=Number(null==(a=this.pagination)?void 0:a.per_page)||10,i=Number(null==(e=this.pagination)?void 0:e.total)||0;return Math.max(1,Math.ceil(i/t))},pageSizes(){var a;const e=[],t=parseInt(null==(a=this.pagination)?void 0:a.per_page,10)||10;t<10&&e.push(t);const i=this.page_sizes.length?this.page_sizes:[10,20,50,80,100,120,150];return[...e,...i,...this.extra_sizes]}},methods:{onPerPageChange(a){a&&(this.pagination.per_page=a,this.pagination.current_page=1,this.$emit("fetch"))},goFirst(){this.currentPage<=1||(this.pagination.current_page=1,this.$emit("fetch"))},goLast(){this.currentPage>=this.totalPages||(this.pagination.current_page=this.totalPages,this.$emit("fetch"))}}},f={class:"fcrm-pagination-bar__left"},b={class:"fcrm-pagination-bar__page-info"},v={class:"fcrm-pagination-bar__page-info"},L={class:"fcrm-pagination-bar__right"},y=["disabled","aria-label"],z=["disabled","aria-label"];const P=d(m,[["render",function(a,d,m,P,w,x){const $=e,C=t,S=r("pagination");return!m.hide_on_single||x.totalPages>1?(i(),s("div",{key:0,class:u(["fcrm-pagination-bar",m.wrapperClass])},[o("div",f,[o("div",b,g(a.$t("Page"))+" "+g(m.pagination.current_page)+" "+g(a.$t("of"))+" "+g(x.totalPages),1),p(C,{"model-value":m.pagination.per_page,size:"small",class:"fcrm-pagination-bar__sizes fcrm_background_select","onUpdate:modelValue":x.onPerPageChange},{default:l(()=>[(i(!0),s(c,null,h(x.pageSizes,e=>(i(),n($,{key:e,label:e+" / "+a.$t("page"),value:e},null,8,["label","value"]))),128))],void 0),_:1},8,["model-value","onUpdate:modelValue"]),o("div",v,g(a.$t("Total"))+" "+g(m.pagination.total),1)]),o("div",L,[o("button",{type:"button",class:"fcrm-pagination-bar__nav fcrm-pagination-bar__nav--first",disabled:x.currentPage<=1,"aria-label":a.$t("First page"),onClick:d[0]||(d[0]=(...a)=>x.goFirst&&x.goFirst(...a))},[...d[3]||(d[3]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[o("path",{d:"M14.9752 10.0004L10.6647 5.68994L9.68266 6.67203L13.0111 10.0004L9.68266 13.3288L10.6647 14.3109L14.9752 10.0004ZM11.0517 10.0004L6.74118 5.68994L5.75909 6.67203L9.08752 10.0004L5.75909 13.3288L6.74118 14.3109L11.0517 10.0004Z",fill:"var(--fc-secondary-text)"})],-1)])],8,y),p(S,{class:"fcrm-pagination-bar__right-inner",layout:"prev, pager, next",pagination:m.pagination,hide_on_single:m.hide_on_single,onFetch:d[1]||(d[1]=e=>a.$emit("fetch"))},null,8,["pagination","hide_on_single"]),o("button",{type:"button",class:"fcrm-pagination-bar__nav fcrm-pagination-bar__nav--last",disabled:x.currentPage>=x.totalPages,"aria-label":a.$t("Last page"),onClick:d[2]||(d[2]=(...a)=>x.goLast&&x.goLast(...a))},[...d[4]||(d[4]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[o("path",{d:"M14.9752 10.0004L10.6647 5.68994L9.68266 6.67203L13.0111 10.0004L9.68266 13.3288L10.6647 14.3109L14.9752 10.0004ZM11.0517 10.0004L6.74118 5.68994L5.75909 6.67203L9.08752 10.0004L5.75909 13.3288L6.74118 14.3109L11.0517 10.0004Z",fill:"var(--fc-secondary-text)"})],-1)])],8,z)])],2)):_("",!0)}]]);export{P};
@@ -0,0 +1 @@
import{k as e}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as t,W as a,X as o,a8 as n,ab as i,a5 as l,J as d,a9 as s,aa as p,a0 as u,_ as r}from"./vendor.js?ver=3.1.8";import{_ as c,I as m}from"./fc-bits-ui.js?ver=3.1.8";const _={name:"photo_widget",components:{Icons:m},props:{modelValue:{type:String,default:""},value:{type:String,default:""},btn_mode:{type:Boolean,default:()=>!1},btn_text:{type:String,default:()=>"Upload"},btn_type:{type:String,default:()=>"default"},btn_class:{type:String,default:()=>""},hide_upload_icon:{type:Boolean,default:()=>!1},only_icon:{type:Boolean,default:()=>!1}},emits:["update:modelValue","input","changed","update:value"],data:()=>({app_ready:!1}),computed:{displayValue(){return this.modelValue||this.value||""}},methods:{initUploader(){var e;const t=null==(e=null==window?void 0:window.wp)?void 0:e.media,a=null==t?void 0:t.editor;if(!(a&&"function"==typeof a.open&&t&&t.model&&t.view))return console.warn("PhotoWidget: wp.media.editor is not available. Ensure wp_enqueue_media() is called on the page."),!1;const o=a.send.attachment;a.send.attachment=(e,t)=>{if(t&&t.url){const e=t.url;this.$emit("update:modelValue",e),this.$emit("update:value",e),this.$emit("input",e),this.$emit("changed",e)}a.send.attachment=o};const n=window.wpActiveEditor;window.wpActiveEditor="photo_widget",a.open();const i=a.frame;return i&&"function"==typeof i.on?i.on("close",()=>{window.wpActiveEditor=n}):window.wpActiveEditor=n,!1},getThumb:e=>e.url},mounted(){this.app_ready=!0}},y={class:"fluentcrm_photo_card"},f={key:0,class:"fluentcrm_photo_holder"},h=["src"],w={key:0,class:"icon"};const v=c(_,[["render",function(c,m,_,v,g,b){const k=t("Icons"),V=e;return a(),o("div",y,[g.app_ready?(a(),o("div",f,[b.displayValue&&!_.btn_mode?(a(),o("img",{key:0,src:b.displayValue},null,8,h)):n("",!0),i(V,{size:"small",onClick:b.initUploader,type:_.btn_type,class:u(_.btn_class)},{default:l(()=>[!_.hide_upload_icon||_.only_icon?(a(),o("span",w,[i(k,{"icon-name":"simple-upload"})])):n("",!0),_.only_icon?n("",!0):(a(),o(d,{key:1},[s(p(_.btn_text),1)],64))],void 0),_:1},8,["onClick","type","class"]),r(c.$slots,"after")])):n("",!0)])}]]);export{v as P};
@@ -0,0 +1 @@
import{W as e,X as i,aa as t,Z as a,J as s,az as l,a8 as r,a6 as n,ac as o,$ as h}from"./vendor.js?ver=3.1.8";import{_ as d}from"./fc-bits-ui.js?ver=3.1.8";const m={name:"PreviewIframeBuilder",props:{preview_html:{type:String,default:()=>""},campaign:{type:Object,default:()=>({})},campaign_id:{default:()=>0},frame_height:{type:String,default:()=>"500px"},show_audit:{type:Boolean,default:()=>!1}},data(){return{loading_preview:!0,invalidDoms:[],preview_full_html:this.preview_html}},methods:{loadFrame(){const e=this.$refs.fc_ifr;if(!e)return;const i=e.contentDocument||e.contentWindow&&e.contentWindow.document;i&&(i.open(),i.write(this.preview_full_html),i.close(),this.loading_preview=!1,this.checkDoms(this.preview_full_html))},fetchHtml(){this.loading_preview=!0,this.showing_view=!0,this.$post("campaigns/email-preview-html",{campaign_id:this.campaign_id,disable_subscriber:"yes"}).then(e=>{this.preview_full_html=e.preview_html,this.$nextTick(()=>this.loadFrame())}).catch(e=>{this.handleError(e)}).finally(()=>{this.loading_preview=!1})},checkDoms(e){if(!this.show_audit)return;this.invalidDoms=[];const i=jQuery('a[href=""], a:not([href]), a[href="#"]',e);this.each(i,e=>{console.log(e),this.invalidDoms.push({text:e.text||"Empty Text / Image"})})}},mounted(){this.campaign_id?this.fetchHtml():this.loadFrame()}},c={class:"fc_iframe_wrap"},p={key:0},_={key:1,class:"el-alert el-alert--error is-light",style:{display:"block",overflow:"hidden",padding:"0 20px","margin-bottom":"0px"}},f={style:{"font-size":"16px"}},v={class:"inline_disc_lists"};const u=d(m,[["render",function(d,m,u,w,g,y){return e(),i("div",c,[g.loading_preview?(e(),i("h3",p,t(d.$t("Loading Preview. Please wait...")),1)):u.show_audit&&g.invalidDoms&&g.invalidDoms.length?(e(),i("div",_,[a("h3",f,t(d.$t("Invalid_Link_Detected"))+" ("+t(g.invalidDoms.length)+")",1),a("ul",v,[(e(!0),i(s,null,l(g.invalidDoms,(a,s)=>(e(),i("li",{key:s},t(a.text),1))),128))])])):r("",!0),n(a("iframe",{ref:"fc_ifr",frameborder:"0",scrolling:"auto",style:h([{width:"100%",border:"none",display:"block"},{height:u.frame_height}])},null,4),[[o,!g.loading_preview]])])}]]);export{u as P};
@@ -0,0 +1 @@
import{W as a,X as C,Z as e,a8 as s,a9 as t,aa as o}from"./vendor.js?ver=3.1.8";import{_ as r}from"./fc-bits-ui.js?ver=3.1.8";const n={name:"ProBadge",props:{text:{type:String,default:"Pro"},hideIcon:{type:Boolean,default:!1}}},i={class:"fcrm_pro_badge"},c={key:0,class:"icon"};const d=r(n,[["render",function(r,n,d,p,f,l){return a(),C("div",i,[d.hideIcon?s("",!0):(a(),C("span",c,[...n[0]||(n[0]=[e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M2.48 3.91951L5 5.59951L7.5116 2.08351C7.56711 2.00573 7.64038 1.94234 7.72533 1.89859C7.81028 1.85485 7.90445 1.83203 8 1.83203C8.09556 1.83203 8.18972 1.85485 8.27468 1.89859C8.35963 1.94234 8.4329 2.00573 8.4884 2.08351L11 5.59951L13.52 3.91951C13.6154 3.85606 13.7269 3.82124 13.8415 3.81915C13.956 3.81707 14.0687 3.84782 14.1663 3.90776C14.2639 3.96771 14.3424 4.05435 14.3923 4.15743C14.4423 4.26052 14.4617 4.37575 14.4482 4.48951L13.4624 12.8697C13.4452 13.0157 13.375 13.1502 13.2652 13.2479C13.1554 13.3455 13.0136 13.3995 12.8666 13.3995H3.1334C2.98644 13.3995 2.8446 13.3455 2.73478 13.2479C2.62496 13.1502 2.5548 13.0157 2.5376 12.8697L1.5518 4.48891C1.53848 4.3752 1.55798 4.26005 1.60798 4.15706C1.65798 4.05407 1.7364 3.96753 1.83399 3.90767C1.93158 3.8478 2.04426 3.81711 2.15873 3.81921C2.2732 3.82131 2.38468 3.85611 2.48 3.91951V3.91951ZM8 9.79951C8.31826 9.79951 8.62349 9.67308 8.84853 9.44804C9.07358 9.223 9.2 8.91777 9.2 8.59951C9.2 8.28125 9.07358 7.97603 8.84853 7.75098C8.62349 7.52594 8.31826 7.39951 8 7.39951C7.68174 7.39951 7.37652 7.52594 7.15148 7.75098C6.92643 7.97603 6.8 8.28125 6.8 8.59951C6.8 8.91777 6.92643 9.223 7.15148 9.44804C7.37652 9.67308 7.68174 9.79951 8 9.79951Z",fill:"var(--fc-warning)"})],-1)])])),t(" "+o(d.text),1)])}]]);export{d as P};
@@ -0,0 +1 @@
import{_ as a,I as o}from"./fc-bits-ui.js?ver=3.1.8";import{aQ as e,W as s,X as r,ab as n,a8 as t,Z as c,aa as i,_ as l,a9 as p,a0 as d}from"./vendor.js?ver=3.1.8";const u={name:"PromoCard",components:{Icons:o},props:{heading:{type:String,default:"This is a pro feature"},description:{type:String,default:"You need to upgrade to use this feature."},showUpgradeBtnIcon:{type:Boolean,default:!1},showHeaderUpgradeIcon:{type:Boolean,default:!0},align:{type:String,default:"center"}}},f={key:0,class:"fcrm_pro_icon"},m={class:"fcrm_pro_modal_actions"},g=["href"],_={key:0,class:"icon"};const h=a(u,[["render",function(a,o,u,h,y,b){const I=e("Icons");return s(),r("div",{class:d(["fcrm_pro_modal_body",`align-${u.align}`])},[u.showHeaderUpgradeIcon?(s(),r("div",f,[n(I,{"icon-name":"crown"})])):t("",!0),c("h3",null,i(u.heading),1),c("p",null,i(u.description),1),l(a.$slots,"before-cta"),c("div",m,[c("a",{href:a.appVars.crm_pro_url,target:"_blank",class:"el-button el-button--primary"},[c("span",null,[u.showUpgradeBtnIcon?(s(),r("span",_,[n(I,{"icon-name":"crown"})])):t("",!0),p(" "+i(a.$t("Upgrade to Pro")),1)])],8,g),l(a.$slots,"actions")]),l(a.$slots,"after-cta")],2)}]]);export{h as P};
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{k as e}from"./vendor-element-plus.js?ver=3.1.8";import{W as t,Y as a,a5 as o,X as n,a8 as s,a9 as d,aa as r}from"./vendor.js?ver=3.1.8";import{_ as i}from"./fc-bits-ui.js?ver=3.1.8";const l={name:"SaveButton",props:{loading:{type:Boolean,default:!1},text:{type:String,default:""},loadingText:{type:String,default:""}},emits:["save"],computed:{displayText(){return""===this.text?this.$t("Save"):this.text}},methods:{handleKeyboardShortcut(e){(e.metaKey||e.ctrlKey)&&"s"===e.key&&(e.preventDefault(),this.$emit("save"))}},mounted(){document.addEventListener("keydown",this.handleKeyboardShortcut)},beforeUnmount(){document.removeEventListener("keydown",this.handleKeyboardShortcut)}},m={key:0,class:"cmd"};const u=i(l,[["render",function(i,l,u,p,y,c){const v=e;return t(),a(v,{type:"primary",size:"small",onClick:l[0]||(l[0]=e=>i.$emit("save")),loading:u.loading},{default:o(()=>[u.loading?s("",!0):(t(),n("span",m,"⌘s")),d(" "+r(u.loading&&u.loadingText?u.loadingText:c.displayText),1)],void 0),_:1},8,["loading"])}]]);export{u as S};
@@ -0,0 +1 @@
import{e}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as o,W as s,Y as a,a5 as l,Z as t,ab as d,b2 as i}from"./vendor.js?ver=3.1.8";import{_ as r,I as n}from"./fc-bits-ui.js?ver=3.1.8";const m={props:{modelValue:{type:String,default:""},disabled:Boolean,placeholder:String},name:"Searcher",emits:["update:modelValue"],components:{Icons:n},data(){return{model:this.modelValue||"",timeout:null}},methods:{fire(){this.model&&(this.doAction("loading",!0),this.doAction("search-subscribers",this.model))}},watch:{modelValue(e){this.model=e||""},model:function(e,o){this.$emit("update:modelValue",e||""),e=(e||"").trim(),(o=(o||"").trim())&&!e&&(this.doAction("loading",!0),this.doAction("search-subscribers",this.model))},disabled(e){e&&(this.model="")}}},c={class:"icon"};const u=r(m,[["render",function(r,n,m,u,h,p){const b=o("Icons"),f=e;return s(),a(f,{size:"small",modelValue:h.model,"onUpdate:modelValue":n[0]||(n[0]=e=>h.model=e),onClear:p.fire,disabled:m.disabled,onKeyup:i(p.fire,["enter"]),placeholder:m.placeholder||r.$t("Search contacts"),autofocus:""},{prefix:l(()=>[t("span",c,[d(b,{"icon-name":"search"})])]),_:1},8,["modelValue","onClear","disabled","onKeyup","placeholder"])}]]);export{u as S};
@@ -0,0 +1 @@
import{aJ as e}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as t,W as s,X as n,ab as a,a5 as o,Z as i,a0 as r,_ as l,a9 as c,aa as p,a8 as u}from"./vendor.js?ver=3.1.8";import{_ as d,I as m}from"./fc-bits-ui.js?ver=3.1.8";const b={class:"fcrm_settings_topbar"},g={key:0,class:"fcrm_settings_topbar--breadcrumb"},_={key:1},f={key:2,class:"fcrm_settings_topbar--actions"};const M=d({name:"SettingsHeader",components:{Icons:m},inject:["toggleMenu","settingsState"],computed:{isMenuOpen(){return this.settingsState&&this.settingsState.isMenuOpen}},props:{title:{type:String,default:""}}},[["render",function(d,m,M,v,S,$){const O=t("Icons"),h=e;return s(),n("div",b,[d.$slots.breadcrumb?(s(),n("div",g,[a(h,{enterable:!1,transition:"none",content:$.isMenuOpen?d.$t("Close Sidebar"):d.$t("Open Sidebar"),placement:"right"},{default:o(()=>[i("span",{class:r(["fcrm_settings_menu_collapsable--btn",{"is-collapsed":$.isMenuOpen}]),onClick:m[0]||(m[0]=(...e)=>$.toggleMenu&&$.toggleMenu(...e))},[a(O,{"icon-name":"sidebar"})],2)],void 0),_:1},8,["content"]),l(d.$slots,"breadcrumb")])):(s(),n("h3",_,[a(h,{enterable:!1,transition:"none",content:$.isMenuOpen?d.$t("Close Sidebar"):d.$t("Open Sidebar"),placement:"right"},{default:o(()=>[i("span",{class:r(["fcrm_settings_menu_collapsable--btn",{"is-collapsed":$.isMenuOpen}]),onClick:m[1]||(m[1]=(...e)=>$.toggleMenu&&$.toggleMenu(...e))},[a(O,{"icon-name":"sidebar"})],2)],void 0),_:1},8,["content"]),c(" "+p(M.title)+" ",1),l(d.$slots,"afterTitle")])),d.$slots.actions?(s(),n("div",f,[l(d.$slots,"actions")])):u("",!0)])}]]);export{M as S};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{W as s,X as t,Z as e,_ as l,a8 as a,a0 as r}from"./vendor.js?ver=3.1.8";import{_ as i}from"./fc-bits-ui.js?ver=3.1.8";const o={key:0,class:"fcrm-label-title"},c={key:1,class:"fcrm-label-description"};const d=i({name:"SettingsRow",props:{rowClass:{type:[String,Array,Object],default:""},labelClass:{type:[String,Array,Object],default:""},fieldClass:{type:[String,Array,Object],default:""}}},[["render",function(i,d,f,n,p,b){return s(),t("div",{class:r(["fcrm-settings-row",f.rowClass])},[e("div",{class:r(["fcrm-settings-label",f.labelClass])},[l(i.$slots,"label",{},()=>[i.$slots.title?(s(),t("div",o,[l(i.$slots,"title")])):a("",!0),i.$slots.description?(s(),t("p",c,[l(i.$slots,"description")])):a("",!0)])],2),i.$slots.field?(s(),t("div",{key:0,class:r(["fcrm-settings-field",f.fieldClass])},[l(i.$slots,"field")],2)):l(i.$slots,"default",{key:1})],2)}]]);export{d as S};
@@ -0,0 +1 @@
import{aQ as s,W as e,X as a,Z as n,ab as t,a5 as l,a9 as m,aa as r,_ as o,J as i,a0 as d,a8 as c}from"./vendor.js?ver=3.1.8";import{_ as p,I as _}from"./fc-bits-ui.js?ver=3.1.8";import{k as g}from"./vendor-element-plus.js?ver=3.1.8";const u={class:"fcrm_page_header_top_nav_wrapper"},f={class:"fcrm_page_header_top_nav"},v={class:"fcrm_page_header_top_nav_links"};const x=p({name:"SmsTabNav"},[["render",function(i,d,c,p,_,g){const x=s("router-link");return e(),a("div",u,[n("div",f,[n("ul",v,[n("li",null,[t(x,{to:"/sms/campaigns",class:"fcrm_top_nav_link"},{default:l(()=>[m(r(i.$t("SMS Campaign")),1)],void 0),_:1})]),n("li",null,[t(x,{to:"/sms/all-sms",class:"fcrm_top_nav_link"},{default:l(()=>[m(r(i.$t("SMS Activities")),1)],void 0),_:1})])])]),o(i.$slots,"actions")])}]]),h={class:"fcrm_sms_message_cell"},S={key:0,class:"fcrm_sms_message_toggle"};const k=p({name:"SmsMessageCell",components:{Icons:_},props:{message:{type:String,default:""},maxLen:{type:Number,default:160}},data:()=>({expanded:!1}),computed:{displayedText(){return this.message?this.expanded||this.message.length<=this.maxLen?this.message:String(this.message).trim().slice(0,this.maxLen)+"…":""}}},[["render",function(o,p,_,u,f,v){const x=s("Icons"),k=g;return e(),a("div",h,[_.message?(e(),a(i,{key:1},[n("span",{class:d({fcrm_sms_message_cell_full:f.expanded})},r(v.displayedText),3),_.message.length>_.maxLen?(e(),a("span",S,[t(k,{link:"",onClick:p[0]||(p[0]=s=>f.expanded=!f.expanded)},{default:l(()=>[m(r(f.expanded?o.$t("See less"):o.$t("See more"))+" ",1),t(x,{"icon-name":f.expanded?"arrow-up":"arrow-down"},null,8,["icon-name"])],void 0),_:1})])):c("",!0)],64)):(e(),a(i,{key:0},[m("—")],64))])}]]);export{k as S,x as a};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{e,k as t,ay as s,aO as a}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as i,W as n,Y as l,a5 as _,Z as m,aa as c,ab as d,a6 as o,a9 as p,a0 as r,X as f,a8 as h}from"./vendor.js?ver=3.1.8";import{_ as g,I as u}from"./fc-bits-ui.js?ver=3.1.8";const y=window.fcAdmin.auth.email,b={name:"SendTestEmail",components:{Icons:u},props:{campaign:{type:Object,default:()=>({})},btn_text:{type:String,default:()=>""},btn_type:{type:String,default:()=>"default"},placement:{type:String,default:()=>"top"},btn_class:{type:String,default:()=>""},showIcon:{type:Boolean,default:()=>!0}},data:()=>({sending_test:!1,test_email:y}),methods:{sendTestEmail(){if(!this.campaign.email_body)return this.$notify.error({title:this.$t("Oops!"),message:this.$t("Cam_Please_peb"),offset:19});window.last_fc_test_email=this.test_email,this.sending_test=!0,this.$post("campaigns/send-test-email",{campaign:{id:this.campaign.id,settings:this.campaign.settings,email_subject:this.campaign.email_subject,subjects:this.campaign.subjects||[],email_pre_header:this.campaign.email_pre_header,email_body:this.campaign.email_body,design_template:this.campaign.design_template},test_campaign:"yes",email:this.test_email}).then(e=>{this.$notify.success(e.message)}).catch(e=>{this.handleError(e)}).finally(()=>{this.sending_test=!1})}},mounted(){window.last_fc_test_email&&(this.test_email=window.last_fc_test_email)}},v={class:"fcrm_send_test_email_content"},w={class:"fcrm_send_test_email_content_header"},S={class:"fcrm_send_test_email_title"},$={class:"fcrm_send_test_email_description"},j={class:"fcrm_send_test_email_content_footer"},k={class:"fcrm_send_test_email_input_wrap"},E={class:"fcrm_input_hint"},I={class:"icon"},C={key:0,class:"icon"};const T=g(b,[["render",function(g,u,y,b,T,x){const A=e,O=t,V=i("Icons"),P=a,W=s;return n(),l(P,{placement:y.placement,width:"400","popper-class":"fcrm_send_test_email_popover",trigger:"click"},{reference:_(()=>[d(O,{type:y.btn_type,class:r(y.btn_class)},{default:_(()=>[y.showIcon?(n(),f("span",C,[d(V,{"icon-name":"paperPlane"})])):h("",!0),p(" "+c(y.btn_text||g.$t("Send a test email")),1)],void 0,!0),_:1},8,["type","class"])]),default:_(()=>[m("div",v,[m("div",w,[m("h3",S,c(g.$t("Send a test email")),1),m("p",$,c(g.$t("Cam_Type_cetstolbtsc")),1)]),m("div",j,[m("div",k,[d(A,{placeholder:g.$t("Email Address"),modelValue:T.test_email,"onUpdate:modelValue":u[0]||(u[0]=e=>T.test_email=e)},null,8,["placeholder","modelValue"]),o((n(),l(O,{disabled:T.sending_test,onClick:u[1]||(u[1]=e=>x.sendTestEmail()),type:"primary"},{default:_(()=>[p(c(g.$t("Send")),1)],void 0,!0),_:1},8,["disabled"])),[[W,T.sending_test]])]),m("p",E,[m("span",I,[d(V,{"icon-name":"el-icon-info"})]),p(" "+c(g.$t("Some_SmartCode_Not_Work_Alert")),1)])])])],void 0),_:1},8,["placement"])}]]);export{T as S};
@@ -0,0 +1 @@
import{aQ as a,W as l,X as s,Z as t,ab as i,a5 as e,a9 as n,aa as o}from"./vendor.js?ver=3.1.8";import{_}from"./fc-bits-ui.js?ver=3.1.8";const r={class:"fcrm_page_header_top_nav_links"};const c=_({name:"TopNav"},[["render",function(_,c,m,u,p,v){const f=a("router-link");return l(),s("ul",r,[t("li",null,[i(f,{to:"/email/campaigns",class:"fcrm_top_nav_link"},{default:e(()=>[n(o(_.$t("Campaigns")),1)],void 0),_:1})]),t("li",null,[i(f,{to:"/email/recurring-campaigns",class:"fcrm_top_nav_link"},{default:e(()=>[n(o(_.$t("Recurring Campaigns")),1)],void 0),_:1})]),t("li",null,[i(f,{to:"/email/sequences",class:"fcrm_top_nav_link"},{default:e(()=>[n(o(_.$t("Sequences")),1)],void 0),_:1})]),t("li",null,[i(f,{to:"/email/templates",class:"fcrm_top_nav_link"},{default:e(()=>[n(o(_.$t("Templates")),1)],void 0),_:1})]),t("li",null,[i(f,{to:"/email/patterns",class:"fcrm_top_nav_link"},{default:e(()=>[n(o(_.$t("Patterns")),1)],void 0),_:1})]),t("li",null,[i(f,{to:"/email/all-emails",class:"fcrm_top_nav_link"},{default:e(()=>[n(o(_.$t("All Activities")),1)],void 0),_:1})])])}]]);export{c as T};
@@ -0,0 +1 @@
import{ay as e,aL as i,aK as t}from"./vendor-element-plus.js?ver=3.1.8";import{a6 as l,W as o,Y as a,a5 as s,X as d,J as n,az as r}from"./vendor.js?ver=3.1.8";import{_ as h}from"./fc-bits-ui.js?ver=3.1.8";const m=h({name:"AjaxSelector",props:["field","modelValue"],emits:["change","update:modelValue"],data(){return{model:this.modelValue,loading:!1,options:[]}},watch:{model(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},methods:{fetchOptions(e){let i=this.field.option_key;this.field.extended_key&&(i+="_"+this.field.extended_key);let t="";if(this.field.cacheable){if(t+="_fcrm_ajax_cache_"+i,window[t])return void(this.options=window[t])}else if(this.field.experimental_cache&&(t+="_fcrm_ajax_cache_"+i+"_"+e+" "+JSON.stringify(this.model),this.field.sub_option_key&&(t+="_"+JSON.stringify(this.field.sub_option_key)),window[t]))return void(this.options=window[t]);if(this.doing_ajax)return!1;this.loading=!0;const l={search:e,values:this.model,option_key:i};this.field.sub_option_key&&(l.sub_option_key=this.field.sub_option_key),this.$get("reports/ajax-options",l).then(e=>{this.options=e.options,t&&e.options&&(window[t]=e.options)}).catch(e=>{this.handleError(e)}).finally(()=>{this.loading=!1})}},mounted(){this.fetchOptions("")}},[["render",function(h,m,p,c,f,u){const _=i,b=t,y=e;return l((o(),a(b,{modelValue:f.model,"onUpdate:modelValue":m[0]||(m[0]=e=>f.model=e),multiple:p.field.is_multiple,filterable:"",remote:!p.field.cacheable,clearable:p.field.clearable,disabled:p.field.disabled,"reserve-keyword":"","allow-create":p.field.creatable,size:p.field.size,placeholder:p.field.placeholder||h.$t("Please enter a keyword"),"remote-method":u.fetchOptions},{default:s(()=>[(o(!0),d(n,null,r(f.options,e=>(o(),a(_,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","multiple","remote","clearable","disabled","allow-create","size","placeholder","remote-method"])),[[y,f.loading]])}]]);export{m as A};
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 e,k as t}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as i,a6 as s,W as a,X as n,Z as l,J as d,az as r,aa as o,ab as c,a5 as m,a9 as h,a8 as _}from"./vendor.js?ver=3.1.8";import u from"./v3app/src/Modules/Contacts/RichFilters/Filters.js?ver=3.1.8";import{_ as f,I as g}from"./fc-bits-ui.js?ver=3.1.8";const p={class:"fcrm_segment_fields"},v={class:"fcrm_rich_container"},b={class:"fcrm_rich_wrap"},y={class:"fcrm_rich_filter"},C={class:"fcrm_filter_group_header"},$={class:"fcrm_and_label"},E={key:0,class:"fcrm_cond_or"},F={class:"icon","aria-hidden":"true"},R={class:"fcrm_cond_or"},G={class:"icon","aria-hidden":"true"},k={key:0,class:"fcrm_estimated_count"},V={class:"fcrm_estimated_label"},j={class:"fcrm_estimated_badge"},x={class:"fcrm_estimated_badge_text"};const S=f({name:"customSegmentEditor",props:["modelValue","segment_id"],emits:["update:modelValue","loaded","updateSegment"],components:{Icons:g,RichFilter:u},data(){return{fields:{},loading:!1,filters:this.modelValue,estimated_count:"",estimating:!1,require_estimating:!1,FilterLabel:this.$t("Filters.instruction")}},watch:{filters:{deep:!0,handler(){this.$emit("update:modelValue",this.filters),this.require_estimating=!0,this.estimating?this.changed_in_time||(this.changed_in_time=!0):this.getEstimatedCount()}},modelValue(e){this.filters=e}},methods:{fetchFields(){this.loading=!0,this.$get("dynamic-segments/custom-fields").then(e=>{this.fields=e.fields,this.segment_id||(this.settings=e.settings_defaults),this.$emit("loaded")}).catch(e=>{this.handleError(e)}).finally(()=>{this.loading=!1})},getEstimatedCount(){this.estimating=!0,this.$post("dynamic-segments/estimated-contacts",{filters:this.filters}).then(e=>{this.estimated_count=e.count,this.changed_in_time&&(this.changed_in_time=!1,this.getEstimatedCount())}).catch(e=>{this.handleError(e)}).finally(()=>{this.estimating=!1})},addConditionGroup(){this.filters.push([])},maybeRemoveGroup(e){this.filters.length>1&&this.filters.splice(e,1)},fetch(){this.$emit("updateSegment"),this.getEstimatedCount()}},mounted(){this.fetchFields()}},[["render",function(u,f,g,S,z,I){const M=i("rich-filter"),q=i("Icons"),w=t,A=e;return s((a(),n("div",p,[l("div",v,[l("div",b,[(a(!0),n(d,null,r(z.filters,(e,t)=>(a(),n("div",{key:t},[l("div",y,[l("div",C,[l("div",$,o(u.$t("And")),1),c(M,{add_label:z.FilterLabel,button_text:u.$t("Add Property"),onMaybeRemove:e=>I.maybeRemoveGroup(t),items:e,canDeleteGroup:z.filters.length>1},null,8,["add_label","button_text","onMaybeRemove","items","canDeleteGroup"])])]),t<z.filters.length-1?(a(),n("div",E,[f[2]||(f[2]=l("div",{class:"fcrm_or_divider_line"},null,-1)),c(w,{size:"small",onClick:f[0]||(f[0]=e=>I.addConditionGroup())},{default:m(()=>[l("span",F,[c(q,{"icon-name":"plus"})]),h(" "+o(u.$t("OR")),1)],void 0),_:1}),f[3]||(f[3]=l("div",{class:"fcrm_or_divider_line"},null,-1))])):_("",!0)]))),128))]),l("div",R,[f[4]||(f[4]=l("div",{class:"fcrm_or_divider_line"},null,-1)),c(w,{size:"small",onClick:f[1]||(f[1]=e=>I.addConditionGroup())},{default:m(()=>[l("span",G,[c(q,{"icon-name":"plus"})]),h(" "+o(u.$t("OR")),1)],void 0),_:1}),f[5]||(f[5]=l("div",{class:"fcrm_or_divider_line"},null,-1))])]),""!==z.estimated_count?s((a(),n("div",k,[l("span",V,o(u.$t("Estimated Contacts Based on your Selection")),1),l("div",j,[l("span",x,o(z.estimated_count),1)])])),[[A,z.estimating]]):_("",!0)])),[[A,z.loading]])}]]);export{S as C};
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{az as e}from"./vendor-element-plus.js?ver=3.1.8";import{W as a,X as l,ab as s,a5 as t,Z as d,aa as o,a8 as i}from"./vendor.js?ver=3.1.8";import{_ as c}from"./fc-bits-ui.js?ver=3.1.8";const r={class:"fcrm_checkbox_row"},m={class:"fcrm_checkbox_text"},n={class:"fcrm_checkbox_text_title"},u={key:0,class:"fcrm_checkbox_text_desc"};const f=c({name:"InlineCheckbox",props:["field","modelValue"],emits:["update:modelValue"],data(){return{model:this.modelValue,isInternalUpdate:!1}},watch:{model(e){this.isInternalUpdate||this.$emit("update:modelValue",e)},modelValue(e){this.model!==e&&(this.isInternalUpdate=!0,this.model=e,this.$nextTick(()=>{this.isInternalUpdate=!1}))}}},[["render",function(c,f,b,h,p,_){const x=e;return a(),l("label",r,[s(x,{class:"fcrm_checkbox","true-value":b.field.true_label,disabled:b.field.disabled,"false-value":b.field.false_label,modelValue:p.model,"onUpdate:modelValue":f[0]||(f[0]=e=>p.model=e)},{default:t(()=>[d("div",m,[d("span",n,o(c.$t(b.field.checkbox_label)),1),b.field.checkbox_description?(a(),l("span",u,o(c.$t(b.field.checkbox_description)),1)):i("",!0)])],void 0),_:1},8,["true-value","disabled","false-value","modelValue"])])}]]);export{f as I};
@@ -0,0 +1 @@
import{_ as t}from"./fc-bits.js?ver=3.1.8";import{c1 as e,W as i,X as r,Z as l}from"./vendor.js?ver=3.1.8";import{_ as s}from"./fc-bits-ui.js?ver=3.1.8";const n={class:"fcrm_intl_tel_input"},a=["placeholder"];const o=s({name:"IntlTelInput",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:modelValue","validate","blur"],data:()=>({}),created(){this.iti=null},watch:{modelValue:{handler(t){if(!this.iti)return;const e=(t||"").trim();if(!e)return;let i="";try{i=this.iti.getNumber()||""}catch(r){}e!==i&&this.iti.setNumber(e)},immediate:!1}},mounted(){const i=this.$refs.inputRef;if(!i)return;this.iti=e(i,{initialCountry:"",preferredCountries:[],separateDialCode:!0,countrySearch:!0,formatAsYouType:!0,strictMode:!0,loadUtils:()=>t(()=>import("./vendor.js?ver=3.1.8").then(t=>t.c9),[],import.meta.url).catch(()=>null),customPlaceholder:()=>this.placeholder||this.$t("Enter phone number")}),this.modelValue&&this.iti.setNumber(this.modelValue);const r=()=>{let t="",e=!0;try{t=this.iti.getNumber()||"",e="function"==typeof this.iti.isValidNumber?this.iti.isValidNumber():!t||t.length>=10}catch(i){e=!t||t.length>=10}this.$emit("update:modelValue",t),this.$emit("validate",{number:t,valid:e})};i.addEventListener("input",r),i.addEventListener("blur",()=>{r(),this.$emit("blur")}),i.addEventListener("countrychange",r),this._emitNumber=r},beforeUnmount(){this.iti&&(this.iti.destroy(),this.iti=null)}},[["render",function(t,e,s,o,u,d){return i(),r("div",n,[l("input",{ref:"inputRef",type:"tel",placeholder:s.placeholder,autocomplete:"off",class:"fcrm_phone_tel_input"},null,8,a)])}]]);export{o as I};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{az as e,aw as l,aA as a,e as t,aD as m}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as o,W as i,X as s,ab as d,a5 as r,a9 as _,aa as n,Z as u,a8 as p}from"./vendor.js?ver=3.1.8";import{V as f}from"./_VerifiedEmailInput.js?ver=3.1.8";import{_ as v}from"./fc-bits-ui.js?ver=3.1.8";const c={key:0,class:"fcrm_highlight_gray fc_t_10"},g={style:{margin:"0",padding:"0","font-size":"10px"}};const V=v({name:"MailerSettings",components:{VerifiedEmailInput:f},props:{mailer_settings:{type:Object,default:()=>({from_name:"",from_email:"",reply_to_name:"",reply_to_email:"",is_custom:"no"})}},mounted(){}},[["render",function(f,v,V,y,b,h){const $=e,E=l,j=t,F=a,N=o("verified-email-input"),U=m;return i(),s("div",null,[d(E,null,{default:r(()=>[d($,{"true-value":"yes","false-value":"no",modelValue:V.mailer_settings.is_custom,"onUpdate:modelValue":v[0]||(v[0]=e=>V.mailer_settings.is_custom=e)},{default:r(()=>[_(n(f.$t("Vie_Set_CFNaE")),1)],void 0,!0),_:1},8,["modelValue"])],void 0),_:1}),"yes"==V.mailer_settings.is_custom?(i(),s("div",c,[d(U,{gutter:20},{default:r(()=>[d(F,{md:12,sm:24},{default:r(()=>[d(E,{label:f.$t("From Name")},{default:r(()=>[d(j,{placeholder:f.$t("From Name"),modelValue:V.mailer_settings.from_name,"onUpdate:modelValue":v[1]||(v[1]=e=>V.mailer_settings.from_name=e)},null,8,["placeholder","modelValue"])],void 0,!0),_:1},8,["label"])],void 0,!0),_:1}),d(F,{md:12,sm:24},{default:r(()=>[d(E,{label:f.$t("From Email")},{default:r(()=>[d(N,{modelValue:V.mailer_settings.from_email,"onUpdate:modelValue":v[2]||(v[2]=e=>V.mailer_settings.from_email=e),field:{placeholder:f.$t("From Email"),"data-type":"email"}},null,8,["modelValue","field"]),u("p",g,n(f.$t("Vie_Please_msteisbyS")),1)],void 0,!0),_:1},8,["label"])],void 0,!0),_:1})],void 0),_:1}),d(U,{gutter:20},{default:r(()=>[d(F,{md:12,sm:24},{default:r(()=>[d(E,{label:f.$t("Reply To Name")},{default:r(()=>[d(j,{placeholder:f.$t("Reply To Name"),modelValue:V.mailer_settings.reply_to_name,"onUpdate:modelValue":v[3]||(v[3]=e=>V.mailer_settings.reply_to_name=e)},null,8,["placeholder","modelValue"])],void 0,!0),_:1},8,["label"])],void 0,!0),_:1}),d(F,{md:12,sm:24},{default:r(()=>[d(E,{label:f.$t("Reply To Email")},{default:r(()=>[d(j,{placeholder:f.$t("Reply To Email"),modelValue:V.mailer_settings.reply_to_email,"onUpdate:modelValue":v[4]||(v[4]=e=>V.mailer_settings.reply_to_email=e)},null,8,["placeholder","modelValue"])],void 0,!0),_:1},8,["label"])],void 0,!0),_:1})],void 0),_:1})])):p("",!0)])}]]);export{V as M};
@@ -0,0 +1 @@
import{p as t}from"./input-popover-dropdown.js?ver=3.1.8";import{aQ as o,W as e,Y as s}from"./vendor.js?ver=3.1.8";import{_ as a}from"./fc-bits-ui.js?ver=3.1.8";const d=a({name:"MergeCodes",components:{popover:t},props:["extra_tags","button_text"],data:()=>({editorShortcodes:[]}),methods:{handleCommand(t){this.copyItem(t)},copyItem(t){this.copy_success=!1;let o=!1;if(window.clipboardData&&window.clipboardData.setData)window.clipboardData.clipboardData.setData("Text",t),o=!0;else if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const s=document.createElement("textarea");s.textContent=t,s.style.position="fixed",document.body.appendChild(s),s.select();try{document.execCommand("copy"),o=!0}catch(e){console.warn("Copy to clipboard failed.",e),o=!1}finally{document.body.removeChild(s)}}o?(this.copy_success=!0,this.$notify({message:this.$t("Smartcode has been copied to your clipboard"),position:"bottom-right",customClass:"bottom_right fc_notify_z",type:"success"})):this.$notify({message:this.$t("Your Browser does not support JS copy. Please copy manually"),position:"bottom-right",customClass:"bottom_right",type:"error"})}},mounted(){this.extra_tags&&this.extra_tags.length&&this.editorShortcodes.push(...this.extra_tags),window.fcAdmin.globalSmartCodes&&this.editorShortcodes.push(...window.fcAdmin.globalSmartCodes),window.fcAdmin.extendedSmartCodes&&this.editorShortcodes.push(...window.fcAdmin.extendedSmartCodes)}},[["render",function(t,a,d,r,n,i){const c=o("popover");return e(),s(c,{doc_url:"https://fluentcrm.com/docs/merge-codes-smart-codes-usage/",style:{display:"inline-block"},btnType:"text",buttonText:d.button_text?d.button_text:"{ }",class:"popover-wrapper",data:n.editorShortcodes,onCommand:i.handleCommand},null,8,["buttonText","data","onCommand"])}]]);export{d as M};
@@ -0,0 +1 @@
import{ay as e,aL as t,aK as i,e as s,k as l,aO as a}from"./vendor-element-plus.js?ver=3.1.8";import{W as o,X as d,Z as n,a6 as r,Y as p,a5 as m,J as h,az as c,aa as f,a8 as _,ab as u,a9 as y,a0 as w}from"./vendor.js?ver=3.1.8";import{_ as g}from"./fc-bits-ui.js?ver=3.1.8";const v={class:"w-full"},V=["textContent"],b={class:"fcrm_option_selector d-flex items-center gap-8"},k={key:0,class:"fcrm_field_inline_help"};const $=g({name:"OptionSelector",props:["modelValue","field","placement","effect","popper_class"],emits:["element_ready","renew_options","update:modelValue"],data(){return{options:{},model:this.modelValue&&Array.isArray(this.modelValue)?this.modelValue.map(String):this.modelValue,element_ready:!1,new_item:"",creating:!1,isInternalUpdate:!1}},watch:{model(e){this.isInternalUpdate||this.$emit("update:modelValue",e)},modelValue(e){const t=e&&Array.isArray(e)?e.map(String):e;JSON.stringify(this.model)!==JSON.stringify(t)&&(this.isInternalUpdate=!0,this.model=t,this.$nextTick(()=>{this.isInternalUpdate=!1}))}},methods:{getOptions(){this.app_ready=!1;const e={fields:"editable_statuses,"+this.field.option_key};this.$get("reports/options",e).then(e=>{window.fc_options_cache=e.options,this.options=e.options,this.element_ready=!0,this.$emit("element_ready")}).catch(e=>{this.handleError(e)}).finally(()=>{})},createNewItem(){if(this.creating=!0,!this.new_item.length)return this.$notify.error("Provide name Field is required"),!1;this.$post(this.field.option_key+"/bulk",{items:[{title:this.new_item}]}).then(e=>{this.$notify.success(e.message),this.getOptions(),e.ids&&e.ids[0]&&(this.field.is_multiple?this.model=[...this.model,String(e.ids[0])]:this.model=String(e.ids[0])),this.new_item="","tags"==this.field.option_key?this.$bus.emit("renew_options","tag"):"lists"==this.field.option_key&&this.$bus.emit("renew_options","list")}).catch(e=>{this.handleError(e)}).finally(()=>{this.creating=!1})}},mounted(){this.field.is_multiple&&"object"!=typeof this.modelValue&&(this.model=[]),"tags"==this.field.option_key?(this.options[this.field.option_key]=this.appVars.available_tags,this.element_ready=!0,this.$emit("element_ready")):"lists"==this.field.option_key?(this.options[this.field.option_key]=this.appVars.available_lists,this.element_ready=!0,this.$emit("element_ready")):window.fc_options_cache&&window.fc_options_cache[this.field.option_key]?(this.options=window.fc_options_cache,this.element_ready=!0,this.$emit("element_ready")):this.getOptions()}},[["render",function(g,$,x,O,S,I){const H=t,N=i,U=s,A=l,j=a,z=e;return o(),d("div",v,[n("div",{class:w(["fcrm_options_selector",x.field.creatable?"fcrm_option_creatable":""])},[r((o(),p(N,{disabled:x.field.disabled,size:x.field.size,modelValue:S.model,"onUpdate:modelValue":$[0]||($[0]=e=>S.model=e),class:"fcrm_options","value-key":"id",multiple:x.field.is_multiple,placeholder:x.field.placeholder,clearable:"",filterable:"",effect:x.effect||x.field.effect,"popper-class":x.popper_class||x.field.popper_class||x.field.popperClass,teleported:!1!==x.field.teleported},{default:m(()=>[S.element_ready?(o(!0),d(h,{key:0},c(S.options[x.field.option_key],e=>(o(),p(H,{key:e.id,value:Number.isInteger(e.id)?String(e.id):e.id,label:e.title},{default:m(()=>[n("span",{textContent:f(e.title)},null,8,V)],void 0,!0),_:2},1032,["value","label"]))),128)):_("",!0)],void 0),_:1},8,["disabled","size","modelValue","multiple","placeholder","effect","popper-class","teleported"])),[[z,!S.element_ready]]),x.field.creatable&&!x.field.disabled?(o(),p(j,{key:0,placement:x.placement?x.placement:"left",width:250,trigger:"click"},{reference:m(()=>[u(A,{class:"fcrm_with_select",type:"info"},{default:m(()=>[...$[3]||($[3]=[n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[n("path",{d:"M9.25 9.25V4.75H10.75V9.25H15.25V10.75H10.75V15.25H9.25V10.75H4.75V9.25H9.25Z",fill:"var(--fc-secondary-text)"})],-1)])],void 0,!0),_:1})]),default:m(()=>[n("div",b,[u(U,{placeholder:g.$t("Provide Name"),modelValue:S.new_item,"onUpdate:modelValue":$[1]||($[1]=e=>S.new_item=e)},null,8,["placeholder","modelValue"]),u(A,{onClick:$[2]||($[2]=e=>I.createNewItem()),type:"primary"},{default:m(()=>[y(f(g.$t("Add")),1)],void 0,!0),_:1})])],void 0),_:1},8,["placement"])):_("",!0)],2),x.field.inline_help?(o(),d("span",k,f(x.field.inline_help),1)):_("",!0)])}]]);export{$ as O};
@@ -0,0 +1 @@
import{aE as e,aF as s,aQ as t,ay as i,k as n,g as a}from"./vendor-element-plus.js?ver=3.1.8";import{W as d,Y as l,a5 as c,a6 as u,X as r,Z as o,aa as p,ab as h,J as f,az as S,a0 as b,a9 as m,a8 as v}from"./vendor.js?ver=3.1.8";import{_}from"./fc-bits-ui.js?ver=3.1.8";const q={class:"fc_step_picker"},g={class:"fc_step_picker_hint"},y={class:"dialog-footer"};const $=_({name:"StepPicker",props:{funnelSubscriber:{type:Object,required:!0},sequences:{type:Array,default:null},funnelId:{type:[Number,String],required:!0}},emits:["close","advanced"],data:()=>({visible:!0,selectedStepId:null,advancing:!1,loadingSequences:!1,fetchedSequences:[]}),computed:{resolvedSequences(){return this.sequences||this.fetchedSequences},advancableSequences(){return this.resolvedSequences.filter(e=>"conditional"!==e.type)},currentSequence(){return this.resolvedSequences.find(e=>e.id==this.funnelSubscriber.next_sequence_id)}},methods:{isCurrent(e){return e.id==this.funnelSubscriber.next_sequence_id},getDefaultStepId(){return this.funnelSubscriber.next_sequence_id||null},isCompletedStep(e){const s=this.currentSequence;return!!s&&e.sequence<s.sequence},fetchSequences(){this.loadingSequences=!0,this.$get(`funnels/${this.funnelId}/subscribers/${this.funnelSubscriber.subscriber_id}`).then(e=>{this.fetchedSequences=e.sequences||[],this.selectedStepId=this.getDefaultStepId()}).catch(e=>{this.handleError(e)}).finally(()=>{this.loadingSequences=!1})},executeAdvance(){this.selectedStepId&&(this.advancing=!0,this.$post(`funnels/${this.funnelId}/subscribers/${this.funnelSubscriber.subscriber_id}/advance`,{sequence_id:this.selectedStepId}).then(e=>{this.$notify.success(e.message),this.$emit("advanced")}).catch(e=>{this.handleError(e)}).finally(()=>{this.advancing=!1}))}},mounted(){this.sequences?this.selectedStepId=this.getDefaultStepId():this.fetchSequences()}},[["render",function(_,$,I,k,C,x){const V=t,A=s,j=e,w=n,z=a,D=i;return d(),l(z,{modelValue:C.visible,"onUpdate:modelValue":$[3]||($[3]=e=>C.visible=e),title:_.$t("Advance to Step"),width:"520px","append-to-body":!0,class:"fc_step_picker_dialog",onClose:$[4]||($[4]=e=>_.$emit("close"))},{footer:c(()=>[o("span",y,[h(w,{onClick:$[1]||($[1]=e=>_.$emit("close"))},{default:c(()=>[m(p(_.$t("Cancel")),1)],void 0,!0),_:1}),h(w,{type:"primary",loading:C.advancing,disabled:!C.selectedStepId,onClick:$[2]||($[2]=e=>x.executeAdvance())},{default:c(()=>[m(p(_.$t("Advance")),1)],void 0,!0),_:1},8,["loading","disabled"])])]),default:c(()=>[u((d(),r("div",q,[o("p",g,p(_.$t("Select the step to advance this subscriber to. The selected step will be executed immediately.")),1),h(j,{modelValue:C.selectedStepId,"onUpdate:modelValue":$[0]||($[0]=e=>C.selectedStepId=e),class:"fluentcrm_line_items"},{default:c(()=>[(d(!0),r(f,null,S(x.advancableSequences,e=>(d(),l(A,{key:e.id,value:e.id,disabled:x.isCompletedStep(e),class:b({"is-current":x.isCurrent(e),"is-completed":x.isCompletedStep(e),fc_step_conditional:!!e.condition_type})},{default:c(()=>[m(p(e.title)+" ",1),x.isCurrent(e)?(d(),l(V,{key:0,size:"small",type:"info"},{default:c(()=>[m(p(_.$t("Next")),1)],void 0,!0),_:1})):v("",!0),"benchmark"===e.type?(d(),l(V,{key:1,size:"small",type:"warning"},{default:c(()=>[m(p(_.$t("Goal")),1)],void 0,!0),_:1})):v("",!0)],void 0,!0),_:2},1032,["value","disabled","class"]))),128))],void 0,!0),_:1},8,["modelValue"])])),[[D,C.loadingSequences]])],void 0),_:1},8,["modelValue","title"])}]]);export{$ as S};
@@ -0,0 +1 @@
import{ay as e,aL as l,aK as o}from"./vendor-element-plus.js?ver=3.1.8";import{a6 as t,W as a,Y as s,a5 as i,X as d,J as r,az as m}from"./vendor.js?ver=3.1.8";import{_ as n}from"./fc-bits-ui.js?ver=3.1.8";const h=n({name:"TaxonomySelector",props:["field","modelValue"],emits:["update:modelValue"],data(){return{model:this.modelValue,loading:!1,options:[]}},watch:{model(e){this.$emit("update:modelValue",e)}},methods:{fetchOptions(e){this.loading=!0,this.$get("reports/taxonomy-terms",{search:e,values:this.model,taxonomy:this.field.taxonomy}).then(e=>{this.options=e.options}).catch(e=>{this.handleError(e)}).finally(()=>{this.loading=!1})}},mounted(){this.fetchOptions("")}},[["render",function(n,h,p,u,f,c){const v=l,y=o,b=e;return t((a(),s(y,{modelValue:f.model,"onUpdate:modelValue":h[0]||(h[0]=e=>f.model=e),multiple:p.field.is_multiple,filterable:"",remote:"","reserve-keyword":"",disabled:p.field.disabled,size:p.field.size,placeholder:p.field.placeholder||n.$t("Please enter a keyword"),"remote-method":c.fetchOptions},{default:i(()=>[(a(!0),d(r,null,m(f.options,e=>(a(),s(v,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","multiple","disabled","size","placeholder","remote-method"])),[[b,f.loading]])}]]);export{h as T};
@@ -0,0 +1 @@
import{aL as e,aK as l,k as a,g as i}from"./vendor-element-plus.js?ver=3.1.8";import{W as d,X as t,Y as o,a5 as s,J as n,az as r,a6 as m,c3 as u,ab as c,Z as p,a9 as f,aa as h,a8 as g}from"./vendor.js?ver=3.1.8";import{_ as V}from"./fc-bits-ui.js?ver=3.1.8";const v={style:{width:"100%"}},b=["type","placeholder"],C={key:2},k={class:"fc-verified-email-input-dialog-footer"};const y=V({name:"VerifiedEmailInput",props:["field","modelValue"],emits:["update:modelValue"],data(){return{selectedMail:this.modelValue,model:this.modelValue,dialogWarningVisible:!1,warningMessage:this.$t("Warning default email change")}},watch:{model(e){this.$emit("update:modelValue",e),null!=e&&e!=this.selectedMail&&(this.dialogWarningVisible=!0),null!=e&&e==this.selectedMail&&(this.dialogWarningVisible=!1)}},methods:{cancelChangeDefaultEmail(){this.model=this.selectedMail,this.dialogWarningVisible=!1},confirmChangeDefaultEmail(){this.dialogWarningVisible=!1,this.selectedMail=this.model}}},[["render",function(V,y,w,W,_,M){const E=e,$=l,D=a,j=i;return d(),t("div",v,[V.appVars.verified_senders.length?(d(),o($,{key:0,placeholder:w.field.placeholder,filterable:"","allow-create":"",modelValue:_.model,"onUpdate:modelValue":y[0]||(y[0]=e=>_.model=e)},{default:s(()=>[(d(!0),t(n,null,r(V.appVars.verified_senders,e=>(d(),o(E,{key:e,value:e},null,8,["value"]))),128))],void 0),_:1},8,["placeholder","modelValue"])):m((d(),t("input",{key:1,type:w.field.data_type,placeholder:w.field.placeholder,"onUpdate:modelValue":y[1]||(y[1]=e=>_.model=e),class:"fc-input-email"},null,8,b)),[[u,_.model]]),w.field.show_warning?(d(),t("div",C,[c(j,{title:V.$t("Confirm"),modelValue:_.dialogWarningVisible,"onUpdate:modelValue":y[2]||(y[2]=e=>_.dialogWarningVisible=e),"close-on-click-modal":!1,"append-to-body":!0,width:"30%"},{footer:s(()=>[p("span",k,[c(D,{onClick:M.cancelChangeDefaultEmail},{default:s(()=>[f(h(V.$t("Cancel")),1)],void 0,!0),_:1},8,["onClick"]),c(D,{type:"warning",onClick:M.confirmChangeDefaultEmail},{default:s(()=>[f(h(V.$t("Continue")),1)],void 0,!0),_:1},8,["onClick"])])]),default:s(()=>[p("span",null,[f(h(_.warningMessage+" "),1),p("strong",null,h(_.model+"."),1)])],void 0),_:1},8,["title","modelValue"])])):g("",!0)])}]]);export{y as V};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{q as e,k as s,c4 as a,v as t,W as r,X as o,Z as n,$ as i,a8 as d,r as l,d as p}from"./vendor.js?ver=3.1.8";import{_ as c}from"./fc-bits-ui.js?ver=3.1.8";const h={class:"echart-container-wrapper"},u={key:0,class:"fcrm-chart-placeholder"};const v=c({name:"FreshChart",props:{options:{type:Object,default:null},height:{type:[Number,String],default:400}},setup(r){const o=l(null);let n=null;const i=p(()=>!!r.options&&(!!Array.isArray(r.options.series)&&r.options.series.some(e=>Array.isArray(e.data)&&e.data.length>0))),d=()=>{n&&n.resize()};return e(()=>{o.value&&(n=a(o.value),n.setOption(r.options||{},!0),window.addEventListener("resize",d))}),s(()=>r.options,e=>{o.value&&(n||(n=a(o.value),window.addEventListener("resize",d)),e&&n.setOption(e,!0))},{deep:!0}),t(()=>{n&&(window.removeEventListener("resize",d),n.dispose())}),{chartRef:o,hasData:i}}},[["render",function(e,s,a,t,l,p){return r(),o("div",h,[n("div",{ref:"chartRef",class:"chart-container",style:i("height:"+a.height+"px;")},null,4),t.hasData?d("",!0):(r(),o("div",u," Chart placeholder (ECharts not loaded or data is empty) "))])}],["__scopeId","data-v-5d01edb6"]]);export{v as E};
@@ -0,0 +1 @@
import{K as e,_ as s,R as a,am as t,u as n,aQ as i}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as l,W as o,X as c,ab as r,a5 as p,Z as m,a9 as d,aa as f,Y as u,a8 as _}from"./vendor.js?ver=3.1.8";import{_ as v,I as k}from"./fc-bits-ui.js?ver=3.1.8";const y={key:0,class:"fcrm_block_stats"},z={class:"icon"},j={class:"icon"},b={class:"icon"},g=["innerHTML"],w={class:"icon"},I={class:"icon"};const M=v({name:"reportWidget",components:{Icons:k,User:n,Bottom:t,Money:a,FolderOpened:s,Position:e},props:["stat"]},[["render",function(e,s,a,t,n,v){const k=l("Icons"),M=i;return a.stat?(o(),c("div",y,[r(M,{size:"small",effect:"plain"},{default:p(()=>[m("span",z,[r(k,{"icon-name":"user"})]),d(" "+f(a.stat.count),1)],void 0),_:1}),r(M,{size:"small",effect:"plain"},{default:p(()=>[d(f(a.stat.percent)+"% ",1)],void 0),_:1}),a.stat.drop_percent?(o(),u(M,{key:0,size:"small",type:"danger",effect:"plain"},{default:p(()=>[m("span",j,[r(k,{"icon-name":"arrow-long-down"})]),d(" "+f(a.stat.drop_percent)+"% ",1)],void 0),_:1})):_("",!0),a.stat.revenues?(o(),u(M,{key:1,size:"small",effect:"plain"},{default:p(()=>[m("span",b,[r(k,{"icon-name":"wallet"})]),m("span",{innerHTML:a.stat.revenues.join(" | ")},null,8,g)],void 0),_:1})):_("",!0),a.stat.email_opens?(o(),u(M,{key:2,title:e.$t("Email Open (estimated)"),size:"small",effect:"plain"},{default:p(()=>[m("span",w,[r(k,{"icon-name":"envelopeOpen"})]),d(" "+f(a.stat.email_opens),1)],void 0),_:1},8,["title"])):_("",!0),a.stat.link_clicks?(o(),u(M,{key:3,title:e.$t("Clicks Count"),size:"small",effect:"plain"},{default:p(()=>[m("span",I,[r(k,{"icon-name":"click"})]),d(" "+f(a.stat.link_clicks),1)],void 0),_:1},8,["title"])):_("",!0)])):_("",!0)}]]);export{M as R};
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
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{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};
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 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};
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{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};
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{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};
@@ -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

Some files were not shown because too many files have changed in this diff Show More