import{x as R,y as K}from"./setting.299e0353.js";import{p as F,d as E,ar as T,r as w,o as q,a_ as H,ds as G,dt as Y,L as k,y as B,s as W,b as $,e as M,f as z,h as c,u as f,q as J,n as Q,_ as X,c as C,i as g,F as Z,g as U,m as ee}from"./index.76214426.js";import{M as ne}from"./index.b661d9c5.js";import{F as te}from"./index.8bb06e66.js";import"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.45576b33.js";import"./vuedraggable.umd.e261f12f.js";import"./index.ac274cf8.js";import"./index.6fdd4b98.js";import"./sort_out.f3d53300.js";var ae=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],ie=function(e){return ae.map(function(n){return n.toLowerCase()}).indexOf(e.toLowerCase())!==-1},oe=function(e,n,t){Object.keys(n).filter(ie).forEach(function(o){var r=n[o];typeof r=="function"&&(o==="onInit"?r(e,t):t.on(o.substring(2),function(a){return r(a,t)}))})},re=function(e,n,t,o){var r=e.modelEvents?e.modelEvents:null,a=Array.isArray(r)?r.join(" "):r;F(o,function(u,l){t&&typeof u=="string"&&u!==l&&u!==t.getContent({format:e.outputFormat})&&t.setContent(u)}),t.on(a||"change input undo redo",function(){n.emit("update:modelValue",t.getContent({format:e.outputFormat}))})},le=function(e,n,t,o,r,a){o.setContent(a()),t.attrs["onUpdate:modelValue"]&&re(n,t,o,r),oe(e,t.attrs,o)},x=0,j=function(e){var n=Date.now(),t=Math.floor(Math.random()*1e9);return x++,e+"_"+t+x+String(n)},ue=function(e){return e!==null&&e.tagName.toLowerCase()==="textarea"},D=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},se=function(e,n){return D(e).concat(D(n))},de=function(e){return e==null},A=function(){return{listeners:[],scriptId:j("tiny-script"),scriptLoaded:!1}},ce=function(){var e=A(),n=function(r,a,u,l){var i=a.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=r,i.src=u;var m=function(){i.removeEventListener("load",m),l()};i.addEventListener("load",m),a.head&&a.head.appendChild(i)},t=function(r,a,u){e.scriptLoaded?u():(e.listeners.push(u),r.getElementById(e.scriptId)||n(e.scriptId,r,a,function(){e.listeners.forEach(function(l){return l()}),e.scriptLoaded=!0}))},o=function(){e=A()};return{load:t,reinitialize:o}},fe=ce(),me=function(){return typeof window<"u"?window:global},y=function(){var e=me();return e&&e.tinymce?e.tinymce:null},ve={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return e==="html"||e==="text"}}},_=globalThis&&globalThis.__assign||function(){return _=Object.assign||function(e){for(var n,t=1,o=arguments.length;tt.modelValue||"",set:i=>{n("update:modelValue",i)}});const r=w(null),a=w({callback:null,type:"image"}),u=$({apiKey:"mejzqiqf65aswd278mtojz1w7g3zysvdhg3sjen77zf7f6e9",init:{language:"zh_CN",placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u6587\u5B57",min_width:t.width,min_height:t.height,height:t.height,resize:"both",branding:!1,font_formats:"\u5FAE\u8F6F\u96C5\u9ED1=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;\u82F9\u679C\u82F9\u65B9=PingFang SC,Microsoft YaHei,sans-serif;\u5B8B\u4F53=simsun,serif;\u4EFF\u5B8B\u4F53=FangSong,serif;\u9ED1\u4F53=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;",plugins:"preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template code codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount textpattern autosave",toolbar:["fullscreen undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | bullist numlist | blockquote subscript superscript removeformat ","styleselect formatselect fontselect fontsizeselect | table image axupimgs media charmap hr pagebreak insertdatetime selectall visualblocks searchreplace | code print preview | indent2em lineheight formatpainter"],paste_data_images:!0,file_picker_types:"file image media",file_picker_callback:(i,m,v)=>{v.filetype=="image"?a.value.type="image":v.filetype=="media"?a.value.type="video":a.value.type="file",r.value.showPopup(1),a.value.callback=i}}}),l=i=>{a.value.callback(i),r.value.fileList=[]};return(i,m)=>(M(),z("div",{class:"tinymce-boxz",style:Q({"max-width":e.width+"px","max-height":e.height+"px"})},[c(f(ye),{modelValue:f(o),"onUpdate:modelValue":m[0]||(m[0]=v=>J(o)?o.value=v:o=v),"api-key":f(u).apiKey,init:f(u).init},null,8,["modelValue","api-key","init"]),c(ne,{hiddenUpload:!0,type:a.value.type,ref_key:"materialRef",ref:r,onChange:l},null,8,["type"])],4))}});const P=X(_e,[["__scopeId","data-v-a334ce79"]]),he=U("span",{class:"md f-w-600"},"\u670D\u52A1\u534F\u8BAE",-1),be=U("span",{class:"md f-w-600"},"\u9690\u79C1\u534F\u8BAE",-1),Ce=ee("\u4FDD\u5B58"),Ae=E({setup(e){let n=w({service_title:"",service_content:"",privacy_title:"",privacy_content:""});const t=async()=>{n.value=await R()},o=async()=>{await K({...n.value}),t()};return t(),(r,a)=>{const u=C("el-input"),l=C("el-form-item"),i=C("el-form"),m=C("el-card"),v=C("el-button");return M(),z(Z,null,[c(m,{shadow:"never"},{header:g(()=>[he]),default:g(()=>[c(i,{model:f(n),"label-width":"80px",size:"mini",inline:""},{default:g(()=>[c(l,{label:"\u534F\u8BAE\u540D\u79F0"},{default:g(()=>[c(u,{class:"ls-input",modelValue:f(n).service_title,"onUpdate:modelValue":a[0]||(a[0]=p=>f(n).service_title=p)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),c(P,{modelValue:f(n).service_content,"onUpdate:modelValue":a[1]||(a[1]=p=>f(n).service_content=p),width:"1000",height:"664",class:"m-l-14"},null,8,["modelValue"])]),_:1}),c(m,{shadow:"never",class:"m-t-15"},{header:g(()=>[be]),default:g(()=>[c(i,{model:f(n),"label-width":"80px",size:"mini",inline:""},{default:g(()=>[c(l,{label:"\u534F\u8BAE\u540D\u79F0"},{default:g(()=>[c(u,{class:"ls-input",modelValue:f(n).privacy_title,"onUpdate:modelValue":a[2]||(a[2]=p=>f(n).privacy_title=p)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),c(P,{modelValue:f(n).privacy_content,"onUpdate:modelValue":a[3]||(a[3]=p=>f(n).privacy_content=p),width:"1000",height:"664",class:"m-l-14"},null,8,["modelValue"])]),_:1}),c(te,null,{default:g(()=>[c(v,{type:"primary",size:"small",onClick:o},{default:g(()=>[Ce]),_:1})]),_:1})],64)}}});export{Ae as default};