Initial commit
This commit is contained in:
commit
22a1006598
1816 files changed
+410742
No files matched your search
@@ -0,0 +1 @@
|
||||
import{aA as e,aB as t,aC as i,aD as a,ay as s,aw as n,aE as l,aF as o,aG as d,az as r,ax as c,k as u,U as _,E as m,g as h}from"../../vendor-element-plus.js?ver=3.1.8";import{W as p,X as g,a6 as f,ac as v,Z as y,$ as w,ab as V,a5 as b,a9 as k,Y as x,aa as C,J as T,az as B,aQ as $,a8 as E,aK as F}from"../../vendor.js?ver=3.1.8";import{_ as S}from"../../fc-bits-ui.js?ver=3.1.8";import{M as D}from"../../_MergeCodes.js?ver=3.1.8";import"../../input-popover-dropdown.js?ver=3.1.8";const I={class:"fc_iframe_wrap"};const R={style:{padding:"20px"}},M={style:{padding:"14px","text-align":"left"}},z={style:{"text-align":"center"}},L={style:{"text-align":"left"}};const P={key:0,class:"fc_visual_builder_wrap"},U={key:0,class:"fc_visual_wrap"},j={class:"fc_visual_preview_inline"},W={class:"fc_visual_intro"},N={key:0,class:"fc_visual_starter"},A={class:"fc_visual_blocks"},O=["onClick"],J=["src","alt"],Q={key:2,style:{position:"absolute",right:"2px"}},Y={class:"fc_builder_modal_wrap"},H={class:"fc_visual_modal"},q={key:0},G={class:"fc_editor_header"},K={class:"fc_head_left"},X=["src"],Z={class:"fc_head_right"},ee={class:"fc_visual_parent"},te=["src"],ie={key:1},ae={key:0,class:"fc_visual_starter"},se={class:"fc_visual_blocks"},ne=["onClick"],le=["src","alt"],oe={key:1,style:{background:"white"}},de=["src"];const re=S({name:"VisualEditor",props:["modelValue","campaign","extra_tags"],emits:["save","update:modelValue"],components:{IframeBuilder:S({name:"IframeBuilder",props:{preview_html:{type:String,default:()=>""},frame_height:{type:String,default:()=>"500px"}},data:()=>({loading_preview:!0}),methods:{loadFrame(){const e=this.$refs.fc_ifr.attachShadow({mode:"closed"}),t=document.createElement("div");t.innerHTML=this.preview_html,e.appendChild(t),this.loading_preview=!1,this.loading_preview=!1}},mounted(){this.loadFrame()}},[["render",function(e,t,i,a,s,n){return p(),g("div",I,[f(y("div",{ref:"fc_ifr",style:w([{width:"100%",height:"500px",overflow:"auto"},{height:i.frame_height}])},null,4),[[v,!s.loading_preview]])])}]]),MergeCodes:D,LoaderSkeleton:S({name:"LoaderSkeleton"},[["render",function(s,n,l,o,d,r){const c=e,u=i,_=a,m=t;return p(),g("div",R,[V(_,{gutter:30},{default:b(()=>[V(c,{span:5},{default:b(()=>[...n[0]||(n[0]=[k(".",-1)])],void 0,!0),_:1}),V(c,{span:9},{default:b(()=>[V(m,{animated:""},{template:b(()=>[V(u,{variant:"image",style:{height:"240px"}}),V(u,{variant:"h3",style:{width:"50%",margin:"20px auto"}}),y("div",M,[y("div",z,[V(u,{variant:"text",style:{width:"30%"}}),V(u,{variant:"text"}),V(u,{variant:"text"})]),V(_,{gutter:30},{default:b(()=>[V(c,{span:12},{default:b(()=>[V(u,{variant:"image",style:{height:"140px",margin:"20px 0"}})],void 0,!0),_:1}),V(c,{span:12},{default:b(()=>[V(u,{variant:"image",style:{height:"140px",margin:"20px 0"}})],void 0,!0),_:1})],void 0,!0),_:1}),y("div",L,[V(u,{variant:"text"}),V(u,{variant:"text"}),V(u,{variant:"text",style:{width:"30%"}})])])]),_:1})],void 0,!0),_:1}),V(c,{span:5},{default:b(()=>[...n[1]||(n[1]=[k(".",-1)])],void 0,!0),_:1}),V(c,{span:4},{default:b(()=>[V(m,{rows:12,animated:""}),V(m,{animated:"",rows:3})],void 0,!0),_:1}),V(c,{span:1},{default:b(()=>[V(m,{rows:6})],void 0,!0),_:1})],void 0),_:1})])}]]),DisplayCondition:S({name:"DisplayCondition",props:["existing_tag","editing_condition"],emits:["insertTag"],data:()=>({form:{selected_tags:[],display_type:"show_if_tag_exist"},loading:!1}),computed:{tags(){const e={};return this.each(this.appVars.available_tags,t=>{e[t.id]=t}),e}},methods:{fireCondition(){const e=[];if(this.each(this.form.selected_tags,t=>{this.tags[t]?e.push(this.tags[t].title):delete this.form.selected_tags[t]}),!this.form.selected_tags||!this.form.selected_tags.length)return void this.$notify.error(this.$t("Please select at least one tag"));let t=this.$t("Show if in tags:");"show_if_tag_not_exist"==this.form.display_type&&(t=this.$t("Show if not in tags:"));const i={type:"check_contact_tag",label:t,description:e.join(", "),before:'<p style="opacity: 0;height: 0;margin: 0;">[fc_vis_cond type=\''+this.form.display_type+"' values='"+this.form.selected_tags.join("|")+"']</p>",after:'<p style="opacity: 0;height: 0;margin: 0;">[/fc_vis_cond]</p>'};this.$emit("insertTag",i)},parseExitingCondition(){if(!this.editing_condition||!this.editing_condition.before)return;this.loading=!0;let e=this.editing_condition.before.match(/\[fc_vis_cond ([^\]]*)\]/)[1];e=e.split(" ");var t={};for(const i in e){const a=e[i].split("='");t[a[0]]=a[1].replace(/'/g,"")}t.type&&(this.form.display_type=t.type),t.values&&(this.form.selected_tags=t.values.split("|")),this.loading=!1}},mounted(){this.parseExitingCondition()}},[["render",function(e,t,i,a,_,m){const h=o,v=l,y=n,w=r,$=d,E=c,F=u,S=s;return p(),g("div",null,[f((p(),x(E,{"label-position":"top",model:_.form},{default:b(()=>[V(y,{label:e.$t("CONDITION TYPE")},{default:b(()=>[V(v,{modelValue:_.form.display_type,"onUpdate:modelValue":t[0]||(t[0]=e=>_.form.display_type=e)},{default:b(()=>[V(h,{value:"show_if_tag_exist"},Line truncated
|
||||
Reference in new issue
Block a user