@vipl520/dk-ui 1.0.72 → 1.0.74

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ import gn from"axios";import{ElLoading as ts,ElMessage as Ie,ElButton as Ql,ElMe
3
3
  * https://clipboardjs.com/
4
4
  *
5
5
  * Licensed MIT © Zeno Rocha
6
- */(function(t,e){(function(n,l){t.exports=l()})(Ws,function(){return function(){var o={686:function(u,i,a){a.d(i,{default:function(){return ye}});var s=a(279),r=a.n(s),_=a(370),y=a.n(_),E=a(817),k=a.n(E);function C(L){try{return document.execCommand(L)}catch{return!1}}var p=function(X){var K=k()(X);return C("cut"),K},S=p;function x(L){var X=document.documentElement.getAttribute("dir")==="rtl",K=document.createElement("textarea");K.style.fontSize="12pt",K.style.border="0",K.style.padding="0",K.style.margin="0",K.style.position="absolute",K.style[X?"right":"left"]="-9999px";var ne=window.pageYOffset||document.documentElement.scrollTop;return K.style.top="".concat(ne,"px"),K.setAttribute("readonly",""),K.value=L,K}var F=function(X,K){var ne=x(X);K.container.appendChild(ne);var ie=k()(ne);return C("copy"),ne.remove(),ie},m=function(X){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ne="";return typeof X=="string"?ne=F(X,K):X instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(X?.type)?ne=F(X.value,K):(ne=k()(X),C("copy")),ne},c=m;function v(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(K){return typeof K}:v=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},v(L)}var f=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},K=X.action,ne=K===void 0?"copy":K,ie=X.container,pe=X.target,Ae=X.text;if(ne!=="copy"&&ne!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(pe!==void 0)if(pe&&v(pe)==="object"&&pe.nodeType===1){if(ne==="copy"&&pe.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ne==="cut"&&(pe.hasAttribute("readonly")||pe.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ae)return c(Ae,{container:ie});if(pe)return ne==="cut"?S(pe):c(pe,{container:ie})},V=f;function A(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(K){return typeof K}:A=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},A(L)}function $(L,X){if(!(L instanceof X))throw new TypeError("Cannot call a class as a function")}function T(L,X){for(var K=0;K<X.length;K++){var ne=X[K];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(L,ne.key,ne)}}function M(L,X,K){return X&&T(L.prototype,X),K&&T(L,K),L}function U(L,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(X&&X.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),X&&O(L,X)}function O(L,X){return O=Object.setPrototypeOf||function(ne,ie){return ne.__proto__=ie,ne},O(L,X)}function z(L){var X=H();return function(){var ne=le(L),ie;if(X){var pe=le(this).constructor;ie=Reflect.construct(ne,arguments,pe)}else ie=ne.apply(this,arguments);return ee(this,ie)}}function ee(L,X){return X&&(A(X)==="object"||typeof X=="function")?X:oe(L)}function oe(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function le(L){return le=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)},le(L)}function de(L,X){var K="data-clipboard-".concat(L);if(X.hasAttribute(K))return X.getAttribute(K)}var q=function(L){U(K,L);var X=z(K);function K(ne,ie){var pe;return $(this,K),pe=X.call(this),pe.resolveOptions(ie),pe.listenClick(ne),pe}return M(K,[{key:"resolveOptions",value:function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ie.action=="function"?ie.action:this.defaultAction,this.target=typeof ie.target=="function"?ie.target:this.defaultTarget,this.text=typeof ie.text=="function"?ie.text:this.defaultText,this.container=A(ie.container)==="object"?ie.container:document.body}},{key:"listenClick",value:function(ie){var pe=this;this.listener=y()(ie,"click",function(Ae){return pe.onClick(Ae)})}},{key:"onClick",value:function(ie){var pe=ie.delegateTarget||ie.currentTarget,Ae=this.action(pe)||"copy",pt=V({action:Ae,container:this.container,target:this.target(pe),text:this.text(pe)});this.emit(pt?"success":"error",{action:Ae,text:pt,trigger:pe,clearSelection:function(){pe&&pe.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ie){return de("action",ie)}},{key:"defaultTarget",value:function(ie){var pe=de("target",ie);if(pe)return document.querySelector(pe)}},{key:"defaultText",value:function(ie){return de("text",ie)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ie){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return c(ie,pe)}},{key:"cut",value:function(ie){return S(ie)}},{key:"isSupported",value:function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],pe=typeof ie=="string"?[ie]:ie,Ae=!!document.queryCommandSupported;return pe.forEach(function(pt){Ae=Ae&&!!document.queryCommandSupported(pt)}),Ae}}]),K}(r()),ye=q},828:function(u){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}function s(r,_){for(;r&&r.nodeType!==i;){if(typeof r.matches=="function"&&r.matches(_))return r;r=r.parentNode}}u.exports=s},438:function(u,i,a){var s=a(828);function r(E,k,C,p,S){var x=y.apply(this,arguments);return E.addEventListener(C,x,S),{destroy:function(){E.removeEventListener(C,x,S)}}}function _(E,k,C,p,S){return typeof E.addEventListener=="function"?r.apply(null,arguments):typeof C=="function"?r.bind(null,document).apply(null,arguments):(typeof E=="string"&&(E=document.querySelectorAll(E)),Array.prototype.map.call(E,function(x){return r(x,k,C,p,S)}))}function y(E,k,C,p){return function(S){S.delegateTarget=s(S.target,k),S.delegateTarget&&p.call(E,S)}}u.exports=_},879:function(u,i){i.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},i.nodeList=function(a){var s=Object.prototype.toString.call(a);return a!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in a&&(a.length===0||i.node(a[0]))},i.string=function(a){return typeof a=="string"||a instanceof String},i.fn=function(a){var s=Object.prototype.toString.call(a);return s==="[object Function]"}},370:function(u,i,a){var s=a(879),r=a(438);function _(C,p,S){if(!C&&!p&&!S)throw new Error("Missing required arguments");if(!s.string(p))throw new TypeError("Second argument must be a String");if(!s.fn(S))throw new TypeError("Third argument must be a Function");if(s.node(C))return y(C,p,S);if(s.nodeList(C))return E(C,p,S);if(s.string(C))return k(C,p,S);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function y(C,p,S){return C.addEventListener(p,S),{destroy:function(){C.removeEventListener(p,S)}}}function E(C,p,S){return Array.prototype.forEach.call(C,function(x){x.addEventListener(p,S)}),{destroy:function(){Array.prototype.forEach.call(C,function(x){x.removeEventListener(p,S)})}}}function k(C,p,S){return r(document.body,C,p,S)}u.exports=_},817:function(u){function i(a){var s;if(a.nodeName==="SELECT")a.focus(),s=a.value;else if(a.nodeName==="INPUT"||a.nodeName==="TEXTAREA"){var r=a.hasAttribute("readonly");r||a.setAttribute("readonly",""),a.select(),a.setSelectionRange(0,a.value.length),r||a.removeAttribute("readonly"),s=a.value}else{a.hasAttribute("contenteditable")&&a.focus();var _=window.getSelection(),y=document.createRange();y.selectNodeContents(a),_.removeAllRanges(),_.addRange(y),s=_.toString()}return s}u.exports=i},279:function(u){function i(){}i.prototype={on:function(a,s,r){var _=this.e||(this.e={});return(_[a]||(_[a]=[])).push({fn:s,ctx:r}),this},once:function(a,s,r){var _=this;function y(){_.off(a,y),s.apply(r,arguments)}return y._=s,this.on(a,y,r)},emit:function(a){var s=[].slice.call(arguments,1),r=((this.e||(this.e={}))[a]||[]).slice(),_=0,y=r.length;for(_;_<y;_++)r[_].fn.apply(r[_].ctx,s);return this},off:function(a,s){var r=this.e||(this.e={}),_=r[a],y=[];if(_&&s)for(var E=0,k=_.length;E<k;E++)_[E].fn!==s&&_[E].fn._!==s&&y.push(_[E]);return y.length?r[a]=y:delete r[a],this}},u.exports=i,u.exports.TinyEmitter=i}},n={};function l(u){if(n[u])return n[u].exports;var i=n[u]={exports:{}};return o[u](i,i.exports,l),i.exports}return function(){l.n=function(u){var i=u&&u.__esModule?function(){return u.default}:function(){return u};return l.d(i,{a:i}),i}}(),function(){l.d=function(u,i){for(var a in i)l.o(i,a)&&!l.o(u,a)&&Object.defineProperty(u,a,{enumerable:!0,get:i[a]})}}(),function(){l.o=function(u,i){return Object.prototype.hasOwnProperty.call(u,i)}}(),l(686)}().default})})(bu);var Ys=bu.exports,Gs=qs(Ys);function Xs(){return new Promise(t=>{t("")})}function Js(){return new Promise((t,e)=>{e()})}async function Ks(t,e){const o=new Gs(e.target,{text:()=>t});try{return o.on("success",async()=>{await Xs(),o.destroy()}),o.on("error",async()=>{await Js(),o.destroy()}),o.onClick(e),Promise.resolve()}catch(n){return Promise.reject(n)}}const Eu={type:At(""),test:{default:"\u6D4B\u8BD5\u6D4B\u8BD5",type:String}},Qs={class:"mr-10px bg-black"},Zs=j({name:"DkTest"});var ed=j({...Zs,props:Eu,emits:["onChooseUrl"],setup(t,{emit:e}){ze("test");const o=()=>{e("onChooseUrl","\u9009\u4E2D\u7684\u94FE\u63A5\u5730\u5740")};return(n,l)=>{const u=b("el-button"),i=b("van-button");return h(),w(W,null,[d(u,{class:"dk-test"},{default:g(()=>[N("el\u6309\u94AE")]),_:1}),d(i,null,{default:g(()=>[N("van\u6309\u94AE")]),_:1}),d(u,{onClick:o},{default:g(()=>[N("\u9009\u62E9\u94FE\u63A5")]),_:1}),D("div",Qs,Q(n.test),1)],64)}}}),Y=(t,e)=>{const o=t.__vccOpts||t;for(const[n,l]of e)o[n]=l;return o},td=Y(ed,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\test\\src\\test.vue"]]);const ku=fe(td);function od(t,e){return{}.hasOwnProperty.call(t,e)}function no(t,e,o){t[e]=o}function xn(t){return Bn({},{value:t},void 0).value}function Bn(t,e={},o=!1){let n=!1;for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){let u=e[l];if((n=Array.isArray(u))||mu(u)){const i=t[l]===void 0;if(n)n=!1,i&&no(t,l,[]);else if(u._clone&&o)if(o)u=u.getRule(),i&&no(t,l,{});else{no(t,l,u._clone());continue}else i&&no(t,l,{});t[l]=Bn(t[l],u,o)}else no(t,l,u),kn(u)||(kn(u.__json)||(t[l].__json=u.__json),kn(u.__origin)||(t[l].__origin=u.__origin))}return o!==void 0&&Array.isArray(t)?t.filter(l=>!l||!l.__ctrl):t}function nd(t,e,o){t[e]=o}const ld=Object.assign||function(t){for(let e=1;e<arguments.length;e++){const o=arguments[e];for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&nd(t,n,o[n])}return t};function ud(...t){return ld.apply(this,t)}const Fu={field:{type:String,default:""},titleField:{type:String,default:""},rule:{type:Array,default:()=>[]},expand:{type:Number,default:0},options:{type:Object,default:()=>{}},button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},modelValue:{type:Array,default:()=>[]},defaultValue:{type:Object,default:()=>{}},sortBtn:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},syncDisabled:{type:Boolean,default:!0},onBeforeRemove:{type:Function,default:()=>{}},onBeforeAdd:{type:Function,default:()=>{}},formCreateInject:{type:Object,default:()=>{}},parse:{type:Function,default:()=>{}},title:{default:"",type:String},accordion:{type:Boolean,default:!0}},ad={key:1},id={class:"collapse-title"},rd={class:"_dk-group-handle"},sd=j({name:"DkGroup"});var dd=j({...sd,props:Fu,emits:["update:modelValue","change","itemMounted","remove","add"],setup(t,{emit:e}){const o=t,n=me({len:0,cacheRule:{},cacheValue:{},sort:[],form:eu(o.formCreateInject.form.$form()),loading:!0}),l=me({modelValue:[0],accordion:o.accordion}),u=n.form;Z(()=>o.rule,(v,f)=>{Object.keys(n.cacheRule).forEach(V=>{const A=n.cacheRule[V];if(A.$f){const $=A.$f.formData();if(v===f)A.$f.deferSyncValue(()=>{Bn(A.rule,v,!1),A.$f.setValue($)},!0);else{const T=A.$f.formData();A.$f.once("reloading",()=>{A.$f.setValue(T)}),A.rule=xn(v)}}})},{deep:!0}),Z(()=>o.disabled,v=>{if(o.syncDisabled){const f=n.cacheRule;Object.keys(f).forEach(V=>{f[V].$f.disabled(v)})}}),Z(()=>o.expand,v=>{const f=v-o.modelValue.length;f>0&&m(f)}),Z(()=>o.modelValue,v=>{v=v||[];const f=Object.keys(n.cacheRule),V=f.length,A=V-v.length;if(A<0){for(let $=A;$<0;$++)C(v.length-1,!0);for(let $=0;$<V;$++)k(f[$],v[$])}else{if(A>0)for(let $=0;$<A;$++)console.log("keys[total - i - 1]",f[V-$-1]),p(f[V-$-1]);v.forEach(($,T)=>{k(f[T],v[T])})}},{deep:!0}),Z(()=>({...n.cacheRule}),v=>{n.sort=Object.keys(v)},{immediate:!0});const i=v=>o.field?{[o.field]:s(o.modelValue[v])}:o.modelValue[v],a=v=>{if(n.cacheRule[v]){const{rule:f}=n.cacheRule[v],V=o.titleField?o.titleField:f[0]?.field;return n.cacheRule[v].$f?.getValue(V)||"\u70B9\u51FB\u5C55\u5F00"}else return"\u70B9\u51FB\u5C55\u5F00"},s=v=>v&&od(v,o.field)?v[o.field]:v,r=(v,f)=>{n.cacheValue[v]=JSON.stringify(f)},_=v=>{e("update:modelValue",v),e("change",v)},y=(v,f)=>{Oe(()=>{const A=Object.keys(n.cacheRule).map($=>{const T=v===$?f:{...n.cacheRule[$].$f.form},M=o.field?T[o.field]||null:T;return r($,M),M});_(A)})},E=(v,f)=>{n.cacheRule[v].$f=f,Oe(()=>{o.syncDisabled&&f.disabled(o.disabled),e("itemMounted",f,Object.keys(n.cacheRule).indexOf(v))})};Se(()=>{n.loading=!1});const k=(v,f)=>{const V=o.field;V&&(f={[V]:s(f)}),n.cacheValue[v]!==JSON.stringify(V?f[V]:f)&&r(v,f)},C=(v,f=!1)=>{const V=o.formCreateInject.form.copyRules(o.rule||[]),A=o.options?{...o.options}:{submitBtn:!1,resetBtn:!1};if(o.defaultValue){A.formData||(A.formData={});const $=xn(o.defaultValue);ud(A.formData,o.field?{[o.field]:$}:$)}o.parse&&o.parse({rule:V,options:A,index:n.sort.length}),n.cacheRule[v]={rule:V,options:A},f&&Oe(()=>e("add",V,Object.keys(n.cacheRule).length-1))},p=(v,f=!1)=>{delete n.cacheRule[v],delete n.cacheValue[v],f&&Oe(()=>e("remove",v))},S=()=>{if(o.disabled||o.onBeforeAdd(o.modelValue)===!1)return;const v=[...o.modelValue];v.push(o.defaultValue?xn(o.defaultValue):o.field?null:{}),_(v),l.modelValue=[v.length-1]},x=(v,f)=>{if(o.disabled||o.onBeforeRemove(o.modelValue,v)===!1)return;const V=[...o.modelValue];V.splice(v,1),_(V)},F=(v,f,V)=>{e(v,...f,n.cacheRule[V].$f,V)},m=v=>{for(let f=0;f<v;f++)o.modelValue.push(o.field?null:{})},c=(o.expand||0)-o.modelValue.length;for(let v=0;v<o.modelValue.length;v++)C(v);return c>0&&m(c),(v,f)=>{const V=b("el-divider"),A=b("el-button"),$=b("dk-icon"),T=b("el-button-group"),M=b("el-collapse-item"),U=b("draggable");return h(),w("div",{class:ae("dk-group _fc-group "+(v.disabled?"_fc-group-disabled":""))},[o.title?(h(),I(V,{key:0},{default:g(()=>[N(Q(o.title),1)]),_:1})):B("v-if",!0),n.sort.length===0?(h(),w("div",ad,[(h(),I(A,{key:"a_def",style:{width:"100%"},type:"primary",onClick:S},{default:g(()=>[N(" \u6DFB\u52A0\u6570\u636E ")]),_:1}))])):B("v-if",!0),d(U,{tag:"el-collapse",list:o.modelValue,"component-data":l,"item-key":"id",handle:".collapse-title-rank"},{item:g(({element:O,index:z})=>[d(M,{title:O.title,name:z},{title:g(()=>[D("div",id,[d($,{icon:"Rank",class:"collapse-title-rank"}),D("span",null,Q(a(z)),1)])]),default:g(()=>[(h(),w("div",{key:z,class:"_dk-group-container"},[(h(),I(P(u),{key:z,"in-for":!0,"model-value":i(z),rule:n.cacheRule[z].rule,option:n.cacheRule[z].options,"extend-option":!0,"onUpdate:modelValue":ee=>y(z,ee),onEmitEvent:(ee,...oe)=>F(ee,oe,z),"onUpdate:api":ee=>E(z,ee)},null,8,["model-value","rule","option","onUpdate:modelValue","onEmitEvent","onUpdate:api"])),D("div",rd,[d(T,null,{default:g(()=>[d(A,{icon:"Plus",plain:"",onClick:S},{default:g(()=>[N("\u589E\u52A0")]),_:1}),d(A,{icon:"Delete",plain:"",onClick:ee=>x(z)},{default:g(()=>[N("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)])]))]),_:2},1032,["title","name"])]),_:1},8,["list","component-data"])],2)}}}),cd=Y(dd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\group\\src\\group.vue"]]);const wu=fe(cd),pd={language:"zh-Hans",branding:!1,skin:"oxide",icons:"jam",promotion:!1,plugins:"showImage preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media codesample table pagebreak nonbreaking anchor insertdatetime advlist lists wordcount quickbars emoticons imageSize",editimage_cors_hosts:["picsum.photos"],menubar:"file edit view insert format tools table help",toolbar:"showImage bold italic underline strikethrough fontfamily fontsize blocks alignleft aligncenter alignright alignjustify numlist bullist forecolor backcolor removeformat image media link emoticons code preview fullscreen |",toolbar_sticky:!1,height:400,quickbars_selection_toolbar:"bold italic | quicklink h2 h3 blockquote showImage",quickbars_insert_toolbar:"",quickbars_image_toolbar:"imageSize100 imageSize50 imageSize20 imageDel",toolbar_mode:"",convert_urls:!1};var fd=pd;function md(t,e,o=1,n,l){return l.group_id=n,l.type=o,be({method:"post",url:"/adminapi/attachment/list",data:{page:t,size:e,search:l}})}function hd(t,e=1,o=0){const n=new FormData;return n.append("file",t),n.append("type",e.toString()),n.append("file","file"),n.append("group_id",o.toString()),be({method:"post",url:"/adminapi/attachment/upload",data:n})}function gd(t){return be({method:"post",url:"/adminapi/attachment/delete",data:{ids:t}},{code_success_show:!0})}function vd(t,e){return be({method:"post",url:"/adminapi/attachment/move",data:{ids:t,group_id:e}})}function yd(t){return be({method:"get",url:"/adminapi/attachment/group",params:{type:t}},{code_error_show:!0})}function _d(t){return be({method:"delete",url:"/adminapi/attachment/group/"+t},{code_error_show:!0})}const Du={disabled:{type:Boolean,default:!1},modelValue:{type:String,default:""},height:{type:Number,default:400},document:{type:Boolean,default:!1},buttonText:{type:String,default:"\u7F16\u8F91\u5BCC\u6587\u672C"},showDialogWidth:{type:Number,default:300}},bd={key:0},Ed={key:1},kd={class:"text-center"},Fd=j({name:"DkTinyEditor"});var wd=j({...Fd,props:Du,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,n=R(null),{width:l}=gt(n),u=R(o.modelValue),i=R(!1),a=(x,F)=>new Promise((m,c)=>{hd(x.blob()).then(v=>{F(100),m(v.data.url)}).catch(v=>{c(v)})}),s=R("vue-tinymce-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")),r=R({selector:"#"+s.value,...fd,height:o.height,content_css:o.document?"document":"",images_upload_handler:a,initialContent:"Loading editor..."}),_=R("https://cdn-1251560393.cos.ap-chengdu.myqcloud.com/lib/tinymce/tinymce.min.js"),y=R(),E=R(),k=ue(()=>l.value>=o.showDialogWidth);Z(()=>o.modelValue,x=>{u.value=x}),Z(()=>u.value,x=>{e("update:modelValue",x),e("input",x),e("change",x)}),Se(()=>{Oe(()=>{C()})}),Z(()=>E.value,()=>{E.value?.getEditor()&&E.value.getEditor().on("showImage",()=>{y.value.open()})});const C=()=>{E.value?.getEditor()?E.value.getEditor().on("showImage",()=>{y.value.open()}):setTimeout(()=>{C()},1e3)},p=x=>{const F=E.value.getEditor();let m="";x.forEach(c=>{m+='<img src="'+c.url+'" alt="" width="100%">'}),F.insertContent(m)},S=x=>{console.log(x)};return(x,F)=>{const m=b("el-button"),c=b("dk-dialog"),v=b("dk-attachment-dialog");return h(),w("div",{ref_key:"el",ref:n,class:"dk-tiny-editor"},[k.value?(h(),w("div",bd,[d(P(uu),{ref_key:"editorRef",ref:E,modelValue:u.value,"onUpdate:modelValue":F[0]||(F[0]=f=>u.value=f),init:r.value,"tinymce-script-src":_.value,onDblclick:S},null,8,["modelValue","init","tinymce-script-src"])])):(h(),w("div",Ed,[d(m,{type:"primary",plain:"",style:{width:"100%"},onClick:F[1]||(F[1]=f=>i.value=!0)},{default:g(()=>[N(Q(o.buttonText),1)]),_:1}),d(c,{modelValue:i.value,"onUpdate:modelValue":F[4]||(F[4]=f=>i.value=f),title:"\u7F16\u8F91",width:"900px","z-index":1298},{footer:g(()=>[D("div",kd,[d(m,{type:"primary",style:{width:"200px"},onClick:F[3]||(F[3]=f=>i.value=!1)},{default:g(()=>[N("\u786E\u5B9A")]),_:1})])]),default:g(()=>[d(P(uu),{ref_key:"editorRef",ref:E,modelValue:u.value,"onUpdate:modelValue":F[2]||(F[2]=f=>u.value=f),init:r.value,"tinymce-script-src":_.value,onDblclick:S},null,8,["modelValue","init","tinymce-script-src"])]),_:1},8,["modelValue"])])),d(v,{ref_key:"attachmentRef",ref:y,type:1,onConfirm:p},null,512)],512)}}}),Dd=Y(wd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\tiny-editor\\src\\tiny-editor.vue"]]);const Cu=fe(Dd),Au={icon:{default:"",type:String},color:String,size:Number,hoverColor:String,showEl:{default:!0,type:Boolean},showVant:{default:!0,type:Boolean}},Cd=j({name:"DkIcon"});var Ad=j({...Cd,props:Au,setup(t){const e=t,[o,n]=ze("icon"),l=Object.keys(au).map(a=>a),u=ue(()=>{const{color:a,size:s,hoverColor:r}=e,_={};return a&&(_.color=a),s&&(_.fontSize=`${s}px`),r&&(_["--hover-color"]=r),_}),i=ue(()=>{let a="cloud";return l.includes(e.icon)&&e.showEl&&(a="el"),e.showVant&&(To.basic.includes(e.icon)&&(a="vant"),To.outline.includes(e.icon)&&(a="vant"),To.filled.includes(e.icon)&&(a="vant")),a});return(a,s)=>{const r=b("van-icon"),_=b("el-icon");return h(),I(_,{class:ae(P(n)()),style:G(u.value)},{default:g(()=>[Ee(a.$slots,"default",{},()=>[i.value==="cloud"?(h(),I(P(ms),{key:0,icon:e.icon},null,8,["icon"])):B("v-if",!0),i.value==="el"?(h(),I(ft(e.icon),{key:1})):B("v-if",!0),i.value==="vant"?(h(),I(r,{key:2,class:ae(P(n)()),name:e.icon,style:G(u.value)},null,8,["class","name","style"])):B("v-if",!0)])]),_:3},8,["class","style"])}}}),xd=Y(Ad,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon\\src\\icon.vue"]]);const xu=fe(xd),Bu={modelValue:At(""),showAlpha:{default:!1,type:Boolean},placeholder:At(""),colorFormat:At("hex"),teleported:{default:!0,type:Boolean}},Bd={style:{display:"flex"},class:"dk-color-input"},Sd=j({name:"DkColorInput"});var Vd=j({...Sd,props:Bu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t;ze("color-input");const n=R(o.modelValue||"");return Z(()=>o.modelValue,l=>{n.value=l}),Z(()=>n.value,l=>{e("change",l),e("update:modelValue",l),e("input",l)}),(l,u)=>{const i=b("el-color-picker"),a=b("el-input");return h(),w("div",Bd,[d(i,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=s=>n.value=s),teleported:l.teleported,"show-alpha":l.showAlpha,"color-format":l.colorFormat},null,8,["modelValue","teleported","show-alpha","color-format"]),d(a,{modelValue:n.value,"onUpdate:modelValue":u[1]||(u[1]=s=>n.value=s),placeholder:l.placeholder,clearable:"",style:{width:"100%"}},null,8,["modelValue","placeholder"])])}}}),$d=Y(Vd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\color-input\\src\\color-input.vue"]]);const Su=fe($d),Vu={modelValue:{type:Object,default:()=>({})}},Td={class:"hot-area-content"},Id={class:"hot-area-draggable"},Rd={class:"hot-item-content",style:{position:"relative",width:"100%",height:"100%",background:"#0003"}},Od={key:1,style:{width:"500px",height:"500px"}},zd={class:"hot-area-form"},jd=D("h3",{style:{"margin-top":"0","font-size":"16px","font-weight":"500"}},"\u70ED\u533A\u7BA1\u7406",-1),Pd={style:{display:"flex","justify-content":"space-between",width:"100%"}},Md=j({name:"HotAreaContent"});var Nd=j({...Md,props:{hotDataValue:{default:()=>({views:[],width:400,height:400,background:null}),type:Object}},setup(t){const e=t,o=R(0),n=me(e.hotDataValue),l=()=>{Array.isArray(n.views)||(n.views=[]),n.views.push({css:{left:0,top:0,width:80,height:80,borderRadius:0,borderColor:"#fff"},url:""})},u=_=>{_>=0&&_<n.views.length&&n.views.splice(_,1)},i=_=>{const y=n.views[o.value].css;y.left=_.x,y.top=_.y},a=_=>{const y=n.views[o.value].css;y.left=_.x,y.top=_.y,y.width=_.w,y.height=_.h};Se(()=>{s()}),Z(()=>n?.background,()=>{s()});const s=()=>{n.background&&r(n.background).then(_=>{n.width=500,n.height=_.height*500/_.width,setTimeout(()=>{},200)}).catch(()=>{})},r=_=>new Promise(function(y,E){const k=new Image;k.onload=function(){y({width:k.width,height:k.height})},k.onerror=function(){E(new Error("error"))},k.src=_});return(_,y)=>{const E=b("vue3-draggable-resizable"),k=b("el-empty"),C=b("dk-image-input"),p=b("el-form-item"),S=b("dk-url-input"),x=b("dk-icon"),F=b("el-button"),m=b("el-form");return h(),w("div",Td,[D("div",Id,[n.background?(h(),w("div",{key:0,style:G([{width:n.width+"px",height:n.height+"px",backgroundImage:"url("+n.background+")"},{"background-size":"100% 100%"}]),onContextmenu:y[0]||(y[0]=mt(()=>{},["prevent"]))},[(h(!0),w(W,null,te(n.views,(c,v)=>(h(),I(E,{key:v,ref_for:!0,ref:"draggables",h:c.css.height,"onUpdate:h":f=>c.css.height=f,x:c.css.left,"onUpdate:x":f=>c.css.left=f,y:c.css.top,"onUpdate:y":f=>c.css.top=f,w:c.css.width,"onUpdate:w":f=>c.css.width=f,"init-w":c.css.width,"init-h":c.css.height,parent:!0,style:{cursor:"move"},"min-width":20,"min-height":20,onResizing:a,onDragging:i,onMousedown:f=>o.value=v},{default:g(()=>[D("div",Rd,Q(v+1),1)]),_:2},1032,["h","onUpdate:h","x","onUpdate:x","y","onUpdate:y","w","onUpdate:w","init-w","init-h","onMousedown"]))),128))],36)):(h(),w("div",Od,[d(k,{description:"\u8BF7\u4E0A\u4F20\u56FE\u7247"})]))]),D("div",zd,[jd,d(m,{"label-width":"80px","label-position":"left"},{default:g(()=>[d(p,{label:"\u80CC\u666F\u56FE "},{default:g(()=>[d(C,{modelValue:n.background,"onUpdate:modelValue":y[1]||(y[1]=c=>n.background=c)},null,8,["modelValue"])]),_:1}),(h(!0),w(W,null,te(n.views,(c,v)=>(h(),I(p,{key:v,label:"\u70ED\u533A\u5730\u5740"+(v+1)},{default:g(()=>[D("div",Pd,[d(S,{modelValue:n.views[v].url,"onUpdate:modelValue":f=>n.views[v].url=f,placeholder:"\u586B\u5199\u8DF3\u8F6C\u5730\u5740",style:{width:"100%","margin-right":"5px"}},null,8,["modelValue","onUpdate:modelValue"]),d(F,{type:"danger",plain:"",onClick:f=>u(v)},{default:g(()=>[d(x,{icon:"Delete"})]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128))]),_:1}),d(F,{disabled:!n.background,type:"primary",onClick:y[2]||(y[2]=c=>l())},{default:g(()=>[N(Q(n.background?"\u6DFB\u52A0\u70ED\u533A":"\u8BF7\u5148\u4E0A\u4F20\u56FE\u7247"),1)]),_:1},8,["disabled"])])])}}}),Ud=Y(Nd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\component\\hot-area-content.vue"]]);const Ld={class:"dk-hot-area-input"},Hd={class:"text-center"},Wd=j({name:"DkHotAreaInput"});var qd=j({...Wd,props:Vu,setup(t){const o=me(t.modelValue),n=R(!1);return(l,u)=>{const i=b("el-button"),a=b("dk-dialog");return h(),w("div",Ld,[d(i,{type:"primary",onClick:u[0]||(u[0]=s=>n.value=!0)},{default:g(()=>[N("\u8BBE\u7F6E\u70ED\u533A")]),_:1}),d(a,{modelValue:n.value,"onUpdate:modelValue":u[2]||(u[2]=s=>n.value=s),width:"1000px",title:"\u8BBE\u7F6E\u70ED\u533A"},{footer:g(()=>[D("div",Hd,[d(i,{size:"default",style:{width:"200px"},type:"primary",onClick:u[1]||(u[1]=s=>n.value=!1)},{default:g(()=>[N("\u786E\u5B9A")]),_:1})])]),default:g(()=>[d(Ud,{"hot-data-value":o},null,8,["hot-data-value"])]),_:1},8,["modelValue"])])}}}),Yd=Y(qd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\hot-area-input.vue"]]);const $u=fe(Yd),Gd={modelValue:{type:Boolean,default:!1},title:At(""),fullscreen:{type:Boolean,default:!1},defaultFullscreen:{type:Boolean,default:!1},maxHeight:{type:String,default:""},draggable:{type:Boolean,default:!0},zIndex:{type:Number,default:1299}},Xd={class:"flex justify-between items-center relative"},Jd={class:"flex justify-between items-center absolute top-[50%] right-0 translate-y-[-50%]"},Kd=j({name:"DkDialog"});var Qd=j({...Kd,props:Gd,setup(t){const e=t;ze("dialog");const o=os(),n=ue(()=>{const s=["fullscreen","title","maxHeight"],_={...ns(),...e};for(const y in _)s.indexOf(y)!==-1&&delete _[y];return _}),l=R(e.defaultFullscreen);Z(()=>e.defaultFullscreen,()=>{l.value=e.defaultFullscreen});const u=()=>{l.value=!P(l)},i=R(hu(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight);Z(()=>l.value,async s=>{if(await Oe(),s){const r=document.documentElement.offsetHeight;i.value=`${r-55-60-(o.footer?63:0)}px`}else i.value=hu(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight},{immediate:!0});const a=ue(()=>({maxHeight:e.maxHeight==="auto"?"auto":P(i)}));return(s,r)=>{const _=b("dk-icon"),y=b("ElScrollbar"),E=b("ElDialog");return h(),I(E,Fe(n.value,{fullscreen:l.value,"destroy-on-close":"","append-to-body":"","lock-scroll":"",draggable:e.draggable,"close-on-click-modal":!1,"show-close":!1,class:"dk-dialog","z-index":e.zIndex}),Ct({header:g(({close:k})=>[Ee(s.$slots,"header",{},()=>[D("div",Xd,[D("span",null,Q(e.title),1),D("div",Jd,[s.fullscreen?(h(),I(_,{key:0,class:"cursor-pointer is-hover mr-10px",icon:l.value?"radix-icons:exit-full-screen":"radix-icons:enter-full-screen",color:"var(--el-color-info)","hover-color":"var(--el-color-primary)",onClick:u},null,8,["icon"])):B("v-if",!0),d(_,{class:"cursor-pointer is-hover",icon:"ep:close","hover-color":"var(--el-color-primary)",color:"var(--el-color-info)",onClick:k},null,8,["onClick"])])])])]),default:g(()=>[d(y,{style:G(a.value)},{default:g(()=>[Ee(s.$slots,"default")]),_:3},8,["style"])]),_:2},[P(o).footer?{name:"footer",fn:g(()=>[Ee(s.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen","draggable","z-index"])}}}),Zd=Y(Qd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\dialog\\src\\dialog.vue"]]);const ec=fe(Zd),Tu={formData:{type:Object,default:null},isSubmit:{type:Boolean,default:!0},extraConfig:{default:()=>({}),type:Object},path:{default:"",type:String},formUrl:{default:"",type:[String,Object]},isLoading:{default:!0,type:Boolean},minHeight:{default:"100px",type:String},isDialog:{default:!1,type:Boolean},dialogWait:{default:!0,type:Boolean},dialog:{default:()=>({}),type:Object}},tc={global:{upload:{props:{onSuccess(t,e){t.status===200?e.url=t.data.src:Ie.error(t.msg)}}}},info:{icon:"el-icon-warning-outline",align:"left"},form:{inline:!1,labelPosition:"left",labelSuffix:void 0,hideRequiredAsterisk:!1,labelWidth:"125px",showMessage:!0,inlineMessage:!1,statusIcon:!1,validateOnRuleChange:!0,disabled:!1,size:"default"},submitBtn:!1,resetBtn:{type:"default",size:"default",plain:!1,round:!1,circle:!1,loading:!1,disabled:!1,icon:"el-icon-refresh",width:void 0,autofocus:!1,nativeType:"button",innerText:"\u91CD\u7F6E",show:!1,col:void 0,click:void 0}};var oc=tc;const nc={key:1},lc=j({name:"DkForm"});var uc=j({...lc,props:Tu,emits:["submit","fail","update:modelValue"],setup(t,{expose:e,emit:o}){const n=t;ze("form"),Io.register({name:"help",init({value:A},$){Fn(A)||(A=[A]),$.suffix={type:"p",children:A,class:"form-help"}}});const l=Io.$form(),u=me(oc),i=R(),a=R(!0),s=R(!1),r=R(!1),{width:_}=cs(),y=ue(()=>{const A=u;return _.value<768?(A.form.labelPosition="top",A.form.size="small"):(A.form.labelPosition="left",A.form.size="default"),{...A,...n.extraConfig}}),E=R(null),k=R(n.formData||{});Z(()=>n.formData,()=>{k.value=n.formData},{deep:!0}),Z(()=>E.value,A=>{o("update:modelValue",A||{})});const C=ue(()=>{let A="800px";const $=k.value?.config||{};if($?.width)return $?.width;n.dialog?.width&&(A=n.dialog?.width),$?.defaultWidth&&(A=$?.defaultWidth);let T=768;return A.endsWith("%")||(T=parseInt(A)),_.value<T?"100%":A}),p=ue(()=>k.value?.config?.style?k.value?.config?.style:n.dialog?.style?n.dialog?.style:{}),S=ue(()=>{let A=!1;return n.dialog?.draggable&&(A=n.dialog?.draggable),k.value?.config?.draggable!==void 0&&(A=k.value?.config?.draggable),A}),x=ue(()=>{let A=!1;const $=k.value?.config?.autoFullscreen!==!1;return n.dialog?.width&&(A=n.dialog?.fullscreen),k.value?.config?.fullscreen&&(A=k.value?.config?.fullscreen),_.value<768&&$&&(A=!0),A}),F=ue(()=>Object.assign(n.dialog,k.value?.config?.dialog)),m=A=>{E.value=null,k.value=A},c=A=>{if(A||(A=n.formUrl),n.formData)a.value=!1;else if(A){let $;mu(A)?$=A:$={url:A,method:"post"},be($).then(T=>{k.value=T.data,a.value=!1}).catch(T=>{a.value=!1})}},v=()=>{i.value.validate().then(()=>{i.value.submit(A=>{f(A)}).catch(A=>{Ie.warning(Object.values(A)[0][0].message)})}).catch(A=>{Ie.warning(Object.values(A)[0][0].message)})},f=A=>{n.isLoading&&(s.value=!0),n.isSubmit?be({url:n.path+k.value.action,method:k.value.method,data:{formData:A}}).then($=>{Ie.success($.msg),o("submit",A,$),s.value=!1}).catch($=>{Ie.error($.msg),o("fail",A,$),s.value=!1}):(o("submit",A),s.value=!1),r.value=!1},V=()=>{r.value=!0};return Se(()=>{c()}),e({showDialog:r,buttonLoading:s,fApi:i,value:E,show:V,checkForm:v,onSubmit:f,initFormData:c,setFormData:m}),(A,$)=>{const T=b("DkDialog");return n.isDialog?(h(),I(T,Fe({key:0,modelValue:r.value,"onUpdate:modelValue":$[3]||($[3]=M=>r.value=M),title:k.value?.title?k.value?.title:"\u8868\u5355",width:C.value,"default-fullscreen":x.value,"min-height":"200px"},F.value,{"max-height":"auto",draggable:S.value,"append-to-body":""}),{default:g(()=>[D("div",{style:G(p.value),class:"dk-form p10px"},[d(P(l),{modelValue:E.value,"onUpdate:modelValue":$[0]||($[0]=M=>E.value=M),option:y.value,rule:k.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":$[1]||($[1]=M=>i.value=M),"onUpdate:value":$[2]||($[2]=M=>E.value=M)},null,8,["modelValue","option","rule"]),D("div",{style:G({marginLeft:u.form.labelWidth}),class:"m-t-10px"},[Ee(A.$slots,"buttons",{},()=>[d(P(Ql),{type:"primary",loading:s.value,onClick:v},{default:g(()=>[N(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4)]),_:3},16,["modelValue","title","width","default-fullscreen","draggable"])):(h(),w("div",nc,[D("div",{style:G({minHeight:A.minHeight}),class:"dk-form"},[d(P(l),{modelValue:E.value,"onUpdate:modelValue":$[4]||($[4]=M=>E.value=M),option:y.value,rule:k.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":$[5]||($[5]=M=>i.value=M),"onUpdate:value":$[6]||($[6]=M=>E.value=M)},null,8,["modelValue","option","rule"]),D("div",{style:G({marginLeft:u.form.labelWidth}),class:"m-t-10px"},[Ee(A.$slots,"buttons",{},()=>[d(P(Ql),{type:"primary",loading:s.value,onClick:v},{default:g(()=>[N(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4),B(' <div v-else :style="{ minHeight }"></div>')]))}}}),ac=Y(uc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\form\\src\\form.vue"]]);const Iu=fe(ac),ic={xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 512 512",style:{"enable-background":"new 0 0 512 512"},"xml:space":"preserve"},rc=D("path",{fill:"#E2E5E7",d:"m129,0c-17.6,0 -32,14.4 -32,32l0,448c0,17.6 14.4,32 32,32l320,0c17.6,0 32,-14.4 32,-32l0,-352l-128,-128l-224,0z"},null,-1),sc=D("path",{fill:"#B0B7BD",d:"m384,128l96,0l-128,-128l0,96c0,17.6 14.4,32 32,32z",style:{fill:"#b0b7bd"}},null,-1),dc=D("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 ",style:{fill:"#cad1d8"}},null,-1),cc=D("path",{fill:"#CAD1D8",d:"m400,432l-304,0l0,16l304,0c8.8,0 16,-7.2 16,-16l0,-16c0,8.8 -7.2,16 -16,16z",style:{fill:"#cad1d8"}},null,-1),pc={key:0,fill:"#000000","fill-opacity":"0.18","p-id":"14722",d:"m358.678722,204.927171q-1.307107,-0.18673 -2.33412,-1.867296t-1.587202,-6.162077q-0.933648,-7.282454 -4.761605,-10.736952t-11.857329,-4.948334q-8.402832,-1.680566 -14.845003,-6.81563t-10.736952,-9.616574q-4.108051,-3.921321 -6.348806,-2.800944t-2.240755,4.108051l0,8.029373l0,17.552582q0,10.456857 -0.093365,22.594281t-0.093365,22.96774l0,19.046419l0,10.643587q0.18673,4.48151 -1.400472,9.990033t-5.975347,10.363493t-11.6706,8.309467t-18.112771,4.014686q-11.017046,0.560189 -19.886702,-3.921321t-13.724625,-11.29714t-4.761605,-14.938368t7.00236,-15.218462t14.938368,-9.896669t15.498556,-3.081038t13.351166,1.027013t8.682926,2.427485l0,-52.844475q0,-22.034092 0.18673,-49.670072q0,-5.415158 2.800944,-8.869656t7.469184,-4.014686q3.921321,-0.560189 6.442171,1.587202t5.135064,5.975347t6.442171,8.682926t10.363493,9.523209q5.601888,4.294781 9.803304,6.162077t7.842643,3.454498t7.189089,3.827957t7.842643,7.282454q4.294781,4.854969 5.228429,10.083398t0.093365,9.523209t-2.707579,7.00236t-3.174403,2.52085z"},fc={key:1,stroke:"null","p-id":"5208","fill-opacity":"0.18",fill:"#000000",d:"m296.500008,108.999985c46.11601,0 83.500008,37.383997 83.500008,83.500008s-37.383997,83.500008 -83.500008,83.500008s-83.500008,-37.383997 -83.500008,-83.500008s37.383997,-83.500008 83.500008,-83.500008zm-16.239708,45.643192a3.976166,3.976166 0 0 0 -3.976166,3.975644l0,69.520019a3.976166,3.976166 0 0 0 6.18161,3.308688l52.140536,-34.760009a3.976688,3.976688 0 0 0 0,-6.617376l-52.140536,-34.759488a3.976688,3.976688 0 0 0 -2.205444,-0.668l0,0.000522z"},mc={x:"-1",y:"0"},hc={x:"220",y:"380","text-anchor":"middle",fill:"white","font-family":"Verdana, Helvetica, Arial, sans-serif","font-size":"124"},gc=j({name:"DkFileIcon"});var vc=j({...gc,props:{type:{default:0,type:[Number,String]},fileSuffix:{default:"",type:String},fileName:{default:"",type:String},fileUrl:{default:"",type:String}},setup(t){const e=t,o=R(e.type),n=ue(()=>{let u="";if(e.fileSuffix&&(u=e.fileSuffix),e.fileName){const i=e.fileName,a=i.lastIndexOf(".");a!==-1&&(u=i.substring(a+1))}if(e.fileUrl){const i=e.fileUrl,a=i.lastIndexOf(".");a!==-1&&(u=i.substring(a+1))}return u.length>5?"\u672A\u77E5":u===""?"\u7A7A":u}),l=u=>{if(u==="PDF")return"#f44336";const i=["#0ca0ff","#16a806","#f44336","#ff374e","#ccc","#32CD32","#867aff","#9a978f","#ffd5b2","#FFAA33","#6082B6"],a=u.charCodeAt(0)%i.length;return i[a]};return(u,i)=>(h(),w("svg",ic,[D("g",null,[rc,sc,dc,D("path",{style:G({fill:l(n.value)}),d:"m416,416c0,8.8 -7.2,16 -16,16l-352,0c-8.8,0 -16,-7.2 -16,-16l0,-160c0,-8.8 7.2,-16 16,-16l352,0c8.8,0 16,7.2 16,16l0,160z"},null,4),cc,o.value===2?(h(),w("path",pc)):B("v-if",!0),o.value===3?(h(),w("path",fc)):B("v-if",!0),D("g",null,[D("text",mc,[D("tspan",hc,Q(n.value),1)])])])]))}}),zt=Y(vc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\file-icon.vue"]]);const Sn={type:{type:[Number,String],default:1},accept:{type:String,default:""}},yc={class:"dk-attachment attachment"},_c={class:"attachment-header flex justify-between pt-5px pb-5px"},bc={class:"header-form z"},Ec={class:"header-button y"},kc=D("i",{class:"el-icon-delete el-icon--right"},null,-1),Fc=D("i",{class:"el-icon-upload el-icon--right"},null,-1),wc={class:"attachment-content flex"},Dc={class:"attachment-group"},Cc={class:"group_list"},Ac=["onClick"],xc={class:"ml-10px"},Bc={class:"op"},Sc={class:"attachment-container"},Vc={key:0,class:"p2"},$c=["onClick","onContextmenu"],Tc={class:"file"},Ic=D("div",{class:"u-m-t-30"},[D("i",{class:"el-icon-loading"}),D("span",null,"\u52A0\u8F7D\u4E2D")],-1),Rc={key:1},Oc={key:2},zc={key:3},jc={class:"file-name over"},Pc={class:"right"},Mc={class:"block p-10px"},Nc={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"340px"}},Uc=j({name:"DkAttachment"});var Lc=j({...Uc,props:Sn,setup(t,{expose:e}){const o=t,n=ue(()=>Dn(o.type)),l=R(""),u=R([]),i=R([]),a=R([]),s=bn(),r=s.ApiUrl+"/adminapi/attachment/upload",_={"Access-Token":s.AccessToken},y=R(),E=me({type:n.value,file:"file",group_id:0}),k=L=>{vd(a.value,L).then(X=>{Ie.success(X.msg),de()})},C=L=>{console.log("res",L),L.code===0?(Ie.success(L.msg),de()):Ie.error(L.msg)},p=ue(()=>{let L="";if(o.accept)return o.accept;switch(n.value){case 0:break;case 1:L="image/*";break;case 2:L="audio/*";break;case 3:L="video/*";break}return L}),S=()=>{vn.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u6587\u4EF6, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}).then(()=>{try{gd(a.value).then(L=>{console.log(L),de()}).catch(L=>{console.log("deleteAttachment error",L)})}catch(L){console.log(L)}})},x=R([]),F=ue(()=>oe.value===0?{url:s.ApiUrl+"/adminapi/attachment/group/create",method:"get"}:{url:s.ApiUrl+"/adminapi/attachment/group/"+oe.value+"/edit",method:"get"}),m=R(),c=()=>{oe.value=0,m.value.show()},v=L=>{vn.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u5206\u7EC4, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{try{_d(L).then(X=>{Ie.success(X.msg),V()}).catch(()=>{})}catch(X){console.log(X)}})},f=()=>{m.value.show()},V=()=>{$(),de()},A=L=>{oe.value=L,U.value=1,de()},$=async()=>{try{const L=await yd(n.value);x.value=L.data}catch{}},T=R(!0),M=R([]),U=R(1),O=R(0),z=R(10),ee=R(0),oe=R(0),H=L=>{z.value=L,de()},le=L=>{U.value=L,de()},de=async(L={})=>{q();try{const X=await md(U.value,z.value,n.value,oe.value,L);M.value=X.data,O.value=X.msg,T.value=!1}catch{}},q=()=>{u.value=[],a.value=[],i.value=[]},ye=(L,X)=>{const K=u.value.indexOf(X);K>-1?(u.value.splice(K,1),a.value.splice(K,1),i.value.splice(K,1)):(u.value.push(X),a.value.push(L.id),i.value.push(L))};return Se(()=>{$(),de()}),e({chooseFileId:a,chooseFileKey:u,chooseFileList:i,clearChoose:q}),(L,X)=>{const K=b("el-button"),ne=b("el-input"),ie=b("el-dropdown-item"),pe=b("el-dropdown-menu"),Ae=b("el-dropdown"),pt=b("el-upload"),Ao=b("CirclePlusFilled"),wt=b("el-icon"),xo=b("dk-icon"),Bo=b("Tools"),cn=b("el-popover"),pn=b("el-image"),So=b("Check"),Vo=b("el-pagination"),fn=b("el-empty"),mn=b("dk-form"),lt=ht("loading");return h(),w("div",yc,[B(" \u9876\u90E8"),D("div",_c,[D("div",bc,[d(ne,{modelValue:l.value,"onUpdate:modelValue":X[0]||(X[0]=ge=>l.value=ge),size:"default",placeholder:"\u8BF7\u8F93\u5165\u9644\u4EF6\u540D\u79F0",class:"input-with-select"},{append:g(()=>[d(K,{icon:P(iu)},null,8,["icon"])]),_:1},8,["modelValue"])]),D("div",Ec,[d(Ae,{class:"mr",trigger:"click",onCommand:k},{dropdown:g(()=>[d(pe,null,{default:g(()=>[(h(!0),w(W,null,te(x.value,(ge,Qe)=>(h(),I(ie,{key:Qe,command:ge.id},{default:g(()=>[N(Q(ge.name),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:g(()=>[d(K,{size:"default",type:"info",disabled:u.value.length<=0},{default:g(()=>[N(" \u79FB\u52A8 ")]),_:1},8,["disabled"])]),_:1}),d(K,{size:"default",type:"danger",disabled:u.value.length<=0,onClick:S},{default:g(()=>[N("\u5220\u9664"),kc]),_:1},8,["disabled"]),d(pt,{ref_key:"upload",ref:y,class:"dk-upload-button",action:r,multiple:"",data:E,"show-file-list":!1,headers:_,"on-success":C,accept:p.value,"list-type":"text"},{default:g(()=>[d(K,{type:"primary",size:"default"},{default:g(()=>[N("\u4E0A\u4F20"),Fc]),_:1})]),_:1},8,["data","accept"])])]),B("\u5185\u90E8"),D("div",wc,[B(" \u5206\u7EC4"),D("div",Dc,[D("h5",{class:"cursor-pointer flex items-center content-center",onClick:X[1]||(X[1]=ge=>c())},[N(" \u9644\u4EF6\u5206\u7EC4 "),d(wt,{class:"m-l-5px"},{default:g(()=>[d(Ao)]),_:1})]),D("ul",Cc,[(h(!0),w(W,null,te(x.value,(ge,Qe)=>(h(),w("li",{key:Qe,class:ae({active:oe.value===ge.id}),onClick:Dt=>A(ge.id)},[ge.id===oe.value?(h(),I(xo,{key:0,icon:"flat-color-icons:opened-folder"})):(h(),I(xo,{key:1,icon:"flat-color-icons:folder"})),D("span",xc,Q(ge.name),1),d(cn,{placement:"right",trigger:"click"},{reference:g(()=>[D("div",Bc,[ge.id>0?(h(),I(wt,{key:0},{default:g(()=>[d(Bo)]),_:1})):B("v-if",!0)])]),default:g(()=>[d(K,{size:"small",type:"primary",onClick:X[2]||(X[2]=mt(Dt=>f(),["stop"]))},{default:g(()=>[N("\u7F16\u8F91 ")]),_:1}),d(K,{size:"small",type:"danger",onClick:Dt=>v(ge.id)},{default:g(()=>[N("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)],10,Ac))),128))])]),B(" \u5217\u8868"),D("div",Sc,[T.value||M.value.length>0?_e((h(),w("div",Vc,[D("ul",{class:"attachment-list cl",style:G({overflow:M.value.length>10?"auto":""})},[(h(!0),w(W,null,te(M.value,(ge,Qe)=>(h(),w("li",{key:Qe,class:ae({choose:u.value.indexOf(Qe)>-1}),onClick:Dt=>ye(ge,Qe),onContextmenu:mt(Dt=>ee.value=ge.id,["prevent"])},[D("div",Tc,[ge.type===1?(h(),I(pn,{key:0,class:"file",src:ge.url,fit:"contain"},{placeholder:g(()=>[Ic]),_:2},1032,["src"])):B("v-if",!0),ge.type===2?(h(),w("div",Rc,[d(zt,{"file-name":ge.filename,type:ge.type},null,8,["file-name","type"])])):B("v-if",!0),ge.type===3?(h(),w("div",Oc,[d(zt,{"file-name":ge.filename,type:ge.type},null,8,["file-name","type"])])):B("v-if",!0),ge.type===0?(h(),w("div",zc,[d(zt,{"file-name":ge.filename},null,8,["file-name"])])):B("v-if",!0)]),D("div",jc,Q(ge.name),1),D("div",Pc,[d(wt,null,{default:g(()=>[d(So)]),_:1})])],42,$c))),128))],4),D("div",Mc,[d(Vo,{"current-page":U.value,layout:"total, prev, pager, next, jumper,sizes",total:O.value,"page-size":z.value,onSizeChange:H,onCurrentChange:le},null,8,["current-page","total","page-size"])])])),[[lt,T.value]]):(h(),w("div",Nc,[d(fn,{description:"\u6682\u65E0\u6570\u636E"})])),(h(),I(mn,{ref_key:"groupForm",ref:m,key:oe.value,"form-url":F.value,"is-dialog":!0,onSubmit:X[3]||(X[3]=ge=>V())},null,8,["form-url"]))])])])}}}),Hc=Y(Lc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\attachment.vue"]]);const Ru=fe(Hc),Ou={...Sn,title:{type:String,default:""},zIndex:{type:Number,default:1299}},Wc={class:"text-center m2"},qc=j({name:"DkAttachmentDialog"});var Yc=j({...qc,props:Ou,emits:["confirm"],setup(t,{expose:e,emit:o}){const n=t,[l,u]=ze("attachment-dialog"),i=R(),a=R(!1),s=R(n.title||Rs(n.type)),r=R(Dn(n.type)),_=()=>{i.value.chooseFileList.length>0?(o("confirm",i.value.chooseFileList||[]),a.value=!1):Ie.warning({message:"\u8BF7\u5148\u9009\u62E9\u6587\u4EF6"})},y=()=>{a.value=!1};return e({dialogVisible:a,attachment:i,cancel:y,open:()=>{a.value=!0}}),(k,C)=>{const p=b("dk-attachment"),S=b("el-button"),x=b("DkDialog");return h(),I(x,{modelValue:a.value,"onUpdate:modelValue":C[2]||(C[2]=F=>a.value=F),class:ae(P(u)()),title:s.value,width:"1040px",fullscreen:!1,"z-index":k.zIndex},{default:g(()=>[d(p,{ref_key:"attachment",ref:i,type:r.value},null,8,["type"]),D("div",Wc,[d(S,{type:"primary",size:"default",onClick:C[0]||(C[0]=F=>_())},{default:g(()=>[N("\u786E\u5B9A")]),_:1}),d(S,{size:"default",onClick:C[1]||(C[1]=F=>y())},{default:g(()=>[N("\u5173\u95ED")]),_:1})])]),_:1},8,["modelValue","class","title","z-index"])}}}),Gc=Y(Yc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment-dialog\\src\\attachment-dialog.vue"]]);const zu=fe(Gc),ju={type:{type:[Number,String],default:0},modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Xc={class:"show m-t-5px"},Jc={class:"image-error"},Kc={class:"image-slot"},Qc={class:"no-image"},Zc=j({name:"DkFileInput"});var ep=j({...Zc,props:ju,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("file-input"),u=R(o.modelValue),i=R();Z(()=>o.modelValue,y=>{u.value=y}),Z(()=>u.value,y=>{a(y)});const a=y=>{e("update:modelValue",y),e("input",y),e("change",y)},s=()=>{u.value=""},r=()=>{i.value.open()},_=y=>{u.value=y[0].url};return(y,E)=>{const k=b("el-button"),C=b("el-input"),p=b("dk-icon"),S=b("el-image"),x=b("Picture"),F=b("el-icon"),m=b("Close"),c=b("Plus"),v=b("dk-attachment-dialog");return h(),w("div",{class:ae(P(l)())},[B("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),y.showInput?(h(),w(W,{key:0},[d(C,{modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=f=>u.value=f),placeholder:y.placeholder,clearable:""},{append:g(()=>[d(k,{onClick:r},{default:g(()=>[N("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),B("\u9009\u62E9\u7684\u662F\u56FE\u7247"),D("div",Xc,[y.type===1?(h(),I(S,{key:0,src:u.value,alt:"",fit:"contain",class:"file rd-4px","preview-src-list":[u.value]},{error:g(()=>[D("div",Jc,[d(p,{icon:"Picture"})])]),_:1},8,["src","preview-src-list"])):(h(),I(zt,{key:1,"file-url":u.value,class:"file rd-4px",type:y.type},null,8,["file-url","type"])),D("em",{onClick:E[1]||(E[1]=f=>u.value="")},[d(p,{icon:"Close"})])])],64)):(h(),w(W,{key:1},[B("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),D("div",{class:"only-img flex justify-center items-center",style:G([{position:"relative"},{width:y.imgSize+"px",height:y.imgSize+"px"}]),onClick:r},[u.value?(h(),w(W,{key:0},[B("\u56FE\u7247\u9644\u4EF6"),y.type===1?(h(),I(S,{key:0,src:u.value,alt:"",fit:"contain",style:{width:"100%",height:"100%"}},{error:g(()=>[D("div",Kc,[D("div",Qc,[d(F,null,{default:g(()=>[d(x)]),_:1})])])]),_:1},8,["src"])):B("v-if",!0),B("\u5176\u4ED6\u9644\u4EF6"),y.type!==1&&u.value?(h(),I(zt,{key:1,"file-url":u.value,class:"file rd-4px",type:y.type},null,8,["file-url","type"])):B("v-if",!0),D("div",{class:"close",onClick:E[2]||(E[2]=mt(f=>s(),["stop"]))},[d(F,null,{default:g(()=>[d(m)]),_:1})])],64)):(h(),w(W,{key:1},[B("\u6CA1\u6709\u4E0A\u4F20\u7684\u65F6\u5019"),D("div",{class:"media",style:G({lineHeight:y.imgSize+"px",fontSize:y.imgSize/2+"px"})},[d(F,null,{default:g(()=>[d(c)]),_:1})],4)],64))],4)],64)),d(v,{ref_key:"attachmentDialog",ref:i,type:y.type,onConfirm:_},null,8,["type"])],2)}}}),tp=Y(ep,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-input\\src\\file-input.vue"]]);const Pu=fe(tp),Mu={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},op=j({name:"DkImageInput"});var np=j({...op,props:Mu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("image-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),type:1,class:P(l)()}),null,16,["modelValue","class"])}}}),lp=Y(np,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-input\\src\\image-input.vue"]]);const Nu=fe(lp),Uu={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},up=j({name:"DkAudioInput"});var ap=j({...up,props:Uu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("audio-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),type:2,class:P(l)()}),null,16,["modelValue","class"])}}}),ip=Y(ap,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-input\\src\\audio-input.vue"]]);const Lu=fe(ip),Hu={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},rp=j({name:"DkVideoInput"});var sp=j({...rp,props:Hu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("video-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),type:3,class:P(l)()}),null,16,["modelValue","class"])}}}),dp=Y(sp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-input\\src\\video-input.vue"]]);const Wu=fe(dp),qu={type:{default:0,type:[Number,String]},modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},cp={class:"dk-image-list"},pp=["onClick"],fp={key:0},mp=j({name:"DkFileListInput"});var hp=j({...mp,props:qu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("file-list-input"),u=R(o.modelValue),i=ue(()=>({width:o.imgSize+"px",height:o.imgSize+"px",lineHeight:o.imgSize+"px"})),a=R(),s=()=>{a.value.open()},r=E=>{E.forEach(k=>{u.value.length<o.limit&&(u.value.push(k.url),y(u.value))})},_=E=>{u.value.splice(E,1)};Z(()=>o.modelValue,E=>{u.value=E}),Z(()=>u.value,E=>{y(E)});const y=E=>{e("update:modelValue",E),e("input",E),e("change",E)};return(E,k)=>{const C=b("el-image"),p=b("Close"),S=b("el-icon"),x=b("Plus"),F=b("dk-attachment-dialog");return h(),w("div",{class:ae(P(l)())},[D("div",cp,[D("ul",null,[(h(!0),w(W,null,te(u.value,(m,c)=>(h(),w("li",{key:c},[D("div",{class:"file",style:G(i.value)},[E.type===1?(h(),I(C,{key:0,src:m,fit:"contain",style:G(i.value)},null,8,["src","style"])):(h(),I(zt,{key:1,"file-url":m,class:"file rd-4px",type:E.type},null,8,["file-url","type"])),E.disabled?B("v-if",!0):(h(),w("div",{key:2,class:"close",onClick:v=>_(c)},[d(S,null,{default:g(()=>[d(p)]),_:1})],8,pp))],4)]))),128)),E.limit>u.value.length&&!E.disabled?(h(),w("li",fp,[D("div",{class:"chooseImage",style:G(i.value),onClick:k[0]||(k[0]=m=>s())},[d(S,null,{default:g(()=>[d(x)]),_:1})],4)])):B("v-if",!0)])]),d(F,{ref_key:"attachment",ref:a,type:E.type,onConfirm:r},null,8,["type"])],2)}}}),gp=Y(hp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-list-input\\src\\file-list-input.vue"]]);const Yu=fe(gp),Gu={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},vp=j({name:"DkImageListInput"});var yp=j({...vp,props:Gu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("image-list-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-list-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),class:P(l)(),type:1,onChange:s[1]||(s[1]=_=>i(u.value))}),null,16,["modelValue","class"])}}}),_p=Y(yp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-list-input\\src\\image-list-input.vue"]]);const Xu=fe(_p),Ju={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},bp=j({name:"DkAudioListInput"});var Ep=j({...bp,props:Ju,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("audio-list-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-list-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),class:P(l)(),type:2,onChange:s[1]||(s[1]=_=>i(u.value))}),null,16,["modelValue","class"])}}}),kp=Y(Ep,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-list-input\\src\\audio-list-input.vue"]]);const Ku=fe(kp),Qu={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},Fp=j({name:"DkVideoListInput"});var wp=j({...Fp,props:Qu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("video-list-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-list-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),class:P(l)(),type:3,onChange:s[1]||(s[1]=_=>i(u.value))}),null,16,["modelValue","class"])}}}),Dp=Y(wp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-list-input\\src\\video-list-input.vue"]]);const Zu=fe(Dp),ea={type:{default:"element",type:String},modelValue:{type:String,default:""},placeholder:{type:String,default:""},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object},preview:{default:!0,type:Boolean}},ta={icon:{default:"",type:String},type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}},oa={type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}};function Cp(t){return be({method:"post",url:"/adminapi/common/getIcons/",data:{query:t}})}const Ap={class:"dk-icon-content"},xp={key:0,class:"text-center",style:{"font-size":"12px",color:"#999"}},Bp={class:"search-icon"},Sp=j({name:"DkIconContent"});var Vp=j({...Sp,props:ta,emits:["choose"],setup(t,{expose:e,emit:o}){const n=t;hs("all");function l(m){let c=[];for(const v in m)m.hasOwnProperty(v)&&Array.isArray(m[v])&&(c=c.concat(m[v]));return c}const u=Object.keys(au).map(m=>m),i=l(To),a=R(u),s=R(i),r=gs(),_=R(r),E=R((()=>{const{el:m,vant:c,cloud:v}=n.showTab;return m?"element":c?"vant":v?"cloud":n.type})()),k=R(""),C=ue(()=>E.value==="element"?"\u641C\u7D22element-plus\u56FE\u6807":E.value==="vant"?"\u641C\u7D22vant\u56FE\u6807":"\u641C\u7D22\u4E91\u7AEF\u56FE\u6807"),p=R(""),S=m=>{p.value=m,o("choose",m)},x=()=>{if(E.value==="element"){const m=k.value.toLowerCase();console.log(m),a.value=u.filter(c=>!!(m&&c.toLowerCase().includes(m)))}else E.value==="vant"?(console.log("use"),s.value=i.filter(m=>!!(k.value&&m.toLowerCase().includes(k.value)))):Cp(k.value).then(m=>{_.value=m.data}).catch(m=>{console.log(m)})},F=()=>{k.value="",a.value=u,_.value=r,s.value=i};return e({chooseIcon:p}),(m,c)=>{const v=b("dk-icon"),f=b("el-tab-pane"),V=b("el-empty"),A=b("el-tabs"),$=b("el-button"),T=b("el-input");return h(),w("div",Ap,[d(A,{modelValue:E.value,"onUpdate:modelValue":c[0]||(c[0]=M=>E.value=M)},{default:g(()=>[n.showTab.el?(h(),I(f,{key:0,label:"element\u56FE\u6807",name:"element",class:"dk-tab-pane"},{default:g(()=>[(h(!0),w(W,null,te(a.value,(M,U)=>(h(),I(v,{key:U,size:36,color:M==p.value?"var(--el-color-primary)":"",class:ae([M==p.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",onClick:O=>S(M)},{default:g(()=>[(h(),I(ft(M)))]),_:2},1032,["color","class","onClick"]))),128))]),_:1})):B("v-if",!0),n.showTab.vant?(h(),I(f,{key:1,label:"vant\u56FE\u6807",name:"vant",class:"dk-tab-pane"},{default:g(()=>[(h(!0),w(W,null,te(s.value,(M,U)=>(h(),I(v,{key:U,size:36,color:M==p.value?"#409eff":"",class:ae([M==p.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",icon:M,onClick:O=>S(M)},null,8,["color","class","icon","onClick"]))),128))]),_:1})):B("v-if",!0),n.showTab.cloud?(h(),I(f,{key:2,label:"\u4E91\u7AEF\u56FE\u6807",name:"cloud",class:"dk-tab-pane"},{default:g(()=>[_.value.length>0?(h(),w(W,{key:0},[(h(!0),w(W,null,te(_.value,(M,U)=>(h(),I(v,{key:U,icon:M,size:36,"hover-color":"var(--el-color-primary)",color:M==p.value?"#409eff":"",class:ae([M==p.value?"choose-icon":"dk-icon","cursor-pointer"]),onClick:O=>S(M)},null,8,["icon","color","class","onClick"]))),128)),k.value?B("v-if",!0):(h(),w("p",xp,"\u5F53\u524D\u663E\u793A\u5DF2\u7F13\u5B58\u7684\u56FE\u6807"))],64)):(h(),I(V,{key:1,description:"\u6682\u65E0\u56FE\u6807\uFF0C\u8BF7\u641C\u7D22"}))]),_:1})):B("v-if",!0)]),_:1},8,["modelValue"]),D("div",Bp,[d(T,{modelValue:k.value,"onUpdate:modelValue":c[2]||(c[2]=M=>k.value=M),clearable:"",placeholder:C.value,onClear:F},{append:g(()=>[d($,{icon:P(iu),onClick:c[1]||(c[1]=M=>x())},null,8,["icon"])]),_:1},8,["modelValue","placeholder"])])])}}}),na=Y(Vp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-content.vue"]]);const $p={class:"text-center m2"},Tp=j({name:"DkIconDialog"});var Ip=j({...Tp,props:oa,emits:["choose","confirm"],setup(t,{expose:e,emit:o}){const n=t,l=R(!1),u=R(),i=R("");e({dialogVisible:l,open:()=>{l.value=!0},iconContent:u});const s=y=>{i.value=y,o("choose",y)},r=()=>{l.value=!1,o("confirm",i.value)},_=()=>{l.value=!1};return(y,E)=>{const k=b("el-button"),C=b("dk-dialog");return h(),I(C,{modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=p=>l.value=p),title:"\u9009\u62E9\u56FE\u6807",width:"800px",class:"dk-icon-dialog"},{footer:g(()=>[D("div",$p,[d(k,{type:"primary",onClick:r},{default:g(()=>[N("\u786E\u5B9A")]),_:1}),d(k,{onClick:_},{default:g(()=>[N("\u5173\u95ED")]),_:1})])]),default:g(()=>[d(na,Fe({ref_key:"iconContent",ref:u},n,{onChoose:s}),null,16)]),_:1},8,["modelValue"])}}}),la=Y(Ip,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-dialog.vue"]]);const Rp={key:0,class:"show m-t-5px"},Op=j({name:"DkIconInput"});var zp=j({...Op,props:ea,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("icon-input"),u=R(o.modelValue),i=R();Z(()=>o.modelValue,y=>{u.value=y}),Z(()=>u.value,y=>{s(y)});const a=ue(()=>{const{modelValue:y,...E}=o;return E}),s=y=>{e("update:modelValue",y),e("input",y),e("change",y)},r=()=>{i.value.open()},_=y=>{console.log(y),u.value=y};return(y,E)=>{const k=b("el-button"),C=b("el-input"),p=b("dk-icon"),S=b("Close"),x=b("el-icon");return h(),w("div",{class:ae(P(l)())},[B("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),d(C,{modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=F=>u.value=F),placeholder:o.placeholder,clearable:""},{append:g(()=>[d(k,{onClick:r},{default:g(()=>[N("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),B("\u9009\u62E9\u7684\u662F\u56FE\u7247"),o.preview?(h(),w("div",Rp,[d(p,{icon:u.value?u.value:"fluent:document-none-24-regular",class:"icon rd-4px cursor-pointer",size:50,color:u.value?"":"#ccc",onClick:r},null,8,["icon","color"]),D("em",{onClick:E[1]||(E[1]=F=>u.value="")},[d(x,null,{default:g(()=>[d(S)]),_:1})])])):B("v-if",!0),B("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),d(la,Fe({ref_key:"iconDialog",ref:i},a.value,{onConfirm:_}),null,16)],2)}}}),jp=Y(zp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-input.vue"]]);const ua=fe(jp),aa=fe(na),ia=fe(la),Pp=[{name:"DkStyleBoxInput",title:"\u5C3A\u5BF8",props:{},value:{},params:["marginLeft","marginTop","marginRight","marginBottom","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height"]},{name:"DkStyleFontInput",title:"\u6587\u5B57",props:{},value:{},params:["fontSize","color","fontWeight","fontStyle","textDecoration"]},{name:"DkStyleBackgroundInput",title:"\u80CC\u666F",props:{},value:{},params:["backgroundColor","backgroundImage"]},{name:"DkStyleBorderInput",title:"\u8FB9\u6846",props:{},value:{},params:["borderWidth","borderStyle","borderColor","borderRightWidth","borderRightStyle","borderRightColor","borderLeftWidth","borderLeftStyle","borderLeftColor","borderTopWidth","borderTopStyle","borderTopColor","borderBottomWidth","borderBottomStyle","borderBottomColor","borderRadius"]},{name:"DkStyleShadowInput",title:"\u9634\u5F71",props:{},value:{},params:["boxShadow"]}],ra={components:{default:()=>Pp,type:Array},hideComponents:{default:()=>[],type:Array},modelValue:{default:()=>({}),type:Object},isDrawer:{default:!1,type:Boolean},drawerProps:{default:()=>({title:"\u7F16\u8F91\u6837\u5F0F",direction:"rtl",size:"400px"}),type:Object},drawerText:{default:"\u7F16\u8F91\u6837\u5F0F",type:String}},Mp={class:"dk-style-input"},Np={key:0,class:"p-5px"},Up={key:1},Lp=j({name:"DkStyleInput"});var Hp=j({...Lp,props:ra,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=R(!1),l=R([0]),u=R({}),i=R(!0),a=()=>{const _={};Object.keys(u.value).forEach(y=>{Object.keys(u.value[y]).forEach(E=>{_[E]=u.value[y][E]})}),e("update:modelValue",_)},s=R([]),r=()=>{s.value=o.components.filter(y=>!o.hideComponents.includes(y.name));const _={};s.value.forEach(y=>{const E=y.params,k={};Object.keys(E).forEach(C=>{const p=E[C];o.modelValue[p]&&(k[p]=o.modelValue[p])}),_[y.name]=k}),u.value=_,i.value=!1};return Z(()=>o.modelValue,()=>{r()},{deep:!0}),Se(()=>{r()}),(_,y)=>{const E=b("el-collapse-item"),k=b("el-collapse"),C=b("el-button"),p=b("el-drawer");return h(),w("div",Mp,[i.value?B("v-if",!0):(h(),w("div",Np,[o.isDrawer?(h(),w("div",Up,[d(C,{type:"primary",plain:"",style:{width:"100%"},size:"small",onClick:y[1]||(y[1]=S=>n.value=!0)},{default:g(()=>[N(Q(o.drawerText),1)]),_:1}),d(p,Fe({modelValue:n.value,"onUpdate:modelValue":y[3]||(y[3]=S=>n.value=S)},o.drawerProps),{default:g(()=>[d(k,{modelValue:l.value,"onUpdate:modelValue":y[2]||(y[2]=S=>l.value=S)},{default:g(()=>[(h(!0),w(W,null,te(s.value,(S,x)=>(h(),I(E,{key:x,title:"",name:x},{title:g(()=>[N(Q(S.title),1)]),default:g(()=>[l.value.includes(x)?(h(),I(ft(S.name),Fe({key:0,modelValue:u.value[S.name],"onUpdate:modelValue":F=>u.value[S.name]=F},S.props,{onChange:a}),null,16,["modelValue","onUpdate:modelValue"])):B("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])]),_:1},16,["modelValue"])])):(h(),I(k,{key:0,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=S=>l.value=S)},{default:g(()=>[(h(!0),w(W,null,te(s.value,(S,x)=>(h(),I(E,{key:x,title:"",name:x},{title:g(()=>[N(Q(S.title),1)]),default:g(()=>[l.value.includes(x)?(h(),I(ft(S.name),Fe({key:0,modelValue:u.value[S.name],"onUpdate:modelValue":F=>u.value[S.name]=F},S.props,{onChange:a}),null,16,["modelValue","onUpdate:modelValue"])):B("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]))]))])}}}),Wp=Y(Hp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-input\\src\\style-input.vue"]]);const sa=fe(Wp),da={modelValue:{type:String,default:""},defaultMerge:{type:Boolean,default:!0},type:{type:String,default:"border"},units:{type:Array,default:()=>["px","%"]},defaultIsMerge:{type:Boolean,default:!1},showMerge:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1}},qp=["onMousedown"],Yp={style:{display:"flex"}},Gp=j({name:"DkBoxSizeInput"});var Xp=j({...Gp,props:da,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=R(),{width:l}=gt(n),u=me({all:"",first:"",second:"",third:"",fourth:""}),i=me({all:"px",first:"rem",second:"px",third:"px",fourth:"px"}),a=["px","%","rem","rm","vh","auto"],s=R(""),r=R(o.defaultIsMerge),_=R(!1),y=R(0),E=R(!1),k=R(null),C=R(null),p=ue(()=>a.map(f=>({label:f,value:f}))),S=ue(()=>{let f;return o.type==="radius"?f=[{position:"first",name:"\u5DE6\u4E0A",icon:"ant-design:radius-upleft-outlined"},{position:"second",name:"\u53F3\u4E0A",icon:"ant-design:radius-upright-outlined"},{position:"fourth",name:"\u5DE6\u4E0B",icon:"ant-design:radius-bottomleft-outlined"},{position:"third",name:"\u5DE6\u4E0B",icon:"ant-design:radius-bottomright-outlined"}]:f=[{position:"first",name:"\u4E0A",icon:"ArrowUp"},{position:"second",name:"\u53F3",icon:"ArrowRight"},{position:"third",name:"\u4E0B",icon:"ArrowDown"},{position:"fourth",name:"\u5DE6",icon:"ArrowLeft"}],f}),x=(f,V)=>{_.value=!0,y.value=V.clientX,s.value=f,k.value=F.bind(V),C.value=m.bind(V),document.addEventListener("mousemove",k.value),document.addEventListener("mouseup",C.value),document.body.style.cursor="ew-resize"},F=f=>{_.value&&(u[s.value]=f.clientX-y.value)},m=()=>{document.removeEventListener("mousemove",k.value),document.removeEventListener("mouseup",C.value),document.body.style.cursor="default",_.value=!1,s.value=""},c=()=>{const f=O=>{let z="px";return a.forEach(ee=>{O.includes(ee)&&(z=ee)}),z},V=o.modelValue.split(" ")||["0px"];let[A,$=A,T=A,M=$]=V;V.length===4?r.value=!1:V.length===3?(r.value=!1,M=""):V.length===2?(r.value=!1,T=A,M=$):(r.value=!0,$=T=M=A);const U={first:A,second:$,third:T,fourth:M};for(const O in U)u[O]=parseInt(U[O])||0,i[O]=f(U[O]);r.value&&(u.all=u.first,i.all=i.first)};Z(()=>o.modelValue,()=>{c()});const v=()=>{if(r.value)i.all==="auto"?e("update:modelValue","auto"):e("update:modelValue",`${u.all}${i.all}`);else{let f="";for(const V in i)V!=="all"&&(i[V]==="auto"?f+="auto ":f+=`${u[V]}${i[V]} `);e("update:modelValue",f.trim())}};return Z(u,()=>{v()}),Z(r,()=>{v()}),Z(i,()=>{v()}),Se(()=>{c()}),(f,V)=>{const A=b("dk-icon"),$=b("el-tooltip"),T=b("el-input"),M=b("el-select-v2"),U=b("el-button");return h(),w("div",{ref_key:"el",ref:n,class:"dk-box-size-input"},[_e(D("div",{class:ae((P(l)>500,""))},[(h(!0),w(W,null,te(S.value,(O,z)=>(h(),w("div",{key:z,style:{display:"flex"}},[d(T,{modelValue:u[O.position],"onUpdate:modelValue":ee=>u[O.position]=ee,type:"number",controls:!1,disabled:i[O.position]=="auto"},Ct({_:2},[P(l)>600||P(l)<500?{name:"prefix",fn:g(()=>[D("span",{class:"w-resize",onMousemove:F,onMousedown:ee=>x(O.position,ee),onMouseup:m},[d($,{"hide-after":0,class:"item",effect:"dark",content:O.name,placement:"top-start",disabled:E.value},{default:g(()=>[d(A,{icon:O.icon},null,8,["icon"])]),_:2},1032,["content","disabled"])],40,qp)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","disabled"]),d(M,{modelValue:i[O.position],"onUpdate:modelValue":ee=>i[O.position]=ee,options:p.value},null,8,["modelValue","onUpdate:modelValue","options"])]))),128))],2),[[eo,!r.value]]),_e(D("div",Yp,[d(T,{modelValue:u.all,"onUpdate:modelValue":V[1]||(V[1]=O=>u.all=O),type:"number",controls:!1,disabled:i.all==="auto",clearable:o.clearable},{prefix:g(()=>[D("span",{class:"w-resize",onMousemove:F,onMousedown:V[0]||(V[0]=O=>x("all",O)),onMouseup:m},[d(A,{icon:"Rank"})],32)]),_:1},8,["modelValue","disabled","clearable"]),d(M,{modelValue:i.all,"onUpdate:modelValue":V[2]||(V[2]=O=>i.all=O),options:p.value},null,8,["modelValue","options"])],512),[[eo,r.value]]),o.showMerge?(h(),w("div",{key:0,class:"dk-full",onClick:V[3]||(V[3]=O=>r.value=!r.value)},[d($,{class:"item",effect:"dark",content:r.value?"\u72EC\u7ACB\u914D\u7F6E":"\u6279\u91CF\u914D\u7F6E",placement:"top","hide-after":0},{default:g(()=>[r.value?(h(),I(U,{key:0},{default:g(()=>[d(A,{icon:"streamline:interface-layout-border-horizontal-border-cell-center-format-formatting"})]),_:1})):(h(),I(U,{key:1},{default:g(()=>[d(A,{icon:"streamline:interface-layout-border-full-grid-layout-layouts-module"})]),_:1}))]),_:1},8,["content"])])):B("v-if",!0)],512)}}}),Jp=Y(Xp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\box-size-input\\src\\box-size-input.vue"]]);const ca=fe(Jp),pa={modelValue:{type:Object,default:()=>({})},height:{type:[Number,String],default:"auto"},help:{type:String,default:"\u53EF\u4EE5\u53CC\u51FB\u5BF9\u5E94\u4F4D\u7F6E\u6765\u914D\u7F6E\u5185\u5916\u8FB9\u8DDD\u548C\u5BBD\u5EA6\u9AD8\u5EA6\uFF0C\u4E5F\u652F\u6301\u901A\u8FC7\u63CF\u70B9\u62D6\u62FD\u589E\u52A0\uFF0C\u652F\u6301\u5355\u4F4D\uFF08px\u3001rem\u3001%\u3001auto)"}},Kp=[{title:"\u5916\u8FB9\u8DDD-\u5DE6",position:"left",value:"marginLeft",svg:{width:"15%",height:"100%",style:"position: absolute",viewBox:"0 0 5 15",preserveAspectRatio:"none",content:'<polygon points="0 0, 0 15,5 12.7, 5 2.25" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5916\u8FB9\u8DDD-\u53F3",position:"right",value:"marginRight",svg:{width:"15%",height:"100%",style:"position: absolute; right: 0px",viewBox:"0 0 5 15",preserveAspectRatio:"none",content:'<polygon points="0 2.25, 0 12.7, 5,15, 5,0" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5916\u8FB9\u8DDD-\u4E0A",position:"top",value:"marginTop",svg:{width:"100%",height:"15%",style:"position: absolute",viewBox:"0 0 15 5",preserveAspectRatio:"none",content:'<polygon points="0 0, 2.25 5, 12.7 5, 15,0" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5916\u8FB9\u8DDD-\u4E0B",position:"bottom",value:"marginBottom",svg:{width:"100%",height:"15%",style:"position: absolute; bottom: 0px",viewBox:"0 0 15 5",preserveAspectRatio:"none",content:'<polygon points="0 5, 2.25 0, 12.7 0, 15,5" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}}],Qp=[{title:"\u5185\u8FB9\u8DDD-\u5DE6",position:"left",value:"paddingLeft",svg:{width:"20%",height:"100%",style:"position: absolute",viewBox:"0 0 5 15",preserveAspectRatio:"none",content:'<polygon points="0 0, 0 15, 5 11.25, 5 3.68" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5185\u8FB9\u8DDD-\u53F3",position:"right",value:"paddingRight",svg:{width:"20%",height:"100%",style:"position: absolute; right: 0px",viewBox:"0 0 5 15",preserveAspectRatio:"none",content:'<polygon points="0 3.68, 0 11.25, 5 15, 5 0" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5185\u8FB9\u8DDD-\u4E0A",position:"top",value:"paddingTop",svg:{width:"100%",height:"25%",style:"position: absolute",viewBox:"0 0 15 5",preserveAspectRatio:"none",content:'<polygon points="0 0, 3 5, 11.9 5, 15 0" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5185\u8FB9\u8DDD-\u4E0B",position:"bottom",value:"paddingBottom",svg:{width:"100%",height:"25%",style:"position: absolute; bottom: 0px",viewBox:"0 0 15 5",preserveAspectRatio:"none",content:'<polygon points="0 5, 3 0, 11.9 0, 15 5" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}}],Zp={class:"dk-style-box-input"},ef={class:"header"},tf={class:"flex items-center justify-between"},of={class:"items-center"},nf=["title","onDblclick"],lf=["onUpdate:modelValue","onBlur"],uf=["width","height","viewBox","data-link-anchor","innerHTML"],af=D("div",{style:{position:"absolute",display:"none",width:"100%",height:"100%"}},null,-1),rf={class:"anchor-wrapper"},sf=["onMousedown"],df=D("span",{class:"title"}," \u5916\u8FB9\u8DDD ",-1),cf={class:"tools"},pf={class:"thumnail border"},ff=["title","onDblclick"],mf=["onUpdate:modelValue","onBlur"],hf=["width","height","viewBox","data-link-anchor","innerHTML"],gf={class:"anchor-wrapper"},vf=["onMousedown"],yf=D("span",{class:"title"}," \u5185\u8FB9\u8DDD ",-1),_f={class:"tools"},bf={class:"title"},Ef=D("span",null," x ",-1),kf={key:0,class:"flex items-center justify-between"},Ff=j({name:"DkStyleBoxInput"});var wf=j({...Ff,props:pa,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=me({margin:!1,padding:!1,widthHeight:!1}),l=R(),u=R(),i=R(),a=R(!1),s=me({marginLeft:o.modelValue.marginLeft||"",marginRight:o.modelValue.marginRight||"",marginTop:o.modelValue.marginTop||"",marginBottom:o.modelValue.marginBottom||"",paddingLeft:o.modelValue.paddingLeft||"",paddingRight:o.modelValue.paddingRight||"",paddingTop:o.modelValue.paddingTop||"",paddingBottom:o.modelValue.paddingBottom||"",width:o.modelValue.width||"",height:o.modelValue.height||""}),r=R(null),{width:_}=gt(r),y=me({padding:!1,margin:!1,size:!1}),E=ue(()=>{if(o.height==="auto"){const O=_.value/1.8;return O>200?200:O}else return o.height});Z(()=>o.modelValue,(O,z)=>{["marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","width","height"].forEach(oe=>{O[oe]!==z[oe]&&(s[oe]=O[oe]||"")})},{deep:!0}),Z(s,()=>{const O=Object.keys(s).reduce((z,ee)=>(s[ee]!==""&&(z[ee]=s[ee]),z),{});e("update:modelValue",O),e("change",O)});const k=me({marginLeft:!1,marginRight:!1,marginTop:!1,marginBottom:!1,paddingLeft:!1,paddingRight:!1,paddingTop:!1,paddingBottom:!1,width:!1,height:!1}),C=R(!1),p=me({x:0,y:0}),S=R(null),x=R(null),F=me({type:"",position:""}),m=me({display:"none",width:"0px",height:"0px",left:"0px",top:"0px"}),c=O=>{if(!C.value)return;const z=F.position,ee=F.type,oe=ee+Ro(z),H=(le,de)=>{const q=le==="x"?"clientX":"clientY";m[de]=O[q]+"px";let ye=O[q]-p[le];(z==="top"||z==="left")&&(ye=-ye),s[oe]=(parseInt(s[oe])||0)+ye+"px",y[ee]&&(s[ee+"Top"]=s[oe],s[ee+"Bottom"]=s[oe],s[ee+"Left"]=s[oe],s[ee+"Right"]=s[oe]),p[le]=O[q]};z==="left"||z==="right"?H("x","left"):(z==="top"||z==="bottom")&&H("y","top")},v=(O,z,ee)=>{Object.assign(F,{position:z,type:O}),S.value=c.bind(ee),document.addEventListener("mousemove",S.value),x.value=f.bind(ee),document.addEventListener("mouseup",x.value),C.value=!0;const oe=document.querySelector(".wrapper"),H=oe?oe.offsetWidth:0,le={margin:.9,padding:.9*.7},{clientX:de,clientY:q}=ee,ye=(L,X,K,ne,ie)=>{document.body.style.cursor=L,Object.assign(m,{left:X,top:K,width:ne,height:ie,display:"block"})};p.x=de,p.y=q,z==="left"||z==="right"?ye("ew-resize",de+"px",q-E.value*.5*le[O]+"px","0.1px",E.value*le[O]+"px"):ye("ns-resize",de-H*.5*le[O]+"px",q+"px",H*le[O]+"px","0.1px")},f=()=>{document.removeEventListener("mousemove",S.value),document.removeEventListener("mouseup",x.value),C.value=!1,m.display="none",document.body.style.cursor="default",p.x=null,p.y=null},V=(O,z="move",ee)=>{C.value||ee.stopPropagation(),z!=="move"?n[O]=!1:(Object.keys(n).forEach(oe=>{oe!==O&&(n[oe]=!1)}),n[O]=!0)},A=(O,z)=>{k[O]=!0,Oe(()=>{O==="width"?u.value.focus():O==="height"?i.value.focus():l.value[z].focus()})},$=O=>O==="auto"?O:O==="0"||O===0?0:O===""?"-":(typeof O=="string"&&O.includes("calc"),O),T=O=>{if(k[O]=!1,s[O]===""||s[O]==="auto"||typeof s[O]=="string"&&s[O].includes("calc"))return;if(!/^(\d*\.?\d+)(px|rem|%|vh)$/.test(s[O])){const ee=parseInt(s[O]);isNaN(ee)?s[O]="":(s[O]=ee+"px",O.indexOf("padding")==0&&y.padding&&(s.paddingTop=s[O],s.paddingRight=s[O],s.paddingBottom=s[O],s.paddingLeft=s[O]),O.indexOf("margin")==0&&y.padding&&(s.marginTop=s[O],s.marginRight=s[O],s.marginBottom=s[O],s.marginLeft=s[O]))}},M=O=>{O==="widthHeight"?(s.width="",s.height=""):O==="margin"?(s.marginLeft="",s.marginRight="",s.marginTop="",s.marginBottom=""):O==="padding"&&(s.paddingLeft="",s.paddingRight="",s.paddingTop="",s.paddingBottom="")},U=O=>{y[O]=!y[O]};return(O,z)=>{const ee=b("dk-icon"),oe=b("el-popover"),H=b("el-switch"),le=b("el-tooltip"),de=b("el-input");return h(),w("div",Zp,[D("div",{class:"position-line",style:G(m)},null,4),D("div",ef,[D("div",tf,[D("label",of,[N(" \u5185\u5916\u8FB9\u8DDD "),d(oe,{ref:"popover",placement:"bottom",title:"\u8BF4\u660E",width:280,trigger:"hover",content:o.help},{reference:g(()=>[d(ee,{icon:"QuestionFilled",class:"m-l-5px vertical-text-top"})]),_:1},8,["content"])]),D("div",null,[N(" \u9AD8\u5BBD\u8F85\u52A9 "),d(H,{modelValue:a.value,"onUpdate:modelValue":z[0]||(z[0]=q=>a.value=q),size:"small"},null,8,["modelValue"]),d(oe,{ref:"popover",placement:"bottom",title:"\u8BF4\u660E",width:380,trigger:"hover",content:"\u8BBE\u7F6E\u5F53\u524D\u5143\u7D20\u9AD8\u5EA6\u4E0E\u5BBD\u5EA6\uFF0C\u4F8B\u5982\uFF1A10px\u300180%\u300110em\u7B49\u540E\u7F00\uFF0C\u5982\u679C\u67D0\u4E9B\u5143\u7D20\u8BBE\u7F6E\u4E86\u5916\u8FB9\u8DDD\uFF0C\u5185\u90E8\u8BBE\u7F6E100%\u53EF\u80FD\u4F1A\u9519\u4F4D\uFF0C\u90A3\u4E48\u53EF\u4EE5\u586B\u5199calc\u683C\u5F0F\uFF1Acalc(100% - 20px)"},{reference:g(()=>[d(ee,{icon:"QuestionFilled",class:"m-l-5px vertical-text-top"})]),_:1},512)])]),D("div",{ref_key:"box",ref:r,tabindex:"0",class:"wrapper",style:G([{"margin-top":"10px"},{height:E.value+"px"}])},[D("div",{class:ae(["thumnail margin",n.margin?"thumnail-heightlight":""]),onMousemove:z[15]||(z[15]=q=>V("margin","move",q)),onMouseleave:z[16]||(z[16]=q=>V("margin","leave",q))},[B("\u5916\u8FB9\u8DDD Margin"),D("div",null,[(h(!0),w(W,null,te(P(Kp),(q,ye)=>(h(),w("div",{key:ye},[D("span",{title:q.title,class:ae(`anchor-tip-${q.position} value-indicator`),onDblclick:L=>A(q.value,ye)},[D("span",null,Q($(s[q.value])),1)],42,nf),_e(D("input",{ref_for:!0,ref_key:"inputField",ref:l,"onUpdate:modelValue":L=>s[q.value]=L,class:ae("input-box anchor-tip-"+q.position+(k[q.value]?" show":"")),onBlur:L=>T(q.value)},null,42,lf),[[$o,s[q.value]]]),(h(),w("svg",{width:q.svg.width,height:q.svg.height,viewBox:q.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":q.value,style:G(q.svg.style),class:"esm-modal-svg",innerHTML:q.svg.content},null,12,uf))]))),128))]),af,D("div",rf,[(h(),w(W,null,te(["left","right","top","bottom"],(q,ye)=>D("div",{key:ye,class:ae(["anchor","anchor-"+q]),onMousemove:c,onMousedown:L=>v("margin",q,L),onMouseup:f},null,42,sf)),64))]),df,D("div",cf,[d(le,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:g(()=>[d(ee,{style:{"margin-right":"5px"},icon:"Connection",color:y.margin?"#f00":"#303133",onClick:z[1]||(z[1]=q=>U("margin"))},null,8,["color"])]),_:1}),d(le,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5916\u8FB9\u8DDD",placement:"top-start"},{default:g(()=>[d(ee,{icon:"Refresh",color:"#303133",onClick:z[2]||(z[2]=q=>M("margin"))})]),_:1})]),B("\u5916\u8FB9\u8DDD Margin END"),B("\u5185\u8FB9\u8DDD Padding"),D("div",pf,[D("div",{class:ae(["thumnail padding",n.padding?"thumnail-heightlight":""]),onMousemove:z[13]||(z[13]=q=>V("padding","move",q)),onMouseleave:z[14]||(z[14]=q=>V("padding","leave",q))},[D("div",null,[(h(!0),w(W,null,te(P(Qp),(q,ye)=>(h(),w("div",{key:ye},[D("span",{title:q.title,class:ae(`anchor-tip-${q.position} value-indicator`),onDblclick:L=>A(q.value,ye+4)},[D("span",null,Q($(s[q.value])),1)],42,ff),_e(D("input",{ref_for:!0,ref_key:"inputField",ref:l,"onUpdate:modelValue":L=>s[q.value]=L,class:ae("input-box anchor-tip-"+q.position+(k[q.value]?" show":"")),onBlur:L=>T(q.value)},null,42,mf),[[$o,s[q.value]]]),(h(),w("svg",{width:q.svg.width,height:q.svg.height,viewBox:q.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":q.value,style:G(q.svg.style),class:"esm-modal-svg",innerHTML:q.svg.content},null,12,hf))]))),128))]),D("div",gf,[(h(),w(W,null,te(["left","right","top","bottom"],(q,ye)=>D("div",{key:ye,class:ae(["anchor","anchor-"+q]),onMousemove:c,onMousedown:L=>v("padding",q,L),onMouseup:f},null,42,vf)),64))]),yf,D("div",_f,[d(le,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:g(()=>[d(ee,{style:{"margin-right":"5px"},icon:"Connection",color:y.padding?"#f00":"#303133",onClick:z[3]||(z[3]=q=>U("padding"))},null,8,["color"])]),_:1}),d(le,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5185\u8FB9\u8DDD",placement:"top-start"},{default:g(()=>[d(ee,{icon:"Refresh",color:"#303133",onClick:z[4]||(z[4]=q=>M("padding"))})]),_:1})]),B("\u5185\u8FB9\u8DDD END"),D("div",{class:ae(["thumnail width-height",n.widthHeight?"thumnail-heightlight":""]),onMousemove:z[11]||(z[11]=q=>V("widthHeight","move",q)),onMouseleave:z[12]||(z[12]=q=>V("widthHeight","leave",q))},[D("span",bf,[D("span",{class:"content-unit left-0",onDblclick:z[5]||(z[5]=q=>A("width",9))},[D("em",null,Q($(s.width)),1)],32),_e(D("input",{ref_key:"inputWidth",ref:u,"onUpdate:modelValue":z[6]||(z[6]=q=>s.width=q),class:ae(["input-box absolute left-5% top-10px",k.width?" show":""]),onBlur:z[7]||(z[7]=q=>T("width"))},null,34),[[$o,s.width]]),Ef,D("span",{class:"content-unit right-0",onDblclick:z[8]||(z[8]=q=>A("height",9))},[D("em",null,Q($(s.height)),1)],32),_e(D("input",{ref_key:"inputHeight",ref:i,"onUpdate:modelValue":z[9]||(z[9]=q=>s.height=q),class:ae(["input-box absolute right-5% top-10px",k.height?" show":""]),onBlur:z[10]||(z[10]=q=>T("height"))},null,34),[[$o,s.height]])])],34)],34)])],34)],4),a.value?(h(),w("div",kf,[d(de,{modelValue:s.width,"onUpdate:modelValue":z[17]||(z[17]=q=>s.width=q),class:"w-50%",placeholder:"\u8F93\u5165\u5BBD\u5EA6"},null,8,["modelValue"]),d(de,{modelValue:s.height,"onUpdate:modelValue":z[18]||(z[18]=q=>s.height=q),class:"w-50%",placeholder:"\u8F93\u5165\u9AD8\u5EA6"},null,8,["modelValue"])])):B("v-if",!0)])])}}}),Df=Y(wf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-box-input\\src\\style-box-input.vue"]]);const fa=fe(Df),ma={modelValue:{type:Object,default:()=>({})}},Cf={class:"dk-style-font-input"},Af={style:{display:"flex","flex-flow":"wrap","align-items":"center"}},xf={class:"m-b-5px"},Bf={style:{width:"100px"},class:"m-b-5px"},Sf={style:{width:"100px"},class:"m-r-5px m-b-5px"},Vf={class:"m-r-5px m-b-5px"},$f={class:"m-b-5px"},Tf=j({name:"DkStyleFontInput"});var If=j({...Tf,props:ma,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=400,l=100,u=me({color:o.modelValue.color||"",fontSize:o.modelValue.fontSize||"",fontWeight:o.modelValue.fontWeight||"",fontStyle:o.modelValue.fontStyle||"",textDecoration:o.modelValue.textDecoration||""});Z(u,s=>{const r=Object.keys(u).reduce((_,y)=>(u[y]!==""&&(_[y]=u[y]),_),{});e("update:modelValue",r),e("change",r)}),Z(()=>o.modelValue,()=>{["color","fontSize","fontWeight","fontStyle","textDecoration"].forEach(r=>{u[r]=o.modelValue[r]||""})},{deep:!0});const i=[{label:"\u666E\u901A",value:"normal"},{label:"\u52A0\u7C97",value:"bold"},{label:"\u66F4\u7C97",value:"bolder"},{label:"\u66F4\u7EC6",value:"lighter"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}],a=s=>{s==="all"?Object.keys(u).forEach(r=>{u[r]=""}):u[s]=""};return(s,r)=>{const _=b("el-button"),y=b("el-color-picker"),E=b("el-tooltip"),k=b("el-option"),C=b("el-select"),p=b("dk-icon"),S=b("el-button-group");return h(),w("div",Cf,[B(" \u989C\u8272\u3001\u5B57\u53F7\u3001\u7C97\u7EC6\u3001\u98CE\u683C\u3001\u88C5\u9970"),D("div",Af,[d(E,{placement:"top-end",trigger:"hover","show-after":n,"hide-after":l},{content:g(()=>[N(" \u6587\u5B57\u989C\u8272 "),d(_,{size:"small",icon:"Refresh",color:"var(--el-text-color-primary)",disabled:u.color==="",onClick:r[0]||(r[0]=x=>a("color"))},{default:g(()=>[N("\u91CD\u7F6E")]),_:1},8,["disabled"])]),default:g(()=>[D("div",xf,[d(y,{modelValue:u.color,"onUpdate:modelValue":r[1]||(r[1]=x=>u.color=x)},null,8,["modelValue"])])]),_:1}),D("div",Bf,[d(C,{modelValue:u.fontSize,"onUpdate:modelValue":r[2]||(r[2]=x=>u.fontSize=x),"remote-show-suffix":!1,placeholder:"\u5B57\u53F7","allow-create":"",clearable:"",filterable:!0},{default:g(()=>[(h(),w(W,null,te(["12px","14px","16px","18px","20px","24px","28px","32px","36px","40px","48px"],x=>d(k,{key:x,label:x,value:x},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),D("div",Sf,[d(C,{modelValue:u.fontWeight,"onUpdate:modelValue":r[3]||(r[3]=x=>u.fontWeight=x),"remote-show-suffix":!1,placeholder:"\u7C97\u7EC6","allow-create":"",clearable:"",filterable:!0},{default:g(()=>[(h(),w(W,null,te(i,x=>d(k,{key:x.value,label:x.label,value:x.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),D("div",Vf,[d(_,{type:u.fontStyle?"primary":"",onClick:r[4]||(r[4]=x=>u.fontStyle?u.fontStyle="":u.fontStyle="italic")},{default:g(()=>[d(p,{icon:"radix-icons:font-italic",title:"\u6587\u5B57\u503E\u659C"})]),_:1},8,["type"])]),D("div",$f,[d(S,null,{default:g(()=>[d(_,{type:u.textDecoration=="underline"?"primary":"",onClick:r[5]||(r[5]=x=>u.textDecoration=="underline"?u.textDecoration="":u.textDecoration="underline")},{default:g(()=>[d(p,{icon:"radix-icons:underline",title:"\u4E0B\u5212\u7EBF"})]),_:1},8,["type"]),d(_,{type:u.textDecoration=="line-through"?"primary":"",onClick:r[6]||(r[6]=x=>u.textDecoration=="line-through"?u.textDecoration="":u.textDecoration="line-through")},{default:g(()=>[d(p,{icon:"radix-icons:strikethrough",title:"\u5220\u9664\u7EBF"})]),_:1},8,["type"]),d(_,{type:u.textDecoration=="wavy underline"?"primary":"",onClick:r[7]||(r[7]=x=>u.textDecoration=="wavy underline"?u.textDecoration="":u.textDecoration="wavy underline")},{default:g(()=>[d(p,{icon:"mdi:format-underline-wavy",title:"\u6CE2\u6D6A\u7EBF"})]),_:1},8,["type"])]),_:1})]),d(E,{placement:"top",trigger:"hover",content:"\u5168\u90E8\u91CD\u7F6E","show-after":n,"hide-after":l},{default:g(()=>[d(_,{type:"danger",plain:"",icon:"Delete",class:"m-l-5px m-b-5px",onClick:r[8]||(r[8]=x=>a("all"))})]),_:1})])])}}}),Rf=Y(If,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-font-input\\src\\style-font-input.vue"]]);const ha=fe(Rf),ga={modelValue:{type:Object,default:()=>{}}},Of={class:"border-box"},zf={style:{width:"100%"},class:"m-l-20px"},jf={style:{display:"flex",width:"100%"}},Pf=j({name:"DkStyleBorderInput"});var Mf=j({...Pf,props:ga,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=["top","right","bottom","left","all"],l=["px","%","rem","em","vw","vh"],u=R("all"),i=R(),{width:a}=gt(i),s=()=>({unit:"px"}),r=me({top:s(),right:s(),bottom:s(),left:s(),all:s(),radius:o.modelValue.borderRadius||"0px"}),_=ue(()=>{const C={};return n.forEach(p=>{p==="all"?(r[p].borderWidth&&(C.borderWidth=r[p].borderWidth+(r[p].unit||"px")),r[p].borderStyle&&(C.borderStyle=r[p].borderStyle),r[p].borderColor&&(C.borderColor=r[p].borderColor)):(r[p].borderWidth&&(C["border"+Ro(p)+"Width"]=r[p].borderWidth+(r[p].unit||"px")),r[p].borderStyle&&(C["border"+Ro(p)+"Style"]=r[p].borderStyle),r[p].borderColor&&(C["border"+Ro(p)+"Color"]=r[p].borderColor))}),r.radius!=="0px"&&(C.borderRadius=r.radius),C});Z(_,()=>{e("update:modelValue",_.value),e("change",_.value)});const y=()=>{["borderWidth","borderStyle","borderColor","borderRightWidth","borderRightStyle","borderRightColor","borderLeftWidth","borderLeftStyle","borderLeftColor","borderTopWidth","borderTopStyle","borderTopColor","borderBottomWidth","borderBottomStyle","borderBottomColor","borderRadius"].forEach(p=>{if(o.modelValue[p])if(p==="borderRadius")r.radius=o.modelValue[p];else{let[S,x,F]=p.split(/(?=[A-Z])/),m=x.toLowerCase();const c=o.modelValue[p];if(n.indexOf(m)===-1&&(m="all",F=x),F==="Width"){const v=parseInt(c)||0,f=c.replace(v+"","")||"px";l.indexOf(f)>-1&&(r[m].unit=f,r[m].borderWidth=v)}else r[m]["border"+F]=c}else if(p==="borderRadius")r.radius="0px";else{let[S,x,F]=p.split(/(?=[A-Z])/),m=x.toLowerCase();n.indexOf(m)===-1&&(m="all",F=x),o.modelValue[p],F==="Width"?(delete r[m].borderWidth,delete r[m].unit):delete r[m]["border"+F]}})},E=()=>{u.value==="all"?n.forEach(C=>{C!=="all"&&(r[C]={unit:"px"})}):n.forEach(C=>{C==="all"&&(r[C]={unit:"px"})})},k=C=>{C==="radius"?r.radius="0px":delete r[u.value][C]};return Z(()=>o.modelValue,()=>{y()},{deep:!0}),Se(()=>{y()}),(C,p)=>{const S=b("dk-icon"),x=b("el-tooltip"),F=b("el-slider"),m=b("el-input"),c=b("el-option"),v=b("el-select"),f=b("el-form-item"),V=b("el-radio-button"),A=b("el-radio-group"),$=b("el-color-picker"),T=b("dk-box-size-input"),M=b("el-form");return h(),w("div",{ref_key:"el",ref:i,class:ae(["dk-style-border-input",P(a)<400?"mini":""])},[D("div",Of,[(h(),w(W,null,te(n,U=>d(S,{key:U,icon:"gg:border-"+U,class:ae("border-box-option border-"+U+" "+(u.value==U?"selected":"")),size:24,style:G("grid-area: border-"+U+" / border-"+U+" / border-"+U+" / border-"+U+";"),onClick:O=>u.value=U},null,8,["icon","class","style","onClick"])),64))]),D("div",zf,[B(" \u6837\u5F0F\u3001\u5BBD\u5EA6\u3001\u989C\u8272"),d(M,{"label-width":"50px","label-position":"left",size:"small"},{default:g(()=>[d(f,{value:"\u5C3A\u5BF8"},{label:g(()=>[d(x,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!r[u.value].borderWidth},{default:g(()=>[D("span",{class:ae(["cursor-pointer",r[u.value].borderWidth?"color-blue":""]),onClick:p[0]||(p[0]=U=>k("borderWidth"))},"\u5C3A\u5BF8",2)]),_:1},8,["disabled"])]),default:g(()=>[D("div",jf,[d(F,{modelValue:r[u.value].borderWidth,"onUpdate:modelValue":p[1]||(p[1]=U=>r[u.value].borderWidth=U),class:"dk-border-slider",max:50,onChange:p[2]||(p[2]=U=>E())},null,8,["modelValue"]),d(m,{modelValue:r[u.value].borderWidth,"onUpdate:modelValue":p[3]||(p[3]=U=>r[u.value].borderWidth=U),class:"dk-border-input",type:"number",onChange:p[4]||(p[4]=U=>E())},{default:g(()=>[B(" <template #append>"),B(" <el-select"),B(' v-model="form[position].unit"'),B(' placeholder="px"'),B(' class="dk-border-select"'),B(' style="width: 50px"'),B(' suffix-icon=""'),B(' @change="clearOtherBorder()"'),B(" >"),B(" <el-option"),B(' v-for="item in units"'),B(' :key="item"'),B(' :label="item"'),B(' :value="item"'),B(" />"),B(" </el-select>"),B(" </template>")]),_:1},8,["modelValue"]),d(v,{modelValue:r[u.value].unit,"onUpdate:modelValue":p[5]||(p[5]=U=>r[u.value].unit=U),placeholder:"px",class:"dk-border-select",style:{width:"60px"},onChange:p[6]||(p[6]=U=>E())},{default:g(()=>[(h(),w(W,null,te(l,U=>d(c,{key:U,label:U,value:U},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),d(f,{value:"\u6837\u5F0F"},{label:g(()=>[d(x,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!r[u.value].borderStyle},{default:g(()=>[D("span",{class:ae(["cursor-pointer",r[u.value].borderStyle?"color-blue":""]),onClick:p[7]||(p[7]=U=>k("borderStyle"))},"\u6837\u5F0F",2)]),_:1},8,["disabled"])]),default:g(()=>[d(A,{modelValue:r[u.value].borderStyle,"onUpdate:modelValue":p[8]||(p[8]=U=>r[u.value].borderStyle=U),onChange:p[9]||(p[9]=U=>E())},{default:g(()=>[d(V,{value:"solid",name:"type"},{default:g(()=>[d(S,{icon:"gg:border-style-solid"})]),_:1}),d(V,{value:"dotted",name:"type"},{default:g(()=>[d(S,{icon:"gg:border-style-dotted"})]),_:1}),d(V,{value:"dashed",name:"type"},{default:g(()=>[d(S,{icon:"gg:border-style-dashed"})]),_:1}),d(V,{value:"double",name:"type"},{default:g(()=>[d(S,{icon:"memory:box-light-double-horizontal"})]),_:1})]),_:1},8,["modelValue"])]),_:1}),d(f,{label:"\u989C\u8272"},{label:g(()=>[d(x,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!r[u.value].borderColor},{default:g(()=>[D("span",{class:ae(["cursor-pointer",r[u.value].borderColor?"color-blue":""]),onClick:p[10]||(p[10]=U=>k("borderColor"))},"\u989C\u8272",2)]),_:1},8,["disabled"])]),default:g(()=>[d($,{modelValue:r[u.value].borderColor,"onUpdate:modelValue":p[11]||(p[11]=U=>r[u.value].borderColor=U)},null,8,["modelValue"])]),_:1}),d(f,{label:"\u5F27\u5EA6"},{label:g(()=>[d(x,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:r.radius=="0px"},{default:g(()=>[D("span",{class:ae(["cursor-pointer",r.radius!=="0px"?"color-blue":""]),onClick:p[12]||(p[12]=U=>k("radius"))},"\u5F27\u5EA6",2)]),_:1},8,["disabled"])]),default:g(()=>[d(T,{modelValue:r.radius,"onUpdate:modelValue":p[13]||(p[13]=U=>r.radius=U),type:"radius"},null,8,["modelValue"])]),_:1})]),_:1})])],2)}}}),Nf=Y(Mf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-border-input\\src\\style-border-input.vue"]]);const va=fe(Nf),ya={modelValue:{type:Object,default:()=>({backgroundImage:"",backgroundColor:""})}},Uf={class:"dk-style-background-input"},Lf=j({name:"DkStyleBackgroundInput"});var Hf=j({...Lf,props:ya,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=me({backgroundImage:"",backgroundColor:""});Z(n,()=>{const u={};n.backgroundColor&&(u.backgroundColor=n.backgroundColor),n.backgroundImage&&(u.backgroundImage=`url(${n.backgroundImage})`),e("update:modelValue",u),e("change",u)},{deep:!0});const l=()=>{n.backgroundColor=o.modelValue.backgroundColor||"";const u=o.modelValue.backgroundImage;if(u){const i=/url\((.+)\)/,a=u.match(i);a&&(n.backgroundImage=a[1])}};return Z(()=>o.modelValue,()=>{l()}),Se(()=>{l()}),(u,i)=>{const a=b("el-color-picker"),s=b("dk-image-input");return h(),w("div",Uf,[d(a,{modelValue:n.backgroundColor,"onUpdate:modelValue":i[0]||(i[0]=r=>n.backgroundColor=r),"show-alpha":""},null,8,["modelValue"]),d(s,{modelValue:n.backgroundImage,"onUpdate:modelValue":i[1]||(i[1]=r=>n.backgroundImage=r)},null,8,["modelValue"])])}}}),Wf=Y(Hf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-background-input\\src\\style-background-input.vue"]]);const _a=fe(Wf),ba={type:{default:"input",type:String},modelValue:{default:()=>{},type:Object}},qf={class:"dk-style-shadow-input"},Yf={key:1,class:"shadow-list"},Gf=j({name:"DkStyleShadowInput"});var Xf=j({...Gf,props:ba,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=R([]),l=R("1"),u=()=>{n.value.push("2px 2px 3px 2px #E7E5E5FF"),l.value=n.value.length-1+""},i=r=>{n.value.splice(r,1)},a=()=>{o.modelValue.boxShadow&&(n.value=o.modelValue.boxShadow.split(","))},s=ue(()=>n.value.join(","));return Z(s,(r,_)=>{e("update:modelValue",{boxShadow:s.value}),e("change",{boxShadow:s.value})}),Z(()=>o.modelValue,()=>{a()},{deep:!0}),Se(()=>{a()}),(r,_)=>{const y=b("dk-style-shadow-content"),E=b("el-collapse-item"),k=b("el-collapse"),C=b("el-button"),p=b("el-popover"),S=b("el-input"),x=b("dk-icon");return h(),w("div",qf,[r.type==="collapse"?(h(),I(k,{key:0,modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=F=>l.value=F),accordion:""},{default:g(()=>[(h(!0),w(W,null,te(n.value,(F,m)=>(h(),I(E,{key:m,title:F,name:m+""},{default:g(()=>[d(y,{modelValue:n.value[m],"onUpdate:modelValue":c=>n.value[m]=c},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])):(h(),w("ul",Yf,[(h(!0),w(W,null,te(n.value,(F,m)=>(h(),w("li",{key:m},[d(S,{modelValue:n.value[m],"onUpdate:modelValue":c=>n.value[m]=c,disabled:""},{append:g(()=>[d(p,{placement:"right-start",title:"",width:"380",trigger:"click"},{reference:g(()=>[d(C,null,{default:g(()=>[N("\u8BBE\u7F6E")]),_:1})]),default:g(()=>[d(y,{modelValue:n.value[m],"onUpdate:modelValue":c=>n.value[m]=c},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]),d(x,{class:"close-shadow",icon:"Close","hover-color":"#f00",onClick:c=>i(m)},null,8,["onClick"])]))),128))])),d(C,{class:"m-t-10px w-100%",onClick:u},{default:g(()=>[d(x,{icon:"Plus"})]),_:1})])}}}),Jf=Y(Xf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);const Kf={class:"flex"},Qf={class:"flex"},Zf={class:"flex"},em={class:"flex"},tm={class:"shadow-content-shortcut"},om={class:"default-css m-b-10px"},nm=D("div",{class:"m-b-10px"},"\u5E38\u7528\u6837\u5F0F",-1),lm=D("i",{id:"center"},null,-1),um=[lm],am=j({name:"DkStyleShadowContent"});var im=j({...am,props:{boxSize:{default:180,type:Number},size:{default:"small",type:String},max:{default:24,type:Number},modelValue:{default:"0px 0px 0px rgba(0, 0, 0, 0)",type:String},defaultStyles:{default:()=>[{label:"\u7ECF\u5178",value:"3px 5px 7px 2px #CBCBCBFF"},{label:"\u6241\u5E73",value:"4px 4px 3px -2px #E7E5E5FF"},{label:"\u7ACB\u4F53",value:"1px 2px 4px 2px #979797FF"}],type:Array}},emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=R(null);gt(n);const l=me({color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"}),u=["px","%","rem","em","vw","vh"],i=R(!1),a=me({left:0,top:0}),s=R(""),r=R(),_=ue(()=>({left:a.left+"px",top:a.top+"px"})),y=(p,S)=>{if(i.value||S){const x=r.value.getBoundingClientRect();a.left=parseInt(String(p.clientX-x.x)),a.top=parseInt(String(p.clientY-x.y))}};Z(a,()=>{l.x=parseInt(String((a.left-o.boxSize/2)/o.boxSize*o.max)),l.y=parseInt(String((a.top-o.boxSize/2)/o.boxSize*o.max))}),Z(l,()=>{let p=`${l.x}${l.x_unit} ${l.y}${l.y_unit} ${l.vague}${l.vague_unit} ${l.extend}${l.extend_unit} ${l.color}`;l.type==="inset"&&(p=p+" inset"),e("update:modelValue",p)});const E=p=>{y(p,1),i.value=!0},k=p=>{p?.indexOf(" inset")>-1&&(l.type="inset",p=p.replace(" inset",""));const S=p.split("rgba");let x,F;S.length>1?(x="rgba"+S[1].trim(),F=S[0].trim().split(" ")):(F=S[0].trim().split(" "),x=F.pop()),l.color=x||"#000",l.x=parseInt(F[0])||0,l.y=parseInt(F[1])||0,l.vague=parseInt(F[2])||0,l.extend=parseInt(F[3])||0;const m=c=>{let v=c?.replace(/[-\d.]/g,"")||"px";return u.indexOf(v)===-1&&(v="px"),v};l.x_unit=m(F[0]),l.y_unit=m(F[1]),l.vague_unit=m(F[2]),l.extend_unit=m(F[3]),a.left=o.boxSize/2+l.x/o.max*o.boxSize||0,a.top=o.boxSize/2+l.y/o.max*o.boxSize||0},C=p=>{const S=p.value;k(S)};return Se(()=>{k(o.modelValue)}),(p,S)=>{const x=b("el-radio-button"),F=b("el-radio-group"),m=b("el-form-item"),c=b("dk-color-input"),v=b("el-input"),f=b("el-option"),V=b("el-select"),A=b("el-form"),$=b("el-button");return h(),w("div",{ref_key:"el",ref:n,class:"dk-style-shadow-content",style:G({"--shadow-box-width":t.boxSize+"px"})},[d(A,{"label-width":"60px","label-position":"left",class:"shadow-form-content",size:t.size},{default:g(()=>[d(m,{label:"\u6A21\u5F0F"},{default:g(()=>[d(F,{modelValue:l.type,"onUpdate:modelValue":S[0]||(S[0]=T=>l.type=T)},{default:g(()=>[d(x,{value:"external"},{default:g(()=>[N("\u5916\u90E8")]),_:1}),d(x,{value:"inset"},{default:g(()=>[N("\u5185\u90E8")]),_:1})]),_:1},8,["modelValue"])]),_:1}),d(m,{label:"\u989C\u8272"},{default:g(()=>[d(c,{modelValue:l.color,"onUpdate:modelValue":S[1]||(S[1]=T=>l.color=T),"show-alpha":"",teleported:!1},null,8,["modelValue"])]),_:1}),d(m,{label:"x\u8F74"},{default:g(()=>[D("div",Kf,[d(v,{modelValue:l.x,"onUpdate:modelValue":S[2]||(S[2]=T=>l.x=T),type:"number"},null,8,["modelValue"]),d(V,{modelValue:l.x_unit,"onUpdate:modelValue":S[3]||(S[3]=T=>l.x_unit=T),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[(h(),w(W,null,te(u,T=>d(f,{key:T,label:T,value:T},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),d(m,{label:"y\u8F74"},{default:g(()=>[D("div",Qf,[d(v,{modelValue:l.y,"onUpdate:modelValue":S[4]||(S[4]=T=>l.y=T),type:"number"},null,8,["modelValue"]),d(V,{modelValue:l.y_unit,"onUpdate:modelValue":S[5]||(S[5]=T=>l.y_unit=T),placeholder:"\u8BF7\u9009\u62E9",class:"w-40px"},{default:g(()=>[(h(),w(W,null,te(u,T=>d(f,{key:T,label:T,value:T},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),d(m,{label:"\u6A21\u7CCA"},{default:g(()=>[D("div",Zf,[d(v,{modelValue:l.vague,"onUpdate:modelValue":S[6]||(S[6]=T=>l.vague=T),type:"number"},null,8,["modelValue"]),d(V,{modelValue:l.vague_unit,"onUpdate:modelValue":S[7]||(S[7]=T=>l.vague_unit=T),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[(h(),w(W,null,te(u,T=>d(f,{key:T,label:T,value:T},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),d(m,{label:"\u6269\u5C55"},{default:g(()=>[D("div",em,[d(v,{modelValue:l.extend,"onUpdate:modelValue":S[8]||(S[8]=T=>l.extend=T),type:"number"},null,8,["modelValue"]),d(V,{modelValue:l.extend_unit,"onUpdate:modelValue":S[9]||(S[9]=T=>l.extend_unit=T),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[(h(),w(W,null,te(u,T=>d(f,{key:T,label:T,value:T},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1})]),_:1},8,["size"]),D("div",tm,[D("div",om,[nm,(h(!0),w(W,null,te(o.defaultStyles,(T,M)=>(h(),I($,{key:M,size:"small",onClick:U=>C(T)},{default:g(()=>[N(Q(T.label),1)]),_:2},1032,["onClick"]))),128))]),D("div",{ref_key:"box",ref:r,class:ae(["shadow-content-box",i.value?"down":""]),style:G({height:t.boxSize+"px",width:t.boxSize+"px"}),onClick:S[10]||(S[10]=T=>y(T,1)),onMousedown:E,onMouseup:S[11]||(S[11]=T=>i.value=!1),onMousemove:S[12]||(S[12]=T=>y(T,0))},[D("span",{id:"spot",style:G(_.value)},um,4),D("span",{id:"center-spot",style:G({top:t.boxSize/2+"px",left:t.boxSize/2+"px"})},null,4),D("div",{class:"x-hr",style:G({top:t.boxSize/2+"px"})},null,4),D("div",{class:"y-hr",style:G({left:t.boxSize/2+"px"})},null,4),D("div",{class:"line",style:G(s.value)},null,4)],38)])],4)}}}),rm=Y(im,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-content.vue"]]);const Ea=fe(Jf),ka=fe(rm),Fa={modelValue:{type:Object,default:()=>({})}},sm={class:"m-t-10px"},dm=["onClick"],cm=j({name:"DkStylePositionInput"});var pm=j({...cm,props:Fa,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=R(null),{width:l}=gt(n),u=ue(()=>l.value<=300?24:l.value<800?12:6),i=R({left:o.modelValue.left||"",top:o.modelValue.top||"",right:o.modelValue.right||"",bottom:o.modelValue.bottom||""}),a=[{label:"\u4E0A",value:"top",tip:"\u5F53\u524D\u8DDD\u79BB\u9876\u90E8\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u53F3",value:"right",tip:"\u5F53\u524D\u8DDD\u79BB\u53F3\u4FA7\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u4E0B",value:"bottom",tip:"\u5F53\u524D\u8DDD\u79BB\u5E95\u90E8\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u5DE6",value:"left",tip:"\u5F53\u524D\u8DDD\u79BB\u5DE6\u4FA7\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"}],s=[{label:"\u5DE6\u4E0A",value:"left-top"},{label:"\u5DE6\u4E0B",value:"left-down"},{label:"\u53F3\u4E0A",value:"right-top"},{label:"\u53F3\u4E0B",value:"right-down"},{label:"\u4E0B\u5C45\u4E2D",value:"down-center"},{label:"\u4E0A\u5C45\u4E2D",value:"up-center"}],r=R(!1),_=E=>{switch(r.value=!0,E){case"left-top":i.value={left:"1px",top:"1px",right:"",bottom:""};break;case"left-down":i.value={left:"1px",bottom:"1px",right:"",up:""};break;case"right-top":i.value={top:"1px",right:"1px",left:"",bottom:""};break;case"right-down":i.value={right:"1px",bottom:"1px",left:"",up:""};break;case"down-center":i.value={left:"1px",right:"1px",bottom:"1px",up:""};break;case"up-center":i.value={left:"1px",top:"1px",right:"1px",bottom:""};break}},y=()=>{const E=Object.keys(i.value).reduce((k,C)=>((r.value&&i.value[C]!="0px"||!r.value&&C!=="position")&&i.value[C]&&(k[C]=i.value[C]),k),{});e("update:modelValue",E)};return Z(()=>i.value,()=>{y()},{deep:!0}),Z(()=>o.modelValue,()=>{Object.keys(o.modelValue).reduce((E,k)=>(k!=="position"&&(E[k]=o.modelValue[k]),E),i.value)},{deep:!0}),(E,k)=>{const C=b("el-radio-button"),p=b("el-radio-group"),S=b("el-form-item"),x=b("el-tooltip"),F=b("dk-style-number-input"),m=b("el-col"),c=b("el-row"),v=b("el-form");return h(),w("div",{ref_key:"el",ref:n,class:"dk-style-position-input"},[d(v,{"label-width":"50px","label-position":"left"},{default:g(()=>[D("div",null,[d(S,{label:"\u5E38\u7528"},{default:g(()=>[d(p,{onChange:_},{default:g(()=>[(h(),w(W,null,te(s,(f,V)=>d(C,{key:V,label:f.value},{default:g(()=>[N(Q(f.label),1)]),_:2},1032,["label"])),64))]),_:1})]),_:1})]),D("div",sm,[d(c,{gutter:20},{default:g(()=>[(h(),w(W,null,te(a,(f,V)=>d(m,{key:V,span:u.value,class:"m-b-5px"},{default:g(()=>[d(S,{label:f.label},{label:g(()=>[d(x,{class:"item",effect:"dark",content:f.tip,placement:"top"},{default:g(()=>[D("span",{style:G([{cursor:"pointer"},i.value[f.value]?"color:var(--el-color-primary)":""]),onClick:A=>i.value[f.value]=""},Q(f.label)+"\uFF1A",13,dm)]),_:2},1032,["content"])]),default:g(()=>[d(F,{modelValue:i.value[f.value],"onUpdate:modelValue":A=>i.value[f.value]=A,onInput:k[0]||(k[0]=A=>r.value=!1)},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:2},1032,["span"])),64))]),_:1})])]),_:1})],512)}}}),fm=Y(pm,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-position-input\\src\\style-position-input.vue"]]);const wa=fe(fm),Da={modelValue:{default:"",type:String},icon:{default:"",type:String},direction:{default:"horizontal",type:String},units:{type:Array,default:()=>["px","%"]},showUnit:{default:!0,type:Boolean},tooltipContent:{default:"",type:String}},mm=j({name:"DkStyleNumberInput"});var hm=j({...mm,props:Da,emits:["input","update:modelValue"],setup(t,{emit:e}){const o=t,n=yu(o.modelValue,o.units),l=me({number:n.number,unit:n.unit||"px"}),u=R(!1),i=R(null),a=R(null),s=R(0),r=R(0),_=k=>{u.value=!0,r.value=k.clientX,s.value=k.clientY,i.value=y.bind(k),a.value=E.bind(k),document.addEventListener("mousemove",i.value),document.addEventListener("mouseup",a.value),document.body.style.cursor="ew-resize"},y=k=>{if(u.value){let C;if(o.direction==="horizontal"){const p=k.clientX-r.value;C=Math.floor(p/10),r.value+=C*10}else if(o.direction==="vertical"){const p=k.clientY-s.value;C=Math.floor(p/10),s.value+=C*10}l.number=parseInt(l.number+C)}},E=()=>{console.log("up"),document.removeEventListener("mousemove",i.value),document.removeEventListener("mouseup",a.value),document.body.style.cursor="default",u.value=!1};return Z(()=>l,()=>{l.number===""?e("update:modelValue",""):e("update:modelValue",l.number+l.unit)},{deep:!0}),Z(()=>o.modelValue,()=>{const k=yu(o.modelValue,o.units);l.number=k.number,l.unit=k.unit||"px"}),(k,C)=>{const p=b("dk-icon"),S=b("el-tooltip"),x=b("el-option"),F=b("el-select"),m=b("el-input");return h(),w("div",{class:ae(["dk-style-number-input",o.direction])},[d(m,{modelValue:l.number,"onUpdate:modelValue":C[1]||(C[1]=c=>l.number=c),type:"text",controls:!1,onInput:C[2]||(C[2]=c=>e("input",c))},Ct({prefix:g(()=>[D("span",{class:ae(["w-resize",[`${o.direction}-resize`]]),onMousemove:y,onMousedown:_,onMouseup:E},[d(S,{class:"item",effect:"dark",disabled:!o.tooltipContent,content:o.tooltipContent,placement:"top","open-delay":500},{default:g(()=>[d(p,{icon:o.icon||"Rank"},null,8,["icon"])]),_:1},8,["disabled","content"])],34)]),_:2},[k.showUnit?{name:"append",fn:g(()=>[d(F,{modelValue:l.unit,"onUpdate:modelValue":C[0]||(C[0]=c=>l.unit=c),style:{width:"40px"},"suffix-icon":""},{default:g(()=>[(h(!0),w(W,null,te(k.units,(c,v)=>(h(),I(x,{key:v,label:c,value:c},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),key:"0"}:void 0]),1032,["modelValue"])],2)}}}),gm=Y(hm,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-number-input\\src\\style-number-input.vue"]]);const Ca=fe(gm);function lo(t,e,o){t[e]=o}const We={type(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"},Undef(t){return t==null},Element(t){return typeof t=="object"&&t!==null&&t.nodeType===1&&!We.Object(t)},trueArray(t){return Array.isArray(t)&&t.length>0},Function(t){const e=this.getType(t);return e==="Function"||e==="AsyncFunction"},getType(t){const e=Object.prototype.toString.call(t);return/^\[object (.*)\]$/.exec(e)[1]},empty(t){return t==null||Array.isArray(t)&&Array.isArray(t)&&!t.length?!0:typeof t=="string"&&!t}};["Date","Object","String","Boolean","Array","Number"].forEach(t=>{We[t]=function(e){return We.type(e,t)}});function vm(t,e){return{}.hasOwnProperty.call(t,e)}function Aa(t,e={},o){let n=!1;for(let l in e)if(Object.prototype.hasOwnProperty.call(e,l)){let u=e[l];if((n=Array.isArray(u))||We.Object(u)){let i=t[l]===void 0;if(n)n=!1,i&&lo(t,l,[]);else if(u._clone&&o!==void 0)if(o)u=u.getRule(),i&&lo(t,l,{});else{lo(t,l,u._clone());continue}else i&&lo(t,l,{});t[l]=Aa(t[l],u,o)}else lo(t,l,u),We.Undef(u)||(We.Undef(u.__json)||(t[l].__json=u.__json),We.Undef(u.__origin)||(t[l].__origin=u.__origin))}return o!==void 0&&Array.isArray(t)?t.filter(l=>!l||!l.__ctrl):t}function jt(t){return Aa({},{value:t}).value}function xa(t){return t.replace(t[0],t[0].toLowerCase())}const ym={class:"preview-phone"},_m={class:"phone"},bm={class:"phone-header"},Em={class:"phone-header-top"},km={class:"phone-time"},Fm=D("div",null,null,-1),wm={class:"phone-battery"},Dm=D("span",{class:"m-r-4px"},"100%",-1),Cm={class:"phone-title"},Am={class:"phone-title-icon"},xm=D("div",null,"\u9875\u9762\u6807\u9898",-1),Bm={class:"phone-title-icon"},Sm=j({name:"PreviewPhone"});var Vm=j({...Sm,props:{value:{default:"",type:String},pageConfig:{default:()=>{},type:[Object]}},setup(t){const e=t,o=ut("diy"),n="preview-phone",l=JSON.parse(at.get(n)||"{}"),u=R({showLine:l.showLine||!0,margin:l.margin||2,preview:l.preview||!1,closeAnimate:l.closeAnimate||!1});to("previewSetting",u);const i=()=>{at.set(n,JSON.stringify(u.value))},a=(_="")=>{const{proxy:y}=o,E={rule:"\u7EC4\u4EF6",config:"\u914D\u7F6E"};vn.confirm("\u5F53\u524D\u8981\u6E05\u9664"+E[_]+"\uFF0C\u662F\u5426\u7EE7\u7EED?","\u8B66\u544A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{y.clear(_),Ie.success("\u6E05\u9664\u6210\u529F")}).catch(()=>{})},s=ue(()=>{let _={"--padding":"0","--overflow":"initial"};return u.value.showLine&&!u.value.preview&&(_={"--margin":u.value.margin+"px","--showDashed":"1px"}),u.value.preview?(_["--padding"]="0",_["--overflow"]="hidden",_["--minHeight"]="0px"):(_["--padding"]="2px 0",_["--overflow"]="initial",_["--minHeight"]="30px"),{...e.pageConfig.style,..._}}),r=ue(()=>{const _=new Date,y=_.getHours(),E=_.getMinutes();return y+":"+E});return(_,y)=>{const E=b("van-icon"),k=b("dk-icon"),C=b("el-dropdown-item"),p=b("el-dropdown-menu"),S=b("el-dropdown"),x=b("el-tooltip"),F=b("el-switch"),m=b("el-form-item"),c=b("el-slider"),v=b("el-popover");return h(),w("div",ym,[D("div",_m,[D("div",bm,[D("div",Em,[D("div",km,[D("span",null,Q(r.value),1),d(E,{name:"wechat",color:"#2ddd71"})]),Fm,D("div",wm,[Dm,d(k,{icon:"gg:battery-full",size:18,color:"#555","hover-color":"#f00"})])]),D("div",Cm,[D("div",Am,[d(S,{trigger:"click",placement:"bottom-start"},{dropdown:g(()=>[d(p,null,{default:g(()=>[d(C,{onClick:y[0]||(y[0]=f=>a("rule"))},{default:g(()=>[N("\u6E05\u9664\u7EC4\u4EF6")]),_:1}),d(C,{onClick:y[1]||(y[1]=f=>a("page"))},{default:g(()=>[N("\u6E05\u9664\u9875\u9762")]),_:1})]),_:1})]),default:g(()=>[d(k,{icon:"Close","hover-color":"var(--el-color-primary)",size:20,style:{cursor:"pointer"}})]),_:1})]),xm,D("div",Bm,[d(v,{placement:"bottom",width:200,trigger:"click"},{reference:g(()=>[d(k,{icon:"MoreFilled",size:20,"hover-color":"var(--el-color-primary)",style:{cursor:"pointer"}})]),default:g(()=>[d(m,{label:"\u663E\u793A\u7F51\u683C"},{label:g(()=>[d(x,{class:"box-item",effect:"dark",content:"\u663E\u793A\u7EC4\u4EF6\u7F51\u683C\u7EBF",placement:"right-start"},{default:g(()=>[N(" \u663E\u793A\u7F51\u683C ")]),_:1})]),default:g(()=>[d(F,{modelValue:u.value.showLine,"onUpdate:modelValue":y[2]||(y[2]=f=>u.value.showLine=f),onChange:y[3]||(y[3]=f=>i())},null,8,["modelValue"])]),_:1}),d(m,{label:"\u7F51\u683C\u95F4\u8DDD"},{label:g(()=>[d(x,{class:"box-item",effect:"dark",content:"\u8BBE\u7F6E\u7EC4\u4EF6\u4E4B\u95F4\u7684\u7F51\u683C\u95F4\u8DDD",placement:"right-start"},{default:g(()=>[N(" \u7F51\u683C\u95F4\u8DDD ")]),_:1})]),default:g(()=>[d(c,{modelValue:u.value.margin,"onUpdate:modelValue":y[4]||(y[4]=f=>u.value.margin=f),min:0,step:1,"show-stops":"",max:20,onChange:y[5]||(y[5]=f=>i())},null,8,["modelValue"])]),_:1}),d(m,{label:"\u6548\u679C\u9884\u89C8"},{label:g(()=>[d(x,{class:"box-item",effect:"dark",content:"\u6E05\u9664\u6240\u6709\u7F51\u683C\u3001\u95F4\u8DDD\u6548\u679C\uFF0C\u5927\u81F4\u548C\u771F\u5B9E\u5DEE\u4E0D\u591A",placement:"right-start"},{default:g(()=>[N(" \u6548\u679C\u9884\u89C8 ")]),_:1})]),default:g(()=>[d(F,{modelValue:u.value.preview,"onUpdate:modelValue":y[6]||(y[6]=f=>u.value.preview=f),onChange:y[7]||(y[7]=f=>i())},null,8,["modelValue"])]),_:1}),d(m,{label:"\u5173\u95ED\u52A8\u753B"},{label:g(()=>[d(x,{class:"box-item",effect:"dark",content:"\u5173\u95ED\u6240\u6709\u9884\u89C8\u7684\u52A8\u753B\u6548\u679C",placement:"right-start"},{default:g(()=>[N(" \u5173\u95ED\u52A8\u753B ")]),_:1})]),default:g(()=>[d(F,{modelValue:u.value.closeAnimate,"onUpdate:modelValue":y[8]||(y[8]=f=>u.value.closeAnimate=f),onChange:y[9]||(y[9]=f=>i())},null,8,["modelValue"])]),_:1})]),_:1})])])]),D("div",{class:"phone-body _fc-m-drag",style:G(s.value)},[Ee(_.$slots,"default")],4)])])}}}),$m=Y(Vm,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\PreviewPhone.vue"]]);const Tm="\u6D77\u62A5",Ba="dk-poster-btn";var Vn={icon:"icon-park-outline:mark",label:Tm,name:Ba,rule(){return{type:Ba,props:{},showStyle:!0,fixed:!0}},props(){return[{type:"DkPosterInput",field:"posterData",title:"\u6D77\u62A5\u6570\u636E",value:{}},{type:"input",field:"footerText",title:"\u5E95\u90E8",value:"\u957F\u6309\u6D77\u62A5\u56FE\u7247\u5206\u4EAB\u6216\u4FDD\u5B58\uFF01"},{type:"select",field:"type",title:"\u6837\u5F0F",value:"btn",options:[{label:"\u666E\u901A\u6309\u94AE",value:"btn"},{label:"\u60AC\u6D6E\u6309\u94AE",value:"fixed_btn"},{label:"\u56FE\u7247\u6309\u94AE",value:"image"},{label:"\u4E8B\u4EF6\u89E6\u53D1",value:"event"}],control:[{value:"btn",rule:[{type:"input",field:"btnText",title:"\u6309\u94AE\u6587\u5B57",value:"\u83B7\u53D6\u63A8\u5E7F\u6D77\u62A5"},{type:"switch",field:"block",title:"\u5757\u72B6\u6309\u94AE",value:!0},{type:"switch",field:"round",title:"\u5706\u5F27",value:!0},{type:"select",field:"size",title:"\u5C3A\u5BF8",value:"normal",options:[{label:"\u8FF7\u4F60\u6309\u94AE",value:"mini"},{label:"\u5C0F\u578B\u6309\u94AE",value:"small"},{label:"\u4E2D\u578B\u6309\u94AE",value:"normal"},{label:"\u5927\u578B\u6309\u94AE",value:"large"}]},{type:"DkColorInput",field:"color",title:"\u989C\u8272",value:"#ff3d2c"},{type:"DkColorInput",field:"color2",title:"\u6E10\u53D8\u8272",value:""}]},{value:"fixed_btn",rule:[{type:"input",field:"fBtnText",title:"\u60AC\u6D6E\u6587\u5B57",value:"\u6D77\u62A5"},{type:"DkColorInput",field:"fBgColor",title:"\u80CC\u666F\u8272",value:"#ff3d2c"},{type:"DkColorInput",field:"fColor",title:"\u6587\u5B57\u8272",value:"#fff"},{type:"slider",field:"fSize",title:"\u5C3A\u5BF8",value:30,props:{min:30,max:100}}]},{value:"image",rule:[{type:"DkImageInput",field:"img",title:"\u56FE\u7247",value:""},{type:"slider",field:"imgSize",title:"\u5C3A\u5BF8",value:20,props:{min:20,max:100}}]},{value:"event",rule:[{type:"input",field:"listen",title:"\u76D1\u542C\u4E8B\u4EF6",value:""}]}],effect:{help:"\u914D\u7F6E\u540E\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u3010\u6837\u5F0F\u8BBE\u7F6E\u3011->\u3010\u7EC4\u4EF6\u60AC\u6D6E\u3011\u5BF9\u6309\u94AE\u8FDB\u884C\u60AC\u6D6E"}}]}};const Im="\u5F39\u5E55\u7EC4\u4EF6",Sa="DkViewBulletChat";var $n={icon:"mingcute:chat-1-line",label:Im,name:Sa,rule(){return{type:Sa,props:{dataType:"default",bulletData:[{text:"\u5C0F\u660E\u572814\u5206\u949F\u8D2D\u4E70\u4E86iPhone\u624B\u673A",avatar:"https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"}]},fixed:!0,showStyle:!0}},props(){return[{type:"DkColorInput",field:"bgColor",title:"\u80CC\u666F\u8272",props:{showAlpha:!0},value:"rgb(0 0 0 / 30%)"},{type:"DkColorInput",field:"textColor",title:"\u6587\u5B57\u8272",value:"#fff"},{type:"inputNumber",field:"autoplay",title:"\u6EDA\u52A8\u9891\u7387",value:3e3,props:{min:1e3,max:1e4,step:500}},{type:"select",field:"dataType",title:"\u5185\u5BB9\u6765\u6E90",value:"default",options:[{label:"\u624B\u52A8\u586B\u5199",value:"default"},{label:"\u4E8B\u4EF6\u4F20\u53C2",value:"event"}],control:[{value:"default",rule:[{type:"dk-group",field:"bulletData",value:[{text:"\u5C0F\u660E\u572814\u5206\u949F\u8D2D\u4E70\u4E86iPhone\u624B\u673A",avatar:"https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"}],props:{titleField:"text",defaultValue:{avatar:"",text:""},rule:[{type:"input",field:"text",title:"\u63CF\u8FF0"},{type:"dkImageInput",field:"avatar",title:"\u5934\u50CF",value:""}]}}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"eventName",title:"\u4E8B\u4EF6\u540D\u79F0",value:"",props:{label:"\u5F39\u5E55\u4E8B\u4EF6"},effect:{help:"\u9009\u62E9\u652F\u6301\u5F39\u5E55\u7684\u4E8B\u4EF6\uFF0C\u5185\u5BB9\u5C06\u7531\u8BE5\u4E8B\u4EF6\u4F20\u9012\u53C2\u6570"}}]}]}]}};const Rm="\u5355\u5143\u683C",Va="DkViewCell";var Tn={icon:"cil:grid",label:Rm,name:Va,rule(){return{type:Va,props:{groups:[{title:"\u6807\u9898",value:"\u5185\u5BB9"}]},showStyle:!0,children:[],style:{}}},props(){return[{type:"DkGroup",field:"groups",value:[],props:{title:"\u6570\u636E",defaultValue:{title:"\u6807\u9898",value:"\u5185\u5BB9"},rule:[{type:"input",field:"title",title:"\u540D\u79F0"},{type:"input",field:"value",title:"\u81EA\u5B9A\u4E49\u6570\u636E"}]}}]}};const Om="\u901A\u7528\u6309\u94AE",$a="DkViewCommonBtn";var In={icon:"game-icons:power-button",label:Om,name:$a,rule(){return{type:$a,props:{fBtnText:"\u81EA\u5B9A\u4E49",fWSize:80,fHSize:20},showStyle:!0,fixed:!0,trigger:!0,event:!0}},props(){return[{type:"select",field:"click_type",title:"\u70B9\u51FB\u903B\u8F91",value:"event",options:[{label:"\u94FE\u63A5\u8DF3\u8F6C",value:"url"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"url",rule:[{type:"DkLinkInput",field:"url",title:"\u9009\u62E9\u94FE\u63A5",value:""}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"event",title:"\u4E8B\u4EF6\u540D\u79F0",value:"",effect:{help:"\u914D\u7F6E\u88AB\u89E6\u53D1\u7684\u4E8B\u4EF6\u540D\u79F0\uFF0C\u540D\u79F0\u4EC5\u4E3A\u82F1\u6587\u5B57\u7B26"}}]}]},{type:"select",field:"type",title:"\u6837\u5F0F",value:"btn",options:[{label:"\u666E\u901A\u6309\u94AE",value:"btn"},{label:"\u56FE\u6587\u6309\u94AE",value:"text_image_btn"}],control:[{value:"btn",rule:[{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"",props:{isVant:!0}},{type:"input",field:"btnText",title:"\u6309\u94AE\u6587\u5B57",value:"\u6309\u94AE\u540D\u79F0"},{type:"switch",field:"block",title:"\u5757\u72B6\u6309\u94AE",value:!0},{type:"switch",field:"round",title:"\u5706\u5F27",value:!0},{type:"select",field:"size",title:"\u5C3A\u5BF8",value:"normal",options:[{label:"\u8FF7\u4F60\u6309\u94AE",value:"mini"},{label:"\u5C0F\u578B\u6309\u94AE",value:"small"},{label:"\u4E2D\u578B\u6309\u94AE",value:"normal"},{label:"\u5927\u578B\u6309\u94AE",value:"large"}]},{type:"DkColorInput",field:"color",title:"\u989C\u8272",value:"#ff3d2c",col:{span:12},props:{showAlpha:!0}},{type:"DkColorInput",field:"color2",title:"\u6E10\u53D8\u8272",value:"",col:{span:12},props:{showAlpha:!0}}]},{value:"text_image_btn",rule:[{type:"input",field:"fBtnText",title:"\u6587\u5B57",value:"\u81EA\u5B9A\u4E49\u6587\u672C",control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"fontSize",title:"\u6587\u5B57\u5927\u5C0F",value:12,props:{min:12,max:32},col:{span:12}},{type:"inputNumber",field:"fontTopSize",title:"\u5411\u4E0A\u95F4\u8DDD",value:0,props:{min:0,max:32},col:{span:12}}]}]},{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"",props:{isVant:!0},control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"iconSize",title:"\u56FE\u6807\u5927\u5C0F",value:12,props:{min:12,max:32},col:{span:12}}]}]},{type:"switch",field:"isTextBlock",title:"\u9650\u5236\u5BBD\u9AD8",value:!1,control:[{value:!0,rule:[{type:"slider",field:"borderRadius",title:"\u5F27\u5EA6",value:0,props:{min:0,max:100}},{type:"DkColorInput",field:"fBgColor",title:"\u80CC\u666F\u8272",value:"#ff3d2c",props:{showAlpha:!0},col:{span:8}},{type:"DkColorInput",field:"fColor",title:"\u6587\u5B57\u8272",value:"#fff",col:{span:8,offset:4}},{type:"inputNumber",field:"fWSize",title:"\u5BBD",value:30,props:{min:20,max:400,step:10},col:{span:8}},{type:"inputNumber",field:"fHSize",title:"\u9AD8",value:30,props:{min:20,max:400,step:10},col:{span:8,offset:4}}]}]},{type:"DkImageInput",field:"img",title:"\u56FE\u7247",value:"",control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"imgSize",title:"\u56FE\u7247\u5BBD\u5EA6",value:20,props:{min:20,max:400,step:10}}]}]}]}],effect:{help:"\u914D\u7F6E\u540E\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u3010\u6837\u5F0F\u8BBE\u7F6E\u3011->\u3010\u7EC4\u4EF6\u60AC\u6D6E\u3011\u5BF9\u6309\u94AE\u8FDB\u884C\u60AC\u6D6E"}}]}};const zm="\u5F39\u7A97\u7EC4\u4EF6",Ta="DkViewDialog";var Rn={icon:"mi:window",label:zm,name:Ta,event:!0,rule(){return{type:Ta,props:{title:"\u901A\u77E5",listen:""},showStyle:!0,fixed:!0}},props(){return[{type:"DkEventCreateInput",field:"listen",title:"\u76D1\u542C\u4E8B\u4EF6",value:"",props:{label:"\u5F39\u7A97\u7EC4\u4EF6"}},{type:"input",field:"title",title:"\u5F39\u7A97\u6807\u9898",value:"\u901A\u77E5"},{type:"dk-tiny-editor",field:"content",title:"\u5F39\u7A97\u5185\u5BB9",props:{buttonText:"\u7F16\u8F91\u5F39\u7A97\u5185\u5BB9"},value:""},{type:"input",field:"confirmText",title:"\u6309\u94AE\u6587\u5B57",value:"\u786E\u5B9A"},{type:"switch",field:"show",title:"\u9884\u89C8",value:!1,effect:{help:"\u5F53\u524D\u4E3A\u9884\u89C8\u6309\u94AE\uFF0C\u4E0D\u5F71\u54CD\u5B9E\u9645\u663E\u793A\uFF0C\u70B9\u51FB\u540E\u5728\u9884\u89C8\u7A97\u53E3\u70B9\u786E\u5B9A\u5373\u53EF\u5173\u95ED"}},{type:"radio",field:"copy",title:"\u590D\u5236\u5185\u5BB9",value:"0",options:[{label:"\u4E0D\u590D\u5236",value:"0"},{label:"\u590D\u5236\u5F39\u7A97\u5185\u5BB9",value:"1"},{label:"\u590D\u5236\u81EA\u5B9A\u4E49\u5185\u5BB9",value:"2"}],control:[{value:"2",rule:[{type:"select",field:"copyType",title:"\u590D\u5236\u7C7B\u578B",value:"text",options:[{label:"\u7EAF\u6587\u672C",value:"text"},{label:"\u5BCC\u6587\u672C",value:"html"}],control:[{value:"text",rule:[{type:"input",field:"copyText",title:"\u590D\u5236\u5185\u5BB9",value:"",props:{type:"textarea"}}]},{value:"html",rule:[{type:"dk-tiny-editor",field:"copyHtml",title:"\u590D\u5236\u5185\u5BB9",value:""}]}]}]},{handle:function(t){return t!==""},rule:[{type:"input",field:"copySuccessToast",title:"\u590D\u5236\u63D0\u793A",value:"\u590D\u5236\u6210\u529F",effect:{help:"\u590D\u5236\u6210\u529F\u540E\u7684\u63D0\u793A,\u4E0D\u586B\u5219\u4E0D\u663E\u793A"}}]}]}]}};const jm="\u5217\u8868",Ia="DkViewGridCellList";var On={icon:"fluent:list-bar-16-regular",label:jm,name:Ia,rule(){return{type:Ia,props:{gridCellList:[{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u6296\u52A0",show:!0},{img:"https://cdn.w7.cc/images/2019/05/05/ZtGCY6FSJrKiTuUI5QUypwmNkrYnzQeomSzxBFTG.png",url:"",title:"\u6D3B\u7801",show:!0},{img:"https://cdn.w7.cc/images/2018/06/23/Qz4xGLTdUFddn8pLUhfZ6MxrxdL5tlUI1wlyyAKd.png",url:"",title:"\u62D3\u5BA2",show:!0}],imgTextGutter:20},showStyle:!0}},props(){return[{type:"radio",field:"type",title:"\u7C7B\u578B",value:"cell",options:[{value:"cell",label:"\u5217\u8868"},{value:"grid",label:"\u5BAB\u683C"}],control:[{value:"cell",rule:[{type:"slider",field:"cellImgSize",title:"\u56FE\u7247\u5927\u5C0F",value:20,props:{min:5,max:80}},{type:"slider",field:"imgTextGutter",title:"\u56FE\u6587\u95F4\u8DDD",value:20,props:{min:0,max:80}}]},{value:"grid",rule:[{type:"InputNumber",field:"columnNum",title:"\u5BAB\u683C\u5217\u6570",value:4,props:{min:1,max:8}},{type:"InputNumber",field:"gutter",title:"\u95F4\u8DDD",value:0,props:{min:0,max:20}},{type:"slider",field:"gridImgSize",title:"\u56FE\u7247\u5927\u5C0F",value:40,props:{min:10,max:200}},{type:"switch",field:"border",title:"\u663E\u793A\u8FB9\u6846",value:!0},{type:"switch",field:"square",title:"\u6B63\u65B9\u5F62",value:!1},{type:"radio",field:"direction",title:"\u5E03\u5C40\u65B9\u5F0F",value:"vertical",options:[{value:"vertical",label:"\u7EB5\u5411"},{value:"horizontal",label:"\u6A2A\u5411"}],control:[{value:"horizontal",rule:[{type:"slider",field:"imgTextGutter",title:"\u56FE\u6587\u95F4\u8DDD",value:20,props:{min:0,max:80}}]}]}]}]},{type:"slider",field:"imgRadius",title:"\u56FE\u7247\u5F27\u5EA6",value:0,props:{min:0,max:100}},{type:"InputNumber",field:"fontSize",title:"\u5B57\u4F53\u5927\u5C0F",value:14,props:{min:9,max:24}},{type:"DkGroup",field:"gridCellList",value:[],props:{title:"\u6570\u636E\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"input",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Pm="\u56FE\u7247",Ra="DkViewImage";var zn={icon:"clarity:image-line",label:Pm,name:Ra,rule(){return{type:Ra,props:{},showStyle:!0}},props(){return[{type:"select",field:"type",title:"\u56FE\u7247\u7C7B\u578B",value:"default",options:[{label:"\u4E00\u884C\u4E00\u4E2A[\u9ED8\u8BA4]",value:"default"},{label:"\u6A2A\u5411\u6EDA\u52A8",value:"slide"}],control:[{value:"default",rule:[{type:"slider",field:"marginBottom",title:"\u5E95\u90E8\u95F4\u8DDD",value:0,props:{min:0,max:100}}]},{value:"slide",rule:[{type:"slider",field:"width",title:"\u5BBD\u5EA6\u6BD4\u4F8B",value:40,props:{min:10,max:100}},{type:"slider",field:"marginRight",title:"\u53F3\u4FA7\u95F4\u8DDD",value:0,props:{min:0,max:100}}]}]},{type:"slider",field:"borderRadius",title:"\u56FE\u7247\u5706\u89D2",value:0,props:{min:0,max:100}},{type:"switch",field:"heightAuto",title:"\u81EA\u5B9A\u4E49\u9AD8\u5EA6",value:!1,control:[{value:!0,rule:[{type:"inputNumber",field:"height",title:"\u56FE\u7247\u9AD8\u5EA6",value:200,props:{min:0,max:1e3}},{type:"select",field:"fit",title:"\u586B\u5145\u6A21\u5F0F",value:"cover",options:[{label:"fill\uFF1A\u62C9\u4F38\u586B\u5145",value:"fill"},{label:"contain\uFF1A\u7F29\u653E\u586B\u5145",value:"contain"},{label:"cover\uFF1A\u6700\u5927\u5BBD\u5EA6\u586B\u5145",value:"cover"},{label:"none\uFF1A\u539F\u59CB\u5C3A\u5BF8",value:"none"},{label:"scale-down\uFF1A\u5BF9\u6BD4\u5BBD\u9AD8\u586B\u5145",value:"scale-down"}]}]}]},{type:"switch",field:"showText",title:"\u663E\u793A\u6587\u5B57",value:!1,control:[{value:!0,rule:[{type:"select",field:"textType",title:"\u6587\u5B57\u6837\u5F0F",value:"default",options:[{label:"\u9ED8\u8BA4",value:"default"},{label:"\u5E95\u90E8",value:"footer"}]}]}]},{type:"DkGroup",field:"imageList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"input",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Mm="\u97F3\u4E50",Oa="DkViewMusic";var jn={icon:"mingcute:music-3-line",label:Mm,name:Oa,rule(){return{type:Oa,props:{musicPath:"",isOpenClose:!1,loop:!0},fixed:!0,showStyle:!0}},props(){return[{type:"dk-audio-input",field:"musicPath",title:"\u97F3\u4E50",value:""},{type:"inputNumber",field:"iconSize",title:"\u5C3A\u5BF8",value:40,props:{min:30,max:200}},{type:"radio",field:"rotation",title:"\u65CB\u8F6C\u65B9\u5411",value:"changeRight",options:[{label:"\u6B63\u5411\u65CB\u8F6C",value:"changeRight"},{label:"\u9006\u5411\u65CB\u8F6C",value:"changeLeft"}]},{type:"inputNumber",field:"speed",title:"\u65CB\u8F6C\u901F\u5EA6",value:5,props:{min:1,max:10}},{type:"select",field:"iconType",title:"\u56FE\u6807\u6837\u5F0F",value:"default",options:[{label:"\u9ED8\u8BA4\u6837\u5F0F",value:"default"},{label:"\u81EA\u5B9A\u4E49\u56FE\u7247",value:"image"}],control:[{value:"default",rule:[]},{value:"image",rule:[{type:"DkImageInput",field:"imgUrl",title:"\u56FE\u7247",value:""}]}],effect:{help:"\u8BBE\u7F6E\u5E94\u7528\u662F\u5426\u65E0\u9650\u5FAA\u73AF111"}},{type:"switch",field:"loop",title:"\u65E0\u9650\u5FAA\u73AF",value:!0,effect:{help:"\u8BBE\u7F6E\u5E94\u7528\u662F\u5426\u65E0\u9650\u5FAA\u73AF111"}}]}};const Nm="\u5BFC\u822A\u680F",za="DkViewNavBar";var Pn={icon:"bx:navigation",label:Nm,name:za,rule(){return{type:za,props:{title:"\u6807\u9898",leftText:"\u8FD4\u56DE",rightText:"\u9996\u9875",leftArrow:!0,border:!1,fixed:!1,placeholder:!1},showStyle:!0,fixed:!0}},props(){return[{type:"input",field:"title",title:"\u6807\u9898"},{type:"input",field:"leftText",title:"\u5DE6\u4FA7\u6587\u5B57"},{type:"input",field:"leftTextUrl",title:"\u5DE6\u4FA7\u5730\u5740"},{type:"input",field:"rightText",title:"\u53F3\u4FA7\u6587\u5B57",value:""},{type:"input",field:"rightTextUrl",title:"\u53F3\u4FA7\u5730\u5740"},{type:"switch",field:"leftArrow",title:"\u5DE6\u4FA7\u7BAD\u5934"},{type:"switch",field:"border",title:"\u4E0B\u8FB9\u6846"}]}};const Um="\u516C\u544A",ja="DkViewNoticeBar";var Mn={icon:"icon-park-outline:volume-notice",label:Um,name:ja,rule(){return{type:ja,props:{text:"\u5728\u4EE3\u7801\u9605\u8BFB\u8FC7\u7A0B\u4E2D\u4EBA\u4EEC\u8BF4\u810F\u8BDD\u7684\u9891\u7387\u662F\u8861\u91CF\u4EE3\u7801\u8D28\u91CF\u7684\u552F\u4E00\u6807\u51C6",leftIcon:"volume-o",delay:0,speed:60},showStyle:!0}},props(){return[{type:"input",field:"text",title:"\u901A\u77E5\u5185\u5BB9"},{type:"dkIconInput",field:"leftIcon",title:"\u9009\u62E9\u56FE\u6807",value:"volume-o",props:{showTab:{el:!1,vant:!0,cloud:!1}}},{type:"dkLinkInput",field:"url",title:"\u8DF3\u8F6C\u5730\u5740"},{type:"DkColorInput",field:"background",title:"\u80CC\u666F\u8272",value:"#fff7cc"},{type:"DkColorInput",field:"color",title:"\u6587\u672C\u989C\u8272",value:"#f60"},{type:"inputNumber",field:"speed",title:"\u6EDA\u52A8\u901F\u7387",value:60,props:{min:5,max:300,step:5}}]}};const Lm="\u8F6E\u64AD",Pa="DkViewSwipe";var Nn={icon:"dashicons:images-alt2",label:Lm,name:Pa,rule(){return{type:Pa,props:{swipeList:[{img:"https://img01.yzcdn.cn/upload_files/2021/07/06/FsivVhWrSJsQWx0GhgOJKS_IOQp_.jpg?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F01",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/07/Fm30KtbmHzLJ96USZWFGI8FLQVss.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F02",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/01/Fj19dCrgsMyTYdrr89b9iheMVFZU.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F03",show:!0}],autoplay:2e3},showStyle:!0}},props(){return[{type:"switch",field:"heightAuto",title:"\u81EA\u5B9A\u4E49\u9AD8\u5EA6",value:!1,control:[{value:!0,rule:[{type:"inputNumber",field:"height",title:"\u56FE\u7247\u9AD8\u5EA6",value:200,props:{min:0,max:500}},{type:"select",field:"fit",title:"\u586B\u5145\u6A21\u5F0F",value:"cover",options:[{label:"fill\uFF1A\u62C9\u4F38\u586B\u5145",value:"fill"},{label:"contain\uFF1A\u7F29\u653E\u586B\u5145",value:"contain"},{label:"cover\uFF1A\u6700\u5927\u5BBD\u5EA6\u586B\u5145",value:"cover"},{label:"none\uFF1A\u539F\u59CB\u5C3A\u5BF8",value:"none"},{label:"scale-down\uFF1A\u5BF9\u6BD4\u5BBD\u9AD8\u586B\u5145",value:"scale-down"}]}]}]},{type:"DkColorInput",field:"bgColor",title:"\u80CC\u666F\u8272",value:""},{type:"slider",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",value:3e3,props:{min:500,max:1e4,step:100,formatTooltip:t=>t/1e3+"\u79D2"}},{type:"el-divider",props:{},children:["\u8F6E\u64AD\u914D\u7F6E"],col:{span:24},field:"divider"},{type:"DkGroup",field:"swipeList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"urlInput",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Hm="\u5E95\u90E8\u5BFC\u822A",Ma="DkViewTabbar";var Un={icon:"fluent:table-bottom-row-32-regular",label:Hm,name:Ma,rule(){return{type:Ma,props:{tabBars:[{title:"\u9996\u9875",icon:"home-o",url:"#"},{title:"\u70ED\u95E8",icon:"fire-o",url:"#"},{title:"\u8D2D\u7269\u8F66",icon:"cart-o",url:"#"},{title:"\u6211\u7684",icon:"user-o",url:"#"}]},fixed:!0,showStyle:!0}},props(){return[{type:"DkColorInput",field:"activeColor",title:"\u9009\u4E2D\u8272",value:"#1989fa"},{type:"DkColorInput",field:"inactiveColor",title:"\u672A\u9009\u4E2D\u8272",value:"#333333"},{type:"DkColorInput",field:"bgColor",title:"\u80CC\u666F\u8272",value:"#fff"},{type:"inputNumber",field:"active",title:"\u9ED8\u8BA4\u9009\u4E2D\u9879",value:1},{type:"DkGroup",field:"tabBars",value:[],props:{title:"\u5BFC\u822A\u6570\u636E",defaultValue:{title:"\u540D\u79F0",icon:"home-o"},rule:[{type:"input",field:"title",title:"\u540D\u79F0"},{type:"switch",field:"useImg",title:"\u4F7F\u7528\u56FE\u7247",value:!1,control:[{value:!1,rule:[{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"",props:{showTab:{el:!1,cloud:!1,vant:!0}}}]},{value:!0,rule:[{type:"dkImageInput",field:"imgIcon",title:"\u9009\u62E9\u56FE\u7247",value:""}]}]},{type:"select",field:"badge",title:"\u9009\u62E9\u5FBD\u6807",value:"",options:[{label:"\u65E0",value:""},{label:"\u5C0F\u70B9",value:"dot"},{label:"\u5FBD\u6807",value:"badge"}],control:[{value:"badge",rule:[{type:"input",field:"badge_text",title:"\u81EA\u5B9A\u4E49\u5185\u5BB9",value:"\u70ED"}]}]},{type:"input",field:"url",title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Wm="\u5BCC\u6587\u672C",Na="DkViewTextarea";var Ln={icon:"fluent:image-alt-text-16-regular",label:Wm,name:Na,rule(){return{type:Na,props:{textarea:"\u8BF7\u968F\u610F\u53D1\u6325\u60A8\u7684\u521B\u4F5C..."},showStyle:!0,children:[]}},props(){return[{type:"el-divider",props:{},children:["\u5185\u5BB9\u7F16\u8F91"],col:{span:24},field:"divider"},{type:"dk-tiny-editor",field:"textarea",value:"\u8BF7\u968F\u610F\u53D1\u6325\u60A8\u7684\u521B\u4F5C..."}]}};const qm="\u89C6\u9891",Ua="DkViewVideo";var Hn={icon:"icon-park-twotone:video-two",label:qm,name:Ua,rule(){return{type:Ua,props:{videoPath:"",isHeight:!1,isOpenClose:!1},showStyle:!0}},props(){return[{type:"dk-image-input",field:"poster",title:"\u5C01\u9762",value:""},{type:"dk-video-input",field:"videoPath",title:"\u89C6\u9891",value:""},{type:"switch",field:"isHeight",title:"\u56FA\u5B9A\u9AD8\u5EA6",value:!0,control:[{value:!0,rule:[{type:"inputNumber",field:"height",title:"\u56FA\u5B9A\u9AD8\u5EA6",value:240,props:{min:240,height:1e3},suffix:{type:"p",style:{fontSize:"12px",color:"#888"},children:["\u8BBE\u7F6E\u89C6\u9891\u7684\u9AD8\u5EA6\u56FA\u5B9A\uFF0C\u9AD8\u5EA6\u56FA\u5B9A\u540E\u53EF\u80FD\u4F1A\u51FA\u73B0\u89C6\u9891\u7578\u5F62,\u89C6\u9891\u672C\u8EAB\u56FA\u5B9A\u6700\u5C0F\u9AD8\u5EA6\u4E3A240px"]}}]}],suffix:{type:"p",style:{fontSize:"12px",color:"#888"},children:["\u89C6\u9891\u5BBD\u5EA6\u9ED8\u8BA4\u4E3A100%\uFF0C\u9AD8\u5EA6\u4E3A\u81EA\u52A8\u5339\u914D\u89C6\u9891\uFF0C\u52FE\u9009\u540E\u53EF\u4EE5\u4F7F\u7528\u56FA\u5B9A\u9AD8\u5EA6"]}},{type:"switch",field:"isOpenClose",title:"\u5F00\u5408\u6A21\u5F0F",suffix:{type:"p",style:{fontSize:"12px",color:"#888"},children:["\u8BBE\u7F6E\u5F00\u542F\u5F00\u5408\u6A21\u5F0F\u540E\uFF0C\u89C6\u9891\u652F\u6301\u4E0A\u6ED1\u7F29\u653E\u5173\u95ED\u4E0B\u6ED1\u7F29\u653E\u6253\u5F00,\u5C3D\u91CF\u5C06\u89C6\u9891\u6A21\u5757\u653E\u7F6E\u9876\u90E8"]}}]}};const Ym=[Vn,$n,Tn,In,Rn,On,zn,jn,Pn,Mn,Nn,Un,Ln,Hn],Gm={[Vn.name]:Vn,[$n.name]:$n,[Tn.name]:Tn,[In.name]:In,[Rn.name]:Rn,[On.name]:On,[zn.name]:zn,[jn.name]:jn,[Pn.name]:Pn,[Mn.name]:Mn,[Nn.name]:Nn,[Un.name]:Un,[Ln.name]:Ln,[Hn.name]:Hn},Xm="\u901A\u7528\u6807\u9898",La="DkViewTitle";var Wn={icon:"ic:sharp-title",label:Xm,name:La,rule(){return{type:La,props:{},showStyle:!0}},props(){return[{type:"input",field:"title",title:"\u540D\u79F0",value:"\u6807\u9898"},{type:"inputNumber",field:"size",title:"\u5927\u5C0F",value:14,props:{min:10,max:24}},{type:"DkColorInput",field:"color",title:"\u989C\u8272",value:""},{type:"switch",field:"bold",title:"\u52A0\u7C97",value:!1},{type:"select",field:"prefix",title:"\u524D\u7F00",value:"",options:[{label:"\u65E0",value:""},{label:"\u56FE\u6807",value:"icon"},{label:"\u56FE\u7247",value:"image"},{label:"\u65B9\u5F62",value:"square"}],control:[{value:"icon",rule:[{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"volume",props:{isVant:!0}},{type:"DkColorInput",field:"prefixColor",title:"\u989C\u8272"},{type:"inputNumber",field:"iconSize",title:"\u56FE\u6807\u5927\u5C0F",value:18}]},{value:"image",rule:[{type:"dkImageInput",field:"prefixImage",title:"\u9009\u62E9\u56FE\u7247",value:""},{type:"inputNumber",field:"imageWidth",title:"\u5BBD",value:24},{type:"inputNumber",field:"imageHeight",title:"\u9AD8",value:24}]},{value:"square",rule:[{type:"inputNumber",field:"squareWidth",title:"\u5BBD",value:3},{type:"inputNumber",field:"squareHeight",title:"\u9AD8",value:18},{type:"DkColorInput",field:"prefixColor",title:"\u989C\u8272",value:"#409eff"}]},{handle(t){return t!==""},rule:[{type:"inputNumber",field:"titleMarginLeft",title:"\u6807\u9898\u95F4\u8DDD",value:4}]}]},{type:"switch",field:"showRight",title:"\u53F3\u4FA7\u8DF3\u8F6C",value:!1,control:[{value:!0,rule:[{type:"input",field:"rTitle",title:"\u53F3\u4FA7\u5185\u5BB9",value:"\u66F4\u591A"},{type:"DkColorInput",field:"rColor",title:"\u53F3\u4FA7\u989C\u8272",value:"#999"},{type:"inputNumber",field:"rSize",title:"\u53F3\u4FA7\u5927\u5C0F",value:14},{type:"dkLinkInput",field:"rUrl",title:"\u8DF3\u8F6C\u5730\u5740"}]}]}]}};const Jm="\u7A7A\u5185\u5BB9",Ha="VanEmpty";var qn={icon:"grommet-icons:test",label:Jm,name:Ha,count:1,rule(){return{type:Ha,wrap:{show:!1},style:{width:"100%"},showStyle:!0,children:[],props:{description:"\u6682\u65E0\u6570\u636E"},fixed:!0}},props(){return[{type:"input",field:"description"},{type:"group",field:"group",title:"group",value:[{field1:"aaa",field2:"sss"},{field1:"aaa",field2:"sss"}],props:{defaultValue:{field1:"field1",field2:"field2"},rule:[{type:"input",field:"field1",title:"field1"},{type:"input",field:"field2",title:"field2"}]}},{type:"object",field:"object",title:"object",value:{field1:"aaa",field2:"sss"},props:{rule:[{type:"input",field:"field1",title:"field1"},{type:"input",field:"field2",title:"field2"}]}}]}},Wa={label:"\u6807\u7B7E",name:"van-tab",inside:!0,drag:!0,dragBtn:!1,mask:!1,rule(){return{type:"van-tab",props:{title:"\u6807\u7B7E"},children:[],showStyle:!0}},props(){return[{type:"input",field:"title",title:"\u6807\u9898"},{type:"switch",field:"disabled",title:"\u7981\u7528"},{type:"switch",field:"dot",title:"\u5C0F\u7EA2\u70B9",effect:{help:"\u662F\u5426\u5728\u6807\u9898\u53F3\u4E0A\u89D2\u663E\u793A\u5C0F\u7EA2\u70B9"}},{type:"input",field:"badge",title:"\u5FBD\u6807",effect:{help:"\u56FE\u6807\u53F3\u4E0A\u89D2\u5FBD\u6807\u7684\u5185\u5BB9"}},{type:"input",field:"url",title:"\u94FE\u63A5\u5730\u5740",effect:{help:"\u70B9\u51FB\u540E\u8DF3\u8F6C\u7684\u94FE\u63A5\u5730\u5740,\u5728\u914D\u7F6E\u540E\u4E0D\u8981\u5C1D\u8BD5\u53BB\u70B9\u51FB\uFF0C\u5426\u5219\u4F1A\u8DF3\u51FA\u53BB"}}]}},Yn={icon:"gg:tab",label:"\u6807\u7B7E\u9875",name:"VanTabs",children:"van-tab",mask:!1,rule(){return{type:"van-tabs",style:"width:100%;",children:[],showStyle:!0}},props(){return[{type:"switch",field:"show-header",title:"\u6807\u9898\u680F",value:!0,control:[{value:!0,rule:[{type:"select",field:"type",title:"\u98CE\u683C\u7C7B\u578B",options:[{label:"\u5361\u7247",value:"card"},{label:"\u7EBF\u6761",value:"line"}],effect:{help:"\u6837\u5F0F\u98CE\u683C\u7C7B\u578B"},control:[{value:"line",rule:[{type:"switch",field:"border",title:"\u5916\u8FB9\u6846",value:""}]}],value:"line"},{type:"DkColorInput",field:"color",title:"\u4E3B\u9898\u8272",value:"#1989fa",effect:{help:"\u6807\u7B7E\u7684\u4E3B\u9898\u8272"}},{type:"DkColorInput",field:"background",title:"\u80CC\u666F\u8272",value:"white",effect:{help:"\u6807\u7B7E\u680F\u7684\u80CC\u666F\u8272"}},{type:"DkColorInput",field:"title-active-color",title:"\u9009\u4E2D\u8272",value:"",effect:{help:"\u6807\u7B7E\u6807\u9898\u7684\u9009\u4E2D\u6587\u5B57\u8272"}},{type:"DkColorInput",field:"title-inactive-color",title:"\u9ED8\u8BA4\u8272",value:"",effect:{help:"\u6807\u7B7E\u6807\u9898\u7684\u9ED8\u8BA4\u6587\u5B57\u8272"}},{type:"input",field:"line-width",title:"\u5E95\u90E8\u6761\u5BBD",value:"40px"},{type:"input",field:"line-height",title:"\u5E95\u90E8\u6761\u9AD8",value:"3px"},{type:"switch",field:"shrink",title:"\u5DE6\u4FA7\u5E03\u5C40",value:!1,effect:{help:"\u662F\u5426\u5F00\u542F\u5DE6\u4FA7\u6536\u7F29\u5E03\u5C40,\u6807\u9898\u4F1A\u5F80\u5DE6\u4FA7\u9760\u62E2"}}]}]},{type:"number",field:"duration",title:"\u52A8\u753B\u65F6\u95F4",value:.3,effect:{help:"\u52A8\u753B\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D2\uFF0C\u8BBE\u7F6E\u4E3A 0 \u53EF\u4EE5\u7981\u7528\u52A8\u753B"}},{type:"switch",field:"animated",title:"\u8F6C\u573A\u52A8\u753B",value:!1},{type:"switch",field:"ellipsis",title:"\u7701\u7565\u6587\u5B57",value:!0,effect:{help:"\u662F\u5426\u7701\u7565\u8FC7\u957F\u7684\u6807\u9898\u6587\u5B57"}},{type:"switch",field:"sticky",title:"\u7C98\u6027\u5E03\u5C40",value:!1,effect:{help:"\u662F\u5426\u4F7F\u7528\u7C98\u6027\u5E03\u5C40,\u6807\u9898\u53EF\u4EE5\u5438\u9644\u5728\u9876\u90E8"},control:[{value:!0,rule:[{type:"input",field:"offset-top",title:"\u5438\u9876\u8DDD\u79BB",value:"0",effect:{help:"\u7C98\u6027\u5E03\u5C40\u4E0B\u5438\u9876\u65F6\u4E0E\u9876\u90E8\u7684\u8DDD\u79BB\uFF0C\u652F\u6301 px vw vh rem \u5355\u4F4D\uFF0C\u9ED8\u8BA4 px"}}]}]},{type:"switch",field:"swipeable",title:"\u6ED1\u52A8\u5207\u6362",value:!1,effect:{help:"\u662F\u5426\u5F00\u542F\u624B\u52BF\u5DE6\u53F3\u6ED1\u52A8\u5207\u6362"}},{type:"number",field:"swipe-threshold",title:"\u6EDA\u52A8\u9608\u503C",value:5,effect:{help:"\u6EDA\u52A8\u9608\u503C\uFF0C\u6807\u7B7E\u6570\u91CF\u8D85\u8FC7\u9608\u503C\u4E14\u603B\u5BBD\u5EA6\u8D85\u8FC7\u6807\u7B7E\u680F\u5BBD\u5EA6\u65F6\u5F00\u59CB\u6A2A\u5411\u6EDA\u52A8"}}]}},qa={name:"col",drag:!0,dragBtn:!1,inside:!0,mask:!1,label:"\u5217",rule(){return{type:"vanCol",props:{span:12},children:[],showStyle:!0}},props(){return[{type:"slider",field:"span",title:"\u5217\u6570",value:12,props:{min:0,max:24}},{type:"slider",field:"offset",title:"\u504F\u79FB\u8DDD\u79BB",props:{min:0,max:24}}]}};const Km="\u95F4\u8DDD",Ya="div";var Gn={icon:"ri:space",label:Km,name:Ya,rule(){return{type:Ya,wrap:{show:!1},style:{width:"100%",height:"20px"},showStyle:!0,children:[]}},props(){return[{type:"object",field:"formCreateStyle",native:!0,props:{rule:[{type:"input",field:"height",title:"height"}]}}]}};const Qm="\u6805\u683C\u5E03\u5C40",Zm="row";var Xn={icon:"cil:columns",label:Qm,name:Zm,mask:!1,rule(){return{type:"vanRow",props:{},children:[],showStyle:!0}},children:"col",childrenLen:2,props(){return[{type:"inputNumber",field:"gutter",title:"\u6805\u683C\u95F4\u9694",value:0},{type:"switch",field:"type",title:"flex\u5E03\u5C40",props:{activeValue:"flex",inactiveValue:"default"},control:[{value:"flex",rule:[{type:"select",field:"justify",title:"\u5BF9\u9F50\u65B9\u5F0F",options:[{label:"\u5C45\u5DE6\u5BF9\u9F50(\u9ED8\u8BA4)",value:"start"},{label:"\u5C45\u53F3\u5BF9\u9F50",value:"end"},{label:"\u5C45\u4E2D\u5E03\u5C40",value:"center"},{label:"\u6BCF\u4E2A\u5143\u7D20\u7684\u4E24\u4FA7\u95F4\u9694\u76F8\u7B49",value:"space-around"},{label:"\u4E24\u7AEF\u5BF9\u9F50",value:"space-between"}],value:"start"},{type:"select",field:"align",title:"\u5782\u76F4\u6392\u5217",options:[{label:"\u5782\u76F4\u5C45\u4E0A(\u9ED8\u8BA4)",value:"top"},{label:"\u5782\u76F4\u5C45\u4E2D",value:"center"},{label:"\u5782\u76F4\u5C45\u4E0B",value:"bottom"}],value:"top"}]}]}]}};const eh="\u5206\u5272\u7EBF",Ga="van-divider";var Jn={icon:"mingcute:border-horizontal-line",label:eh,name:Ga,rule(){return{type:Ga,props:{hairline:!0,contentPosition:"center"},wrap:{show:!1},native:!1,showStyle:!0,children:["\u6807\u9898"]}},props(){return[{type:"switch",field:"dashed",title:"\u865A\u7EBF"},{type:"switch",field:"hairline",title:"\u7EC6\u7EBF"},{type:"input",field:"formCreateChild",title:"\u8BBE\u7F6E\u6587\u6848"},{type:"radio",field:"contentPosition",title:"\u6587\u6848\u4F4D\u7F6E",props:{type:"button"},options:[{label:"\u5DE6\u4FA7",value:"left"},{label:"\u53F3\u4FA7",value:"right"},{label:"\u5C45\u4E2D",value:"center"}]}]}},Kn={icon:"ic:outline-swipe",label:"\u8F6E\u64AD",name:"van-swipe",children:"van-swipe-item",mask:!1,rule(){return{type:"van-swipe",style:"width:100%;",children:[],showStyle:!0}},props(){return[{type:"number",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",props:{min:0,max:1e4,step:500},effect:{help:"\u81EA\u52A8\u8F6E\u64AD\u95F4\u9694\uFF0C\u5355\u4F4D\u4E3A ms,0\u8868\u793A\u4E0D\u8F6E\u64AD"}},{type:"number",field:"initial-swipe",title:"\u521D\u59CB\u4F4D\u7F6E",value:0,effect:{help:"\u521D\u59CB\u4F4D\u7F6E\u7D22\u5F15\u503C\uFF0C\u4E5F\u53EF\u4EE5\u901A\u8FC7\u5F53\u524D\u9009\u9879\u6765\u5207\u6362\u4E0D\u540C\u7684\u4F4D\u7F6E\u8FDB\u884C\u7F16\u8F91"}},{type:"number",field:"duration",title:"\u52A8\u753B\u65F6\u95F4",value:.3,effect:{help:"\u52A8\u753B\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D2\uFF0C\u8BBE\u7F6E\u4E3A 0 \u53EF\u4EE5\u7981\u7528\u52A8\u753B"}},{type:"switch",field:"loop",title:"\u662F\u5426\u5FAA\u73AF",value:!0},{type:"switch",field:"show-indicators",title:"\u663E\u793A\u6307\u793A\u5668",value:!0},{type:"switch",field:"vertical",title:"\u7EB5\u5411\u6EDA\u52A8",value:!1},{type:"switch",field:"touchable",title:"\u624B\u52BF\u6ED1\u52A8",value:!0,effect:{help:"\u662F\u5426\u53EF\u4EE5\u901A\u8FC7\u624B\u52BF\u6ED1\u52A8"}},{type:"dk-color-input",field:"indicator-color",title:"\u6307\u793A\u5668\u8272",value:"#1989fa",effect:{help:"\u6307\u793A\u5668\u989C\u8272"}}]}},Xa={label:"\u8F6E\u64AD\u5185\u5BB9",name:"van-swipe-item",inside:!0,drag:!0,dragBtn:!1,mask:!1,rule(){return{type:"van-swipe-item",props:{title:"\u6807\u7B7E"},children:[],showStyle:!0}},props(){return[{type:"el-empty",props:{description:"\u8BE5\u7EC4\u4EF6\u65E0\u914D\u7F6E\u9879"},col:{span:24},field:"divider"}]}};const th=[Wn,qn,Yn,Gn,Xn,Jn,Kn],oh={[Wn.name]:Wn,[qn.name]:qn,[Wa.name]:Wa,[Yn.name]:Yn,[qa.name]:qa,[Gn.name]:Gn,[Xn.name]:Xn,[Jn.name]:Jn,[Kn.name]:Kn,[Xa.name]:Xa},nh={...oh,...Gm},lh=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...Ym]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[...th]}]},uh="\u89C6\u9891",Ja="DkMinVideo";var Qn={icon:"icon-park-outline:video",label:uh,name:Ja,rule(){return{type:Ja,props:{videoPath:"",isHeight:!1,isOpenClose:!1},showStyle:!0}},props(){return[{type:"dk-video-input",field:"videoPath",title:"\u89C6\u9891",value:""},{type:"switch",field:"isHeight",title:"\u56FA\u5B9A\u9AD8\u5EA6",value:!0,control:[{value:!0,rule:[{type:"inputNumber",field:"height",title:"\u56FA\u5B9A\u9AD8\u5EA6",value:240,props:{min:240,height:1e3},suffix:{type:"p",style:{fontSize:"12px",color:"#888"},children:["\u8BBE\u7F6E\u89C6\u9891\u7684\u9AD8\u5EA6\u56FA\u5B9A\uFF0C\u9AD8\u5EA6\u56FA\u5B9A\u540E\u53EF\u80FD\u4F1A\u51FA\u73B0\u89C6\u9891\u7578\u5F62,\u89C6\u9891\u672C\u8EAB\u56FA\u5B9A\u6700\u5C0F\u9AD8\u5EA6\u4E3A240px"]}}]}],effect:{help:"\u89C6\u9891\u5BBD\u5EA6\u9ED8\u8BA4\u4E3A100%\uFF0C\u9AD8\u5EA6\u4E3A\u81EA\u52A8\u5339\u914D\u89C6\u9891\uFF0C\u52FE\u9009\u540E\u53EF\u4EE5\u4F7F\u7528\u56FA\u5B9A\u9AD8\u5EA6"}}]}};const ah="\u8F6E\u64AD\u56FE",Ka="DkMinSwiperImage";var Zn={icon:"dashicons:images-alt2",label:ah,name:Ka,rule(){return{type:Ka,props:{swipeList:[{img:"https://img01.yzcdn.cn/upload_files/2021/07/06/FsivVhWrSJsQWx0GhgOJKS_IOQp_.jpg?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F01",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/07/Fm30KtbmHzLJ96USZWFGI8FLQVss.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F02",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/01/Fj19dCrgsMyTYdrr89b9iheMVFZU.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F03",show:!0}],height:160,autoplay:2e3},showStyle:!0}},props(){return[{type:"inputNumber",field:"height",title:"\u56FE\u7247\u9AD8\u5EA6",value:200,props:{min:0,max:500}},{type:"select",field:"imgMode",title:"\u88C1\u526A\u7F29\u653E\u6A21\u5F0F",value:"aspectFill",options:[{label:"scaleToFill\uFF1A\u5BBD\u9AD8\u5B8C\u5168\u62C9\u4F38\u81F3\u586B\u6EE1",value:"scaleToFill"},{label:"aspectFit\uFF1A\u957F\u8FB9\u80FD\u5B8C\u5168\u663E\u793A\u51FA\u6765",value:"aspectFit"},{label:"aspectFill\uFF1A\u77ED\u8FB9\u80FD\u5B8C\u5168\u663E\u793A\u51FA\u6765",value:"aspectFill"},{label:"widthFix\uFF1A\u5BBD\u5EA6\u4E0D\u53D8\uFF0C\u9AD8\u5EA6\u81EA\u52A8\u53D8\u5316",value:"widthFix"},{label:"heightFix\uFF1A\u9AD8\u5EA6\u4E0D\u53D8\uFF0C\u5BBD\u5EA6\u81EA\u52A8\u53D8\u5316",value:"heightFix"},{label:"top\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u9876\u90E8\u533A\u57DF",value:"top"},{label:"bottom\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5E95\u90E8\u533A\u57DF",value:"bottom"},{label:"center\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u4E2D\u95F4\u533A\u57DF",value:"center"},{label:"left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u8FB9\u533A\u57DF",value:"left"},{label:"right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u8FB9\u533A\u57DF",value:"right"},{label:"top left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u4E0A\u8FB9\u533A\u57DF",value:"top left"},{label:"top right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u4E0A\u8FB9\u533A\u57DF",value:"top right"},{label:"bottom left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u4E0B\u8FB9\u533A\u57DF",value:"bottom left"},{label:"bottom right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u4E0B\u8FB9\u533A\u57DF",value:"bottom right"}],effect:{help:"\u5C0F\u7A0B\u5E8F\u56FE\u7247\u7684\u7F29\u653E\u526A\u88C1\u6A21\u5F0F\uFF0C\u76EE\u524D\u65E0\u6CD5\u76F4\u63A5\u9884\u89C8\uFF0C\u53EF\u4EE5\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/component/image.html"}},{type:"slider",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",value:3e3,props:{min:500,max:1e4,step:100,formatTooltip:t=>t/1e3+"\u79D2"}},{type:"switch",field:"showTitle",title:"\u663E\u793A\u6807\u9898",value:!1},{type:"inputNumber",field:"radius",title:"\u5F27\u5EA6",value:0},{type:"DkGroup",field:"swipeList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"radio",field:"clickType",title:"\u70B9\u51FB\u6548\u679C",value:"path",options:[{label:"\u8DF3\u8F6C\u9875\u9762",value:"path"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"path",rule:[{type:"DkUrlInput",field:"path",title:"\u5730\u5740"}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"event",title:"\u9009\u62E9\u4E8B\u4EF6",value:""}]}]}]}}]}};const ih="\u6807\u9898",Qa="DkMinTitle";var el={icon:"material-symbols:title",label:ih,name:Qa,rule(){return{type:Qa,props:{title:"\u8FD9\u662F\u6807\u9898",subtitle:"\u526F\u6807\u9898",iconType:"icon",iconSize:24,showSubtitle:!0},showStyle:!0,fixed:!0,setting:{style:{paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",backgroundColor:"rgba(255, 255, 255, 1)"}}}},props(){return[{type:"input",field:"title",title:"\u6807\u9898"},{type:"DkStyleFontInput",field:"titleStyle",title:"\u6807\u9898\u6837\u5F0F"},{type:"radio",field:"iconType",title:"\u56FE\u6807\u7C7B\u578B",value:"none",options:[{label:"\u65E0",value:"none"},{label:"\u56FE\u6807",value:"icon"},{label:"\u56FE\u7247",value:"img"}],control:[{value:"icon",rule:[{type:"DkUniIconInput",field:"icon",title:"\u56FE\u6807",value:"fire-filled"},{type:"DkColorInput",field:"iconColor",title:"\u56FE\u6807\u989C\u8272",value:"#F64C2E"},{type:"number",field:"iconSize",title:"\u56FE\u6807\u5C3A\u5BF8",value:24},{type:"number",field:"marginRight",title:"\u95F4\u9694",value:4}]},{value:"img",rule:[{type:"DkImageInput",field:"image",title:"\u56FE\u7247\u56FE\u6807",value:""},{type:"number",field:"iconSize",title:"\u56FE\u6807\u5C3A\u5BF8",value:24},{type:"number",field:"marginRight",title:"\u95F4\u9694",value:4}]}]},{type:"switch",field:"showSubtitle",title:"\u526F\u6807\u9898",value:!0,control:[{value:!0,rule:[{type:"input",field:"subtitle",title:"\u526F\u6807\u9898",value:""},{type:"DkColorInput",field:"subColor",title:"\u526F\u6807\u9898\u8272",value:"#999"}]}]},{type:"switch",field:"isMore",title:"\u663E\u793A\u66F4\u591A",value:!0,control:[{value:!0,rule:[{type:"input",field:"moreText",title:"\u6587\u672C\u5185\u5BB9",value:"\u67E5\u770B\u66F4\u591A"},{type:"DkColorInput",field:"moreColor",title:"\u989C\u8272",value:"#999"},{type:"DkUrlInput",field:"url",title:"\u94FE\u63A5\u5730\u5740",value:""}]}]}]}};const rh="\u95F4\u9694",Za="DkMinBlank";var tl={icon:"tdesign:component-space",label:rh,name:Za,rule(){return{type:Za,props:{height:20},showStyle:!0}},props(){return[{type:"number",field:"height",title:"\u9AD8\u5EA6",value:20,effect:{help:"\u5177\u4F53\u6548\u679C\u67E5\u770B\u771F\u673A\u9884\u89C8"}}]}};const sh="\u5BCC\u6587\u672C",ei="DkMinTextarea";var ol={icon:"fluent:image-alt-text-16-regular",label:sh,name:ei,rule(){return{type:ei,props:{textarea:"\u8BF7\u968F\u610F\u53D1\u6325\u60A8\u7684\u521B\u4F5C..."},showStyle:!0,children:[]}},props(){return[{type:"el-divider",props:{},children:["\u5185\u5BB9\u7F16\u8F91"],col:{span:24},field:"divider"},{type:"dk-tiny-editor",field:"textarea",value:"\u8BF7\u968F\u610F\u53D1\u6325\u60A8\u7684\u521B\u4F5C..."}]}};const dh="\u70ED\u56FE",ti="DkMinHotArea";var nl={icon:"fluent:draw-image-20-regular",label:dh,name:ti,rule(){return{type:ti,props:{hotData:{background:"",views:[],width:500,height:500},showMask:!1},showStyle:!0}},props(){return[{type:"dk-hot-area-input",field:"hotData",title:"\u70ED\u56FE\u6570\u636E",value:20,effect:{help:"\u70B9\u51FB\u6309\u94AE\u4E0A\u4F20\u80CC\u666F\u56FE\u5E76\u914D\u7F6E\u8DF3\u8F6C\u8DEF\u5F84"}},{type:"switch",field:"showMask",title:"\u663E\u793A\u906E\u7F69",value:!1,effect:{help:"\u8BBE\u7F6E\u662F\u5426\u663E\u793A\u70ED\u533A\u906E\u7F69\u6548\u679C\u9884\u89C8\uFF0C\u8BBE\u7F6E\u540E\u79FB\u52A8\u7AEF\u4E5F\u4F1A\u6709\u5BF9\u5E94\u7684\u900F\u660E\u906E\u7F69\u65B9\u5757\u65B9\u4FBF\u6D4B\u8BD5\uFF0C\u540E\u7AEF\u4EC5\u52A0\u6DF1\u5904\u7406"}}]}};const ch="\u5BAB\u683C",oi="DkMinGrid";var ll={icon:"ph:grid-nine",label:ch,name:oi,rule(){return{type:oi,props:{imageStyle:{width:"40px",height:"40px",marginBottom:"10px",borderRadius:"10px"},list:[{title:"\u8FD9\u662F\u6807\u9898",image:""},{title:"\u8FD9\u662F\u6807\u9898",image:""},{title:"\u8FD9\u662F\u6807\u9898",image:""},{title:"\u8FD9\u662F\u6807\u9898",image:""}],clickType:"path"},showStyle:!0,children:[],style:{},setting:{style:{backgroundColor:"#fff"}}}},props(){return[{type:"number",field:"columnNum",title:"\u6BCF\u884C\u4E2A\u6570",value:4},{type:"DkGroup",field:"list",title:"",props:{title:"\u5BAB\u683C\u5185\u5BB9",defaultValue:{title:"\u8FD9\u662F\u6807\u9898",image:""},rule:[{type:"input",field:"title",title:"\u6807\u9898"},{type:"DkImageInput",field:"image",title:"\u56FE\u7247"},{type:"radio",field:"clickType",title:"\u70B9\u51FB\u6548\u679C",value:"path",options:[{label:"\u8DF3\u8F6C\u9875\u9762",value:"path"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"path",rule:[{type:"DkUrlInput",field:"path",title:"\u5730\u5740"}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"event",title:"\u9009\u62E9\u4E8B\u4EF6",value:""}]}]}]},value:[]},{type:"DkStyleFontInput",field:"fontStyle",title:"\u6587\u5B57\u6837\u5F0F"},{type:"DkStyleInput",field:"imageStyle",title:"\u56FE\u7247\u914D\u7F6E",props:{isDrawer:!0,drawerProps:{title:"\u5361\u7247\u6837\u5F0F",size:"400px",zIndex:100},hideComponents:["DkStyleFontInput","DkStyleBackgroundInput"]}}]}};const ph="\u56FE\u7247",ni="DkMinImage";var ul={icon:"mage:image",label:ph,name:ni,rule(){return{type:ni,props:{},showStyle:!0}},props(){return[{type:"select",field:"type",title:"\u56FE\u7247\u7C7B\u578B",value:"row",options:[{label:"\u6A2A\u5411\u5206\u5E03",value:"row"},{label:"\u5782\u76F4\u5F80\u4E0B",value:"column"},{label:"\u6A2A\u5411\u6EDA\u52A8",value:"slide"}],control:[]},{type:"switch",field:"showText",title:"\u663E\u793A\u6587\u5B57",value:!1,control:[{value:!0,rule:[{type:"select",field:"textType",title:"\u6587\u5B57\u6837\u5F0F",value:"default",options:[{label:"\u9ED8\u8BA4",value:"default"},{label:"\u5E95\u90E8",value:"footer"}]}]}]},{type:"DkStyleInput",field:"imageStyle",title:"\u56FE\u7247\u6837\u5F0F",props:{isDrawer:!0,drawerProps:{title:"\u5361\u7247\u6837\u5F0F",size:"400px",zIndex:100},hideComponents:["DkStyleFontInput","DkStyleBackgroundInput"]}},{type:"DkStyleInput",field:"imageTextStyle",title:"\u56FE\u6587\u6837\u5F0F",props:{isDrawer:!0,drawerProps:{title:"\u56FE\u7247\u548C\u6587\u5B57\u6574\u4F53\u6837\u5F0F",size:"400px",zIndex:100},hideComponents:["DkStyleBackgroundInput"]}},{type:"DkGroup",field:"imageList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"radio",field:"clickType",title:"\u70B9\u51FB\u6548\u679C",value:"path",options:[{label:"\u8DF3\u8F6C\u9875\u9762",value:"path"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"path",rule:[{type:"DkUrlInput",field:"path",title:"\u5730\u5740"}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"event",title:"\u9009\u62E9\u4E8B\u4EF6",value:""}]}]}]}}]}};const fh="\u9B54\u65B9\u56FE\u7247",li="DkMinCubeImage";var al={icon:"game-icons:ice-cube",label:fh,name:li,rule(){return{type:li,props:{cubeData:{density:4,selectedCubes:[]}},showStyle:!0}},props(){return[{type:"switch",field:"showText",title:"\u663E\u793A\u6587\u5B57",value:!1},{type:"DkStyleInput",field:"imageStyle",title:"\u56FE\u7247\u6837\u5F0F",props:{isDrawer:!0,drawerProps:{title:"\u5361\u7247\u6837\u5F0F",size:"400px",zIndex:100},hideComponents:["DkStyleFontInput","DkStyleBackgroundInput"]}},{type:"DkCubeImageInput",field:"cubeData",title:"",value:{density:4,selectedCubes:[]}}]}};const mh="\u4E8B\u4EF6\u5F39\u7A97",ui="DkMinModal";var il={icon:"entypo:popup",label:mh,name:ui,rule(){return{type:ui,props:{title:"\u63D0\u793A",content:"\u8FD9\u662F\u5F39\u7A97\u5185\u5BB9",confirmColor:""},showStyle:!0,setting:{},event:!0}},props(){return[{type:"DkEventCreateInput",field:"listen",title:"\u76D1\u542C\u4E8B\u4EF6"},{type:"input",field:"title",title:"\u6807\u9898"},{type:"input",field:"content",title:"\u5185\u5BB9",props:{type:"textarea",rows:3},effect:{help:"\u586B\u5199\u5F39\u7A97\u5F53\u524D\u5185\u5BB9"}},{type:"radio",field:"clickType",title:"\u70B9\u51FB\u786E\u5B9A",value:"close",options:[{label:"\u5173\u95ED\u5F39\u7A97",value:"close"},{label:"\u8DF3\u8F6C\u9875\u9762",value:"path"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"path",rule:[{type:"switch",field:"showCancel",title:"\u663E\u793A\u53D6\u6D88",value:!0,effect:{help:"\u662F\u5426\u663E\u793A\u53D6\u6D88\u6309\u94AE"}},{type:"DkUrlInput",field:"path",title:"\u5730\u5740"}]},{value:"event",rule:[{type:"switch",field:"showCancel",title:"\u663E\u793A\u53D6\u6D88",value:!0,effect:{help:"\u662F\u5426\u663E\u793A\u53D6\u6D88\u6309\u94AE"}},{type:"DkEventSelectInput",field:"event",title:"\u9009\u62E9\u4E8B\u4EF6",value:"",effect:{help:"\u8BF7\u4E0D\u8981\u9009\u62E9\u5F53\u524D\u7EC4\u4EF6\u8FDB\u884C\u89E6\u53D1\uFF0C\u5426\u5219\u65E0\u6548\u679C"}}]}]}]}};const hh=[el,tl,ol,ul,Zn,nl,al,ll,Qn,il],gh={[el.name]:el,[tl.name]:tl,[ul.name]:ul,[Zn.name]:Zn,[al.name]:al,[ll.name]:ll,[nl.name]:nl,[Qn.name]:Qn,[ol.name]:ol,[il.name]:il},vh={...gh},yh=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...hh]}]};function ai(t){return t.replace(t[0],t[0].toLocaleUpperCase())}const ii=Io,$e=Io.factory();let _h=0;const ri=()=>"F"+Math.random().toString(36).substr(3,3)+(+`${Date.now()}${++_h}`).toString(36);function bh(){return[{type:"DkStyleInput",field:"style",value:{},title:"",props:{}}]}const si=[{label:"\u5FAA\u73AF\u6548\u679C",name:"loop",animate:[{value:"bounce",label:"\u5F39\u8DF3"},{value:"flash",label:"\u95EA\u52A8"},{value:"pulse",label:"\u8109\u51B2"},{value:"rubberBand",label:"\u6A61\u76AE\u7B4B"},{value:"shakeX",label:"X\u8F74\u6447\u6643"},{value:"shakeY",label:"Y\u8F74\u6447\u6643"},{value:"headShake",label:"\u6447\u5934"},{value:"swing",label:"\u6446\u52A8"},{value:"tada",label:"\u7F29\u653E\u6446\u52A8"},{value:"wobble",label:"\u5927\u5E45\u6447\u6643"},{value:"jello",label:"\u679C\u51BB\u6548\u679C"},{value:"heartBeat",label:"\u5FC3\u8DF3"}]},{label:"\u5F39\u8DF3\u5165\u573A",name:"bouncing",animate:[{value:"bounceIn",label:"\u5F39\u5165"},{value:"bounceInDown",label:"\u4E0B\u8FB9\u5F39\u5165"},{value:"bounceInLeft",label:"\u5DE6\u8FB9\u5F39\u5165"},{value:"bounceInRight",label:"\u53F3\u8FB9\u5F39\u5165"},{value:"bounceInUp",label:"\u4E0A\u8FB9\u5F39\u5165"}]},{label:"\u6DE1\u5165\u5165\u573A",name:"Fading",animate:[{value:"fadeIn",label:"\u6DE1\u5165"},{value:"fadeInDown",label:"\u4E0B\u8FB9\u6DE1\u5165"},{value:"fadeInDownBig",label:"\u6700\u4E0B\u8FB9\u6DE1\u5165"},{value:"fadeInLeft",label:"\u5DE6\u8FB9\u6DE1\u5165"},{value:"fadeInLeftBig",label:"\u6700\u5DE6\u8FB9\u6DE1\u5165"},{value:"fadeInRight",label:"\u53F3\u8FB9\u6DE1\u5165"},{value:"fadeInRightBig",label:"\u6700\u53F3\u8FB9\u6DE1\u5165"},{value:"fadeInUp",label:"\u4E0A\u8FB9\u6DE1\u5165"},{value:"fadeInUpBig",label:"\u6700\u4E0A\u8FB9\u6DE1\u5165"},{value:"fadeInTopLeft",label:"\u5DE6\u4E0A\u6DE1\u5165"},{value:"fadeInTopRight",label:"\u53F3\u4E0A\u6DE1\u5165"},{value:"fadeInBottomLeft",label:"\u5DE6\u4E0B\u6DE1\u5165"},{value:"fadeInBottomRight",label:"\u53F3\u4E0B\u6DE1\u5165"}]},{label:"\u7FFB\u8F6C&\u65CB\u8F6C\u5165\u573A",name:"Flippers",animate:[{value:"flipInX",label:"X\u8F74\u7FFB\u8F6C"},{value:"flipInY",label:"Y\u8F74\u7FFB\u8F6C"},{value:"rotateIn",label:"\u65CB\u8F6C\u8FDB\u5165"},{value:"rotateInDownLeft",label:"\u5DE6\u4E0B\u65CB\u5165"},{value:"rotateInDownRight",label:"\u53F3\u4E0B\u65CB\u5165"},{value:"rotateInUpLeft",label:"\u5DE6\u4E0A\u65CB\u5165"},{value:"rotateInUpRight",label:"\u53F3\u4E0A\u65CB\u5165"},{value:"jackInTheBox",label:"\u7F29\u653E\u65CB\u8F6C\u5165\u573A"},{value:"rollIn",label:"\u5DE6\u4FA7\u65CB\u8F6C\u5165\u573A"}]},{label:"\u7F29\u653E&\u6ED1\u52A8\u5165\u573A",name:"Lightspeed",animate:[{value:"lightSpeedInRight",label:"\u679C\u51BB\u53F3\u5165"},{value:"lightSpeedInLeft",label:"\u679C\u51BB\u5DE6\u5165"},{value:"slideInDown",label:"\u4E0B\u6ED1\u5165"},{value:"slideInLeft",label:"\u5DE6\u6ED1\u5165"},{value:"slideInRight",label:"\u53F3\u6ED1\u5165"},{value:"slideInUp",label:"\u4E0A\u6ED1\u5165"},{value:"backInDown",label:"\u5FEB\u901F\u4E0B\u6ED1\u5165"},{value:"backInLeft",label:"\u5FEB\u901F\u5DE6\u6ED1\u5165"},{value:"backInRight",label:"\u5FEB\u901F\u53F3\u6ED1\u5165"},{value:"backInUp",label:"\u5FEB\u901F\u4E0A\u6ED1\u5165"},{value:"zoomIn",label:"\u7F29\u653E\u8FDB\u5165"},{value:"zoomInDown",label:"\u4E0B\u7F29\u653E"},{value:"zoomInLeft",label:"\u5DE6\u7F29\u653E"},{value:"zoomInRight",label:"\u53F3\u7F29\u653E"},{value:"zoomInTop",label:"\u4E0A\u7F29\u653E"}]}];function rl(t){return{type:"h2",slot:"title",style:"display: flex;align-items: center;font-size: 14px;font-weight: 600;margin:0;padding:0",children:[{type:"em",style:"width: 6px; height: 18px; background: rgb(64, 158, 255); display: block; margin-right: 5px;"},{type:"span",children:[t]}]}}function di(t){const e=si[0].animate;for(let o=0;o<e.length;o++)if(e[o].value===t)return!0;return!1}function sl(t=null){const e=[{type:"el-collapse",props:{modelValue:"base"},style:"width:100%",children:[{type:"el-collapse-item",props:{name:"base"},children:[rl("\u57FA\u7840\u914D\u7F6E"),{type:"DkStyleInput",field:"style",value:{},title:"",props:{height:180}}]}]},{type:"el-collapse",props:{modelValue:"base"},style:"width:100%",children:[{type:"el-collapse-item",props:{name:"base"},children:[rl("\u52A8\u753B\u914D\u7F6E"),{type:"DkAnimateSelect",field:"animate",value:"",title:"\u9009\u62E9\u52A8\u753B",control:[{handle:function(o){return o?di(o):!1},rule:[{type:"dk-style-animation-input",field:"animation",title:"",value:{animationDelay:"0s",animationDuration:"1s",animationIterationCount:"infinite"}}]},{handle:function(o){return o?!di(o):!1},rule:[{type:"dk-style-animation-input",field:"animation",title:"",value:{animationDelay:"0s",animationDuration:"1s",animationIterationCount:1}}]}]},{type:"switch",field:"animation_preview",title:"\u5B9E\u65F6\u9884\u89C8",value:!0,effect:{help:"\u8BBE\u7F6E\u5F53\u524D\u7EC4\u4EF6\u5FAA\u73AF\u52A8\u753B\u5B9E\u65F6\u9884\u89C8\uFF0C\u5F53\u524D\u4EC5\u4E3A\u8C03\u8BD5\u9879"}}]}]}];if(t&&t.config.config.rule().fixed){const o=[rl("\u60AC\u6D6E\u914D\u7F6E"),{type:"switch",field:"is_position",value:!1,title:"\u5F00\u542F\u60AC\u6D6E",effect:{help:"\u8BBE\u7F6E\u7EC4\u4EF6\u662F\u5426\u5F00\u542F\u60AC\u6D6E"},control:[{value:!0,rule:[{type:"DkStylePositionInput",field:"position",value:{},title:""}]}]}],n={type:"el-collapse-item",props:{name:"fixed"},children:o};e[0].children.push(n)}return e}const ci={type:{type:String,default:"web"},menu:{type:Object,default:null},height:{type:String,default:""},config:{type:Object,default:()=>({})},mask:{type:String,default:void 0},loading:{type:Boolean,default:void 0},rightAsideWidth:{type:String,default:"320px"},leftAsideWidth:{type:String,default:"285px"}},Eh={name:"DkMinVideo",props:{poster:{default:"",type:String},isHeight:{default:!1,type:Boolean},height:{default:0,type:Number},videoPath:{default:"",type:String},isOpenClose:{default:!1,type:Boolean}},data(){return{}},computed:{_style(){const t={};return this.height&&this.isHeight?t.height=this.height+"px":t.height="240px",t}},mounted(){},methods:{}},kh={style:{position:"relative"},class:"dk-video-content"},Fh={class:"video-preview"},wh={key:0},Dh={key:1};function Ch(t,e,o,n,l,u){const i=b("el-image"),a=b("dk-icon");return h(),w("div",{class:"dk-view-video",style:G(u._style)},[D("div",kh,[o.poster?(h(),I(i,{key:0,src:o.poster,alt:"",class:"poster"},null,8,["src"])):B("v-if",!0),D("div",Fh,[d(a,{icon:"VideoPlay",size:24}),o.videoPath?(h(),w("p",Dh,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B!!!!")):(h(),w("p",wh,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891!!!"))])])],4)}var Ah=Y(Eh,[["render",Ch],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinVideo.vue"]]);const xh={name:"DkMinSwiperImage",props:{value:{default:"",type:String},height:{default:"",type:[Number,String]},autoplay:{default:3e3,type:[Number,String]},swipeList:{default:()=>[],type:[Array]},imgMode:{default:"aspectFill",type:String},bgColor:{default:"",type:String},showTitle:{default:!1,type:Boolean},radius:{default:0,type:Number}},data(){return{}},computed:{},watch:{swipeList(t){}},mounted(){},methods:{}},Bh={key:0,class:"swipe-title"};function Sh(t,e,o,n,l,u){const i=b("van-image"),a=b("van-swipe-item"),s=b("van-swipe");return h(),I(s,{class:"dk-min-swipe",autoplay:o.autoplay,"indicator-color":"white",style:G({background:o.bgColor||""})},{default:g(()=>[(h(!0),w(W,null,te(o.swipeList,(r,_)=>(h(),I(a,{key:_},{default:g(()=>[d(i,{src:r.img,width:"100%",height:o.height,style:G(o.radius?"border-radius: "+o.radius+"px; overflow: hidden":"")},null,8,["src","height","style"]),o.showTitle?(h(),w("div",Bh,Q(r.title),1)):B("v-if",!0)]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var Vh=Y(xh,[["render",Sh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinSwiperImage.vue"]]);const $h={name:"DkMinTitle",props:{title:{default:"",type:String},titleStyle:{default:()=>({}),type:Object},iconType:{type:String,default:"icon"},icon:{type:String,default:"fire-filled"},iconColor:{type:String,default:"#F64C2E"},iconSize:{type:Number,default:16},marginRight:{type:Number,default:4},image:{type:String,default:""},showSubtitle:{default:!1,type:Boolean},subtitle:{default:"",type:String},subColor:{default:"#999",type:String},isMore:{default:!0,type:Boolean},moreText:{default:"\u67E5\u770B\u66F4\u591A",type:String},url:{default:"\u94FE\u63A5\u5730\u5740",type:String},moreColor:{default:"#999",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},Th={class:"dk-min-title flex items-center justify-between"},Ih={class:"flex justify-center items-center"},Rh=["src"];function Oh(t,e,o,n,l,u){const i=b("dk-uni-icon");return h(),w("div",Th,[D("div",Ih,[D("div",{style:G({marginRight:o.marginRight+"px"})},[o.iconType==="icon"?(h(),I(i,{key:0,type:o.icon,size:o.iconSize,color:o.iconColor},null,8,["type","size","color"])):o.iconType==="img"&&o.image?(h(),w("img",{key:1,src:o.image,style:G({width:o.iconSize+"px",height:o.iconSize+"px"}),alt:""},null,12,Rh)):B("v-if",!0)],4),D("div",null,[D("span",{style:G({...o.titleStyle})},Q(o.title),5),o.showSubtitle?(h(),w("span",{key:0,style:G([{"margin-left":"5px","font-size":"12px"},{color:o.subColor}])},Q(o.subtitle),5)):B("v-if",!0)])]),o.isMore?(h(),w("div",{key:0,style:G([{color:o.moreColor},{"font-size":"12px"}])},Q(o.moreText),5)):B("v-if",!0)])}var zh=Y($h,[["render",Oh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTitle.vue"]]);const jh={name:"DkMinBlank",props:{height:{default:20,type:[String,Number]}},data(){return{}},computed:{},mounted(){},methods:{}};function Ph(t,e,o,n,l,u){return h(),w("div",{style:G([{height:o.height+"px"},{width:"100%"}])},null,4)}var Mh=Y(jh,[["render",Ph],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinBlank.vue"]]);const Nh={name:"DkMinTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},Uh=["innerHTML"];function Lh(t,e,o,n,l,u){return h(),w("div",{innerHTML:o.textarea},null,8,Uh)}var Hh=Y(Nh,[["render",Lh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTextarea.vue"]]);const Wh={name:"DkMinHotArea",props:{hotData:{default:()=>({}),type:Object},showMask:{default:!1,type:Boolean}},setup(t){const e=R(null);let o=null;const n=R(0),l=R([]);Se(()=>{o=new(window.ResizeObserver||ResizeObserver)(u),o.observe(e.value),n.value=e.value.clientWidth,i()}),ls(()=>{o&&o.disconnect()}),Z(()=>t.hotData.views,()=>{i()},{deep:!0});function u(a){a.forEach(s=>{s.target===e.value&&(n.value=s.contentRect.width,i())})}function i(){l.value=JSON.parse(JSON.stringify(t.hotData.views)),l.value.forEach(a=>{const{left:s,top:r,width:_,height:y}=a.css,E=Math.round(_*(n.value/t.hotData.width)),k=Math.round(y*(n.value/t.hotData.width)),C=Math.round(s*(n.value/t.hotData.width)),p=Math.round(r*(n.value/t.hotData.width));a.css={...a.css,left:C+"px",top:p+"px",width:E+"px",height:k+"px"}})}return{el:e,containerWidth:n,views:l}}},qh={ref:"el",class:"dk-min-area"},Yh=["src"];function Gh(t,e,o,n,l,u){const i=b("el-empty");return h(),w("div",qh,[o.hotData.background?(h(),w("img",{key:0,src:o.hotData.background,alt:"",style:{width:"100%"}},null,8,Yh)):(h(),I(i,{key:1,description:"\u8BF7\u4E0A\u4F20\u80CC\u666F\u56FE"})),(h(!0),w(W,null,te(n.views,(a,s)=>(h(),w("div",{key:s,style:G({position:"absolute",...a.css,background:o.showMask?"#0008":"#0004"})},[B(" \u53EF\u4EE5\u5728\u8FD9\u91CC\u653E\u7F6E\u70ED\u56FE\u94FE\u63A5\u6216\u8986\u76D6\u5C42 "),D("div",{style:G({width:a.css.width,height:a.css.height}),class:"hot-item"},Q(s+1),5)],4))),128))],512)}var Xh=Y(Wh,[["render",Gh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinHotArea.vue"]]);const Jh={name:"DkMinGrid",props:["list","columnNum","imageStyle","useImageStyle","fontStyle"],data:()=>({value:""})},Kh=["src"];function Qh(t,e,o,n,l,u){const i=b("dk-icon"),a=b("van-grid-item"),s=b("van-grid"),r=b("el-empty");return o.list?.length>0?(h(),I(s,{key:0,border:!1,"column-num":o.columnNum,class:"min-h-30px dk-app-gold-grid",style:{"--van-grid-item-content-background":"none"}},{default:g(()=>[(h(!0),w(W,null,te(o.list,(_,y)=>(h(),I(a,{key:y},{default:g(()=>[_.image?(h(),w("img",{key:0,src:_.image,alt:"",style:G(o.imageStyle)},null,12,Kh)):(h(),w("div",{key:1,class:"flex justify-center items-center",style:G([{display:"flex",background:"#f3f5f7"},o.imageStyle])},[d(i,{icon:"PictureFilled",color:"#BBBFC8"})],4)),D("span",{style:G({...o.fontStyle})},Q(_.title),5)]),_:2},1024))),128))]),_:1},8,["column-num"])):(h(),I(r,{key:1}))}var Zh=Y(Jh,[["render",Qh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinGrid.vue"]]);const eg={name:"DkMinImage",props:{value:{default:"",type:String},type:{default:"row",type:String},textType:{default:"default",type:String},heightAuto:{default:!1,type:Boolean},showText:{default:!1,type:Boolean},height:{default:"",type:[Number,String]},width:{default:"",type:[Number,String]},borderRadius:{default:"",type:[Number,String]},marginBottom:{default:"",type:[Number,String]},marginRight:{default:"",type:[Number,String]},imageTextStyle:{default:()=>{},type:Object},imageStyle:{default:()=>{},type:Object},imageList:{default:()=>[],type:[Array]},fit:{default:"cover",type:String}},data(){return{}},computed:{textStyle(){let t=0,e=0;return this.textType==="default"&&(t=this.imageTextStyle?.paddingLeft||0,e=this.imageTextStyle?.paddingRight||0),{width:"calc(100% - "+t+" - "+e+")"}}},mounted(){},methods:{}},tg=["src"],og={key:0,style:{width:"100%"}};function ng(t,e,o,n,l,u){const i=b("el-empty");return h(),w("div",{class:ae(["dk-min-image","dk-mobile-image-"+o.type])},[(h(!0),w(W,null,te(o.imageList,(a,s)=>(h(),w("div",{key:s,class:"dk-mobile-image-content",style:G(o.imageTextStyle)},[D("img",{src:a.img,style:G(o.imageStyle),alt:""},null,12,tg),o.showText&&a.title?(h(),w("div",{key:0,class:ae("text-type-"+o.textType),style:G(u.textStyle)},Q(a.title),7)):B("v-if",!0)],4))),128)),o.imageList.length<=0?(h(),w("div",og,[d(i,{description:"\u8BF7\u6DFB\u52A0\u56FE\u7247\u6570\u636E"})])):B("v-if",!0)],2)}var lg=Y(eg,[["render",ng],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinImage.vue"]]);const ug={name:"DkMinCubeImage",props:{showText:{default:!1,type:Boolean},imageStyle:{default:()=>{},type:Object},cubeData:{default:()=>{},type:Object},fit:{default:"cover",type:String}},setup(t){const e=R(null),o=R(0);ps(e,l=>{for(const u of l)o.value=u.contentRect.width});const n=()=>{e.value&&(o.value=e.value.offsetWidth)};return Se(()=>{Oe(()=>{n()})}),us(()=>{Oe(()=>{n()})}),{cubeContainer:e,containerWidth:o}},data(){return{}},computed:{moduleSize(){return this.containerWidth/this.cubeData.density||0},cubeHeight(){if(!this.cubeData.selectedCubes||this.cubeData.selectedCubes.length===0)return this.moduleSize;let t=0;return this.cubeData.selectedCubes.forEach(e=>{Math.min(e.start.y,e.end.y);const o=Math.max(e.start.y,e.end.y);t=Math.max(t,o)}),t*this.moduleSize},_imageStyle(){const t={};if(typeof this.imageStyle.marginLeft<"u"&&this.imageStyle.width===void 0&&(t.width=`calc(100% - ${this.imageStyle.marginLeft})`),typeof this.imageStyle.marginRight<"u"&&this.imageStyle.width===void 0){const e=parseFloat(this.imageStyle.marginLeft||0)+parseFloat(this.imageStyle.marginRight||0);t.width=`calc(100% - ${e}px)`}if(typeof this.imageStyle.marginTop<"u"&&this.imageStyle.height===void 0&&(t.height=`calc(100% - ${this.imageStyle.marginTop})`),typeof this.imageStyle.marginBottom<"u"&&this.imageStyle.height===void 0){const e=parseFloat(this.imageStyle.marginTop||0)+parseFloat(this.imageStyle.marginBottom||0);t.height=`calc(100% - ${e}px)`}return Object.assign({},this.imageStyle,t)}},mounted(){this.updateContainerWidth(),window.addEventListener("resize",this.updateContainerWidth)},beforeUnmount(){window.removeEventListener("resize",this.updateContainerWidth)},methods:{updateContainerWidth(){this.$refs.cubeContainer&&(this.containerWidth=this.$refs.cubeContainer.offsetWidth)},getSelectedAreaStyle(t){const e=Math.min(t.start.x,t.end.x)-1,o=Math.max(t.start.x,t.end.x),n=Math.min(t.start.y,t.end.y)-1,l=Math.max(t.start.y,t.end.y);return{width:`${(o-e)*this.moduleSize}px`,height:`${(l-n)*this.moduleSize}px`,top:`${n*this.moduleSize}px`,left:`${e*this.moduleSize}px`}},getReferenceSize(t){const e=Math.min(t.start.x,t.end.x),o=Math.max(t.start.x,t.end.x),n=Math.min(t.start.y,t.end.y),l=Math.max(t.start.y,t.end.y),u=(o-e+1)*this.moduleSize,i=(l-n+1)*this.moduleSize;return`${Math.round(u)} x ${Math.round(i)} \u50CF\u7D20`}}},ag=["src"],ig={key:1,class:"cube-selected-text"},rg={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"100%",color:"#999"}};function sg(t,e,o,n,l,u){return h(),w("div",{ref:"cubeContainer",class:"dk-min-cube-image",style:G({height:`${u.cubeHeight}px`})},[o.cubeData.selectedCubes.length>0?(h(!0),w(W,{key:0},te(o.cubeData.selectedCubes,(i,a)=>(h(),w("div",{key:a,class:"selected-area",style:G(u.getSelectedAreaStyle(i))},[i.image?(h(),w("img",{key:0,src:i.image,alt:"Selected Cube Image",class:"selected-image",style:G(u._imageStyle)},null,12,ag)):(h(),w("div",ig,Q(u.getReferenceSize(i)),1))],4))),128)):(h(),w("div",rg," \u8BF7\u70B9\u51FB\u540E\u5728\u53F3\u4FA7\u914D\u7F6E\u9B54\u65B9\u56FE\u7247 "))],4)}var dg=Y(ug,[["render",sg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinCubeImage.vue"]]);const cg={name:"DkMinModal",props:{listen:{default:"",type:String},title:{default:"\u63D0\u793A",type:String},content:{default:"\u8FD9\u662F\u5F39\u7A97\u5185\u5BB9",type:String},showCancel:{default:!1,type:Boolean}},data(){return{}},computed:{},mounted(){},methods:{}},pg={style:{width:"100%","text-align":"center"}},fg={key:0},mg={key:1};function hg(t,e,o,n,l,u){return h(),w("div",pg,[o.listen?(h(),w("p",mg,"\u5F39\u7A97\u4E8B\u4EF6\uFF1A"+Q(o.listen),1)):(h(),w("p",fg,"\u70B9\u51FB\u914D\u7F6E\u5F39\u7A97\u5185\u5BB9"))])}var gg=Y(cg,[["render",hg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinModal.vue"]]);const pi={DkMinVideo:Ah,DkMinSwiperImage:Vh,DkMinTitle:zh,DkMinBlank:Mh,DkMinTextarea:Hh,DkMinHotArea:Xh,DkMinGrid:Zh,DkMinImage:lg,DkMinCubeImage:dg,DkMinModal:gg},vg={name:"DkViewBulletChat",props:{bgColor:{default:"",type:String},textColor:{default:"",type:String},dataType:{default:"",type:String},eventName:{default:"",type:String},autoplay:{default:3e3,type:Number},bulletData:{default:()=>[],type:Array}},data(){return{}},computed:{},mounted(){},methods:{}},yg={class:"bullet-content"},_g=["src"],bg={class:"over"},Eg=D("div",{class:"bullet-content"},[D("span",{class:"over"},"\u5F53\u524D\u6570\u636E\u7531\u4E8B\u4EF6\u4F20\u5165")],-1),kg=[Eg];function Fg(t,e,o,n,l,u){const i=b("van-swipe-item"),a=b("van-swipe");return o.dataType==="default"?(h(),I(a,{key:0,vertical:"",class:"dk-view-bullet-chat",style:G({background:o.bgColor,color:o.textColor}),autoplay:o.autoplay,"show-indicators":!1},{default:g(()=>[(h(!0),w(W,null,te(o.bulletData,(s,r)=>(h(),I(i,{key:r},{default:g(()=>[D("div",yg,[s.avatar?(h(),w("img",{key:0,src:s.avatar,alt:""},null,8,_g)):B("v-if",!0),D("span",bg,Q(s.text),1)])]),_:2},1024))),128))]),_:1},8,["style","autoplay"])):(h(),w("div",{key:1,class:"dk-view-bullet-chat",style:G([{display:"flex"},{background:o.bgColor,color:o.textColor}])},kg,4))}var wg=Y(vg,[["render",Fg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewBulletChat.vue"]]);const Dg={name:"DkViewCell",props:{groups:{default:()=>[],type:Array}},data(){return{}},computed:{},mounted(){},methods:{}};function Cg(t,e,o,n,l,u){const i=b("van-cell"),a=b("van-cell-group");return h(),I(a,null,{default:g(()=>[(h(!0),w(W,null,te(o.groups,(s,r)=>(h(),I(i,{key:r,title:s.title,value:s.value},null,8,["title","value"]))),128))]),_:1})}var Ag=Y(Dg,[["render",Cg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCell.vue"]]);const xg={name:"DkViewCommonBtn",props:{posterData:{default:()=>({}),type:[Object]},type:{default:"btn",type:[String]},icon:{default:"",type:String},imgSize:{default:20,type:[String,Number]},img:{default:"",type:String},imgText:{default:"",type:String},fBtnText:{default:"\u81EA\u5B9A\u4E49\u6587\u672C",type:String},fBgColor:{default:"#ff3d2c",type:String},isTextBlock:{default:!0,type:Boolean},fColor:{default:"#fff",type:String},fWSize:{default:20,type:[String,Number]},fHSize:{default:20,type:[String,Number]},borderRadius:{default:20,type:[String,Number]},fontSize:{default:12,type:[String,Number]},fontTopSize:{default:0,type:[String,Number]},iconSize:{default:12,type:[String,Number]},btnText:{default:"\u6309\u94AE\u6587\u5B57",type:String},block:{default:!0,type:Boolean},round:{default:!0,type:Boolean},size:{default:"normal",type:String},color:{default:"#ff3d2c",type:String},color2:{default:"",type:String}},data(){return{}},computed:{textStyle(){return this.isTextBlock?{backgroundColor:this.fBgColor,width:this.fWSize+"px",height:this.fHSize+"px",color:this.fColor,borderRadius:this.borderRadius+"px",marginTop:this.fontTopSize+"px"}:{marginTop:this.fontTopSize+"px"}},vanBtnColor(){return this.color&&this.color2?"linear-gradient(to right, "+this.color+", "+this.color2+")":this.color?this.color:this.color2?this.color2:""}},mounted(){},methods:{}},Bg={class:"dk-view-common-btn"},Sg={key:0,class:"btn"},Vg={key:1,class:"f-btn"},$g={key:0,class:"image-content"},Tg=["src","width"];function Ig(t,e,o,n,l,u){const i=b("van-button"),a=b("van-icon");return h(),w("div",Bg,[o.type==="btn"?(h(),w("div",Sg,[d(i,{type:"primary",block:o.block,round:o.round,size:o.size,color:u.vanBtnColor,icon:o.icon},{default:g(()=>[N(Q(o.btnText),1)]),_:1},8,["block","round","size","color","icon"])])):(h(),w("div",Vg,[o.img?(h(),w("div",$g,[D("img",{src:o.img,alt:"",width:o.imgSize},null,8,Tg)])):B("v-if",!0),D("div",{style:G(u.textStyle),class:"f-btn-content"},[d(a,{name:o.icon,size:o.iconSize},null,8,["name","size"]),D("span",{style:G({fontSize:o.fontSize+"px"})},Q(o.fBtnText),5)],4)]))])}var Rg=Y(xg,[["render",Ig],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCommonBtn.vue"]]);const Og={name:"DkViewDialog",props:{title:{default:"\u6807\u9898",type:String},listen:{default:"",type:String},show:{default:!1,type:Boolean},content:{default:"",type:String},confirmText:{default:"\u786E\u5B9A",type:String},copy:{default:"0",type:[Number,String]},copyType:{default:"text",type:String},copyText:{default:"\u590D\u5236\u7684\u5185\u5BB9",type:String},copyHtml:{default:"\u590D\u5236\u7684\u5BCC\u6587\u672C",type:String}},data(){return{showDialog:!1}},computed:{},watch:{show(){this.showDialog=this.show}},mounted(){console.log("123")},methods:{getContainer(){return document.querySelector(".phone-body")}}},zg={class:"dk-view-dialog"},jg=D("div",{class:"preview"},"\u70B9\u51FB\u9884\u89C8\u53EF\u4EE5\u67E5\u770B\u5F39\u7A97\u6548\u679C",-1),Pg=["innerHTML"];function Mg(t,e,o,n,l,u){const i=b("van-dialog");return h(),w("div",zg,[jg,l.showDialog?(h(),I(i,{key:0,show:l.showDialog,"onUpdate:show":e[0]||(e[0]=a=>l.showDialog=a),title:o.title,teleport:".phone-body","overlay-style":{position:"absolute"},style:{position:"absolute"}},{default:g(()=>[D("div",{style:{padding:"10px"},innerHTML:o.content},null,8,Pg)]),_:1},8,["show","title"])):B("v-if",!0)])}var Ng=Y(Og,[["render",Mg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewDialog.vue"]]);const Ug={name:"DkViewGridCellList",props:{value:{default:"",type:String},imgRadius:{default:0,type:Number},gridCellList:{default:()=>{},type:[Array]},fontSize:{default:14,type:Number},type:{default:"cell",type:String},cellImgSize:{default:20,type:Number},imgTextGutter:{default:0,type:Number},columnNum:{default:4,type:Number},square:{default:!1,type:Boolean},gutter:{default:0,type:Number},direction:{default:"vertical",type:String},clickable:{default:!0,type:Boolean},border:{default:!0,type:Boolean},gridImgSize:{default:40,type:Number}},data(){return{}},computed:{},mounted(){},methods:{}},Lg={key:0,class:"cell"},Hg=["src","alt","width","height"],Wg={key:1,class:"grid"},qg=["src","width","height","alt"];function Yg(t,e,o,n,l,u){const i=b("dk-icon"),a=b("van-cell"),s=b("van-cell-group"),r=b("van-grid-item"),_=b("van-grid");return o.type==="cell"?(h(),w("div",Lg,[d(s,null,{default:g(()=>[(h(!0),w(W,null,te(o.gridCellList,(y,E)=>(h(),I(a,{key:E,"is-link":"",style:G({lineHeight:o.cellImgSize+"px!important"})},{icon:g(()=>[D("img",{src:y.img,alt:y.title,width:o.cellImgSize,height:o.cellImgSize,style:G({borderRadius:o.imgRadius+"px",marginRight:o.imgTextGutter+"px"})},null,12,Hg)]),title:g(()=>[D("span",{class:"custom-title",style:G({fontSize:o.fontSize+"px"})},Q(y.title),5)]),"right-icon":g(()=>[d(i,{icon:"ArrowRight"}),B(' <div style="color: #999; font-size: 16px">'),B(' <i class="el-icon-arrow-right" />'),B(" </div>")]),_:2},1032,["style"]))),128))]),_:1})])):(h(),w("div",Wg,[d(_,{square:o.square,direction:o.direction,gutter:o.gutter,clickable:o.clickable,border:o.border,"column-num":o.columnNum},{default:g(()=>[(h(!0),w(W,null,te(o.gridCellList,(y,E)=>(h(),w(W,null,[y.show?(h(),I(r,{key:E,icon:"photo-o"},{icon:g(()=>[D("img",{src:y.img,width:o.gridImgSize,height:o.gridImgSize,alt:y.title,style:G({borderRadius:o.imgRadius+"px"})},null,12,qg)]),text:g(()=>[D("span",{style:G({fontSize:o.fontSize+"px"})},Q(y.title),5)]),_:2},1024)):B("v-if",!0)],64))),256))]),_:1},8,["square","direction","gutter","clickable","border","column-num"])]))}var Gg=Y(Ug,[["render",Yg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewGridCellList.vue"]]);const Xg={name:"DkViewImage",props:{value:{default:"",type:String},type:{default:"default",type:String},textType:{default:"default",type:String},heightAuto:{default:!1,type:Boolean},showText:{default:!1,type:Boolean},height:{default:"",type:[Number,String]},width:{default:"",type:[Number,String]},borderRadius:{default:"",type:[Number,String]},marginBottom:{default:"",type:[Number,String]},marginRight:{default:"",type:[Number,String]},imageList:{default:()=>[],type:[Array]},fit:{default:"cover",type:String}},data(){return{}},computed:{_style(){const t={};return this.type==="default"?t.marginBottom=this.marginBottom+"px":(t.width=this.width+"%",t.marginRight=this.marginRight+"px"),t.borderRadius=this.borderRadius+"px",t}},mounted(){},methods:{}},Jg={key:0};function Kg(t,e,o,n,l,u){const i=b("van-image"),a=b("el-empty");return h(),w("div",{class:ae(["dk-view-image","dk-mobile-image-"+o.type])},[(h(!0),w(W,null,te(o.imageList,(s,r)=>(h(),w("div",{key:r,class:"dk-mobile-image-content",style:G(u._style)},[d(i,{src:s.img,fit:o.fit,width:"100%",height:o.heightAuto?o.height:"",style:{overflow:"hidden"}},null,8,["src","fit","height"]),o.showText&&s.title?(h(),w("div",{key:0,class:ae("text-type-"+o.textType)},Q(s.title),3)):B("v-if",!0)],4))),128)),o.imageList.length<=0?(h(),w("div",Jg,[d(a,{description:"\u8BF7\u6DFB\u52A0\u56FE\u7247\u6570\u636E"})])):B("v-if",!0)],2)}var Qg=Y(Xg,[["render",Kg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewImage.vue"]]);const Zg={name:"DkViewMusic",props:{musicPath:{default:"",type:String},iconType:{default:"",type:String},iconSize:{default:40,type:Number},rotation:{default:"changeRight",type:String},speed:{default:5,type:Number},imgUrl:{default:"",type:String}},data(){return{}},computed:{_style(){const t=11-this.speed+"s";return{width:this.iconSize+"px",height:this.iconSize+"px",fontSize:this.iconSize+"px",animationDuration:t,animationIterationCount:"infinite",animationTimingFunction:"linear"}}},mounted(){},methods:{}},ev={class:"dk-view-music"},tv={key:0},ov=["src"];function nv(t,e,o,n,l,u){const i=b("van-icon");return h(),w("div",ev,[o.iconType==="image"?(h(),w("div",tv,[D("img",{src:o.imgUrl,width:"100%",style:G(u._style),class:ae([o.rotation,"dk-music-img"]),alt:""},null,14,ov)])):(h(),I(i,{key:1,name:"music-o",class:ae(["dk-music-icon",o.rotation]),style:G(u._style)},null,8,["class","style"]))])}var lv=Y(Zg,[["render",nv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewMusic.vue"]]);const uv={name:"DkViewNavBar",props:{title:{default:"",type:String},rightText:{default:"",type:String},leftText:{default:"",type:String},fixed:{default:!0,type:Boolean},leftArrow:{default:!0,type:Boolean},border:{default:!0,type:Boolean},placeholder:{default:!1,type:Boolean}},data(){return{}},computed:{},mounted(){},methods:{}};function av(t,e,o,n,l,u){const i=b("van-nav-bar");return h(),w("div",null,[d(i,{title:o.title,"left-text":o.leftText,"right-text":o.rightText,"left-arrow":o.leftArrow,border:o.border},null,8,["title","left-text","right-text","left-arrow","border"])])}var iv=Y(uv,[["render",av],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNavBar.vue"]]);const rv={name:"DkViewNoticeBar",props:{leftIcon:{default:"",type:String},text:{default:"",type:String},url:{default:"",type:String},background:{default:"",type:String},color:{default:"",type:String},speed:{default:60,type:Number}},data(){return{}},computed:{},mounted(){},methods:{}};function sv(t,e,o,n,l,u){const i=b("van-notice-bar");return h(),w("div",null,[d(i,{speed:o.speed,"left-icon":o.leftIcon,text:o.text,color:o.color,background:o.background},null,8,["speed","left-icon","text","color","background"])])}var dv=Y(rv,[["render",sv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNoticeBar.vue"]]);const cv={name:"DkViewSwipe",props:{value:{default:"",type:String},height:{default:"",type:[Number,String]},autoplay:{default:3e3,type:[Number,String]},swipeList:{default:()=>[],type:[Array]},fit:{default:"fill",type:String},bgColor:{default:"",type:String}},data(){return{}},computed:{},watch:{swipeList(t){}},mounted(){},methods:{}};function pv(t,e,o,n,l,u){const i=b("van-image"),a=b("van-swipe-item"),s=b("van-swipe");return h(),I(s,{class:"dk-view-swipe",autoplay:o.autoplay,"indicator-color":"white",style:G({background:o.bgColor||""})},{default:g(()=>[(h(!0),w(W,null,te(o.swipeList,(r,_)=>(h(),I(a,{key:_},{default:g(()=>[d(i,{src:r.img,fit:o.fit,width:"100%",height:o.height},null,8,["src","fit","height"])]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var fv=Y(cv,[["render",pv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewSwipe.vue"]]);const mv={name:"DkViewTabbar",props:{tabBars:{default:()=>[],type:[Array]},active:{default:0,type:Number},activeColor:{default:"#1989fa",type:String},inactiveColor:{default:"#333333",type:String},bgColor:{default:"#fff",type:String}},data(){return{tmpActive:this.active-1}},computed:{},watch:{active(){this.tmpActive=this.active}},mounted(){},methods:{}},hv={class:"dk-view-tabbar"},gv=["src"];function vv(t,e,o,n,l,u){const i=b("van-tabbar-item"),a=b("van-tabbar");return h(),w("div",hv,[d(a,{modelValue:l.tmpActive,"onUpdate:modelValue":e[0]||(e[0]=s=>l.tmpActive=s),"active-color":o.activeColor,"inactive-color":o.inactiveColor,style:G({backgroundColor:o.bgColor}),fixed:!1},{default:g(()=>[(h(!0),w(W,null,te(o.tabBars,(s,r)=>(h(),I(i,{key:r,icon:s.icon,dot:s.badge==="dot",badge:s.badge==="badge"?s.badge_text:""},Ct({default:g(()=>[D("span",null,Q(s.title),1)]),_:2},[s.useImg===!0?{name:"icon",fn:g(()=>[D("img",{src:s.imgIcon,alt:""},null,8,gv)]),key:"0"}:void 0]),1032,["icon","dot","badge"]))),128))]),_:1},8,["modelValue","active-color","inactive-color","style"])])}var yv=Y(mv,[["render",vv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTabbar.vue"]]);const _v={name:"DkViewTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},bv=["innerHTML"];function Ev(t,e,o,n,l,u){return h(),w("div",{innerHTML:o.textarea},null,8,bv)}var kv=Y(_v,[["render",Ev],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTextarea.vue"]]);const Fv={name:"DkViewTitle",props:{title:{default:"\u6807\u9898",type:String},size:{default:14,type:Number},color:{default:"#333",type:String},bold:{default:!1,type:Boolean},prefix:{default:"",type:String},icon:{default:"volume",type:String},prefixColor:{default:"#409eff",type:String},prefixImage:{default:"",type:String},squareWidth:{default:4,type:Number},squareHeight:{default:12,type:Number},imageWidth:{default:24,type:Number},imageHeight:{default:24,type:Number},iconSize:{default:18,type:Number},titleMarginLeft:{default:4,type:Number},rTitle:{default:"\u66F4\u591A",type:String},rColor:{default:"#999",type:String},rSize:{default:12,type:Number},showRight:{default:!1,type:Boolean}},data(){return{}},computed:{},mounted(){},methods:{}},wv={class:"dk-view-title"},Dv={class:"title-left"};function Cv(t,e,o,n,l,u){const i=b("van-icon"),a=b("van-image");return h(),w("div",wv,[D("div",Dv,[o.prefix==="icon"?(h(),I(i,{key:0,name:o.icon,style:G({color:o.prefixColor,fontSize:o.iconSize+"px"})},null,8,["name","style"])):B("v-if",!0),o.prefix==="image"?(h(),I(a,{key:1,src:o.prefixImage,alt:"",class:"dk-title-img",width:o.imageWidth,height:o.imageHeight},null,8,["src","width","height"])):B("v-if",!0),o.prefix==="square"?(h(),w("div",{key:2,style:G({width:o.squareWidth+"px",height:o.squareHeight+"px",background:o.prefixColor})},null,4)):B("v-if",!0),D("div",{style:G({marginLeft:o.titleMarginLeft+"px",color:o.color,fontWeight:o.bold?800:400})},Q(o.title),5)]),o.showRight?(h(),w("div",{key:0,class:"title-right",style:G({color:o.rColor,fontSize:o.rSize+"px"})},Q(o.rTitle),5)):B("v-if",!0)])}var Av=Y(Fv,[["render",Cv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTitle.vue"]]);const xv={name:"DkViewVideo",props:{poster:{default:"",type:String},isHeight:{default:!1,type:Boolean},height:{default:0,type:Number},videoPath:{default:"",type:String},isOpenClose:{default:!1,type:Boolean}},data(){return{}},computed:{_style(){const t={};return this.height&&this.isHeight?t.height=this.height+"px":t.height="240px",t}},mounted(){},methods:{}},Bv={style:{position:"relative"},class:"dk-video-content"},Sv={class:"video-preview"},Vv={key:0},$v={key:1};function Tv(t,e,o,n,l,u){const i=b("el-image"),a=b("dk-icon");return h(),w("div",{class:"dk-view-video",style:G(u._style)},[D("div",Bv,[o.poster?(h(),I(i,{key:0,src:o.poster,alt:"",class:"poster"},null,8,["src"])):B("v-if",!0),D("div",Sv,[d(a,{icon:"VideoPlay",size:24}),o.videoPath?(h(),w("p",$v,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B")):(h(),w("p",Vv,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891"))])])],4)}var Iv=Y(xv,[["render",Tv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewVideo.vue"]]);const fi={DkViewBulletChat:wg,DkViewCell:Ag,DkViewCommonBtn:Rg,DkViewDialog:Ng,DkViewGridCellList:Gg,DkViewImage:Qg,DkViewMusic:lv,DkViewNavBar:iv,DkViewNoticeBar:dv,DkViewSwipe:fv,DkViewTabbar:yv,DkViewTextarea:kv,DkViewTitle:Av,DkViewVideo:Iv},Pt="/adminapi/cloud_diy/";function Rv(t,e,o,n){return be({url:Pt+"getList",method:"post",data:{page_name:t,page:e,search:o,size:n}})}function Ov(t){return be({url:Pt+"down",method:"post",data:{id:t}})}function zv(t,e,o){return be({url:Pt+"getDiyForm",method:"post",data:{id:t,page_name:e,diy_data:o}})}function jv(){return be({url:Pt+"getSiteMsg",method:"post",data:{}})}function Pv(t,e){return be({url:Pt+"getCheckForm",method:"post",data:{id:t,state:e}})}function Mv(t){return be({url:Pt+"delDiy",method:"post",data:{id:t}})}const Nv={name:"DiyCloud",props:{pageName:{default:"",type:String},diyData:{default:()=>({}),type:Object}},emits:["submit"],data(){return{total:0,pageSize:12,keyword:"",search:{state:"",look:""},chooseDiy:{},page:1,formData:null,site:{},width:"800px",list:[],loading:!0,errMsg:"",errCode:0}},computed:{},mounted(){this.getDiyList(),this.getSiteMsg()},methods:{submit(){this.$confirm("\u786E\u5B9A\u9009\u62E9\u6B64diy\u6A21\u677F\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Ov(this.chooseDiy.id).then(t=>{this.$emit("submit",t.data)})}).catch(()=>{})},onChooseDiy(t){this.chooseDiy=t},getDiyList(t){this.page=t||this.page,this.loading=!0,Rv(this.pageName,this.page,this.search,this.pageSize).then(e=>{this.list=e.data,this.total=e.msg,this.loading=!1}).catch(e=>{this.errMsg=e.msg,this.errCode=-1,this.loading=!1})},getSiteMsg(){jv().then(t=>{this.site=t.data})},getDiyForm(t=0){zv(t,this.pageName,this.diyData).then(e=>{console.log("getDiyForm",e),this.formData=e.data,this.width="600px",this.$refs.formRef.show()}).catch(e=>{this.$message.error(e.msg)})},getCheckForm(){Pv(this.chooseDiy.id,this.chooseDiy.state).then(t=>{this.formData=t.data,this.width="400px",this.$refs.formRef.show()}).catch(t=>{this.$message.error(t.msg)})},delDiy(){this.$confirm("\u786E\u5B9A\u8981\u5220\u9664\u5F53\u524D\u6A21\u677F\uFF0C\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Mv(this.chooseDiy.id).then(t=>{this.$message.success(t.msg),this.getDiyList(1)}).catch(t=>{this.$message.error(t.msg)})}).catch(()=>{})},onSubmit(){this.getDiyList(0)}}},Uv={class:"diy-cloud"},Lv={class:"diy-header"},Hv={class:"diy-search"},Wv={class:"diy-content"},qv={key:0,class:"cl"},Yv=["onClick"],Gv={key:0,class:"mask"},Xv={class:"type"},Jv={key:1,class:"tag-list"},Kv={key:0,class:"tag"},Qv={key:1,class:"tag"},Zv={class:"title over"},e0={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"500px"}},t0={class:"diy-footer"};function o0(t,e,o,n,l,u){const i=b("el-option"),a=b("el-select"),s=b("el-button"),r=b("el-input"),_=b("el-image"),y=b("el-tag"),E=b("van-icon"),k=b("el-empty"),C=b("el-pagination"),p=b("dk-form"),S=ht("loading");return h(),w("div",Uv,[D("div",Lv,[D("div",Hv,[d(a,{modelValue:l.search.state,"onUpdate:modelValue":e[0]||(e[0]=x=>l.search.state=x),placeholder:"\u72B6\u6001"},{default:g(()=>[d(i,{label:"\u5168\u90E8\u72B6\u6001",value:""}),l.site.level>0?(h(),I(i,{key:0,label:"\u672A\u901A\u8FC7",value:"-1"})):B("v-if",!0),l.site.level>0?(h(),I(i,{key:1,label:"\u672A\u5BA1\u6838",value:"0"})):B("v-if",!0),d(i,{label:"\u5DF2\u5BA1\u6838",value:"1"}),d(i,{label:"\u5DF2\u63A8\u8350",value:"2"})]),_:1},8,["modelValue"]),d(a,{modelValue:l.search.look,"onUpdate:modelValue":e[1]||(e[1]=x=>l.search.look=x),placeholder:"\u67E5\u770B",class:"u-m-l-10"},{default:g(()=>[d(i,{label:"\u5168\u90E8\u6A21\u677F",value:""}),d(i,{label:"\u6211\u7684\u6A21\u677F",value:"me"}),d(i,{label:"\u4ED6\u4EBA\u6A21\u677F",value:"other"})]),_:1},8,["modelValue"]),d(r,{modelValue:l.search["name like"],"onUpdate:modelValue":e[3]||(e[3]=x=>l.search["name like"]=x),placeholder:"\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0",clearable:"",onClear:e[4]||(e[4]=x=>u.getDiyList(0))},{append:g(()=>[d(s,{icon:"Search",onClick:e[2]||(e[2]=x=>u.getDiyList(1))})]),_:1},8,["modelValue"])]),D("div",null,[l.site.level>0?(h(),I(s,{key:0,type:"warning",disabled:!l.chooseDiy.id,onClick:u.getCheckForm},{default:g(()=>[N("\u5BA1\u6838 ")]),_:1},8,["disabled","onClick"])):B("v-if",!0),l.site.level>1?(h(),I(s,{key:1,type:"danger",disabled:!l.chooseDiy.id,onClick:u.delDiy},{default:g(()=>[N("\u5220\u9664")]),_:1},8,["disabled","onClick"])):B("v-if",!0),l.site.level>0||l.site.site_id===l.chooseDiy.site_id?(h(),I(s,{key:2,type:"info",disabled:!l.chooseDiy.id,onClick:e[5]||(e[5]=x=>u.getDiyForm(l.chooseDiy.id))},{default:g(()=>[N("\u7F16\u8F91 ")]),_:1},8,["disabled"])):B("v-if",!0),d(s,{type:"primary",icon:"Upload",onClick:e[6]||(e[6]=x=>u.getDiyForm())},{default:g(()=>[N("\u4E0A\u4F20\u65B0\u6A21\u677F")]),_:1})])]),B("-------------\u6A21\u677F\u5217\u8868------------------------"),_e((h(),w("div",Wv,[!l.loading&&l.list.length>0?(h(),w("ul",qv,[(h(!0),w(W,null,te(l.list,(x,F)=>(h(),w("li",{key:F,class:ae({choose:l.chooseDiy.id===x.id}),onClick:m=>u.onChooseDiy(x)},[d(_,{src:x.cover_image,class:"cover",fit:"contain"},null,8,["src"]),x.state<=0?(h(),w("div",Gv)):B("v-if",!0),D("div",Xv,[x.state==="0"?(h(),I(y,{key:0,effect:"dark"},{default:g(()=>[N("\u5BA1\u6838\u4E2D")]),_:1})):B("v-if",!0),x.state==="-1"?(h(),I(y,{key:1,type:"danger",effect:"dark"},{default:g(()=>[N("\u5BA1\u6838\u672A\u901A\u8FC7")]),_:1})):B("v-if",!0)]),x.state>0?(h(),w("div",Jv,[x.state>=2?(h(),w("span",Kv,[d(E,{name:"good-job"}),N("\u63A8\u8350")])):B("v-if",!0),x.down_count>100?(h(),w("span",Qv,[d(E,{name:"fire"}),N("\u70ED\u95E8")])):B("v-if",!0)])):B("v-if",!0),D("div",Zv,Q(x.name),1)],10,Yv))),128))])):(h(),w("div",e0,[l.errCode===0?(h(),I(k,{key:0,description:"\u5F53\u524D\u8FD8\u6CA1\u6A21\u677F\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u4E0A\u4F20\u81EA\u5DF1\u7684\u6A21\u677F\u5427"})):(h(),I(k,{key:1,description:l.errMsg},null,8,["description"]))])),d(C,{background:"",layout:"total,prev, pager, next",total:l.total,"current-page":l.page,"page-size":l.pageSize,"hide-on-single-page":"",onCurrentChange:u.getDiyList},null,8,["total","current-page","page-size","onCurrentChange"])])),[[S,l.loading]]),D("div",t0,[d(s,{type:"primary",style:{width:"300px"},disabled:!l.chooseDiy.id,onClick:u.submit},{default:g(()=>[N("\u786E\u5B9A")]),_:1},8,["disabled","onClick"])]),d(p,{ref:"formRef","is-dialog":!0,"form-data":l.formData,onSubmit:u.onSubmit},null,8,["form-data","onSubmit"])])}var n0=Y(Nv,[["render",o0],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DiyCloud.vue"]]);class l0{events=[];constructor(){}addEvent(e){this.events.push({id:e.id,label:e.label,value:e.value})}addEvents(e){this.events.push(...e.map(o=>({id:o.id,label:o.label,value:o.value})))}getAllEvents(){return this.events}getEventById(e){return this.events.find(o=>o.id===e)}removeEventById(e){const o=this.events.findIndex(n=>n.id===e);o!==-1&&this.events.splice(o,1)}removeEventByLabel(e){const o=this.events.findIndex(n=>n.label===e);o!==-1&&this.events.splice(o,1)}removeAllEvent(){this.events=[]}}$e.register({name:"help",init({value:t},e){Fn(t)||(t=[t]),e.suffix={type:"p",children:t,class:"form-help"}}});const u0=j({name:"DkPageDiy",components:{DiyCloud:n0,PreviewPhone:$m,DragForm:$e.$form()},props:ci,setup(t){const{menu:e,height:o,mask:n,locale:l}=yn(t),u=as(),i=R({active:null});to("fcx",i),to("diy",u);const a=new l0,s=is(t,"config",{}),r=t.type==="web"?nh:vh,_=t.type==="web"?lh:yh;if(t.type==="web")for(const m in fi)$e.component(m,fi[m]);else for(const m in pi)$e.component(m,pi[m]);const y=m=>{const c=["DragTool","DragBox"],v=[];return c.indexOf(m.type)>-1?m.children.length>0?(m.children.forEach(f=>{v.push(...y(f))}),v):[]:[m]},E=m=>{const c=[];return m.forEach(v=>{y(v).forEach(V=>{if(V._id){const A={id:V._id,type:V.type,name:V.config?.config?.label||"",children:[]};V.children&&V.children.length>0&&(A.children=E(V.children)),c.push(A)}})}),c},k=ue(()=>E(p.children)),C=ue(()=>{const m={};let c;for(let v=0;v<p.children.length;v++)p.children[v].children.length>0&&(c=p.children[v].children[0].type,m[c]?m[c]=m[c]+1:m[c]=1);return m}),p=me({cacheProps:{},moveRule:null,addRule:null,added:null,activeTab:"page",activeRule:null,children:R([]),menuList:e.value||_(),showBaseRule:!1,showDkSettingRule:!1,visible:{preview:!1},preview:{state:!1,rule:[],option:{}},diyCloud:{pageName:"",show:!1},dragForm:R({rule:[],api:{},option:{form:{},submitBtn:!1}}),dkSettingForm:{rule:sl(),api:{},options:{form:{labelPosition:"left",size:"small",labelWidth:"82px"},submitBtn:!1,mounted:m=>{m.activeRule=p.activeRule,m.setValue(m.options.formData||{})}}},dkPageForm:{rule:bh(),api:{},options:{formData:{},form:{labelPosition:"left",size:"small",labelWidth:"82px"},submitBtn:!1,mounted:m=>{m.setValue(m.options.formData||{})}}},propsForm:{rule:[],api:{},value:{},options:{form:{labelPosition:"left",size:"small",labelWidth:"70px"},submitBtn:!1,mounted:m=>{m.activeRule=p.activeRule,m.setValue(m.options.formData||{})}}},isDragging:!1,startValue:0,dragName:"",asideValue:0,trackMouseBound:null,stopChangeBound:null,rightAside:{style:{width:t.rightAsideWidth},hide:!1},leftAside:{style:{width:t.leftAsideWidth},hide:!1},treeAside:{style:{height:"500px",minHeight:"30px",maxHeight:"30px"},hide:!0,treeData:[]},leftTabsName:"component"});function S(m){return Array.isArray(m)?m.map(c=>S(c)):(typeof m=="object"&&m!==null&&Array.isArray(m.children)&&(m.children=m.children.filter(c=>typeof c=="object"&&c!==null),m.children=S(m.children)),m)}Z(()=>p.dragForm,()=>{p.treeAside.treeData=F.parseRule(jt(p.dragForm.api.rule[0].children),!0),p.treeAside.treeData=S(p.treeAside.treeData)},{deep:!0}),Z(()=>p.preview.state,function(m){m||Oe(()=>{p.preview.rule=p.preview.option=null})});let x=null;const F={clear(m="all"){(m==="all"||m==="rule")&&F.setRule([]),(m==="all"||m==="page")&&F.setPageConfig({})},get(){return{rule:F.getRule(),config:F.getPageConfig()}},set(m){if(!m)return;const c=m.config?m.config:{};F.setPageConfig(c),F.setRule(m.rule)},unWatchActiveRule(){x&&x(),x=null},watchActiveRule(){F.unWatchActiveRule(),x=Z(()=>p.activeRule,function(m){m&&F.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren(m){return me({children:m}).children},addMenu(m){if(!m.name||!m.list)return;let c=!0;p.menuList.forEach((v,f)=>{v.name===m.name&&(p.menuList[f]=m,c=!1)}),c&&p.menuList.push(m)},removeMenu(m){[...p.menuList].forEach((c,v)=>{c.name===m&&p.menuList.splice(v,1)})},setMenuItem(m,c){p.menuList.forEach(v=>{v.name===m&&(v.list=c)})},appendMenuItem(m,c){p.menuList.forEach(v=>{v.name===m&&v.list.push(...Array.isArray(c)?c:[c])})},removeMenuItem(m){p.menuList.forEach(c=>{let v;We.String(m)?[...c.list].forEach((f,V)=>{f.name===m&&c.list.splice(V,1)}):(v=c.list.indexOf(m))>-1&&c.list.splice(v,1)})},addComponent(m){Array.isArray(m)?m.forEach(c=>{r[c.name]=c}):r[m.name]=m},getParent(m){let c=m.__fc__.parent.rule;const v=c.config;return v&&v.config.inside&&(m=c,c=c.__fc__.parent.rule),{root:c,parent:m}},makeDrag(m,c,v,f){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:m===!0?"default":m,ghostClass:"ghost",animation:150,emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:c},children:v,on:f}},makeDragRule(m){return F.makeChildren([F.makeDrag(!0,"draggable",m,{add:(c,v)=>F.dragAdd(m,v),end:(c,v)=>F.dragEnd(m,v),start:(c,v)=>F.dragStart(m,v),unchoose:(c,v)=>F.dragUnchoose(m,v)})])},previewFc(){p.preview.state=!0,p.preview.rule=F.getRule(),p.preview.option=F.getOption()},getPageConfig(){return p.dkPageForm.options.formData},setPageConfig(m){(!m||Fn(m))&&(m={}),p.dkPageForm.api.coverValue(m)},showDiyCloud(m){console.log("123");const c=F.get();p.diyCloud.pageName=m,p.diyCloud.show=!0,p.diyCloud.diy_data=c},downCloudConfig(m){F.set(m),p.diyCloud.show=!1},getRule(){return F.parseRule(jt(p.dragForm.api.rule[0].children))},getJson(){return $e.toJson(F.getRule())},setRule(m){m||(m=[]),p.children=F.makeChildren(F.loadRule(We.String(m)?$e.parseJson(m):jt(m))),F.clearActiveRule(),p.dragForm.rule=F.makeDragRule(p.children)},clearActiveRule(){p.activeRule=null,p.activeTab="page"},loadRule(m){const c=[];return m.forEach(v=>{if(We.String(v))return c.push(v);const f=r[v._fc_drag_tag]||r[v.type],V=v.children;if(v.children=[],v.control&&(v._control=v.control,delete v.control),f){if(v=F.makeRule(f,v),V){let A=v.children[0].children;f.drag&&(A=A[0].children),A.push(...F.loadRule(V))}}else V&&(v.children=F.loadRule(V));c.push(v)}),c},parseRule(m,c=!1){return[...m].reduce((v,f)=>We.String(f)?(v.push(f),v):f.type==="DragBox"?(v.push(...F.parseRule(f.children,c)),v):f.type==="DragTool"&&(f=f.children[0],f.type==="DragBox")?(v.push(...F.parseRule(f.children,c)),v):(f&&(f={...f},f.children&&f.children.length&&(f.children=F.parseRule(f.children,c)),delete f.key,delete f.component,c||(delete f._id,f.config&&delete f.config.config),f.effect&&(delete f.effect._fc,delete f.effect._fc_tool),f._control&&(f.control=f._control,delete f._control),Object.keys(f).filter(V=>Array.isArray(f[V])&&f[V].length===0||We.Object(f[V])&&Object.keys(f[V]).length===0).forEach(V=>{delete f[V]}),v.push(f)),v),[])},baseChange(m,c,v,f){p.activeRule&&f[p.activeRule._id]===p.activeRule&&(F.unWatchActiveRule(),p.activeRule[m]=c,F.watchActiveRule(),p.activeRule.config.config?.watch?.["$"+m]?.({field:m,value:c,api:f,rule:p.activeRule}))},dkSettingChange(m,c,v,f,V){p.activeRule&&f[p.activeRule._id]===p.activeRule&&(p.activeRule.setting[m]=c)},propRemoveField(m,c,v){if(p.activeRule&&v[p.activeRule._id]===p.activeRule){F.unWatchActiveRule();const f=m;if(p.dragForm.api.sync(p.activeRule),m.indexOf("formCreate")===0){if(m=m.replace("formCreate",""),!m)return;m=xa(m),m.indexOf("effect")===0&&m.indexOf(">")>-1?delete p.activeRule.effect[m.split(">")[1]]:m.indexOf("props")===0&&m.indexOf(">")>-1?delete p.activeRule.props[m.split(">")[1]]:m.indexOf("attrs")===0&&m.indexOf(">")>-1?p.activeRule.attrs[m.split(">")[1]]=value:m==="child"?delete p.activeRule.children[0]:m&&(p.activeRule[m]=void 0)}else delete p.activeRule.props[m];F.watchActiveRule(),p.activeRule.config.config?.watch?.[f]?.({field:f,value:void 0,api:v,rule:p.activeRule})}},propChange(m,c,v,f){if(p.activeRule&&f[p.activeRule._id]===p.activeRule){F.unWatchActiveRule();const V=m;if(m.indexOf("formCreate")===0){if(m=m.replace("formCreate",""),!m)return;m=xa(m),m.indexOf("effect")===0&&m.indexOf(">")>-1?p.activeRule.effect[m.split(">")[1]]=c:m.indexOf("props")===0&&m.indexOf(">")>-1?p.activeRule.props[m.split(">")[1]]=c:m.indexOf("attrs")===0&&m.indexOf(">")>-1?p.activeRule.attrs[m.split(">")[1]]=c:m==="child"?p.activeRule.children[0]=c:p.activeRule[m]=c}else p.activeRule.props[m]=c;F.watchActiveRule(),p.activeRule.config.config?.watch?.[V]?.({field:V,value:c,api:f,rule:p.activeRule})}},dkPageChange(m,c,v,f,V){p.dkPageForm.options.formData[m]=c},nodeClick(m){F.chooseRule(m._id)},delRule(m,c=null){c=c||p.children,c.forEach(v=>{if(v._id===m){if(v.config.config.inside)v.__fc__.rm(),u.emit("delete",v);else{const f=F.getParent(v);u.emit("delete",f.root.children[0]),f.root.__fc__.rm()}F.clearActiveRule()}else v.children&&v.children.length>0&&F.delRule(m,v.children)})},chooseRule(m,c=null){c=c||p.children,c.forEach(v=>{if(v._id===m)if(u.emit("active",v),F.toolActive(v),v.config.config.inside)i.value.active=v.children[0]?.props.unique||null;else{const f=F.getParent(v);i.value.active=f.root?.props?.unique||null}else v.children&&v.children.length>0&&F.chooseRule(m,v.children)})},toolActive(m){F.unWatchActiveRule(),p.activeRule&&(delete p.propsForm.api[p.activeRule._id],delete p.dragForm.api.activeRule),p.activeRule=m,p.dragForm.api.activeRule=m,Oe(()=>{p.activeTab="props",Oe(()=>{p.propsForm.api[p.activeRule._id]=p.activeRule,p.dkSettingForm.api[p.activeRule._id]=p.activeRule})}),p.cacheProps[m._id]||(p.cacheProps[m._id]=m.config.config.props(m)),p.propsForm.rule=p.cacheProps[m._id],F.updateRuleFormData(),F.watchActiveRule(),F.updateShowStyle(m)},updateShowStyle(m){if(p.showDkSettingRule=m.showStyle,p.showDkSettingRule)if(p.dkSettingForm.rule=sl(m),Object.values(m.setting).length>0)p.dkSettingForm.options.formData=m.setting;else{const c={};sl(m).forEach(v=>{c[v.field]=v.value}),p.dkSettingForm.options.formData=c}},updateRuleFormData(){const m=p.activeRule,c={...m.props,formCreateChild:jt(m.children[0])};Object.keys(m).forEach(v=>{["effect","config","payload","id","type"].indexOf(v)<0&&(c["formCreate"+ai(v)]=jt(m[v]))}),["props","effect","attrs"].forEach(v=>{m[v]&&Object.keys(m[v]).forEach(f=>{c["formCreate"+ai(v)+">"+f]=jt(m[v][f])})}),p.propsForm.value=c,p.showBaseRule=vm(m,"field")&&m.input!==!1&&(!s.value||s.value.showBaseForm!==!1),p.showBaseRule&&p.dragForm.api.refreshValidate()},dragStart(m){p.moveRule=m,p.added=!1},dragUnchoose(m,c){p.addRule={children:m,oldIndex:c.oldIndex}},dragAdd(m,c){const v=c.newIndex,f=c.item._underlying_vm_;if(!f||f.__fc__){if(p.addRule){const V=p.addRule.children.splice(p.addRule.oldIndex,1);m.splice(v,0,V[0])}}else{const V=F.makeRule(r[f.name]),A=V.children[0].config.config,$=A.count?A.count:99;if((C.value[A.name]?C.value[A.name]:0)>=$)return Zl({title:"\u8B66\u544A",message:"\u5F53\u524D\u6A21\u5757\u53EA\u80FD\u6DFB\u52A0"+A.count+"\u4E2A",type:"warning"}),!1;m.splice(v,0,V)}p.added=!0},dragEnd(m,{newIndex:c,oldIndex:v}){if(!p.added&&!(p.moveRule===m&&c===v)){const f=p.moveRule.splice(v,1);m.splice(c,0,f[0])}p.moveRule=null,p.addRule=null,p.added=!1},makeRule(m,c){const v=c||m.rule();v.config={config:m},m.component&&(v.component=eu(m.component)),v.effect||(v.effect={}),v.effect._fc=!0,v._fc_drag_tag=m.name,v.setting=v.setting||{};let f;if(m.drag&&v.children.push(f=F.makeDrag(m.drag,v.type,F.makeChildren([]),{end:(A,$)=>F.dragEnd(A.self.children,$),add:(A,$)=>F.dragAdd(A.self.children,$),start:(A,$)=>F.dragStart(A.self.children,$),unchoose:(A,$)=>F.dragUnchoose(A.self.children,$)})),m.children&&!c)for(let A=0;A<(m.childrenLen||1);A++){const $=F.makeRule(r[m.children]);(f||v).children.push($)}const V=n.value!==void 0?n.value!==!1:m.mask!==!1;return m.inside?(v.children=F.makeChildren([{type:"DragTool",props:{dragBtn:m.dragBtn!==!1,children:m.children,mask:V,setting:v.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:A})=>{const $=F.getParent(A).parent;$.__fc__.rm(),u.emit("delete",$),F.clearActiveRule()},create:({self:A})=>{const $=F.getParent(A);u.emit("create",$.parent),$.root.children.splice($.root.children.indexOf($.parent)+1,0,F.makeRule($.parent.config.config))},addChild:({self:A})=>{const $=F.getParent(A),T=$.parent.config.config,M=r[T.children];M&&(T.drag?$.parent.children[0]:$.parent).children[0].children.push(F.makeRule(M))},copy:({self:A})=>{const $=F.getParent(A);u.emit("copy",$.parent),$.root.children.splice($.root.children.indexOf($.parent)+1,0,$e.copyRule($.parent))},active:({self:A})=>{const $=F.getParent(A);u.emit("active",$.parent),F.toolActive($.parent)}},children:v.children}]),v):{type:"DragTool",props:{dragBtn:m.dragBtn!==!1,children:m.children,mask:V,setting:v.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:A})=>{u.emit("delete",A.children[0]),A.__fc__.rm(),F.clearActiveRule()},create:({self:A})=>{u.emit("create",A.children[0]);const $=F.getParent(A);$.root.children.splice($.root.children.indexOf($.parent)+1,0,F.makeRule(A.children[0].config.config))},addChild:({self:A})=>{const $=A.children[0].config.config,T=r[$.children];T&&($.drag?A.children[0]:A).children[0].children.push(F.makeRule(T))},copy:({self:A})=>{u.emit("copy",A.children[0]);const $=F.getParent(A),T=$e.copyRule($.parent);T.props.setting=T.children[0].setting,$.root.children.splice($.root.children.indexOf($.parent)+1,0,T)},active:({self:A})=>{u.emit("active",A.children[0]),F.toolActive(A.children[0])}},children:F.makeChildren([v])}},onResizerMouseDown(m,c){p.isDragging=!0,p.startValue=c.clientX,p.dragName=m,m==="left"&&(p.asideValue=document.getElementsByClassName("_fc-l")[0].offsetWidth),m==="right"&&(p.asideValue=document.getElementsByClassName("_fc-r")[0].offsetWidth),document.body.style.cursor="ew-resize",m==="tree"&&(p.startValue=c.clientY,p.asideValue=document.getElementsByClassName("children-list")[0].offsetHeight,console.log("data.startValue",p.startValue),console.log("data.asideValue",p.asideValue),document.body.style.cursor="n-resize"),p.trackMouseBound=F.onResizerMouseMove.bind(c),p.stopChangeBound=F.onResizerMouseUp.bind(c),document.addEventListener("mousemove",p.trackMouseBound),document.addEventListener("mouseup",p.stopChangeBound)},onResizerMouseUp(){document.removeEventListener("mousemove",p.trackMouseBound),document.removeEventListener("mouseup",p.stopChangeBound),document.body.style.cursor="default",p.isDragging=!1,p.dragName=""},onResizerMouseMove(m){if(p.isDragging){if(p.dragName==="left"){let c=m.clientX-p.startValue+p.asideValue;c>455&&(c=455),c<200&&(c=200),p.leftAside.style.width=c+"px"}if(p.dragName==="right"){let c=p.startValue-m.clientX+p.asideValue;c>800&&(c=800),c<300&&(c=300),p.rightAside.style.width=c+"px"}if(p.dragName==="tree"){let c=p.startValue-m.clientY+p.asideValue;c>800&&(c=800),c<30&&(c=30),p.treeAside.style.height=c+"px"}}},hideAside(m){if(m==="left")p.leftAside.hide?(p.leftAside.hide=!1,delete p.leftAside.style.minWidth,delete p.leftAside.style.maxWidth):(p.leftAside.hide=!0,p.leftAside.style.minWidth="0px",p.leftAside.style.maxWidth="0px");else if(m==="right")p.rightAside.hide?(p.rightAside.hide=!1,delete p.rightAside.style.minWidth,delete p.rightAside.style.maxWidth):(p.rightAside.hide=!0,p.rightAside.style.minWidth="0px",p.rightAside.style.maxWidth="0px");else if(m==="tree")if(p.treeAside.hide){p.treeAside.hide=!1;const c=p.treeAside.style.height;p.treeAside.style={height:c}}else p.treeAside.hide=!0,p.treeAside.style.minHeight="30px",p.treeAside.style.maxHeight="30px"},allowDrop(m,c,v){const f=m.data.config.config,V=c.data.config.config;return!!(v==="inner"&&f.inside&&f.name===V.children||v!=="inner"&&f.name===V.name&&f.inside&&V.inside||v!=="inner"&&!f.inside&&!V.inside||v==="inner"&&!f.inside&&V.inside)},allowDrag(m){if(console.log("allowDrag",m),m.data.type==="DragTool")return!0},nodeDrop(m,c,v,f){F.setRule(p.treeAside.treeData)}};return p.dragForm.rule=F.makeDragRule(F.makeChildren(p.children)),{...yn(p),...F,countObj:C,diyTree:k,eventData:a}},created(){document.body.ondrop=t=>{t.preventDefault(),t.stopPropagation()}}}),a0={class:"_fc-l-groups"},i0={class:"_fc-l-title"},r0={class:"_fc-l-icon"},s0={class:"_fc-l-name"},d0={key:0,class:"_fc-l-count",style:{}},c0={class:"children-list"},p0={key:0,class:"_fc-tree-node"};function f0(t,e,o,n,l,u){const i=b("dk-icon"),a=b("draggable"),s=b("el-tab-pane"),r=b("el-tree"),_=b("el-tabs"),y=b("el-aside"),E=b("el-header"),k=b("DragForm"),C=b("preview-phone"),p=b("el-container"),S=b("el-dialog"),x=b("diy-cloud"),F=b("dk-dialog"),m=ht("loading");return h(),I(p,{class:"_fc-designer dk-page-diy"},{default:g(()=>[B(" \u5DE6\u8FB9"),d(y,{class:"_fc-l item-box",style:G(t.leftAside.style)},{default:g(()=>[d(_,{modelValue:t.leftTabsName,"onUpdate:modelValue":e[0]||(e[0]=c=>t.leftTabsName=c)},{default:g(()=>[d(s,{label:"\u7EC4\u4EF6\u5217\u8868",name:"component"},{default:g(()=>[D("div",a0,[(h(!0),w(W,null,te(t.menuList,(c,v)=>(h(),w("div",{key:v,class:"_fc-l-group"},[D("h4",i0,Q(c.title),1),d(a,{group:{name:"default",pull:"clone",put:!1},sort:!1,list:c.list,"item-key":"icon",filter:".not-drag",class:"_fc-l-items"},{item:g(({element:f})=>[(h(),w("div",{key:f.id,class:ae(["_fc-l-item",f.count-(t.countObj[f.name]||0)<=0?"not-drag":""])},[D("div",r0,[d(i,{icon:f.icon,size:24},null,8,["icon"])]),D("span",s0,Q(f.label),1),f.count?(h(),w("span",d0,Q(f.count-(t.countObj[f.name]||0)),1)):B("v-if",!0)],2))]),_:2},1032,["list"])]))),128))])]),_:1}),d(s,{label:"\u7ED3\u6784\u5927\u7EB2",name:"tree"},{default:g(()=>[D("div",c0,[d(r,{draggable:"","highlight-current":"",data:t.treeAside.treeData,props:{value:"type",label:"type"},"allow-drop":t.allowDrop,"default-expand-all":!0,onNodeDrop:t.nodeDrop,onNodeClick:t.nodeClick},{default:g(({data:c})=>[D("div",{class:"el-tree-node-content",style:G(t.activeRule&&t.activeRule._id===c._id?"color:#409eff":"")},[c.config?.config.label?(h(),w("div",p0,[d(i,{icon:c.config?.config.icon,class:"_fc-tree-icon"},null,8,["icon"]),N(" "+Q(c.config?.config.label),1)])):B("v-if",!0),d(i,{icon:"Close",class:"close-rule",onClick:mt(v=>t.delRule(c._id),["stop"])},null,8,["onClick"])],4)]),_:1},8,["data","allow-drop","onNodeDrop","onNodeClick"])])]),_:1})]),_:1},8,["modelValue"]),t.leftAside.hide?B("v-if",!0):(h(),w("div",{key:0,class:"aside-resizer",onMousedown:e[1]||(e[1]=c=>t.onResizerMouseDown("left",c)),onMouseup:e[2]||(e[2]=c=>t.onResizerMouseUp("left")),onMousemove:e[3]||(e[3]=c=>t.onResizerMouseMove("left"))},null,32)),D("div",{class:"aside-toggle left-99%",style:G(t.leftAside.hide?"display:block":""),onClick:e[4]||(e[4]=c=>t.hideAside("left"))},[d(i,{icon:t.leftAside.hide?"ArrowRight":"ArrowLeft"},null,8,["icon"])],4)]),_:1},8,["style"]),B(" \u5DE6\u8FB9\u7ED3\u675F"),B(" \u9884\u89C8\u533A"),d(p,{class:"_fc-m"},{default:g(()=>[d(E,{class:"_fc-m-tools",height:"45"},{default:g(()=>[Ee(t.$slots,"default")]),_:3}),d(C,{"page-config":t.dkPageForm.options.formData},{default:g(()=>[_e(d(k,{api:t.dragForm.api,"onUpdate:api":e[5]||(e[5]=c=>t.dragForm.api=c),rule:t.dragForm.rule,option:t.dragForm.option},null,8,["api","rule","option"]),[[m,t.loading]])]),_:1},8,["page-config"])]),_:3}),B(" \u9884\u89C8\u533A\u7ED3\u675F"),B(" \u53F3\u8FB9\u64CD\u4F5C\u533A"),d(y,{class:"_fc-r",style:G(t.rightAside.style)},{default:g(()=>[_e(d(_,{modelValue:t.activeTab,"onUpdate:modelValue":e[9]||(e[9]=c=>t.activeTab=c)},{default:g(()=>[t.activeRule?(h(),I(s,{key:t.activeRule?"props_"+t.activeRule._id6:"",label:"\u7EC4\u4EF6\u8BBE\u7F6E",name:"props"},{default:g(()=>[d(k,{api:t.propsForm.api,"onUpdate:api":e[6]||(e[6]=c=>t.propsForm.api=c),rule:t.propsForm.rule,option:t.propsForm.options,"model-value":t.propsForm.value,onChange:t.propChange,onRemoveField:t.propRemoveField},null,8,["api","rule","option","model-value","onChange","onRemoveField"])]),_:1})):B("v-if",!0),t.activeRule?(h(),I(s,{key:t.activeRule?"style_"+t.activeRule._id:"",label:"\u6837\u5F0F\u8BBE\u7F6E",name:"style"},{default:g(()=>[_e(d(k,{api:t.dkSettingForm.api,"onUpdate:api":e[7]||(e[7]=c=>t.dkSettingForm.api=c),rule:t.dkSettingForm.rule,option:t.dkSettingForm.options,"model-value":t.dkSettingForm.value,onChange:t.dkSettingChange},null,8,["api","rule","option","model-value","onChange"]),[[eo,t.showDkSettingRule]])]),_:1})):B("v-if",!0),d(s,{label:"\u9875\u9762\u914D\u7F6E",name:"page"},{default:g(()=>[d(k,{api:t.dkPageForm.api,"onUpdate:api":e[8]||(e[8]=c=>t.dkPageForm.api=c),rule:t.dkPageForm.rule,option:t.dkPageForm.options,onChange:t.dkPageChange},null,8,["api","rule","option","onChange"])]),_:1})]),_:1},8,["modelValue"]),[[eo,!t.rightAside.hide]]),t.rightAside.hide?B("v-if",!0):(h(),w("div",{key:0,class:"aside-resizer left-0",onMousedown:e[10]||(e[10]=c=>t.onResizerMouseDown("right",c)),onMouseup:e[11]||(e[11]=c=>t.onResizerMouseUp("right")),onMousemove:e[12]||(e[12]=c=>t.onResizerMouseMove("right"))},null,32)),D("div",{class:"aside-toggle right-99%",style:G(t.rightAside.hide?"display:block":""),onClick:e[13]||(e[13]=c=>t.hideAside("right"))},[d(i,{icon:t.rightAside.hide?"ArrowLeft":"ArrowRight"},null,8,["icon"])],4)]),_:1},8,["style"]),B(" \u53F3\u8FB9\u64CD\u4F5C\u533A\u7ED3\u675F"),d(S,{visible:t.preview.state,"onUpdate:visible":e[14]||(e[14]=c=>t.preview.state=c),width:"375px","append-to-body":"",style:{"min-height":"700px"}},{default:g(()=>[B(" <form-create"),B(' v-if="preview.state"'),B(' :rule="preview.rule"'),B(' :option="preview.option"'),B(" />")]),_:1},8,["visible"]),d(F,{modelValue:t.diyCloud.show,"onUpdate:modelValue":e[15]||(e[15]=c=>t.diyCloud.show=c),width:"1200px","append-to-body":"",title:"DIY\u6A21\u677F\u5E02\u573A",top:"10vh"},{default:g(()=>[t.diyCloud.show?(h(),I(x,{key:0,"page-name":t.diyCloud.pageName,"diy-data":t.diyCloud.diy_data,onSubmit:t.downCloudConfig},null,8,["page-name","diy-data","onSubmit"])):B("v-if",!0)]),_:1},8,["modelValue"])]),_:3})}var Oo=Y(u0,[["render",f0],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\page-diy.vue"]]);let m0=1;const h0=j({name:"DragTool",props:{dragBtn:{default:!1,type:Boolean},children:{default:"",type:String},unique:{default:"",type:String},mask:{default:!1,type:Boolean},setting:{default:()=>{},type:[Object]}},setup(t){const{unique:e}=yn(t),o=ue(()=>e.value||m0++),n=ut("fcx"),l=ut("previewSetting");return{id:o,state:n,previewSetting:l}},computed:{pageConfig(){return{}},_style(){let t={...this.setting.style,...this.setting.animation};return this.setting.is_position&&(t=Object.assign(t,{...this.setting.position,position:"absolute"})),t},_animate(){return this.setting.animation_preview!==!1&&this.setting.animate&&!this.previewSetting.closeAnimate?"animate__"+this.setting.animate:""}},beforeUnmount(){this.state={}},methods:{active(){this.state.active!==this.id&&(this.state.active=this.id,this.$emit("active"))}}}),g0={key:0,class:"drag-mask"},v0={class:"drag-r"};function y0(t,e,o,n,l,u){const i=b("dk-icon");return h(),w("div",{class:ae(["drag-tool animate__animated",[{active:t.state.active===t.id},t._animate]]),style:G(t._style),onClick:e[4]||(e[4]=mt((...a)=>t.active&&t.active(...a),["stop"]))},[t.mask?(h(),w("div",g0)):B("v-if",!0),D("div",v0,[D("div",{class:"drag-btn",title:"\u6DFB\u52A0\u5F53\u524D\u7EC4\u4EF6",onClick:e[0]||(e[0]=a=>t.$emit("create"))},[d(i,{icon:"CirclePlus"})]),D("div",{class:"drag-btn",title:"\u590D\u5236\u5F53\u524D\u7EC4\u4EF6",onClick:e[1]||(e[1]=a=>t.$emit("copy"))},[d(i,{icon:"CopyDocument"})]),t.children?(h(),w("div",{key:0,class:"drag-btn",title:"\u6DFB\u52A0\u5B50\u7EC4\u4EF6",onClick:e[2]||(e[2]=a=>t.$emit("addChild"))},[d(i,{icon:"fluent:tab-add-20-regular"})])):B("v-if",!0),D("div",{class:"drag-btn drag-btn-danger",title:"\u5220\u9664\u7EC4\u4EF6",onClick:e[3]||(e[3]=a=>t.$emit("delete"))},[d(i,{icon:"Close"})])]),Ee(t.$slots,"default")],6)}var _0=Y(h0,[["render",y0],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragTool.vue"]]);const b0=j({name:"DragBox",props:["rule","tag","formCreateInject"],render(t){const e={...t.$props.rule.props,...t.$attrs};let o=t.tag+"-drag drag-box";Object.keys(t.$slots).length||(o+=" "+t.tag+"-holder"),e.class=o,e.modelValue=[...this.$props.formCreateInject.children];const n={};return t.$slots.default&&t.$slots.default().forEach(u=>{u.key&&(n[u.key]=u)}),tu(lu,e,{item:({element:l})=>tu("div",{class:"drag-box-item"},n[l.__fc__.key+"fc"])})}});var E0=Y(b0,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragBox.vue"]]);const k0=j({name:"DkEventCreateInput"});var F0=j({...k0,props:{modelValue:{default:"",type:String},placeholder:{default:"",type:String}},emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,n=R(o.modelValue||"");Z(()=>o.modelValue,i=>{n.value=i}),Z(()=>n.value,i=>{e("change",i),e("update:modelValue",i),e("input",i)});const l=i=>{i=i||32;const a="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",s=a.length;let r="";for(let _=0;_<i;_++)r+=a.charAt(Math.floor(Math.random()*s));return r},u=()=>{n.value=l(6)};return(i,a)=>{const s=b("el-button"),r=b("el-input");return h(),w("div",null,[d(r,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=_=>n.value=_),placeholder:t.placeholder,clearable:""},{append:g(()=>[d(s,{onClick:u},{default:g(()=>[N("\u968F\u673A")]),_:1})]),_:1},8,["modelValue","placeholder"])])}}}),w0=Y(F0,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventCreateInput.vue"]]);const D0={name:"DkEventSelectInput",inject:["diy"],props:{modelValue:{default:"",type:String},placeholder:{default:"",type:String}},emits:["update:modelValue"],data(){return{data:"",loading:!1,eventData:[]}},computed:{EventData(){return this.diy.proxy.eventData},children(){return this.diy.proxy.children}},watch:{data(){this.$emit("update:modelValue",this.data)}},mounted(){this.data=this.modelValue||"",this.updateEvent()},methods:{updateEvent(){this.loading=!0,this.EventData.removeAllEvent(),this.onUpdateEvent(),this.loading=!1},onClick(){this.data=this.randomString(10)},randomString(t){t=t||32;const e="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",o=e.length;let n="";for(let l=0;l<t;l++)n+=e.charAt(Math.floor(Math.random()*o));return n},onUpdateEvent(){for(let t=0;t<this.children.length;t++)if(this.children[t].children.length>0){const e=this.children[t].children[0],o=e.props,n=e.config.config,l=n.props();this.findDkEventCreateInput(l,o).forEach(u=>{const i={id:e._id,label:u.props?.label||n.label,value:o[u.field]};i.value&&i.id&&i.label&&this.EventData.addEvent(i)})}this.eventData=this.EventData.getAllEvents()},findDkEventCreateInput(t,e){const o=[];return t.forEach(n=>{n.children&&o.push(...this.findDkEventCreateInput(n.children)),n.control&&Array.isArray(n.control)&&n.control.forEach(l=>{l.rule.length>0&&o.push(...this.findDkEventCreateInput(l.rule))}),n.type==="DkEventCreateInput"&&o.push(n)}),o}}},C0={style:{display:"flex"}},A0={style:{float:"left"}},x0={style:{float:"right","font-size":"13px",color:"#8492a6"}};function B0(t,e,o,n,l,u){const i=b("el-option"),a=b("el-select"),s=b("el-button");return h(),w("div",C0,[d(a,{modelValue:l.data,"onUpdate:modelValue":e[0]||(e[0]=r=>l.data=r),placeholder:"\u8BF7\u9009\u62E9\u8981\u89E6\u53D1\u4E8B\u4EF6",style:{width:"100%"},"allow-create":"",filterable:""},{default:g(()=>[(h(!0),w(W,null,te(l.eventData,r=>(h(),I(i,{key:r.value,label:r.label+"\uFF08"+r.value+"\uFF09",value:r.value},{default:g(()=>[D("span",A0,Q(r.label),1),D("span",x0,Q(r.value),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),d(s,{loading:l.loading,onClick:u.updateEvent},{default:g(()=>[N("\u5237\u65B0")]),_:1},8,["loading","onClick"])])}var mi=Y(D0,[["render",B0],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventSelectInput.vue"]]);const S0=["data-x","data-y","onClick","onMouseenter"],V0=["onClick"],$0={key:0},T0={class:"cube-selected-text"},I0={key:1},R0=["src"],O0={key:0},z0=j({name:"DkCubeImageInput"});var j0=j({...z0,props:{modelValue:{default:()=>({}),type:Object},imageStyle:{default:()=>({}),type:Object}},emits:["input","update:modelValue"],setup(t,{emit:e}){const o=t,n=R(null),{width:l}=gt(n),u=me({density:4}),i=ue(()=>{const f=l.value/u.density;return{width:f+"px",height:f+"px"}}),a=R(null),s=R(null),r=R([]),_=ue(()=>({density:u.density,selectedCubes:r.value})),y=()=>{r.value=[],a.value=null};Z(()=>_,()=>{console.log("emitData",_.value),e("update:modelValue",_.value)},{deep:!0}),Z(()=>o.modelValue,()=>{u.density=o.modelValue.density,r.value=o.modelValue.selectedCubes}),Se(()=>{u.density=o.modelValue.density||4,r.value=o.modelValue.selectedCubes||[]});const E=(f,V)=>{if(r.value.some(z=>{const ee=Math.min(z.start.x,z.end.x),oe=Math.max(z.start.x,z.end.x),H=Math.min(z.start.y,z.end.y),le=Math.max(z.start.y,z.end.y);return f>=ee&&f<=oe&&V>=H&&V<=le})||!a.value||!s.value)return!1;const $=Math.min(a.value.x,s.value.x),T=Math.max(a.value.x,s.value.x),M=Math.min(a.value.y,s.value.y),U=Math.max(a.value.y,s.value.y);return r.value.some(z=>{const ee=Math.min(z.start.x,z.end.x),oe=Math.max(z.start.x,z.end.x),H=Math.min(z.start.y,z.end.y),le=Math.max(z.start.y,z.end.y);return!(T<ee||$>oe||U<H||M>le)})?!1:f>=$&&f<=T&&V>=M&&V<=U},k=ue(()=>l.value/u.density),C=f=>{const V=Math.min(f.start.x,f.end.x)-1,A=Math.max(f.start.x,f.end.x),$=Math.min(f.start.y,f.end.y)-1,T=Math.max(f.start.y,f.end.y);return{width:`${(A-V)*k.value}px`,height:`${(T-$)*k.value}px`,top:`${$*k.value}px`,left:`${V*k.value}px`}},p=750,S=f=>{const V=Math.min(f.start.x,f.end.x),A=Math.max(f.start.x,f.end.x),$=Math.min(f.start.y,f.end.y),T=Math.max(f.start.y,f.end.y),M=p/u.density,U=(A-V+1)*M,O=(T-$+1)*M;return`${Math.round(U)} x ${Math.round(O)} \u50CF\u7D20`},x=R(-1),F=f=>{x.value=f},m=f=>{x.value=-1,r.value.splice(f,1)},c=(f,V)=>{a.value==null?a.value={x:f,y:V}:E(f,V)&&(r.value.push({start:a.value,end:{x:f,y:V},path:"",clickType:"path"}),a.value=null,x.value=r.value.length-1)},v=(f,V)=>{s.value={x:f,y:V}};return(f,V)=>{const A=b("el-option"),$=b("el-select"),T=b("el-form-item"),M=b("dk-icon"),U=b("dk-image-input"),O=b("el-radio"),z=b("el-radio-group"),ee=b("dk-url-input"),oe=b("el-form");return h(),w("div",null,[d(oe,{model:u,"label-width":"auto",style:{"max-width":"400px"},"label-position":"left"},{default:g(()=>[d(T,{label:"\u9B54\u65B9\u5BC6\u5EA6"},{default:g(()=>[d($,{modelValue:u.density,"onUpdate:modelValue":V[0]||(V[0]=H=>u.density=H),onChange:V[1]||(V[1]=H=>y())},{default:g(()=>[d(A,{label:"4x4",value:4}),d(A,{label:"5x5",value:5}),d(A,{label:"6x6",value:6})]),_:1},8,["modelValue"])]),_:1}),d(T,{style:{margin:"10px 0"}},{default:g(()=>[D("div",{ref_key:"designCube",ref:n,class:"design-cube"},[(h(!0),w(W,null,te(u.density,H=>(h(),w("ul",{key:H,class:"cube-col"},[(h(!0),w(W,null,te(u.density,le=>(h(),w("li",{key:le,class:ae([{"item-selected":a.value?.x===H&&a.value?.y===le,"item-selecting":E(H,le)},"cube-item"]),"data-x":H,"data-y":le,style:G(i.value),onClick:de=>c(H,le),onMouseenter:de=>v(H,le)}," + ",46,S0))),128))]))),128)),B(" \u5DF2\u9009\u4E2D\u533A\u57DF\u7684\u8986\u76D6\u5C42 "),(h(!0),w(W,null,te(r.value,(H,le)=>(h(),w("div",{key:le,class:ae(["selected-area",{"selected-area-choose":x.value===le}]),style:G(C(H)),onClick:de=>F(le)},[d(M,{icon:"Close",class:"cube-close",onClick:de=>m(le)},null,8,["onClick"]),H.image?(h(),w("div",I0,[D("img",{src:H.image,alt:""},null,8,R0)])):(h(),w("div",$0,[D("div",T0,Q(S(H)),1)]))],14,V0))),128))],512)]),_:1}),r.value[x.value]?(h(),w("div",O0,[d(T,{label:"\u9009\u62E9\u56FE\u7247"},{default:g(()=>[d(U,{modelValue:r.value[x.value].image,"onUpdate:modelValue":V[2]||(V[2]=H=>r.value[x.value].image=H)},null,8,["modelValue"])]),_:1}),d(T,{label:"\u70B9\u51FB\u6548\u679C",style:{padding:"10px 0"}},{default:g(()=>[d(z,{modelValue:r.value[x.value].clickType,"onUpdate:modelValue":V[3]||(V[3]=H=>r.value[x.value].clickType=H)},{default:g(()=>[d(O,{value:"path"},{default:g(()=>[N("\u8DF3\u8F6C\u9875\u9762")]),_:1}),d(O,{value:"event"},{default:g(()=>[N("\u89E6\u53D1\u4E8B\u4EF6")]),_:1})]),_:1},8,["modelValue"])]),_:1}),r.value[x.value].clickType==="path"?(h(),I(T,{key:0,label:"\u5730\u5740",style:{padding:"10px 0"}},{default:g(()=>[d(ee,{modelValue:r.value[x.value].path,"onUpdate:modelValue":V[4]||(V[4]=H=>r.value[x.value].path=H)},null,8,["modelValue"])]),_:1})):B("v-if",!0),r.value[x.value].clickType==="event"?(h(),I(T,{key:1,label:"\u4E8B\u4EF6"},{default:g(()=>[d(mi,{modelValue:r.value[x.value].event,"onUpdate:modelValue":V[5]||(V[5]=H=>r.value[x.value].event=H)},null,8,["modelValue"])]),_:1})):B("v-if",!0)])):B("v-if",!0)]),_:1},8,["model"])])}}}),P0=Y(j0,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkCubeImageInput.vue"]]);const M0=(t,e)=>{$e.component(t,e),ii.component(t,e)};$e.component("DragTool",_0),$e.component("DragBox",E0),$e.component("DkEventCreateInput",w0),$e.component("DkEventSelectInput",mi),$e.component("DkCubeImageInput",P0),$e.register("_fc",{init(t,e){e._id=ri(),t.value&&(e.effect._fc=!1)}}),$e.register("_fc_tool",{init(t,e){e.props.unique=ri()}}),Oo.formCreate=ii,Oo.designerForm=$e,Oo.component=M0;const hi=fe(Oo),gi={tableApi:{default:"",type:String},cacheTable:{default:!0,type:Boolean},tableBefore:{default:()=>({}),type:Object},tableAfter:{default:()=>({}),type:Object},buttons:{default:()=>["refresh","add","export_csv","edit","delete","comSearch","quickSearch","columnDisplay","recycle"],type:Array},hideButtons:{default:()=>[],type:Array},query:{default:()=>({}),type:Object},quickSearchPlaceholder:{default:"\u5FEB\u6377\u641C\u7D22",type:String}};/**!
6
+ */(function(t,e){(function(n,l){t.exports=l()})(Ws,function(){return function(){var o={686:function(u,i,a){a.d(i,{default:function(){return ye}});var s=a(279),r=a.n(s),_=a(370),y=a.n(_),E=a(817),k=a.n(E);function C(L){try{return document.execCommand(L)}catch{return!1}}var p=function(X){var K=k()(X);return C("cut"),K},S=p;function x(L){var X=document.documentElement.getAttribute("dir")==="rtl",K=document.createElement("textarea");K.style.fontSize="12pt",K.style.border="0",K.style.padding="0",K.style.margin="0",K.style.position="absolute",K.style[X?"right":"left"]="-9999px";var ne=window.pageYOffset||document.documentElement.scrollTop;return K.style.top="".concat(ne,"px"),K.setAttribute("readonly",""),K.value=L,K}var F=function(X,K){var ne=x(X);K.container.appendChild(ne);var ie=k()(ne);return C("copy"),ne.remove(),ie},m=function(X){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ne="";return typeof X=="string"?ne=F(X,K):X instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(X?.type)?ne=F(X.value,K):(ne=k()(X),C("copy")),ne},c=m;function v(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(K){return typeof K}:v=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},v(L)}var f=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},K=X.action,ne=K===void 0?"copy":K,ie=X.container,pe=X.target,Ae=X.text;if(ne!=="copy"&&ne!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(pe!==void 0)if(pe&&v(pe)==="object"&&pe.nodeType===1){if(ne==="copy"&&pe.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ne==="cut"&&(pe.hasAttribute("readonly")||pe.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ae)return c(Ae,{container:ie});if(pe)return ne==="cut"?S(pe):c(pe,{container:ie})},V=f;function A(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(K){return typeof K}:A=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},A(L)}function $(L,X){if(!(L instanceof X))throw new TypeError("Cannot call a class as a function")}function T(L,X){for(var K=0;K<X.length;K++){var ne=X[K];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(L,ne.key,ne)}}function M(L,X,K){return X&&T(L.prototype,X),K&&T(L,K),L}function U(L,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(X&&X.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),X&&O(L,X)}function O(L,X){return O=Object.setPrototypeOf||function(ne,ie){return ne.__proto__=ie,ne},O(L,X)}function z(L){var X=H();return function(){var ne=le(L),ie;if(X){var pe=le(this).constructor;ie=Reflect.construct(ne,arguments,pe)}else ie=ne.apply(this,arguments);return ee(this,ie)}}function ee(L,X){return X&&(A(X)==="object"||typeof X=="function")?X:oe(L)}function oe(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function le(L){return le=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)},le(L)}function de(L,X){var K="data-clipboard-".concat(L);if(X.hasAttribute(K))return X.getAttribute(K)}var q=function(L){U(K,L);var X=z(K);function K(ne,ie){var pe;return $(this,K),pe=X.call(this),pe.resolveOptions(ie),pe.listenClick(ne),pe}return M(K,[{key:"resolveOptions",value:function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ie.action=="function"?ie.action:this.defaultAction,this.target=typeof ie.target=="function"?ie.target:this.defaultTarget,this.text=typeof ie.text=="function"?ie.text:this.defaultText,this.container=A(ie.container)==="object"?ie.container:document.body}},{key:"listenClick",value:function(ie){var pe=this;this.listener=y()(ie,"click",function(Ae){return pe.onClick(Ae)})}},{key:"onClick",value:function(ie){var pe=ie.delegateTarget||ie.currentTarget,Ae=this.action(pe)||"copy",pt=V({action:Ae,container:this.container,target:this.target(pe),text:this.text(pe)});this.emit(pt?"success":"error",{action:Ae,text:pt,trigger:pe,clearSelection:function(){pe&&pe.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ie){return de("action",ie)}},{key:"defaultTarget",value:function(ie){var pe=de("target",ie);if(pe)return document.querySelector(pe)}},{key:"defaultText",value:function(ie){return de("text",ie)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ie){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return c(ie,pe)}},{key:"cut",value:function(ie){return S(ie)}},{key:"isSupported",value:function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],pe=typeof ie=="string"?[ie]:ie,Ae=!!document.queryCommandSupported;return pe.forEach(function(pt){Ae=Ae&&!!document.queryCommandSupported(pt)}),Ae}}]),K}(r()),ye=q},828:function(u){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}function s(r,_){for(;r&&r.nodeType!==i;){if(typeof r.matches=="function"&&r.matches(_))return r;r=r.parentNode}}u.exports=s},438:function(u,i,a){var s=a(828);function r(E,k,C,p,S){var x=y.apply(this,arguments);return E.addEventListener(C,x,S),{destroy:function(){E.removeEventListener(C,x,S)}}}function _(E,k,C,p,S){return typeof E.addEventListener=="function"?r.apply(null,arguments):typeof C=="function"?r.bind(null,document).apply(null,arguments):(typeof E=="string"&&(E=document.querySelectorAll(E)),Array.prototype.map.call(E,function(x){return r(x,k,C,p,S)}))}function y(E,k,C,p){return function(S){S.delegateTarget=s(S.target,k),S.delegateTarget&&p.call(E,S)}}u.exports=_},879:function(u,i){i.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},i.nodeList=function(a){var s=Object.prototype.toString.call(a);return a!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in a&&(a.length===0||i.node(a[0]))},i.string=function(a){return typeof a=="string"||a instanceof String},i.fn=function(a){var s=Object.prototype.toString.call(a);return s==="[object Function]"}},370:function(u,i,a){var s=a(879),r=a(438);function _(C,p,S){if(!C&&!p&&!S)throw new Error("Missing required arguments");if(!s.string(p))throw new TypeError("Second argument must be a String");if(!s.fn(S))throw new TypeError("Third argument must be a Function");if(s.node(C))return y(C,p,S);if(s.nodeList(C))return E(C,p,S);if(s.string(C))return k(C,p,S);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function y(C,p,S){return C.addEventListener(p,S),{destroy:function(){C.removeEventListener(p,S)}}}function E(C,p,S){return Array.prototype.forEach.call(C,function(x){x.addEventListener(p,S)}),{destroy:function(){Array.prototype.forEach.call(C,function(x){x.removeEventListener(p,S)})}}}function k(C,p,S){return r(document.body,C,p,S)}u.exports=_},817:function(u){function i(a){var s;if(a.nodeName==="SELECT")a.focus(),s=a.value;else if(a.nodeName==="INPUT"||a.nodeName==="TEXTAREA"){var r=a.hasAttribute("readonly");r||a.setAttribute("readonly",""),a.select(),a.setSelectionRange(0,a.value.length),r||a.removeAttribute("readonly"),s=a.value}else{a.hasAttribute("contenteditable")&&a.focus();var _=window.getSelection(),y=document.createRange();y.selectNodeContents(a),_.removeAllRanges(),_.addRange(y),s=_.toString()}return s}u.exports=i},279:function(u){function i(){}i.prototype={on:function(a,s,r){var _=this.e||(this.e={});return(_[a]||(_[a]=[])).push({fn:s,ctx:r}),this},once:function(a,s,r){var _=this;function y(){_.off(a,y),s.apply(r,arguments)}return y._=s,this.on(a,y,r)},emit:function(a){var s=[].slice.call(arguments,1),r=((this.e||(this.e={}))[a]||[]).slice(),_=0,y=r.length;for(_;_<y;_++)r[_].fn.apply(r[_].ctx,s);return this},off:function(a,s){var r=this.e||(this.e={}),_=r[a],y=[];if(_&&s)for(var E=0,k=_.length;E<k;E++)_[E].fn!==s&&_[E].fn._!==s&&y.push(_[E]);return y.length?r[a]=y:delete r[a],this}},u.exports=i,u.exports.TinyEmitter=i}},n={};function l(u){if(n[u])return n[u].exports;var i=n[u]={exports:{}};return o[u](i,i.exports,l),i.exports}return function(){l.n=function(u){var i=u&&u.__esModule?function(){return u.default}:function(){return u};return l.d(i,{a:i}),i}}(),function(){l.d=function(u,i){for(var a in i)l.o(i,a)&&!l.o(u,a)&&Object.defineProperty(u,a,{enumerable:!0,get:i[a]})}}(),function(){l.o=function(u,i){return Object.prototype.hasOwnProperty.call(u,i)}}(),l(686)}().default})})(bu);var Ys=bu.exports,Gs=qs(Ys);function Xs(){return new Promise(t=>{t("")})}function Js(){return new Promise((t,e)=>{e()})}async function Ks(t,e){const o=new Gs(e.target,{text:()=>t});try{return o.on("success",async()=>{await Xs(),o.destroy()}),o.on("error",async()=>{await Js(),o.destroy()}),o.onClick(e),Promise.resolve()}catch(n){return Promise.reject(n)}}const Eu={type:At(""),test:{default:"\u6D4B\u8BD5\u6D4B\u8BD5",type:String}},Qs={class:"mr-10px bg-black"},Zs=j({name:"DkTest"});var ed=j({...Zs,props:Eu,emits:["onChooseUrl"],setup(t,{emit:e}){ze("test");const o=()=>{e("onChooseUrl","\u9009\u4E2D\u7684\u94FE\u63A5\u5730\u5740")};return(n,l)=>{const u=b("el-button"),i=b("van-button");return h(),w(W,null,[d(u,{class:"dk-test"},{default:g(()=>[N("el\u6309\u94AE")]),_:1}),d(i,null,{default:g(()=>[N("van\u6309\u94AE")]),_:1}),d(u,{onClick:o},{default:g(()=>[N("\u9009\u62E9\u94FE\u63A5")]),_:1}),D("div",Qs,Q(n.test),1)],64)}}}),Y=(t,e)=>{const o=t.__vccOpts||t;for(const[n,l]of e)o[n]=l;return o},td=Y(ed,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\test\\src\\test.vue"]]);const ku=fe(td);function od(t,e){return{}.hasOwnProperty.call(t,e)}function no(t,e,o){t[e]=o}function xn(t){return Bn({},{value:t},void 0).value}function Bn(t,e={},o=!1){let n=!1;for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){let u=e[l];if((n=Array.isArray(u))||mu(u)){const i=t[l]===void 0;if(n)n=!1,i&&no(t,l,[]);else if(u._clone&&o)if(o)u=u.getRule(),i&&no(t,l,{});else{no(t,l,u._clone());continue}else i&&no(t,l,{});t[l]=Bn(t[l],u,o)}else no(t,l,u),kn(u)||(kn(u.__json)||(t[l].__json=u.__json),kn(u.__origin)||(t[l].__origin=u.__origin))}return o!==void 0&&Array.isArray(t)?t.filter(l=>!l||!l.__ctrl):t}function nd(t,e,o){t[e]=o}const ld=Object.assign||function(t){for(let e=1;e<arguments.length;e++){const o=arguments[e];for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&nd(t,n,o[n])}return t};function ud(...t){return ld.apply(this,t)}const Fu={field:{type:String,default:""},titleField:{type:String,default:""},rule:{type:Array,default:()=>[]},expand:{type:Number,default:0},options:{type:Object,default:()=>{}},button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},modelValue:{type:Array,default:()=>[]},defaultValue:{type:Object,default:()=>{}},sortBtn:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},syncDisabled:{type:Boolean,default:!0},onBeforeRemove:{type:Function,default:()=>{}},onBeforeAdd:{type:Function,default:()=>{}},formCreateInject:{type:Object,default:()=>{}},parse:{type:Function,default:()=>{}},title:{default:"",type:String},accordion:{type:Boolean,default:!0}},ad={key:1},id={class:"collapse-title"},rd={class:"_dk-group-handle"},sd=j({name:"DkGroup"});var dd=j({...sd,props:Fu,emits:["update:modelValue","change","itemMounted","remove","add"],setup(t,{emit:e}){const o=t,n=me({len:0,cacheRule:{},cacheValue:{},sort:[],form:eu(o.formCreateInject.form.$form()),loading:!0}),l=me({modelValue:[0],accordion:o.accordion}),u=n.form;Z(()=>o.rule,(v,f)=>{Object.keys(n.cacheRule).forEach(V=>{const A=n.cacheRule[V];if(A.$f){const $=A.$f.formData();if(v===f)A.$f.deferSyncValue(()=>{Bn(A.rule,v,!1),A.$f.setValue($)},!0);else{const T=A.$f.formData();A.$f.once("reloading",()=>{A.$f.setValue(T)}),A.rule=xn(v)}}})},{deep:!0}),Z(()=>o.disabled,v=>{if(o.syncDisabled){const f=n.cacheRule;Object.keys(f).forEach(V=>{f[V].$f.disabled(v)})}}),Z(()=>o.expand,v=>{const f=v-o.modelValue.length;f>0&&m(f)}),Z(()=>o.modelValue,v=>{v=v||[];const f=Object.keys(n.cacheRule),V=f.length,A=V-v.length;if(A<0){for(let $=A;$<0;$++)C(v.length-1,!0);for(let $=0;$<V;$++)k(f[$],v[$])}else{if(A>0)for(let $=0;$<A;$++)console.log("keys[total - i - 1]",f[V-$-1]),p(f[V-$-1]);v.forEach(($,T)=>{k(f[T],v[T])})}},{deep:!0}),Z(()=>({...n.cacheRule}),v=>{n.sort=Object.keys(v)},{immediate:!0});const i=v=>o.field?{[o.field]:s(o.modelValue[v])}:o.modelValue[v],a=v=>{if(n.cacheRule[v]){const{rule:f}=n.cacheRule[v],V=o.titleField?o.titleField:f[0]?.field;return n.cacheRule[v].$f?.getValue(V)||"\u70B9\u51FB\u5C55\u5F00"}else return"\u70B9\u51FB\u5C55\u5F00"},s=v=>v&&od(v,o.field)?v[o.field]:v,r=(v,f)=>{n.cacheValue[v]=JSON.stringify(f)},_=v=>{e("update:modelValue",v),e("change",v)},y=(v,f)=>{Oe(()=>{const A=Object.keys(n.cacheRule).map($=>{const T=v===$?f:{...n.cacheRule[$].$f.form},M=o.field?T[o.field]||null:T;return r($,M),M});_(A)})},E=(v,f)=>{n.cacheRule[v].$f=f,Oe(()=>{o.syncDisabled&&f.disabled(o.disabled),e("itemMounted",f,Object.keys(n.cacheRule).indexOf(v))})};Se(()=>{n.loading=!1});const k=(v,f)=>{const V=o.field;V&&(f={[V]:s(f)}),n.cacheValue[v]!==JSON.stringify(V?f[V]:f)&&r(v,f)},C=(v,f=!1)=>{const V=o.formCreateInject.form.copyRules(o.rule||[]),A=o.options?{...o.options}:{submitBtn:!1,resetBtn:!1};if(o.defaultValue){A.formData||(A.formData={});const $=xn(o.defaultValue);ud(A.formData,o.field?{[o.field]:$}:$)}o.parse&&o.parse({rule:V,options:A,index:n.sort.length}),n.cacheRule[v]={rule:V,options:A},f&&Oe(()=>e("add",V,Object.keys(n.cacheRule).length-1))},p=(v,f=!1)=>{delete n.cacheRule[v],delete n.cacheValue[v],f&&Oe(()=>e("remove",v))},S=()=>{if(o.disabled||o.onBeforeAdd(o.modelValue)===!1)return;const v=[...o.modelValue];v.push(o.defaultValue?xn(o.defaultValue):o.field?null:{}),_(v),l.modelValue=[v.length-1]},x=(v,f)=>{if(o.disabled||o.onBeforeRemove(o.modelValue,v)===!1)return;const V=[...o.modelValue];V.splice(v,1),_(V)},F=(v,f,V)=>{e(v,...f,n.cacheRule[V].$f,V)},m=v=>{for(let f=0;f<v;f++)o.modelValue.push(o.field?null:{})},c=(o.expand||0)-o.modelValue.length;for(let v=0;v<o.modelValue.length;v++)C(v);return c>0&&m(c),(v,f)=>{const V=b("el-divider"),A=b("el-button"),$=b("dk-icon"),T=b("el-button-group"),M=b("el-collapse-item"),U=b("draggable");return h(),w("div",{class:ae("dk-group _fc-group "+(v.disabled?"_fc-group-disabled":""))},[o.title?(h(),I(V,{key:0},{default:g(()=>[N(Q(o.title),1)]),_:1})):B("v-if",!0),n.sort.length===0?(h(),w("div",ad,[(h(),I(A,{key:"a_def",style:{width:"100%"},type:"primary",onClick:S},{default:g(()=>[N(" \u6DFB\u52A0\u6570\u636E ")]),_:1}))])):B("v-if",!0),d(U,{tag:"el-collapse",list:o.modelValue,"component-data":l,"item-key":"id",handle:".collapse-title-rank"},{item:g(({element:O,index:z})=>[d(M,{title:O.title,name:z},{title:g(()=>[D("div",id,[d($,{icon:"Rank",class:"collapse-title-rank"}),D("span",null,Q(a(z)),1)])]),default:g(()=>[(h(),w("div",{key:z,class:"_dk-group-container"},[(h(),I(P(u),{key:z,"in-for":!0,"model-value":i(z),rule:n.cacheRule[z].rule,option:n.cacheRule[z].options,"extend-option":!0,"onUpdate:modelValue":ee=>y(z,ee),onEmitEvent:(ee,...oe)=>F(ee,oe,z),"onUpdate:api":ee=>E(z,ee)},null,8,["model-value","rule","option","onUpdate:modelValue","onEmitEvent","onUpdate:api"])),D("div",rd,[d(T,null,{default:g(()=>[d(A,{icon:"Plus",plain:"",onClick:S},{default:g(()=>[N("\u589E\u52A0")]),_:1}),d(A,{icon:"Delete",plain:"",onClick:ee=>x(z)},{default:g(()=>[N("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)])]))]),_:2},1032,["title","name"])]),_:1},8,["list","component-data"])],2)}}}),cd=Y(dd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\group\\src\\group.vue"]]);const wu=fe(cd),pd={language:"zh-Hans",branding:!1,skin:"oxide",icons:"jam",promotion:!1,plugins:"showImage preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media codesample table pagebreak nonbreaking anchor insertdatetime advlist lists wordcount quickbars emoticons imageSize",editimage_cors_hosts:["picsum.photos"],menubar:"file edit view insert format tools table help",toolbar:"showImage bold italic underline strikethrough fontfamily fontsize blocks alignleft aligncenter alignright alignjustify numlist bullist forecolor backcolor removeformat image media link emoticons code preview fullscreen |",toolbar_sticky:!1,height:400,quickbars_selection_toolbar:"bold italic | quicklink h2 h3 blockquote showImage",quickbars_insert_toolbar:"",quickbars_image_toolbar:"imageSize100 imageSize50 imageSize20 imageDel",toolbar_mode:"",convert_urls:!1};var fd=pd;function md(t,e,o=1,n,l){return l.group_id=n,l.type=o,be({method:"post",url:"/adminapi/attachment/list",data:{page:t,size:e,search:l}})}function hd(t,e=1,o=0){const n=new FormData;return n.append("file",t),n.append("type",e.toString()),n.append("file","file"),n.append("group_id",o.toString()),be({method:"post",url:"/adminapi/attachment/upload",data:n})}function gd(t){return be({method:"post",url:"/adminapi/attachment/delete",data:{ids:t}},{code_success_show:!0})}function vd(t,e){return be({method:"post",url:"/adminapi/attachment/move",data:{ids:t,group_id:e}})}function yd(t){return be({method:"get",url:"/adminapi/attachment/group",params:{type:t}},{code_error_show:!0})}function _d(t){return be({method:"delete",url:"/adminapi/attachment/group/"+t},{code_error_show:!0})}const Du={disabled:{type:Boolean,default:!1},modelValue:{type:String,default:""},height:{type:Number,default:400},document:{type:Boolean,default:!1},buttonText:{type:String,default:"\u7F16\u8F91\u5BCC\u6587\u672C"},showDialogWidth:{type:Number,default:300}},bd={key:0},Ed={key:1},kd={class:"text-center"},Fd=j({name:"DkTinyEditor"});var wd=j({...Fd,props:Du,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,n=R(null),{width:l}=gt(n),u=R(o.modelValue),i=R(!1),a=(x,F)=>new Promise((m,c)=>{hd(x.blob()).then(v=>{F(100),m(v.data.url)}).catch(v=>{c(v)})}),s=R("vue-tinymce-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")),r=R({selector:"#"+s.value,...fd,height:o.height,content_css:o.document?"document":"",images_upload_handler:a,initialContent:"Loading editor..."}),_=R("https://cdn-1251560393.cos.ap-chengdu.myqcloud.com/lib/tinymce/tinymce.min.js"),y=R(),E=R(),k=ue(()=>l.value>=o.showDialogWidth);Z(()=>o.modelValue,x=>{u.value=x}),Z(()=>u.value,x=>{e("update:modelValue",x),e("input",x),e("change",x)}),Se(()=>{Oe(()=>{C()})}),Z(()=>E.value,()=>{E.value?.getEditor()&&E.value.getEditor().on("showImage",()=>{y.value.open()})});const C=()=>{E.value?.getEditor()?E.value.getEditor().on("showImage",()=>{y.value.open()}):setTimeout(()=>{C()},1e3)},p=x=>{const F=E.value.getEditor();let m="";x.forEach(c=>{m+='<img src="'+c.url+'" alt="" width="100%">'}),F.insertContent(m)},S=x=>{console.log(x)};return(x,F)=>{const m=b("el-button"),c=b("dk-dialog"),v=b("dk-attachment-dialog");return h(),w("div",{ref_key:"el",ref:n,class:"dk-tiny-editor"},[k.value?(h(),w("div",bd,[d(P(uu),{ref_key:"editorRef",ref:E,modelValue:u.value,"onUpdate:modelValue":F[0]||(F[0]=f=>u.value=f),init:r.value,"tinymce-script-src":_.value,onDblclick:S},null,8,["modelValue","init","tinymce-script-src"])])):(h(),w("div",Ed,[d(m,{type:"primary",plain:"",style:{width:"100%"},onClick:F[1]||(F[1]=f=>i.value=!0)},{default:g(()=>[N(Q(o.buttonText),1)]),_:1}),d(c,{modelValue:i.value,"onUpdate:modelValue":F[4]||(F[4]=f=>i.value=f),title:"\u7F16\u8F91",width:"900px","z-index":1298},{footer:g(()=>[D("div",kd,[d(m,{type:"primary",style:{width:"200px"},onClick:F[3]||(F[3]=f=>i.value=!1)},{default:g(()=>[N("\u786E\u5B9A")]),_:1})])]),default:g(()=>[d(P(uu),{ref_key:"editorRef",ref:E,modelValue:u.value,"onUpdate:modelValue":F[2]||(F[2]=f=>u.value=f),init:r.value,"tinymce-script-src":_.value,onDblclick:S},null,8,["modelValue","init","tinymce-script-src"])]),_:1},8,["modelValue"])])),d(v,{ref_key:"attachmentRef",ref:y,type:1,onConfirm:p},null,512)],512)}}}),Dd=Y(wd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\tiny-editor\\src\\tiny-editor.vue"]]);const Cu=fe(Dd),Au={icon:{default:"",type:String},color:String,size:Number,hoverColor:String,showEl:{default:!0,type:Boolean},showVant:{default:!0,type:Boolean}},Cd=j({name:"DkIcon"});var Ad=j({...Cd,props:Au,setup(t){const e=t,[o,n]=ze("icon"),l=Object.keys(au).map(a=>a),u=ue(()=>{const{color:a,size:s,hoverColor:r}=e,_={};return a&&(_.color=a),s&&(_.fontSize=`${s}px`),r&&(_["--hover-color"]=r),_}),i=ue(()=>{let a="cloud";return l.includes(e.icon)&&e.showEl&&(a="el"),e.showVant&&(To.basic.includes(e.icon)&&(a="vant"),To.outline.includes(e.icon)&&(a="vant"),To.filled.includes(e.icon)&&(a="vant")),a});return(a,s)=>{const r=b("van-icon"),_=b("el-icon");return h(),I(_,{class:ae(P(n)()),style:G(u.value)},{default:g(()=>[Ee(a.$slots,"default",{},()=>[i.value==="cloud"?(h(),I(P(ms),{key:0,icon:e.icon},null,8,["icon"])):B("v-if",!0),i.value==="el"?(h(),I(ft(e.icon),{key:1})):B("v-if",!0),i.value==="vant"?(h(),I(r,{key:2,class:ae(P(n)()),name:e.icon,style:G(u.value)},null,8,["class","name","style"])):B("v-if",!0)])]),_:3},8,["class","style"])}}}),xd=Y(Ad,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon\\src\\icon.vue"]]);const xu=fe(xd),Bu={modelValue:At(""),showAlpha:{default:!1,type:Boolean},placeholder:At(""),colorFormat:At("hex"),teleported:{default:!0,type:Boolean}},Bd={style:{display:"flex"},class:"dk-color-input"},Sd=j({name:"DkColorInput"});var Vd=j({...Sd,props:Bu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t;ze("color-input");const n=R(o.modelValue||"");return Z(()=>o.modelValue,l=>{n.value=l}),Z(()=>n.value,l=>{e("change",l),e("update:modelValue",l),e("input",l)}),(l,u)=>{const i=b("el-color-picker"),a=b("el-input");return h(),w("div",Bd,[d(i,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=s=>n.value=s),teleported:l.teleported,"show-alpha":l.showAlpha,"color-format":l.colorFormat},null,8,["modelValue","teleported","show-alpha","color-format"]),d(a,{modelValue:n.value,"onUpdate:modelValue":u[1]||(u[1]=s=>n.value=s),placeholder:l.placeholder,clearable:"",style:{width:"100%"}},null,8,["modelValue","placeholder"])])}}}),$d=Y(Vd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\color-input\\src\\color-input.vue"]]);const Su=fe($d),Vu={modelValue:{type:Object,default:()=>({})}},Td={class:"hot-area-content"},Id={class:"hot-area-draggable"},Rd={class:"hot-item-content",style:{position:"relative",width:"100%",height:"100%",background:"#0003"}},Od={key:1,style:{width:"500px",height:"500px"}},zd={class:"hot-area-form"},jd=D("h3",{style:{"margin-top":"0","font-size":"16px","font-weight":"500"}},"\u70ED\u533A\u7BA1\u7406",-1),Pd={style:{display:"flex","justify-content":"space-between",width:"100%"}},Md=j({name:"HotAreaContent"});var Nd=j({...Md,props:{hotDataValue:{default:()=>({views:[],width:400,height:400,background:null}),type:Object}},setup(t){const e=t,o=R(0),n=me(e.hotDataValue),l=()=>{Array.isArray(n.views)||(n.views=[]),n.views.push({css:{left:0,top:0,width:80,height:80,borderRadius:0,borderColor:"#fff"},url:""})},u=_=>{_>=0&&_<n.views.length&&n.views.splice(_,1)},i=_=>{const y=n.views[o.value].css;y.left=_.x,y.top=_.y},a=_=>{const y=n.views[o.value].css;y.left=_.x,y.top=_.y,y.width=_.w,y.height=_.h};Se(()=>{s()}),Z(()=>n?.background,()=>{s()});const s=()=>{n.background&&r(n.background).then(_=>{n.width=500,n.height=_.height*500/_.width,setTimeout(()=>{},200)}).catch(()=>{})},r=_=>new Promise(function(y,E){const k=new Image;k.onload=function(){y({width:k.width,height:k.height})},k.onerror=function(){E(new Error("error"))},k.src=_});return(_,y)=>{const E=b("vue3-draggable-resizable"),k=b("el-empty"),C=b("dk-image-input"),p=b("el-form-item"),S=b("dk-url-input"),x=b("dk-icon"),F=b("el-button"),m=b("el-form");return h(),w("div",Td,[D("div",Id,[n.background?(h(),w("div",{key:0,style:G([{width:n.width+"px",height:n.height+"px",backgroundImage:"url("+n.background+")"},{"background-size":"100% 100%"}]),onContextmenu:y[0]||(y[0]=mt(()=>{},["prevent"]))},[(h(!0),w(W,null,te(n.views,(c,v)=>(h(),I(E,{key:v,ref_for:!0,ref:"draggables",h:c.css.height,"onUpdate:h":f=>c.css.height=f,x:c.css.left,"onUpdate:x":f=>c.css.left=f,y:c.css.top,"onUpdate:y":f=>c.css.top=f,w:c.css.width,"onUpdate:w":f=>c.css.width=f,"init-w":c.css.width,"init-h":c.css.height,parent:!0,style:{cursor:"move"},"min-width":20,"min-height":20,onResizing:a,onDragging:i,onMousedown:f=>o.value=v},{default:g(()=>[D("div",Rd,Q(v+1),1)]),_:2},1032,["h","onUpdate:h","x","onUpdate:x","y","onUpdate:y","w","onUpdate:w","init-w","init-h","onMousedown"]))),128))],36)):(h(),w("div",Od,[d(k,{description:"\u8BF7\u4E0A\u4F20\u56FE\u7247"})]))]),D("div",zd,[jd,d(m,{"label-width":"80px","label-position":"left"},{default:g(()=>[d(p,{label:"\u80CC\u666F\u56FE "},{default:g(()=>[d(C,{modelValue:n.background,"onUpdate:modelValue":y[1]||(y[1]=c=>n.background=c)},null,8,["modelValue"])]),_:1}),(h(!0),w(W,null,te(n.views,(c,v)=>(h(),I(p,{key:v,label:"\u70ED\u533A\u5730\u5740"+(v+1)},{default:g(()=>[D("div",Pd,[d(S,{modelValue:n.views[v].url,"onUpdate:modelValue":f=>n.views[v].url=f,placeholder:"\u586B\u5199\u8DF3\u8F6C\u5730\u5740",style:{width:"100%","margin-right":"5px"}},null,8,["modelValue","onUpdate:modelValue"]),d(F,{type:"danger",plain:"",onClick:f=>u(v)},{default:g(()=>[d(x,{icon:"Delete"})]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128))]),_:1}),d(F,{disabled:!n.background,type:"primary",onClick:y[2]||(y[2]=c=>l())},{default:g(()=>[N(Q(n.background?"\u6DFB\u52A0\u70ED\u533A":"\u8BF7\u5148\u4E0A\u4F20\u56FE\u7247"),1)]),_:1},8,["disabled"])])])}}}),Ud=Y(Nd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\component\\hot-area-content.vue"]]);const Ld={class:"dk-hot-area-input"},Hd={class:"text-center"},Wd=j({name:"DkHotAreaInput"});var qd=j({...Wd,props:Vu,setup(t){const o=me(t.modelValue),n=R(!1);return(l,u)=>{const i=b("el-button"),a=b("dk-dialog");return h(),w("div",Ld,[d(i,{type:"primary",onClick:u[0]||(u[0]=s=>n.value=!0)},{default:g(()=>[N("\u8BBE\u7F6E\u70ED\u533A")]),_:1}),d(a,{modelValue:n.value,"onUpdate:modelValue":u[2]||(u[2]=s=>n.value=s),width:"1000px",title:"\u8BBE\u7F6E\u70ED\u533A"},{footer:g(()=>[D("div",Hd,[d(i,{size:"default",style:{width:"200px"},type:"primary",onClick:u[1]||(u[1]=s=>n.value=!1)},{default:g(()=>[N("\u786E\u5B9A")]),_:1})])]),default:g(()=>[d(Ud,{"hot-data-value":o},null,8,["hot-data-value"])]),_:1},8,["modelValue"])])}}}),Yd=Y(qd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\hot-area-input.vue"]]);const $u=fe(Yd),Gd={modelValue:{type:Boolean,default:!1},title:At(""),fullscreen:{type:Boolean,default:!1},defaultFullscreen:{type:Boolean,default:!1},maxHeight:{type:String,default:""},draggable:{type:Boolean,default:!0},zIndex:{type:Number,default:1299}},Xd={class:"flex justify-between items-center relative"},Jd={class:"flex justify-between items-center absolute top-[50%] right-0 translate-y-[-50%]"},Kd=j({name:"DkDialog"});var Qd=j({...Kd,props:Gd,setup(t){const e=t;ze("dialog");const o=os(),n=ue(()=>{const s=["fullscreen","title","maxHeight"],_={...ns(),...e};for(const y in _)s.indexOf(y)!==-1&&delete _[y];return _}),l=R(e.defaultFullscreen);Z(()=>e.defaultFullscreen,()=>{l.value=e.defaultFullscreen});const u=()=>{l.value=!P(l)},i=R(hu(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight);Z(()=>l.value,async s=>{if(await Oe(),s){const r=document.documentElement.offsetHeight;i.value=`${r-55-60-(o.footer?63:0)}px`}else i.value=hu(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight},{immediate:!0});const a=ue(()=>({maxHeight:e.maxHeight==="auto"?"auto":P(i)}));return(s,r)=>{const _=b("dk-icon"),y=b("ElScrollbar"),E=b("ElDialog");return h(),I(E,Fe(n.value,{fullscreen:l.value,"destroy-on-close":"","append-to-body":"","lock-scroll":"",draggable:e.draggable,"close-on-click-modal":!1,"show-close":!1,class:"dk-dialog","z-index":e.zIndex}),Ct({header:g(({close:k})=>[Ee(s.$slots,"header",{},()=>[D("div",Xd,[D("span",null,Q(e.title),1),D("div",Jd,[s.fullscreen?(h(),I(_,{key:0,class:"cursor-pointer is-hover mr-10px",icon:l.value?"radix-icons:exit-full-screen":"radix-icons:enter-full-screen",color:"var(--el-color-info)","hover-color":"var(--el-color-primary)",onClick:u},null,8,["icon"])):B("v-if",!0),d(_,{class:"cursor-pointer is-hover",icon:"ep:close","hover-color":"var(--el-color-primary)",color:"var(--el-color-info)",onClick:k},null,8,["onClick"])])])])]),default:g(()=>[d(y,{style:G(a.value)},{default:g(()=>[Ee(s.$slots,"default")]),_:3},8,["style"])]),_:2},[P(o).footer?{name:"footer",fn:g(()=>[Ee(s.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen","draggable","z-index"])}}}),Zd=Y(Qd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\dialog\\src\\dialog.vue"]]);const ec=fe(Zd),Tu={formData:{type:Object,default:null},isSubmit:{type:Boolean,default:!0},extraConfig:{default:()=>({}),type:Object},path:{default:"",type:String},formUrl:{default:"",type:[String,Object]},isLoading:{default:!0,type:Boolean},minHeight:{default:"100px",type:String},isDialog:{default:!1,type:Boolean},dialogWait:{default:!0,type:Boolean},dialog:{default:()=>({}),type:Object}},tc={global:{upload:{props:{onSuccess(t,e){t.status===200?e.url=t.data.src:Ie.error(t.msg)}}}},info:{icon:"el-icon-warning-outline",align:"left"},form:{inline:!1,labelPosition:"left",labelSuffix:void 0,hideRequiredAsterisk:!1,labelWidth:"125px",showMessage:!0,inlineMessage:!1,statusIcon:!1,validateOnRuleChange:!0,disabled:!1,size:"default"},submitBtn:!1,resetBtn:{type:"default",size:"default",plain:!1,round:!1,circle:!1,loading:!1,disabled:!1,icon:"el-icon-refresh",width:void 0,autofocus:!1,nativeType:"button",innerText:"\u91CD\u7F6E",show:!1,col:void 0,click:void 0}};var oc=tc;const nc={key:1},lc=j({name:"DkForm"});var uc=j({...lc,props:Tu,emits:["submit","fail","update:modelValue"],setup(t,{expose:e,emit:o}){const n=t;ze("form"),Io.register({name:"help",init({value:A},$){Fn(A)||(A=[A]),$.suffix={type:"p",children:A,class:"form-help"}}});const l=Io.$form(),u=me(oc),i=R(),a=R(!0),s=R(!1),r=R(!1),{width:_}=cs(),y=ue(()=>{const A=u;return _.value<768?(A.form.labelPosition="top",A.form.size="small"):(A.form.labelPosition="left",A.form.size="default"),{...A,...n.extraConfig}}),E=R(null),k=R(n.formData||{});Z(()=>n.formData,()=>{k.value=n.formData},{deep:!0}),Z(()=>E.value,A=>{o("update:modelValue",A||{})});const C=ue(()=>{let A="800px";const $=k.value?.config||{};if($?.width)return $?.width;n.dialog?.width&&(A=n.dialog?.width),$?.defaultWidth&&(A=$?.defaultWidth);let T=768;return A.endsWith("%")||(T=parseInt(A)),_.value<T?"100%":A}),p=ue(()=>k.value?.config?.style?k.value?.config?.style:n.dialog?.style?n.dialog?.style:{}),S=ue(()=>{let A=!1;return n.dialog?.draggable&&(A=n.dialog?.draggable),k.value?.config?.draggable!==void 0&&(A=k.value?.config?.draggable),A}),x=ue(()=>{let A=!1;const $=k.value?.config?.autoFullscreen!==!1;return n.dialog?.width&&(A=n.dialog?.fullscreen),k.value?.config?.fullscreen&&(A=k.value?.config?.fullscreen),_.value<768&&$&&(A=!0),A}),F=ue(()=>Object.assign(n.dialog,k.value?.config?.dialog)),m=A=>{E.value=null,k.value=A},c=A=>{if(A||(A=n.formUrl),n.formData)a.value=!1;else if(A){let $;mu(A)?$=A:$={url:A,method:"post"},be($).then(T=>{k.value=T.data,a.value=!1}).catch(T=>{a.value=!1})}},v=()=>{i.value.validate().then(()=>{i.value.submit(A=>{f(A)}).catch(A=>{Ie.warning(Object.values(A)[0][0].message)})}).catch(A=>{Ie.warning(Object.values(A)[0][0].message)})},f=A=>{n.isLoading&&(s.value=!0),n.isSubmit?be({url:n.path+k.value.action,method:k.value.method,data:{formData:A}}).then($=>{Ie.success($.msg),o("submit",A,$),s.value=!1}).catch($=>{Ie.error($.msg),o("fail",A,$),s.value=!1}):(o("submit",A),s.value=!1),r.value=!1},V=()=>{r.value=!0};return Se(()=>{c()}),e({showDialog:r,buttonLoading:s,fApi:i,value:E,show:V,checkForm:v,onSubmit:f,initFormData:c,setFormData:m}),(A,$)=>{const T=b("DkDialog");return n.isDialog?(h(),I(T,Fe({key:0,modelValue:r.value,"onUpdate:modelValue":$[3]||($[3]=M=>r.value=M),title:k.value?.title?k.value?.title:"\u8868\u5355",width:C.value,"default-fullscreen":x.value,"min-height":"200px"},F.value,{"max-height":"auto",draggable:S.value,"append-to-body":""}),{default:g(()=>[D("div",{style:G(p.value),class:"dk-form p10px"},[d(P(l),{modelValue:E.value,"onUpdate:modelValue":$[0]||($[0]=M=>E.value=M),option:y.value,rule:k.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":$[1]||($[1]=M=>i.value=M),"onUpdate:value":$[2]||($[2]=M=>E.value=M)},null,8,["modelValue","option","rule"]),D("div",{style:G({marginLeft:u.form.labelWidth}),class:"m-t-10px"},[Ee(A.$slots,"buttons",{},()=>[d(P(Ql),{type:"primary",loading:s.value,onClick:v},{default:g(()=>[N(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4)]),_:3},16,["modelValue","title","width","default-fullscreen","draggable"])):(h(),w("div",nc,[D("div",{style:G({minHeight:A.minHeight}),class:"dk-form"},[d(P(l),{modelValue:E.value,"onUpdate:modelValue":$[4]||($[4]=M=>E.value=M),option:y.value,rule:k.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":$[5]||($[5]=M=>i.value=M),"onUpdate:value":$[6]||($[6]=M=>E.value=M)},null,8,["modelValue","option","rule"]),D("div",{style:G({marginLeft:u.form.labelWidth}),class:"m-t-10px"},[Ee(A.$slots,"buttons",{},()=>[d(P(Ql),{type:"primary",loading:s.value,onClick:v},{default:g(()=>[N(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4),B(' <div v-else :style="{ minHeight }"></div>')]))}}}),ac=Y(uc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\form\\src\\form.vue"]]);const Iu=fe(ac),ic={xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 512 512",style:{"enable-background":"new 0 0 512 512"},"xml:space":"preserve"},rc=D("path",{fill:"#E2E5E7",d:"m129,0c-17.6,0 -32,14.4 -32,32l0,448c0,17.6 14.4,32 32,32l320,0c17.6,0 32,-14.4 32,-32l0,-352l-128,-128l-224,0z"},null,-1),sc=D("path",{fill:"#B0B7BD",d:"m384,128l96,0l-128,-128l0,96c0,17.6 14.4,32 32,32z",style:{fill:"#b0b7bd"}},null,-1),dc=D("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 ",style:{fill:"#cad1d8"}},null,-1),cc=D("path",{fill:"#CAD1D8",d:"m400,432l-304,0l0,16l304,0c8.8,0 16,-7.2 16,-16l0,-16c0,8.8 -7.2,16 -16,16z",style:{fill:"#cad1d8"}},null,-1),pc={key:0,fill:"#000000","fill-opacity":"0.18","p-id":"14722",d:"m358.678722,204.927171q-1.307107,-0.18673 -2.33412,-1.867296t-1.587202,-6.162077q-0.933648,-7.282454 -4.761605,-10.736952t-11.857329,-4.948334q-8.402832,-1.680566 -14.845003,-6.81563t-10.736952,-9.616574q-4.108051,-3.921321 -6.348806,-2.800944t-2.240755,4.108051l0,8.029373l0,17.552582q0,10.456857 -0.093365,22.594281t-0.093365,22.96774l0,19.046419l0,10.643587q0.18673,4.48151 -1.400472,9.990033t-5.975347,10.363493t-11.6706,8.309467t-18.112771,4.014686q-11.017046,0.560189 -19.886702,-3.921321t-13.724625,-11.29714t-4.761605,-14.938368t7.00236,-15.218462t14.938368,-9.896669t15.498556,-3.081038t13.351166,1.027013t8.682926,2.427485l0,-52.844475q0,-22.034092 0.18673,-49.670072q0,-5.415158 2.800944,-8.869656t7.469184,-4.014686q3.921321,-0.560189 6.442171,1.587202t5.135064,5.975347t6.442171,8.682926t10.363493,9.523209q5.601888,4.294781 9.803304,6.162077t7.842643,3.454498t7.189089,3.827957t7.842643,7.282454q4.294781,4.854969 5.228429,10.083398t0.093365,9.523209t-2.707579,7.00236t-3.174403,2.52085z"},fc={key:1,stroke:"null","p-id":"5208","fill-opacity":"0.18",fill:"#000000",d:"m296.500008,108.999985c46.11601,0 83.500008,37.383997 83.500008,83.500008s-37.383997,83.500008 -83.500008,83.500008s-83.500008,-37.383997 -83.500008,-83.500008s37.383997,-83.500008 83.500008,-83.500008zm-16.239708,45.643192a3.976166,3.976166 0 0 0 -3.976166,3.975644l0,69.520019a3.976166,3.976166 0 0 0 6.18161,3.308688l52.140536,-34.760009a3.976688,3.976688 0 0 0 0,-6.617376l-52.140536,-34.759488a3.976688,3.976688 0 0 0 -2.205444,-0.668l0,0.000522z"},mc={x:"-1",y:"0"},hc={x:"220",y:"380","text-anchor":"middle",fill:"white","font-family":"Verdana, Helvetica, Arial, sans-serif","font-size":"124"},gc=j({name:"DkFileIcon"});var vc=j({...gc,props:{type:{default:0,type:[Number,String]},fileSuffix:{default:"",type:String},fileName:{default:"",type:String},fileUrl:{default:"",type:String}},setup(t){const e=t,o=R(e.type),n=ue(()=>{let u="";if(e.fileSuffix&&(u=e.fileSuffix),e.fileName){const i=e.fileName,a=i.lastIndexOf(".");a!==-1&&(u=i.substring(a+1))}if(e.fileUrl){const i=e.fileUrl,a=i.lastIndexOf(".");a!==-1&&(u=i.substring(a+1))}return u.length>5?"\u672A\u77E5":u===""?"\u7A7A":u}),l=u=>{if(u==="PDF")return"#f44336";const i=["#0ca0ff","#16a806","#f44336","#ff374e","#ccc","#32CD32","#867aff","#9a978f","#ffd5b2","#FFAA33","#6082B6"],a=u.charCodeAt(0)%i.length;return i[a]};return(u,i)=>(h(),w("svg",ic,[D("g",null,[rc,sc,dc,D("path",{style:G({fill:l(n.value)}),d:"m416,416c0,8.8 -7.2,16 -16,16l-352,0c-8.8,0 -16,-7.2 -16,-16l0,-160c0,-8.8 7.2,-16 16,-16l352,0c8.8,0 16,7.2 16,16l0,160z"},null,4),cc,o.value===2?(h(),w("path",pc)):B("v-if",!0),o.value===3?(h(),w("path",fc)):B("v-if",!0),D("g",null,[D("text",mc,[D("tspan",hc,Q(n.value),1)])])])]))}}),zt=Y(vc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\file-icon.vue"]]);const Sn={type:{type:[Number,String],default:1},accept:{type:String,default:""}},yc={class:"dk-attachment attachment"},_c={class:"attachment-header flex justify-between pt-5px pb-5px"},bc={class:"header-form z"},Ec={class:"header-button y"},kc=D("i",{class:"el-icon-delete el-icon--right"},null,-1),Fc=D("i",{class:"el-icon-upload el-icon--right"},null,-1),wc={class:"attachment-content flex"},Dc={class:"attachment-group"},Cc={class:"group_list"},Ac=["onClick"],xc={class:"ml-10px"},Bc={class:"op"},Sc={class:"attachment-container"},Vc={key:0,class:"p2"},$c=["onClick","onContextmenu"],Tc={class:"file"},Ic=D("div",{class:"u-m-t-30"},[D("i",{class:"el-icon-loading"}),D("span",null,"\u52A0\u8F7D\u4E2D")],-1),Rc={key:1},Oc={key:2},zc={key:3},jc={class:"file-name over"},Pc={class:"right"},Mc={class:"block p-10px"},Nc={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"340px"}},Uc=j({name:"DkAttachment"});var Lc=j({...Uc,props:Sn,setup(t,{expose:e}){const o=t,n=ue(()=>Dn(o.type)),l=R(""),u=R([]),i=R([]),a=R([]),s=bn(),r=s.ApiUrl+"/adminapi/attachment/upload",_={"Access-Token":s.AccessToken},y=R(),E=me({type:n.value,file:"file",group_id:0}),k=L=>{vd(a.value,L).then(X=>{Ie.success(X.msg),de()})},C=L=>{console.log("res",L),L.code===0?(Ie.success(L.msg),de()):Ie.error(L.msg)},p=ue(()=>{let L="";if(o.accept)return o.accept;switch(n.value){case 0:break;case 1:L="image/*";break;case 2:L="audio/*";break;case 3:L="video/*";break}return L}),S=()=>{vn.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u6587\u4EF6, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}).then(()=>{try{gd(a.value).then(L=>{console.log(L),de()}).catch(L=>{console.log("deleteAttachment error",L)})}catch(L){console.log(L)}})},x=R([]),F=ue(()=>oe.value===0?{url:s.ApiUrl+"/adminapi/attachment/group/create",method:"get"}:{url:s.ApiUrl+"/adminapi/attachment/group/"+oe.value+"/edit",method:"get"}),m=R(),c=()=>{oe.value=0,m.value.show()},v=L=>{vn.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u5206\u7EC4, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{try{_d(L).then(X=>{Ie.success(X.msg),V()}).catch(()=>{})}catch(X){console.log(X)}})},f=()=>{m.value.show()},V=()=>{$(),de()},A=L=>{oe.value=L,U.value=1,de()},$=async()=>{try{const L=await yd(n.value);x.value=L.data}catch{}},T=R(!0),M=R([]),U=R(1),O=R(0),z=R(10),ee=R(0),oe=R(0),H=L=>{z.value=L,de()},le=L=>{U.value=L,de()},de=async(L={})=>{q();try{const X=await md(U.value,z.value,n.value,oe.value,L);M.value=X.data,O.value=X.msg,T.value=!1}catch{}},q=()=>{u.value=[],a.value=[],i.value=[]},ye=(L,X)=>{const K=u.value.indexOf(X);K>-1?(u.value.splice(K,1),a.value.splice(K,1),i.value.splice(K,1)):(u.value.push(X),a.value.push(L.id),i.value.push(L))};return Se(()=>{$(),de()}),e({chooseFileId:a,chooseFileKey:u,chooseFileList:i,clearChoose:q}),(L,X)=>{const K=b("el-button"),ne=b("el-input"),ie=b("el-dropdown-item"),pe=b("el-dropdown-menu"),Ae=b("el-dropdown"),pt=b("el-upload"),Ao=b("CirclePlusFilled"),wt=b("el-icon"),xo=b("dk-icon"),Bo=b("Tools"),cn=b("el-popover"),pn=b("el-image"),So=b("Check"),Vo=b("el-pagination"),fn=b("el-empty"),mn=b("dk-form"),lt=ht("loading");return h(),w("div",yc,[B(" \u9876\u90E8"),D("div",_c,[D("div",bc,[d(ne,{modelValue:l.value,"onUpdate:modelValue":X[0]||(X[0]=ge=>l.value=ge),size:"default",placeholder:"\u8BF7\u8F93\u5165\u9644\u4EF6\u540D\u79F0",class:"input-with-select"},{append:g(()=>[d(K,{icon:P(iu)},null,8,["icon"])]),_:1},8,["modelValue"])]),D("div",Ec,[d(Ae,{class:"mr",trigger:"click",onCommand:k},{dropdown:g(()=>[d(pe,null,{default:g(()=>[(h(!0),w(W,null,te(x.value,(ge,Qe)=>(h(),I(ie,{key:Qe,command:ge.id},{default:g(()=>[N(Q(ge.name),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:g(()=>[d(K,{size:"default",type:"info",disabled:u.value.length<=0},{default:g(()=>[N(" \u79FB\u52A8 ")]),_:1},8,["disabled"])]),_:1}),d(K,{size:"default",type:"danger",disabled:u.value.length<=0,onClick:S},{default:g(()=>[N("\u5220\u9664"),kc]),_:1},8,["disabled"]),d(pt,{ref_key:"upload",ref:y,class:"dk-upload-button",action:r,multiple:"",data:E,"show-file-list":!1,headers:_,"on-success":C,accept:p.value,"list-type":"text"},{default:g(()=>[d(K,{type:"primary",size:"default"},{default:g(()=>[N("\u4E0A\u4F20"),Fc]),_:1})]),_:1},8,["data","accept"])])]),B("\u5185\u90E8"),D("div",wc,[B(" \u5206\u7EC4"),D("div",Dc,[D("h5",{class:"cursor-pointer flex items-center content-center",onClick:X[1]||(X[1]=ge=>c())},[N(" \u9644\u4EF6\u5206\u7EC4 "),d(wt,{class:"m-l-5px"},{default:g(()=>[d(Ao)]),_:1})]),D("ul",Cc,[(h(!0),w(W,null,te(x.value,(ge,Qe)=>(h(),w("li",{key:Qe,class:ae({active:oe.value===ge.id}),onClick:Dt=>A(ge.id)},[ge.id===oe.value?(h(),I(xo,{key:0,icon:"flat-color-icons:opened-folder"})):(h(),I(xo,{key:1,icon:"flat-color-icons:folder"})),D("span",xc,Q(ge.name),1),d(cn,{placement:"right",trigger:"click"},{reference:g(()=>[D("div",Bc,[ge.id>0?(h(),I(wt,{key:0},{default:g(()=>[d(Bo)]),_:1})):B("v-if",!0)])]),default:g(()=>[d(K,{size:"small",type:"primary",onClick:X[2]||(X[2]=mt(Dt=>f(),["stop"]))},{default:g(()=>[N("\u7F16\u8F91 ")]),_:1}),d(K,{size:"small",type:"danger",onClick:Dt=>v(ge.id)},{default:g(()=>[N("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)],10,Ac))),128))])]),B(" \u5217\u8868"),D("div",Sc,[T.value||M.value.length>0?_e((h(),w("div",Vc,[D("ul",{class:"attachment-list cl",style:G({overflow:M.value.length>10?"auto":""})},[(h(!0),w(W,null,te(M.value,(ge,Qe)=>(h(),w("li",{key:Qe,class:ae({choose:u.value.indexOf(Qe)>-1}),onClick:Dt=>ye(ge,Qe),onContextmenu:mt(Dt=>ee.value=ge.id,["prevent"])},[D("div",Tc,[ge.type===1?(h(),I(pn,{key:0,class:"file",src:ge.url,fit:"contain"},{placeholder:g(()=>[Ic]),_:2},1032,["src"])):B("v-if",!0),ge.type===2?(h(),w("div",Rc,[d(zt,{"file-name":ge.filename,type:ge.type},null,8,["file-name","type"])])):B("v-if",!0),ge.type===3?(h(),w("div",Oc,[d(zt,{"file-name":ge.filename,type:ge.type},null,8,["file-name","type"])])):B("v-if",!0),ge.type===0?(h(),w("div",zc,[d(zt,{"file-name":ge.filename},null,8,["file-name"])])):B("v-if",!0)]),D("div",jc,Q(ge.name),1),D("div",Pc,[d(wt,null,{default:g(()=>[d(So)]),_:1})])],42,$c))),128))],4),D("div",Mc,[d(Vo,{"current-page":U.value,layout:"total, prev, pager, next, jumper,sizes",total:O.value,"page-size":z.value,onSizeChange:H,onCurrentChange:le},null,8,["current-page","total","page-size"])])])),[[lt,T.value]]):(h(),w("div",Nc,[d(fn,{description:"\u6682\u65E0\u6570\u636E"})])),(h(),I(mn,{ref_key:"groupForm",ref:m,key:oe.value,"form-url":F.value,"is-dialog":!0,onSubmit:X[3]||(X[3]=ge=>V())},null,8,["form-url"]))])])])}}}),Hc=Y(Lc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\attachment.vue"]]);const Ru=fe(Hc),Ou={...Sn,title:{type:String,default:""},zIndex:{type:Number,default:1299}},Wc={class:"text-center m2"},qc=j({name:"DkAttachmentDialog"});var Yc=j({...qc,props:Ou,emits:["confirm"],setup(t,{expose:e,emit:o}){const n=t,[l,u]=ze("attachment-dialog"),i=R(),a=R(!1),s=R(n.title||Rs(n.type)),r=R(Dn(n.type)),_=()=>{i.value.chooseFileList.length>0?(o("confirm",i.value.chooseFileList||[]),a.value=!1):Ie.warning({message:"\u8BF7\u5148\u9009\u62E9\u6587\u4EF6"})},y=()=>{a.value=!1};return e({dialogVisible:a,attachment:i,cancel:y,open:()=>{a.value=!0}}),(k,C)=>{const p=b("dk-attachment"),S=b("el-button"),x=b("DkDialog");return h(),I(x,{modelValue:a.value,"onUpdate:modelValue":C[2]||(C[2]=F=>a.value=F),class:ae(P(u)()),title:s.value,width:"1040px",fullscreen:!1,"z-index":k.zIndex},{default:g(()=>[d(p,{ref_key:"attachment",ref:i,type:r.value},null,8,["type"]),D("div",Wc,[d(S,{type:"primary",size:"default",onClick:C[0]||(C[0]=F=>_())},{default:g(()=>[N("\u786E\u5B9A")]),_:1}),d(S,{size:"default",onClick:C[1]||(C[1]=F=>y())},{default:g(()=>[N("\u5173\u95ED")]),_:1})])]),_:1},8,["modelValue","class","title","z-index"])}}}),Gc=Y(Yc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment-dialog\\src\\attachment-dialog.vue"]]);const zu=fe(Gc),ju={type:{type:[Number,String],default:0},modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Xc={class:"show m-t-5px"},Jc={class:"image-error"},Kc={class:"image-slot"},Qc={class:"no-image"},Zc=j({name:"DkFileInput"});var ep=j({...Zc,props:ju,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("file-input"),u=R(o.modelValue),i=R();Z(()=>o.modelValue,y=>{u.value=y}),Z(()=>u.value,y=>{a(y)});const a=y=>{e("update:modelValue",y),e("input",y),e("change",y)},s=()=>{u.value=""},r=()=>{i.value.open()},_=y=>{u.value=y[0].url};return(y,E)=>{const k=b("el-button"),C=b("el-input"),p=b("dk-icon"),S=b("el-image"),x=b("Picture"),F=b("el-icon"),m=b("Close"),c=b("Plus"),v=b("dk-attachment-dialog");return h(),w("div",{class:ae(P(l)())},[B("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),y.showInput?(h(),w(W,{key:0},[d(C,{modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=f=>u.value=f),placeholder:y.placeholder,clearable:""},{append:g(()=>[d(k,{onClick:r},{default:g(()=>[N("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),B("\u9009\u62E9\u7684\u662F\u56FE\u7247"),D("div",Xc,[y.type===1?(h(),I(S,{key:0,src:u.value,alt:"",fit:"contain",class:"file rd-4px","preview-src-list":[u.value]},{error:g(()=>[D("div",Jc,[d(p,{icon:"Picture"})])]),_:1},8,["src","preview-src-list"])):(h(),I(zt,{key:1,"file-url":u.value,class:"file rd-4px",type:y.type},null,8,["file-url","type"])),D("em",{onClick:E[1]||(E[1]=f=>u.value="")},[d(p,{icon:"Close"})])])],64)):(h(),w(W,{key:1},[B("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),D("div",{class:"only-img flex justify-center items-center",style:G([{position:"relative"},{width:y.imgSize+"px",height:y.imgSize+"px"}]),onClick:r},[u.value?(h(),w(W,{key:0},[B("\u56FE\u7247\u9644\u4EF6"),y.type===1?(h(),I(S,{key:0,src:u.value,alt:"",fit:"contain",style:{width:"100%",height:"100%"}},{error:g(()=>[D("div",Kc,[D("div",Qc,[d(F,null,{default:g(()=>[d(x)]),_:1})])])]),_:1},8,["src"])):B("v-if",!0),B("\u5176\u4ED6\u9644\u4EF6"),y.type!==1&&u.value?(h(),I(zt,{key:1,"file-url":u.value,class:"file rd-4px",type:y.type},null,8,["file-url","type"])):B("v-if",!0),D("div",{class:"close",onClick:E[2]||(E[2]=mt(f=>s(),["stop"]))},[d(F,null,{default:g(()=>[d(m)]),_:1})])],64)):(h(),w(W,{key:1},[B("\u6CA1\u6709\u4E0A\u4F20\u7684\u65F6\u5019"),D("div",{class:"media",style:G({lineHeight:y.imgSize+"px",fontSize:y.imgSize/2+"px"})},[d(F,null,{default:g(()=>[d(c)]),_:1})],4)],64))],4)],64)),d(v,{ref_key:"attachmentDialog",ref:i,type:y.type,onConfirm:_},null,8,["type"])],2)}}}),tp=Y(ep,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-input\\src\\file-input.vue"]]);const Pu=fe(tp),Mu={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},op=j({name:"DkImageInput"});var np=j({...op,props:Mu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("image-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),type:1,class:P(l)()}),null,16,["modelValue","class"])}}}),lp=Y(np,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-input\\src\\image-input.vue"]]);const Nu=fe(lp),Uu={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},up=j({name:"DkAudioInput"});var ap=j({...up,props:Uu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("audio-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),type:2,class:P(l)()}),null,16,["modelValue","class"])}}}),ip=Y(ap,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-input\\src\\audio-input.vue"]]);const Lu=fe(ip),Hu={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},rp=j({name:"DkVideoInput"});var sp=j({...rp,props:Hu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("video-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),type:3,class:P(l)()}),null,16,["modelValue","class"])}}}),dp=Y(sp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-input\\src\\video-input.vue"]]);const Wu=fe(dp),qu={type:{default:0,type:[Number,String]},modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},cp={class:"dk-image-list"},pp=["onClick"],fp={key:0},mp=j({name:"DkFileListInput"});var hp=j({...mp,props:qu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("file-list-input"),u=R(o.modelValue),i=ue(()=>({width:o.imgSize+"px",height:o.imgSize+"px",lineHeight:o.imgSize+"px"})),a=R(),s=()=>{a.value.open()},r=E=>{E.forEach(k=>{u.value.length<o.limit&&(u.value.push(k.url),y(u.value))})},_=E=>{u.value.splice(E,1)};Z(()=>o.modelValue,E=>{u.value=E}),Z(()=>u.value,E=>{y(E)});const y=E=>{e("update:modelValue",E),e("input",E),e("change",E)};return(E,k)=>{const C=b("el-image"),p=b("Close"),S=b("el-icon"),x=b("Plus"),F=b("dk-attachment-dialog");return h(),w("div",{class:ae(P(l)())},[D("div",cp,[D("ul",null,[(h(!0),w(W,null,te(u.value,(m,c)=>(h(),w("li",{key:c},[D("div",{class:"file",style:G(i.value)},[E.type===1?(h(),I(C,{key:0,src:m,fit:"contain",style:G(i.value)},null,8,["src","style"])):(h(),I(zt,{key:1,"file-url":m,class:"file rd-4px",type:E.type},null,8,["file-url","type"])),E.disabled?B("v-if",!0):(h(),w("div",{key:2,class:"close",onClick:v=>_(c)},[d(S,null,{default:g(()=>[d(p)]),_:1})],8,pp))],4)]))),128)),E.limit>u.value.length&&!E.disabled?(h(),w("li",fp,[D("div",{class:"chooseImage",style:G(i.value),onClick:k[0]||(k[0]=m=>s())},[d(S,null,{default:g(()=>[d(x)]),_:1})],4)])):B("v-if",!0)])]),d(F,{ref_key:"attachment",ref:a,type:E.type,onConfirm:r},null,8,["type"])],2)}}}),gp=Y(hp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-list-input\\src\\file-list-input.vue"]]);const Yu=fe(gp),Gu={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},vp=j({name:"DkImageListInput"});var yp=j({...vp,props:Gu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("image-list-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-list-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),class:P(l)(),type:1,onChange:s[1]||(s[1]=_=>i(u.value))}),null,16,["modelValue","class"])}}}),_p=Y(yp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-list-input\\src\\image-list-input.vue"]]);const Xu=fe(_p),Ju={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},bp=j({name:"DkAudioListInput"});var Ep=j({...bp,props:Ju,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("audio-list-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-list-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),class:P(l)(),type:2,onChange:s[1]||(s[1]=_=>i(u.value))}),null,16,["modelValue","class"])}}}),kp=Y(Ep,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-list-input\\src\\audio-list-input.vue"]]);const Ku=fe(kp),Qu={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},Fp=j({name:"DkVideoListInput"});var wp=j({...Fp,props:Qu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("video-list-input"),u=R(o.modelValue);Z(()=>o.modelValue,a=>{u.value=a}),Z(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,s)=>{const r=b("dk-file-list-input");return h(),I(r,Fe(a.$props,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=_=>u.value=_),class:P(l)(),type:3,onChange:s[1]||(s[1]=_=>i(u.value))}),null,16,["modelValue","class"])}}}),Dp=Y(wp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-list-input\\src\\video-list-input.vue"]]);const Zu=fe(Dp),ea={type:{default:"element",type:String},modelValue:{type:String,default:""},placeholder:{type:String,default:""},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object},preview:{default:!0,type:Boolean}},ta={icon:{default:"",type:String},type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}},oa={type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}};function Cp(t){return be({method:"post",url:"/adminapi/common/getIcons/",data:{query:t}})}const Ap={class:"dk-icon-content"},xp={key:0,class:"text-center",style:{"font-size":"12px",color:"#999"}},Bp={class:"search-icon"},Sp=j({name:"DkIconContent"});var Vp=j({...Sp,props:ta,emits:["choose"],setup(t,{expose:e,emit:o}){const n=t;hs("all");function l(m){let c=[];for(const v in m)m.hasOwnProperty(v)&&Array.isArray(m[v])&&(c=c.concat(m[v]));return c}const u=Object.keys(au).map(m=>m),i=l(To),a=R(u),s=R(i),r=gs(),_=R(r),E=R((()=>{const{el:m,vant:c,cloud:v}=n.showTab;return m?"element":c?"vant":v?"cloud":n.type})()),k=R(""),C=ue(()=>E.value==="element"?"\u641C\u7D22element-plus\u56FE\u6807":E.value==="vant"?"\u641C\u7D22vant\u56FE\u6807":"\u641C\u7D22\u4E91\u7AEF\u56FE\u6807"),p=R(""),S=m=>{p.value=m,o("choose",m)},x=()=>{if(E.value==="element"){const m=k.value.toLowerCase();console.log(m),a.value=u.filter(c=>!!(m&&c.toLowerCase().includes(m)))}else E.value==="vant"?(console.log("use"),s.value=i.filter(m=>!!(k.value&&m.toLowerCase().includes(k.value)))):Cp(k.value).then(m=>{_.value=m.data}).catch(m=>{console.log(m)})},F=()=>{k.value="",a.value=u,_.value=r,s.value=i};return e({chooseIcon:p}),(m,c)=>{const v=b("dk-icon"),f=b("el-tab-pane"),V=b("el-empty"),A=b("el-tabs"),$=b("el-button"),T=b("el-input");return h(),w("div",Ap,[d(A,{modelValue:E.value,"onUpdate:modelValue":c[0]||(c[0]=M=>E.value=M)},{default:g(()=>[n.showTab.el?(h(),I(f,{key:0,label:"element\u56FE\u6807",name:"element",class:"dk-tab-pane"},{default:g(()=>[(h(!0),w(W,null,te(a.value,(M,U)=>(h(),I(v,{key:U,size:36,color:M==p.value?"var(--el-color-primary)":"",class:ae([M==p.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",onClick:O=>S(M)},{default:g(()=>[(h(),I(ft(M)))]),_:2},1032,["color","class","onClick"]))),128))]),_:1})):B("v-if",!0),n.showTab.vant?(h(),I(f,{key:1,label:"vant\u56FE\u6807",name:"vant",class:"dk-tab-pane"},{default:g(()=>[(h(!0),w(W,null,te(s.value,(M,U)=>(h(),I(v,{key:U,size:36,color:M==p.value?"#409eff":"",class:ae([M==p.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",icon:M,onClick:O=>S(M)},null,8,["color","class","icon","onClick"]))),128))]),_:1})):B("v-if",!0),n.showTab.cloud?(h(),I(f,{key:2,label:"\u4E91\u7AEF\u56FE\u6807",name:"cloud",class:"dk-tab-pane"},{default:g(()=>[_.value.length>0?(h(),w(W,{key:0},[(h(!0),w(W,null,te(_.value,(M,U)=>(h(),I(v,{key:U,icon:M,size:36,"hover-color":"var(--el-color-primary)",color:M==p.value?"#409eff":"",class:ae([M==p.value?"choose-icon":"dk-icon","cursor-pointer"]),onClick:O=>S(M)},null,8,["icon","color","class","onClick"]))),128)),k.value?B("v-if",!0):(h(),w("p",xp,"\u5F53\u524D\u663E\u793A\u5DF2\u7F13\u5B58\u7684\u56FE\u6807"))],64)):(h(),I(V,{key:1,description:"\u6682\u65E0\u56FE\u6807\uFF0C\u8BF7\u641C\u7D22"}))]),_:1})):B("v-if",!0)]),_:1},8,["modelValue"]),D("div",Bp,[d(T,{modelValue:k.value,"onUpdate:modelValue":c[2]||(c[2]=M=>k.value=M),clearable:"",placeholder:C.value,onClear:F},{append:g(()=>[d($,{icon:P(iu),onClick:c[1]||(c[1]=M=>x())},null,8,["icon"])]),_:1},8,["modelValue","placeholder"])])])}}}),na=Y(Vp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-content.vue"]]);const $p={class:"text-center m2"},Tp=j({name:"DkIconDialog"});var Ip=j({...Tp,props:oa,emits:["choose","confirm"],setup(t,{expose:e,emit:o}){const n=t,l=R(!1),u=R(),i=R("");e({dialogVisible:l,open:()=>{l.value=!0},iconContent:u});const s=y=>{i.value=y,o("choose",y)},r=()=>{l.value=!1,o("confirm",i.value)},_=()=>{l.value=!1};return(y,E)=>{const k=b("el-button"),C=b("dk-dialog");return h(),I(C,{modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=p=>l.value=p),title:"\u9009\u62E9\u56FE\u6807",width:"800px",class:"dk-icon-dialog"},{footer:g(()=>[D("div",$p,[d(k,{type:"primary",onClick:r},{default:g(()=>[N("\u786E\u5B9A")]),_:1}),d(k,{onClick:_},{default:g(()=>[N("\u5173\u95ED")]),_:1})])]),default:g(()=>[d(na,Fe({ref_key:"iconContent",ref:u},n,{onChoose:s}),null,16)]),_:1},8,["modelValue"])}}}),la=Y(Ip,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-dialog.vue"]]);const Rp={key:0,class:"show m-t-5px"},Op=j({name:"DkIconInput"});var zp=j({...Op,props:ea,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=ze("icon-input"),u=R(o.modelValue),i=R();Z(()=>o.modelValue,y=>{u.value=y}),Z(()=>u.value,y=>{s(y)});const a=ue(()=>{const{modelValue:y,...E}=o;return E}),s=y=>{e("update:modelValue",y),e("input",y),e("change",y)},r=()=>{i.value.open()},_=y=>{console.log(y),u.value=y};return(y,E)=>{const k=b("el-button"),C=b("el-input"),p=b("dk-icon"),S=b("Close"),x=b("el-icon");return h(),w("div",{class:ae(P(l)())},[B("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),d(C,{modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=F=>u.value=F),placeholder:o.placeholder,clearable:""},{append:g(()=>[d(k,{onClick:r},{default:g(()=>[N("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),B("\u9009\u62E9\u7684\u662F\u56FE\u7247"),o.preview?(h(),w("div",Rp,[d(p,{icon:u.value?u.value:"fluent:document-none-24-regular",class:"icon rd-4px cursor-pointer",size:50,color:u.value?"":"#ccc",onClick:r},null,8,["icon","color"]),D("em",{onClick:E[1]||(E[1]=F=>u.value="")},[d(x,null,{default:g(()=>[d(S)]),_:1})])])):B("v-if",!0),B("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),d(la,Fe({ref_key:"iconDialog",ref:i},a.value,{onConfirm:_}),null,16)],2)}}}),jp=Y(zp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-input.vue"]]);const ua=fe(jp),aa=fe(na),ia=fe(la),Pp=[{name:"DkStyleBoxInput",title:"\u5C3A\u5BF8",props:{},value:{},params:["marginLeft","marginTop","marginRight","marginBottom","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height"]},{name:"DkStyleFontInput",title:"\u6587\u5B57",props:{},value:{},params:["fontSize","color","fontWeight","fontStyle","textDecoration"]},{name:"DkStyleBackgroundInput",title:"\u80CC\u666F",props:{},value:{},params:["backgroundColor","backgroundImage"]},{name:"DkStyleBorderInput",title:"\u8FB9\u6846",props:{},value:{},params:["borderWidth","borderStyle","borderColor","borderRightWidth","borderRightStyle","borderRightColor","borderLeftWidth","borderLeftStyle","borderLeftColor","borderTopWidth","borderTopStyle","borderTopColor","borderBottomWidth","borderBottomStyle","borderBottomColor","borderRadius"]},{name:"DkStyleShadowInput",title:"\u9634\u5F71",props:{},value:{},params:["boxShadow"]}],ra={components:{default:()=>Pp,type:Array},hideComponents:{default:()=>[],type:Array},modelValue:{default:()=>({}),type:Object},isDrawer:{default:!1,type:Boolean},drawerProps:{default:()=>({title:"\u7F16\u8F91\u6837\u5F0F",direction:"rtl",size:"400px"}),type:Object},drawerText:{default:"\u7F16\u8F91\u6837\u5F0F",type:String}},Mp={class:"dk-style-input"},Np={key:0,class:"p-5px"},Up={key:1},Lp=j({name:"DkStyleInput"});var Hp=j({...Lp,props:ra,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=R(!1),l=R([0]),u=R({}),i=R(!0),a=()=>{const _={};Object.keys(u.value).forEach(y=>{Object.keys(u.value[y]).forEach(E=>{_[E]=u.value[y][E]})}),e("update:modelValue",_)},s=R([]),r=()=>{s.value=o.components.filter(y=>!o.hideComponents.includes(y.name));const _={};s.value.forEach(y=>{const E=y.params,k={};Object.keys(E).forEach(C=>{const p=E[C];o.modelValue[p]&&(k[p]=o.modelValue[p])}),_[y.name]=k}),u.value=_,i.value=!1};return Z(()=>o.modelValue,()=>{r()},{deep:!0}),Se(()=>{r()}),(_,y)=>{const E=b("el-collapse-item"),k=b("el-collapse"),C=b("el-button"),p=b("el-drawer");return h(),w("div",Mp,[i.value?B("v-if",!0):(h(),w("div",Np,[o.isDrawer?(h(),w("div",Up,[d(C,{type:"primary",plain:"",style:{width:"100%"},size:"small",onClick:y[1]||(y[1]=S=>n.value=!0)},{default:g(()=>[N(Q(o.drawerText),1)]),_:1}),d(p,Fe({modelValue:n.value,"onUpdate:modelValue":y[3]||(y[3]=S=>n.value=S)},o.drawerProps),{default:g(()=>[d(k,{modelValue:l.value,"onUpdate:modelValue":y[2]||(y[2]=S=>l.value=S)},{default:g(()=>[(h(!0),w(W,null,te(s.value,(S,x)=>(h(),I(E,{key:x,title:"",name:x},{title:g(()=>[N(Q(S.title),1)]),default:g(()=>[l.value.includes(x)?(h(),I(ft(S.name),Fe({key:0,modelValue:u.value[S.name],"onUpdate:modelValue":F=>u.value[S.name]=F},S.props,{onChange:a}),null,16,["modelValue","onUpdate:modelValue"])):B("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])]),_:1},16,["modelValue"])])):(h(),I(k,{key:0,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=S=>l.value=S)},{default:g(()=>[(h(!0),w(W,null,te(s.value,(S,x)=>(h(),I(E,{key:x,title:"",name:x},{title:g(()=>[N(Q(S.title),1)]),default:g(()=>[l.value.includes(x)?(h(),I(ft(S.name),Fe({key:0,modelValue:u.value[S.name],"onUpdate:modelValue":F=>u.value[S.name]=F},S.props,{onChange:a}),null,16,["modelValue","onUpdate:modelValue"])):B("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]))]))])}}}),Wp=Y(Hp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-input\\src\\style-input.vue"]]);const sa=fe(Wp),da={modelValue:{type:String,default:""},defaultMerge:{type:Boolean,default:!0},type:{type:String,default:"border"},units:{type:Array,default:()=>["px","%"]},defaultIsMerge:{type:Boolean,default:!1},showMerge:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1}},qp=["onMousedown"],Yp={style:{display:"flex"}},Gp=j({name:"DkBoxSizeInput"});var Xp=j({...Gp,props:da,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=R(),{width:l}=gt(n),u=me({all:"",first:"",second:"",third:"",fourth:""}),i=me({all:"px",first:"rem",second:"px",third:"px",fourth:"px"}),a=["px","%","rem","rm","vh","auto"],s=R(""),r=R(o.defaultIsMerge),_=R(!1),y=R(0),E=R(!1),k=R(null),C=R(null),p=ue(()=>a.map(f=>({label:f,value:f}))),S=ue(()=>{let f;return o.type==="radius"?f=[{position:"first",name:"\u5DE6\u4E0A",icon:"ant-design:radius-upleft-outlined"},{position:"second",name:"\u53F3\u4E0A",icon:"ant-design:radius-upright-outlined"},{position:"fourth",name:"\u5DE6\u4E0B",icon:"ant-design:radius-bottomleft-outlined"},{position:"third",name:"\u5DE6\u4E0B",icon:"ant-design:radius-bottomright-outlined"}]:f=[{position:"first",name:"\u4E0A",icon:"ArrowUp"},{position:"second",name:"\u53F3",icon:"ArrowRight"},{position:"third",name:"\u4E0B",icon:"ArrowDown"},{position:"fourth",name:"\u5DE6",icon:"ArrowLeft"}],f}),x=(f,V)=>{_.value=!0,y.value=V.clientX,s.value=f,k.value=F.bind(V),C.value=m.bind(V),document.addEventListener("mousemove",k.value),document.addEventListener("mouseup",C.value),document.body.style.cursor="ew-resize"},F=f=>{_.value&&(u[s.value]=f.clientX-y.value)},m=()=>{document.removeEventListener("mousemove",k.value),document.removeEventListener("mouseup",C.value),document.body.style.cursor="default",_.value=!1,s.value=""},c=()=>{const f=O=>{let z="px";return a.forEach(ee=>{O.includes(ee)&&(z=ee)}),z},V=o.modelValue.split(" ")||["0px"];let[A,$=A,T=A,M=$]=V;V.length===4?r.value=!1:V.length===3?(r.value=!1,M=""):V.length===2?(r.value=!1,T=A,M=$):(r.value=!0,$=T=M=A);const U={first:A,second:$,third:T,fourth:M};for(const O in U)u[O]=parseInt(U[O])||0,i[O]=f(U[O]);r.value&&(u.all=u.first,i.all=i.first)};Z(()=>o.modelValue,()=>{c()});const v=()=>{if(r.value)i.all==="auto"?e("update:modelValue","auto"):e("update:modelValue",`${u.all}${i.all}`);else{let f="";for(const V in i)V!=="all"&&(i[V]==="auto"?f+="auto ":f+=`${u[V]}${i[V]} `);e("update:modelValue",f.trim())}};return Z(u,()=>{v()}),Z(r,()=>{v()}),Z(i,()=>{v()}),Se(()=>{c()}),(f,V)=>{const A=b("dk-icon"),$=b("el-tooltip"),T=b("el-input"),M=b("el-select-v2"),U=b("el-button");return h(),w("div",{ref_key:"el",ref:n,class:"dk-box-size-input"},[_e(D("div",{class:ae((P(l)>500,""))},[(h(!0),w(W,null,te(S.value,(O,z)=>(h(),w("div",{key:z,style:{display:"flex"}},[d(T,{modelValue:u[O.position],"onUpdate:modelValue":ee=>u[O.position]=ee,type:"number",controls:!1,disabled:i[O.position]=="auto"},Ct({_:2},[P(l)>600||P(l)<500?{name:"prefix",fn:g(()=>[D("span",{class:"w-resize",onMousemove:F,onMousedown:ee=>x(O.position,ee),onMouseup:m},[d($,{"hide-after":0,class:"item",effect:"dark",content:O.name,placement:"top-start",disabled:E.value},{default:g(()=>[d(A,{icon:O.icon},null,8,["icon"])]),_:2},1032,["content","disabled"])],40,qp)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","disabled"]),d(M,{modelValue:i[O.position],"onUpdate:modelValue":ee=>i[O.position]=ee,options:p.value},null,8,["modelValue","onUpdate:modelValue","options"])]))),128))],2),[[eo,!r.value]]),_e(D("div",Yp,[d(T,{modelValue:u.all,"onUpdate:modelValue":V[1]||(V[1]=O=>u.all=O),type:"number",controls:!1,disabled:i.all==="auto",clearable:o.clearable},{prefix:g(()=>[D("span",{class:"w-resize",onMousemove:F,onMousedown:V[0]||(V[0]=O=>x("all",O)),onMouseup:m},[d(A,{icon:"Rank"})],32)]),_:1},8,["modelValue","disabled","clearable"]),d(M,{modelValue:i.all,"onUpdate:modelValue":V[2]||(V[2]=O=>i.all=O),options:p.value},null,8,["modelValue","options"])],512),[[eo,r.value]]),o.showMerge?(h(),w("div",{key:0,class:"dk-full",onClick:V[3]||(V[3]=O=>r.value=!r.value)},[d($,{class:"item",effect:"dark",content:r.value?"\u72EC\u7ACB\u914D\u7F6E":"\u6279\u91CF\u914D\u7F6E",placement:"top","hide-after":0},{default:g(()=>[r.value?(h(),I(U,{key:0},{default:g(()=>[d(A,{icon:"streamline:interface-layout-border-horizontal-border-cell-center-format-formatting"})]),_:1})):(h(),I(U,{key:1},{default:g(()=>[d(A,{icon:"streamline:interface-layout-border-full-grid-layout-layouts-module"})]),_:1}))]),_:1},8,["content"])])):B("v-if",!0)],512)}}}),Jp=Y(Xp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\box-size-input\\src\\box-size-input.vue"]]);const ca=fe(Jp),pa={modelValue:{type:Object,default:()=>({})},height:{type:[Number,String],default:"auto"},help:{type:String,default:"\u53EF\u4EE5\u53CC\u51FB\u5BF9\u5E94\u4F4D\u7F6E\u6765\u914D\u7F6E\u5185\u5916\u8FB9\u8DDD\u548C\u5BBD\u5EA6\u9AD8\u5EA6\uFF0C\u4E5F\u652F\u6301\u901A\u8FC7\u63CF\u70B9\u62D6\u62FD\u589E\u52A0\uFF0C\u652F\u6301\u5355\u4F4D\uFF08px\u3001rem\u3001%\u3001auto)"}},Kp=[{title:"\u5916\u8FB9\u8DDD-\u5DE6",position:"left",value:"marginLeft",svg:{width:"15%",height:"100%",style:"position: absolute",viewBox:"0 0 5 15",preserveAspectRatio:"none",content:'<polygon points="0 0, 0 15,5 12.7, 5 2.25" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5916\u8FB9\u8DDD-\u53F3",position:"right",value:"marginRight",svg:{width:"15%",height:"100%",style:"position: absolute; right: 0px",viewBox:"0 0 5 15",preserveAspectRatio:"none",content:'<polygon points="0 2.25, 0 12.7, 5,15, 5,0" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5916\u8FB9\u8DDD-\u4E0A",position:"top",value:"marginTop",svg:{width:"100%",height:"15%",style:"position: absolute",viewBox:"0 0 15 5",preserveAspectRatio:"none",content:'<polygon points="0 0, 2.25 5, 12.7 5, 15,0" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5916\u8FB9\u8DDD-\u4E0B",position:"bottom",value:"marginBottom",svg:{width:"100%",height:"15%",style:"position: absolute; bottom: 0px",viewBox:"0 0 15 5",preserveAspectRatio:"none",content:'<polygon points="0 5, 2.25 0, 12.7 0, 15,5" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}}],Qp=[{title:"\u5185\u8FB9\u8DDD-\u5DE6",position:"left",value:"paddingLeft",svg:{width:"20%",height:"100%",style:"position: absolute",viewBox:"0 0 5 15",preserveAspectRatio:"none",content:'<polygon points="0 0, 0 15, 5 11.25, 5 3.68" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5185\u8FB9\u8DDD-\u53F3",position:"right",value:"paddingRight",svg:{width:"20%",height:"100%",style:"position: absolute; right: 0px",viewBox:"0 0 5 15",preserveAspectRatio:"none",content:'<polygon points="0 3.68, 0 11.25, 5 15, 5 0" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5185\u8FB9\u8DDD-\u4E0A",position:"top",value:"paddingTop",svg:{width:"100%",height:"25%",style:"position: absolute",viewBox:"0 0 15 5",preserveAspectRatio:"none",content:'<polygon points="0 0, 3 5, 11.9 5, 15 0" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}},{title:"\u5185\u8FB9\u8DDD-\u4E0B",position:"bottom",value:"paddingBottom",svg:{width:"100%",height:"25%",style:"position: absolute; bottom: 0px",viewBox:"0 0 15 5",preserveAspectRatio:"none",content:'<polygon points="0 5, 3 0, 11.9 0, 15 5" style="fill: rgba(255, 31, 31, 0.24); pointer-events: visible"></polygon>'}}],Zp={class:"dk-style-box-input"},ef={class:"header"},tf={class:"flex items-center justify-between"},of={class:"items-center"},nf=["title","onDblclick"],lf=["onUpdate:modelValue","onBlur"],uf=["width","height","viewBox","data-link-anchor","innerHTML"],af=D("div",{style:{position:"absolute",display:"none",width:"100%",height:"100%"}},null,-1),rf={class:"anchor-wrapper"},sf=["onMousedown"],df=D("span",{class:"title"}," \u5916\u8FB9\u8DDD ",-1),cf={class:"tools"},pf={class:"thumnail border"},ff=["title","onDblclick"],mf=["onUpdate:modelValue","onBlur"],hf=["width","height","viewBox","data-link-anchor","innerHTML"],gf={class:"anchor-wrapper"},vf=["onMousedown"],yf=D("span",{class:"title"}," \u5185\u8FB9\u8DDD ",-1),_f={class:"tools"},bf={class:"title"},Ef=D("span",null," x ",-1),kf={key:0,class:"flex items-center justify-between"},Ff=j({name:"DkStyleBoxInput"});var wf=j({...Ff,props:pa,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=me({margin:!1,padding:!1,widthHeight:!1}),l=R(),u=R(),i=R(),a=R(!1),s=me({marginLeft:o.modelValue.marginLeft||"",marginRight:o.modelValue.marginRight||"",marginTop:o.modelValue.marginTop||"",marginBottom:o.modelValue.marginBottom||"",paddingLeft:o.modelValue.paddingLeft||"",paddingRight:o.modelValue.paddingRight||"",paddingTop:o.modelValue.paddingTop||"",paddingBottom:o.modelValue.paddingBottom||"",width:o.modelValue.width||"",height:o.modelValue.height||""}),r=R(null),{width:_}=gt(r),y=me({padding:!1,margin:!1,size:!1}),E=ue(()=>{if(o.height==="auto"){const O=_.value/1.8;return O>200?200:O}else return o.height});Z(()=>o.modelValue,(O,z)=>{["marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","width","height"].forEach(oe=>{O[oe]!==z[oe]&&(s[oe]=O[oe]||"")})},{deep:!0}),Z(s,()=>{const O=Object.keys(s).reduce((z,ee)=>(s[ee]!==""&&(z[ee]=s[ee]),z),{});e("update:modelValue",O),e("change",O)});const k=me({marginLeft:!1,marginRight:!1,marginTop:!1,marginBottom:!1,paddingLeft:!1,paddingRight:!1,paddingTop:!1,paddingBottom:!1,width:!1,height:!1}),C=R(!1),p=me({x:0,y:0}),S=R(null),x=R(null),F=me({type:"",position:""}),m=me({display:"none",width:"0px",height:"0px",left:"0px",top:"0px"}),c=O=>{if(!C.value)return;const z=F.position,ee=F.type,oe=ee+Ro(z),H=(le,de)=>{const q=le==="x"?"clientX":"clientY";m[de]=O[q]+"px";let ye=O[q]-p[le];(z==="top"||z==="left")&&(ye=-ye),s[oe]=(parseInt(s[oe])||0)+ye+"px",y[ee]&&(s[ee+"Top"]=s[oe],s[ee+"Bottom"]=s[oe],s[ee+"Left"]=s[oe],s[ee+"Right"]=s[oe]),p[le]=O[q]};z==="left"||z==="right"?H("x","left"):(z==="top"||z==="bottom")&&H("y","top")},v=(O,z,ee)=>{Object.assign(F,{position:z,type:O}),S.value=c.bind(ee),document.addEventListener("mousemove",S.value),x.value=f.bind(ee),document.addEventListener("mouseup",x.value),C.value=!0;const oe=document.querySelector(".wrapper"),H=oe?oe.offsetWidth:0,le={margin:.9,padding:.9*.7},{clientX:de,clientY:q}=ee,ye=(L,X,K,ne,ie)=>{document.body.style.cursor=L,Object.assign(m,{left:X,top:K,width:ne,height:ie,display:"block"})};p.x=de,p.y=q,z==="left"||z==="right"?ye("ew-resize",de+"px",q-E.value*.5*le[O]+"px","0.1px",E.value*le[O]+"px"):ye("ns-resize",de-H*.5*le[O]+"px",q+"px",H*le[O]+"px","0.1px")},f=()=>{document.removeEventListener("mousemove",S.value),document.removeEventListener("mouseup",x.value),C.value=!1,m.display="none",document.body.style.cursor="default",p.x=null,p.y=null},V=(O,z="move",ee)=>{C.value||ee.stopPropagation(),z!=="move"?n[O]=!1:(Object.keys(n).forEach(oe=>{oe!==O&&(n[oe]=!1)}),n[O]=!0)},A=(O,z)=>{k[O]=!0,Oe(()=>{O==="width"?u.value.focus():O==="height"?i.value.focus():l.value[z].focus()})},$=O=>O==="auto"?O:O==="0"||O===0?0:O===""?"-":(typeof O=="string"&&O.includes("calc"),O),T=O=>{if(k[O]=!1,s[O]===""||s[O]==="auto"||typeof s[O]=="string"&&s[O].includes("calc"))return;if(!/^(\d*\.?\d+)(px|rem|%|vh)$/.test(s[O])){const ee=parseInt(s[O]);isNaN(ee)?s[O]="":(s[O]=ee+"px",O.indexOf("padding")==0&&y.padding&&(s.paddingTop=s[O],s.paddingRight=s[O],s.paddingBottom=s[O],s.paddingLeft=s[O]),O.indexOf("margin")==0&&y.padding&&(s.marginTop=s[O],s.marginRight=s[O],s.marginBottom=s[O],s.marginLeft=s[O]))}},M=O=>{O==="widthHeight"?(s.width="",s.height=""):O==="margin"?(s.marginLeft="",s.marginRight="",s.marginTop="",s.marginBottom=""):O==="padding"&&(s.paddingLeft="",s.paddingRight="",s.paddingTop="",s.paddingBottom="")},U=O=>{y[O]=!y[O]};return(O,z)=>{const ee=b("dk-icon"),oe=b("el-popover"),H=b("el-switch"),le=b("el-tooltip"),de=b("el-input");return h(),w("div",Zp,[D("div",{class:"position-line",style:G(m)},null,4),D("div",ef,[D("div",tf,[D("label",of,[N(" \u5185\u5916\u8FB9\u8DDD "),d(oe,{ref:"popover",placement:"bottom",title:"\u8BF4\u660E",width:280,trigger:"hover",content:o.help},{reference:g(()=>[d(ee,{icon:"QuestionFilled",class:"m-l-5px vertical-text-top"})]),_:1},8,["content"])]),D("div",null,[N(" \u9AD8\u5BBD\u8F85\u52A9 "),d(H,{modelValue:a.value,"onUpdate:modelValue":z[0]||(z[0]=q=>a.value=q),size:"small"},null,8,["modelValue"]),d(oe,{ref:"popover",placement:"bottom",title:"\u8BF4\u660E",width:380,trigger:"hover",content:"\u8BBE\u7F6E\u5F53\u524D\u5143\u7D20\u9AD8\u5EA6\u4E0E\u5BBD\u5EA6\uFF0C\u4F8B\u5982\uFF1A10px\u300180%\u300110em\u7B49\u540E\u7F00\uFF0C\u5982\u679C\u67D0\u4E9B\u5143\u7D20\u8BBE\u7F6E\u4E86\u5916\u8FB9\u8DDD\uFF0C\u5185\u90E8\u8BBE\u7F6E100%\u53EF\u80FD\u4F1A\u9519\u4F4D\uFF0C\u90A3\u4E48\u53EF\u4EE5\u586B\u5199calc\u683C\u5F0F\uFF1Acalc(100% - 20px)"},{reference:g(()=>[d(ee,{icon:"QuestionFilled",class:"m-l-5px vertical-text-top"})]),_:1},512)])]),D("div",{ref_key:"box",ref:r,tabindex:"0",class:"wrapper",style:G([{"margin-top":"10px"},{height:E.value+"px"}])},[D("div",{class:ae(["thumnail margin",n.margin?"thumnail-heightlight":""]),onMousemove:z[15]||(z[15]=q=>V("margin","move",q)),onMouseleave:z[16]||(z[16]=q=>V("margin","leave",q))},[B("\u5916\u8FB9\u8DDD Margin"),D("div",null,[(h(!0),w(W,null,te(P(Kp),(q,ye)=>(h(),w("div",{key:ye},[D("span",{title:q.title,class:ae(`anchor-tip-${q.position} value-indicator`),onDblclick:L=>A(q.value,ye)},[D("span",null,Q($(s[q.value])),1)],42,nf),_e(D("input",{ref_for:!0,ref_key:"inputField",ref:l,"onUpdate:modelValue":L=>s[q.value]=L,class:ae("input-box anchor-tip-"+q.position+(k[q.value]?" show":"")),onBlur:L=>T(q.value)},null,42,lf),[[$o,s[q.value]]]),(h(),w("svg",{width:q.svg.width,height:q.svg.height,viewBox:q.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":q.value,style:G(q.svg.style),class:"esm-modal-svg",innerHTML:q.svg.content},null,12,uf))]))),128))]),af,D("div",rf,[(h(),w(W,null,te(["left","right","top","bottom"],(q,ye)=>D("div",{key:ye,class:ae(["anchor","anchor-"+q]),onMousemove:c,onMousedown:L=>v("margin",q,L),onMouseup:f},null,42,sf)),64))]),df,D("div",cf,[d(le,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:g(()=>[d(ee,{style:{"margin-right":"5px"},icon:"Connection",color:y.margin?"#f00":"#303133",onClick:z[1]||(z[1]=q=>U("margin"))},null,8,["color"])]),_:1}),d(le,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5916\u8FB9\u8DDD",placement:"top-start"},{default:g(()=>[d(ee,{icon:"Refresh",color:"#303133",onClick:z[2]||(z[2]=q=>M("margin"))})]),_:1})]),B("\u5916\u8FB9\u8DDD Margin END"),B("\u5185\u8FB9\u8DDD Padding"),D("div",pf,[D("div",{class:ae(["thumnail padding",n.padding?"thumnail-heightlight":""]),onMousemove:z[13]||(z[13]=q=>V("padding","move",q)),onMouseleave:z[14]||(z[14]=q=>V("padding","leave",q))},[D("div",null,[(h(!0),w(W,null,te(P(Qp),(q,ye)=>(h(),w("div",{key:ye},[D("span",{title:q.title,class:ae(`anchor-tip-${q.position} value-indicator`),onDblclick:L=>A(q.value,ye+4)},[D("span",null,Q($(s[q.value])),1)],42,ff),_e(D("input",{ref_for:!0,ref_key:"inputField",ref:l,"onUpdate:modelValue":L=>s[q.value]=L,class:ae("input-box anchor-tip-"+q.position+(k[q.value]?" show":"")),onBlur:L=>T(q.value)},null,42,mf),[[$o,s[q.value]]]),(h(),w("svg",{width:q.svg.width,height:q.svg.height,viewBox:q.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":q.value,style:G(q.svg.style),class:"esm-modal-svg",innerHTML:q.svg.content},null,12,hf))]))),128))]),D("div",gf,[(h(),w(W,null,te(["left","right","top","bottom"],(q,ye)=>D("div",{key:ye,class:ae(["anchor","anchor-"+q]),onMousemove:c,onMousedown:L=>v("padding",q,L),onMouseup:f},null,42,vf)),64))]),yf,D("div",_f,[d(le,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:g(()=>[d(ee,{style:{"margin-right":"5px"},icon:"Connection",color:y.padding?"#f00":"#303133",onClick:z[3]||(z[3]=q=>U("padding"))},null,8,["color"])]),_:1}),d(le,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5185\u8FB9\u8DDD",placement:"top-start"},{default:g(()=>[d(ee,{icon:"Refresh",color:"#303133",onClick:z[4]||(z[4]=q=>M("padding"))})]),_:1})]),B("\u5185\u8FB9\u8DDD END"),D("div",{class:ae(["thumnail width-height",n.widthHeight?"thumnail-heightlight":""]),onMousemove:z[11]||(z[11]=q=>V("widthHeight","move",q)),onMouseleave:z[12]||(z[12]=q=>V("widthHeight","leave",q))},[D("span",bf,[D("span",{class:"content-unit left-0",onDblclick:z[5]||(z[5]=q=>A("width",9))},[D("em",null,Q($(s.width)),1)],32),_e(D("input",{ref_key:"inputWidth",ref:u,"onUpdate:modelValue":z[6]||(z[6]=q=>s.width=q),class:ae(["input-box absolute left-5% top-10px",k.width?" show":""]),onBlur:z[7]||(z[7]=q=>T("width"))},null,34),[[$o,s.width]]),Ef,D("span",{class:"content-unit right-0",onDblclick:z[8]||(z[8]=q=>A("height",9))},[D("em",null,Q($(s.height)),1)],32),_e(D("input",{ref_key:"inputHeight",ref:i,"onUpdate:modelValue":z[9]||(z[9]=q=>s.height=q),class:ae(["input-box absolute right-5% top-10px",k.height?" show":""]),onBlur:z[10]||(z[10]=q=>T("height"))},null,34),[[$o,s.height]])])],34)],34)])],34)],4),a.value?(h(),w("div",kf,[d(de,{modelValue:s.width,"onUpdate:modelValue":z[17]||(z[17]=q=>s.width=q),class:"w-50%",placeholder:"\u8F93\u5165\u5BBD\u5EA6"},null,8,["modelValue"]),d(de,{modelValue:s.height,"onUpdate:modelValue":z[18]||(z[18]=q=>s.height=q),class:"w-50%",placeholder:"\u8F93\u5165\u9AD8\u5EA6"},null,8,["modelValue"])])):B("v-if",!0)])])}}}),Df=Y(wf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-box-input\\src\\style-box-input.vue"]]);const fa=fe(Df),ma={modelValue:{type:Object,default:()=>({})}},Cf={class:"dk-style-font-input"},Af={style:{display:"flex","flex-flow":"wrap","align-items":"center"}},xf={class:"m-b-5px"},Bf={style:{width:"100px"},class:"m-b-5px"},Sf={style:{width:"100px"},class:"m-r-5px m-b-5px"},Vf={class:"m-r-5px m-b-5px"},$f={class:"m-b-5px"},Tf=j({name:"DkStyleFontInput"});var If=j({...Tf,props:ma,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=400,l=100,u=me({color:o.modelValue.color||"",fontSize:o.modelValue.fontSize||"",fontWeight:o.modelValue.fontWeight||"",fontStyle:o.modelValue.fontStyle||"",textDecoration:o.modelValue.textDecoration||""});Z(u,s=>{const r=Object.keys(u).reduce((_,y)=>(u[y]!==""&&(_[y]=u[y]),_),{});e("update:modelValue",r),e("change",r)}),Z(()=>o.modelValue,()=>{["color","fontSize","fontWeight","fontStyle","textDecoration"].forEach(r=>{u[r]=o.modelValue[r]||""})},{deep:!0});const i=[{label:"\u666E\u901A",value:"normal"},{label:"\u52A0\u7C97",value:"bold"},{label:"\u66F4\u7C97",value:"bolder"},{label:"\u66F4\u7EC6",value:"lighter"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}],a=s=>{s==="all"?Object.keys(u).forEach(r=>{u[r]=""}):u[s]=""};return(s,r)=>{const _=b("el-button"),y=b("el-color-picker"),E=b("el-tooltip"),k=b("el-option"),C=b("el-select"),p=b("dk-icon"),S=b("el-button-group");return h(),w("div",Cf,[B(" \u989C\u8272\u3001\u5B57\u53F7\u3001\u7C97\u7EC6\u3001\u98CE\u683C\u3001\u88C5\u9970"),D("div",Af,[d(E,{placement:"top-end",trigger:"hover","show-after":n,"hide-after":l},{content:g(()=>[N(" \u6587\u5B57\u989C\u8272 "),d(_,{size:"small",icon:"Refresh",color:"var(--el-text-color-primary)",disabled:u.color==="",onClick:r[0]||(r[0]=x=>a("color"))},{default:g(()=>[N("\u91CD\u7F6E")]),_:1},8,["disabled"])]),default:g(()=>[D("div",xf,[d(y,{modelValue:u.color,"onUpdate:modelValue":r[1]||(r[1]=x=>u.color=x)},null,8,["modelValue"])])]),_:1}),D("div",Bf,[d(C,{modelValue:u.fontSize,"onUpdate:modelValue":r[2]||(r[2]=x=>u.fontSize=x),"remote-show-suffix":!1,placeholder:"\u5B57\u53F7","allow-create":"",clearable:"",filterable:!0},{default:g(()=>[(h(),w(W,null,te(["12px","14px","16px","18px","20px","24px","28px","32px","36px","40px","48px"],x=>d(k,{key:x,label:x,value:x},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),D("div",Sf,[d(C,{modelValue:u.fontWeight,"onUpdate:modelValue":r[3]||(r[3]=x=>u.fontWeight=x),"remote-show-suffix":!1,placeholder:"\u7C97\u7EC6","allow-create":"",clearable:"",filterable:!0},{default:g(()=>[(h(),w(W,null,te(i,x=>d(k,{key:x.value,label:x.label,value:x.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),D("div",Vf,[d(_,{type:u.fontStyle?"primary":"",onClick:r[4]||(r[4]=x=>u.fontStyle?u.fontStyle="":u.fontStyle="italic")},{default:g(()=>[d(p,{icon:"radix-icons:font-italic",title:"\u6587\u5B57\u503E\u659C"})]),_:1},8,["type"])]),D("div",$f,[d(S,null,{default:g(()=>[d(_,{type:u.textDecoration=="underline"?"primary":"",onClick:r[5]||(r[5]=x=>u.textDecoration=="underline"?u.textDecoration="":u.textDecoration="underline")},{default:g(()=>[d(p,{icon:"radix-icons:underline",title:"\u4E0B\u5212\u7EBF"})]),_:1},8,["type"]),d(_,{type:u.textDecoration=="line-through"?"primary":"",onClick:r[6]||(r[6]=x=>u.textDecoration=="line-through"?u.textDecoration="":u.textDecoration="line-through")},{default:g(()=>[d(p,{icon:"radix-icons:strikethrough",title:"\u5220\u9664\u7EBF"})]),_:1},8,["type"]),d(_,{type:u.textDecoration=="wavy underline"?"primary":"",onClick:r[7]||(r[7]=x=>u.textDecoration=="wavy underline"?u.textDecoration="":u.textDecoration="wavy underline")},{default:g(()=>[d(p,{icon:"mdi:format-underline-wavy",title:"\u6CE2\u6D6A\u7EBF"})]),_:1},8,["type"])]),_:1})]),d(E,{placement:"top",trigger:"hover",content:"\u5168\u90E8\u91CD\u7F6E","show-after":n,"hide-after":l},{default:g(()=>[d(_,{type:"danger",plain:"",icon:"Delete",class:"m-l-5px m-b-5px",onClick:r[8]||(r[8]=x=>a("all"))})]),_:1})])])}}}),Rf=Y(If,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-font-input\\src\\style-font-input.vue"]]);const ha=fe(Rf),ga={modelValue:{type:Object,default:()=>{}}},Of={class:"border-box"},zf={style:{width:"100%"},class:"m-l-20px"},jf={style:{display:"flex",width:"100%"}},Pf=j({name:"DkStyleBorderInput"});var Mf=j({...Pf,props:ga,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=["top","right","bottom","left","all"],l=["px","%","rem","em","vw","vh"],u=R("all"),i=R(),{width:a}=gt(i),s=()=>({unit:"px"}),r=me({top:s(),right:s(),bottom:s(),left:s(),all:s(),radius:o.modelValue.borderRadius||"0px"}),_=ue(()=>{const C={};return n.forEach(p=>{p==="all"?(r[p].borderWidth&&(C.borderWidth=r[p].borderWidth+(r[p].unit||"px")),r[p].borderStyle&&(C.borderStyle=r[p].borderStyle),r[p].borderColor&&(C.borderColor=r[p].borderColor)):(r[p].borderWidth&&(C["border"+Ro(p)+"Width"]=r[p].borderWidth+(r[p].unit||"px")),r[p].borderStyle&&(C["border"+Ro(p)+"Style"]=r[p].borderStyle),r[p].borderColor&&(C["border"+Ro(p)+"Color"]=r[p].borderColor))}),r.radius!=="0px"&&(C.borderRadius=r.radius),C});Z(_,()=>{e("update:modelValue",_.value),e("change",_.value)});const y=()=>{["borderWidth","borderStyle","borderColor","borderRightWidth","borderRightStyle","borderRightColor","borderLeftWidth","borderLeftStyle","borderLeftColor","borderTopWidth","borderTopStyle","borderTopColor","borderBottomWidth","borderBottomStyle","borderBottomColor","borderRadius"].forEach(p=>{if(o.modelValue[p])if(p==="borderRadius")r.radius=o.modelValue[p];else{let[S,x,F]=p.split(/(?=[A-Z])/),m=x.toLowerCase();const c=o.modelValue[p];if(n.indexOf(m)===-1&&(m="all",F=x),F==="Width"){const v=parseInt(c)||0,f=c.replace(v+"","")||"px";l.indexOf(f)>-1&&(r[m].unit=f,r[m].borderWidth=v)}else r[m]["border"+F]=c}else if(p==="borderRadius")r.radius="0px";else{let[S,x,F]=p.split(/(?=[A-Z])/),m=x.toLowerCase();n.indexOf(m)===-1&&(m="all",F=x),o.modelValue[p],F==="Width"?(delete r[m].borderWidth,delete r[m].unit):delete r[m]["border"+F]}})},E=()=>{u.value==="all"?n.forEach(C=>{C!=="all"&&(r[C]={unit:"px"})}):n.forEach(C=>{C==="all"&&(r[C]={unit:"px"})})},k=C=>{C==="radius"?r.radius="0px":delete r[u.value][C]};return Z(()=>o.modelValue,()=>{y()},{deep:!0}),Se(()=>{y()}),(C,p)=>{const S=b("dk-icon"),x=b("el-tooltip"),F=b("el-slider"),m=b("el-input"),c=b("el-option"),v=b("el-select"),f=b("el-form-item"),V=b("el-radio-button"),A=b("el-radio-group"),$=b("el-color-picker"),T=b("dk-box-size-input"),M=b("el-form");return h(),w("div",{ref_key:"el",ref:i,class:ae(["dk-style-border-input",P(a)<400?"mini":""])},[D("div",Of,[(h(),w(W,null,te(n,U=>d(S,{key:U,icon:"gg:border-"+U,class:ae("border-box-option border-"+U+" "+(u.value==U?"selected":"")),size:24,style:G("grid-area: border-"+U+" / border-"+U+" / border-"+U+" / border-"+U+";"),onClick:O=>u.value=U},null,8,["icon","class","style","onClick"])),64))]),D("div",zf,[B(" \u6837\u5F0F\u3001\u5BBD\u5EA6\u3001\u989C\u8272"),d(M,{"label-width":"50px","label-position":"left",size:"small"},{default:g(()=>[d(f,{value:"\u5C3A\u5BF8"},{label:g(()=>[d(x,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!r[u.value].borderWidth},{default:g(()=>[D("span",{class:ae(["cursor-pointer",r[u.value].borderWidth?"color-blue":""]),onClick:p[0]||(p[0]=U=>k("borderWidth"))},"\u5C3A\u5BF8",2)]),_:1},8,["disabled"])]),default:g(()=>[D("div",jf,[d(F,{modelValue:r[u.value].borderWidth,"onUpdate:modelValue":p[1]||(p[1]=U=>r[u.value].borderWidth=U),class:"dk-border-slider",max:50,onChange:p[2]||(p[2]=U=>E())},null,8,["modelValue"]),d(m,{modelValue:r[u.value].borderWidth,"onUpdate:modelValue":p[3]||(p[3]=U=>r[u.value].borderWidth=U),class:"dk-border-input",type:"number",onChange:p[4]||(p[4]=U=>E())},{default:g(()=>[B(" <template #append>"),B(" <el-select"),B(' v-model="form[position].unit"'),B(' placeholder="px"'),B(' class="dk-border-select"'),B(' style="width: 50px"'),B(' suffix-icon=""'),B(' @change="clearOtherBorder()"'),B(" >"),B(" <el-option"),B(' v-for="item in units"'),B(' :key="item"'),B(' :label="item"'),B(' :value="item"'),B(" />"),B(" </el-select>"),B(" </template>")]),_:1},8,["modelValue"]),d(v,{modelValue:r[u.value].unit,"onUpdate:modelValue":p[5]||(p[5]=U=>r[u.value].unit=U),placeholder:"px",class:"dk-border-select",style:{width:"60px"},onChange:p[6]||(p[6]=U=>E())},{default:g(()=>[(h(),w(W,null,te(l,U=>d(c,{key:U,label:U,value:U},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),d(f,{value:"\u6837\u5F0F"},{label:g(()=>[d(x,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!r[u.value].borderStyle},{default:g(()=>[D("span",{class:ae(["cursor-pointer",r[u.value].borderStyle?"color-blue":""]),onClick:p[7]||(p[7]=U=>k("borderStyle"))},"\u6837\u5F0F",2)]),_:1},8,["disabled"])]),default:g(()=>[d(A,{modelValue:r[u.value].borderStyle,"onUpdate:modelValue":p[8]||(p[8]=U=>r[u.value].borderStyle=U),onChange:p[9]||(p[9]=U=>E())},{default:g(()=>[d(V,{value:"solid",name:"type"},{default:g(()=>[d(S,{icon:"gg:border-style-solid"})]),_:1}),d(V,{value:"dotted",name:"type"},{default:g(()=>[d(S,{icon:"gg:border-style-dotted"})]),_:1}),d(V,{value:"dashed",name:"type"},{default:g(()=>[d(S,{icon:"gg:border-style-dashed"})]),_:1}),d(V,{value:"double",name:"type"},{default:g(()=>[d(S,{icon:"memory:box-light-double-horizontal"})]),_:1})]),_:1},8,["modelValue"])]),_:1}),d(f,{label:"\u989C\u8272"},{label:g(()=>[d(x,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!r[u.value].borderColor},{default:g(()=>[D("span",{class:ae(["cursor-pointer",r[u.value].borderColor?"color-blue":""]),onClick:p[10]||(p[10]=U=>k("borderColor"))},"\u989C\u8272",2)]),_:1},8,["disabled"])]),default:g(()=>[d($,{modelValue:r[u.value].borderColor,"onUpdate:modelValue":p[11]||(p[11]=U=>r[u.value].borderColor=U)},null,8,["modelValue"])]),_:1}),d(f,{label:"\u5F27\u5EA6"},{label:g(()=>[d(x,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:r.radius=="0px"},{default:g(()=>[D("span",{class:ae(["cursor-pointer",r.radius!=="0px"?"color-blue":""]),onClick:p[12]||(p[12]=U=>k("radius"))},"\u5F27\u5EA6",2)]),_:1},8,["disabled"])]),default:g(()=>[d(T,{modelValue:r.radius,"onUpdate:modelValue":p[13]||(p[13]=U=>r.radius=U),type:"radius"},null,8,["modelValue"])]),_:1})]),_:1})])],2)}}}),Nf=Y(Mf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-border-input\\src\\style-border-input.vue"]]);const va=fe(Nf),ya={modelValue:{type:Object,default:()=>({backgroundImage:"",backgroundColor:""})}},Uf={class:"dk-style-background-input"},Lf=j({name:"DkStyleBackgroundInput"});var Hf=j({...Lf,props:ya,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=me({backgroundImage:"",backgroundColor:""});Z(n,()=>{const u={};n.backgroundColor&&(u.backgroundColor=n.backgroundColor),n.backgroundImage&&(u.backgroundImage=`url(${n.backgroundImage})`),e("update:modelValue",u),e("change",u)},{deep:!0});const l=()=>{n.backgroundColor=o.modelValue.backgroundColor||"";const u=o.modelValue.backgroundImage;if(u){const i=/url\((.+)\)/,a=u.match(i);a&&(n.backgroundImage=a[1])}};return Z(()=>o.modelValue,()=>{l()}),Se(()=>{l()}),(u,i)=>{const a=b("el-color-picker"),s=b("dk-image-input");return h(),w("div",Uf,[d(a,{modelValue:n.backgroundColor,"onUpdate:modelValue":i[0]||(i[0]=r=>n.backgroundColor=r),"show-alpha":""},null,8,["modelValue"]),d(s,{modelValue:n.backgroundImage,"onUpdate:modelValue":i[1]||(i[1]=r=>n.backgroundImage=r)},null,8,["modelValue"])])}}}),Wf=Y(Hf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-background-input\\src\\style-background-input.vue"]]);const _a=fe(Wf),ba={type:{default:"input",type:String},modelValue:{default:()=>{},type:Object}},qf={class:"dk-style-shadow-input"},Yf={key:1,class:"shadow-list"},Gf=j({name:"DkStyleShadowInput"});var Xf=j({...Gf,props:ba,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=R([]),l=R("1"),u=()=>{n.value.push("2px 2px 3px 2px #E7E5E5FF"),l.value=n.value.length-1+""},i=r=>{n.value.splice(r,1)},a=()=>{o.modelValue.boxShadow&&(n.value=o.modelValue.boxShadow.split(","))},s=ue(()=>n.value.join(","));return Z(s,(r,_)=>{e("update:modelValue",{boxShadow:s.value}),e("change",{boxShadow:s.value})}),Z(()=>o.modelValue,()=>{a()},{deep:!0}),Se(()=>{a()}),(r,_)=>{const y=b("dk-style-shadow-content"),E=b("el-collapse-item"),k=b("el-collapse"),C=b("el-button"),p=b("el-popover"),S=b("el-input"),x=b("dk-icon");return h(),w("div",qf,[r.type==="collapse"?(h(),I(k,{key:0,modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=F=>l.value=F),accordion:""},{default:g(()=>[(h(!0),w(W,null,te(n.value,(F,m)=>(h(),I(E,{key:m,title:F,name:m+""},{default:g(()=>[d(y,{modelValue:n.value[m],"onUpdate:modelValue":c=>n.value[m]=c},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])):(h(),w("ul",Yf,[(h(!0),w(W,null,te(n.value,(F,m)=>(h(),w("li",{key:m},[d(S,{modelValue:n.value[m],"onUpdate:modelValue":c=>n.value[m]=c,disabled:""},{append:g(()=>[d(p,{placement:"right-start",title:"",width:"380",trigger:"click"},{reference:g(()=>[d(C,null,{default:g(()=>[N("\u8BBE\u7F6E")]),_:1})]),default:g(()=>[d(y,{modelValue:n.value[m],"onUpdate:modelValue":c=>n.value[m]=c},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]),d(x,{class:"close-shadow",icon:"Close","hover-color":"#f00",onClick:c=>i(m)},null,8,["onClick"])]))),128))])),d(C,{class:"m-t-10px w-100%",onClick:u},{default:g(()=>[d(x,{icon:"Plus"})]),_:1})])}}}),Jf=Y(Xf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);const Kf={class:"flex"},Qf={class:"flex"},Zf={class:"flex"},em={class:"flex"},tm={class:"shadow-content-shortcut"},om={class:"default-css m-b-10px"},nm=D("div",{class:"m-b-10px"},"\u5E38\u7528\u6837\u5F0F",-1),lm=D("i",{id:"center"},null,-1),um=[lm],am=j({name:"DkStyleShadowContent"});var im=j({...am,props:{boxSize:{default:180,type:Number},size:{default:"small",type:String},max:{default:24,type:Number},modelValue:{default:"0px 0px 0px rgba(0, 0, 0, 0)",type:String},defaultStyles:{default:()=>[{label:"\u7ECF\u5178",value:"3px 5px 7px 2px #CBCBCBFF"},{label:"\u6241\u5E73",value:"4px 4px 3px -2px #E7E5E5FF"},{label:"\u7ACB\u4F53",value:"1px 2px 4px 2px #979797FF"}],type:Array}},emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=R(null);gt(n);const l=me({color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"}),u=["px","%","rem","em","vw","vh"],i=R(!1),a=me({left:0,top:0}),s=R(""),r=R(),_=ue(()=>({left:a.left+"px",top:a.top+"px"})),y=(p,S)=>{if(i.value||S){const x=r.value.getBoundingClientRect();a.left=parseInt(String(p.clientX-x.x)),a.top=parseInt(String(p.clientY-x.y))}};Z(a,()=>{l.x=parseInt(String((a.left-o.boxSize/2)/o.boxSize*o.max)),l.y=parseInt(String((a.top-o.boxSize/2)/o.boxSize*o.max))}),Z(l,()=>{let p=`${l.x}${l.x_unit} ${l.y}${l.y_unit} ${l.vague}${l.vague_unit} ${l.extend}${l.extend_unit} ${l.color}`;l.type==="inset"&&(p=p+" inset"),e("update:modelValue",p)});const E=p=>{y(p,1),i.value=!0},k=p=>{p?.indexOf(" inset")>-1&&(l.type="inset",p=p.replace(" inset",""));const S=p.split("rgba");let x,F;S.length>1?(x="rgba"+S[1].trim(),F=S[0].trim().split(" ")):(F=S[0].trim().split(" "),x=F.pop()),l.color=x||"#000",l.x=parseInt(F[0])||0,l.y=parseInt(F[1])||0,l.vague=parseInt(F[2])||0,l.extend=parseInt(F[3])||0;const m=c=>{let v=c?.replace(/[-\d.]/g,"")||"px";return u.indexOf(v)===-1&&(v="px"),v};l.x_unit=m(F[0]),l.y_unit=m(F[1]),l.vague_unit=m(F[2]),l.extend_unit=m(F[3]),a.left=o.boxSize/2+l.x/o.max*o.boxSize||0,a.top=o.boxSize/2+l.y/o.max*o.boxSize||0},C=p=>{const S=p.value;k(S)};return Se(()=>{k(o.modelValue)}),(p,S)=>{const x=b("el-radio-button"),F=b("el-radio-group"),m=b("el-form-item"),c=b("dk-color-input"),v=b("el-input"),f=b("el-option"),V=b("el-select"),A=b("el-form"),$=b("el-button");return h(),w("div",{ref_key:"el",ref:n,class:"dk-style-shadow-content",style:G({"--shadow-box-width":t.boxSize+"px"})},[d(A,{"label-width":"60px","label-position":"left",class:"shadow-form-content",size:t.size},{default:g(()=>[d(m,{label:"\u6A21\u5F0F"},{default:g(()=>[d(F,{modelValue:l.type,"onUpdate:modelValue":S[0]||(S[0]=T=>l.type=T)},{default:g(()=>[d(x,{value:"external"},{default:g(()=>[N("\u5916\u90E8")]),_:1}),d(x,{value:"inset"},{default:g(()=>[N("\u5185\u90E8")]),_:1})]),_:1},8,["modelValue"])]),_:1}),d(m,{label:"\u989C\u8272"},{default:g(()=>[d(c,{modelValue:l.color,"onUpdate:modelValue":S[1]||(S[1]=T=>l.color=T),"show-alpha":"",teleported:!1},null,8,["modelValue"])]),_:1}),d(m,{label:"x\u8F74"},{default:g(()=>[D("div",Kf,[d(v,{modelValue:l.x,"onUpdate:modelValue":S[2]||(S[2]=T=>l.x=T),type:"number"},null,8,["modelValue"]),d(V,{modelValue:l.x_unit,"onUpdate:modelValue":S[3]||(S[3]=T=>l.x_unit=T),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[(h(),w(W,null,te(u,T=>d(f,{key:T,label:T,value:T},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),d(m,{label:"y\u8F74"},{default:g(()=>[D("div",Qf,[d(v,{modelValue:l.y,"onUpdate:modelValue":S[4]||(S[4]=T=>l.y=T),type:"number"},null,8,["modelValue"]),d(V,{modelValue:l.y_unit,"onUpdate:modelValue":S[5]||(S[5]=T=>l.y_unit=T),placeholder:"\u8BF7\u9009\u62E9",class:"w-40px"},{default:g(()=>[(h(),w(W,null,te(u,T=>d(f,{key:T,label:T,value:T},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),d(m,{label:"\u6A21\u7CCA"},{default:g(()=>[D("div",Zf,[d(v,{modelValue:l.vague,"onUpdate:modelValue":S[6]||(S[6]=T=>l.vague=T),type:"number"},null,8,["modelValue"]),d(V,{modelValue:l.vague_unit,"onUpdate:modelValue":S[7]||(S[7]=T=>l.vague_unit=T),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[(h(),w(W,null,te(u,T=>d(f,{key:T,label:T,value:T},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),d(m,{label:"\u6269\u5C55"},{default:g(()=>[D("div",em,[d(v,{modelValue:l.extend,"onUpdate:modelValue":S[8]||(S[8]=T=>l.extend=T),type:"number"},null,8,["modelValue"]),d(V,{modelValue:l.extend_unit,"onUpdate:modelValue":S[9]||(S[9]=T=>l.extend_unit=T),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[(h(),w(W,null,te(u,T=>d(f,{key:T,label:T,value:T},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1})]),_:1},8,["size"]),D("div",tm,[D("div",om,[nm,(h(!0),w(W,null,te(o.defaultStyles,(T,M)=>(h(),I($,{key:M,size:"small",onClick:U=>C(T)},{default:g(()=>[N(Q(T.label),1)]),_:2},1032,["onClick"]))),128))]),D("div",{ref_key:"box",ref:r,class:ae(["shadow-content-box",i.value?"down":""]),style:G({height:t.boxSize+"px",width:t.boxSize+"px"}),onClick:S[10]||(S[10]=T=>y(T,1)),onMousedown:E,onMouseup:S[11]||(S[11]=T=>i.value=!1),onMousemove:S[12]||(S[12]=T=>y(T,0))},[D("span",{id:"spot",style:G(_.value)},um,4),D("span",{id:"center-spot",style:G({top:t.boxSize/2+"px",left:t.boxSize/2+"px"})},null,4),D("div",{class:"x-hr",style:G({top:t.boxSize/2+"px"})},null,4),D("div",{class:"y-hr",style:G({left:t.boxSize/2+"px"})},null,4),D("div",{class:"line",style:G(s.value)},null,4)],38)])],4)}}}),rm=Y(im,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-content.vue"]]);const Ea=fe(Jf),ka=fe(rm),Fa={modelValue:{type:Object,default:()=>({})}},sm={class:"m-t-10px"},dm=["onClick"],cm=j({name:"DkStylePositionInput"});var pm=j({...cm,props:Fa,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=R(null),{width:l}=gt(n),u=ue(()=>l.value<=300?24:l.value<800?12:6),i=R({left:o.modelValue.left||"",top:o.modelValue.top||"",right:o.modelValue.right||"",bottom:o.modelValue.bottom||""}),a=[{label:"\u4E0A",value:"top",tip:"\u5F53\u524D\u8DDD\u79BB\u9876\u90E8\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u53F3",value:"right",tip:"\u5F53\u524D\u8DDD\u79BB\u53F3\u4FA7\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u4E0B",value:"bottom",tip:"\u5F53\u524D\u8DDD\u79BB\u5E95\u90E8\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u5DE6",value:"left",tip:"\u5F53\u524D\u8DDD\u79BB\u5DE6\u4FA7\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"}],s=[{label:"\u5DE6\u4E0A",value:"left-top"},{label:"\u5DE6\u4E0B",value:"left-down"},{label:"\u53F3\u4E0A",value:"right-top"},{label:"\u53F3\u4E0B",value:"right-down"},{label:"\u4E0B\u5C45\u4E2D",value:"down-center"},{label:"\u4E0A\u5C45\u4E2D",value:"up-center"}],r=R(!1),_=E=>{switch(r.value=!0,E){case"left-top":i.value={left:"1px",top:"1px",right:"",bottom:""};break;case"left-down":i.value={left:"1px",bottom:"1px",right:"",up:""};break;case"right-top":i.value={top:"1px",right:"1px",left:"",bottom:""};break;case"right-down":i.value={right:"1px",bottom:"1px",left:"",up:""};break;case"down-center":i.value={left:"1px",right:"1px",bottom:"1px",up:""};break;case"up-center":i.value={left:"1px",top:"1px",right:"1px",bottom:""};break}},y=()=>{const E=Object.keys(i.value).reduce((k,C)=>((r.value&&i.value[C]!="0px"||!r.value&&C!=="position")&&i.value[C]&&(k[C]=i.value[C]),k),{});e("update:modelValue",E)};return Z(()=>i.value,()=>{y()},{deep:!0}),Z(()=>o.modelValue,()=>{Object.keys(o.modelValue).reduce((E,k)=>(k!=="position"&&(E[k]=o.modelValue[k]),E),i.value)},{deep:!0}),(E,k)=>{const C=b("el-radio-button"),p=b("el-radio-group"),S=b("el-form-item"),x=b("el-tooltip"),F=b("dk-style-number-input"),m=b("el-col"),c=b("el-row"),v=b("el-form");return h(),w("div",{ref_key:"el",ref:n,class:"dk-style-position-input"},[d(v,{"label-width":"50px","label-position":"left"},{default:g(()=>[D("div",null,[d(S,{label:"\u5E38\u7528"},{default:g(()=>[d(p,{onChange:_},{default:g(()=>[(h(),w(W,null,te(s,(f,V)=>d(C,{key:V,label:f.value},{default:g(()=>[N(Q(f.label),1)]),_:2},1032,["label"])),64))]),_:1})]),_:1})]),D("div",sm,[d(c,{gutter:20},{default:g(()=>[(h(),w(W,null,te(a,(f,V)=>d(m,{key:V,span:u.value,class:"m-b-5px"},{default:g(()=>[d(S,{label:f.label},{label:g(()=>[d(x,{class:"item",effect:"dark",content:f.tip,placement:"top"},{default:g(()=>[D("span",{style:G([{cursor:"pointer"},i.value[f.value]?"color:var(--el-color-primary)":""]),onClick:A=>i.value[f.value]=""},Q(f.label)+"\uFF1A",13,dm)]),_:2},1032,["content"])]),default:g(()=>[d(F,{modelValue:i.value[f.value],"onUpdate:modelValue":A=>i.value[f.value]=A,onInput:k[0]||(k[0]=A=>r.value=!1)},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:2},1032,["span"])),64))]),_:1})])]),_:1})],512)}}}),fm=Y(pm,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-position-input\\src\\style-position-input.vue"]]);const wa=fe(fm),Da={modelValue:{default:"",type:String},icon:{default:"",type:String},direction:{default:"horizontal",type:String},units:{type:Array,default:()=>["px","%"]},showUnit:{default:!0,type:Boolean},tooltipContent:{default:"",type:String}},mm=j({name:"DkStyleNumberInput"});var hm=j({...mm,props:Da,emits:["input","update:modelValue"],setup(t,{emit:e}){const o=t,n=yu(o.modelValue,o.units),l=me({number:n.number,unit:n.unit||"px"}),u=R(!1),i=R(null),a=R(null),s=R(0),r=R(0),_=k=>{u.value=!0,r.value=k.clientX,s.value=k.clientY,i.value=y.bind(k),a.value=E.bind(k),document.addEventListener("mousemove",i.value),document.addEventListener("mouseup",a.value),document.body.style.cursor="ew-resize"},y=k=>{if(u.value){let C;if(o.direction==="horizontal"){const p=k.clientX-r.value;C=Math.floor(p/10),r.value+=C*10}else if(o.direction==="vertical"){const p=k.clientY-s.value;C=Math.floor(p/10),s.value+=C*10}l.number=parseInt(l.number+C)}},E=()=>{console.log("up"),document.removeEventListener("mousemove",i.value),document.removeEventListener("mouseup",a.value),document.body.style.cursor="default",u.value=!1};return Z(()=>l,()=>{l.number===""?e("update:modelValue",""):e("update:modelValue",l.number+l.unit)},{deep:!0}),Z(()=>o.modelValue,()=>{const k=yu(o.modelValue,o.units);l.number=k.number,l.unit=k.unit||"px"}),(k,C)=>{const p=b("dk-icon"),S=b("el-tooltip"),x=b("el-option"),F=b("el-select"),m=b("el-input");return h(),w("div",{class:ae(["dk-style-number-input",o.direction])},[d(m,{modelValue:l.number,"onUpdate:modelValue":C[1]||(C[1]=c=>l.number=c),type:"text",controls:!1,onInput:C[2]||(C[2]=c=>e("input",c))},Ct({prefix:g(()=>[D("span",{class:ae(["w-resize",[`${o.direction}-resize`]]),onMousemove:y,onMousedown:_,onMouseup:E},[d(S,{class:"item",effect:"dark",disabled:!o.tooltipContent,content:o.tooltipContent,placement:"top","open-delay":500},{default:g(()=>[d(p,{icon:o.icon||"Rank"},null,8,["icon"])]),_:1},8,["disabled","content"])],34)]),_:2},[k.showUnit?{name:"append",fn:g(()=>[d(F,{modelValue:l.unit,"onUpdate:modelValue":C[0]||(C[0]=c=>l.unit=c),style:{width:"40px"},"suffix-icon":""},{default:g(()=>[(h(!0),w(W,null,te(k.units,(c,v)=>(h(),I(x,{key:v,label:c,value:c},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),key:"0"}:void 0]),1032,["modelValue"])],2)}}}),gm=Y(hm,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-number-input\\src\\style-number-input.vue"]]);const Ca=fe(gm);function lo(t,e,o){t[e]=o}const We={type(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"},Undef(t){return t==null},Element(t){return typeof t=="object"&&t!==null&&t.nodeType===1&&!We.Object(t)},trueArray(t){return Array.isArray(t)&&t.length>0},Function(t){const e=this.getType(t);return e==="Function"||e==="AsyncFunction"},getType(t){const e=Object.prototype.toString.call(t);return/^\[object (.*)\]$/.exec(e)[1]},empty(t){return t==null||Array.isArray(t)&&Array.isArray(t)&&!t.length?!0:typeof t=="string"&&!t}};["Date","Object","String","Boolean","Array","Number"].forEach(t=>{We[t]=function(e){return We.type(e,t)}});function vm(t,e){return{}.hasOwnProperty.call(t,e)}function Aa(t,e={},o){let n=!1;for(let l in e)if(Object.prototype.hasOwnProperty.call(e,l)){let u=e[l];if((n=Array.isArray(u))||We.Object(u)){let i=t[l]===void 0;if(n)n=!1,i&&lo(t,l,[]);else if(u._clone&&o!==void 0)if(o)u=u.getRule(),i&&lo(t,l,{});else{lo(t,l,u._clone());continue}else i&&lo(t,l,{});t[l]=Aa(t[l],u,o)}else lo(t,l,u),We.Undef(u)||(We.Undef(u.__json)||(t[l].__json=u.__json),We.Undef(u.__origin)||(t[l].__origin=u.__origin))}return o!==void 0&&Array.isArray(t)?t.filter(l=>!l||!l.__ctrl):t}function jt(t){return Aa({},{value:t}).value}function xa(t){return t.replace(t[0],t[0].toLowerCase())}const ym={class:"preview-phone"},_m={class:"phone"},bm={class:"phone-header"},Em={class:"phone-header-top"},km={class:"phone-time"},Fm=D("div",null,null,-1),wm={class:"phone-battery"},Dm=D("span",{class:"m-r-4px"},"100%",-1),Cm={class:"phone-title"},Am={class:"phone-title-icon"},xm=D("div",null,"\u9875\u9762\u6807\u9898",-1),Bm={class:"phone-title-icon"},Sm=j({name:"PreviewPhone"});var Vm=j({...Sm,props:{value:{default:"",type:String},pageConfig:{default:()=>{},type:[Object]}},setup(t){const e=t,o=ut("diy"),n="preview-phone",l=JSON.parse(at.get(n)||"{}"),u=R({showLine:l.showLine||!0,margin:l.margin||2,preview:l.preview||!1,closeAnimate:l.closeAnimate||!1});to("previewSetting",u);const i=()=>{at.set(n,JSON.stringify(u.value))},a=(_="")=>{const{proxy:y}=o,E={rule:"\u7EC4\u4EF6",config:"\u914D\u7F6E"};vn.confirm("\u5F53\u524D\u8981\u6E05\u9664"+E[_]+"\uFF0C\u662F\u5426\u7EE7\u7EED?","\u8B66\u544A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{y.clear(_),Ie.success("\u6E05\u9664\u6210\u529F")}).catch(()=>{})},s=ue(()=>{let _={"--padding":"0","--overflow":"initial"};return u.value.showLine&&!u.value.preview&&(_={"--margin":u.value.margin+"px","--showDashed":"1px"}),u.value.preview?(_["--padding"]="0",_["--overflow"]="hidden",_["--minHeight"]="0px"):(_["--padding"]="2px 0",_["--overflow"]="initial",_["--minHeight"]="30px"),{...e.pageConfig.style,..._}}),r=ue(()=>{const _=new Date,y=_.getHours(),E=_.getMinutes();return y+":"+E});return(_,y)=>{const E=b("van-icon"),k=b("dk-icon"),C=b("el-dropdown-item"),p=b("el-dropdown-menu"),S=b("el-dropdown"),x=b("el-tooltip"),F=b("el-switch"),m=b("el-form-item"),c=b("el-slider"),v=b("el-popover");return h(),w("div",ym,[D("div",_m,[D("div",bm,[D("div",Em,[D("div",km,[D("span",null,Q(r.value),1),d(E,{name:"wechat",color:"#2ddd71"})]),Fm,D("div",wm,[Dm,d(k,{icon:"gg:battery-full",size:18,color:"#555","hover-color":"#f00"})])]),D("div",Cm,[D("div",Am,[d(S,{trigger:"click",placement:"bottom-start"},{dropdown:g(()=>[d(p,null,{default:g(()=>[d(C,{onClick:y[0]||(y[0]=f=>a("rule"))},{default:g(()=>[N("\u6E05\u9664\u7EC4\u4EF6")]),_:1}),d(C,{onClick:y[1]||(y[1]=f=>a("page"))},{default:g(()=>[N("\u6E05\u9664\u9875\u9762")]),_:1})]),_:1})]),default:g(()=>[d(k,{icon:"Close","hover-color":"var(--el-color-primary)",size:20,style:{cursor:"pointer"}})]),_:1})]),xm,D("div",Bm,[d(v,{placement:"bottom",width:200,trigger:"click"},{reference:g(()=>[d(k,{icon:"MoreFilled",size:20,"hover-color":"var(--el-color-primary)",style:{cursor:"pointer"}})]),default:g(()=>[d(m,{label:"\u663E\u793A\u7F51\u683C"},{label:g(()=>[d(x,{class:"box-item",effect:"dark",content:"\u663E\u793A\u7EC4\u4EF6\u7F51\u683C\u7EBF",placement:"right-start"},{default:g(()=>[N(" \u663E\u793A\u7F51\u683C ")]),_:1})]),default:g(()=>[d(F,{modelValue:u.value.showLine,"onUpdate:modelValue":y[2]||(y[2]=f=>u.value.showLine=f),onChange:y[3]||(y[3]=f=>i())},null,8,["modelValue"])]),_:1}),d(m,{label:"\u7F51\u683C\u95F4\u8DDD"},{label:g(()=>[d(x,{class:"box-item",effect:"dark",content:"\u8BBE\u7F6E\u7EC4\u4EF6\u4E4B\u95F4\u7684\u7F51\u683C\u95F4\u8DDD",placement:"right-start"},{default:g(()=>[N(" \u7F51\u683C\u95F4\u8DDD ")]),_:1})]),default:g(()=>[d(c,{modelValue:u.value.margin,"onUpdate:modelValue":y[4]||(y[4]=f=>u.value.margin=f),min:0,step:1,"show-stops":"",max:20,onChange:y[5]||(y[5]=f=>i())},null,8,["modelValue"])]),_:1}),d(m,{label:"\u6548\u679C\u9884\u89C8"},{label:g(()=>[d(x,{class:"box-item",effect:"dark",content:"\u6E05\u9664\u6240\u6709\u7F51\u683C\u3001\u95F4\u8DDD\u6548\u679C\uFF0C\u5927\u81F4\u548C\u771F\u5B9E\u5DEE\u4E0D\u591A",placement:"right-start"},{default:g(()=>[N(" \u6548\u679C\u9884\u89C8 ")]),_:1})]),default:g(()=>[d(F,{modelValue:u.value.preview,"onUpdate:modelValue":y[6]||(y[6]=f=>u.value.preview=f),onChange:y[7]||(y[7]=f=>i())},null,8,["modelValue"])]),_:1}),d(m,{label:"\u5173\u95ED\u52A8\u753B"},{label:g(()=>[d(x,{class:"box-item",effect:"dark",content:"\u5173\u95ED\u6240\u6709\u9884\u89C8\u7684\u52A8\u753B\u6548\u679C",placement:"right-start"},{default:g(()=>[N(" \u5173\u95ED\u52A8\u753B ")]),_:1})]),default:g(()=>[d(F,{modelValue:u.value.closeAnimate,"onUpdate:modelValue":y[8]||(y[8]=f=>u.value.closeAnimate=f),onChange:y[9]||(y[9]=f=>i())},null,8,["modelValue"])]),_:1})]),_:1})])])]),D("div",{class:"phone-body _fc-m-drag",style:G(s.value)},[Ee(_.$slots,"default")],4)])])}}}),$m=Y(Vm,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\PreviewPhone.vue"]]);const Tm="\u6D77\u62A5",Ba="dk-poster-btn";var Vn={icon:"icon-park-outline:mark",label:Tm,name:Ba,rule(){return{type:Ba,props:{},showStyle:!0,fixed:!0}},props(){return[{type:"DkPosterInput",field:"posterData",title:"\u6D77\u62A5\u6570\u636E",value:{}},{type:"input",field:"footerText",title:"\u5E95\u90E8",value:"\u957F\u6309\u6D77\u62A5\u56FE\u7247\u5206\u4EAB\u6216\u4FDD\u5B58\uFF01"},{type:"select",field:"type",title:"\u6837\u5F0F",value:"btn",options:[{label:"\u666E\u901A\u6309\u94AE",value:"btn"},{label:"\u60AC\u6D6E\u6309\u94AE",value:"fixed_btn"},{label:"\u56FE\u7247\u6309\u94AE",value:"image"},{label:"\u4E8B\u4EF6\u89E6\u53D1",value:"event"}],control:[{value:"btn",rule:[{type:"input",field:"btnText",title:"\u6309\u94AE\u6587\u5B57",value:"\u83B7\u53D6\u63A8\u5E7F\u6D77\u62A5"},{type:"switch",field:"block",title:"\u5757\u72B6\u6309\u94AE",value:!0},{type:"switch",field:"round",title:"\u5706\u5F27",value:!0},{type:"select",field:"size",title:"\u5C3A\u5BF8",value:"normal",options:[{label:"\u8FF7\u4F60\u6309\u94AE",value:"mini"},{label:"\u5C0F\u578B\u6309\u94AE",value:"small"},{label:"\u4E2D\u578B\u6309\u94AE",value:"normal"},{label:"\u5927\u578B\u6309\u94AE",value:"large"}]},{type:"DkColorInput",field:"color",title:"\u989C\u8272",value:"#ff3d2c"},{type:"DkColorInput",field:"color2",title:"\u6E10\u53D8\u8272",value:""}]},{value:"fixed_btn",rule:[{type:"input",field:"fBtnText",title:"\u60AC\u6D6E\u6587\u5B57",value:"\u6D77\u62A5"},{type:"DkColorInput",field:"fBgColor",title:"\u80CC\u666F\u8272",value:"#ff3d2c"},{type:"DkColorInput",field:"fColor",title:"\u6587\u5B57\u8272",value:"#fff"},{type:"slider",field:"fSize",title:"\u5C3A\u5BF8",value:30,props:{min:30,max:100}}]},{value:"image",rule:[{type:"DkImageInput",field:"img",title:"\u56FE\u7247",value:""},{type:"slider",field:"imgSize",title:"\u5C3A\u5BF8",value:20,props:{min:20,max:100}}]},{value:"event",rule:[{type:"input",field:"listen",title:"\u76D1\u542C\u4E8B\u4EF6",value:""}]}],effect:{help:"\u914D\u7F6E\u540E\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u3010\u6837\u5F0F\u8BBE\u7F6E\u3011->\u3010\u7EC4\u4EF6\u60AC\u6D6E\u3011\u5BF9\u6309\u94AE\u8FDB\u884C\u60AC\u6D6E"}}]}};const Im="\u5F39\u5E55\u7EC4\u4EF6",Sa="DkViewBulletChat";var $n={icon:"mingcute:chat-1-line",label:Im,name:Sa,rule(){return{type:Sa,props:{dataType:"default",bulletData:[{text:"\u5C0F\u660E\u572814\u5206\u949F\u8D2D\u4E70\u4E86iPhone\u624B\u673A",avatar:"https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"}]},fixed:!0,showStyle:!0}},props(){return[{type:"DkColorInput",field:"bgColor",title:"\u80CC\u666F\u8272",props:{showAlpha:!0},value:"rgb(0 0 0 / 30%)"},{type:"DkColorInput",field:"textColor",title:"\u6587\u5B57\u8272",value:"#fff"},{type:"inputNumber",field:"autoplay",title:"\u6EDA\u52A8\u9891\u7387",value:3e3,props:{min:1e3,max:1e4,step:500}},{type:"select",field:"dataType",title:"\u5185\u5BB9\u6765\u6E90",value:"default",options:[{label:"\u624B\u52A8\u586B\u5199",value:"default"},{label:"\u4E8B\u4EF6\u4F20\u53C2",value:"event"}],control:[{value:"default",rule:[{type:"dk-group",field:"bulletData",value:[{text:"\u5C0F\u660E\u572814\u5206\u949F\u8D2D\u4E70\u4E86iPhone\u624B\u673A",avatar:"https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"}],props:{titleField:"text",defaultValue:{avatar:"",text:""},rule:[{type:"input",field:"text",title:"\u63CF\u8FF0"},{type:"dkImageInput",field:"avatar",title:"\u5934\u50CF",value:""}]}}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"eventName",title:"\u4E8B\u4EF6\u540D\u79F0",value:"",props:{label:"\u5F39\u5E55\u4E8B\u4EF6"},effect:{help:"\u9009\u62E9\u652F\u6301\u5F39\u5E55\u7684\u4E8B\u4EF6\uFF0C\u5185\u5BB9\u5C06\u7531\u8BE5\u4E8B\u4EF6\u4F20\u9012\u53C2\u6570"}}]}]}]}};const Rm="\u5355\u5143\u683C",Va="DkViewCell";var Tn={icon:"cil:grid",label:Rm,name:Va,rule(){return{type:Va,props:{groups:[{title:"\u6807\u9898",value:"\u5185\u5BB9"}]},showStyle:!0,children:[],style:{}}},props(){return[{type:"DkGroup",field:"groups",value:[],props:{title:"\u6570\u636E",defaultValue:{title:"\u6807\u9898",value:"\u5185\u5BB9"},rule:[{type:"input",field:"title",title:"\u540D\u79F0"},{type:"input",field:"value",title:"\u81EA\u5B9A\u4E49\u6570\u636E"}]}}]}};const Om="\u901A\u7528\u6309\u94AE",$a="DkViewCommonBtn";var In={icon:"game-icons:power-button",label:Om,name:$a,rule(){return{type:$a,props:{fBtnText:"\u81EA\u5B9A\u4E49",fWSize:80,fHSize:20},showStyle:!0,fixed:!0,trigger:!0,event:!0}},props(){return[{type:"select",field:"click_type",title:"\u70B9\u51FB\u903B\u8F91",value:"event",options:[{label:"\u94FE\u63A5\u8DF3\u8F6C",value:"url"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"url",rule:[{type:"DkLinkInput",field:"url",title:"\u9009\u62E9\u94FE\u63A5",value:""}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"event",title:"\u4E8B\u4EF6\u540D\u79F0",value:"",effect:{help:"\u914D\u7F6E\u88AB\u89E6\u53D1\u7684\u4E8B\u4EF6\u540D\u79F0\uFF0C\u540D\u79F0\u4EC5\u4E3A\u82F1\u6587\u5B57\u7B26"}}]}]},{type:"select",field:"type",title:"\u6837\u5F0F",value:"btn",options:[{label:"\u666E\u901A\u6309\u94AE",value:"btn"},{label:"\u56FE\u6587\u6309\u94AE",value:"text_image_btn"}],control:[{value:"btn",rule:[{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"",props:{isVant:!0}},{type:"input",field:"btnText",title:"\u6309\u94AE\u6587\u5B57",value:"\u6309\u94AE\u540D\u79F0"},{type:"switch",field:"block",title:"\u5757\u72B6\u6309\u94AE",value:!0},{type:"switch",field:"round",title:"\u5706\u5F27",value:!0},{type:"select",field:"size",title:"\u5C3A\u5BF8",value:"normal",options:[{label:"\u8FF7\u4F60\u6309\u94AE",value:"mini"},{label:"\u5C0F\u578B\u6309\u94AE",value:"small"},{label:"\u4E2D\u578B\u6309\u94AE",value:"normal"},{label:"\u5927\u578B\u6309\u94AE",value:"large"}]},{type:"DkColorInput",field:"color",title:"\u989C\u8272",value:"#ff3d2c",col:{span:12},props:{showAlpha:!0}},{type:"DkColorInput",field:"color2",title:"\u6E10\u53D8\u8272",value:"",col:{span:12},props:{showAlpha:!0}}]},{value:"text_image_btn",rule:[{type:"input",field:"fBtnText",title:"\u6587\u5B57",value:"\u81EA\u5B9A\u4E49\u6587\u672C",control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"fontSize",title:"\u6587\u5B57\u5927\u5C0F",value:12,props:{min:12,max:32},col:{span:12}},{type:"inputNumber",field:"fontTopSize",title:"\u5411\u4E0A\u95F4\u8DDD",value:0,props:{min:0,max:32},col:{span:12}}]}]},{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"",props:{isVant:!0},control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"iconSize",title:"\u56FE\u6807\u5927\u5C0F",value:12,props:{min:12,max:32},col:{span:12}}]}]},{type:"switch",field:"isTextBlock",title:"\u9650\u5236\u5BBD\u9AD8",value:!1,control:[{value:!0,rule:[{type:"slider",field:"borderRadius",title:"\u5F27\u5EA6",value:0,props:{min:0,max:100}},{type:"DkColorInput",field:"fBgColor",title:"\u80CC\u666F\u8272",value:"#ff3d2c",props:{showAlpha:!0},col:{span:8}},{type:"DkColorInput",field:"fColor",title:"\u6587\u5B57\u8272",value:"#fff",col:{span:8,offset:4}},{type:"inputNumber",field:"fWSize",title:"\u5BBD",value:30,props:{min:20,max:400,step:10},col:{span:8}},{type:"inputNumber",field:"fHSize",title:"\u9AD8",value:30,props:{min:20,max:400,step:10},col:{span:8,offset:4}}]}]},{type:"DkImageInput",field:"img",title:"\u56FE\u7247",value:"",control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"imgSize",title:"\u56FE\u7247\u5BBD\u5EA6",value:20,props:{min:20,max:400,step:10}}]}]}]}],effect:{help:"\u914D\u7F6E\u540E\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u3010\u6837\u5F0F\u8BBE\u7F6E\u3011->\u3010\u7EC4\u4EF6\u60AC\u6D6E\u3011\u5BF9\u6309\u94AE\u8FDB\u884C\u60AC\u6D6E"}}]}};const zm="\u5F39\u7A97\u7EC4\u4EF6",Ta="DkViewDialog";var Rn={icon:"mi:window",label:zm,name:Ta,event:!0,rule(){return{type:Ta,props:{title:"\u901A\u77E5",listen:""},showStyle:!0,fixed:!0}},props(){return[{type:"DkEventCreateInput",field:"listen",title:"\u76D1\u542C\u4E8B\u4EF6",value:"",props:{label:"\u5F39\u7A97\u7EC4\u4EF6"}},{type:"input",field:"title",title:"\u5F39\u7A97\u6807\u9898",value:"\u901A\u77E5"},{type:"dk-tiny-editor",field:"content",title:"\u5F39\u7A97\u5185\u5BB9",props:{buttonText:"\u7F16\u8F91\u5F39\u7A97\u5185\u5BB9"},value:""},{type:"input",field:"confirmText",title:"\u6309\u94AE\u6587\u5B57",value:"\u786E\u5B9A"},{type:"switch",field:"show",title:"\u9884\u89C8",value:!1,effect:{help:"\u5F53\u524D\u4E3A\u9884\u89C8\u6309\u94AE\uFF0C\u4E0D\u5F71\u54CD\u5B9E\u9645\u663E\u793A\uFF0C\u70B9\u51FB\u540E\u5728\u9884\u89C8\u7A97\u53E3\u70B9\u786E\u5B9A\u5373\u53EF\u5173\u95ED"}},{type:"radio",field:"copy",title:"\u590D\u5236\u5185\u5BB9",value:"0",options:[{label:"\u4E0D\u590D\u5236",value:"0"},{label:"\u590D\u5236\u5F39\u7A97\u5185\u5BB9",value:"1"},{label:"\u590D\u5236\u81EA\u5B9A\u4E49\u5185\u5BB9",value:"2"}],control:[{value:"2",rule:[{type:"select",field:"copyType",title:"\u590D\u5236\u7C7B\u578B",value:"text",options:[{label:"\u7EAF\u6587\u672C",value:"text"},{label:"\u5BCC\u6587\u672C",value:"html"}],control:[{value:"text",rule:[{type:"input",field:"copyText",title:"\u590D\u5236\u5185\u5BB9",value:"",props:{type:"textarea"}}]},{value:"html",rule:[{type:"dk-tiny-editor",field:"copyHtml",title:"\u590D\u5236\u5185\u5BB9",value:""}]}]}]},{handle:function(t){return t!==""},rule:[{type:"input",field:"copySuccessToast",title:"\u590D\u5236\u63D0\u793A",value:"\u590D\u5236\u6210\u529F",effect:{help:"\u590D\u5236\u6210\u529F\u540E\u7684\u63D0\u793A,\u4E0D\u586B\u5219\u4E0D\u663E\u793A"}}]}]}]}};const jm="\u5217\u8868",Ia="DkViewGridCellList";var On={icon:"fluent:list-bar-16-regular",label:jm,name:Ia,rule(){return{type:Ia,props:{gridCellList:[{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u6296\u52A0",show:!0},{img:"https://cdn.w7.cc/images/2019/05/05/ZtGCY6FSJrKiTuUI5QUypwmNkrYnzQeomSzxBFTG.png",url:"",title:"\u6D3B\u7801",show:!0},{img:"https://cdn.w7.cc/images/2018/06/23/Qz4xGLTdUFddn8pLUhfZ6MxrxdL5tlUI1wlyyAKd.png",url:"",title:"\u62D3\u5BA2",show:!0}],imgTextGutter:20},showStyle:!0}},props(){return[{type:"radio",field:"type",title:"\u7C7B\u578B",value:"cell",options:[{value:"cell",label:"\u5217\u8868"},{value:"grid",label:"\u5BAB\u683C"}],control:[{value:"cell",rule:[{type:"slider",field:"cellImgSize",title:"\u56FE\u7247\u5927\u5C0F",value:20,props:{min:5,max:80}},{type:"slider",field:"imgTextGutter",title:"\u56FE\u6587\u95F4\u8DDD",value:20,props:{min:0,max:80}}]},{value:"grid",rule:[{type:"InputNumber",field:"columnNum",title:"\u5BAB\u683C\u5217\u6570",value:4,props:{min:1,max:8}},{type:"InputNumber",field:"gutter",title:"\u95F4\u8DDD",value:0,props:{min:0,max:20}},{type:"slider",field:"gridImgSize",title:"\u56FE\u7247\u5927\u5C0F",value:40,props:{min:10,max:200}},{type:"switch",field:"border",title:"\u663E\u793A\u8FB9\u6846",value:!0},{type:"switch",field:"square",title:"\u6B63\u65B9\u5F62",value:!1},{type:"radio",field:"direction",title:"\u5E03\u5C40\u65B9\u5F0F",value:"vertical",options:[{value:"vertical",label:"\u7EB5\u5411"},{value:"horizontal",label:"\u6A2A\u5411"}],control:[{value:"horizontal",rule:[{type:"slider",field:"imgTextGutter",title:"\u56FE\u6587\u95F4\u8DDD",value:20,props:{min:0,max:80}}]}]}]}]},{type:"slider",field:"imgRadius",title:"\u56FE\u7247\u5F27\u5EA6",value:0,props:{min:0,max:100}},{type:"InputNumber",field:"fontSize",title:"\u5B57\u4F53\u5927\u5C0F",value:14,props:{min:9,max:24}},{type:"DkGroup",field:"gridCellList",value:[],props:{title:"\u6570\u636E\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"input",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Pm="\u56FE\u7247",Ra="DkViewImage";var zn={icon:"clarity:image-line",label:Pm,name:Ra,rule(){return{type:Ra,props:{},showStyle:!0}},props(){return[{type:"select",field:"type",title:"\u56FE\u7247\u7C7B\u578B",value:"default",options:[{label:"\u4E00\u884C\u4E00\u4E2A[\u9ED8\u8BA4]",value:"default"},{label:"\u6A2A\u5411\u6EDA\u52A8",value:"slide"}],control:[{value:"default",rule:[{type:"slider",field:"marginBottom",title:"\u5E95\u90E8\u95F4\u8DDD",value:0,props:{min:0,max:100}}]},{value:"slide",rule:[{type:"slider",field:"width",title:"\u5BBD\u5EA6\u6BD4\u4F8B",value:40,props:{min:10,max:100}},{type:"slider",field:"marginRight",title:"\u53F3\u4FA7\u95F4\u8DDD",value:0,props:{min:0,max:100}}]}]},{type:"slider",field:"borderRadius",title:"\u56FE\u7247\u5706\u89D2",value:0,props:{min:0,max:100}},{type:"switch",field:"heightAuto",title:"\u81EA\u5B9A\u4E49\u9AD8\u5EA6",value:!1,control:[{value:!0,rule:[{type:"inputNumber",field:"height",title:"\u56FE\u7247\u9AD8\u5EA6",value:200,props:{min:0,max:1e3}},{type:"select",field:"fit",title:"\u586B\u5145\u6A21\u5F0F",value:"cover",options:[{label:"fill\uFF1A\u62C9\u4F38\u586B\u5145",value:"fill"},{label:"contain\uFF1A\u7F29\u653E\u586B\u5145",value:"contain"},{label:"cover\uFF1A\u6700\u5927\u5BBD\u5EA6\u586B\u5145",value:"cover"},{label:"none\uFF1A\u539F\u59CB\u5C3A\u5BF8",value:"none"},{label:"scale-down\uFF1A\u5BF9\u6BD4\u5BBD\u9AD8\u586B\u5145",value:"scale-down"}]}]}]},{type:"switch",field:"showText",title:"\u663E\u793A\u6587\u5B57",value:!1,control:[{value:!0,rule:[{type:"select",field:"textType",title:"\u6587\u5B57\u6837\u5F0F",value:"default",options:[{label:"\u9ED8\u8BA4",value:"default"},{label:"\u5E95\u90E8",value:"footer"}]}]}]},{type:"DkGroup",field:"imageList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"input",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Mm="\u97F3\u4E50",Oa="DkViewMusic";var jn={icon:"mingcute:music-3-line",label:Mm,name:Oa,rule(){return{type:Oa,props:{musicPath:"",isOpenClose:!1,loop:!0},fixed:!0,showStyle:!0}},props(){return[{type:"dk-audio-input",field:"musicPath",title:"\u97F3\u4E50",value:""},{type:"inputNumber",field:"iconSize",title:"\u5C3A\u5BF8",value:40,props:{min:30,max:200}},{type:"radio",field:"rotation",title:"\u65CB\u8F6C\u65B9\u5411",value:"changeRight",options:[{label:"\u6B63\u5411\u65CB\u8F6C",value:"changeRight"},{label:"\u9006\u5411\u65CB\u8F6C",value:"changeLeft"}]},{type:"inputNumber",field:"speed",title:"\u65CB\u8F6C\u901F\u5EA6",value:5,props:{min:1,max:10}},{type:"select",field:"iconType",title:"\u56FE\u6807\u6837\u5F0F",value:"default",options:[{label:"\u9ED8\u8BA4\u6837\u5F0F",value:"default"},{label:"\u81EA\u5B9A\u4E49\u56FE\u7247",value:"image"}],control:[{value:"default",rule:[]},{value:"image",rule:[{type:"DkImageInput",field:"imgUrl",title:"\u56FE\u7247",value:""}]}],effect:{help:"\u8BBE\u7F6E\u5E94\u7528\u662F\u5426\u65E0\u9650\u5FAA\u73AF111"}},{type:"switch",field:"loop",title:"\u65E0\u9650\u5FAA\u73AF",value:!0,effect:{help:"\u8BBE\u7F6E\u5E94\u7528\u662F\u5426\u65E0\u9650\u5FAA\u73AF111"}}]}};const Nm="\u5BFC\u822A\u680F",za="DkViewNavBar";var Pn={icon:"bx:navigation",label:Nm,name:za,rule(){return{type:za,props:{title:"\u6807\u9898",leftText:"\u8FD4\u56DE",rightText:"\u9996\u9875",leftArrow:!0,border:!1,fixed:!1,placeholder:!1},showStyle:!0,fixed:!0}},props(){return[{type:"input",field:"title",title:"\u6807\u9898"},{type:"input",field:"leftText",title:"\u5DE6\u4FA7\u6587\u5B57"},{type:"input",field:"leftTextUrl",title:"\u5DE6\u4FA7\u5730\u5740"},{type:"input",field:"rightText",title:"\u53F3\u4FA7\u6587\u5B57",value:""},{type:"input",field:"rightTextUrl",title:"\u53F3\u4FA7\u5730\u5740"},{type:"switch",field:"leftArrow",title:"\u5DE6\u4FA7\u7BAD\u5934"},{type:"switch",field:"border",title:"\u4E0B\u8FB9\u6846"}]}};const Um="\u516C\u544A",ja="DkViewNoticeBar";var Mn={icon:"icon-park-outline:volume-notice",label:Um,name:ja,rule(){return{type:ja,props:{text:"\u5728\u4EE3\u7801\u9605\u8BFB\u8FC7\u7A0B\u4E2D\u4EBA\u4EEC\u8BF4\u810F\u8BDD\u7684\u9891\u7387\u662F\u8861\u91CF\u4EE3\u7801\u8D28\u91CF\u7684\u552F\u4E00\u6807\u51C6",leftIcon:"volume-o",delay:0,speed:60},showStyle:!0}},props(){return[{type:"input",field:"text",title:"\u901A\u77E5\u5185\u5BB9"},{type:"dkIconInput",field:"leftIcon",title:"\u9009\u62E9\u56FE\u6807",value:"volume-o",props:{showTab:{el:!1,vant:!0,cloud:!1}}},{type:"dkLinkInput",field:"url",title:"\u8DF3\u8F6C\u5730\u5740"},{type:"DkColorInput",field:"background",title:"\u80CC\u666F\u8272",value:"#fff7cc"},{type:"DkColorInput",field:"color",title:"\u6587\u672C\u989C\u8272",value:"#f60"},{type:"inputNumber",field:"speed",title:"\u6EDA\u52A8\u901F\u7387",value:60,props:{min:5,max:300,step:5}}]}};const Lm="\u8F6E\u64AD",Pa="DkViewSwipe";var Nn={icon:"dashicons:images-alt2",label:Lm,name:Pa,rule(){return{type:Pa,props:{swipeList:[{img:"https://img01.yzcdn.cn/upload_files/2021/07/06/FsivVhWrSJsQWx0GhgOJKS_IOQp_.jpg?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F01",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/07/Fm30KtbmHzLJ96USZWFGI8FLQVss.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F02",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/01/Fj19dCrgsMyTYdrr89b9iheMVFZU.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F03",show:!0}],autoplay:2e3},showStyle:!0}},props(){return[{type:"switch",field:"heightAuto",title:"\u81EA\u5B9A\u4E49\u9AD8\u5EA6",value:!1,control:[{value:!0,rule:[{type:"inputNumber",field:"height",title:"\u56FE\u7247\u9AD8\u5EA6",value:200,props:{min:0,max:500}},{type:"select",field:"fit",title:"\u586B\u5145\u6A21\u5F0F",value:"cover",options:[{label:"fill\uFF1A\u62C9\u4F38\u586B\u5145",value:"fill"},{label:"contain\uFF1A\u7F29\u653E\u586B\u5145",value:"contain"},{label:"cover\uFF1A\u6700\u5927\u5BBD\u5EA6\u586B\u5145",value:"cover"},{label:"none\uFF1A\u539F\u59CB\u5C3A\u5BF8",value:"none"},{label:"scale-down\uFF1A\u5BF9\u6BD4\u5BBD\u9AD8\u586B\u5145",value:"scale-down"}]}]}]},{type:"DkColorInput",field:"bgColor",title:"\u80CC\u666F\u8272",value:""},{type:"slider",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",value:3e3,props:{min:500,max:1e4,step:100,formatTooltip:t=>t/1e3+"\u79D2"}},{type:"el-divider",props:{},children:["\u8F6E\u64AD\u914D\u7F6E"],col:{span:24},field:"divider"},{type:"DkGroup",field:"swipeList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"urlInput",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Hm="\u5E95\u90E8\u5BFC\u822A",Ma="DkViewTabbar";var Un={icon:"fluent:table-bottom-row-32-regular",label:Hm,name:Ma,rule(){return{type:Ma,props:{tabBars:[{title:"\u9996\u9875",icon:"home-o",url:"#"},{title:"\u70ED\u95E8",icon:"fire-o",url:"#"},{title:"\u8D2D\u7269\u8F66",icon:"cart-o",url:"#"},{title:"\u6211\u7684",icon:"user-o",url:"#"}]},fixed:!0,showStyle:!0}},props(){return[{type:"DkColorInput",field:"activeColor",title:"\u9009\u4E2D\u8272",value:"#1989fa"},{type:"DkColorInput",field:"inactiveColor",title:"\u672A\u9009\u4E2D\u8272",value:"#333333"},{type:"DkColorInput",field:"bgColor",title:"\u80CC\u666F\u8272",value:"#fff"},{type:"inputNumber",field:"active",title:"\u9ED8\u8BA4\u9009\u4E2D\u9879",value:1},{type:"DkGroup",field:"tabBars",value:[],props:{title:"\u5BFC\u822A\u6570\u636E",defaultValue:{title:"\u540D\u79F0",icon:"home-o"},rule:[{type:"input",field:"title",title:"\u540D\u79F0"},{type:"switch",field:"useImg",title:"\u4F7F\u7528\u56FE\u7247",value:!1,control:[{value:!1,rule:[{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"",props:{showTab:{el:!1,cloud:!1,vant:!0}}}]},{value:!0,rule:[{type:"dkImageInput",field:"imgIcon",title:"\u9009\u62E9\u56FE\u7247",value:""}]}]},{type:"select",field:"badge",title:"\u9009\u62E9\u5FBD\u6807",value:"",options:[{label:"\u65E0",value:""},{label:"\u5C0F\u70B9",value:"dot"},{label:"\u5FBD\u6807",value:"badge"}],control:[{value:"badge",rule:[{type:"input",field:"badge_text",title:"\u81EA\u5B9A\u4E49\u5185\u5BB9",value:"\u70ED"}]}]},{type:"input",field:"url",title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Wm="\u5BCC\u6587\u672C",Na="DkViewTextarea";var Ln={icon:"fluent:image-alt-text-16-regular",label:Wm,name:Na,rule(){return{type:Na,props:{textarea:"\u8BF7\u968F\u610F\u53D1\u6325\u60A8\u7684\u521B\u4F5C..."},showStyle:!0,children:[]}},props(){return[{type:"el-divider",props:{},children:["\u5185\u5BB9\u7F16\u8F91"],col:{span:24},field:"divider"},{type:"dk-tiny-editor",field:"textarea",value:"\u8BF7\u968F\u610F\u53D1\u6325\u60A8\u7684\u521B\u4F5C..."}]}};const qm="\u89C6\u9891",Ua="DkViewVideo";var Hn={icon:"icon-park-twotone:video-two",label:qm,name:Ua,rule(){return{type:Ua,props:{videoPath:"",isHeight:!1,isOpenClose:!1},showStyle:!0}},props(){return[{type:"dk-image-input",field:"poster",title:"\u5C01\u9762",value:""},{type:"dk-video-input",field:"videoPath",title:"\u89C6\u9891",value:""},{type:"switch",field:"isHeight",title:"\u56FA\u5B9A\u9AD8\u5EA6",value:!0,control:[{value:!0,rule:[{type:"inputNumber",field:"height",title:"\u56FA\u5B9A\u9AD8\u5EA6",value:240,props:{min:240,height:1e3},suffix:{type:"p",style:{fontSize:"12px",color:"#888"},children:["\u8BBE\u7F6E\u89C6\u9891\u7684\u9AD8\u5EA6\u56FA\u5B9A\uFF0C\u9AD8\u5EA6\u56FA\u5B9A\u540E\u53EF\u80FD\u4F1A\u51FA\u73B0\u89C6\u9891\u7578\u5F62,\u89C6\u9891\u672C\u8EAB\u56FA\u5B9A\u6700\u5C0F\u9AD8\u5EA6\u4E3A240px"]}}]}],suffix:{type:"p",style:{fontSize:"12px",color:"#888"},children:["\u89C6\u9891\u5BBD\u5EA6\u9ED8\u8BA4\u4E3A100%\uFF0C\u9AD8\u5EA6\u4E3A\u81EA\u52A8\u5339\u914D\u89C6\u9891\uFF0C\u52FE\u9009\u540E\u53EF\u4EE5\u4F7F\u7528\u56FA\u5B9A\u9AD8\u5EA6"]}},{type:"switch",field:"isOpenClose",title:"\u5F00\u5408\u6A21\u5F0F",suffix:{type:"p",style:{fontSize:"12px",color:"#888"},children:["\u8BBE\u7F6E\u5F00\u542F\u5F00\u5408\u6A21\u5F0F\u540E\uFF0C\u89C6\u9891\u652F\u6301\u4E0A\u6ED1\u7F29\u653E\u5173\u95ED\u4E0B\u6ED1\u7F29\u653E\u6253\u5F00,\u5C3D\u91CF\u5C06\u89C6\u9891\u6A21\u5757\u653E\u7F6E\u9876\u90E8"]}}]}};const Ym=[Vn,$n,Tn,In,Rn,On,zn,jn,Pn,Mn,Nn,Un,Ln,Hn],Gm={[Vn.name]:Vn,[$n.name]:$n,[Tn.name]:Tn,[In.name]:In,[Rn.name]:Rn,[On.name]:On,[zn.name]:zn,[jn.name]:jn,[Pn.name]:Pn,[Mn.name]:Mn,[Nn.name]:Nn,[Un.name]:Un,[Ln.name]:Ln,[Hn.name]:Hn},Xm="\u901A\u7528\u6807\u9898",La="DkViewTitle";var Wn={icon:"ic:sharp-title",label:Xm,name:La,rule(){return{type:La,props:{},showStyle:!0}},props(){return[{type:"input",field:"title",title:"\u540D\u79F0",value:"\u6807\u9898"},{type:"inputNumber",field:"size",title:"\u5927\u5C0F",value:14,props:{min:10,max:24}},{type:"DkColorInput",field:"color",title:"\u989C\u8272",value:""},{type:"switch",field:"bold",title:"\u52A0\u7C97",value:!1},{type:"select",field:"prefix",title:"\u524D\u7F00",value:"",options:[{label:"\u65E0",value:""},{label:"\u56FE\u6807",value:"icon"},{label:"\u56FE\u7247",value:"image"},{label:"\u65B9\u5F62",value:"square"}],control:[{value:"icon",rule:[{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"volume",props:{isVant:!0}},{type:"DkColorInput",field:"prefixColor",title:"\u989C\u8272"},{type:"inputNumber",field:"iconSize",title:"\u56FE\u6807\u5927\u5C0F",value:18}]},{value:"image",rule:[{type:"dkImageInput",field:"prefixImage",title:"\u9009\u62E9\u56FE\u7247",value:""},{type:"inputNumber",field:"imageWidth",title:"\u5BBD",value:24},{type:"inputNumber",field:"imageHeight",title:"\u9AD8",value:24}]},{value:"square",rule:[{type:"inputNumber",field:"squareWidth",title:"\u5BBD",value:3},{type:"inputNumber",field:"squareHeight",title:"\u9AD8",value:18},{type:"DkColorInput",field:"prefixColor",title:"\u989C\u8272",value:"#409eff"}]},{handle(t){return t!==""},rule:[{type:"inputNumber",field:"titleMarginLeft",title:"\u6807\u9898\u95F4\u8DDD",value:4}]}]},{type:"switch",field:"showRight",title:"\u53F3\u4FA7\u8DF3\u8F6C",value:!1,control:[{value:!0,rule:[{type:"input",field:"rTitle",title:"\u53F3\u4FA7\u5185\u5BB9",value:"\u66F4\u591A"},{type:"DkColorInput",field:"rColor",title:"\u53F3\u4FA7\u989C\u8272",value:"#999"},{type:"inputNumber",field:"rSize",title:"\u53F3\u4FA7\u5927\u5C0F",value:14},{type:"dkLinkInput",field:"rUrl",title:"\u8DF3\u8F6C\u5730\u5740"}]}]}]}};const Jm="\u7A7A\u5185\u5BB9",Ha="VanEmpty";var qn={icon:"grommet-icons:test",label:Jm,name:Ha,count:1,rule(){return{type:Ha,wrap:{show:!1},style:{width:"100%"},showStyle:!0,children:[],props:{description:"\u6682\u65E0\u6570\u636E"},fixed:!0}},props(){return[{type:"input",field:"description"},{type:"group",field:"group",title:"group",value:[{field1:"aaa",field2:"sss"},{field1:"aaa",field2:"sss"}],props:{defaultValue:{field1:"field1",field2:"field2"},rule:[{type:"input",field:"field1",title:"field1"},{type:"input",field:"field2",title:"field2"}]}},{type:"object",field:"object",title:"object",value:{field1:"aaa",field2:"sss"},props:{rule:[{type:"input",field:"field1",title:"field1"},{type:"input",field:"field2",title:"field2"}]}}]}},Wa={label:"\u6807\u7B7E",name:"van-tab",inside:!0,drag:!0,dragBtn:!1,mask:!1,rule(){return{type:"van-tab",props:{title:"\u6807\u7B7E"},children:[],showStyle:!0}},props(){return[{type:"input",field:"title",title:"\u6807\u9898"},{type:"switch",field:"disabled",title:"\u7981\u7528"},{type:"switch",field:"dot",title:"\u5C0F\u7EA2\u70B9",effect:{help:"\u662F\u5426\u5728\u6807\u9898\u53F3\u4E0A\u89D2\u663E\u793A\u5C0F\u7EA2\u70B9"}},{type:"input",field:"badge",title:"\u5FBD\u6807",effect:{help:"\u56FE\u6807\u53F3\u4E0A\u89D2\u5FBD\u6807\u7684\u5185\u5BB9"}},{type:"input",field:"url",title:"\u94FE\u63A5\u5730\u5740",effect:{help:"\u70B9\u51FB\u540E\u8DF3\u8F6C\u7684\u94FE\u63A5\u5730\u5740,\u5728\u914D\u7F6E\u540E\u4E0D\u8981\u5C1D\u8BD5\u53BB\u70B9\u51FB\uFF0C\u5426\u5219\u4F1A\u8DF3\u51FA\u53BB"}}]}},Yn={icon:"gg:tab",label:"\u6807\u7B7E\u9875",name:"VanTabs",children:"van-tab",mask:!1,rule(){return{type:"van-tabs",style:"width:100%;",children:[],showStyle:!0}},props(){return[{type:"switch",field:"show-header",title:"\u6807\u9898\u680F",value:!0,control:[{value:!0,rule:[{type:"select",field:"type",title:"\u98CE\u683C\u7C7B\u578B",options:[{label:"\u5361\u7247",value:"card"},{label:"\u7EBF\u6761",value:"line"}],effect:{help:"\u6837\u5F0F\u98CE\u683C\u7C7B\u578B"},control:[{value:"line",rule:[{type:"switch",field:"border",title:"\u5916\u8FB9\u6846",value:""}]}],value:"line"},{type:"DkColorInput",field:"color",title:"\u4E3B\u9898\u8272",value:"#1989fa",effect:{help:"\u6807\u7B7E\u7684\u4E3B\u9898\u8272"}},{type:"DkColorInput",field:"background",title:"\u80CC\u666F\u8272",value:"white",effect:{help:"\u6807\u7B7E\u680F\u7684\u80CC\u666F\u8272"}},{type:"DkColorInput",field:"title-active-color",title:"\u9009\u4E2D\u8272",value:"",effect:{help:"\u6807\u7B7E\u6807\u9898\u7684\u9009\u4E2D\u6587\u5B57\u8272"}},{type:"DkColorInput",field:"title-inactive-color",title:"\u9ED8\u8BA4\u8272",value:"",effect:{help:"\u6807\u7B7E\u6807\u9898\u7684\u9ED8\u8BA4\u6587\u5B57\u8272"}},{type:"input",field:"line-width",title:"\u5E95\u90E8\u6761\u5BBD",value:"40px"},{type:"input",field:"line-height",title:"\u5E95\u90E8\u6761\u9AD8",value:"3px"},{type:"switch",field:"shrink",title:"\u5DE6\u4FA7\u5E03\u5C40",value:!1,effect:{help:"\u662F\u5426\u5F00\u542F\u5DE6\u4FA7\u6536\u7F29\u5E03\u5C40,\u6807\u9898\u4F1A\u5F80\u5DE6\u4FA7\u9760\u62E2"}}]}]},{type:"number",field:"duration",title:"\u52A8\u753B\u65F6\u95F4",value:.3,effect:{help:"\u52A8\u753B\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D2\uFF0C\u8BBE\u7F6E\u4E3A 0 \u53EF\u4EE5\u7981\u7528\u52A8\u753B"}},{type:"switch",field:"animated",title:"\u8F6C\u573A\u52A8\u753B",value:!1},{type:"switch",field:"ellipsis",title:"\u7701\u7565\u6587\u5B57",value:!0,effect:{help:"\u662F\u5426\u7701\u7565\u8FC7\u957F\u7684\u6807\u9898\u6587\u5B57"}},{type:"switch",field:"sticky",title:"\u7C98\u6027\u5E03\u5C40",value:!1,effect:{help:"\u662F\u5426\u4F7F\u7528\u7C98\u6027\u5E03\u5C40,\u6807\u9898\u53EF\u4EE5\u5438\u9644\u5728\u9876\u90E8"},control:[{value:!0,rule:[{type:"input",field:"offset-top",title:"\u5438\u9876\u8DDD\u79BB",value:"0",effect:{help:"\u7C98\u6027\u5E03\u5C40\u4E0B\u5438\u9876\u65F6\u4E0E\u9876\u90E8\u7684\u8DDD\u79BB\uFF0C\u652F\u6301 px vw vh rem \u5355\u4F4D\uFF0C\u9ED8\u8BA4 px"}}]}]},{type:"switch",field:"swipeable",title:"\u6ED1\u52A8\u5207\u6362",value:!1,effect:{help:"\u662F\u5426\u5F00\u542F\u624B\u52BF\u5DE6\u53F3\u6ED1\u52A8\u5207\u6362"}},{type:"number",field:"swipe-threshold",title:"\u6EDA\u52A8\u9608\u503C",value:5,effect:{help:"\u6EDA\u52A8\u9608\u503C\uFF0C\u6807\u7B7E\u6570\u91CF\u8D85\u8FC7\u9608\u503C\u4E14\u603B\u5BBD\u5EA6\u8D85\u8FC7\u6807\u7B7E\u680F\u5BBD\u5EA6\u65F6\u5F00\u59CB\u6A2A\u5411\u6EDA\u52A8"}}]}},qa={name:"col",drag:!0,dragBtn:!1,inside:!0,mask:!1,label:"\u5217",rule(){return{type:"vanCol",props:{span:12},children:[],showStyle:!0}},props(){return[{type:"slider",field:"span",title:"\u5217\u6570",value:12,props:{min:0,max:24}},{type:"slider",field:"offset",title:"\u504F\u79FB\u8DDD\u79BB",props:{min:0,max:24}}]}};const Km="\u95F4\u8DDD",Ya="div";var Gn={icon:"ri:space",label:Km,name:Ya,rule(){return{type:Ya,wrap:{show:!1},style:{width:"100%",height:"20px"},showStyle:!0,children:[]}},props(){return[{type:"object",field:"formCreateStyle",native:!0,props:{rule:[{type:"input",field:"height",title:"height"}]}}]}};const Qm="\u6805\u683C\u5E03\u5C40",Zm="row";var Xn={icon:"cil:columns",label:Qm,name:Zm,mask:!1,rule(){return{type:"vanRow",props:{},children:[],showStyle:!0}},children:"col",childrenLen:2,props(){return[{type:"inputNumber",field:"gutter",title:"\u6805\u683C\u95F4\u9694",value:0},{type:"switch",field:"type",title:"flex\u5E03\u5C40",props:{activeValue:"flex",inactiveValue:"default"},control:[{value:"flex",rule:[{type:"select",field:"justify",title:"\u5BF9\u9F50\u65B9\u5F0F",options:[{label:"\u5C45\u5DE6\u5BF9\u9F50(\u9ED8\u8BA4)",value:"start"},{label:"\u5C45\u53F3\u5BF9\u9F50",value:"end"},{label:"\u5C45\u4E2D\u5E03\u5C40",value:"center"},{label:"\u6BCF\u4E2A\u5143\u7D20\u7684\u4E24\u4FA7\u95F4\u9694\u76F8\u7B49",value:"space-around"},{label:"\u4E24\u7AEF\u5BF9\u9F50",value:"space-between"}],value:"start"},{type:"select",field:"align",title:"\u5782\u76F4\u6392\u5217",options:[{label:"\u5782\u76F4\u5C45\u4E0A(\u9ED8\u8BA4)",value:"top"},{label:"\u5782\u76F4\u5C45\u4E2D",value:"center"},{label:"\u5782\u76F4\u5C45\u4E0B",value:"bottom"}],value:"top"}]}]}]}};const eh="\u5206\u5272\u7EBF",Ga="van-divider";var Jn={icon:"mingcute:border-horizontal-line",label:eh,name:Ga,rule(){return{type:Ga,props:{hairline:!0,contentPosition:"center"},wrap:{show:!1},native:!1,showStyle:!0,children:["\u6807\u9898"]}},props(){return[{type:"switch",field:"dashed",title:"\u865A\u7EBF"},{type:"switch",field:"hairline",title:"\u7EC6\u7EBF"},{type:"input",field:"formCreateChild",title:"\u8BBE\u7F6E\u6587\u6848"},{type:"radio",field:"contentPosition",title:"\u6587\u6848\u4F4D\u7F6E",props:{type:"button"},options:[{label:"\u5DE6\u4FA7",value:"left"},{label:"\u53F3\u4FA7",value:"right"},{label:"\u5C45\u4E2D",value:"center"}]}]}},Kn={icon:"ic:outline-swipe",label:"\u8F6E\u64AD",name:"van-swipe",children:"van-swipe-item",mask:!1,rule(){return{type:"van-swipe",style:"width:100%;",children:[],showStyle:!0}},props(){return[{type:"number",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",props:{min:0,max:1e4,step:500},effect:{help:"\u81EA\u52A8\u8F6E\u64AD\u95F4\u9694\uFF0C\u5355\u4F4D\u4E3A ms,0\u8868\u793A\u4E0D\u8F6E\u64AD"}},{type:"number",field:"initial-swipe",title:"\u521D\u59CB\u4F4D\u7F6E",value:0,effect:{help:"\u521D\u59CB\u4F4D\u7F6E\u7D22\u5F15\u503C\uFF0C\u4E5F\u53EF\u4EE5\u901A\u8FC7\u5F53\u524D\u9009\u9879\u6765\u5207\u6362\u4E0D\u540C\u7684\u4F4D\u7F6E\u8FDB\u884C\u7F16\u8F91"}},{type:"number",field:"duration",title:"\u52A8\u753B\u65F6\u95F4",value:.3,effect:{help:"\u52A8\u753B\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D2\uFF0C\u8BBE\u7F6E\u4E3A 0 \u53EF\u4EE5\u7981\u7528\u52A8\u753B"}},{type:"switch",field:"loop",title:"\u662F\u5426\u5FAA\u73AF",value:!0},{type:"switch",field:"show-indicators",title:"\u663E\u793A\u6307\u793A\u5668",value:!0},{type:"switch",field:"vertical",title:"\u7EB5\u5411\u6EDA\u52A8",value:!1},{type:"switch",field:"touchable",title:"\u624B\u52BF\u6ED1\u52A8",value:!0,effect:{help:"\u662F\u5426\u53EF\u4EE5\u901A\u8FC7\u624B\u52BF\u6ED1\u52A8"}},{type:"dk-color-input",field:"indicator-color",title:"\u6307\u793A\u5668\u8272",value:"#1989fa",effect:{help:"\u6307\u793A\u5668\u989C\u8272"}}]}},Xa={label:"\u8F6E\u64AD\u5185\u5BB9",name:"van-swipe-item",inside:!0,drag:!0,dragBtn:!1,mask:!1,rule(){return{type:"van-swipe-item",props:{title:"\u6807\u7B7E"},children:[],showStyle:!0}},props(){return[{type:"el-empty",props:{description:"\u8BE5\u7EC4\u4EF6\u65E0\u914D\u7F6E\u9879"},col:{span:24},field:"divider"}]}};const th=[Wn,qn,Yn,Gn,Xn,Jn,Kn],oh={[Wn.name]:Wn,[qn.name]:qn,[Wa.name]:Wa,[Yn.name]:Yn,[qa.name]:qa,[Gn.name]:Gn,[Xn.name]:Xn,[Jn.name]:Jn,[Kn.name]:Kn,[Xa.name]:Xa},nh={...oh,...Gm},lh=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...Ym]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[...th]}]},uh="\u89C6\u9891",Ja="DkMinVideo";var Qn={icon:"icon-park-outline:video",label:uh,name:Ja,rule(){return{type:Ja,props:{videoPath:"",isHeight:!1,isOpenClose:!1},showStyle:!0}},props(){return[{type:"dk-video-input",field:"videoPath",title:"\u89C6\u9891",value:""},{type:"switch",field:"isHeight",title:"\u56FA\u5B9A\u9AD8\u5EA6",value:!0,control:[{value:!0,rule:[{type:"inputNumber",field:"height",title:"\u56FA\u5B9A\u9AD8\u5EA6",value:240,props:{min:240,height:1e3},suffix:{type:"p",style:{fontSize:"12px",color:"#888"},children:["\u8BBE\u7F6E\u89C6\u9891\u7684\u9AD8\u5EA6\u56FA\u5B9A\uFF0C\u9AD8\u5EA6\u56FA\u5B9A\u540E\u53EF\u80FD\u4F1A\u51FA\u73B0\u89C6\u9891\u7578\u5F62,\u89C6\u9891\u672C\u8EAB\u56FA\u5B9A\u6700\u5C0F\u9AD8\u5EA6\u4E3A240px"]}}]}],effect:{help:"\u89C6\u9891\u5BBD\u5EA6\u9ED8\u8BA4\u4E3A100%\uFF0C\u9AD8\u5EA6\u4E3A\u81EA\u52A8\u5339\u914D\u89C6\u9891\uFF0C\u52FE\u9009\u540E\u53EF\u4EE5\u4F7F\u7528\u56FA\u5B9A\u9AD8\u5EA6"}}]}};const ah="\u8F6E\u64AD\u56FE",Ka="DkMinSwiperImage";var Zn={icon:"dashicons:images-alt2",label:ah,name:Ka,rule(){return{type:Ka,props:{swipeList:[{img:"https://img01.yzcdn.cn/upload_files/2021/07/06/FsivVhWrSJsQWx0GhgOJKS_IOQp_.jpg?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F01",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/07/Fm30KtbmHzLJ96USZWFGI8FLQVss.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F02",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/01/Fj19dCrgsMyTYdrr89b9iheMVFZU.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F03",show:!0}],height:160,autoplay:2e3},showStyle:!0}},props(){return[{type:"inputNumber",field:"height",title:"\u56FE\u7247\u9AD8\u5EA6",value:200,props:{min:0,max:500}},{type:"select",field:"imgMode",title:"\u88C1\u526A\u7F29\u653E\u6A21\u5F0F",value:"aspectFill",options:[{label:"scaleToFill\uFF1A\u5BBD\u9AD8\u5B8C\u5168\u62C9\u4F38\u81F3\u586B\u6EE1",value:"scaleToFill"},{label:"aspectFit\uFF1A\u957F\u8FB9\u80FD\u5B8C\u5168\u663E\u793A\u51FA\u6765",value:"aspectFit"},{label:"aspectFill\uFF1A\u77ED\u8FB9\u80FD\u5B8C\u5168\u663E\u793A\u51FA\u6765",value:"aspectFill"},{label:"widthFix\uFF1A\u5BBD\u5EA6\u4E0D\u53D8\uFF0C\u9AD8\u5EA6\u81EA\u52A8\u53D8\u5316",value:"widthFix"},{label:"heightFix\uFF1A\u9AD8\u5EA6\u4E0D\u53D8\uFF0C\u5BBD\u5EA6\u81EA\u52A8\u53D8\u5316",value:"heightFix"},{label:"top\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u9876\u90E8\u533A\u57DF",value:"top"},{label:"bottom\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5E95\u90E8\u533A\u57DF",value:"bottom"},{label:"center\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u4E2D\u95F4\u533A\u57DF",value:"center"},{label:"left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u8FB9\u533A\u57DF",value:"left"},{label:"right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u8FB9\u533A\u57DF",value:"right"},{label:"top left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u4E0A\u8FB9\u533A\u57DF",value:"top left"},{label:"top right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u4E0A\u8FB9\u533A\u57DF",value:"top right"},{label:"bottom left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u4E0B\u8FB9\u533A\u57DF",value:"bottom left"},{label:"bottom right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u4E0B\u8FB9\u533A\u57DF",value:"bottom right"}],effect:{help:"\u5C0F\u7A0B\u5E8F\u56FE\u7247\u7684\u7F29\u653E\u526A\u88C1\u6A21\u5F0F\uFF0C\u76EE\u524D\u65E0\u6CD5\u76F4\u63A5\u9884\u89C8\uFF0C\u53EF\u4EE5\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/component/image.html"}},{type:"slider",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",value:3e3,props:{min:500,max:1e4,step:100,formatTooltip:t=>t/1e3+"\u79D2"}},{type:"switch",field:"showTitle",title:"\u663E\u793A\u6807\u9898",value:!1},{type:"inputNumber",field:"radius",title:"\u5F27\u5EA6",value:0},{type:"DkGroup",field:"swipeList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"radio",field:"clickType",title:"\u70B9\u51FB\u6548\u679C",value:"path",options:[{label:"\u8DF3\u8F6C\u9875\u9762",value:"path"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"path",rule:[{type:"DkUrlInput",field:"path",title:"\u5730\u5740"}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"event",title:"\u9009\u62E9\u4E8B\u4EF6",value:""}]}]}]}}]}};const ih="\u6807\u9898",Qa="DkMinTitle";var el={icon:"material-symbols:title",label:ih,name:Qa,rule(){return{type:Qa,props:{title:"\u8FD9\u662F\u6807\u9898",subtitle:"\u526F\u6807\u9898",iconType:"icon",iconSize:24,showSubtitle:!0},showStyle:!0,fixed:!0,setting:{style:{paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",backgroundColor:"rgba(255, 255, 255, 1)"}}}},props(){return[{type:"input",field:"title",title:"\u6807\u9898"},{type:"DkStyleFontInput",field:"titleStyle",title:"\u6807\u9898\u6837\u5F0F"},{type:"radio",field:"iconType",title:"\u56FE\u6807\u7C7B\u578B",value:"none",options:[{label:"\u65E0",value:"none"},{label:"\u56FE\u6807",value:"icon"},{label:"\u56FE\u7247",value:"img"}],control:[{value:"icon",rule:[{type:"DkUniIconInput",field:"icon",title:"\u56FE\u6807",value:"fire-filled"},{type:"DkColorInput",field:"iconColor",title:"\u56FE\u6807\u989C\u8272",value:"#F64C2E"},{type:"number",field:"iconSize",title:"\u56FE\u6807\u5C3A\u5BF8",value:24},{type:"number",field:"marginRight",title:"\u95F4\u9694",value:4}]},{value:"img",rule:[{type:"DkImageInput",field:"image",title:"\u56FE\u7247\u56FE\u6807",value:""},{type:"number",field:"iconSize",title:"\u56FE\u6807\u5C3A\u5BF8",value:24},{type:"number",field:"marginRight",title:"\u95F4\u9694",value:4}]}]},{type:"switch",field:"showSubtitle",title:"\u526F\u6807\u9898",value:!0,control:[{value:!0,rule:[{type:"input",field:"subtitle",title:"\u526F\u6807\u9898",value:""},{type:"DkColorInput",field:"subColor",title:"\u526F\u6807\u9898\u8272",value:"#999"}]}]},{type:"switch",field:"isMore",title:"\u663E\u793A\u66F4\u591A",value:!0,control:[{value:!0,rule:[{type:"input",field:"moreText",title:"\u6587\u672C\u5185\u5BB9",value:"\u67E5\u770B\u66F4\u591A"},{type:"DkColorInput",field:"moreColor",title:"\u989C\u8272",value:"#999"},{type:"DkUrlInput",field:"url",title:"\u94FE\u63A5\u5730\u5740",value:""}]}]}]}};const rh="\u95F4\u9694",Za="DkMinBlank";var tl={icon:"tdesign:component-space",label:rh,name:Za,rule(){return{type:Za,props:{height:20},showStyle:!0}},props(){return[{type:"number",field:"height",title:"\u9AD8\u5EA6",value:20,effect:{help:"\u5177\u4F53\u6548\u679C\u67E5\u770B\u771F\u673A\u9884\u89C8"}}]}};const sh="\u5BCC\u6587\u672C",ei="DkMinTextarea";var ol={icon:"fluent:image-alt-text-16-regular",label:sh,name:ei,rule(){return{type:ei,props:{textarea:"\u8BF7\u968F\u610F\u53D1\u6325\u60A8\u7684\u521B\u4F5C..."},showStyle:!0,children:[]}},props(){return[{type:"el-divider",props:{},children:["\u5185\u5BB9\u7F16\u8F91"],col:{span:24},field:"divider"},{type:"dk-tiny-editor",field:"textarea",value:"\u8BF7\u968F\u610F\u53D1\u6325\u60A8\u7684\u521B\u4F5C..."}]}};const dh="\u70ED\u56FE",ti="DkMinHotArea";var nl={icon:"fluent:draw-image-20-regular",label:dh,name:ti,rule(){return{type:ti,props:{hotData:{background:"",views:[],width:500,height:500},showMask:!1},showStyle:!0}},props(){return[{type:"dk-hot-area-input",field:"hotData",title:"\u70ED\u56FE\u6570\u636E",value:20,effect:{help:"\u70B9\u51FB\u6309\u94AE\u4E0A\u4F20\u80CC\u666F\u56FE\u5E76\u914D\u7F6E\u8DF3\u8F6C\u8DEF\u5F84"}},{type:"switch",field:"showMask",title:"\u663E\u793A\u906E\u7F69",value:!1,effect:{help:"\u8BBE\u7F6E\u662F\u5426\u663E\u793A\u70ED\u533A\u906E\u7F69\u6548\u679C\u9884\u89C8\uFF0C\u8BBE\u7F6E\u540E\u79FB\u52A8\u7AEF\u4E5F\u4F1A\u6709\u5BF9\u5E94\u7684\u900F\u660E\u906E\u7F69\u65B9\u5757\u65B9\u4FBF\u6D4B\u8BD5\uFF0C\u540E\u7AEF\u4EC5\u52A0\u6DF1\u5904\u7406"}}]}};const ch="\u5BAB\u683C",oi="DkMinGrid";var ll={icon:"ph:grid-nine",label:ch,name:oi,rule(){return{type:oi,props:{imageStyle:{width:"40px",height:"40px",marginBottom:"10px",borderRadius:"10px"},list:[{title:"\u8FD9\u662F\u6807\u9898",image:""},{title:"\u8FD9\u662F\u6807\u9898",image:""},{title:"\u8FD9\u662F\u6807\u9898",image:""},{title:"\u8FD9\u662F\u6807\u9898",image:""}],clickType:"path"},showStyle:!0,children:[],style:{},setting:{style:{backgroundColor:"#fff"}}}},props(){return[{type:"number",field:"columnNum",title:"\u6BCF\u884C\u4E2A\u6570",value:4},{type:"DkGroup",field:"list",title:"",props:{title:"\u5BAB\u683C\u5185\u5BB9",defaultValue:{title:"\u8FD9\u662F\u6807\u9898",image:""},rule:[{type:"input",field:"title",title:"\u6807\u9898"},{type:"DkImageInput",field:"image",title:"\u56FE\u7247"},{type:"radio",field:"clickType",title:"\u70B9\u51FB\u6548\u679C",value:"path",options:[{label:"\u8DF3\u8F6C\u9875\u9762",value:"path"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"path",rule:[{type:"DkUrlInput",field:"path",title:"\u5730\u5740"}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"event",title:"\u9009\u62E9\u4E8B\u4EF6",value:""}]}]}]},value:[]},{type:"DkStyleFontInput",field:"fontStyle",title:"\u6587\u5B57\u6837\u5F0F"},{type:"DkStyleInput",field:"imageStyle",title:"\u56FE\u7247\u914D\u7F6E",props:{isDrawer:!0,drawerProps:{title:"\u5361\u7247\u6837\u5F0F",size:"400px",zIndex:100},hideComponents:["DkStyleFontInput","DkStyleBackgroundInput"]}}]}};const ph="\u56FE\u7247",ni="DkMinImage";var ul={icon:"mage:image",label:ph,name:ni,rule(){return{type:ni,props:{},showStyle:!0}},props(){return[{type:"select",field:"type",title:"\u56FE\u7247\u7C7B\u578B",value:"row",options:[{label:"\u6A2A\u5411\u5206\u5E03",value:"row"},{label:"\u5782\u76F4\u5F80\u4E0B",value:"column"},{label:"\u6A2A\u5411\u6EDA\u52A8",value:"slide"}],control:[]},{type:"switch",field:"showText",title:"\u663E\u793A\u6587\u5B57",value:!1,control:[{value:!0,rule:[{type:"select",field:"textType",title:"\u6587\u5B57\u6837\u5F0F",value:"default",options:[{label:"\u9ED8\u8BA4",value:"default"},{label:"\u5E95\u90E8",value:"footer"}]}]}]},{type:"DkStyleInput",field:"imageStyle",title:"\u56FE\u7247\u6837\u5F0F",props:{isDrawer:!0,drawerProps:{title:"\u5361\u7247\u6837\u5F0F",size:"400px",zIndex:100},hideComponents:["DkStyleFontInput","DkStyleBackgroundInput"]}},{type:"DkStyleInput",field:"imageTextStyle",title:"\u56FE\u6587\u6837\u5F0F",props:{isDrawer:!0,drawerProps:{title:"\u56FE\u7247\u548C\u6587\u5B57\u6574\u4F53\u6837\u5F0F",size:"400px",zIndex:100},hideComponents:["DkStyleBackgroundInput"]}},{type:"DkGroup",field:"imageList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"radio",field:"clickType",title:"\u70B9\u51FB\u6548\u679C",value:"path",options:[{label:"\u8DF3\u8F6C\u9875\u9762",value:"path"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"path",rule:[{type:"DkUrlInput",field:"path",title:"\u5730\u5740"}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"event",title:"\u9009\u62E9\u4E8B\u4EF6",value:""}]}]}]}}]}};const fh="\u9B54\u65B9\u56FE\u7247",li="DkMinCubeImage";var al={icon:"game-icons:ice-cube",label:fh,name:li,rule(){return{type:li,props:{cubeData:{density:5,selectedCubes:[]}},showStyle:!0}},props(){return[{type:"switch",field:"clickActive",title:"\u70B9\u51FB\u6548\u679C",value:!1},{type:"DkStyleInput",field:"imageStyle",title:"\u56FE\u7247\u6837\u5F0F",props:{isDrawer:!0,drawerProps:{title:"\u5361\u7247\u6837\u5F0F",size:"400px",zIndex:100},hideComponents:["DkStyleFontInput","DkStyleBackgroundInput"]}},{type:"DkCubeImageInput",field:"cubeData",title:"",value:{density:4,selectedCubes:[]}}]}};const mh="\u4E8B\u4EF6\u5F39\u7A97",ui="DkMinModal";var il={icon:"entypo:popup",label:mh,name:ui,rule(){return{type:ui,props:{title:"\u63D0\u793A",content:"\u8FD9\u662F\u5F39\u7A97\u5185\u5BB9",confirmColor:""},showStyle:!0,setting:{},event:!0}},props(){return[{type:"DkEventCreateInput",field:"listen",title:"\u76D1\u542C\u4E8B\u4EF6"},{type:"input",field:"title",title:"\u6807\u9898"},{type:"input",field:"content",title:"\u5185\u5BB9",props:{type:"textarea",rows:3},effect:{help:"\u586B\u5199\u5F39\u7A97\u5F53\u524D\u5185\u5BB9"}},{type:"radio",field:"clickType",title:"\u70B9\u51FB\u786E\u5B9A",value:"close",options:[{label:"\u5173\u95ED\u5F39\u7A97",value:"close"},{label:"\u8DF3\u8F6C\u9875\u9762",value:"path"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"path",rule:[{type:"switch",field:"showCancel",title:"\u663E\u793A\u53D6\u6D88",value:!0,effect:{help:"\u662F\u5426\u663E\u793A\u53D6\u6D88\u6309\u94AE"}},{type:"DkUrlInput",field:"path",title:"\u5730\u5740"}]},{value:"event",rule:[{type:"switch",field:"showCancel",title:"\u663E\u793A\u53D6\u6D88",value:!0,effect:{help:"\u662F\u5426\u663E\u793A\u53D6\u6D88\u6309\u94AE"}},{type:"DkEventSelectInput",field:"event",title:"\u9009\u62E9\u4E8B\u4EF6",value:"",effect:{help:"\u8BF7\u4E0D\u8981\u9009\u62E9\u5F53\u524D\u7EC4\u4EF6\u8FDB\u884C\u89E6\u53D1\uFF0C\u5426\u5219\u65E0\u6548\u679C"}}]}]}]}};const hh=[el,tl,ol,ul,Zn,nl,al,ll,Qn,il],gh={[el.name]:el,[tl.name]:tl,[ul.name]:ul,[Zn.name]:Zn,[al.name]:al,[ll.name]:ll,[nl.name]:nl,[Qn.name]:Qn,[ol.name]:ol,[il.name]:il},vh={...gh},yh=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...hh]}]};function ai(t){return t.replace(t[0],t[0].toLocaleUpperCase())}const ii=Io,$e=Io.factory();let _h=0;const ri=()=>"F"+Math.random().toString(36).substr(3,3)+(+`${Date.now()}${++_h}`).toString(36);function bh(){return[{type:"DkStyleInput",field:"style",value:{},title:"",props:{}}]}const si=[{label:"\u5FAA\u73AF\u6548\u679C",name:"loop",animate:[{value:"bounce",label:"\u5F39\u8DF3"},{value:"flash",label:"\u95EA\u52A8"},{value:"pulse",label:"\u8109\u51B2"},{value:"rubberBand",label:"\u6A61\u76AE\u7B4B"},{value:"shakeX",label:"X\u8F74\u6447\u6643"},{value:"shakeY",label:"Y\u8F74\u6447\u6643"},{value:"headShake",label:"\u6447\u5934"},{value:"swing",label:"\u6446\u52A8"},{value:"tada",label:"\u7F29\u653E\u6446\u52A8"},{value:"wobble",label:"\u5927\u5E45\u6447\u6643"},{value:"jello",label:"\u679C\u51BB\u6548\u679C"},{value:"heartBeat",label:"\u5FC3\u8DF3"}]},{label:"\u5F39\u8DF3\u5165\u573A",name:"bouncing",animate:[{value:"bounceIn",label:"\u5F39\u5165"},{value:"bounceInDown",label:"\u4E0B\u8FB9\u5F39\u5165"},{value:"bounceInLeft",label:"\u5DE6\u8FB9\u5F39\u5165"},{value:"bounceInRight",label:"\u53F3\u8FB9\u5F39\u5165"},{value:"bounceInUp",label:"\u4E0A\u8FB9\u5F39\u5165"}]},{label:"\u6DE1\u5165\u5165\u573A",name:"Fading",animate:[{value:"fadeIn",label:"\u6DE1\u5165"},{value:"fadeInDown",label:"\u4E0B\u8FB9\u6DE1\u5165"},{value:"fadeInDownBig",label:"\u6700\u4E0B\u8FB9\u6DE1\u5165"},{value:"fadeInLeft",label:"\u5DE6\u8FB9\u6DE1\u5165"},{value:"fadeInLeftBig",label:"\u6700\u5DE6\u8FB9\u6DE1\u5165"},{value:"fadeInRight",label:"\u53F3\u8FB9\u6DE1\u5165"},{value:"fadeInRightBig",label:"\u6700\u53F3\u8FB9\u6DE1\u5165"},{value:"fadeInUp",label:"\u4E0A\u8FB9\u6DE1\u5165"},{value:"fadeInUpBig",label:"\u6700\u4E0A\u8FB9\u6DE1\u5165"},{value:"fadeInTopLeft",label:"\u5DE6\u4E0A\u6DE1\u5165"},{value:"fadeInTopRight",label:"\u53F3\u4E0A\u6DE1\u5165"},{value:"fadeInBottomLeft",label:"\u5DE6\u4E0B\u6DE1\u5165"},{value:"fadeInBottomRight",label:"\u53F3\u4E0B\u6DE1\u5165"}]},{label:"\u7FFB\u8F6C&\u65CB\u8F6C\u5165\u573A",name:"Flippers",animate:[{value:"flipInX",label:"X\u8F74\u7FFB\u8F6C"},{value:"flipInY",label:"Y\u8F74\u7FFB\u8F6C"},{value:"rotateIn",label:"\u65CB\u8F6C\u8FDB\u5165"},{value:"rotateInDownLeft",label:"\u5DE6\u4E0B\u65CB\u5165"},{value:"rotateInDownRight",label:"\u53F3\u4E0B\u65CB\u5165"},{value:"rotateInUpLeft",label:"\u5DE6\u4E0A\u65CB\u5165"},{value:"rotateInUpRight",label:"\u53F3\u4E0A\u65CB\u5165"},{value:"jackInTheBox",label:"\u7F29\u653E\u65CB\u8F6C\u5165\u573A"},{value:"rollIn",label:"\u5DE6\u4FA7\u65CB\u8F6C\u5165\u573A"}]},{label:"\u7F29\u653E&\u6ED1\u52A8\u5165\u573A",name:"Lightspeed",animate:[{value:"lightSpeedInRight",label:"\u679C\u51BB\u53F3\u5165"},{value:"lightSpeedInLeft",label:"\u679C\u51BB\u5DE6\u5165"},{value:"slideInDown",label:"\u4E0B\u6ED1\u5165"},{value:"slideInLeft",label:"\u5DE6\u6ED1\u5165"},{value:"slideInRight",label:"\u53F3\u6ED1\u5165"},{value:"slideInUp",label:"\u4E0A\u6ED1\u5165"},{value:"backInDown",label:"\u5FEB\u901F\u4E0B\u6ED1\u5165"},{value:"backInLeft",label:"\u5FEB\u901F\u5DE6\u6ED1\u5165"},{value:"backInRight",label:"\u5FEB\u901F\u53F3\u6ED1\u5165"},{value:"backInUp",label:"\u5FEB\u901F\u4E0A\u6ED1\u5165"},{value:"zoomIn",label:"\u7F29\u653E\u8FDB\u5165"},{value:"zoomInDown",label:"\u4E0B\u7F29\u653E"},{value:"zoomInLeft",label:"\u5DE6\u7F29\u653E"},{value:"zoomInRight",label:"\u53F3\u7F29\u653E"},{value:"zoomInTop",label:"\u4E0A\u7F29\u653E"}]}];function rl(t){return{type:"h2",slot:"title",style:"display: flex;align-items: center;font-size: 14px;font-weight: 600;margin:0;padding:0",children:[{type:"em",style:"width: 6px; height: 18px; background: rgb(64, 158, 255); display: block; margin-right: 5px;"},{type:"span",children:[t]}]}}function di(t){const e=si[0].animate;for(let o=0;o<e.length;o++)if(e[o].value===t)return!0;return!1}function sl(t=null){const e=[{type:"el-collapse",props:{modelValue:"base"},style:"width:100%",children:[{type:"el-collapse-item",props:{name:"base"},children:[rl("\u57FA\u7840\u914D\u7F6E"),{type:"DkStyleInput",field:"style",value:{},title:"",props:{height:180}}]}]},{type:"el-collapse",props:{modelValue:"base"},style:"width:100%",children:[{type:"el-collapse-item",props:{name:"base"},children:[rl("\u52A8\u753B\u914D\u7F6E"),{type:"DkAnimateSelect",field:"animate",value:"",title:"\u9009\u62E9\u52A8\u753B",control:[{handle:function(o){return o?di(o):!1},rule:[{type:"dk-style-animation-input",field:"animation",title:"",value:{animationDelay:"0s",animationDuration:"1s",animationIterationCount:"infinite"}}]},{handle:function(o){return o?!di(o):!1},rule:[{type:"dk-style-animation-input",field:"animation",title:"",value:{animationDelay:"0s",animationDuration:"1s",animationIterationCount:1}}]}]},{type:"switch",field:"animation_preview",title:"\u5B9E\u65F6\u9884\u89C8",value:!0,effect:{help:"\u8BBE\u7F6E\u5F53\u524D\u7EC4\u4EF6\u5FAA\u73AF\u52A8\u753B\u5B9E\u65F6\u9884\u89C8\uFF0C\u5F53\u524D\u4EC5\u4E3A\u8C03\u8BD5\u9879"}}]}]}];if(t&&t.config.config.rule().fixed){const o=[rl("\u60AC\u6D6E\u914D\u7F6E"),{type:"switch",field:"is_position",value:!1,title:"\u5F00\u542F\u60AC\u6D6E",effect:{help:"\u8BBE\u7F6E\u7EC4\u4EF6\u662F\u5426\u5F00\u542F\u60AC\u6D6E"},control:[{value:!0,rule:[{type:"DkStylePositionInput",field:"position",value:{},title:""}]}]}],n={type:"el-collapse-item",props:{name:"fixed"},children:o};e[0].children.push(n)}return e}const ci={type:{type:String,default:"web"},menu:{type:Object,default:null},height:{type:String,default:""},config:{type:Object,default:()=>({})},mask:{type:String,default:void 0},loading:{type:Boolean,default:void 0},rightAsideWidth:{type:String,default:"320px"},leftAsideWidth:{type:String,default:"285px"}},Eh={name:"DkMinVideo",props:{poster:{default:"",type:String},isHeight:{default:!1,type:Boolean},height:{default:0,type:Number},videoPath:{default:"",type:String},isOpenClose:{default:!1,type:Boolean}},data(){return{}},computed:{_style(){const t={};return this.height&&this.isHeight?t.height=this.height+"px":t.height="240px",t}},mounted(){},methods:{}},kh={style:{position:"relative"},class:"dk-video-content"},Fh={class:"video-preview"},wh={key:0},Dh={key:1};function Ch(t,e,o,n,l,u){const i=b("el-image"),a=b("dk-icon");return h(),w("div",{class:"dk-view-video",style:G(u._style)},[D("div",kh,[o.poster?(h(),I(i,{key:0,src:o.poster,alt:"",class:"poster"},null,8,["src"])):B("v-if",!0),D("div",Fh,[d(a,{icon:"VideoPlay",size:24}),o.videoPath?(h(),w("p",Dh,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B!!!!")):(h(),w("p",wh,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891!!!"))])])],4)}var Ah=Y(Eh,[["render",Ch],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinVideo.vue"]]);const xh={name:"DkMinSwiperImage",props:{value:{default:"",type:String},height:{default:"",type:[Number,String]},autoplay:{default:3e3,type:[Number,String]},swipeList:{default:()=>[],type:[Array]},imgMode:{default:"aspectFill",type:String},bgColor:{default:"",type:String},showTitle:{default:!1,type:Boolean},radius:{default:0,type:Number}},data(){return{}},computed:{},watch:{swipeList(t){}},mounted(){},methods:{}},Bh={key:0,class:"swipe-title"};function Sh(t,e,o,n,l,u){const i=b("van-image"),a=b("van-swipe-item"),s=b("van-swipe");return h(),I(s,{class:"dk-min-swipe",autoplay:o.autoplay,"indicator-color":"white",style:G({background:o.bgColor||""})},{default:g(()=>[(h(!0),w(W,null,te(o.swipeList,(r,_)=>(h(),I(a,{key:_},{default:g(()=>[d(i,{src:r.img,width:"100%",height:o.height,style:G(o.radius?"border-radius: "+o.radius+"px; overflow: hidden":"")},null,8,["src","height","style"]),o.showTitle?(h(),w("div",Bh,Q(r.title),1)):B("v-if",!0)]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var Vh=Y(xh,[["render",Sh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinSwiperImage.vue"]]);const $h={name:"DkMinTitle",props:{title:{default:"",type:String},titleStyle:{default:()=>({}),type:Object},iconType:{type:String,default:"icon"},icon:{type:String,default:"fire-filled"},iconColor:{type:String,default:"#F64C2E"},iconSize:{type:Number,default:16},marginRight:{type:Number,default:4},image:{type:String,default:""},showSubtitle:{default:!1,type:Boolean},subtitle:{default:"",type:String},subColor:{default:"#999",type:String},isMore:{default:!0,type:Boolean},moreText:{default:"\u67E5\u770B\u66F4\u591A",type:String},url:{default:"\u94FE\u63A5\u5730\u5740",type:String},moreColor:{default:"#999",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},Th={class:"dk-min-title flex items-center justify-between"},Ih={class:"flex justify-center items-center"},Rh=["src"];function Oh(t,e,o,n,l,u){const i=b("dk-uni-icon");return h(),w("div",Th,[D("div",Ih,[D("div",{style:G({marginRight:o.marginRight+"px"})},[o.iconType==="icon"?(h(),I(i,{key:0,type:o.icon,size:o.iconSize,color:o.iconColor},null,8,["type","size","color"])):o.iconType==="img"&&o.image?(h(),w("img",{key:1,src:o.image,style:G({width:o.iconSize+"px",height:o.iconSize+"px"}),alt:""},null,12,Rh)):B("v-if",!0)],4),D("div",null,[D("span",{style:G({...o.titleStyle})},Q(o.title),5),o.showSubtitle?(h(),w("span",{key:0,style:G([{"margin-left":"5px","font-size":"12px"},{color:o.subColor}])},Q(o.subtitle),5)):B("v-if",!0)])]),o.isMore?(h(),w("div",{key:0,style:G([{color:o.moreColor},{"font-size":"12px"}])},Q(o.moreText),5)):B("v-if",!0)])}var zh=Y($h,[["render",Oh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTitle.vue"]]);const jh={name:"DkMinBlank",props:{height:{default:20,type:[String,Number]}},data(){return{}},computed:{},mounted(){},methods:{}};function Ph(t,e,o,n,l,u){return h(),w("div",{style:G([{height:o.height+"px"},{width:"100%"}])},null,4)}var Mh=Y(jh,[["render",Ph],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinBlank.vue"]]);const Nh={name:"DkMinTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},Uh=["innerHTML"];function Lh(t,e,o,n,l,u){return h(),w("div",{innerHTML:o.textarea},null,8,Uh)}var Hh=Y(Nh,[["render",Lh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTextarea.vue"]]);const Wh={name:"DkMinHotArea",props:{hotData:{default:()=>({}),type:Object},showMask:{default:!1,type:Boolean}},setup(t){const e=R(null);let o=null;const n=R(0),l=R([]);Se(()=>{o=new(window.ResizeObserver||ResizeObserver)(u),o.observe(e.value),n.value=e.value.clientWidth,i()}),ls(()=>{o&&o.disconnect()}),Z(()=>t.hotData.views,()=>{i()},{deep:!0});function u(a){a.forEach(s=>{s.target===e.value&&(n.value=s.contentRect.width,i())})}function i(){l.value=JSON.parse(JSON.stringify(t.hotData.views)),l.value.forEach(a=>{const{left:s,top:r,width:_,height:y}=a.css,E=Math.round(_*(n.value/t.hotData.width)),k=Math.round(y*(n.value/t.hotData.width)),C=Math.round(s*(n.value/t.hotData.width)),p=Math.round(r*(n.value/t.hotData.width));a.css={...a.css,left:C+"px",top:p+"px",width:E+"px",height:k+"px"}})}return{el:e,containerWidth:n,views:l}}},qh={ref:"el",class:"dk-min-area"},Yh=["src"];function Gh(t,e,o,n,l,u){const i=b("el-empty");return h(),w("div",qh,[o.hotData.background?(h(),w("img",{key:0,src:o.hotData.background,alt:"",style:{width:"100%"}},null,8,Yh)):(h(),I(i,{key:1,description:"\u8BF7\u4E0A\u4F20\u80CC\u666F\u56FE"})),(h(!0),w(W,null,te(n.views,(a,s)=>(h(),w("div",{key:s,style:G({position:"absolute",...a.css,background:o.showMask?"#0008":"#0004"})},[B(" \u53EF\u4EE5\u5728\u8FD9\u91CC\u653E\u7F6E\u70ED\u56FE\u94FE\u63A5\u6216\u8986\u76D6\u5C42 "),D("div",{style:G({width:a.css.width,height:a.css.height}),class:"hot-item"},Q(s+1),5)],4))),128))],512)}var Xh=Y(Wh,[["render",Gh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinHotArea.vue"]]);const Jh={name:"DkMinGrid",props:["list","columnNum","imageStyle","useImageStyle","fontStyle"],data:()=>({value:""})},Kh=["src"];function Qh(t,e,o,n,l,u){const i=b("dk-icon"),a=b("van-grid-item"),s=b("van-grid"),r=b("el-empty");return o.list?.length>0?(h(),I(s,{key:0,border:!1,"column-num":o.columnNum,class:"min-h-30px dk-app-gold-grid",style:{"--van-grid-item-content-background":"none"}},{default:g(()=>[(h(!0),w(W,null,te(o.list,(_,y)=>(h(),I(a,{key:y},{default:g(()=>[_.image?(h(),w("img",{key:0,src:_.image,alt:"",style:G(o.imageStyle)},null,12,Kh)):(h(),w("div",{key:1,class:"flex justify-center items-center",style:G([{display:"flex",background:"#f3f5f7"},o.imageStyle])},[d(i,{icon:"PictureFilled",color:"#BBBFC8"})],4)),D("span",{style:G({...o.fontStyle})},Q(_.title),5)]),_:2},1024))),128))]),_:1},8,["column-num"])):(h(),I(r,{key:1}))}var Zh=Y(Jh,[["render",Qh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinGrid.vue"]]);const eg={name:"DkMinImage",props:{value:{default:"",type:String},type:{default:"row",type:String},textType:{default:"default",type:String},heightAuto:{default:!1,type:Boolean},showText:{default:!1,type:Boolean},height:{default:"",type:[Number,String]},width:{default:"",type:[Number,String]},borderRadius:{default:"",type:[Number,String]},marginBottom:{default:"",type:[Number,String]},marginRight:{default:"",type:[Number,String]},imageTextStyle:{default:()=>{},type:Object},imageStyle:{default:()=>{},type:Object},imageList:{default:()=>[],type:[Array]},fit:{default:"cover",type:String}},data(){return{}},computed:{textStyle(){let t=0,e=0;return this.textType==="default"&&(t=this.imageTextStyle?.paddingLeft||0,e=this.imageTextStyle?.paddingRight||0),{width:"calc(100% - "+t+" - "+e+")"}}},mounted(){},methods:{}},tg=["src"],og={key:0,style:{width:"100%"}};function ng(t,e,o,n,l,u){const i=b("el-empty");return h(),w("div",{class:ae(["dk-min-image","dk-mobile-image-"+o.type])},[(h(!0),w(W,null,te(o.imageList,(a,s)=>(h(),w("div",{key:s,class:"dk-mobile-image-content",style:G(o.imageTextStyle)},[D("img",{src:a.img,style:G(o.imageStyle),alt:""},null,12,tg),o.showText&&a.title?(h(),w("div",{key:0,class:ae("text-type-"+o.textType),style:G(u.textStyle)},Q(a.title),7)):B("v-if",!0)],4))),128)),o.imageList.length<=0?(h(),w("div",og,[d(i,{description:"\u8BF7\u6DFB\u52A0\u56FE\u7247\u6570\u636E"})])):B("v-if",!0)],2)}var lg=Y(eg,[["render",ng],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinImage.vue"]]);const ug={name:"DkMinCubeImage",props:{showText:{default:!1,type:Boolean},imageStyle:{default:()=>{},type:Object},cubeData:{default:()=>{},type:Object},fit:{default:"cover",type:String}},setup(t){const e=R(null),o=R(0);ps(e,l=>{for(const u of l)o.value=u.contentRect.width});const n=()=>{e.value&&(o.value=e.value.offsetWidth)};return Se(()=>{Oe(()=>{n()})}),us(()=>{Oe(()=>{n()})}),{cubeContainer:e,containerWidth:o}},data(){return{}},computed:{moduleSize(){return this.containerWidth/this.cubeData.density||0},cubeHeight(){if(!this.cubeData.selectedCubes||this.cubeData.selectedCubes.length===0)return this.moduleSize;let t=0;return this.cubeData.selectedCubes.forEach(e=>{Math.min(e.start.y,e.end.y);const o=Math.max(e.start.y,e.end.y);t=Math.max(t,o)}),t*this.moduleSize},_imageStyle(){const t={};if(!this.imageStyle)return t;if(typeof this.imageStyle.marginLeft<"u"&&this.imageStyle.width===void 0&&(t.width=`calc(100% - ${this.imageStyle.marginLeft})`),typeof this.imageStyle.marginRight<"u"&&this.imageStyle.width===void 0){const e=parseFloat(this.imageStyle.marginLeft||0)+parseFloat(this.imageStyle.marginRight||0);t.width=`calc(100% - ${e}px)`}if(typeof this.imageStyle.marginTop<"u"&&this.imageStyle.height===void 0&&(t.height=`calc(100% - ${this.imageStyle.marginTop})`),typeof this.imageStyle.marginBottom<"u"&&this.imageStyle.height===void 0){const e=parseFloat(this.imageStyle.marginTop||0)+parseFloat(this.imageStyle.marginBottom||0);t.height=`calc(100% - ${e}px)`}return Object.assign({},this.imageStyle,t)}},mounted(){this.updateContainerWidth(),window.addEventListener("resize",this.updateContainerWidth)},beforeUnmount(){window.removeEventListener("resize",this.updateContainerWidth)},methods:{updateContainerWidth(){this.$refs.cubeContainer&&(this.containerWidth=this.$refs.cubeContainer.offsetWidth)},getSelectedAreaStyle(t){const e=Math.min(t.start.x,t.end.x)-1,o=Math.max(t.start.x,t.end.x),n=Math.min(t.start.y,t.end.y)-1,l=Math.max(t.start.y,t.end.y);return{width:`${(o-e)*this.moduleSize}px`,height:`${(l-n)*this.moduleSize}px`,top:`${n*this.moduleSize}px`,left:`${e*this.moduleSize}px`,position:"absolute",backgroundColor:"#fff",border:"1px solid #ebedf0",textAlign:"center",color:"#7d7e80",cursor:"pointer",boxSizing:"border-box"}},getReferenceSize(t){const e=Math.min(t.start.x,t.end.x),o=Math.max(t.start.x,t.end.x),n=Math.min(t.start.y,t.end.y),l=Math.max(t.start.y,t.end.y),u=(o-e+1)*this.moduleSize,i=(l-n+1)*this.moduleSize;return`${Math.round(u)} x ${Math.round(i)} \u50CF\u7D20`}}},ag=["src"],ig={key:1,class:"cube-selected-text"},rg={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"100%",color:"#999"}};function sg(t,e,o,n,l,u){return h(),w("div",{ref:"cubeContainer",class:"dk-min-cube-image",style:G({height:`${u.cubeHeight}px`})},[o.cubeData.selectedCubes.length>0?(h(!0),w(W,{key:0},te(o.cubeData.selectedCubes,(i,a)=>(h(),w("div",{key:a,class:"selected-area",style:G(u.getSelectedAreaStyle(i))},[i.image?(h(),w("img",{key:0,src:i.image,alt:"Selected Cube Image",class:"selected-image",style:G(u._imageStyle)},null,12,ag)):(h(),w("div",ig,Q(u.getReferenceSize(i)),1))],4))),128)):(h(),w("div",rg," \u8BF7\u70B9\u51FB\u540E\u5728\u53F3\u4FA7\u914D\u7F6E\u9B54\u65B9\u56FE\u7247 "))],4)}var dg=Y(ug,[["render",sg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinCubeImage.vue"]]);const cg={name:"DkMinModal",props:{listen:{default:"",type:String},title:{default:"\u63D0\u793A",type:String},content:{default:"\u8FD9\u662F\u5F39\u7A97\u5185\u5BB9",type:String},showCancel:{default:!1,type:Boolean}},data(){return{}},computed:{},mounted(){},methods:{}},pg={style:{width:"100%","text-align":"center"}},fg={key:0},mg={key:1};function hg(t,e,o,n,l,u){return h(),w("div",pg,[o.listen?(h(),w("p",mg,"\u5F39\u7A97\u4E8B\u4EF6\uFF1A"+Q(o.listen),1)):(h(),w("p",fg,"\u70B9\u51FB\u914D\u7F6E\u5F39\u7A97\u5185\u5BB9"))])}var gg=Y(cg,[["render",hg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinModal.vue"]]);const pi={DkMinVideo:Ah,DkMinSwiperImage:Vh,DkMinTitle:zh,DkMinBlank:Mh,DkMinTextarea:Hh,DkMinHotArea:Xh,DkMinGrid:Zh,DkMinImage:lg,DkMinCubeImage:dg,DkMinModal:gg},vg={name:"DkViewBulletChat",props:{bgColor:{default:"",type:String},textColor:{default:"",type:String},dataType:{default:"",type:String},eventName:{default:"",type:String},autoplay:{default:3e3,type:Number},bulletData:{default:()=>[],type:Array}},data(){return{}},computed:{},mounted(){},methods:{}},yg={class:"bullet-content"},_g=["src"],bg={class:"over"},Eg=D("div",{class:"bullet-content"},[D("span",{class:"over"},"\u5F53\u524D\u6570\u636E\u7531\u4E8B\u4EF6\u4F20\u5165")],-1),kg=[Eg];function Fg(t,e,o,n,l,u){const i=b("van-swipe-item"),a=b("van-swipe");return o.dataType==="default"?(h(),I(a,{key:0,vertical:"",class:"dk-view-bullet-chat",style:G({background:o.bgColor,color:o.textColor}),autoplay:o.autoplay,"show-indicators":!1},{default:g(()=>[(h(!0),w(W,null,te(o.bulletData,(s,r)=>(h(),I(i,{key:r},{default:g(()=>[D("div",yg,[s.avatar?(h(),w("img",{key:0,src:s.avatar,alt:""},null,8,_g)):B("v-if",!0),D("span",bg,Q(s.text),1)])]),_:2},1024))),128))]),_:1},8,["style","autoplay"])):(h(),w("div",{key:1,class:"dk-view-bullet-chat",style:G([{display:"flex"},{background:o.bgColor,color:o.textColor}])},kg,4))}var wg=Y(vg,[["render",Fg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewBulletChat.vue"]]);const Dg={name:"DkViewCell",props:{groups:{default:()=>[],type:Array}},data(){return{}},computed:{},mounted(){},methods:{}};function Cg(t,e,o,n,l,u){const i=b("van-cell"),a=b("van-cell-group");return h(),I(a,null,{default:g(()=>[(h(!0),w(W,null,te(o.groups,(s,r)=>(h(),I(i,{key:r,title:s.title,value:s.value},null,8,["title","value"]))),128))]),_:1})}var Ag=Y(Dg,[["render",Cg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCell.vue"]]);const xg={name:"DkViewCommonBtn",props:{posterData:{default:()=>({}),type:[Object]},type:{default:"btn",type:[String]},icon:{default:"",type:String},imgSize:{default:20,type:[String,Number]},img:{default:"",type:String},imgText:{default:"",type:String},fBtnText:{default:"\u81EA\u5B9A\u4E49\u6587\u672C",type:String},fBgColor:{default:"#ff3d2c",type:String},isTextBlock:{default:!0,type:Boolean},fColor:{default:"#fff",type:String},fWSize:{default:20,type:[String,Number]},fHSize:{default:20,type:[String,Number]},borderRadius:{default:20,type:[String,Number]},fontSize:{default:12,type:[String,Number]},fontTopSize:{default:0,type:[String,Number]},iconSize:{default:12,type:[String,Number]},btnText:{default:"\u6309\u94AE\u6587\u5B57",type:String},block:{default:!0,type:Boolean},round:{default:!0,type:Boolean},size:{default:"normal",type:String},color:{default:"#ff3d2c",type:String},color2:{default:"",type:String}},data(){return{}},computed:{textStyle(){return this.isTextBlock?{backgroundColor:this.fBgColor,width:this.fWSize+"px",height:this.fHSize+"px",color:this.fColor,borderRadius:this.borderRadius+"px",marginTop:this.fontTopSize+"px"}:{marginTop:this.fontTopSize+"px"}},vanBtnColor(){return this.color&&this.color2?"linear-gradient(to right, "+this.color+", "+this.color2+")":this.color?this.color:this.color2?this.color2:""}},mounted(){},methods:{}},Bg={class:"dk-view-common-btn"},Sg={key:0,class:"btn"},Vg={key:1,class:"f-btn"},$g={key:0,class:"image-content"},Tg=["src","width"];function Ig(t,e,o,n,l,u){const i=b("van-button"),a=b("van-icon");return h(),w("div",Bg,[o.type==="btn"?(h(),w("div",Sg,[d(i,{type:"primary",block:o.block,round:o.round,size:o.size,color:u.vanBtnColor,icon:o.icon},{default:g(()=>[N(Q(o.btnText),1)]),_:1},8,["block","round","size","color","icon"])])):(h(),w("div",Vg,[o.img?(h(),w("div",$g,[D("img",{src:o.img,alt:"",width:o.imgSize},null,8,Tg)])):B("v-if",!0),D("div",{style:G(u.textStyle),class:"f-btn-content"},[d(a,{name:o.icon,size:o.iconSize},null,8,["name","size"]),D("span",{style:G({fontSize:o.fontSize+"px"})},Q(o.fBtnText),5)],4)]))])}var Rg=Y(xg,[["render",Ig],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCommonBtn.vue"]]);const Og={name:"DkViewDialog",props:{title:{default:"\u6807\u9898",type:String},listen:{default:"",type:String},show:{default:!1,type:Boolean},content:{default:"",type:String},confirmText:{default:"\u786E\u5B9A",type:String},copy:{default:"0",type:[Number,String]},copyType:{default:"text",type:String},copyText:{default:"\u590D\u5236\u7684\u5185\u5BB9",type:String},copyHtml:{default:"\u590D\u5236\u7684\u5BCC\u6587\u672C",type:String}},data(){return{showDialog:!1}},computed:{},watch:{show(){this.showDialog=this.show}},mounted(){console.log("123")},methods:{getContainer(){return document.querySelector(".phone-body")}}},zg={class:"dk-view-dialog"},jg=D("div",{class:"preview"},"\u70B9\u51FB\u9884\u89C8\u53EF\u4EE5\u67E5\u770B\u5F39\u7A97\u6548\u679C",-1),Pg=["innerHTML"];function Mg(t,e,o,n,l,u){const i=b("van-dialog");return h(),w("div",zg,[jg,l.showDialog?(h(),I(i,{key:0,show:l.showDialog,"onUpdate:show":e[0]||(e[0]=a=>l.showDialog=a),title:o.title,teleport:".phone-body","overlay-style":{position:"absolute"},style:{position:"absolute"}},{default:g(()=>[D("div",{style:{padding:"10px"},innerHTML:o.content},null,8,Pg)]),_:1},8,["show","title"])):B("v-if",!0)])}var Ng=Y(Og,[["render",Mg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewDialog.vue"]]);const Ug={name:"DkViewGridCellList",props:{value:{default:"",type:String},imgRadius:{default:0,type:Number},gridCellList:{default:()=>{},type:[Array]},fontSize:{default:14,type:Number},type:{default:"cell",type:String},cellImgSize:{default:20,type:Number},imgTextGutter:{default:0,type:Number},columnNum:{default:4,type:Number},square:{default:!1,type:Boolean},gutter:{default:0,type:Number},direction:{default:"vertical",type:String},clickable:{default:!0,type:Boolean},border:{default:!0,type:Boolean},gridImgSize:{default:40,type:Number}},data(){return{}},computed:{},mounted(){},methods:{}},Lg={key:0,class:"cell"},Hg=["src","alt","width","height"],Wg={key:1,class:"grid"},qg=["src","width","height","alt"];function Yg(t,e,o,n,l,u){const i=b("dk-icon"),a=b("van-cell"),s=b("van-cell-group"),r=b("van-grid-item"),_=b("van-grid");return o.type==="cell"?(h(),w("div",Lg,[d(s,null,{default:g(()=>[(h(!0),w(W,null,te(o.gridCellList,(y,E)=>(h(),I(a,{key:E,"is-link":"",style:G({lineHeight:o.cellImgSize+"px!important"})},{icon:g(()=>[D("img",{src:y.img,alt:y.title,width:o.cellImgSize,height:o.cellImgSize,style:G({borderRadius:o.imgRadius+"px",marginRight:o.imgTextGutter+"px"})},null,12,Hg)]),title:g(()=>[D("span",{class:"custom-title",style:G({fontSize:o.fontSize+"px"})},Q(y.title),5)]),"right-icon":g(()=>[d(i,{icon:"ArrowRight"}),B(' <div style="color: #999; font-size: 16px">'),B(' <i class="el-icon-arrow-right" />'),B(" </div>")]),_:2},1032,["style"]))),128))]),_:1})])):(h(),w("div",Wg,[d(_,{square:o.square,direction:o.direction,gutter:o.gutter,clickable:o.clickable,border:o.border,"column-num":o.columnNum},{default:g(()=>[(h(!0),w(W,null,te(o.gridCellList,(y,E)=>(h(),w(W,null,[y.show?(h(),I(r,{key:E,icon:"photo-o"},{icon:g(()=>[D("img",{src:y.img,width:o.gridImgSize,height:o.gridImgSize,alt:y.title,style:G({borderRadius:o.imgRadius+"px"})},null,12,qg)]),text:g(()=>[D("span",{style:G({fontSize:o.fontSize+"px"})},Q(y.title),5)]),_:2},1024)):B("v-if",!0)],64))),256))]),_:1},8,["square","direction","gutter","clickable","border","column-num"])]))}var Gg=Y(Ug,[["render",Yg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewGridCellList.vue"]]);const Xg={name:"DkViewImage",props:{value:{default:"",type:String},type:{default:"default",type:String},textType:{default:"default",type:String},heightAuto:{default:!1,type:Boolean},showText:{default:!1,type:Boolean},height:{default:"",type:[Number,String]},width:{default:"",type:[Number,String]},borderRadius:{default:"",type:[Number,String]},marginBottom:{default:"",type:[Number,String]},marginRight:{default:"",type:[Number,String]},imageList:{default:()=>[],type:[Array]},fit:{default:"cover",type:String}},data(){return{}},computed:{_style(){const t={};return this.type==="default"?t.marginBottom=this.marginBottom+"px":(t.width=this.width+"%",t.marginRight=this.marginRight+"px"),t.borderRadius=this.borderRadius+"px",t}},mounted(){},methods:{}},Jg={key:0};function Kg(t,e,o,n,l,u){const i=b("van-image"),a=b("el-empty");return h(),w("div",{class:ae(["dk-view-image","dk-mobile-image-"+o.type])},[(h(!0),w(W,null,te(o.imageList,(s,r)=>(h(),w("div",{key:r,class:"dk-mobile-image-content",style:G(u._style)},[d(i,{src:s.img,fit:o.fit,width:"100%",height:o.heightAuto?o.height:"",style:{overflow:"hidden"}},null,8,["src","fit","height"]),o.showText&&s.title?(h(),w("div",{key:0,class:ae("text-type-"+o.textType)},Q(s.title),3)):B("v-if",!0)],4))),128)),o.imageList.length<=0?(h(),w("div",Jg,[d(a,{description:"\u8BF7\u6DFB\u52A0\u56FE\u7247\u6570\u636E"})])):B("v-if",!0)],2)}var Qg=Y(Xg,[["render",Kg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewImage.vue"]]);const Zg={name:"DkViewMusic",props:{musicPath:{default:"",type:String},iconType:{default:"",type:String},iconSize:{default:40,type:Number},rotation:{default:"changeRight",type:String},speed:{default:5,type:Number},imgUrl:{default:"",type:String}},data(){return{}},computed:{_style(){const t=11-this.speed+"s";return{width:this.iconSize+"px",height:this.iconSize+"px",fontSize:this.iconSize+"px",animationDuration:t,animationIterationCount:"infinite",animationTimingFunction:"linear"}}},mounted(){},methods:{}},ev={class:"dk-view-music"},tv={key:0},ov=["src"];function nv(t,e,o,n,l,u){const i=b("van-icon");return h(),w("div",ev,[o.iconType==="image"?(h(),w("div",tv,[D("img",{src:o.imgUrl,width:"100%",style:G(u._style),class:ae([o.rotation,"dk-music-img"]),alt:""},null,14,ov)])):(h(),I(i,{key:1,name:"music-o",class:ae(["dk-music-icon",o.rotation]),style:G(u._style)},null,8,["class","style"]))])}var lv=Y(Zg,[["render",nv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewMusic.vue"]]);const uv={name:"DkViewNavBar",props:{title:{default:"",type:String},rightText:{default:"",type:String},leftText:{default:"",type:String},fixed:{default:!0,type:Boolean},leftArrow:{default:!0,type:Boolean},border:{default:!0,type:Boolean},placeholder:{default:!1,type:Boolean}},data(){return{}},computed:{},mounted(){},methods:{}};function av(t,e,o,n,l,u){const i=b("van-nav-bar");return h(),w("div",null,[d(i,{title:o.title,"left-text":o.leftText,"right-text":o.rightText,"left-arrow":o.leftArrow,border:o.border},null,8,["title","left-text","right-text","left-arrow","border"])])}var iv=Y(uv,[["render",av],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNavBar.vue"]]);const rv={name:"DkViewNoticeBar",props:{leftIcon:{default:"",type:String},text:{default:"",type:String},url:{default:"",type:String},background:{default:"",type:String},color:{default:"",type:String},speed:{default:60,type:Number}},data(){return{}},computed:{},mounted(){},methods:{}};function sv(t,e,o,n,l,u){const i=b("van-notice-bar");return h(),w("div",null,[d(i,{speed:o.speed,"left-icon":o.leftIcon,text:o.text,color:o.color,background:o.background},null,8,["speed","left-icon","text","color","background"])])}var dv=Y(rv,[["render",sv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNoticeBar.vue"]]);const cv={name:"DkViewSwipe",props:{value:{default:"",type:String},height:{default:"",type:[Number,String]},autoplay:{default:3e3,type:[Number,String]},swipeList:{default:()=>[],type:[Array]},fit:{default:"fill",type:String},bgColor:{default:"",type:String}},data(){return{}},computed:{},watch:{swipeList(t){}},mounted(){},methods:{}};function pv(t,e,o,n,l,u){const i=b("van-image"),a=b("van-swipe-item"),s=b("van-swipe");return h(),I(s,{class:"dk-view-swipe",autoplay:o.autoplay,"indicator-color":"white",style:G({background:o.bgColor||""})},{default:g(()=>[(h(!0),w(W,null,te(o.swipeList,(r,_)=>(h(),I(a,{key:_},{default:g(()=>[d(i,{src:r.img,fit:o.fit,width:"100%",height:o.height},null,8,["src","fit","height"])]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var fv=Y(cv,[["render",pv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewSwipe.vue"]]);const mv={name:"DkViewTabbar",props:{tabBars:{default:()=>[],type:[Array]},active:{default:0,type:Number},activeColor:{default:"#1989fa",type:String},inactiveColor:{default:"#333333",type:String},bgColor:{default:"#fff",type:String}},data(){return{tmpActive:this.active-1}},computed:{},watch:{active(){this.tmpActive=this.active}},mounted(){},methods:{}},hv={class:"dk-view-tabbar"},gv=["src"];function vv(t,e,o,n,l,u){const i=b("van-tabbar-item"),a=b("van-tabbar");return h(),w("div",hv,[d(a,{modelValue:l.tmpActive,"onUpdate:modelValue":e[0]||(e[0]=s=>l.tmpActive=s),"active-color":o.activeColor,"inactive-color":o.inactiveColor,style:G({backgroundColor:o.bgColor}),fixed:!1},{default:g(()=>[(h(!0),w(W,null,te(o.tabBars,(s,r)=>(h(),I(i,{key:r,icon:s.icon,dot:s.badge==="dot",badge:s.badge==="badge"?s.badge_text:""},Ct({default:g(()=>[D("span",null,Q(s.title),1)]),_:2},[s.useImg===!0?{name:"icon",fn:g(()=>[D("img",{src:s.imgIcon,alt:""},null,8,gv)]),key:"0"}:void 0]),1032,["icon","dot","badge"]))),128))]),_:1},8,["modelValue","active-color","inactive-color","style"])])}var yv=Y(mv,[["render",vv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTabbar.vue"]]);const _v={name:"DkViewTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},bv=["innerHTML"];function Ev(t,e,o,n,l,u){return h(),w("div",{innerHTML:o.textarea},null,8,bv)}var kv=Y(_v,[["render",Ev],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTextarea.vue"]]);const Fv={name:"DkViewTitle",props:{title:{default:"\u6807\u9898",type:String},size:{default:14,type:Number},color:{default:"#333",type:String},bold:{default:!1,type:Boolean},prefix:{default:"",type:String},icon:{default:"volume",type:String},prefixColor:{default:"#409eff",type:String},prefixImage:{default:"",type:String},squareWidth:{default:4,type:Number},squareHeight:{default:12,type:Number},imageWidth:{default:24,type:Number},imageHeight:{default:24,type:Number},iconSize:{default:18,type:Number},titleMarginLeft:{default:4,type:Number},rTitle:{default:"\u66F4\u591A",type:String},rColor:{default:"#999",type:String},rSize:{default:12,type:Number},showRight:{default:!1,type:Boolean}},data(){return{}},computed:{},mounted(){},methods:{}},wv={class:"dk-view-title"},Dv={class:"title-left"};function Cv(t,e,o,n,l,u){const i=b("van-icon"),a=b("van-image");return h(),w("div",wv,[D("div",Dv,[o.prefix==="icon"?(h(),I(i,{key:0,name:o.icon,style:G({color:o.prefixColor,fontSize:o.iconSize+"px"})},null,8,["name","style"])):B("v-if",!0),o.prefix==="image"?(h(),I(a,{key:1,src:o.prefixImage,alt:"",class:"dk-title-img",width:o.imageWidth,height:o.imageHeight},null,8,["src","width","height"])):B("v-if",!0),o.prefix==="square"?(h(),w("div",{key:2,style:G({width:o.squareWidth+"px",height:o.squareHeight+"px",background:o.prefixColor})},null,4)):B("v-if",!0),D("div",{style:G({marginLeft:o.titleMarginLeft+"px",color:o.color,fontWeight:o.bold?800:400})},Q(o.title),5)]),o.showRight?(h(),w("div",{key:0,class:"title-right",style:G({color:o.rColor,fontSize:o.rSize+"px"})},Q(o.rTitle),5)):B("v-if",!0)])}var Av=Y(Fv,[["render",Cv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTitle.vue"]]);const xv={name:"DkViewVideo",props:{poster:{default:"",type:String},isHeight:{default:!1,type:Boolean},height:{default:0,type:Number},videoPath:{default:"",type:String},isOpenClose:{default:!1,type:Boolean}},data(){return{}},computed:{_style(){const t={};return this.height&&this.isHeight?t.height=this.height+"px":t.height="240px",t}},mounted(){},methods:{}},Bv={style:{position:"relative"},class:"dk-video-content"},Sv={class:"video-preview"},Vv={key:0},$v={key:1};function Tv(t,e,o,n,l,u){const i=b("el-image"),a=b("dk-icon");return h(),w("div",{class:"dk-view-video",style:G(u._style)},[D("div",Bv,[o.poster?(h(),I(i,{key:0,src:o.poster,alt:"",class:"poster"},null,8,["src"])):B("v-if",!0),D("div",Sv,[d(a,{icon:"VideoPlay",size:24}),o.videoPath?(h(),w("p",$v,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B")):(h(),w("p",Vv,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891"))])])],4)}var Iv=Y(xv,[["render",Tv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewVideo.vue"]]);const fi={DkViewBulletChat:wg,DkViewCell:Ag,DkViewCommonBtn:Rg,DkViewDialog:Ng,DkViewGridCellList:Gg,DkViewImage:Qg,DkViewMusic:lv,DkViewNavBar:iv,DkViewNoticeBar:dv,DkViewSwipe:fv,DkViewTabbar:yv,DkViewTextarea:kv,DkViewTitle:Av,DkViewVideo:Iv},Pt="/adminapi/cloud_diy/";function Rv(t,e,o,n){return be({url:Pt+"getList",method:"post",data:{page_name:t,page:e,search:o,size:n}})}function Ov(t){return be({url:Pt+"down",method:"post",data:{id:t}})}function zv(t,e,o){return be({url:Pt+"getDiyForm",method:"post",data:{id:t,page_name:e,diy_data:o}})}function jv(){return be({url:Pt+"getSiteMsg",method:"post",data:{}})}function Pv(t,e){return be({url:Pt+"getCheckForm",method:"post",data:{id:t,state:e}})}function Mv(t){return be({url:Pt+"delDiy",method:"post",data:{id:t}})}const Nv={name:"DiyCloud",props:{pageName:{default:"",type:String},diyData:{default:()=>({}),type:Object}},emits:["submit"],data(){return{total:0,pageSize:12,keyword:"",search:{state:"",look:""},chooseDiy:{},page:1,formData:null,site:{},width:"800px",list:[],loading:!0,errMsg:"",errCode:0}},computed:{},mounted(){this.getDiyList(),this.getSiteMsg()},methods:{submit(){this.$confirm("\u786E\u5B9A\u9009\u62E9\u6B64diy\u6A21\u677F\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Ov(this.chooseDiy.id).then(t=>{this.$emit("submit",t.data)})}).catch(()=>{})},onChooseDiy(t){this.chooseDiy=t},getDiyList(t){this.page=t||this.page,this.loading=!0,Rv(this.pageName,this.page,this.search,this.pageSize).then(e=>{this.list=e.data,this.total=e.msg,this.loading=!1}).catch(e=>{this.errMsg=e.msg,this.errCode=-1,this.loading=!1})},getSiteMsg(){jv().then(t=>{this.site=t.data})},getDiyForm(t=0){zv(t,this.pageName,this.diyData).then(e=>{console.log("getDiyForm",e),this.formData=e.data,this.width="600px",this.$refs.formRef.show()}).catch(e=>{this.$message.error(e.msg)})},getCheckForm(){Pv(this.chooseDiy.id,this.chooseDiy.state).then(t=>{this.formData=t.data,this.width="400px",this.$refs.formRef.show()}).catch(t=>{this.$message.error(t.msg)})},delDiy(){this.$confirm("\u786E\u5B9A\u8981\u5220\u9664\u5F53\u524D\u6A21\u677F\uFF0C\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Mv(this.chooseDiy.id).then(t=>{this.$message.success(t.msg),this.getDiyList(1)}).catch(t=>{this.$message.error(t.msg)})}).catch(()=>{})},onSubmit(){this.getDiyList(0)}}},Uv={class:"diy-cloud"},Lv={class:"diy-header"},Hv={class:"diy-search"},Wv={class:"diy-content"},qv={key:0,class:"cl"},Yv=["onClick"],Gv={key:0,class:"mask"},Xv={class:"type"},Jv={key:1,class:"tag-list"},Kv={key:0,class:"tag"},Qv={key:1,class:"tag"},Zv={class:"title over"},e0={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"500px"}},t0={class:"diy-footer"};function o0(t,e,o,n,l,u){const i=b("el-option"),a=b("el-select"),s=b("el-button"),r=b("el-input"),_=b("el-image"),y=b("el-tag"),E=b("van-icon"),k=b("el-empty"),C=b("el-pagination"),p=b("dk-form"),S=ht("loading");return h(),w("div",Uv,[D("div",Lv,[D("div",Hv,[d(a,{modelValue:l.search.state,"onUpdate:modelValue":e[0]||(e[0]=x=>l.search.state=x),placeholder:"\u72B6\u6001"},{default:g(()=>[d(i,{label:"\u5168\u90E8\u72B6\u6001",value:""}),l.site.level>0?(h(),I(i,{key:0,label:"\u672A\u901A\u8FC7",value:"-1"})):B("v-if",!0),l.site.level>0?(h(),I(i,{key:1,label:"\u672A\u5BA1\u6838",value:"0"})):B("v-if",!0),d(i,{label:"\u5DF2\u5BA1\u6838",value:"1"}),d(i,{label:"\u5DF2\u63A8\u8350",value:"2"})]),_:1},8,["modelValue"]),d(a,{modelValue:l.search.look,"onUpdate:modelValue":e[1]||(e[1]=x=>l.search.look=x),placeholder:"\u67E5\u770B",class:"u-m-l-10"},{default:g(()=>[d(i,{label:"\u5168\u90E8\u6A21\u677F",value:""}),d(i,{label:"\u6211\u7684\u6A21\u677F",value:"me"}),d(i,{label:"\u4ED6\u4EBA\u6A21\u677F",value:"other"})]),_:1},8,["modelValue"]),d(r,{modelValue:l.search["name like"],"onUpdate:modelValue":e[3]||(e[3]=x=>l.search["name like"]=x),placeholder:"\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0",clearable:"",onClear:e[4]||(e[4]=x=>u.getDiyList(0))},{append:g(()=>[d(s,{icon:"Search",onClick:e[2]||(e[2]=x=>u.getDiyList(1))})]),_:1},8,["modelValue"])]),D("div",null,[l.site.level>0?(h(),I(s,{key:0,type:"warning",disabled:!l.chooseDiy.id,onClick:u.getCheckForm},{default:g(()=>[N("\u5BA1\u6838 ")]),_:1},8,["disabled","onClick"])):B("v-if",!0),l.site.level>1?(h(),I(s,{key:1,type:"danger",disabled:!l.chooseDiy.id,onClick:u.delDiy},{default:g(()=>[N("\u5220\u9664")]),_:1},8,["disabled","onClick"])):B("v-if",!0),l.site.level>0||l.site.site_id===l.chooseDiy.site_id?(h(),I(s,{key:2,type:"info",disabled:!l.chooseDiy.id,onClick:e[5]||(e[5]=x=>u.getDiyForm(l.chooseDiy.id))},{default:g(()=>[N("\u7F16\u8F91 ")]),_:1},8,["disabled"])):B("v-if",!0),d(s,{type:"primary",icon:"Upload",onClick:e[6]||(e[6]=x=>u.getDiyForm())},{default:g(()=>[N("\u4E0A\u4F20\u65B0\u6A21\u677F")]),_:1})])]),B("-------------\u6A21\u677F\u5217\u8868------------------------"),_e((h(),w("div",Wv,[!l.loading&&l.list.length>0?(h(),w("ul",qv,[(h(!0),w(W,null,te(l.list,(x,F)=>(h(),w("li",{key:F,class:ae({choose:l.chooseDiy.id===x.id}),onClick:m=>u.onChooseDiy(x)},[d(_,{src:x.cover_image,class:"cover",fit:"contain"},null,8,["src"]),x.state<=0?(h(),w("div",Gv)):B("v-if",!0),D("div",Xv,[x.state==="0"?(h(),I(y,{key:0,effect:"dark"},{default:g(()=>[N("\u5BA1\u6838\u4E2D")]),_:1})):B("v-if",!0),x.state==="-1"?(h(),I(y,{key:1,type:"danger",effect:"dark"},{default:g(()=>[N("\u5BA1\u6838\u672A\u901A\u8FC7")]),_:1})):B("v-if",!0)]),x.state>0?(h(),w("div",Jv,[x.state>=2?(h(),w("span",Kv,[d(E,{name:"good-job"}),N("\u63A8\u8350")])):B("v-if",!0),x.down_count>100?(h(),w("span",Qv,[d(E,{name:"fire"}),N("\u70ED\u95E8")])):B("v-if",!0)])):B("v-if",!0),D("div",Zv,Q(x.name),1)],10,Yv))),128))])):(h(),w("div",e0,[l.errCode===0?(h(),I(k,{key:0,description:"\u5F53\u524D\u8FD8\u6CA1\u6A21\u677F\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u4E0A\u4F20\u81EA\u5DF1\u7684\u6A21\u677F\u5427"})):(h(),I(k,{key:1,description:l.errMsg},null,8,["description"]))])),d(C,{background:"",layout:"total,prev, pager, next",total:l.total,"current-page":l.page,"page-size":l.pageSize,"hide-on-single-page":"",onCurrentChange:u.getDiyList},null,8,["total","current-page","page-size","onCurrentChange"])])),[[S,l.loading]]),D("div",t0,[d(s,{type:"primary",style:{width:"300px"},disabled:!l.chooseDiy.id,onClick:u.submit},{default:g(()=>[N("\u786E\u5B9A")]),_:1},8,["disabled","onClick"])]),d(p,{ref:"formRef","is-dialog":!0,"form-data":l.formData,onSubmit:u.onSubmit},null,8,["form-data","onSubmit"])])}var n0=Y(Nv,[["render",o0],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DiyCloud.vue"]]);class l0{events=[];constructor(){}addEvent(e){this.events.push({id:e.id,label:e.label,value:e.value})}addEvents(e){this.events.push(...e.map(o=>({id:o.id,label:o.label,value:o.value})))}getAllEvents(){return this.events}getEventById(e){return this.events.find(o=>o.id===e)}removeEventById(e){const o=this.events.findIndex(n=>n.id===e);o!==-1&&this.events.splice(o,1)}removeEventByLabel(e){const o=this.events.findIndex(n=>n.label===e);o!==-1&&this.events.splice(o,1)}removeAllEvent(){this.events=[]}}$e.register({name:"help",init({value:t},e){Fn(t)||(t=[t]),e.suffix={type:"p",children:t,class:"form-help"}}});const u0=j({name:"DkPageDiy",components:{DiyCloud:n0,PreviewPhone:$m,DragForm:$e.$form()},props:ci,setup(t){const{menu:e,height:o,mask:n,locale:l}=yn(t),u=as(),i=R({active:null});to("fcx",i),to("diy",u);const a=new l0,s=is(t,"config",{}),r=t.type==="web"?nh:vh,_=t.type==="web"?lh:yh;if(t.type==="web")for(const m in fi)$e.component(m,fi[m]);else for(const m in pi)$e.component(m,pi[m]);const y=m=>{const c=["DragTool","DragBox"],v=[];return c.indexOf(m.type)>-1?m.children.length>0?(m.children.forEach(f=>{v.push(...y(f))}),v):[]:[m]},E=m=>{const c=[];return m.forEach(v=>{y(v).forEach(V=>{if(V._id){const A={id:V._id,type:V.type,name:V.config?.config?.label||"",children:[]};V.children&&V.children.length>0&&(A.children=E(V.children)),c.push(A)}})}),c},k=ue(()=>E(p.children)),C=ue(()=>{const m={};let c;for(let v=0;v<p.children.length;v++)p.children[v].children.length>0&&(c=p.children[v].children[0].type,m[c]?m[c]=m[c]+1:m[c]=1);return m}),p=me({cacheProps:{},moveRule:null,addRule:null,added:null,activeTab:"page",activeRule:null,children:R([]),menuList:e.value||_(),showBaseRule:!1,showDkSettingRule:!1,visible:{preview:!1},preview:{state:!1,rule:[],option:{}},diyCloud:{pageName:"",show:!1},dragForm:R({rule:[],api:{},option:{form:{},submitBtn:!1}}),dkSettingForm:{rule:sl(),api:{},options:{form:{labelPosition:"left",size:"small",labelWidth:"82px"},submitBtn:!1,mounted:m=>{m.activeRule=p.activeRule,m.setValue(m.options.formData||{})}}},dkPageForm:{rule:bh(),api:{},options:{formData:{},form:{labelPosition:"left",size:"small",labelWidth:"82px"},submitBtn:!1,mounted:m=>{m.setValue(m.options.formData||{})}}},propsForm:{rule:[],api:{},value:{},options:{form:{labelPosition:"left",size:"small",labelWidth:"70px"},submitBtn:!1,mounted:m=>{m.activeRule=p.activeRule,m.setValue(m.options.formData||{})}}},isDragging:!1,startValue:0,dragName:"",asideValue:0,trackMouseBound:null,stopChangeBound:null,rightAside:{style:{width:t.rightAsideWidth},hide:!1},leftAside:{style:{width:t.leftAsideWidth},hide:!1},treeAside:{style:{height:"500px",minHeight:"30px",maxHeight:"30px"},hide:!0,treeData:[]},leftTabsName:"component"});function S(m){return Array.isArray(m)?m.map(c=>S(c)):(typeof m=="object"&&m!==null&&Array.isArray(m.children)&&(m.children=m.children.filter(c=>typeof c=="object"&&c!==null),m.children=S(m.children)),m)}Z(()=>p.dragForm,()=>{p.treeAside.treeData=F.parseRule(jt(p.dragForm.api.rule[0].children),!0),p.treeAside.treeData=S(p.treeAside.treeData)},{deep:!0}),Z(()=>p.preview.state,function(m){m||Oe(()=>{p.preview.rule=p.preview.option=null})});let x=null;const F={clear(m="all"){(m==="all"||m==="rule")&&F.setRule([]),(m==="all"||m==="page")&&F.setPageConfig({})},get(){return{rule:F.getRule(),config:F.getPageConfig()}},set(m){if(!m)return;const c=m.config?m.config:{};F.setPageConfig(c),F.setRule(m.rule)},unWatchActiveRule(){x&&x(),x=null},watchActiveRule(){F.unWatchActiveRule(),x=Z(()=>p.activeRule,function(m){m&&F.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren(m){return me({children:m}).children},addMenu(m){if(!m.name||!m.list)return;let c=!0;p.menuList.forEach((v,f)=>{v.name===m.name&&(p.menuList[f]=m,c=!1)}),c&&p.menuList.push(m)},removeMenu(m){[...p.menuList].forEach((c,v)=>{c.name===m&&p.menuList.splice(v,1)})},setMenuItem(m,c){p.menuList.forEach(v=>{v.name===m&&(v.list=c)})},appendMenuItem(m,c){p.menuList.forEach(v=>{v.name===m&&v.list.push(...Array.isArray(c)?c:[c])})},removeMenuItem(m){p.menuList.forEach(c=>{let v;We.String(m)?[...c.list].forEach((f,V)=>{f.name===m&&c.list.splice(V,1)}):(v=c.list.indexOf(m))>-1&&c.list.splice(v,1)})},addComponent(m){Array.isArray(m)?m.forEach(c=>{r[c.name]=c}):r[m.name]=m},getParent(m){let c=m.__fc__.parent.rule;const v=c.config;return v&&v.config.inside&&(m=c,c=c.__fc__.parent.rule),{root:c,parent:m}},makeDrag(m,c,v,f){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:m===!0?"default":m,ghostClass:"ghost",animation:150,emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:c},children:v,on:f}},makeDragRule(m){return F.makeChildren([F.makeDrag(!0,"draggable",m,{add:(c,v)=>F.dragAdd(m,v),end:(c,v)=>F.dragEnd(m,v),start:(c,v)=>F.dragStart(m,v),unchoose:(c,v)=>F.dragUnchoose(m,v)})])},previewFc(){p.preview.state=!0,p.preview.rule=F.getRule(),p.preview.option=F.getOption()},getPageConfig(){return p.dkPageForm.options.formData},setPageConfig(m){(!m||Fn(m))&&(m={}),p.dkPageForm.api.coverValue(m)},showDiyCloud(m){console.log("123");const c=F.get();p.diyCloud.pageName=m,p.diyCloud.show=!0,p.diyCloud.diy_data=c},downCloudConfig(m){F.set(m),p.diyCloud.show=!1},getRule(){return F.parseRule(jt(p.dragForm.api.rule[0].children))},getJson(){return $e.toJson(F.getRule())},setRule(m){m||(m=[]),p.children=F.makeChildren(F.loadRule(We.String(m)?$e.parseJson(m):jt(m))),F.clearActiveRule(),p.dragForm.rule=F.makeDragRule(p.children)},clearActiveRule(){p.activeRule=null,p.activeTab="page"},loadRule(m){const c=[];return m.forEach(v=>{if(We.String(v))return c.push(v);const f=r[v._fc_drag_tag]||r[v.type],V=v.children;if(v.children=[],v.control&&(v._control=v.control,delete v.control),f){if(v=F.makeRule(f,v),V){let A=v.children[0].children;f.drag&&(A=A[0].children),A.push(...F.loadRule(V))}}else V&&(v.children=F.loadRule(V));c.push(v)}),c},parseRule(m,c=!1){return[...m].reduce((v,f)=>We.String(f)?(v.push(f),v):f.type==="DragBox"?(v.push(...F.parseRule(f.children,c)),v):f.type==="DragTool"&&(f=f.children[0],f.type==="DragBox")?(v.push(...F.parseRule(f.children,c)),v):(f&&(f={...f},f.children&&f.children.length&&(f.children=F.parseRule(f.children,c)),delete f.key,delete f.component,c||(delete f._id,f.config&&delete f.config.config),f.effect&&(delete f.effect._fc,delete f.effect._fc_tool),f._control&&(f.control=f._control,delete f._control),Object.keys(f).filter(V=>Array.isArray(f[V])&&f[V].length===0||We.Object(f[V])&&Object.keys(f[V]).length===0).forEach(V=>{delete f[V]}),v.push(f)),v),[])},baseChange(m,c,v,f){p.activeRule&&f[p.activeRule._id]===p.activeRule&&(F.unWatchActiveRule(),p.activeRule[m]=c,F.watchActiveRule(),p.activeRule.config.config?.watch?.["$"+m]?.({field:m,value:c,api:f,rule:p.activeRule}))},dkSettingChange(m,c,v,f,V){p.activeRule&&f[p.activeRule._id]===p.activeRule&&(p.activeRule.setting[m]=c)},propRemoveField(m,c,v){if(p.activeRule&&v[p.activeRule._id]===p.activeRule){F.unWatchActiveRule();const f=m;if(p.dragForm.api.sync(p.activeRule),m.indexOf("formCreate")===0){if(m=m.replace("formCreate",""),!m)return;m=xa(m),m.indexOf("effect")===0&&m.indexOf(">")>-1?delete p.activeRule.effect[m.split(">")[1]]:m.indexOf("props")===0&&m.indexOf(">")>-1?delete p.activeRule.props[m.split(">")[1]]:m.indexOf("attrs")===0&&m.indexOf(">")>-1?p.activeRule.attrs[m.split(">")[1]]=value:m==="child"?delete p.activeRule.children[0]:m&&(p.activeRule[m]=void 0)}else delete p.activeRule.props[m];F.watchActiveRule(),p.activeRule.config.config?.watch?.[f]?.({field:f,value:void 0,api:v,rule:p.activeRule})}},propChange(m,c,v,f){if(p.activeRule&&f[p.activeRule._id]===p.activeRule){F.unWatchActiveRule();const V=m;if(m.indexOf("formCreate")===0){if(m=m.replace("formCreate",""),!m)return;m=xa(m),m.indexOf("effect")===0&&m.indexOf(">")>-1?p.activeRule.effect[m.split(">")[1]]=c:m.indexOf("props")===0&&m.indexOf(">")>-1?p.activeRule.props[m.split(">")[1]]=c:m.indexOf("attrs")===0&&m.indexOf(">")>-1?p.activeRule.attrs[m.split(">")[1]]=c:m==="child"?p.activeRule.children[0]=c:p.activeRule[m]=c}else p.activeRule.props[m]=c;F.watchActiveRule(),p.activeRule.config.config?.watch?.[V]?.({field:V,value:c,api:f,rule:p.activeRule})}},dkPageChange(m,c,v,f,V){p.dkPageForm.options.formData[m]=c},nodeClick(m){F.chooseRule(m._id)},delRule(m,c=null){c=c||p.children,c.forEach(v=>{if(v._id===m){if(v.config.config.inside)v.__fc__.rm(),u.emit("delete",v);else{const f=F.getParent(v);u.emit("delete",f.root.children[0]),f.root.__fc__.rm()}F.clearActiveRule()}else v.children&&v.children.length>0&&F.delRule(m,v.children)})},chooseRule(m,c=null){c=c||p.children,c.forEach(v=>{if(v._id===m)if(u.emit("active",v),F.toolActive(v),v.config.config.inside)i.value.active=v.children[0]?.props.unique||null;else{const f=F.getParent(v);i.value.active=f.root?.props?.unique||null}else v.children&&v.children.length>0&&F.chooseRule(m,v.children)})},toolActive(m){F.unWatchActiveRule(),p.activeRule&&(delete p.propsForm.api[p.activeRule._id],delete p.dragForm.api.activeRule),p.activeRule=m,p.dragForm.api.activeRule=m,Oe(()=>{p.activeTab="props",Oe(()=>{p.propsForm.api[p.activeRule._id]=p.activeRule,p.dkSettingForm.api[p.activeRule._id]=p.activeRule})}),p.cacheProps[m._id]||(p.cacheProps[m._id]=m.config.config.props(m)),p.propsForm.rule=p.cacheProps[m._id],F.updateRuleFormData(),F.watchActiveRule(),F.updateShowStyle(m)},updateShowStyle(m){if(p.showDkSettingRule=m.showStyle,p.showDkSettingRule)if(p.dkSettingForm.rule=sl(m),Object.values(m.setting).length>0)p.dkSettingForm.options.formData=m.setting;else{const c={};sl(m).forEach(v=>{c[v.field]=v.value}),p.dkSettingForm.options.formData=c}},updateRuleFormData(){const m=p.activeRule,c={...m.props,formCreateChild:jt(m.children[0])};Object.keys(m).forEach(v=>{["effect","config","payload","id","type"].indexOf(v)<0&&(c["formCreate"+ai(v)]=jt(m[v]))}),["props","effect","attrs"].forEach(v=>{m[v]&&Object.keys(m[v]).forEach(f=>{c["formCreate"+ai(v)+">"+f]=jt(m[v][f])})}),p.propsForm.value=c,p.showBaseRule=vm(m,"field")&&m.input!==!1&&(!s.value||s.value.showBaseForm!==!1),p.showBaseRule&&p.dragForm.api.refreshValidate()},dragStart(m){p.moveRule=m,p.added=!1},dragUnchoose(m,c){p.addRule={children:m,oldIndex:c.oldIndex}},dragAdd(m,c){const v=c.newIndex,f=c.item._underlying_vm_;if(!f||f.__fc__){if(p.addRule){const V=p.addRule.children.splice(p.addRule.oldIndex,1);m.splice(v,0,V[0])}}else{const V=F.makeRule(r[f.name]),A=V.children[0].config.config,$=A.count?A.count:99;if((C.value[A.name]?C.value[A.name]:0)>=$)return Zl({title:"\u8B66\u544A",message:"\u5F53\u524D\u6A21\u5757\u53EA\u80FD\u6DFB\u52A0"+A.count+"\u4E2A",type:"warning"}),!1;m.splice(v,0,V)}p.added=!0},dragEnd(m,{newIndex:c,oldIndex:v}){if(!p.added&&!(p.moveRule===m&&c===v)){const f=p.moveRule.splice(v,1);m.splice(c,0,f[0])}p.moveRule=null,p.addRule=null,p.added=!1},makeRule(m,c){const v=c||m.rule();v.config={config:m},m.component&&(v.component=eu(m.component)),v.effect||(v.effect={}),v.effect._fc=!0,v._fc_drag_tag=m.name,v.setting=v.setting||{};let f;if(m.drag&&v.children.push(f=F.makeDrag(m.drag,v.type,F.makeChildren([]),{end:(A,$)=>F.dragEnd(A.self.children,$),add:(A,$)=>F.dragAdd(A.self.children,$),start:(A,$)=>F.dragStart(A.self.children,$),unchoose:(A,$)=>F.dragUnchoose(A.self.children,$)})),m.children&&!c)for(let A=0;A<(m.childrenLen||1);A++){const $=F.makeRule(r[m.children]);(f||v).children.push($)}const V=n.value!==void 0?n.value!==!1:m.mask!==!1;return m.inside?(v.children=F.makeChildren([{type:"DragTool",props:{dragBtn:m.dragBtn!==!1,children:m.children,mask:V,setting:v.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:A})=>{const $=F.getParent(A).parent;$.__fc__.rm(),u.emit("delete",$),F.clearActiveRule()},create:({self:A})=>{const $=F.getParent(A);u.emit("create",$.parent),$.root.children.splice($.root.children.indexOf($.parent)+1,0,F.makeRule($.parent.config.config))},addChild:({self:A})=>{const $=F.getParent(A),T=$.parent.config.config,M=r[T.children];M&&(T.drag?$.parent.children[0]:$.parent).children[0].children.push(F.makeRule(M))},copy:({self:A})=>{const $=F.getParent(A);u.emit("copy",$.parent),$.root.children.splice($.root.children.indexOf($.parent)+1,0,$e.copyRule($.parent))},active:({self:A})=>{const $=F.getParent(A);u.emit("active",$.parent),F.toolActive($.parent)}},children:v.children}]),v):{type:"DragTool",props:{dragBtn:m.dragBtn!==!1,children:m.children,mask:V,setting:v.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:A})=>{u.emit("delete",A.children[0]),A.__fc__.rm(),F.clearActiveRule()},create:({self:A})=>{u.emit("create",A.children[0]);const $=F.getParent(A);$.root.children.splice($.root.children.indexOf($.parent)+1,0,F.makeRule(A.children[0].config.config))},addChild:({self:A})=>{const $=A.children[0].config.config,T=r[$.children];T&&($.drag?A.children[0]:A).children[0].children.push(F.makeRule(T))},copy:({self:A})=>{u.emit("copy",A.children[0]);const $=F.getParent(A),T=$e.copyRule($.parent);T.props.setting=T.children[0].setting,$.root.children.splice($.root.children.indexOf($.parent)+1,0,T)},active:({self:A})=>{u.emit("active",A.children[0]),F.toolActive(A.children[0])}},children:F.makeChildren([v])}},onResizerMouseDown(m,c){p.isDragging=!0,p.startValue=c.clientX,p.dragName=m,m==="left"&&(p.asideValue=document.getElementsByClassName("_fc-l")[0].offsetWidth),m==="right"&&(p.asideValue=document.getElementsByClassName("_fc-r")[0].offsetWidth),document.body.style.cursor="ew-resize",m==="tree"&&(p.startValue=c.clientY,p.asideValue=document.getElementsByClassName("children-list")[0].offsetHeight,console.log("data.startValue",p.startValue),console.log("data.asideValue",p.asideValue),document.body.style.cursor="n-resize"),p.trackMouseBound=F.onResizerMouseMove.bind(c),p.stopChangeBound=F.onResizerMouseUp.bind(c),document.addEventListener("mousemove",p.trackMouseBound),document.addEventListener("mouseup",p.stopChangeBound)},onResizerMouseUp(){document.removeEventListener("mousemove",p.trackMouseBound),document.removeEventListener("mouseup",p.stopChangeBound),document.body.style.cursor="default",p.isDragging=!1,p.dragName=""},onResizerMouseMove(m){if(p.isDragging){if(p.dragName==="left"){let c=m.clientX-p.startValue+p.asideValue;c>455&&(c=455),c<200&&(c=200),p.leftAside.style.width=c+"px"}if(p.dragName==="right"){let c=p.startValue-m.clientX+p.asideValue;c>800&&(c=800),c<300&&(c=300),p.rightAside.style.width=c+"px"}if(p.dragName==="tree"){let c=p.startValue-m.clientY+p.asideValue;c>800&&(c=800),c<30&&(c=30),p.treeAside.style.height=c+"px"}}},hideAside(m){if(m==="left")p.leftAside.hide?(p.leftAside.hide=!1,delete p.leftAside.style.minWidth,delete p.leftAside.style.maxWidth):(p.leftAside.hide=!0,p.leftAside.style.minWidth="0px",p.leftAside.style.maxWidth="0px");else if(m==="right")p.rightAside.hide?(p.rightAside.hide=!1,delete p.rightAside.style.minWidth,delete p.rightAside.style.maxWidth):(p.rightAside.hide=!0,p.rightAside.style.minWidth="0px",p.rightAside.style.maxWidth="0px");else if(m==="tree")if(p.treeAside.hide){p.treeAside.hide=!1;const c=p.treeAside.style.height;p.treeAside.style={height:c}}else p.treeAside.hide=!0,p.treeAside.style.minHeight="30px",p.treeAside.style.maxHeight="30px"},allowDrop(m,c,v){const f=m.data.config.config,V=c.data.config.config;return!!(v==="inner"&&f.inside&&f.name===V.children||v!=="inner"&&f.name===V.name&&f.inside&&V.inside||v!=="inner"&&!f.inside&&!V.inside||v==="inner"&&!f.inside&&V.inside)},allowDrag(m){if(console.log("allowDrag",m),m.data.type==="DragTool")return!0},nodeDrop(m,c,v,f){F.setRule(p.treeAside.treeData)}};return p.dragForm.rule=F.makeDragRule(F.makeChildren(p.children)),{...yn(p),...F,countObj:C,diyTree:k,eventData:a}},created(){document.body.ondrop=t=>{t.preventDefault(),t.stopPropagation()}}}),a0={class:"_fc-l-groups"},i0={class:"_fc-l-title"},r0={class:"_fc-l-icon"},s0={class:"_fc-l-name"},d0={key:0,class:"_fc-l-count",style:{}},c0={class:"children-list"},p0={key:0,class:"_fc-tree-node"};function f0(t,e,o,n,l,u){const i=b("dk-icon"),a=b("draggable"),s=b("el-tab-pane"),r=b("el-tree"),_=b("el-tabs"),y=b("el-aside"),E=b("el-header"),k=b("DragForm"),C=b("preview-phone"),p=b("el-container"),S=b("el-dialog"),x=b("diy-cloud"),F=b("dk-dialog"),m=ht("loading");return h(),I(p,{class:"_fc-designer dk-page-diy"},{default:g(()=>[B(" \u5DE6\u8FB9"),d(y,{class:"_fc-l item-box",style:G(t.leftAside.style)},{default:g(()=>[d(_,{modelValue:t.leftTabsName,"onUpdate:modelValue":e[0]||(e[0]=c=>t.leftTabsName=c)},{default:g(()=>[d(s,{label:"\u7EC4\u4EF6\u5217\u8868",name:"component"},{default:g(()=>[D("div",a0,[(h(!0),w(W,null,te(t.menuList,(c,v)=>(h(),w("div",{key:v,class:"_fc-l-group"},[D("h4",i0,Q(c.title),1),d(a,{group:{name:"default",pull:"clone",put:!1},sort:!1,list:c.list,"item-key":"icon",filter:".not-drag",class:"_fc-l-items"},{item:g(({element:f})=>[(h(),w("div",{key:f.id,class:ae(["_fc-l-item",f.count-(t.countObj[f.name]||0)<=0?"not-drag":""])},[D("div",r0,[d(i,{icon:f.icon,size:24},null,8,["icon"])]),D("span",s0,Q(f.label),1),f.count?(h(),w("span",d0,Q(f.count-(t.countObj[f.name]||0)),1)):B("v-if",!0)],2))]),_:2},1032,["list"])]))),128))])]),_:1}),d(s,{label:"\u7ED3\u6784\u5927\u7EB2",name:"tree"},{default:g(()=>[D("div",c0,[d(r,{draggable:"","highlight-current":"",data:t.treeAside.treeData,props:{value:"type",label:"type"},"allow-drop":t.allowDrop,"default-expand-all":!0,onNodeDrop:t.nodeDrop,onNodeClick:t.nodeClick},{default:g(({data:c})=>[D("div",{class:"el-tree-node-content",style:G(t.activeRule&&t.activeRule._id===c._id?"color:#409eff":"")},[c.config?.config.label?(h(),w("div",p0,[d(i,{icon:c.config?.config.icon,class:"_fc-tree-icon"},null,8,["icon"]),N(" "+Q(c.config?.config.label),1)])):B("v-if",!0),d(i,{icon:"Close",class:"close-rule",onClick:mt(v=>t.delRule(c._id),["stop"])},null,8,["onClick"])],4)]),_:1},8,["data","allow-drop","onNodeDrop","onNodeClick"])])]),_:1})]),_:1},8,["modelValue"]),t.leftAside.hide?B("v-if",!0):(h(),w("div",{key:0,class:"aside-resizer",onMousedown:e[1]||(e[1]=c=>t.onResizerMouseDown("left",c)),onMouseup:e[2]||(e[2]=c=>t.onResizerMouseUp("left")),onMousemove:e[3]||(e[3]=c=>t.onResizerMouseMove("left"))},null,32)),D("div",{class:"aside-toggle left-99%",style:G(t.leftAside.hide?"display:block":""),onClick:e[4]||(e[4]=c=>t.hideAside("left"))},[d(i,{icon:t.leftAside.hide?"ArrowRight":"ArrowLeft"},null,8,["icon"])],4)]),_:1},8,["style"]),B(" \u5DE6\u8FB9\u7ED3\u675F"),B(" \u9884\u89C8\u533A"),d(p,{class:"_fc-m"},{default:g(()=>[d(E,{class:"_fc-m-tools",height:"45"},{default:g(()=>[Ee(t.$slots,"default")]),_:3}),d(C,{"page-config":t.dkPageForm.options.formData},{default:g(()=>[_e(d(k,{api:t.dragForm.api,"onUpdate:api":e[5]||(e[5]=c=>t.dragForm.api=c),rule:t.dragForm.rule,option:t.dragForm.option},null,8,["api","rule","option"]),[[m,t.loading]])]),_:1},8,["page-config"])]),_:3}),B(" \u9884\u89C8\u533A\u7ED3\u675F"),B(" \u53F3\u8FB9\u64CD\u4F5C\u533A"),d(y,{class:"_fc-r",style:G(t.rightAside.style)},{default:g(()=>[_e(d(_,{modelValue:t.activeTab,"onUpdate:modelValue":e[9]||(e[9]=c=>t.activeTab=c)},{default:g(()=>[t.activeRule?(h(),I(s,{key:t.activeRule?"props_"+t.activeRule._id6:"",label:"\u7EC4\u4EF6\u8BBE\u7F6E",name:"props"},{default:g(()=>[d(k,{api:t.propsForm.api,"onUpdate:api":e[6]||(e[6]=c=>t.propsForm.api=c),rule:t.propsForm.rule,option:t.propsForm.options,"model-value":t.propsForm.value,onChange:t.propChange,onRemoveField:t.propRemoveField},null,8,["api","rule","option","model-value","onChange","onRemoveField"])]),_:1})):B("v-if",!0),t.activeRule?(h(),I(s,{key:t.activeRule?"style_"+t.activeRule._id:"",label:"\u6837\u5F0F\u8BBE\u7F6E",name:"style"},{default:g(()=>[_e(d(k,{api:t.dkSettingForm.api,"onUpdate:api":e[7]||(e[7]=c=>t.dkSettingForm.api=c),rule:t.dkSettingForm.rule,option:t.dkSettingForm.options,"model-value":t.dkSettingForm.value,onChange:t.dkSettingChange},null,8,["api","rule","option","model-value","onChange"]),[[eo,t.showDkSettingRule]])]),_:1})):B("v-if",!0),d(s,{label:"\u9875\u9762\u914D\u7F6E",name:"page"},{default:g(()=>[d(k,{api:t.dkPageForm.api,"onUpdate:api":e[8]||(e[8]=c=>t.dkPageForm.api=c),rule:t.dkPageForm.rule,option:t.dkPageForm.options,onChange:t.dkPageChange},null,8,["api","rule","option","onChange"])]),_:1})]),_:1},8,["modelValue"]),[[eo,!t.rightAside.hide]]),t.rightAside.hide?B("v-if",!0):(h(),w("div",{key:0,class:"aside-resizer left-0",onMousedown:e[10]||(e[10]=c=>t.onResizerMouseDown("right",c)),onMouseup:e[11]||(e[11]=c=>t.onResizerMouseUp("right")),onMousemove:e[12]||(e[12]=c=>t.onResizerMouseMove("right"))},null,32)),D("div",{class:"aside-toggle right-99%",style:G(t.rightAside.hide?"display:block":""),onClick:e[13]||(e[13]=c=>t.hideAside("right"))},[d(i,{icon:t.rightAside.hide?"ArrowLeft":"ArrowRight"},null,8,["icon"])],4)]),_:1},8,["style"]),B(" \u53F3\u8FB9\u64CD\u4F5C\u533A\u7ED3\u675F"),d(S,{visible:t.preview.state,"onUpdate:visible":e[14]||(e[14]=c=>t.preview.state=c),width:"375px","append-to-body":"",style:{"min-height":"700px"}},{default:g(()=>[B(" <form-create"),B(' v-if="preview.state"'),B(' :rule="preview.rule"'),B(' :option="preview.option"'),B(" />")]),_:1},8,["visible"]),d(F,{modelValue:t.diyCloud.show,"onUpdate:modelValue":e[15]||(e[15]=c=>t.diyCloud.show=c),width:"1200px","append-to-body":"",title:"DIY\u6A21\u677F\u5E02\u573A",top:"10vh"},{default:g(()=>[t.diyCloud.show?(h(),I(x,{key:0,"page-name":t.diyCloud.pageName,"diy-data":t.diyCloud.diy_data,onSubmit:t.downCloudConfig},null,8,["page-name","diy-data","onSubmit"])):B("v-if",!0)]),_:1},8,["modelValue"])]),_:3})}var Oo=Y(u0,[["render",f0],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\page-diy.vue"]]);let m0=1;const h0=j({name:"DragTool",props:{dragBtn:{default:!1,type:Boolean},children:{default:"",type:String},unique:{default:"",type:String},mask:{default:!1,type:Boolean},setting:{default:()=>{},type:[Object]}},setup(t){const{unique:e}=yn(t),o=ue(()=>e.value||m0++),n=ut("fcx"),l=ut("previewSetting");return{id:o,state:n,previewSetting:l}},computed:{pageConfig(){return{}},_style(){let t={...this.setting.style,...this.setting.animation};return this.setting.is_position&&(t=Object.assign(t,{...this.setting.position,position:"absolute"})),t},_animate(){return this.setting.animation_preview!==!1&&this.setting.animate&&!this.previewSetting.closeAnimate?"animate__"+this.setting.animate:""}},beforeUnmount(){this.state={}},methods:{active(){this.state.active!==this.id&&(this.state.active=this.id,this.$emit("active"))}}}),g0={key:0,class:"drag-mask"},v0={class:"drag-r"};function y0(t,e,o,n,l,u){const i=b("dk-icon");return h(),w("div",{class:ae(["drag-tool animate__animated",[{active:t.state.active===t.id},t._animate]]),style:G(t._style),onClick:e[4]||(e[4]=mt((...a)=>t.active&&t.active(...a),["stop"]))},[t.mask?(h(),w("div",g0)):B("v-if",!0),D("div",v0,[D("div",{class:"drag-btn",title:"\u6DFB\u52A0\u5F53\u524D\u7EC4\u4EF6",onClick:e[0]||(e[0]=a=>t.$emit("create"))},[d(i,{icon:"CirclePlus"})]),D("div",{class:"drag-btn",title:"\u590D\u5236\u5F53\u524D\u7EC4\u4EF6",onClick:e[1]||(e[1]=a=>t.$emit("copy"))},[d(i,{icon:"CopyDocument"})]),t.children?(h(),w("div",{key:0,class:"drag-btn",title:"\u6DFB\u52A0\u5B50\u7EC4\u4EF6",onClick:e[2]||(e[2]=a=>t.$emit("addChild"))},[d(i,{icon:"fluent:tab-add-20-regular"})])):B("v-if",!0),D("div",{class:"drag-btn drag-btn-danger",title:"\u5220\u9664\u7EC4\u4EF6",onClick:e[3]||(e[3]=a=>t.$emit("delete"))},[d(i,{icon:"Close"})])]),Ee(t.$slots,"default")],6)}var _0=Y(h0,[["render",y0],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragTool.vue"]]);const b0=j({name:"DragBox",props:["rule","tag","formCreateInject"],render(t){const e={...t.$props.rule.props,...t.$attrs};let o=t.tag+"-drag drag-box";Object.keys(t.$slots).length||(o+=" "+t.tag+"-holder"),e.class=o,e.modelValue=[...this.$props.formCreateInject.children];const n={};return t.$slots.default&&t.$slots.default().forEach(u=>{u.key&&(n[u.key]=u)}),tu(lu,e,{item:({element:l})=>tu("div",{class:"drag-box-item"},n[l.__fc__.key+"fc"])})}});var E0=Y(b0,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragBox.vue"]]);const k0=j({name:"DkEventCreateInput"});var F0=j({...k0,props:{modelValue:{default:"",type:String},placeholder:{default:"",type:String}},emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,n=R(o.modelValue||"");Z(()=>o.modelValue,i=>{n.value=i}),Z(()=>n.value,i=>{e("change",i),e("update:modelValue",i),e("input",i)});const l=i=>{i=i||32;const a="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",s=a.length;let r="";for(let _=0;_<i;_++)r+=a.charAt(Math.floor(Math.random()*s));return r},u=()=>{n.value=l(6)};return(i,a)=>{const s=b("el-button"),r=b("el-input");return h(),w("div",null,[d(r,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=_=>n.value=_),placeholder:t.placeholder,clearable:""},{append:g(()=>[d(s,{onClick:u},{default:g(()=>[N("\u968F\u673A")]),_:1})]),_:1},8,["modelValue","placeholder"])])}}}),w0=Y(F0,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventCreateInput.vue"]]);const D0={name:"DkEventSelectInput",inject:["diy"],props:{modelValue:{default:"",type:String},placeholder:{default:"",type:String}},emits:["update:modelValue"],data(){return{data:"",loading:!1,eventData:[]}},computed:{EventData(){return this.diy.proxy.eventData},children(){return this.diy.proxy.children}},watch:{data(){this.$emit("update:modelValue",this.data)}},mounted(){this.data=this.modelValue||"",this.updateEvent()},methods:{updateEvent(){this.loading=!0,this.EventData.removeAllEvent(),this.onUpdateEvent(),this.loading=!1},onClick(){this.data=this.randomString(10)},randomString(t){t=t||32;const e="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",o=e.length;let n="";for(let l=0;l<t;l++)n+=e.charAt(Math.floor(Math.random()*o));return n},onUpdateEvent(){for(let t=0;t<this.children.length;t++)if(this.children[t].children.length>0){const e=this.children[t].children[0],o=e.props,n=e.config.config,l=n.props();this.findDkEventCreateInput(l,o).forEach(u=>{const i={id:e._id,label:u.props?.label||n.label,value:o[u.field]};i.value&&i.id&&i.label&&this.EventData.addEvent(i)})}this.eventData=this.EventData.getAllEvents()},findDkEventCreateInput(t,e){const o=[];return t.forEach(n=>{n.children&&o.push(...this.findDkEventCreateInput(n.children)),n.control&&Array.isArray(n.control)&&n.control.forEach(l=>{l.rule.length>0&&o.push(...this.findDkEventCreateInput(l.rule))}),n.type==="DkEventCreateInput"&&o.push(n)}),o}}},C0={style:{display:"flex"}},A0={style:{float:"left"}},x0={style:{float:"right","font-size":"13px",color:"#8492a6"}};function B0(t,e,o,n,l,u){const i=b("el-option"),a=b("el-select"),s=b("el-button");return h(),w("div",C0,[d(a,{modelValue:l.data,"onUpdate:modelValue":e[0]||(e[0]=r=>l.data=r),placeholder:"\u8BF7\u9009\u62E9\u8981\u89E6\u53D1\u4E8B\u4EF6",style:{width:"100%"},"allow-create":"",filterable:""},{default:g(()=>[(h(!0),w(W,null,te(l.eventData,r=>(h(),I(i,{key:r.value,label:r.label+"\uFF08"+r.value+"\uFF09",value:r.value},{default:g(()=>[D("span",A0,Q(r.label),1),D("span",x0,Q(r.value),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),d(s,{loading:l.loading,onClick:u.updateEvent},{default:g(()=>[N("\u5237\u65B0")]),_:1},8,["loading","onClick"])])}var mi=Y(D0,[["render",B0],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventSelectInput.vue"]]);const S0=["data-x","data-y","onClick","onMouseenter"],V0=["onClick"],$0={key:0},T0={class:"cube-selected-text"},I0={key:1},R0=["src"],O0={key:0},z0=j({name:"DkCubeImageInput"});var j0=j({...z0,props:{modelValue:{default:()=>({}),type:Object},imageStyle:{default:()=>({}),type:Object}},emits:["input","update:modelValue"],setup(t,{emit:e}){const o=t,n=R(null),{width:l}=gt(n),u=me({density:4}),i=ue(()=>{const f=l.value/u.density;return{width:f+"px",height:f+"px"}}),a=R(null),s=R(null),r=R([]),_=ue(()=>({density:u.density,selectedCubes:r.value})),y=()=>{r.value=[],a.value=null};Z(()=>_,()=>{e("update:modelValue",_.value)},{deep:!0}),Z(()=>o.modelValue,()=>{u.density=o.modelValue.density,r.value=o.modelValue.selectedCubes}),Se(()=>{u.density=o.modelValue.density||4,r.value=o.modelValue.selectedCubes||[]});const E=(f,V)=>{if(r.value.some(z=>{const ee=Math.min(z.start.x,z.end.x),oe=Math.max(z.start.x,z.end.x),H=Math.min(z.start.y,z.end.y),le=Math.max(z.start.y,z.end.y);return f>=ee&&f<=oe&&V>=H&&V<=le})||!a.value||!s.value)return!1;const $=Math.min(a.value.x,s.value.x),T=Math.max(a.value.x,s.value.x),M=Math.min(a.value.y,s.value.y),U=Math.max(a.value.y,s.value.y);return r.value.some(z=>{const ee=Math.min(z.start.x,z.end.x),oe=Math.max(z.start.x,z.end.x),H=Math.min(z.start.y,z.end.y),le=Math.max(z.start.y,z.end.y);return!(T<ee||$>oe||U<H||M>le)})?!1:f>=$&&f<=T&&V>=M&&V<=U},k=ue(()=>l.value/u.density),C=f=>{const V=Math.min(f.start.x,f.end.x)-1,A=Math.max(f.start.x,f.end.x),$=Math.min(f.start.y,f.end.y)-1,T=Math.max(f.start.y,f.end.y);return{width:`${(A-V)*k.value}px`,height:`${(T-$)*k.value}px`,top:`${$*k.value}px`,left:`${V*k.value}px`}},p=750,S=f=>{const V=Math.min(f.start.x,f.end.x),A=Math.max(f.start.x,f.end.x),$=Math.min(f.start.y,f.end.y),T=Math.max(f.start.y,f.end.y),M=p/u.density,U=(A-V+1)*M,O=(T-$+1)*M;return`${Math.round(U)} x ${Math.round(O)} \u50CF\u7D20`},x=R(-1),F=f=>{x.value=f},m=f=>{x.value=-1,r.value.splice(f,1)},c=(f,V)=>{a.value==null?a.value={x:f,y:V}:E(f,V)&&(r.value.push({start:a.value,end:{x:f,y:V},path:"",clickType:"path"}),a.value=null,x.value=r.value.length-1)},v=(f,V)=>{s.value={x:f,y:V}};return(f,V)=>{const A=b("el-option"),$=b("el-select"),T=b("el-form-item"),M=b("dk-icon"),U=b("dk-image-input"),O=b("el-radio"),z=b("el-radio-group"),ee=b("dk-url-input"),oe=b("el-form");return h(),w("div",null,[d(oe,{model:u,"label-width":"auto",style:{"max-width":"400px"},"label-position":"left"},{default:g(()=>[d(T,{label:"\u9B54\u65B9\u5BC6\u5EA6"},{default:g(()=>[d($,{modelValue:u.density,"onUpdate:modelValue":V[0]||(V[0]=H=>u.density=H),onChange:V[1]||(V[1]=H=>y())},{default:g(()=>[d(A,{label:"4x4",value:4}),d(A,{label:"5x5",value:5}),d(A,{label:"6x6",value:6})]),_:1},8,["modelValue"])]),_:1}),d(T,{style:{margin:"10px 0"}},{default:g(()=>[D("div",{ref_key:"designCube",ref:n,class:"design-cube"},[(h(!0),w(W,null,te(u.density,H=>(h(),w("ul",{key:H,class:"cube-col"},[(h(!0),w(W,null,te(u.density,le=>(h(),w("li",{key:le,class:ae([{"item-selected":a.value?.x===H&&a.value?.y===le,"item-selecting":E(H,le)},"cube-item"]),"data-x":H,"data-y":le,style:G(i.value),onClick:de=>c(H,le),onMouseenter:de=>v(H,le)}," + ",46,S0))),128))]))),128)),B(" \u5DF2\u9009\u4E2D\u533A\u57DF\u7684\u8986\u76D6\u5C42 "),(h(!0),w(W,null,te(r.value,(H,le)=>(h(),w("div",{key:le,class:ae(["selected-area",{"selected-area-choose":x.value===le}]),style:G(C(H)),onClick:de=>F(le)},[d(M,{icon:"Close",class:"cube-close",onClick:de=>m(le)},null,8,["onClick"]),H.image?(h(),w("div",I0,[D("img",{src:H.image,alt:""},null,8,R0)])):(h(),w("div",$0,[D("div",T0,Q(S(H)),1)]))],14,V0))),128))],512)]),_:1}),r.value[x.value]?(h(),w("div",O0,[d(T,{label:"\u9009\u62E9\u56FE\u7247"},{default:g(()=>[d(U,{modelValue:r.value[x.value].image,"onUpdate:modelValue":V[2]||(V[2]=H=>r.value[x.value].image=H)},null,8,["modelValue"])]),_:1}),d(T,{label:"\u70B9\u51FB\u6548\u679C",style:{padding:"10px 0"}},{default:g(()=>[d(z,{modelValue:r.value[x.value].clickType,"onUpdate:modelValue":V[3]||(V[3]=H=>r.value[x.value].clickType=H)},{default:g(()=>[d(O,{value:"path"},{default:g(()=>[N("\u8DF3\u8F6C\u9875\u9762")]),_:1}),d(O,{value:"event"},{default:g(()=>[N("\u89E6\u53D1\u4E8B\u4EF6")]),_:1})]),_:1},8,["modelValue"])]),_:1}),r.value[x.value].clickType==="path"?(h(),I(T,{key:0,label:"\u5730\u5740",style:{padding:"10px 0"}},{default:g(()=>[d(ee,{modelValue:r.value[x.value].path,"onUpdate:modelValue":V[4]||(V[4]=H=>r.value[x.value].path=H)},null,8,["modelValue"])]),_:1})):B("v-if",!0),r.value[x.value].clickType==="event"?(h(),I(T,{key:1,label:"\u4E8B\u4EF6"},{default:g(()=>[d(mi,{modelValue:r.value[x.value].event,"onUpdate:modelValue":V[5]||(V[5]=H=>r.value[x.value].event=H)},null,8,["modelValue"])]),_:1})):B("v-if",!0)])):B("v-if",!0)]),_:1},8,["model"])])}}}),P0=Y(j0,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkCubeImageInput.vue"]]);const M0=(t,e)=>{$e.component(t,e),ii.component(t,e)};$e.component("DragTool",_0),$e.component("DragBox",E0),$e.component("DkEventCreateInput",w0),$e.component("DkEventSelectInput",mi),$e.component("DkCubeImageInput",P0),$e.register("_fc",{init(t,e){e._id=ri(),t.value&&(e.effect._fc=!1)}}),$e.register("_fc_tool",{init(t,e){e.props.unique=ri()}}),Oo.formCreate=ii,Oo.designerForm=$e,Oo.component=M0;const hi=fe(Oo),gi={tableApi:{default:"",type:String},cacheTable:{default:!0,type:Boolean},tableBefore:{default:()=>({}),type:Object},tableAfter:{default:()=>({}),type:Object},buttons:{default:()=>["refresh","add","export_csv","edit","delete","comSearch","quickSearch","columnDisplay","recycle"],type:Array},hideButtons:{default:()=>[],type:Array},query:{default:()=>({}),type:Object},quickSearchPlaceholder:{default:"\u5FEB\u6377\u641C\u7D22",type:String}};/**!
7
7
  * Sortable 1.15.0
8
8
  * @author RubaXa <trash@rubaxa.org>
9
9
  * @author owenm <owen23355@gmail.com>