@vipl520/dk-ui 1.0.61 → 1.0.63

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.min.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(S,Ye){typeof exports=="object"&&typeof module<"u"?Ye(exports,require("axios"),require("element-plus"),require("vue"),require("@vueuse/core"),require("vuedraggable"),require("vue3-draggable-resizable"),require("@tinymce/tinymce-vue"),require("@iconify/vue"),require("@element-plus/icons-vue"),require("@vant/icons"),require("@form-create/element-ui")):typeof define=="function"&&define.amd?define(["exports","axios","element-plus","vue","@vueuse/core","vuedraggable","vue3-draggable-resizable","@tinymce/tinymce-vue","@iconify/vue","@element-plus/icons-vue","@vant/icons","@form-create/element-ui"],Ye):(S=typeof globalThis<"u"?globalThis:S||self,Ye(S.DkUI={},S.axios,S.ElementPlus,S.Vue,S.VueUse,S.draggable,S.Vue3DraggableResizable,S.Editor,S.Icon,S.ElementPlusIconsVue,S.VantIcons,S.formCreate))})(this,function(S,Ye,Q,e,$e,fl,cs,hl,To,Jt,Kt,Qt){"use strict";function us(o){var t=Object.create(null);return o&&Object.keys(o).forEach(function(n){if(n!=="default"){var l=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:function(){return o[n]}})}}),t.default=o,Object.freeze(t)}var gl=us(Jt);const yl=o=>o!==null&&typeof o=="object",ds=o=>o!=null,ps=o=>typeof o=="function";function _l(o,t){const n=t.split(".");let l=o;return n.forEach(a=>{var r;l=yl(l)&&(r=l[a])!=null?r:""}),l}const Xe=o=>({type:String,default:o}),ms=/-(\w)/g,fs=o=>o.replace(ms,(t,n)=>n.toUpperCase()),{hasOwnProperty:hs}=Object.prototype;function gs(o,t,n){const l=t[n];ds(l)&&(!hs.call(o,n)||!yl(l)?o[n]=l:o[n]=bl(Object(o[n]),l))}function bl(o,t){return Object.keys(t).forEach(n=>{gs(o,t,n)}),o}var ys={name:"\u59D3\u540D",tel:"\u7535\u8BDD",save:"\u4FDD\u5B58",clear:"\u6E05\u7A7A",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",delete:"\u5220\u9664",loading:"\u52A0\u8F7D\u4E2D...",noCoupon:"\u6682\u65E0\u4F18\u60E0\u5238",nameEmpty:"\u8BF7\u586B\u5199\u59D3\u540D",addContact:"\u6DFB\u52A0\u8054\u7CFB\u4EBA",telInvalid:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7535\u8BDD",vanCalendar:{end:"\u7ED3\u675F",start:"\u5F00\u59CB",title:"\u65E5\u671F\u9009\u62E9",weekdays:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],monthTitle:(o,t)=>`${o}\u5E74${t}\u6708`,rangePrompt:o=>`\u6700\u591A\u9009\u62E9 ${o} \u5929`},vanCascader:{select:"\u8BF7\u9009\u62E9"},vanPagination:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875"},vanPullRefresh:{pulling:"\u4E0B\u62C9\u5373\u53EF\u5237\u65B0...",loosing:"\u91CA\u653E\u5373\u53EF\u5237\u65B0..."},vanSubmitBar:{label:"\u5408\u8BA1:"},vanCoupon:{unlimited:"\u65E0\u95E8\u69DB",discount:o=>`${o}\u6298`,condition:o=>`\u6EE1${o}\u5143\u53EF\u7528`},vanCouponCell:{title:"\u4F18\u60E0\u5238",count:o=>`${o}\u5F20\u53EF\u7528`},vanCouponList:{exchange:"\u5151\u6362",close:"\u4E0D\u4F7F\u7528",enable:"\u53EF\u7528",disabled:"\u4E0D\u53EF\u7528",placeholder:"\u8F93\u5165\u4F18\u60E0\u7801"},vanAddressEdit:{area:"\u5730\u533A",areaEmpty:"\u8BF7\u9009\u62E9\u5730\u533A",addressEmpty:"\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",addressDetail:"\u8BE6\u7EC6\u5730\u5740",defaultAddress:"\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"},vanAddressList:{add:"\u65B0\u589E\u5730\u5740"}};const kl=e.ref("zh-CN"),Cl=e.reactive({"zh-CN":ys});var _s={messages(){return Cl[kl.value]},use(o,t){kl.value=o,this.add({[o]:t})},add(o={}){bl(Cl,o)}};function bs(o){const t=fs(o)+".";return(n,...l)=>{const a=_s.messages(),r=_l(a,t+n)||_l(a,n);return ps(r)?r(...l):r}}function Io(o,t){return t?typeof t=="string"?` ${o}--${t}`:Array.isArray(t)?t.reduce((n,l)=>n+Io(o,l),""):Object.keys(t).reduce((n,l)=>n+(t[l]?Io(o,l):""),""):""}function ks(o){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${o}__${t}`:o,`${t}${Io(t,n)}`)}function se(o){const t=`dk-${o}`;return[t,ks(t),bs(t)]}const El={ApiUrl:"",AccessToken:"",Plaid:0,Appid:0,AddonName:"",ProjectType:"addon"};function Cs(o){Object.assign(El,o)}function zo(){return El}const Es=Object.prototype.toString,Ro=(o,t)=>Es.call(o)===`[object ${t}]`,ws=o=>typeof o<"u",Oo=o=>!ws(o),wl=o=>o!==null&&Ro(o,"Object"),Bl=o=>Ro(o,"Number"),Bs=o=>Ro(o,"String"),Po=o=>o&&Array.isArray(o),Ft=new Map,ve={target:null,count:0};function Vl(o){const{url:t,method:n,params:l}=o;let{data:a}=o;return typeof a=="string"&&(a=JSON.parse(a)),[t,n,JSON.stringify(l),JSON.stringify(a)].join("&")}function Vs(o){const t=Vl(o);o.cancelToken=o.cancelToken||new Ye.CancelToken(n=>{Ft.has(t)||Ft.set(t,n)})}function jo(o){const t=Vl(o);Ft.has(t)&&(Ft.get(t)(t),Ft.delete(t))}function Fl(o){o.loading&&ve.count>0&&ve.count--,ve.count===0&&(ve.target.close(),ve.target=null)}function Fs(o){if(Ye.isCancel(o))return console.warn("\u8BF7\u6C42\u7684\u91CD\u590D\u8BF7\u6C42\uFF1A"+o.message);let t="";if(o&&o.response)switch(o.response.status){case 302:t="\u63A5\u53E3\u91CD\u5B9A\u5411\u4E86\uFF01";break;case 400:t="\u53C2\u6570\u4E0D\u6B63\u786E\uFF01";break;case 401:t="\u60A8\u672A\u767B\u5F55\uFF0C\u6216\u8005\u767B\u5F55\u5DF2\u7ECF\u8D85\u65F6\uFF0C\u8BF7\u5148\u767B\u5F55\uFF01";break;case 403:t="\u60A8\u6CA1\u6709\u6743\u9650\u64CD\u4F5C\uFF01";break;case 404:t=`\u8BF7\u6C42\u5730\u5740\u51FA\u9519: ${o.response.config.url}`;break;case 408:t="\u8BF7\u6C42\u8D85\u65F6\uFF01";break;case 409:t="\u7CFB\u7EDF\u5DF2\u5B58\u5728\u76F8\u540C\u6570\u636E\uFF01";break;case 500:t="\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF\uFF01";break;case 501:t="\u670D\u52A1\u672A\u5B9E\u73B0\uFF01";break;case 502:t="\u7F51\u5173\u9519\u8BEF\uFF01";break;case 503:t="\u670D\u52A1\u4E0D\u53EF\u7528\uFF01";break;case 504:t="\u670D\u52A1\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF01";break;case 505:t="HTTP\u7248\u672C\u4E0D\u53D7\u652F\u6301\uFF01";break;default:t="\u5F02\u5E38\u95EE\u9898\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01";break}o.message.includes("timeout")&&(t="\u7F51\u7EDC\u8BF7\u6C42\u8D85\u65F6\uFF01"),o.message.includes("Network")&&(t=window.navigator.onLine?"\u670D\u52A1\u7AEF\u5F02\u5E38\uFF01":"\u60A8\u65AD\u7F51\u4E86\uFF01"),Q.ElMessage({type:"error",message:t})}const X=(o,t,n)=>{const l=Ye.create({...o,baseURL:zo().ApiUrl}),a=Object.assign({repeat_request_cancel:!0,loading:!1,reduct_data_format:!0,error_message_show:!0,code_success_show:!1,code_error_show:!1},t);return l.interceptors.request.use(r=>{jo(r),a.repeat_request_cancel&&Vs(r),a.loading&&(ve.count++,ve.count===1&&(ve.target=Q.ElLoading.service(n)));const s=zo();return r.headers["Access-Token"]=s.AccessToken,r.headers["Project-Type"]=s.ProjectType,r.headers["Addon-Name"]=s.AddonName,r.headers.Plaid=s.Plaid,r.headers.Appid=s.Appid,r.params=r.params||{},r.params._ajax=1,r},r=>Promise.reject(r)),l.interceptors.response.use(r=>{jo(r.config),a.loading&&Fl(a);const s=r.data,i=s.code;if(i===0)return a.code_success_show&&Q.ElMessage.success(s.msg),s;switch(a.code_error_show&&Q.ElMessage.error(s.msg),i){case-1:case 401:case 402:case 403:return Promise.reject(s);default:return Promise.reject(r.data||{msg:"\u672A\u77E5\u9519\u8BEF"})}},r=>(console.log("error",r),r.config&&jo(r.config),a.error_message_show&&Fs(r),a.loading&&Fl(a),Promise.reject(r))),l.request(o)},vo=o=>{const t={file:0,image:1,audio:2,video:3};return typeof o=="number"||/^\d+$/.test(o)?parseInt(o,10):t[o]},Ds=o=>{const t={0:"\u6587\u4EF6\u9009\u62E9",1:"\u9009\u62E9\u56FE\u7247",2:"\u9009\u62E9\u97F3\u9891",3:"\u9009\u62E9\u89C6\u9891"},n=vo(o);return t[n]||"\u6587\u4EF6\u9009\u62E9"};function U(o){return o.install=t=>{const{name:n}=o;n&&t.component(n,o)},o}const Te={get(o,t="localStorage"){const n=this.getStorage(t);return n?n.getItem(o):null},set(o,t,n="localStorage"){const l=this.getStorage(n);l&&l.setItem(o,t)},remove(o,t="localStorage"){const n=this.getStorage(t);n&&n.removeItem(o)},clear(o="localStorage"){const t=this.getStorage(o);t&&t.clear()},getStorage(o){return o==="localStorage"&&typeof localStorage<"u"?localStorage:o==="sessionStorage"&&typeof sessionStorage<"u"?sessionStorage:null}};function Zt(o){return o.replace(o[0],o[0].toLocaleUpperCase())}const Dl=(o,t=["px","%","rem","em"])=>{const n=/(\d+)(\D+)/,l=o.match(n);let a={number:0,unit:""};return l&&(a={number:parseInt(l[1],10),unit:t.includes(l[2])?l[2]:t[0]}),a};for(let o=0;o<=15;o++)o.toString(16);const xs=(o,t="_blank")=>{t=="_blank"?window.open(o):window.location.href=o},Ns=(o,t="yyyy-mm-dd hh:MM:ss")=>{o||(o=Number(new Date)),o.toString().length===10&&(o=+o*1e3);const n=new Date(o);let l;const a={"y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"h+":n.getHours().toString(),"M+":n.getMinutes().toString(),"s+":n.getSeconds().toString()};for(const r in a)l=new RegExp("("+r+")").exec(t),l&&(t=t.replace(l[1],l[1].length==1?a[r]:As(a[r],l[1].length,"0")));return t},As=(o,t,n=" ")=>{if(o.length>=t)return o;const l=t-o.length;let a=Math.ceil(l/n.length);for(;a>>=1;)n+=n,a===1&&(n+=n);return n.slice(0,l)+o},Mo=(o,t,n)=>{for(const l in o)if(o[l][t]==n)return l;return!1},Lo=(o,t,n=-1)=>{for(const l in o){if(typeof n=="number"&&n++,n==t)return o[l];if(o[l].children&&(n=Lo(o[l].children,t,n),typeof n!="number"))return n}return n};class Ss{el;constructor(t){this.el=t,this.handleWheelEvent()}handleWheelEvent(){let t="";"onmousewheel"in this.el?t="mousewheel":"onwheel"in this.el?t="wheel":"attachEvent"in window?t="onmousewheel":t="DOMMouseScroll",this.el.addEventListener(t,this.scroll,{passive:!0})}scroll=t=>{this.el.clientWidth>=this.el.scrollWidth||(this.el.scrollLeft+=t.deltaY?t.deltaY:t.detail&&t.detail!==0?t.detail:-t.wheelDelta)}}function xl(o,t){let n=null;return function(...l){clearTimeout(n),n=setTimeout(()=>{o.apply(this,l)},t)}}function $s(o){Rs(o),zs(o),Is(o),Ts(o)}function Ts(o){o.directive("tableLateralDrag",{created(t){new Ss(t.querySelector(".el-table__body-wrapper .el-scrollbar .el-scrollbar__wrap"))}})}function Is(o){o.directive("blur",{mounted(t){$e.useEventListener(t,"focus",()=>t.blur())}})}function zs(o){o.directive("zoom",{mounted(t,n){if(!n.value)return!1;const l=Bs(n.value)?[n.value,".el-dialog__body",!1,!0]:n.value;l[1]=l[1]?l[1]:".el-dialog__body",l[2]=typeof l[2]>"u"?!1:l[2],l[3]=typeof l[3]>"u"?!0:l[3],e.nextTick(()=>{const a=document.querySelector(l[1]),r=document.querySelector(l[0]),s=document.createElement("div");s.className="zoom-handle",s.onmouseenter=()=>{s.onmousedown=i=>{const c=i.clientX,u=i.clientY,h=a.offsetWidth,g=a.offsetHeight,_=r.offsetWidth,k=r.offsetHeight;document.onmousemove=E=>{E.preventDefault();const m=h+(E.clientX-c)*2,B=g+(E.clientY-u);if(a.style.width=`${m}px`,a.style.height=`${B}px`,l[2]){const w=k+(E.clientY-u);r.style.height=`${w}px`}if(l[3]){const w=_+(E.clientX-c)*2;r.style.width=`${w}px`}},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}},r.appendChild(s)})}})}function Rs(o){o.directive("drag",{mounted(t,n){if(!n.value)return!1;const l=document.querySelector(n.value[0]),a=document.querySelector(n.value[1]);if(!a||!l)return!1;a.onmouseover=()=>a.style.cursor="move";function r(i,c){const u=c==="pc"?i.clientX-a.offsetLeft:i.touches[0].clientX-a.offsetLeft,h=c==="pc"?i.clientY-a.offsetTop:i.touches[0].clientY-a.offsetTop,g=document.body.clientWidth,_=document.body.clientHeight||document.documentElement.clientHeight,k=l.offsetWidth,E=l.offsetHeight,m=l.offsetLeft,B=g-l.offsetLeft-k,w=l.offsetTop,b=_-l.offsetTop-E;let d=getComputedStyle(l).left,f=getComputedStyle(l).top;return d=+d.replace(/\px/g,""),f=+f.replace(/\px/g,""),{disX:u,disY:h,minDragDomLeft:m,maxDragDomLeft:B,minDragDomTop:w,maxDragDomTop:b,styL:d,styT:f}}function s(i,c,u){const{disX:h,disY:g,minDragDomLeft:_,maxDragDomLeft:k,minDragDomTop:E,maxDragDomTop:m,styL:B,styT:w}=u;let b=c==="pc"?i.clientX-h:i.touches[0].clientX-h,d=c==="pc"?i.clientY-g:i.touches[0].clientY-g;-b>_?b=-_:b>k&&(b=k),-d>E?d=-E:d>m&&(d=m),l.style.cssText+=`;left:${b+B}px;top:${d+w}px;`}a.onmousedown=i=>{const c=r(i,"pc");document.onmousemove=u=>{s(u,"pc",c)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},a.ontouchstart=i=>{const c=r(i,"app");document.ontouchmove=u=>{s(u,"app",c)},document.ontouchend=()=>{document.ontouchmove=null,document.ontouchend=null}}}})}const Nl={type:Xe(""),test:{default:"\u6D4B\u8BD5\u6D4B\u8BD5",type:String}},Os={class:"mr-10px bg-black"},Ps=e.defineComponent({name:"DkTest"});var js=e.defineComponent({...Ps,props:Nl,emits:["onChooseUrl"],setup(o,{emit:t}){se("test");const n=()=>{t("onChooseUrl","\u9009\u4E2D\u7684\u94FE\u63A5\u5730\u5740")};return(l,a)=>{const r=e.resolveComponent("el-button"),s=e.resolveComponent("van-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{class:"dk-test"},{default:e.withCtx(()=>[e.createTextVNode("el\u6309\u94AE")]),_:1}),e.createVNode(s,null,{default:e.withCtx(()=>[e.createTextVNode("van\u6309\u94AE")]),_:1}),e.createVNode(r,{onClick:n},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9\u94FE\u63A5")]),_:1}),e.createElementVNode("div",Os,e.toDisplayString(l.test),1)],64)}}}),T=(o,t)=>{const n=o.__vccOpts||o;for(const[l,a]of t)n[l]=a;return n},vs=T(js,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\test\\src\\test.vue"]]);const Al=U(vs);function Ms(o,t){return{}.hasOwnProperty.call(o,t)}function Dt(o,t,n){o[t]=n}function Uo(o){return Ho({},{value:o},void 0).value}function Ho(o,t={},n=!1){let l=!1;for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let r=t[a];if((l=Array.isArray(r))||wl(r)){const s=o[a]===void 0;if(l)l=!1,s&&Dt(o,a,[]);else if(r._clone&&n)if(n)r=r.getRule(),s&&Dt(o,a,{});else{Dt(o,a,r._clone());continue}else s&&Dt(o,a,{});o[a]=Ho(o[a],r,n)}else Dt(o,a,r),Oo(r)||(Oo(r.__json)||(o[a].__json=r.__json),Oo(r.__origin)||(o[a].__origin=r.__origin))}return n!==void 0&&Array.isArray(o)?o.filter(a=>!a||!a.__ctrl):o}function Ls(o,t,n){o[t]=n}const Us=Object.assign||function(o){for(let t=1;t<arguments.length;t++){const n=arguments[t];for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&Ls(o,l,n[l])}return o};function Hs(...o){return Us.apply(this,o)}const Sl={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}},Ws={key:1},qs={class:"collapse-title"},Gs={class:"_dk-group-handle"},Ys=e.defineComponent({name:"DkGroup"});var Xs=e.defineComponent({...Ys,props:Sl,emits:["update:modelValue","change","itemMounted","remove","add"],setup(o,{emit:t}){const n=o,l=e.reactive({len:0,cacheRule:{},cacheValue:{},sort:[],form:e.markRaw(n.formCreateInject.form.$form()),loading:!0}),a=e.reactive({modelValue:[0],accordion:n.accordion}),r=l.form;e.watch(()=>n.rule,(p,y)=>{Object.keys(l.cacheRule).forEach(C=>{const V=l.cacheRule[C];if(V.$f){const x=V.$f.formData();if(p===y)V.$f.deferSyncValue(()=>{Ho(V.rule,p,!1),V.$f.setValue(x)},!0);else{const D=V.$f.formData();V.$f.once("reloading",()=>{V.$f.setValue(D)}),V.rule=Uo(p)}}})},{deep:!0}),e.watch(()=>n.disabled,p=>{if(n.syncDisabled){const y=l.cacheRule;Object.keys(y).forEach(C=>{y[C].$f.disabled(p)})}}),e.watch(()=>n.expand,p=>{const y=p-n.modelValue.length;y>0&&d(y)}),e.watch(()=>n.modelValue,p=>{p=p||[];const y=Object.keys(l.cacheRule),C=y.length,V=C-p.length;if(V<0){for(let x=V;x<0;x++)E(p.length-1,!0);for(let x=0;x<C;x++)k(y[x],p[x])}else{if(V>0)for(let x=0;x<V;x++)console.log("keys[total - i - 1]",y[C-x-1]),m(y[C-x-1]);p.forEach((x,D)=>{k(y[D],p[D])})}},{deep:!0}),e.watch(()=>({...l.cacheRule}),p=>{l.sort=Object.keys(p)},{immediate:!0});const s=p=>n.field?{[n.field]:c(n.modelValue[p])}:n.modelValue[p],i=p=>{if(l.cacheRule[p]){const{rule:y}=l.cacheRule[p],C=n.titleField?n.titleField:y[0]?.field;return l.cacheRule[p].$f?.getValue(C)||"\u70B9\u51FB\u5C55\u5F00"}else return"\u70B9\u51FB\u5C55\u5F00"},c=p=>p&&Ms(p,n.field)?p[n.field]:p,u=(p,y)=>{l.cacheValue[p]=JSON.stringify(y)},h=p=>{t("update:modelValue",p),t("change",p)},g=(p,y)=>{e.nextTick(()=>{const V=Object.keys(l.cacheRule).map(x=>{const D=p===x?y:{...l.cacheRule[x].$f.form},$=n.field?D[n.field]||null:D;return u(x,$),$});h(V)})},_=(p,y)=>{l.cacheRule[p].$f=y,e.nextTick(()=>{n.syncDisabled&&y.disabled(n.disabled),t("itemMounted",y,Object.keys(l.cacheRule).indexOf(p))})};e.onMounted(()=>{l.loading=!1});const k=(p,y)=>{const C=n.field;C&&(y={[C]:c(y)}),l.cacheValue[p]!==JSON.stringify(C?y[C]:y)&&u(p,y)},E=(p,y=!1)=>{const C=n.formCreateInject.form.copyRules(n.rule||[]),V=n.options?{...n.options}:{submitBtn:!1,resetBtn:!1};if(n.defaultValue){V.formData||(V.formData={});const x=Uo(n.defaultValue);Hs(V.formData,n.field?{[n.field]:x}:x)}n.parse&&n.parse({rule:C,options:V,index:l.sort.length}),l.cacheRule[p]={rule:C,options:V},y&&e.nextTick(()=>t("add",C,Object.keys(l.cacheRule).length-1))},m=(p,y=!1)=>{delete l.cacheRule[p],delete l.cacheValue[p],y&&e.nextTick(()=>t("remove",p))},B=()=>{if(n.disabled||n.onBeforeAdd(n.modelValue)===!1)return;const p=[...n.modelValue];p.push(n.defaultValue?Uo(n.defaultValue):n.field?null:{}),h(p),a.modelValue=[p.length-1]},w=(p,y)=>{if(n.disabled||n.onBeforeRemove(n.modelValue,p)===!1)return;const C=[...n.modelValue];C.splice(p,1),h(C)},b=(p,y,C)=>{t(p,...y,l.cacheRule[C].$f,C)},d=p=>{for(let y=0;y<p;y++)n.modelValue.push(n.field?null:{})},f=(n.expand||0)-n.modelValue.length;for(let p=0;p<n.modelValue.length;p++)E(p);return f>0&&d(f),(p,y)=>{const C=e.resolveComponent("el-divider"),V=e.resolveComponent("el-button"),x=e.resolveComponent("dk-icon"),D=e.resolveComponent("el-button-group"),$=e.resolveComponent("el-collapse-item"),F=e.resolveComponent("draggable");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass("dk-group _fc-group "+(p.disabled?"_fc-group-disabled":""))},[n.title?(e.openBlock(),e.createBlock(C,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1})):e.createCommentVNode("v-if",!0),l.sort.length===0?(e.openBlock(),e.createElementBlock("div",Ws,[(e.openBlock(),e.createBlock(V,{key:"a_def",style:{width:"100%"},type:"primary",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(" \u6DFB\u52A0\u6570\u636E ")]),_:1}))])):e.createCommentVNode("v-if",!0),e.createVNode(F,{tag:"el-collapse",list:n.modelValue,"component-data":a,"item-key":"id",handle:".collapse-title-rank"},{item:e.withCtx(({element:A,index:z})=>[e.createVNode($,{title:A.title,name:z},{title:e.withCtx(()=>[e.createElementVNode("div",qs,[e.createVNode(x,{icon:"Rank",class:"collapse-title-rank"}),e.createElementVNode("span",null,e.toDisplayString(i(z)),1)])]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("div",{key:z,class:"_dk-group-container"},[(e.openBlock(),e.createBlock(e.unref(r),{key:z,"in-for":!0,"model-value":s(z),rule:l.cacheRule[z].rule,option:l.cacheRule[z].options,"extend-option":!0,"onUpdate:modelValue":R=>g(z,R),onEmitEvent:(R,...v)=>b(R,v,z),"onUpdate:api":R=>_(z,R)},null,8,["model-value","rule","option","onUpdate:modelValue","onEmitEvent","onUpdate:api"])),e.createElementVNode("div",Gs,[e.createVNode(D,null,{default:e.withCtx(()=>[e.createVNode(V,{icon:"Plus",plain:"",onClick:B},{default:e.withCtx(()=>[e.createTextVNode("\u589E\u52A0")]),_:1}),e.createVNode(V,{icon:"Delete",plain:"",onClick:R=>w(z)},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)])]))]),_:2},1032,["title","name"])]),_:1},8,["list","component-data"])],2)}}}),Js=T(Xs,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\group\\src\\group.vue"]]);const $l=U(Js);var Ks={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:!0,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};function Qs(o,t,n=1,l,a){return a.group_id=l,a.type=n,X({method:"post",url:"/adminapi/attachment/list",data:{page:o,size:t,search:a}})}function Zs(o,t=1,n=0){const l=new FormData;return l.append("file",o),l.append("type",t.toString()),l.append("file","file"),l.append("group_id",n.toString()),X({method:"post",url:"/adminapi/attachment/upload",data:l})}function ec(o){return X({method:"post",url:"/adminapi/attachment/delete",data:{ids:o}},{code_success_show:!0})}function tc(o,t){return X({method:"post",url:"/adminapi/attachment/move",data:{ids:o,group_id:t}})}function oc(o){return X({method:"get",url:"/adminapi/attachment/group",params:{type:o}},{code_error_show:!0})}function nc(o){return X({method:"delete",url:"/adminapi/attachment/group/"+o},{code_error_show:!0})}const Tl={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}},lc={key:0},ac={key:1},rc={class:"text-center"},ic=e.defineComponent({name:"DkTinyEditor"});var sc=e.defineComponent({...ic,props:Tl,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,l=e.ref(null),{width:a}=$e.useElementSize(l),r=e.ref(n.modelValue),s=e.ref(!1),i=(B,w)=>new Promise((b,d)=>{Zs(B.blob()).then(f=>{w(100),b(f.data.url)}).catch(f=>{d(f)})}),c=e.ref({...Ks,height:n.height,content_css:n.document?"document":"",images_upload_handler:i,initialContent:"Loading editor..."}),u=e.ref("https://cdn-1251560393.cos.ap-chengdu.myqcloud.com/lib/tinymce/tinymce.min.js"),h=e.ref(),g=e.ref(),_=e.computed(()=>a.value>=n.showDialogWidth);e.watch(()=>n.modelValue,B=>{r.value=B}),e.watch(()=>r.value,B=>{t("update:modelValue",B),t("input",B),t("change",B)}),e.onMounted(()=>{e.nextTick(()=>{k()})}),e.watch(()=>g.value,()=>{g.value?.getEditor()&&g.value.getEditor().on("showImage",()=>{h.value.open()})});const k=()=>{g.value?.getEditor()?g.value.getEditor().on("showImage",()=>{h.value.open()}):setTimeout(()=>{k()},1e3)},E=B=>{const w=g.value.getEditor();let b="";B.forEach(d=>{b+='<img src="'+d.url+'" alt="" width="100%">'}),w.insertContent(b)},m=B=>{console.log(B)};return(B,w)=>{const b=e.resolveComponent("el-button"),d=e.resolveComponent("dk-dialog"),f=e.resolveComponent("dk-attachment-dialog");return e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:l,class:"dk-tiny-editor"},[_.value?(e.openBlock(),e.createElementBlock("div",lc,[e.createVNode(e.unref(hl),{ref_key:"editorRef",ref:g,modelValue:r.value,"onUpdate:modelValue":w[0]||(w[0]=p=>r.value=p),init:c.value,"tinymce-script-src":u.value,onDblclick:m},null,8,["modelValue","init","tinymce-script-src"])])):(e.openBlock(),e.createElementBlock("div",ac,[e.createVNode(b,{type:"primary",plain:"",style:{width:"100%"},onClick:w[1]||(w[1]=p=>s.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.buttonText),1)]),_:1}),e.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":w[4]||(w[4]=p=>s.value=p),title:"\u7F16\u8F91",width:"900px","z-index":1298},{footer:e.withCtx(()=>[e.createElementVNode("div",rc,[e.createVNode(b,{type:"primary",style:{width:"200px"},onClick:w[3]||(w[3]=p=>s.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u5B9A")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(e.unref(hl),{ref_key:"editorRef",ref:g,modelValue:r.value,"onUpdate:modelValue":w[2]||(w[2]=p=>r.value=p),init:c.value,"tinymce-script-src":u.value,onDblclick:m},null,8,["modelValue","init","tinymce-script-src"])]),_:1},8,["modelValue"])])),e.createVNode(f,{ref_key:"attachmentRef",ref:h,type:1,onConfirm:E},null,512)],512)}}}),cc=T(sc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\tiny-editor\\src\\tiny-editor.vue"]]);const Il=U(cc),zl={icon:{default:"",type:String},color:String,size:Number,hoverColor:String,showEl:{default:!0,type:Boolean},showVant:{default:!0,type:Boolean}},uc=e.defineComponent({name:"DkIcon"});var dc=e.defineComponent({...uc,props:zl,setup(o){const t=o,[n,l]=se("icon"),a=Object.keys(gl).map(i=>i),r=e.computed(()=>{const{color:i,size:c,hoverColor:u}=t,h={};return i&&(h.color=i),c&&(h.fontSize=`${c}px`),u&&(h["--hover-color"]=u),h}),s=e.computed(()=>{let i="cloud";return a.includes(t.icon)&&t.showEl&&(i="el"),t.showVant&&(Kt.basic.includes(t.icon)&&(i="vant"),Kt.outline.includes(t.icon)&&(i="vant"),Kt.filled.includes(t.icon)&&(i="vant")),i});return(i,c)=>{const u=e.resolveComponent("van-icon"),h=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(h,{class:e.normalizeClass(e.unref(l)()),style:e.normalizeStyle(r.value)},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default",{},()=>[s.value==="cloud"?(e.openBlock(),e.createBlock(e.unref(To.Icon),{key:0,icon:t.icon},null,8,["icon"])):e.createCommentVNode("v-if",!0),s.value==="el"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:1})):e.createCommentVNode("v-if",!0),s.value==="vant"?(e.openBlock(),e.createBlock(u,{key:2,class:e.normalizeClass(e.unref(l)()),name:t.icon,style:e.normalizeStyle(r.value)},null,8,["class","name","style"])):e.createCommentVNode("v-if",!0)])]),_:3},8,["class","style"])}}}),pc=T(dc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon\\src\\icon.vue"]]);const Rl=U(pc),Ol={modelValue:Xe(""),showAlpha:{default:!1,type:Boolean},placeholder:Xe(""),colorFormat:Xe("hex")},mc={style:{display:"flex"},class:"dk-color-input"},fc=e.defineComponent({name:"DkColorInput"});var hc=e.defineComponent({...fc,props:Ol,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o;se("color-input");const l=e.ref(n.modelValue||"");return e.watch(()=>n.modelValue,a=>{l.value=a}),e.watch(()=>l.value,a=>{t("change",a),t("update:modelValue",a),t("input",a)}),(a,r)=>{const s=e.resolveComponent("el-input"),i=e.resolveComponent("el-color-picker");return e.openBlock(),e.createElementBlock("div",mc,[e.createVNode(s,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=c=>l.value=c),placeholder:a.placeholder,clearable:"",style:{width:"100%"}},null,8,["modelValue","placeholder"]),e.createVNode(i,{modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=c=>l.value=c),teleported:!1,"show-alpha":a.showAlpha,"color-format":a.colorFormat},null,8,["modelValue","show-alpha","color-format"])])}}}),gc=T(hc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\color-input\\src\\color-input.vue"]]);const Pl=U(gc),jl={modelValue:{type:Object,default:()=>({})}},yc={class:"hot-area-content"},_c={class:"hot-area-draggable"},bc={class:"hot-item-content",style:{position:"relative",width:"100%",height:"100%",background:"#0003"}},kc={key:1,style:{width:"500px",height:"500px"}},Cc={class:"hot-area-form"},Ec=e.createElementVNode("h3",{style:{"margin-top":"0","font-size":"16px","font-weight":"500"}},"\u70ED\u533A\u7BA1\u7406",-1),wc={style:{display:"flex","justify-content":"space-between",width:"100%"}},Bc=e.defineComponent({name:"HotAreaContent"});var Vc=e.defineComponent({...Bc,props:{hotDataValue:{default:()=>({views:[],width:400,height:400,background:null}),type:Object}},setup(o){const t=o,n=e.ref(0),l=e.reactive(t.hotDataValue),a=()=>{Array.isArray(l.views)||(l.views=[]),l.views.push({css:{left:0,top:0,width:80,height:80,borderRadius:0,borderColor:"#fff"},url:""})},r=h=>{h>=0&&h<l.views.length&&l.views.splice(h,1)},s=h=>{const g=l.views[n.value].css;g.left=h.x,g.top=h.y},i=h=>{const g=l.views[n.value].css;g.left=h.x,g.top=h.y,g.width=h.w,g.height=h.h};e.onMounted(()=>{c()}),e.watch(()=>l?.background,()=>{c()});const c=()=>{l.background&&u(l.background).then(h=>{l.width=500,l.height=h.height*500/h.width,setTimeout(()=>{},200)}).catch(()=>{})},u=h=>new Promise(function(g,_){const k=new Image;k.onload=function(){g({width:k.width,height:k.height})},k.onerror=function(){_(new Error("error"))},k.src=h});return(h,g)=>{const _=e.resolveComponent("vue3-draggable-resizable"),k=e.resolveComponent("el-empty"),E=e.resolveComponent("dk-image-input"),m=e.resolveComponent("el-form-item"),B=e.resolveComponent("dk-url-input"),w=e.resolveComponent("dk-icon"),b=e.resolveComponent("el-button"),d=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",yc,[e.createElementVNode("div",_c,[l.background?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle([{width:l.width+"px",height:l.height+"px",backgroundImage:"url("+l.background+")"},{"background-size":"100% 100%"}]),onContextmenu:g[0]||(g[0]=e.withModifiers(()=>{},["prevent"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.views,(f,p)=>(e.openBlock(),e.createBlock(_,{key:p,ref_for:!0,ref:"draggables",h:f.css.height,"onUpdate:h":y=>f.css.height=y,x:f.css.left,"onUpdate:x":y=>f.css.left=y,y:f.css.top,"onUpdate:y":y=>f.css.top=y,w:f.css.width,"onUpdate:w":y=>f.css.width=y,"init-w":f.css.width,"init-h":f.css.height,parent:!0,style:{cursor:"move"},"min-width":20,"min-height":20,onResizing:i,onDragging:s,onMousedown:y=>n.value=p},{default:e.withCtx(()=>[e.createElementVNode("div",bc,e.toDisplayString(p+1),1)]),_:2},1032,["h","onUpdate:h","x","onUpdate:x","y","onUpdate:y","w","onUpdate:w","init-w","init-h","onMousedown"]))),128))],36)):(e.openBlock(),e.createElementBlock("div",kc,[e.createVNode(k,{description:"\u8BF7\u4E0A\u4F20\u56FE\u7247"})]))]),e.createElementVNode("div",Cc,[Ec,e.createVNode(d,{"label-width":"80px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(m,{label:"\u80CC\u666F\u56FE "},{default:e.withCtx(()=>[e.createVNode(E,{modelValue:l.background,"onUpdate:modelValue":g[1]||(g[1]=f=>l.background=f)},null,8,["modelValue"])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.views,(f,p)=>(e.openBlock(),e.createBlock(m,{key:p,label:"\u70ED\u533A\u5730\u5740"+(p+1)},{default:e.withCtx(()=>[e.createElementVNode("div",wc,[e.createVNode(B,{modelValue:l.views[p].url,"onUpdate:modelValue":y=>l.views[p].url=y,placeholder:"\u586B\u5199\u8DF3\u8F6C\u5730\u5740",style:{width:"100%","margin-right":"5px"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(b,{type:"danger",plain:"",onClick:y=>r(p)},{default:e.withCtx(()=>[e.createVNode(w,{icon:"Delete"})]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128))]),_:1}),e.createVNode(b,{disabled:!l.background,type:"primary",onClick:g[2]||(g[2]=f=>a())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.background?"\u6DFB\u52A0\u70ED\u533A":"\u8BF7\u5148\u4E0A\u4F20\u56FE\u7247"),1)]),_:1},8,["disabled"])])])}}}),Fc=T(Vc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\component\\hot-area-content.vue"]]);const Dc={class:"dk-hot-area-input"},xc={class:"text-center"},Nc=e.defineComponent({name:"DkHotAreaInput"});var Ac=e.defineComponent({...Nc,props:jl,setup(o){const t=o,n=e.reactive(t.modelValue),l=e.ref(!1);return(a,r)=>{const s=e.resolveComponent("el-button"),i=e.resolveComponent("dk-dialog");return e.openBlock(),e.createElementBlock("div",Dc,[e.createVNode(s,{type:"primary",onClick:r[0]||(r[0]=c=>l.value=!0)},{default:e.withCtx(()=>[e.createTextVNode("\u8BBE\u7F6E\u70ED\u533A")]),_:1}),e.createVNode(i,{modelValue:l.value,"onUpdate:modelValue":r[2]||(r[2]=c=>l.value=c),width:"1000px",title:"\u8BBE\u7F6E\u70ED\u533A"},{footer:e.withCtx(()=>[e.createElementVNode("div",xc,[e.createVNode(s,{size:"default",style:{width:"200px"},type:"primary",onClick:r[1]||(r[1]=c=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u5B9A")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(Fc,{"hot-data-value":n},null,8,["hot-data-value"])]),_:1},8,["modelValue"])])}}}),Sc=T(Ac,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\hot-area-input.vue"]]);const vl=U(Sc),$c={modelValue:{type:Boolean,default:!1},title:Xe(""),fullscreen:{type:Boolean,default:!1},defaultFullscreen:{type:Boolean,default:!1},maxHeight:{type:String,default:""},draggable:{type:Boolean,default:!0},zIndex:{type:Number,default:1299}},Tc={class:"flex justify-between items-center relative"},Ic={class:"flex justify-between items-center absolute top-[50%] right-0 translate-y-[-50%]"},zc=e.defineComponent({name:"DkDialog"});var Rc=e.defineComponent({...zc,props:$c,setup(o){const t=o;se("dialog");const n=e.useSlots(),l=e.computed(()=>{const c=["fullscreen","title","maxHeight"],h={...e.useAttrs(),...t};for(const g in h)c.indexOf(g)!==-1&&delete h[g];return h}),a=e.ref(t.defaultFullscreen);e.watch(()=>t.defaultFullscreen,()=>{a.value=t.defaultFullscreen});const r=()=>{a.value=!e.unref(a)},s=e.ref(Bl(t.maxHeight)?`${t.maxHeight}px`:t.maxHeight);e.watch(()=>a.value,async c=>{if(await e.nextTick(),c){const u=document.documentElement.offsetHeight;s.value=`${u-55-60-(n.footer?63:0)}px`}else s.value=Bl(t.maxHeight)?`${t.maxHeight}px`:t.maxHeight},{immediate:!0});const i=e.computed(()=>({maxHeight:e.unref(s)}));return(c,u)=>{const h=e.resolveComponent("dk-icon"),g=e.resolveComponent("ElScrollbar"),_=e.resolveComponent("ElDialog");return e.openBlock(),e.createBlock(_,e.mergeProps(l.value,{fullscreen:a.value,"destroy-on-close":"","append-to-body":"","lock-scroll":"",draggable:t.draggable,"close-on-click-modal":!1,"show-close":!1,class:"dk-dialog","z-index":t.zIndex}),e.createSlots({header:e.withCtx(({close:k})=>[e.renderSlot(c.$slots,"header",{},()=>[e.createElementVNode("div",Tc,[e.createElementVNode("span",null,e.toDisplayString(t.title),1),e.createElementVNode("div",Ic,[c.fullscreen?(e.openBlock(),e.createBlock(h,{key:0,class:"cursor-pointer is-hover mr-10px",icon:a.value?"radix-icons:exit-full-screen":"radix-icons:enter-full-screen",color:"var(--el-color-info)","hover-color":"var(--el-color-primary)",onClick:r},null,8,["icon"])):e.createCommentVNode("v-if",!0),e.createVNode(h,{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:e.withCtx(()=>[e.createVNode(g,{style:e.normalizeStyle(i.value)},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["style"])]),_:2},[e.unref(n).footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(c.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen","draggable","z-index"])}}}),Oc=T(Rc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\dialog\\src\\dialog.vue"]]);const Pc=U(Oc),Ml={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}};var jc={global:{upload:{props:{onSuccess(o,t){o.status===200?t.url=o.data.src:Q.ElMessage.error(o.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}};const vc={key:1},Mc=e.defineComponent({name:"DkForm"});var Lc=e.defineComponent({...Mc,props:Ml,emits:["submit","fail","update:modelValue"],setup(o,{expose:t,emit:n}){const l=o;se("form"),Qt.register({name:"help",init({value:C},V){Po(C)||(C=[C]),V.suffix={type:"p",children:C,class:"form-help"}}});const a=Qt.$form(),r=e.reactive(jc),s=e.ref(),i=e.ref(!0),c=e.ref(!1),u=e.ref(!1),h=e.computed(()=>({...r,...l.extraConfig})),{width:g}=$e.useWindowSize(),_=e.ref(null),k=e.ref(l.formData||{});e.watch(()=>l.formData,()=>{k.value=l.formData},{deep:!0}),e.watch(()=>_.value,C=>{n("update:modelValue",C||{})});const E=e.computed(()=>{let C="800px";const V=k.value?.config||{};if(V?.width)return V?.width;l.dialog?.width&&(C=l.dialog?.width),V?.defaultWidth&&(C=V?.defaultWidth);let x=768;return C.endsWith("%")||(x=parseInt(C)),g.value<x?"100%":C}),m=e.computed(()=>k.value?.config?.style?k.value?.config?.style:l.dialog?.style?l.dialog?.style:{}),B=e.computed(()=>{let C=!1;const V=k.value?.config?.autoFullscreen!==!1;return l.dialog?.width&&(C=l.dialog?.fullscreen),k.value?.config?.fullscreen&&(C=k.value?.config?.fullscreen),g.value<768&&V&&(C=!0),C}),w=e.computed(()=>Object.assign(l.dialog,k.value?.config?.dialog)),b=C=>{_.value=null,k.value=C},d=C=>{if(C||(C=l.formUrl),l.formData)i.value=!1;else if(C){let V;wl(C)?V=C:V={url:C,method:"post"},X(V).then(x=>{k.value=x.data,i.value=!1}).catch(x=>{i.value=!1})}},f=()=>{s.value.validate().then(()=>{s.value.submit(C=>{p(C)}).catch(C=>{Q.ElMessage.warning(Object.values(C)[0][0].message)})}).catch(C=>{Q.ElMessage.warning(Object.values(C)[0][0].message)})},p=C=>{l.isLoading&&(c.value=!0),l.isSubmit?X({url:l.path+k.value.action,method:k.value.method,data:{formData:C}}).then(V=>{Q.ElMessage.success(V.msg),n("submit",C,V),c.value=!1}).catch(V=>{Q.ElMessage.error(V.msg),n("fail",C,V),c.value=!1}):(n("submit",C),c.value=!1),u.value=!1},y=()=>{u.value=!0};return e.onMounted(()=>{d()}),t({showDialog:u,buttonLoading:c,fApi:s,value:_,show:y,checkForm:f,onSubmit:p,initFormData:d,setFormData:b}),(C,V)=>{const x=e.resolveComponent("DkDialog");return l.isDialog?(e.openBlock(),e.createBlock(x,e.mergeProps({key:0,modelValue:u.value,"onUpdate:modelValue":V[3]||(V[3]=D=>u.value=D),title:k.value?.title?k.value?.title:"\u8868\u5355",width:E.value,"default-fullscreen":B.value,"min-height":"200px"},w.value,{"append-to-body":""}),{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(m.value),class:"dk-form p10px"},[e.createVNode(e.unref(a),{modelValue:_.value,"onUpdate:modelValue":V[0]||(V[0]=D=>_.value=D),option:h.value,rule:k.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":V[1]||(V[1]=D=>s.value=D),"onUpdate:value":V[2]||(V[2]=D=>_.value=D)},null,8,["modelValue","option","rule"]),e.createElementVNode("div",{style:e.normalizeStyle({marginLeft:r.form.labelWidth}),class:"m-t-10px"},[e.renderSlot(C.$slots,"buttons",{},()=>[e.createVNode(e.unref(Q.ElButton),{type:"primary",loading:c.value,onClick:f},{default:e.withCtx(()=>[e.createTextVNode(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4)]),_:3},16,["modelValue","title","width","default-fullscreen"])):(e.openBlock(),e.createElementBlock("div",vc,[e.createElementVNode("div",{style:e.normalizeStyle({minHeight:C.minHeight}),class:"dk-form"},[e.createVNode(e.unref(a),{modelValue:_.value,"onUpdate:modelValue":V[4]||(V[4]=D=>_.value=D),option:h.value,rule:k.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":V[5]||(V[5]=D=>s.value=D),"onUpdate:value":V[6]||(V[6]=D=>_.value=D)},null,8,["modelValue","option","rule"]),e.createElementVNode("div",{style:e.normalizeStyle({marginLeft:r.form.labelWidth}),class:"m-t-10px"},[e.renderSlot(C.$slots,"buttons",{},()=>[e.createVNode(e.unref(Q.ElButton),{type:"primary",loading:c.value,onClick:f},{default:e.withCtx(()=>[e.createTextVNode(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4),e.createCommentVNode(' <div v-else :style="{ minHeight }"></div>')]))}}}),Uc=T(Lc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\form\\src\\form.vue"]]);const Ll=U(Uc),Hc={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"},Wc=e.createElementVNode("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),qc=e.createElementVNode("path",{fill:"#B0B7BD",d:"m384,128l96,0l-128,-128l0,96c0,17.6 14.4,32 32,32z",style:{fill:"#b0b7bd"}},null,-1),Gc=e.createElementVNode("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 ",style:{fill:"#cad1d8"}},null,-1),Yc=e.createElementVNode("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),Xc={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"},Jc={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"},Kc={x:"-1",y:"0"},Qc={x:"220",y:"380","text-anchor":"middle",fill:"white","font-family":"Verdana, Helvetica, Arial, sans-serif","font-size":"124"},Zc=e.defineComponent({name:"DkFileIcon"});var eu=e.defineComponent({...Zc,props:{type:{default:0,type:[Number,String]},fileSuffix:{default:"",type:String},fileName:{default:"",type:String},fileUrl:{default:"",type:String}},setup(o){const t=o,n=e.ref(t.type),l=e.computed(()=>{let r="";if(t.fileSuffix&&(r=t.fileSuffix),t.fileName){const s=t.fileName,i=s.lastIndexOf(".");i!==-1&&(r=s.substring(i+1))}if(t.fileUrl){const s=t.fileUrl,i=s.lastIndexOf(".");i!==-1&&(r=s.substring(i+1))}return r.length>5?"\u672A\u77E5":r===""?"\u7A7A":r}),a=r=>{if(r==="PDF")return"#f44336";const s=["#0ca0ff","#16a806","#f44336","#ff374e","#ccc","#32CD32","#867aff","#9a978f","#ffd5b2","#FFAA33","#6082B6"],i=r.charCodeAt(0)%s.length;return s[i]};return(r,s)=>(e.openBlock(),e.createElementBlock("svg",Hc,[e.createElementVNode("g",null,[Wc,qc,Gc,e.createElementVNode("path",{style:e.normalizeStyle({fill:a(l.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),Yc,n.value===2?(e.openBlock(),e.createElementBlock("path",Xc)):e.createCommentVNode("v-if",!0),n.value===3?(e.openBlock(),e.createElementBlock("path",Jc)):e.createCommentVNode("v-if",!0),e.createElementVNode("g",null,[e.createElementVNode("text",Kc,[e.createElementVNode("tspan",Qc,e.toDisplayString(l.value),1)])])])]))}}),st=T(eu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\file-icon.vue"]]);const Wo={type:{type:[Number,String],default:1},accept:{type:String,default:""}},tu={class:"dk-attachment attachment"},ou={class:"attachment-header flex justify-between pt-5px pb-5px"},nu={class:"header-form z"},lu={class:"header-button y"},au=e.createElementVNode("i",{class:"el-icon-delete el-icon--right"},null,-1),ru=e.createElementVNode("i",{class:"el-icon-upload el-icon--right"},null,-1),iu={class:"attachment-content flex"},su={class:"attachment-group"},cu={class:"group_list"},uu=["onClick"],du={class:"ml-10px"},pu={class:"op"},mu={class:"attachment-container"},fu={key:0,class:"p2"},hu=["onClick","onContextmenu"],gu={class:"file"},yu=e.createElementVNode("div",{class:"u-m-t-30"},[e.createElementVNode("i",{class:"el-icon-loading"}),e.createElementVNode("span",null,"\u52A0\u8F7D\u4E2D")],-1),_u={key:1},bu={key:2},ku={key:3},Cu={class:"file-name over"},Eu={class:"right"},wu={class:"block p-10px"},Bu={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"340px"}},Vu=e.defineComponent({name:"DkAttachment"});var Fu=e.defineComponent({...Vu,props:Wo,setup(o,{expose:t}){const n=o,l=e.computed(()=>vo(n.type)),a=e.ref(""),r=e.ref([]),s=e.ref([]),i=e.ref([]),c=zo(),u=c.ApiUrl+"/adminapi/attachment/upload",h={"Access-Token":c.AccessToken},g=e.ref(),_=e.reactive({type:l.value,file:"file",group_id:0}),k=M=>{tc(i.value,M).then(Y=>{Q.ElMessage.success(Y.msg),j()})},E=M=>{console.log("res",M),M.code===0?(Q.ElMessage.success(M.msg),j()):Q.ElMessage.error(M.msg)},m=e.computed(()=>{let M="";if(n.accept)return n.accept;switch(l.value){case 0:break;case 1:M="image/*";break;case 2:M="audio/*";break;case 3:M="video/*";break}return M}),B=()=>{Q.ElMessageBox.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{ec(i.value).then(M=>{console.log(M),j()}).catch(M=>{console.log("deleteAttachment error",M)})}catch(M){console.log(M)}})},w=e.ref([]),b=e.computed(()=>v.value===0?{url:c.ApiUrl+"/adminapi/attachment/group/create",method:"get"}:{url:c.ApiUrl+"/adminapi/attachment/group/"+v.value+"/edit",method:"get"}),d=e.ref(),f=()=>{v.value=0,d.value.show()},p=M=>{Q.ElMessageBox.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{nc(M).then(Y=>{Q.ElMessage.success(Y.msg),C()}).catch(()=>{})}catch(Y){console.log(Y)}})},y=()=>{d.value.show()},C=()=>{x(),j()},V=M=>{v.value=M,F.value=1,j()},x=async()=>{try{const M=await oc(l.value);w.value=M.data}catch{}},D=e.ref(!0),$=e.ref([]),F=e.ref(1),A=e.ref(0),z=e.ref(10),R=e.ref(0),v=e.ref(0),N=M=>{z.value=M,j()},H=M=>{F.value=M,j()},j=async(M={})=>{ue();try{const Y=await Qs(F.value,z.value,l.value,v.value,M);$.value=Y.data,A.value=Y.msg,D.value=!1}catch{}},ue=()=>{r.value=[],i.value=[],s.value=[]},Ae=(M,Y)=>{const te=r.value.indexOf(Y);te>-1?(r.value.splice(te,1),i.value.splice(te,1),s.value.splice(te,1)):(r.value.push(Y),i.value.push(M.id),s.value.push(M))};return e.onMounted(()=>{x(),j()}),t({chooseFileId:i,chooseFileKey:r,chooseFileList:s,clearChoose:ue}),(M,Y)=>{const te=e.resolveComponent("el-button"),ye=e.resolveComponent("el-input"),Vt=e.resolveComponent("el-dropdown-item"),at=e.resolveComponent("el-dropdown-menu"),Ge=e.resolveComponent("el-dropdown"),il=e.resolveComponent("el-upload"),sl=e.resolveComponent("CirclePlusFilled"),rt=e.resolveComponent("el-icon"),No=e.resolveComponent("dk-icon"),Ao=e.resolveComponent("Tools"),cl=e.resolveComponent("el-popover"),ul=e.resolveComponent("el-image"),So=e.resolveComponent("Check"),$o=e.resolveComponent("el-pagination"),dl=e.resolveComponent("el-empty"),pl=e.resolveComponent("dk-form"),je=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",tu,[e.createCommentVNode(" \u9876\u90E8"),e.createElementVNode("div",ou,[e.createElementVNode("div",nu,[e.createVNode(ye,{modelValue:a.value,"onUpdate:modelValue":Y[0]||(Y[0]=q=>a.value=q),size:"default",placeholder:"\u8BF7\u8F93\u5165\u9644\u4EF6\u540D\u79F0",class:"input-with-select"},{append:e.withCtx(()=>[e.createVNode(te,{icon:e.unref(Jt.Search)},null,8,["icon"])]),_:1},8,["modelValue"])]),e.createElementVNode("div",lu,[e.createVNode(Ge,{class:"mr",trigger:"click",onCommand:k},{dropdown:e.withCtx(()=>[e.createVNode(at,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(q,Se)=>(e.openBlock(),e.createBlock(Vt,{key:Se,command:q.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(q.name),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createVNode(te,{size:"default",type:"info",disabled:r.value.length<=0},{default:e.withCtx(()=>[e.createTextVNode(" \u79FB\u52A8 ")]),_:1},8,["disabled"])]),_:1}),e.createVNode(te,{size:"default",type:"danger",disabled:r.value.length<=0,onClick:B},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664"),au]),_:1},8,["disabled"]),e.createVNode(il,{ref_key:"upload",ref:g,class:"dk-upload-button",action:u,multiple:"",data:_,"show-file-list":!1,headers:h,"on-success":E,accept:m.value,"list-type":"text"},{default:e.withCtx(()=>[e.createVNode(te,{type:"primary",size:"default"},{default:e.withCtx(()=>[e.createTextVNode("\u4E0A\u4F20"),ru]),_:1})]),_:1},8,["data","accept"])])]),e.createCommentVNode("\u5185\u90E8"),e.createElementVNode("div",iu,[e.createCommentVNode(" \u5206\u7EC4"),e.createElementVNode("div",su,[e.createElementVNode("h5",{class:"cursor-pointer flex items-center content-center",onClick:Y[1]||(Y[1]=q=>f())},[e.createTextVNode(" \u9644\u4EF6\u5206\u7EC4 "),e.createVNode(rt,{class:"m-l-5px"},{default:e.withCtx(()=>[e.createVNode(sl)]),_:1})]),e.createElementVNode("ul",cu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(q,Se)=>(e.openBlock(),e.createElementBlock("li",{key:Se,class:e.normalizeClass({active:v.value===q.id}),onClick:it=>V(q.id)},[q.id===v.value?(e.openBlock(),e.createBlock(No,{key:0,icon:"flat-color-icons:opened-folder"})):(e.openBlock(),e.createBlock(No,{key:1,icon:"flat-color-icons:folder"})),e.createElementVNode("span",du,e.toDisplayString(q.name),1),e.createVNode(cl,{placement:"right",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",pu,[q.id>0?(e.openBlock(),e.createBlock(rt,{key:0},{default:e.withCtx(()=>[e.createVNode(Ao)]),_:1})):e.createCommentVNode("v-if",!0)])]),default:e.withCtx(()=>[e.createVNode(te,{size:"small",type:"primary",onClick:Y[2]||(Y[2]=e.withModifiers(it=>y(),["stop"]))},{default:e.withCtx(()=>[e.createTextVNode("\u7F16\u8F91 ")]),_:1}),e.createVNode(te,{size:"small",type:"danger",onClick:it=>p(q.id)},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)],10,uu))),128))])]),e.createCommentVNode(" \u5217\u8868"),e.createElementVNode("div",mu,[D.value||$.value.length>0?e.withDirectives((e.openBlock(),e.createElementBlock("div",fu,[e.createElementVNode("ul",{class:"attachment-list cl",style:e.normalizeStyle({overflow:$.value.length>10?"auto":""})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(q,Se)=>(e.openBlock(),e.createElementBlock("li",{key:Se,class:e.normalizeClass({choose:r.value.indexOf(Se)>-1}),onClick:it=>Ae(q,Se),onContextmenu:e.withModifiers(it=>R.value=q.id,["prevent"])},[e.createElementVNode("div",gu,[q.type===1?(e.openBlock(),e.createBlock(ul,{key:0,class:"file",src:q.url,fit:"contain"},{placeholder:e.withCtx(()=>[yu]),_:2},1032,["src"])):e.createCommentVNode("v-if",!0),q.type===2?(e.openBlock(),e.createElementBlock("div",_u,[e.createVNode(st,{"file-name":q.filename,type:q.type},null,8,["file-name","type"])])):e.createCommentVNode("v-if",!0),q.type===3?(e.openBlock(),e.createElementBlock("div",bu,[e.createVNode(st,{"file-name":q.filename,type:q.type},null,8,["file-name","type"])])):e.createCommentVNode("v-if",!0),q.type===0?(e.openBlock(),e.createElementBlock("div",ku,[e.createVNode(st,{"file-name":q.filename},null,8,["file-name"])])):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",Cu,e.toDisplayString(q.name),1),e.createElementVNode("div",Eu,[e.createVNode(rt,null,{default:e.withCtx(()=>[e.createVNode(So)]),_:1})])],42,hu))),128))],4),e.createElementVNode("div",wu,[e.createVNode($o,{"current-page":F.value,layout:"total, prev, pager, next, jumper,sizes",total:A.value,"page-size":z.value,onSizeChange:N,onCurrentChange:H},null,8,["current-page","total","page-size"])])])),[[je,D.value]]):(e.openBlock(),e.createElementBlock("div",Bu,[e.createVNode(dl,{description:"\u6682\u65E0\u6570\u636E"})])),(e.openBlock(),e.createBlock(pl,{ref_key:"groupForm",ref:d,key:v.value,"form-url":b.value,"is-dialog":!0,onSubmit:Y[3]||(Y[3]=q=>C())},null,8,["form-url"]))])])])}}}),Du=T(Fu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\attachment.vue"]]);const Ul=U(Du),Hl={...Wo,title:{type:String,default:""},zIndex:{type:Number,default:1299}},xu={class:"text-center m2"},Nu=e.defineComponent({name:"DkAttachmentDialog"});var Au=e.defineComponent({...Nu,props:Hl,emits:["confirm"],setup(o,{expose:t,emit:n}){const l=o,[a,r]=se("attachment-dialog"),s=e.ref(),i=e.ref(!1),c=e.ref(l.title||Ds(l.type)),u=e.ref(vo(l.type)),h=()=>{s.value.chooseFileList.length>0?(n("confirm",s.value.chooseFileList||[]),i.value=!1):Q.ElMessage.warning({message:"\u8BF7\u5148\u9009\u62E9\u6587\u4EF6"})},g=()=>{i.value=!1};return t({dialogVisible:i,attachment:s,cancel:g,open:()=>{i.value=!0}}),(k,E)=>{const m=e.resolveComponent("dk-attachment"),B=e.resolveComponent("el-button"),w=e.resolveComponent("DkDialog");return e.openBlock(),e.createBlock(w,{modelValue:i.value,"onUpdate:modelValue":E[2]||(E[2]=b=>i.value=b),class:e.normalizeClass(e.unref(r)()),title:c.value,width:"1040px",fullscreen:!1,"z-index":k.zIndex},{default:e.withCtx(()=>[e.createVNode(m,{ref_key:"attachment",ref:s,type:u.value},null,8,["type"]),e.createElementVNode("div",xu,[e.createVNode(B,{type:"primary",size:"default",onClick:E[0]||(E[0]=b=>h())},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u5B9A")]),_:1}),e.createVNode(B,{size:"default",onClick:E[1]||(E[1]=b=>g())},{default:e.withCtx(()=>[e.createTextVNode("\u5173\u95ED")]),_:1})])]),_:1},8,["modelValue","class","title","z-index"])}}}),Su=T(Au,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment-dialog\\src\\attachment-dialog.vue"]]);const Wl=U(Su),ql={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:""}},$u={class:"show m-t-5px"},Tu={class:"image-error"},Iu={class:"image-slot"},zu={class:"no-image"},Ru=e.defineComponent({name:"DkFileInput"});var Ou=e.defineComponent({...Ru,props:ql,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("file-input"),r=e.ref(n.modelValue),s=e.ref();e.watch(()=>n.modelValue,g=>{r.value=g}),e.watch(()=>r.value,g=>{i(g)});const i=g=>{t("update:modelValue",g),t("input",g),t("change",g)},c=()=>{r.value=""},u=()=>{s.value.open()},h=g=>{r.value=g[0].url};return(g,_)=>{const k=e.resolveComponent("el-button"),E=e.resolveComponent("el-input"),m=e.resolveComponent("dk-icon"),B=e.resolveComponent("el-image"),w=e.resolveComponent("Picture"),b=e.resolveComponent("el-icon"),d=e.resolveComponent("Close"),f=e.resolveComponent("Plus"),p=e.resolveComponent("dk-attachment-dialog");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a)())},[e.createCommentVNode("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),g.showInput?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(E,{modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=y=>r.value=y),placeholder:g.placeholder,clearable:""},{append:e.withCtx(()=>[e.createVNode(k,{onClick:u},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),e.createCommentVNode("\u9009\u62E9\u7684\u662F\u56FE\u7247"),e.createElementVNode("div",$u,[g.type===1?(e.openBlock(),e.createBlock(B,{key:0,src:r.value,alt:"",fit:"contain",class:"file rd-4px","preview-src-list":[r.value]},{error:e.withCtx(()=>[e.createElementVNode("div",Tu,[e.createVNode(m,{icon:"Picture"})])]),_:1},8,["src","preview-src-list"])):(e.openBlock(),e.createBlock(st,{key:1,"file-url":r.value,class:"file rd-4px",type:g.type},null,8,["file-url","type"])),e.createElementVNode("em",{onClick:_[1]||(_[1]=y=>r.value="")},[e.createVNode(m,{icon:"Close"})])])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),e.createElementVNode("div",{class:"only-img flex justify-center items-center",style:e.normalizeStyle([{position:"relative"},{width:g.imgSize+"px",height:g.imgSize+"px"}]),onClick:u},[r.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createCommentVNode("\u56FE\u7247\u9644\u4EF6"),g.type===1?(e.openBlock(),e.createBlock(B,{key:0,src:r.value,alt:"",fit:"contain",style:{width:"100%",height:"100%"}},{error:e.withCtx(()=>[e.createElementVNode("div",Iu,[e.createElementVNode("div",zu,[e.createVNode(b,null,{default:e.withCtx(()=>[e.createVNode(w)]),_:1})])])]),_:1},8,["src"])):e.createCommentVNode("v-if",!0),e.createCommentVNode("\u5176\u4ED6\u9644\u4EF6"),g.type!==1&&r.value?(e.openBlock(),e.createBlock(st,{key:1,"file-url":r.value,class:"file rd-4px",type:g.type},null,8,["file-url","type"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:"close",onClick:_[2]||(_[2]=e.withModifiers(y=>c(),["stop"]))},[e.createVNode(b,null,{default:e.withCtx(()=>[e.createVNode(d)]),_:1})])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode("\u6CA1\u6709\u4E0A\u4F20\u7684\u65F6\u5019"),e.createElementVNode("div",{class:"media",style:e.normalizeStyle({lineHeight:g.imgSize+"px",fontSize:g.imgSize/2+"px"})},[e.createVNode(b,null,{default:e.withCtx(()=>[e.createVNode(f)]),_:1})],4)],64))],4)],64)),e.createVNode(p,{ref_key:"attachmentDialog",ref:s,type:g.type,onConfirm:h},null,8,["type"])],2)}}}),Pu=T(Ou,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-input\\src\\file-input.vue"]]);const Gl=U(Pu),Yl={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},ju=e.defineComponent({name:"DkImageInput"});var vu=e.defineComponent({...ju,props:Yl,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("image-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),type:1,class:e.unref(a)()}),null,16,["modelValue","class"])}}}),Mu=T(vu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-input\\src\\image-input.vue"]]);const Xl=U(Mu),Jl={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Lu=e.defineComponent({name:"DkAudioInput"});var Uu=e.defineComponent({...Lu,props:Jl,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("audio-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),type:2,class:e.unref(a)()}),null,16,["modelValue","class"])}}}),Hu=T(Uu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-input\\src\\audio-input.vue"]]);const Kl=U(Hu),Ql={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Wu=e.defineComponent({name:"DkVideoInput"});var qu=e.defineComponent({...Wu,props:Ql,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("video-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),type:3,class:e.unref(a)()}),null,16,["modelValue","class"])}}}),Gu=T(qu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-input\\src\\video-input.vue"]]);const Zl=U(Gu),ea={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}},Yu={class:"dk-image-list"},Xu=["onClick"],Ju={key:0},Ku=e.defineComponent({name:"DkFileListInput"});var Qu=e.defineComponent({...Ku,props:ea,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("file-list-input"),r=e.ref(n.modelValue),s=e.computed(()=>({width:n.imgSize+"px",height:n.imgSize+"px",lineHeight:n.imgSize+"px"})),i=e.ref(),c=()=>{i.value.open()},u=_=>{_.forEach(k=>{r.value.length<n.limit&&(r.value.push(k.url),g(r.value))})},h=_=>{r.value.splice(_,1)};e.watch(()=>n.modelValue,_=>{r.value=_}),e.watch(()=>r.value,_=>{g(_)});const g=_=>{t("update:modelValue",_),t("input",_),t("change",_)};return(_,k)=>{const E=e.resolveComponent("el-image"),m=e.resolveComponent("Close"),B=e.resolveComponent("el-icon"),w=e.resolveComponent("Plus"),b=e.resolveComponent("dk-attachment-dialog");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a)())},[e.createElementVNode("div",Yu,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(d,f)=>(e.openBlock(),e.createElementBlock("li",{key:f},[e.createElementVNode("div",{class:"file",style:e.normalizeStyle(s.value)},[_.type===1?(e.openBlock(),e.createBlock(E,{key:0,src:d,fit:"contain",style:e.normalizeStyle(s.value)},null,8,["src","style"])):(e.openBlock(),e.createBlock(st,{key:1,"file-url":d,class:"file rd-4px",type:_.type},null,8,["file-url","type"])),_.disabled?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:2,class:"close",onClick:p=>h(f)},[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(m)]),_:1})],8,Xu))],4)]))),128)),_.limit>r.value.length&&!_.disabled?(e.openBlock(),e.createElementBlock("li",Ju,[e.createElementVNode("div",{class:"chooseImage",style:e.normalizeStyle(s.value),onClick:k[0]||(k[0]=d=>c())},[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(w)]),_:1})],4)])):e.createCommentVNode("v-if",!0)])]),e.createVNode(b,{ref_key:"attachment",ref:i,type:_.type,onConfirm:u},null,8,["type"])],2)}}}),Zu=T(Qu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-list-input\\src\\file-list-input.vue"]]);const ta=U(Zu),oa={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},ed=e.defineComponent({name:"DkImageListInput"});var td=e.defineComponent({...ed,props:oa,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("image-list-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-list-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),class:e.unref(a)(),type:1,onChange:c[1]||(c[1]=h=>s(r.value))}),null,16,["modelValue","class"])}}}),od=T(td,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-list-input\\src\\image-list-input.vue"]]);const na=U(od),la={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},nd=e.defineComponent({name:"DkAudioListInput"});var ld=e.defineComponent({...nd,props:la,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("audio-list-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-list-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),class:e.unref(a)(),type:2,onChange:c[1]||(c[1]=h=>s(r.value))}),null,16,["modelValue","class"])}}}),ad=T(ld,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-list-input\\src\\audio-list-input.vue"]]);const aa=U(ad),ra={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},rd=e.defineComponent({name:"DkVideoListInput"});var id=e.defineComponent({...rd,props:ra,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("video-list-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-list-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),class:e.unref(a)(),type:3,onChange:c[1]||(c[1]=h=>s(r.value))}),null,16,["modelValue","class"])}}}),sd=T(id,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-list-input\\src\\video-list-input.vue"]]);const ia=U(sd),sa={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}},ca={icon:{default:"",type:String},type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}},ua={type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}};function cd(o){return X({method:"post",url:"/adminapi/common/getIcons/",data:{query:o}})}const ud={class:"dk-icon-content"},dd={key:0,class:"text-center",style:{"font-size":"12px",color:"#999"}},pd={class:"search-icon"},md=e.defineComponent({name:"DkIconContent"});var fd=e.defineComponent({...md,props:ca,emits:["choose"],setup(o,{expose:t,emit:n}){const l=o;To.disableCache("all");function a(d){let f=[];for(const p in d)d.hasOwnProperty(p)&&Array.isArray(d[p])&&(f=f.concat(d[p]));return f}const r=Object.keys(gl).map(d=>d),s=a(Kt),i=e.ref(r),c=e.ref(s),u=To.listIcons(),h=e.ref(u),g=()=>{const{el:d,vant:f,cloud:p}=l.showTab;return d?"element":f?"vant":p?"cloud":l.type},_=e.ref(g()),k=e.ref(""),E=e.computed(()=>_.value==="element"?"\u641C\u7D22element-plus\u56FE\u6807":_.value==="vant"?"\u641C\u7D22vant\u56FE\u6807":"\u641C\u7D22\u4E91\u7AEF\u56FE\u6807"),m=e.ref(""),B=d=>{m.value=d,n("choose",d)},w=()=>{if(_.value==="element"){const d=k.value.toLowerCase();console.log(d),i.value=r.filter(f=>!!(d&&f.toLowerCase().includes(d)))}else _.value==="vant"?(console.log("use"),c.value=s.filter(d=>!!(k.value&&d.toLowerCase().includes(k.value)))):cd(k.value).then(d=>{h.value=d.data}).catch(d=>{console.log(d)})},b=()=>{k.value="",i.value=r,h.value=u,c.value=s};return t({chooseIcon:m}),(d,f)=>{const p=e.resolveComponent("dk-icon"),y=e.resolveComponent("el-tab-pane"),C=e.resolveComponent("el-empty"),V=e.resolveComponent("el-tabs"),x=e.resolveComponent("el-button"),D=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",ud,[e.createVNode(V,{modelValue:_.value,"onUpdate:modelValue":f[0]||(f[0]=$=>_.value=$)},{default:e.withCtx(()=>[l.showTab.el?(e.openBlock(),e.createBlock(y,{key:0,label:"element\u56FE\u6807",name:"element",class:"dk-tab-pane"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,($,F)=>(e.openBlock(),e.createBlock(p,{key:F,size:36,color:$==m.value?"var(--el-color-primary)":"",class:e.normalizeClass([$==m.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",onClick:A=>B($)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent($)))]),_:2},1032,["color","class","onClick"]))),128))]),_:1})):e.createCommentVNode("v-if",!0),l.showTab.vant?(e.openBlock(),e.createBlock(y,{key:1,label:"vant\u56FE\u6807",name:"vant",class:"dk-tab-pane"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,($,F)=>(e.openBlock(),e.createBlock(p,{key:F,size:36,color:$==m.value?"#409eff":"",class:e.normalizeClass([$==m.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",icon:$,onClick:A=>B($)},null,8,["color","class","icon","onClick"]))),128))]),_:1})):e.createCommentVNode("v-if",!0),l.showTab.cloud?(e.openBlock(),e.createBlock(y,{key:2,label:"\u4E91\u7AEF\u56FE\u6807",name:"cloud",class:"dk-tab-pane"},{default:e.withCtx(()=>[h.value.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,($,F)=>(e.openBlock(),e.createBlock(p,{key:F,icon:$,size:36,"hover-color":"var(--el-color-primary)",color:$==m.value?"#409eff":"",class:e.normalizeClass([$==m.value?"choose-icon":"dk-icon","cursor-pointer"]),onClick:A=>B($)},null,8,["icon","color","class","onClick"]))),128)),k.value?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("p",dd,"\u5F53\u524D\u663E\u793A\u5DF2\u7F13\u5B58\u7684\u56FE\u6807"))],64)):(e.openBlock(),e.createBlock(C,{key:1,description:"\u6682\u65E0\u56FE\u6807\uFF0C\u8BF7\u641C\u7D22"}))]),_:1})):e.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",pd,[e.createVNode(D,{modelValue:k.value,"onUpdate:modelValue":f[2]||(f[2]=$=>k.value=$),clearable:"",placeholder:E.value,onClear:b},{append:e.withCtx(()=>[e.createVNode(x,{icon:e.unref(Jt.Search),onClick:f[1]||(f[1]=$=>w())},null,8,["icon"])]),_:1},8,["modelValue","placeholder"])])])}}}),da=T(fd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-content.vue"]]);const hd={class:"text-center m2"},gd=e.defineComponent({name:"DkIconDialog"});var yd=e.defineComponent({...gd,props:ua,emits:["choose","confirm"],setup(o,{expose:t,emit:n}){const l=o,a=e.ref(!1),r=e.ref(),s=e.ref("");t({dialogVisible:a,open:()=>{a.value=!0},iconContent:r});const c=g=>{s.value=g,n("choose",g)},u=()=>{a.value=!1,n("confirm",s.value)},h=()=>{a.value=!1};return(g,_)=>{const k=e.resolveComponent("el-button"),E=e.resolveComponent("dk-dialog");return e.openBlock(),e.createBlock(E,{modelValue:a.value,"onUpdate:modelValue":_[0]||(_[0]=m=>a.value=m),title:"\u9009\u62E9\u56FE\u6807",width:"800px",class:"dk-icon-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("div",hd,[e.createVNode(k,{type:"primary",onClick:u},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u5B9A")]),_:1}),e.createVNode(k,{onClick:h},{default:e.withCtx(()=>[e.createTextVNode("\u5173\u95ED")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(da,e.mergeProps({ref_key:"iconContent",ref:r},l,{onChoose:c}),null,16)]),_:1},8,["modelValue"])}}}),pa=T(yd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-dialog.vue"]]);const _d={key:0,class:"show m-t-5px"},bd=e.defineComponent({name:"DkIconInput"});var kd=e.defineComponent({...bd,props:sa,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("icon-input"),r=e.ref(n.modelValue),s=e.ref();e.watch(()=>n.modelValue,g=>{r.value=g}),e.watch(()=>r.value,g=>{c(g)});const i=e.computed(()=>{const{modelValue:g,..._}=n;return _}),c=g=>{t("update:modelValue",g),t("input",g),t("change",g)},u=()=>{s.value.open()},h=g=>{console.log(g),r.value=g};return(g,_)=>{const k=e.resolveComponent("el-button"),E=e.resolveComponent("el-input"),m=e.resolveComponent("dk-icon"),B=e.resolveComponent("Close"),w=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a)())},[e.createCommentVNode("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),e.createVNode(E,{modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=b=>r.value=b),placeholder:n.placeholder,clearable:""},{append:e.withCtx(()=>[e.createVNode(k,{onClick:u},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),e.createCommentVNode("\u9009\u62E9\u7684\u662F\u56FE\u7247"),n.preview?(e.openBlock(),e.createElementBlock("div",_d,[e.createVNode(m,{icon:r.value?r.value:"fluent:document-none-24-regular",class:"icon rd-4px cursor-pointer",size:50,color:r.value?"":"#ccc",onClick:u},null,8,["icon","color"]),e.createElementVNode("em",{onClick:_[1]||(_[1]=b=>r.value="")},[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(B)]),_:1})])])):e.createCommentVNode("v-if",!0),e.createCommentVNode("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),e.createVNode(pa,e.mergeProps({ref_key:"iconDialog",ref:s},i.value,{onConfirm:h}),null,16)],2)}}}),Cd=T(kd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-input.vue"]]);const ma=U(Cd),fa=U(da),ha=U(pa),Ed=[{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"]}],ga={components:{default:()=>Ed,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}},wd={class:"dk-style-input"},Bd={key:0,class:"p-5px"},Vd={key:1},Fd=e.defineComponent({name:"DkStyleInput"});var Dd=e.defineComponent({...Fd,props:ga,emits:["update:modelValue"],setup(o,{emit:t}){const n=o,l=e.ref(!1),a=e.ref([0]),r=e.ref({}),s=e.ref(!0),i=()=>{const h={};Object.keys(r.value).forEach(g=>{Object.keys(r.value[g]).forEach(_=>{h[_]=r.value[g][_]})}),t("update:modelValue",h)},c=e.ref([]),u=()=>{c.value=n.components.filter(g=>!n.hideComponents.includes(g.name));const h={};c.value.forEach(g=>{const _=g.params,k={};Object.keys(_).forEach(E=>{const m=_[E];n.modelValue[m]&&(k[m]=n.modelValue[m])}),h[g.name]=k}),r.value=h,s.value=!1};return e.watch(()=>n.modelValue,()=>{u()},{deep:!0}),e.onMounted(()=>{u()}),(h,g)=>{const _=e.resolveComponent("el-collapse-item"),k=e.resolveComponent("el-collapse"),E=e.resolveComponent("el-button"),m=e.resolveComponent("el-drawer");return e.openBlock(),e.createElementBlock("div",wd,[s.value?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",Bd,[n.isDrawer?(e.openBlock(),e.createElementBlock("div",Vd,[e.createVNode(E,{type:"primary",plain:"",style:{width:"100%"},size:"small",onClick:g[1]||(g[1]=B=>l.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.drawerText),1)]),_:1}),e.createVNode(m,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":g[3]||(g[3]=B=>l.value=B)},n.drawerProps),{default:e.withCtx(()=>[e.createVNode(k,{modelValue:a.value,"onUpdate:modelValue":g[2]||(g[2]=B=>a.value=B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(B,w)=>(e.openBlock(),e.createBlock(_,{key:w,title:"",name:w},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.title),1)]),default:e.withCtx(()=>[a.value.includes(w)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(B.name),e.mergeProps({key:0,modelValue:r.value[B.name],"onUpdate:modelValue":b=>r.value[B.name]=b},B.props,{onChange:i}),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])]),_:1},16,["modelValue"])])):(e.openBlock(),e.createBlock(k,{key:0,modelValue:a.value,"onUpdate:modelValue":g[0]||(g[0]=B=>a.value=B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(B,w)=>(e.openBlock(),e.createBlock(_,{key:w,title:"",name:w},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.title),1)]),default:e.withCtx(()=>[a.value.includes(w)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(B.name),e.mergeProps({key:0,modelValue:r.value[B.name],"onUpdate:modelValue":b=>r.value[B.name]=b},B.props,{onChange:i}),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]))]))])}}}),xd=T(Dd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-input\\src\\style-input.vue"]]);const ya=U(xd),_a={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}},Nd=["onMousedown"],Ad={style:{display:"flex"}},Sd=e.defineComponent({name:"DkBoxSizeInput"});var $d=e.defineComponent({...Sd,props:_a,emits:["update:modelValue"],setup(o,{emit:t}){const n=o,l=e.ref(),{width:a}=$e.useElementSize(l),r=e.reactive({all:"",first:"",second:"",third:"",fourth:""}),s=e.reactive({all:"px",first:"rem",second:"px",third:"px",fourth:"px"}),i=["px","%","rem","rm","vh","auto"],c=e.ref(""),u=e.ref(n.defaultIsMerge),h=e.ref(!1),g=e.ref(0),_=e.ref(!1),k=e.ref(null),E=e.ref(null),m=e.computed(()=>i.map(y=>({label:y,value:y}))),B=e.computed(()=>{let y;return n.type==="radius"?y=[{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"}]:y=[{position:"first",name:"\u4E0A",icon:"ArrowUp"},{position:"second",name:"\u53F3",icon:"ArrowRight"},{position:"third",name:"\u4E0B",icon:"ArrowDown"},{position:"fourth",name:"\u5DE6",icon:"ArrowLeft"}],y}),w=(y,C)=>{h.value=!0,g.value=C.clientX,c.value=y,k.value=b.bind(C),E.value=d.bind(C),document.addEventListener("mousemove",k.value),document.addEventListener("mouseup",E.value),document.body.style.cursor="ew-resize"},b=y=>{h.value&&(r[c.value]=y.clientX-g.value)},d=()=>{document.removeEventListener("mousemove",k.value),document.removeEventListener("mouseup",E.value),document.body.style.cursor="default",h.value=!1,c.value=""},f=()=>{const y=A=>{let z="px";return i.forEach(R=>{A.includes(R)&&(z=R)}),z},C=n.modelValue.split(" ")||["0px"];let[V,x=V,D=V,$=x]=C;C.length===4?u.value=!1:C.length===3?(u.value=!1,$=""):C.length===2?(u.value=!1,D=V,$=x):(u.value=!0,x=D=$=V);const F={first:V,second:x,third:D,fourth:$};for(const A in F)r[A]=parseInt(F[A])||0,s[A]=y(F[A]);u.value&&(r.all=r.first,s.all=s.first)};e.watch(()=>n.modelValue,()=>{f()});const p=()=>{if(u.value)s.all==="auto"?t("update:modelValue","auto"):t("update:modelValue",`${r.all}${s.all}`);else{let y="";for(const C in s)C!=="all"&&(s[C]==="auto"?y+="auto ":y+=`${r[C]}${s[C]} `);t("update:modelValue",y.trim())}};return e.watch(r,()=>{p()}),e.watch(u,()=>{p()}),e.watch(s,()=>{p()}),e.onMounted(()=>{f()}),(y,C)=>{const V=e.resolveComponent("dk-icon"),x=e.resolveComponent("el-tooltip"),D=e.resolveComponent("el-input"),$=e.resolveComponent("el-select-v2"),F=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:l,class:"dk-box-size-input"},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass((e.unref(a)>500,""))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(A,z)=>(e.openBlock(),e.createElementBlock("div",{key:z,style:{display:"flex"}},[e.createVNode(D,{modelValue:r[A.position],"onUpdate:modelValue":R=>r[A.position]=R,type:"number",controls:!1,disabled:s[A.position]=="auto"},e.createSlots({_:2},[e.unref(a)>600||e.unref(a)<500?{name:"prefix",fn:e.withCtx(()=>[e.createElementVNode("span",{class:"w-resize",onMousemove:b,onMousedown:R=>w(A.position,R),onMouseup:d},[e.createVNode(x,{"hide-after":0,class:"item",effect:"dark",content:A.name,placement:"top-start",disabled:_.value},{default:e.withCtx(()=>[e.createVNode(V,{icon:A.icon},null,8,["icon"])]),_:2},1032,["content","disabled"])],40,Nd)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode($,{modelValue:s[A.position],"onUpdate:modelValue":R=>s[A.position]=R,options:m.value},null,8,["modelValue","onUpdate:modelValue","options"])]))),128))],2),[[e.vShow,!u.value]]),e.withDirectives(e.createElementVNode("div",Ad,[e.createVNode(D,{modelValue:r.all,"onUpdate:modelValue":C[1]||(C[1]=A=>r.all=A),type:"number",controls:!1,disabled:s.all==="auto",clearable:n.clearable},{prefix:e.withCtx(()=>[e.createElementVNode("span",{class:"w-resize",onMousemove:b,onMousedown:C[0]||(C[0]=A=>w("all",A)),onMouseup:d},[e.createVNode(V,{icon:"Rank"})],32)]),_:1},8,["modelValue","disabled","clearable"]),e.createVNode($,{modelValue:s.all,"onUpdate:modelValue":C[2]||(C[2]=A=>s.all=A),options:m.value},null,8,["modelValue","options"])],512),[[e.vShow,u.value]]),n.showMerge?(e.openBlock(),e.createElementBlock("div",{key:0,class:"dk-full",onClick:C[3]||(C[3]=A=>u.value=!u.value)},[e.createVNode(x,{class:"item",effect:"dark",content:u.value?"\u72EC\u7ACB\u914D\u7F6E":"\u6279\u91CF\u914D\u7F6E",placement:"top","hide-after":0},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[e.createVNode(V,{icon:"streamline:interface-layout-border-horizontal-border-cell-center-format-formatting"})]),_:1})):(e.openBlock(),e.createBlock(F,{key:1},{default:e.withCtx(()=>[e.createVNode(V,{icon:"streamline:interface-layout-border-full-grid-layout-layouts-module"})]),_:1}))]),_:1},8,["content"])])):e.createCommentVNode("v-if",!0)],512)}}}),Td=T($d,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\box-size-input\\src\\box-size-input.vue"]]);const ba=U(Td),ka={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)"}},Id=[{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>'}}],zd=[{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>'}}],Rd={class:"dk-style-box-input"},Od={class:"header"},Pd={class:"items-center"},jd=["title","onDblclick"],vd=["onUpdate:modelValue","onBlur"],Md=["width","height","viewBox","data-link-anchor","innerHTML"],Ld=e.createElementVNode("div",{style:{position:"absolute",display:"none",width:"100%",height:"100%"}},null,-1),Ud={class:"anchor-wrapper"},Hd=["onMousedown"],Wd=e.createElementVNode("span",{class:"title"}," \u5916\u8FB9\u8DDD ",-1),qd={class:"tools"},Gd={class:"thumnail border"},Yd=["title","onDblclick"],Xd=["onUpdate:modelValue","onBlur"],Jd=["width","height","viewBox","data-link-anchor","innerHTML"],Kd={class:"anchor-wrapper"},Qd=["onMousedown"],Zd=e.createElementVNode("span",{class:"title"}," \u5185\u8FB9\u8DDD ",-1),ep={class:"tools"},tp={class:"title"},op=e.createElementVNode("span",null," x ",-1),np=e.defineComponent({name:"DkStyleBoxInput"});var lp=e.defineComponent({...np,props:ka,emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,l=e.reactive({margin:!1,padding:!1,widthHeight:!1}),a=e.ref(),r=e.ref(),s=e.ref(),i=e.reactive({marginLeft:n.modelValue.marginLeft||"",marginRight:n.modelValue.marginRight||"",marginTop:n.modelValue.marginTop||"",marginBottom:n.modelValue.marginBottom||"",paddingLeft:n.modelValue.paddingLeft||"",paddingRight:n.modelValue.paddingRight||"",paddingTop:n.modelValue.paddingTop||"",paddingBottom:n.modelValue.paddingBottom||"",width:n.modelValue.width||"",height:n.modelValue.height||""}),c=e.ref(null),{width:u}=$e.useElementSize(c),h=e.reactive({padding:!1,margin:!1,size:!1}),g=e.computed(()=>{if(n.height==="auto"){const F=u.value/1.8;return F>200?200:F}else return n.height});e.watch(()=>n.modelValue,(F,A)=>{["marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","width","height"].forEach(R=>{F[R]!==A[R]&&(i[R]=F[R]||"")})},{deep:!0}),e.watch(i,()=>{const F=Object.keys(i).reduce((A,z)=>(i[z]!==""&&(A[z]=i[z]),A),{});t("update:modelValue",F),t("change",F)});const _=e.reactive({marginLeft:!1,marginRight:!1,marginTop:!1,marginBottom:!1,paddingLeft:!1,paddingRight:!1,paddingTop:!1,paddingBottom:!1,width:!1,height:!1}),k=e.ref(!1),E=e.reactive({x:0,y:0}),m=e.ref(null),B=e.ref(null),w=e.reactive({type:"",position:""}),b=e.reactive({display:"none",width:"0px",height:"0px",left:"0px",top:"0px"}),d=F=>{if(!k.value)return;const A=w.position,z=w.type,R=z+Zt(A),v=(N,H)=>{const j=N==="x"?"clientX":"clientY";b[H]=F[j]+"px";let ue=F[j]-E[N];(A==="top"||A==="left")&&(ue=-ue),i[R]=(parseInt(i[R])||0)+ue+"px",h[z]&&(i[z+"Top"]=i[R],i[z+"Bottom"]=i[R],i[z+"Left"]=i[R],i[z+"Right"]=i[R]),E[N]=F[j]};A==="left"||A==="right"?v("x","left"):(A==="top"||A==="bottom")&&v("y","top")},f=(F,A,z)=>{Object.assign(w,{position:A,type:F}),m.value=d.bind(z),document.addEventListener("mousemove",m.value),B.value=p.bind(z),document.addEventListener("mouseup",B.value),k.value=!0;const R=document.querySelector(".wrapper"),v=R?R.offsetWidth:0,N={margin:.9,padding:.9*.7},{clientX:H,clientY:j}=z,ue=(Ae,M,Y,te,ye)=>{document.body.style.cursor=Ae,Object.assign(b,{left:M,top:Y,width:te,height:ye,display:"block"})};E.x=H,E.y=j,A==="left"||A==="right"?ue("ew-resize",H+"px",j-g.value*.5*N[F]+"px","0.1px",g.value*N[F]+"px"):ue("ns-resize",H-v*.5*N[F]+"px",j+"px",v*N[F]+"px","0.1px")},p=()=>{document.removeEventListener("mousemove",m.value),document.removeEventListener("mouseup",B.value),k.value=!1,b.display="none",document.body.style.cursor="default",E.x=null,E.y=null},y=(F,A="move",z)=>{k.value||z.stopPropagation(),A!=="move"?l[F]=!1:(Object.keys(l).forEach(R=>{R!==F&&(l[R]=!1)}),l[F]=!0)},C=(F,A)=>{_[F]=!0,e.nextTick(()=>{F==="width"?r.value.focus():F==="height"?s.value.focus():a.value[A].focus()})},V=F=>F==="auto"?F:F==="0"||F===0?0:F===""?"-":F,x=F=>{if(_[F]=!1,i[F]===""||i[F]==="auto")return;if(!/^(\d*\.?\d+)(px|rem|%|vh)$/.test(i[F])){const z=parseInt(i[F]);isNaN(z)?i[F]="":(i[F]=z+"px",F.indexOf("padding")==0&&h.padding&&(i.paddingTop=i[F],i.paddingRight=i[F],i.paddingBottom=i[F],i.paddingLeft=i[F]),F.indexOf("margin")==0&&h.padding&&(i.marginTop=i[F],i.marginRight=i[F],i.marginBottom=i[F],i.marginLeft=i[F]))}},D=F=>{F==="widthHeight"?(i.width="",i.height=""):F==="margin"?(i.marginLeft="",i.marginRight="",i.marginTop="",i.marginBottom=""):F==="padding"&&(i.paddingLeft="",i.paddingRight="",i.paddingTop="",i.paddingBottom="")},$=F=>{h[F]=!h[F]};return(F,A)=>{const z=e.resolveComponent("dk-icon"),R=e.resolveComponent("el-popover"),v=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",Rd,[e.createElementVNode("div",{class:"position-line",style:e.normalizeStyle(b)},null,4),e.createElementVNode("div",Od,[e.createElementVNode("label",Pd,[e.createTextVNode(" \u5185\u5916\u8FB9\u8DDD | \u9AD8\u5BBD "),e.createVNode(R,{ref:"popover",placement:"bottom",title:"\u8BF4\u660E",width:280,trigger:"hover",content:n.help},{reference:e.withCtx(()=>[e.createVNode(z,{icon:"QuestionFilled",class:"m-l-5px vertical-text-top"})]),_:1},8,["content"])]),e.createCommentVNode(' <div class="float-right cursor-pointer">'),e.createCommentVNode(' <div class="name-header-operations">'),e.createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u9AD8\u5BBD" placement="top-start">'),e.createCommentVNode(` <dk-icon icon="Refresh" color="#303133" @click="onRefresh('widthHeight')"></dk-icon>`),e.createCommentVNode(" </el-tooltip>"),e.createCommentVNode(" </div>"),e.createCommentVNode(' <div class="name-header-operations">'),e.createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5185\u8FB9\u8DDD" placement="top-start">'),e.createCommentVNode(` <dk-icon icon="Refresh" color="var(&#45;&#45;el-color-success)" @click="onRefresh('padding')"></dk-icon>`),e.createCommentVNode(" </el-tooltip>"),e.createCommentVNode(" </div>"),e.createCommentVNode(' <div class="name-header-operations">'),e.createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5916\u8FB9\u8DDD" placement="top-start">'),e.createCommentVNode(` <dk-icon icon="Refresh" color="var(&#45;&#45;el-color-warning)" @click="onRefresh('margin')"></dk-icon>`),e.createCommentVNode(" </el-tooltip>"),e.createCommentVNode(" </div>"),e.createCommentVNode(" </div>"),e.createElementVNode("div",{ref_key:"box",ref:c,tabindex:"0",class:"wrapper",style:e.normalizeStyle([{"margin-top":"10px"},{height:g.value+"px"}])},[e.createElementVNode("div",{class:e.normalizeClass(["thumnail margin",l.margin?"thumnail-heightlight":""]),onMousemove:A[14]||(A[14]=N=>y("margin","move",N)),onMouseleave:A[15]||(A[15]=N=>y("margin","leave",N))},[e.createCommentVNode("\u5916\u8FB9\u8DDD Margin"),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Id),(N,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("span",{title:N.title,class:e.normalizeClass(`anchor-tip-${N.position} value-indicator`),onDblclick:j=>C(N.value,H)},[e.createElementVNode("span",null,e.toDisplayString(V(i[N.value])),1)],42,jd),e.withDirectives(e.createElementVNode("input",{ref_for:!0,ref_key:"inputField",ref:a,"onUpdate:modelValue":j=>i[N.value]=j,class:e.normalizeClass("input-box anchor-tip-"+N.position+(_[N.value]?" show":"")),onBlur:j=>x(N.value)},null,42,vd),[[e.vModelText,i[N.value]]]),(e.openBlock(),e.createElementBlock("svg",{width:N.svg.width,height:N.svg.height,viewBox:N.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":N.value,style:e.normalizeStyle(N.svg.style),class:"esm-modal-svg",innerHTML:N.svg.content},null,12,Md))]))),128))]),Ld,e.createElementVNode("div",Ud,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["left","right","top","bottom"],(N,H)=>e.createElementVNode("div",{key:H,class:e.normalizeClass(["anchor","anchor-"+N]),onMousemove:d,onMousedown:j=>f("margin",N,j),onMouseup:p},null,42,Hd)),64))]),Wd,e.createElementVNode("div",qd,[e.createVNode(v,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:e.withCtx(()=>[e.createVNode(z,{style:{"margin-right":"5px"},icon:"Connection",color:h.margin?"#f00":"#303133",onClick:A[0]||(A[0]=N=>$("margin"))},null,8,["color"])]),_:1}),e.createVNode(v,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5916\u8FB9\u8DDD",placement:"top-start"},{default:e.withCtx(()=>[e.createVNode(z,{icon:"Refresh",color:"#303133",onClick:A[1]||(A[1]=N=>D("margin"))})]),_:1})]),e.createCommentVNode("\u5916\u8FB9\u8DDD Margin END"),e.createCommentVNode("\u5185\u8FB9\u8DDD Padding"),e.createElementVNode("div",Gd,[e.createElementVNode("div",{class:e.normalizeClass(["thumnail padding",l.padding?"thumnail-heightlight":""]),onMousemove:A[12]||(A[12]=N=>y("padding","move",N)),onMouseleave:A[13]||(A[13]=N=>y("padding","leave",N))},[e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(zd),(N,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("span",{title:N.title,class:e.normalizeClass(`anchor-tip-${N.position} value-indicator`),onDblclick:j=>C(N.value,H+4)},[e.createElementVNode("span",null,e.toDisplayString(V(i[N.value])),1)],42,Yd),e.withDirectives(e.createElementVNode("input",{ref_for:!0,ref_key:"inputField",ref:a,"onUpdate:modelValue":j=>i[N.value]=j,class:e.normalizeClass("input-box anchor-tip-"+N.position+(_[N.value]?" show":"")),onBlur:j=>x(N.value)},null,42,Xd),[[e.vModelText,i[N.value]]]),(e.openBlock(),e.createElementBlock("svg",{width:N.svg.width,height:N.svg.height,viewBox:N.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":N.value,style:e.normalizeStyle(N.svg.style),class:"esm-modal-svg",innerHTML:N.svg.content},null,12,Jd))]))),128))]),e.createElementVNode("div",Kd,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["left","right","top","bottom"],(N,H)=>e.createElementVNode("div",{key:H,class:e.normalizeClass(["anchor","anchor-"+N]),onMousemove:d,onMousedown:j=>f("padding",N,j),onMouseup:p},null,42,Qd)),64))]),Zd,e.createElementVNode("div",ep,[e.createVNode(v,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:e.withCtx(()=>[e.createVNode(z,{style:{"margin-right":"5px"},icon:"Connection",color:h.padding?"#f00":"#303133",onClick:A[2]||(A[2]=N=>$("padding"))},null,8,["color"])]),_:1}),e.createVNode(v,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5185\u8FB9\u8DDD",placement:"top-start"},{default:e.withCtx(()=>[e.createVNode(z,{icon:"Refresh",color:"#303133",onClick:A[3]||(A[3]=N=>D("padding"))})]),_:1})]),e.createCommentVNode("\u5185\u8FB9\u8DDD END"),e.createElementVNode("div",{class:e.normalizeClass(["thumnail width-height",l.widthHeight?"thumnail-heightlight":""]),onMousemove:A[10]||(A[10]=N=>y("widthHeight","move",N)),onMouseleave:A[11]||(A[11]=N=>y("widthHeight","leave",N))},[e.createElementVNode("span",tp,[e.createElementVNode("span",{class:"content-unit left-0",onDblclick:A[4]||(A[4]=N=>C("width",9))},[e.createElementVNode("em",null,e.toDisplayString(V(i.width)),1)],32),e.withDirectives(e.createElementVNode("input",{ref_key:"inputWidth",ref:r,"onUpdate:modelValue":A[5]||(A[5]=N=>i.width=N),class:e.normalizeClass(["input-box absolute left-5% top-10px",_.width?" show":""]),onBlur:A[6]||(A[6]=N=>x("width"))},null,34),[[e.vModelText,i.width]]),op,e.createElementVNode("span",{class:"content-unit right-0",onDblclick:A[7]||(A[7]=N=>C("height",9))},[e.createElementVNode("em",null,e.toDisplayString(V(i.height)),1)],32),e.withDirectives(e.createElementVNode("input",{ref_key:"inputHeight",ref:s,"onUpdate:modelValue":A[8]||(A[8]=N=>i.height=N),class:e.normalizeClass(["input-box absolute right-5% top-10px",_.height?" show":""]),onBlur:A[9]||(A[9]=N=>x("height"))},null,34),[[e.vModelText,i.height]])])],34)],34)])],34)],4)])])}}}),ap=T(lp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-box-input\\src\\style-box-input.vue"]]);const Ca=U(ap),Ea={modelValue:{type:Object,default:()=>({})}},rp={class:"dk-style-font-input"},ip={style:{display:"flex","flex-flow":"wrap","align-items":"center"}},sp={class:"m-b-5px"},cp={style:{width:"100px"},class:"m-b-5px"},up={style:{width:"100px"},class:"m-r-5px m-b-5px"},dp={class:"m-r-5px m-b-5px"},pp={class:"m-b-5px"},mp=e.defineComponent({name:"DkStyleFontInput"});var fp=e.defineComponent({...mp,props:Ea,emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,l=400,a=100,r=e.reactive({color:n.modelValue.color||"",fontSize:n.modelValue.fontSize||"",fontWeight:n.modelValue.fontWeight||"",fontStyle:n.modelValue.fontStyle||"",textDecoration:n.modelValue.textDecoration||""});e.watch(r,c=>{const u=Object.keys(r).reduce((h,g)=>(r[g]!==""&&(h[g]=r[g]),h),{});t("update:modelValue",u),t("change",u)}),e.watch(()=>n.modelValue,()=>{["color","fontSize","fontWeight","fontStyle","textDecoration"].forEach(u=>{r[u]=n.modelValue[u]||""})},{deep:!0});const s=[{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"}],i=c=>{c==="all"?Object.keys(r).forEach(u=>{r[u]=""}):r[c]=""};return(c,u)=>{const h=e.resolveComponent("el-button"),g=e.resolveComponent("el-color-picker"),_=e.resolveComponent("el-tooltip"),k=e.resolveComponent("el-option"),E=e.resolveComponent("el-select"),m=e.resolveComponent("dk-icon"),B=e.resolveComponent("el-button-group");return e.openBlock(),e.createElementBlock("div",rp,[e.createCommentVNode(" \u989C\u8272\u3001\u5B57\u53F7\u3001\u7C97\u7EC6\u3001\u98CE\u683C\u3001\u88C5\u9970"),e.createElementVNode("div",ip,[e.createVNode(_,{placement:"top-end",trigger:"hover","show-after":l,"hide-after":a},{content:e.withCtx(()=>[e.createTextVNode(" \u6587\u5B57\u989C\u8272 "),e.createVNode(h,{size:"small",icon:"Refresh",color:"var(--el-text-color-primary)",disabled:r.color==="",onClick:u[0]||(u[0]=w=>i("color"))},{default:e.withCtx(()=>[e.createTextVNode("\u91CD\u7F6E")]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",sp,[e.createVNode(g,{modelValue:r.color,"onUpdate:modelValue":u[1]||(u[1]=w=>r.color=w)},null,8,["modelValue"])])]),_:1}),e.createElementVNode("div",cp,[e.createVNode(E,{modelValue:r.fontSize,"onUpdate:modelValue":u[2]||(u[2]=w=>r.fontSize=w),"remote-show-suffix":!1,placeholder:"\u5B57\u53F7","allow-create":"",clearable:"",filterable:!0},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["12px","14px","16px","18px","20px","24px","28px","32px","36px","40px","48px"],w=>e.createVNode(k,{key:w,label:w,value:w},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",up,[e.createVNode(E,{modelValue:r.fontWeight,"onUpdate:modelValue":u[3]||(u[3]=w=>r.fontWeight=w),"remote-show-suffix":!1,placeholder:"\u7C97\u7EC6","allow-create":"",clearable:"",filterable:!0},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,w=>e.createVNode(k,{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",dp,[e.createVNode(h,{type:r.fontStyle?"primary":"",onClick:u[4]||(u[4]=w=>r.fontStyle?r.fontStyle="":r.fontStyle="italic")},{default:e.withCtx(()=>[e.createVNode(m,{icon:"radix-icons:font-italic",title:"\u6587\u5B57\u503E\u659C"})]),_:1},8,["type"])]),e.createElementVNode("div",pp,[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(h,{type:r.textDecoration=="underline"?"primary":"",onClick:u[5]||(u[5]=w=>r.textDecoration=="underline"?r.textDecoration="":r.textDecoration="underline")},{default:e.withCtx(()=>[e.createVNode(m,{icon:"radix-icons:underline",title:"\u4E0B\u5212\u7EBF"})]),_:1},8,["type"]),e.createVNode(h,{type:r.textDecoration=="line-through"?"primary":"",onClick:u[6]||(u[6]=w=>r.textDecoration=="line-through"?r.textDecoration="":r.textDecoration="line-through")},{default:e.withCtx(()=>[e.createVNode(m,{icon:"radix-icons:strikethrough",title:"\u5220\u9664\u7EBF"})]),_:1},8,["type"]),e.createVNode(h,{type:r.textDecoration=="wavy underline"?"primary":"",onClick:u[7]||(u[7]=w=>r.textDecoration=="wavy underline"?r.textDecoration="":r.textDecoration="wavy underline")},{default:e.withCtx(()=>[e.createVNode(m,{icon:"mdi:format-underline-wavy",title:"\u6CE2\u6D6A\u7EBF"})]),_:1},8,["type"])]),_:1})]),e.createVNode(_,{placement:"top",trigger:"hover",content:"\u5168\u90E8\u91CD\u7F6E","show-after":l,"hide-after":a},{default:e.withCtx(()=>[e.createVNode(h,{type:"danger",plain:"",icon:"Delete",class:"m-l-5px m-b-5px",onClick:u[8]||(u[8]=w=>i("all"))})]),_:1})])])}}}),hp=T(fp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-font-input\\src\\style-font-input.vue"]]);const wa=U(hp),Ba={modelValue:{type:Object,default:()=>{}}},gp={class:"border-box"},yp={style:{width:"100%"},class:"m-l-20px"},_p={style:{display:"flex",width:"100%"}},bp=e.defineComponent({name:"DkStyleBorderInput"});var kp=e.defineComponent({...bp,props:Ba,emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,l=["top","right","bottom","left","all"],a=["px","%","rem","em","vw","vh"],r=e.ref("all"),s=e.ref(),{width:i}=$e.useElementSize(s),c=()=>({unit:"px"}),u=e.reactive({top:c(),right:c(),bottom:c(),left:c(),all:c(),radius:n.modelValue.borderRadius||"0px"}),h=e.computed(()=>{const E={};return l.forEach(m=>{m==="all"?(u[m].borderWidth&&(E.borderWidth=u[m].borderWidth+(u[m].unit||"px")),u[m].borderStyle&&(E.borderStyle=u[m].borderStyle),u[m].borderColor&&(E.borderColor=u[m].borderColor)):(u[m].borderWidth&&(E["border"+Zt(m)+"Width"]=u[m].borderWidth+(u[m].unit||"px")),u[m].borderStyle&&(E["border"+Zt(m)+"Style"]=u[m].borderStyle),u[m].borderColor&&(E["border"+Zt(m)+"Color"]=u[m].borderColor))}),u.radius!=="0px"&&(E.borderRadius=u.radius),E});e.watch(h,()=>{t("update:modelValue",h.value),t("change",h.value)});const g=()=>{["borderWidth","borderStyle","borderColor","borderRightWidth","borderRightStyle","borderRightColor","borderLeftWidth","borderLeftStyle","borderLeftColor","borderTopWidth","borderTopStyle","borderTopColor","borderBottomWidth","borderBottomStyle","borderBottomColor","borderRadius"].forEach(m=>{if(n.modelValue[m])if(m==="borderRadius")u.radius=n.modelValue[m];else{let[B,w,b]=m.split(/(?=[A-Z])/),d=w.toLowerCase();const f=n.modelValue[m];if(l.indexOf(d)===-1&&(d="all",b=w),b==="Width"){const p=parseInt(f)||0,y=f.replace(p+"","")||"px";a.indexOf(y)>-1&&(u[d].unit=y,u[d].borderWidth=p)}else u[d]["border"+b]=f}else if(m==="borderRadius")u.radius="0px";else{let[B,w,b]=m.split(/(?=[A-Z])/),d=w.toLowerCase();l.indexOf(d)===-1&&(d="all",b=w),n.modelValue[m],b==="Width"?(delete u[d].borderWidth,delete u[d].unit):delete u[d]["border"+b]}})},_=()=>{r.value==="all"?l.forEach(E=>{E!=="all"&&(u[E]={unit:"px"})}):l.forEach(E=>{E==="all"&&(u[E]={unit:"px"})})},k=E=>{E==="radius"?u.radius="0px":delete u[r.value][E]};return e.watch(()=>n.modelValue,()=>{g()},{deep:!0}),e.onMounted(()=>{g()}),(E,m)=>{const B=e.resolveComponent("dk-icon"),w=e.resolveComponent("el-tooltip"),b=e.resolveComponent("el-slider"),d=e.resolveComponent("el-input"),f=e.resolveComponent("el-option"),p=e.resolveComponent("el-select"),y=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-color-picker"),D=e.resolveComponent("dk-box-size-input"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:s,class:e.normalizeClass(["dk-style-border-input",e.unref(i)<400?"mini":""])},[e.createElementVNode("div",gp,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,F=>e.createVNode(B,{key:F,icon:"gg:border-"+F,class:e.normalizeClass("border-box-option border-"+F+" "+(r.value==F?"selected":"")),size:24,style:e.normalizeStyle("grid-area: border-"+F+" / border-"+F+" / border-"+F+" / border-"+F+";"),onClick:A=>r.value=F},null,8,["icon","class","style","onClick"])),64))]),e.createElementVNode("div",yp,[e.createCommentVNode(" \u6837\u5F0F\u3001\u5BBD\u5EA6\u3001\u989C\u8272"),e.createVNode($,{"label-width":"50px","label-position":"left",size:"small"},{default:e.withCtx(()=>[e.createVNode(y,{value:"\u5C3A\u5BF8"},{label:e.withCtx(()=>[e.createVNode(w,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!u[r.value].borderWidth},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["cursor-pointer",u[r.value].borderWidth?"color-blue":""]),onClick:m[0]||(m[0]=F=>k("borderWidth"))},"\u5C3A\u5BF8",2)]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",_p,[e.createVNode(b,{modelValue:u[r.value].borderWidth,"onUpdate:modelValue":m[1]||(m[1]=F=>u[r.value].borderWidth=F),class:"dk-border-slider",max:50,onChange:m[2]||(m[2]=F=>_())},null,8,["modelValue"]),e.createVNode(d,{modelValue:u[r.value].borderWidth,"onUpdate:modelValue":m[3]||(m[3]=F=>u[r.value].borderWidth=F),class:"dk-border-input",type:"number",onChange:m[4]||(m[4]=F=>_())},{default:e.withCtx(()=>[e.createCommentVNode(" <template #append>"),e.createCommentVNode(" <el-select"),e.createCommentVNode(' v-model="form[position].unit"'),e.createCommentVNode(' placeholder="px"'),e.createCommentVNode(' class="dk-border-select"'),e.createCommentVNode(' style="width: 50px"'),e.createCommentVNode(' suffix-icon=""'),e.createCommentVNode(' @change="clearOtherBorder()"'),e.createCommentVNode(" >"),e.createCommentVNode(" <el-option"),e.createCommentVNode(' v-for="item in units"'),e.createCommentVNode(' :key="item"'),e.createCommentVNode(' :label="item"'),e.createCommentVNode(' :value="item"'),e.createCommentVNode(" />"),e.createCommentVNode(" </el-select>"),e.createCommentVNode(" </template>")]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:u[r.value].unit,"onUpdate:modelValue":m[5]||(m[5]=F=>u[r.value].unit=F),placeholder:"px",class:"dk-border-select",style:{width:"60px"},onChange:m[6]||(m[6]=F=>_())},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,F=>e.createVNode(f,{key:F,label:F,value:F},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(y,{value:"\u6837\u5F0F"},{label:e.withCtx(()=>[e.createVNode(w,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!u[r.value].borderStyle},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["cursor-pointer",u[r.value].borderStyle?"color-blue":""]),onClick:m[7]||(m[7]=F=>k("borderStyle"))},"\u6837\u5F0F",2)]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createVNode(V,{modelValue:u[r.value].borderStyle,"onUpdate:modelValue":m[8]||(m[8]=F=>u[r.value].borderStyle=F),onChange:m[9]||(m[9]=F=>_())},{default:e.withCtx(()=>[e.createVNode(C,{value:"solid",name:"type"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"gg:border-style-solid"})]),_:1}),e.createVNode(C,{value:"dotted",name:"type"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"gg:border-style-dotted"})]),_:1}),e.createVNode(C,{value:"dashed",name:"type"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"gg:border-style-dashed"})]),_:1}),e.createVNode(C,{value:"double",name:"type"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"memory:box-light-double-horizontal"})]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(y,{label:"\u989C\u8272"},{label:e.withCtx(()=>[e.createVNode(w,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!u[r.value].borderColor},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["cursor-pointer",u[r.value].borderColor?"color-blue":""]),onClick:m[10]||(m[10]=F=>k("borderColor"))},"\u989C\u8272",2)]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createVNode(x,{modelValue:u[r.value].borderColor,"onUpdate:modelValue":m[11]||(m[11]=F=>u[r.value].borderColor=F)},null,8,["modelValue"])]),_:1}),e.createVNode(y,{label:"\u5F27\u5EA6"},{label:e.withCtx(()=>[e.createVNode(w,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:u.radius=="0px"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["cursor-pointer",u.radius!=="0px"?"color-blue":""]),onClick:m[12]||(m[12]=F=>k("radius"))},"\u5F27\u5EA6",2)]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createVNode(D,{modelValue:u.radius,"onUpdate:modelValue":m[13]||(m[13]=F=>u.radius=F),type:"radius"},null,8,["modelValue"])]),_:1})]),_:1})])],2)}}}),Cp=T(kp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-border-input\\src\\style-border-input.vue"]]);const Va=U(Cp),Fa={modelValue:{type:Object,default:()=>({backgroundImage:"",backgroundColor:""})}},Ep={class:"dk-style-background-input"},wp=e.defineComponent({name:"DkStyleBackgroundInput"});var Bp=e.defineComponent({...wp,props:Fa,emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,l=e.reactive({backgroundImage:"",backgroundColor:""});e.watch(l,()=>{const r={};l.backgroundColor&&(r.backgroundColor=l.backgroundColor),l.backgroundImage&&(r.backgroundImage=`url(${l.backgroundImage})`),t("update:modelValue",r),t("change",r)},{deep:!0});const a=()=>{l.backgroundColor=n.modelValue.backgroundColor||"";const r=n.modelValue.backgroundImage;if(r){const s=/url\((.+)\)/,i=r.match(s);i&&(l.backgroundImage=i[1])}};return e.watch(()=>n.modelValue,()=>{a()}),e.onMounted(()=>{a()}),(r,s)=>{const i=e.resolveComponent("el-color-picker"),c=e.resolveComponent("dk-image-input");return e.openBlock(),e.createElementBlock("div",Ep,[e.createVNode(i,{modelValue:l.backgroundColor,"onUpdate:modelValue":s[0]||(s[0]=u=>l.backgroundColor=u),"show-alpha":""},null,8,["modelValue"]),e.createVNode(c,{modelValue:l.backgroundImage,"onUpdate:modelValue":s[1]||(s[1]=u=>l.backgroundImage=u)},null,8,["modelValue"])])}}}),Vp=T(Bp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-background-input\\src\\style-background-input.vue"]]);const Da=U(Vp),xa={type:{default:"input",type:String},modelValue:{default:()=>{},type:Object}},Fp={class:"dk-style-shadow-input"},Dp={key:1,class:"shadow-list"},xp=e.defineComponent({name:"DkStyleShadowInput"});var Np=e.defineComponent({...xp,props:xa,emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,l=e.ref([]),a=e.ref("1"),r=()=>{l.value.push("2px 2px 3px 2px #E7E5E5FF"),a.value=l.value.length-1+""},s=u=>{l.value.splice(u,1)},i=()=>{n.modelValue.boxShadow&&(l.value=n.modelValue.boxShadow.split(","))},c=e.computed(()=>l.value.join(","));return e.watch(c,(u,h)=>{t("update:modelValue",{boxShadow:c.value}),t("change",{boxShadow:c.value})}),e.watch(()=>n.modelValue,()=>{i()},{deep:!0}),e.onMounted(()=>{i()}),(u,h)=>{const g=e.resolveComponent("dk-style-shadow-content"),_=e.resolveComponent("el-collapse-item"),k=e.resolveComponent("el-collapse"),E=e.resolveComponent("el-button"),m=e.resolveComponent("el-popover"),B=e.resolveComponent("el-input"),w=e.resolveComponent("dk-icon");return e.openBlock(),e.createElementBlock("div",Fp,[u.type==="collapse"?(e.openBlock(),e.createBlock(k,{key:0,modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=b=>a.value=b),accordion:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(b,d)=>(e.openBlock(),e.createBlock(_,{key:d,title:b,name:d+""},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:l.value[d],"onUpdate:modelValue":f=>l.value[d]=f},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createElementBlock("ul",Dp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(b,d)=>(e.openBlock(),e.createElementBlock("li",{key:d},[e.createVNode(B,{modelValue:l.value[d],"onUpdate:modelValue":f=>l.value[d]=f,disabled:""},{append:e.withCtx(()=>[e.createVNode(m,{placement:"right-start",title:"",width:"380",trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(E,null,{default:e.withCtx(()=>[e.createTextVNode("\u8BBE\u7F6E")]),_:1})]),default:e.withCtx(()=>[e.createVNode(g,{modelValue:l.value[d],"onUpdate:modelValue":f=>l.value[d]=f},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]),e.createVNode(w,{class:"close-shadow",icon:"Close","hover-color":"#f00",onClick:f=>s(d)},null,8,["onClick"])]))),128))])),e.createVNode(E,{class:"m-t-10px w-100%",onClick:r},{default:e.withCtx(()=>[e.createVNode(w,{icon:"Plus"})]),_:1})])}}}),Ap=T(Np,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);const Sp={class:"flex"},$p={class:"flex"},Tp={class:"flex"},Ip={class:"flex"},zp={class:"shadow-content-shortcut"},Rp={class:"default-css m-b-10px"},Op=e.createElementVNode("div",{class:"m-b-10px"},"\u5E38\u7528\u6837\u5F0F",-1),Pp=[e.createElementVNode("i",{id:"center"},null,-1)],jp=e.defineComponent({name:"DkStyleShadowContent"});var vp=e.defineComponent({...jp,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(o,{emit:t}){const n=o,l=e.ref(null);$e.useElementSize(l);const a=e.reactive({color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"}),r=["px","%","rem","em","vw","vh"],s=e.ref(!1),i=e.reactive({left:0,top:0}),c=e.ref(""),u=e.ref(),h=e.computed(()=>({left:i.left+"px",top:i.top+"px"})),g=(m,B)=>{if(s.value||B){const w=u.value.getBoundingClientRect();i.left=parseInt(String(m.clientX-w.x)),i.top=parseInt(String(m.clientY-w.y))}};e.watch(i,()=>{a.x=parseInt(String((i.left-n.boxSize/2)/n.boxSize*n.max)),a.y=parseInt(String((i.top-n.boxSize/2)/n.boxSize*n.max))}),e.watch(a,()=>{let m=`${a.x}${a.x_unit} ${a.y}${a.y_unit} ${a.vague}${a.vague_unit} ${a.extend}${a.extend_unit} ${a.color}`;a.type==="inset"&&(m=m+" inset"),t("update:modelValue",m)});const _=m=>{g(m,1),s.value=!0},k=m=>{m?.indexOf(" inset")>-1&&(a.type="inset",m=m.replace(" inset",""));const B=m.split("rgba");let w,b;B.length>1?(w="rgba"+B[1].trim(),b=B[0].trim().split(" ")):(b=B[0].trim().split(" "),w=b.pop()),a.color=w||"#000",a.x=parseInt(b[0])||0,a.y=parseInt(b[1])||0,a.vague=parseInt(b[2])||0,a.extend=parseInt(b[3])||0;const d=f=>{let p=f?.replace(/[-\d.]/g,"")||"px";return r.indexOf(p)===-1&&(p="px"),p};a.x_unit=d(b[0]),a.y_unit=d(b[1]),a.vague_unit=d(b[2]),a.extend_unit=d(b[3]),i.left=n.boxSize/2+a.x/n.max*n.boxSize||0,i.top=n.boxSize/2+a.y/n.max*n.boxSize||0},E=m=>{const B=m.value;k(B)};return e.onMounted(()=>{k(n.modelValue)}),(m,B)=>{const w=e.resolveComponent("el-radio-button"),b=e.resolveComponent("el-radio-group"),d=e.resolveComponent("el-form-item"),f=e.resolveComponent("dk-color-input"),p=e.resolveComponent("el-input"),y=e.resolveComponent("el-option"),C=e.resolveComponent("el-select"),V=e.resolveComponent("el-form"),x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:l,class:"dk-style-shadow-content",style:e.normalizeStyle({"--shadow-box-width":o.boxSize+"px"})},[e.createVNode(V,{"label-width":"60px","label-position":"left",class:"shadow-form-content",size:o.size},{default:e.withCtx(()=>[e.createVNode(d,{label:"\u6A21\u5F0F"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:a.type,"onUpdate:modelValue":B[0]||(B[0]=D=>a.type=D)},{default:e.withCtx(()=>[e.createVNode(w,{value:"external"},{default:e.withCtx(()=>[e.createTextVNode("\u5916\u90E8")]),_:1}),e.createVNode(w,{value:"inset"},{default:e.withCtx(()=>[e.createTextVNode("\u5185\u90E8")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"\u989C\u8272"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.color,"onUpdate:modelValue":B[1]||(B[1]=D=>a.color=D),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"x\u8F74"},{default:e.withCtx(()=>[e.createElementVNode("div",Sp,[e.createVNode(p,{modelValue:a.x,"onUpdate:modelValue":B[2]||(B[2]=D=>a.x=D),type:"number"},null,8,["modelValue"]),e.createVNode(C,{modelValue:a.x_unit,"onUpdate:modelValue":B[3]||(B[3]=D=>a.x_unit=D),placeholder:"\u8BF7\u9009\u62E9"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,D=>e.createVNode(y,{key:D,label:D,value:D},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(d,{label:"y\u8F74"},{default:e.withCtx(()=>[e.createElementVNode("div",$p,[e.createVNode(p,{modelValue:a.y,"onUpdate:modelValue":B[4]||(B[4]=D=>a.y=D),type:"number"},null,8,["modelValue"]),e.createVNode(C,{modelValue:a.y_unit,"onUpdate:modelValue":B[5]||(B[5]=D=>a.y_unit=D),placeholder:"\u8BF7\u9009\u62E9",class:"w-40px"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,D=>e.createVNode(y,{key:D,label:D,value:D},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(d,{label:"\u6A21\u7CCA"},{default:e.withCtx(()=>[e.createElementVNode("div",Tp,[e.createVNode(p,{modelValue:a.vague,"onUpdate:modelValue":B[6]||(B[6]=D=>a.vague=D),type:"number"},null,8,["modelValue"]),e.createVNode(C,{modelValue:a.vague_unit,"onUpdate:modelValue":B[7]||(B[7]=D=>a.vague_unit=D),placeholder:"\u8BF7\u9009\u62E9"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,D=>e.createVNode(y,{key:D,label:D,value:D},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(d,{label:"\u6269\u5C55"},{default:e.withCtx(()=>[e.createElementVNode("div",Ip,[e.createVNode(p,{modelValue:a.extend,"onUpdate:modelValue":B[8]||(B[8]=D=>a.extend=D),type:"number"},null,8,["modelValue"]),e.createVNode(C,{modelValue:a.extend_unit,"onUpdate:modelValue":B[9]||(B[9]=D=>a.extend_unit=D),placeholder:"\u8BF7\u9009\u62E9"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,D=>e.createVNode(y,{key:D,label:D,value:D},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1})]),_:1},8,["size"]),e.createElementVNode("div",zp,[e.createElementVNode("div",Rp,[Op,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.defaultStyles,(D,$)=>(e.openBlock(),e.createBlock(x,{key:$,size:"small",onClick:F=>E(D)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(D.label),1)]),_:2},1032,["onClick"]))),128))]),e.createElementVNode("div",{ref_key:"box",ref:u,class:e.normalizeClass(["shadow-content-box",s.value?"down":""]),style:e.normalizeStyle({height:o.boxSize+"px",width:o.boxSize+"px"}),onClick:B[10]||(B[10]=D=>g(D,1)),onMousedown:_,onMouseup:B[11]||(B[11]=D=>s.value=!1),onMousemove:B[12]||(B[12]=D=>g(D,0))},[e.createElementVNode("span",{id:"spot",style:e.normalizeStyle(h.value)},Pp,4),e.createElementVNode("span",{id:"center-spot",style:e.normalizeStyle({top:o.boxSize/2+"px",left:o.boxSize/2+"px"})},null,4),e.createElementVNode("div",{class:"x-hr",style:e.normalizeStyle({top:o.boxSize/2+"px"})},null,4),e.createElementVNode("div",{class:"y-hr",style:e.normalizeStyle({left:o.boxSize/2+"px"})},null,4),e.createElementVNode("div",{class:"line",style:e.normalizeStyle(c.value)},null,4)],38)])],4)}}}),Mp=T(vp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-content.vue"]]);const Na=U(Ap),Aa=U(Mp),Sa={modelValue:{type:Object,default:()=>({})}},Lp={class:"m-t-10px"},Up=["onClick"],Hp=e.defineComponent({name:"DkStylePositionInput"});var Wp=e.defineComponent({...Hp,props:Sa,emits:["update:modelValue"],setup(o,{emit:t}){const n=o,l=e.ref(null),{width:a}=$e.useElementSize(l),r=e.computed(()=>a.value<=300?24:a.value<800?12:6),s=e.ref({left:n.modelValue.left||"",top:n.modelValue.top||"",right:n.modelValue.right||"",bottom:n.modelValue.bottom||""}),i=[{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"}],c=[{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"}],u=e.ref(!1),h=_=>{switch(u.value=!0,_){case"left-top":s.value={left:"1px",top:"1px",right:"",bottom:""};break;case"left-down":s.value={left:"1px",bottom:"1px",right:"",up:""};break;case"right-top":s.value={top:"1px",right:"1px",left:"",bottom:""};break;case"right-down":s.value={right:"1px",bottom:"1px",left:"",up:""};break;case"down-center":s.value={left:"1px",right:"1px",bottom:"1px",up:""};break;case"up-center":s.value={left:"1px",top:"1px",right:"1px",bottom:""};break}},g=()=>{const _=Object.keys(s.value).reduce((k,E)=>((u.value&&s.value[E]!="0px"||!u.value&&E!=="position")&&s.value[E]&&(k[E]=s.value[E]),k),{});t("update:modelValue",_)};return e.watch(()=>s.value,()=>{g()},{deep:!0}),e.watch(()=>n.modelValue,()=>{Object.keys(n.modelValue).reduce((_,k)=>(k!=="position"&&(_[k]=n.modelValue[k]),_),s.value)},{deep:!0}),(_,k)=>{const E=e.resolveComponent("el-radio-button"),m=e.resolveComponent("el-radio-group"),B=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-tooltip"),b=e.resolveComponent("dk-style-number-input"),d=e.resolveComponent("el-col"),f=e.resolveComponent("el-row"),p=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:l,class:"dk-style-position-input"},[e.createVNode(p,{"label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(B,{label:"\u5E38\u7528"},{default:e.withCtx(()=>[e.createVNode(m,{onChange:h},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,(y,C)=>e.createVNode(E,{key:C,label:y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["label"])),64))]),_:1})]),_:1})]),e.createElementVNode("div",Lp,[e.createVNode(f,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,(y,C)=>e.createVNode(d,{key:C,span:r.value,class:"m-b-5px"},{default:e.withCtx(()=>[e.createVNode(B,{label:y.label},{label:e.withCtx(()=>[e.createVNode(w,{class:"item",effect:"dark",content:y.tip,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle([{cursor:"pointer"},s.value[y.value]?"color:var(--el-color-primary)":""]),onClick:V=>s.value[y.value]=""},e.toDisplayString(y.label)+"\uFF1A",13,Up)]),_:2},1032,["content"])]),default:e.withCtx(()=>[e.createVNode(b,{modelValue:s.value[y.value],"onUpdate:modelValue":V=>s.value[y.value]=V,onInput:k[0]||(k[0]=V=>u.value=!1)},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:2},1032,["span"])),64))]),_:1})])]),_:1})],512)}}}),qp=T(Wp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-position-input\\src\\style-position-input.vue"]]);const $a=U(qp),Ta={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}},Gp=e.defineComponent({name:"DkStyleNumberInput"});var Yp=e.defineComponent({...Gp,props:Ta,emits:["input","update:modelValue"],setup(o,{emit:t}){const n=o,l=Dl(n.modelValue,n.units),a=e.reactive({number:l.number,unit:l.unit||"px"}),r=e.ref(!1),s=e.ref(null),i=e.ref(null),c=e.ref(0),u=e.ref(0),h=k=>{r.value=!0,u.value=k.clientX,c.value=k.clientY,s.value=g.bind(k),i.value=_.bind(k),document.addEventListener("mousemove",s.value),document.addEventListener("mouseup",i.value),document.body.style.cursor="ew-resize"},g=k=>{if(r.value){let E;if(n.direction==="horizontal"){const m=k.clientX-u.value;E=Math.floor(m/10),u.value+=E*10}else if(n.direction==="vertical"){const m=k.clientY-c.value;E=Math.floor(m/10),c.value+=E*10}a.number=parseInt(a.number+E)}},_=()=>{console.log("up"),document.removeEventListener("mousemove",s.value),document.removeEventListener("mouseup",i.value),document.body.style.cursor="default",r.value=!1};return e.watch(()=>a,()=>{a.number===""?t("update:modelValue",""):t("update:modelValue",a.number+a.unit)},{deep:!0}),e.watch(()=>n.modelValue,()=>{const k=Dl(n.modelValue,n.units);a.number=k.number,a.unit=k.unit||"px"}),(k,E)=>{const m=e.resolveComponent("dk-icon"),B=e.resolveComponent("el-tooltip"),w=e.resolveComponent("el-option"),b=e.resolveComponent("el-select"),d=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dk-style-number-input",n.direction])},[e.createVNode(d,{modelValue:a.number,"onUpdate:modelValue":E[1]||(E[1]=f=>a.number=f),type:"text",controls:!1,onInput:E[2]||(E[2]=f=>t("input",f))},e.createSlots({prefix:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["w-resize",[`${n.direction}-resize`]]),onMousemove:g,onMousedown:h,onMouseup:_},[e.createVNode(B,{class:"item",effect:"dark",disabled:!n.tooltipContent,content:n.tooltipContent,placement:"top","open-delay":500},{default:e.withCtx(()=>[e.createVNode(m,{icon:n.icon||"Rank"},null,8,["icon"])]),_:1},8,["disabled","content"])],34)]),_:2},[k.showUnit?{name:"append",fn:e.withCtx(()=>[e.createVNode(b,{modelValue:a.unit,"onUpdate:modelValue":E[0]||(E[0]=f=>a.unit=f),style:{width:"40px"},"suffix-icon":""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.units,(f,p)=>(e.openBlock(),e.createBlock(w,{key:p,label:f,value:f},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),key:"0"}:void 0]),1032,["modelValue"])],2)}}}),Xp=T(Yp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-number-input\\src\\style-number-input.vue"]]);const Ia=U(Xp);function xt(o,t,n){o[t]=n}const _e={type(o,t){return Object.prototype.toString.call(o)==="[object "+t+"]"},Undef(o){return o==null},Element(o){return typeof o=="object"&&o!==null&&o.nodeType===1&&!_e.Object(o)},trueArray(o){return Array.isArray(o)&&o.length>0},Function(o){const t=this.getType(o);return t==="Function"||t==="AsyncFunction"},getType(o){const t=Object.prototype.toString.call(o);return/^\[object (.*)\]$/.exec(t)[1]},empty(o){return o==null||Array.isArray(o)&&Array.isArray(o)&&!o.length?!0:typeof o=="string"&&!o}};["Date","Object","String","Boolean","Array","Number"].forEach(o=>{_e[o]=function(t){return _e.type(t,o)}});function Jp(o,t){return{}.hasOwnProperty.call(o,t)}function za(o,t={},n){let l=!1;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let r=t[a];if((l=Array.isArray(r))||_e.Object(r)){let s=o[a]===void 0;if(l)l=!1,s&&xt(o,a,[]);else if(r._clone&&n!==void 0)if(n)r=r.getRule(),s&&xt(o,a,{});else{xt(o,a,r._clone());continue}else s&&xt(o,a,{});o[a]=za(o[a],r,n)}else xt(o,a,r),_e.Undef(r)||(_e.Undef(r.__json)||(o[a].__json=r.__json),_e.Undef(r.__origin)||(o[a].__origin=r.__origin))}return n!==void 0&&Array.isArray(o)?o.filter(a=>!a||!a.__ctrl):o}function ct(o){return za({},{value:o}).value}function Ra(o){return o.replace(o[0],o[0].toLowerCase())}const Kp={class:"preview-phone"},Qp={class:"phone"},Zp={class:"phone-header"},em={class:"phone-header-top"},tm={class:"phone-time"},om=e.createElementVNode("div",null,null,-1),nm={class:"phone-battery"},lm=e.createElementVNode("span",{class:"m-r-4px"},"100%",-1),am={class:"phone-title"},rm={class:"phone-title-icon"},im=e.createElementVNode("div",null,"\u9875\u9762\u6807\u9898",-1),sm={class:"phone-title-icon"},cm=e.defineComponent({name:"PreviewPhone"});var um=e.defineComponent({...cm,props:{value:{default:"",type:String},pageConfig:{default:()=>{},type:[Object]}},setup(o){const t=o,n=e.inject("diy"),l="preview-phone",a=JSON.parse(Te.get(l)||"{}"),r=e.ref({showLine:a.showLine||!0,margin:a.margin||2,preview:a.preview||!1,closeAnimate:a.closeAnimate||!1});e.provide("previewSetting",r);const s=()=>{Te.set(l,JSON.stringify(r.value))},i=(h="")=>{const{proxy:g}=n,_={rule:"\u7EC4\u4EF6",config:"\u914D\u7F6E"};Q.ElMessageBox.confirm("\u5F53\u524D\u8981\u6E05\u9664"+_[h]+"\uFF0C\u662F\u5426\u7EE7\u7EED?","\u8B66\u544A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{g.clear(h),Q.ElMessage.success("\u6E05\u9664\u6210\u529F")}).catch(()=>{})},c=e.computed(()=>{let h={"--padding":"0","--overflow":"initial"};return r.value.showLine&&!r.value.preview&&(h={"--margin":r.value.margin+"px","--showDashed":"1px"}),r.value.preview?(h["--padding"]="0",h["--overflow"]="hidden",h["--minHeight"]="0px"):(h["--padding"]="2px 0",h["--overflow"]="initial",h["--minHeight"]="30px"),{...t.pageConfig.style,...h}}),u=e.computed(()=>{const h=new Date,g=h.getHours(),_=h.getMinutes();return g+":"+_});return(h,g)=>{const _=e.resolveComponent("van-icon"),k=e.resolveComponent("dk-icon"),E=e.resolveComponent("el-dropdown-item"),m=e.resolveComponent("el-dropdown-menu"),B=e.resolveComponent("el-dropdown"),w=e.resolveComponent("el-tooltip"),b=e.resolveComponent("el-switch"),d=e.resolveComponent("el-form-item"),f=e.resolveComponent("el-slider"),p=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",Kp,[e.createElementVNode("div",Qp,[e.createElementVNode("div",Zp,[e.createElementVNode("div",em,[e.createElementVNode("div",tm,[e.createElementVNode("span",null,e.toDisplayString(u.value),1),e.createVNode(_,{name:"wechat",color:"#2ddd71"})]),om,e.createElementVNode("div",nm,[lm,e.createVNode(k,{icon:"gg:battery-full",size:18,color:"#555","hover-color":"#f00"})])]),e.createElementVNode("div",am,[e.createElementVNode("div",rm,[e.createVNode(B,{trigger:"click",placement:"bottom-start"},{dropdown:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>[e.createVNode(E,{onClick:g[0]||(g[0]=y=>i("rule"))},{default:e.withCtx(()=>[e.createTextVNode("\u6E05\u9664\u7EC4\u4EF6")]),_:1}),e.createVNode(E,{onClick:g[1]||(g[1]=y=>i("page"))},{default:e.withCtx(()=>[e.createTextVNode("\u6E05\u9664\u9875\u9762")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(k,{icon:"Close","hover-color":"var(--el-color-primary)",size:20,style:{cursor:"pointer"}})]),_:1})]),im,e.createElementVNode("div",sm,[e.createVNode(p,{placement:"bottom",width:200,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(k,{icon:"MoreFilled",size:20,"hover-color":"var(--el-color-primary)",style:{cursor:"pointer"}})]),default:e.withCtx(()=>[e.createVNode(d,{label:"\u663E\u793A\u7F51\u683C"},{label:e.withCtx(()=>[e.createVNode(w,{class:"box-item",effect:"dark",content:"\u663E\u793A\u7EC4\u4EF6\u7F51\u683C\u7EBF",placement:"right-start"},{default:e.withCtx(()=>[e.createTextVNode(" \u663E\u793A\u7F51\u683C ")]),_:1})]),default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.value.showLine,"onUpdate:modelValue":g[2]||(g[2]=y=>r.value.showLine=y),onChange:g[3]||(g[3]=y=>s())},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"\u7F51\u683C\u95F4\u8DDD"},{label:e.withCtx(()=>[e.createVNode(w,{class:"box-item",effect:"dark",content:"\u8BBE\u7F6E\u7EC4\u4EF6\u4E4B\u95F4\u7684\u7F51\u683C\u95F4\u8DDD",placement:"right-start"},{default:e.withCtx(()=>[e.createTextVNode(" \u7F51\u683C\u95F4\u8DDD ")]),_:1})]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.value.margin,"onUpdate:modelValue":g[4]||(g[4]=y=>r.value.margin=y),min:0,step:1,"show-stops":"",max:20,onChange:g[5]||(g[5]=y=>s())},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"\u6548\u679C\u9884\u89C8"},{label:e.withCtx(()=>[e.createVNode(w,{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:e.withCtx(()=>[e.createTextVNode(" \u6548\u679C\u9884\u89C8 ")]),_:1})]),default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.value.preview,"onUpdate:modelValue":g[6]||(g[6]=y=>r.value.preview=y),onChange:g[7]||(g[7]=y=>s())},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"\u5173\u95ED\u52A8\u753B"},{label:e.withCtx(()=>[e.createVNode(w,{class:"box-item",effect:"dark",content:"\u5173\u95ED\u6240\u6709\u9884\u89C8\u7684\u52A8\u753B\u6548\u679C",placement:"right-start"},{default:e.withCtx(()=>[e.createTextVNode(" \u5173\u95ED\u52A8\u753B ")]),_:1})]),default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.value.closeAnimate,"onUpdate:modelValue":g[8]||(g[8]=y=>r.value.closeAnimate=y),onChange:g[9]||(g[9]=y=>s())},null,8,["modelValue"])]),_:1})]),_:1})])])]),e.createElementVNode("div",{class:"phone-body _fc-m-drag",style:e.normalizeStyle(c.value)},[e.renderSlot(h.$slots,"default")],4)])])}}}),dm=T(um,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\PreviewPhone.vue"]]);const pm="\u6D77\u62A5",Oa="dk-poster-btn";var qo={icon:"icon-park-outline:mark",label:pm,name:Oa,rule(){return{type:Oa,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 mm="\u5F39\u5E55\u7EC4\u4EF6",Pa="DkViewBulletChat";var Go={icon:"mingcute:chat-1-line",label:mm,name:Pa,rule(){return{type:Pa,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 fm="\u5355\u5143\u683C",ja="DkViewCell";var Yo={icon:"cil:grid",label:fm,name:ja,rule(){return{type:ja,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 hm="\u901A\u7528\u6309\u94AE",va="DkViewCommonBtn";var Xo={icon:"game-icons:power-button",label:hm,name:va,rule(){return{type:va,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(o){return o!==""},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(o){return o!==""},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(o){return o!==""},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 gm="\u5F39\u7A97\u7EC4\u4EF6",Ma="DkViewDialog";var Jo={icon:"mi:window",label:gm,name:Ma,event:!0,rule(){return{type:Ma,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(o){return o!==""},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 ym="\u5217\u8868",La="DkViewGridCellList";var Ko={icon:"fluent:list-bar-16-regular",label:ym,name:La,rule(){return{type:La,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 _m="\u56FE\u7247",Ua="DkViewImage";var Qo={icon:"clarity:image-line",label:_m,name:Ua,rule(){return{type:Ua,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 bm="\u97F3\u4E50",Ha="DkViewMusic";var Zo={icon:"mingcute:music-3-line",label:bm,name:Ha,rule(){return{type:Ha,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 km="\u5BFC\u822A\u680F",Wa="DkViewNavBar";var en={icon:"bx:navigation",label:km,name:Wa,rule(){return{type:Wa,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 Cm="\u516C\u544A",qa="DkViewNoticeBar";var tn={icon:"icon-park-outline:volume-notice",label:Cm,name:qa,rule(){return{type:qa,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 Em="\u8F6E\u64AD",Ga="DkViewSwipe";var on={icon:"dashicons:images-alt2",label:Em,name:Ga,rule(){return{type:Ga,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:o=>o/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 wm="\u5E95\u90E8\u5BFC\u822A",Ya="DkViewTabbar";var nn={icon:"fluent:table-bottom-row-32-regular",label:wm,name:Ya,rule(){return{type:Ya,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 Bm="\u5BCC\u6587\u672C",Xa="DkViewTextarea";var ln={icon:"fluent:image-alt-text-16-regular",label:Bm,name:Xa,rule(){return{type:Xa,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 Vm="\u89C6\u9891",Ja="DkViewVideo";var an={icon:"icon-park-twotone:video-two",label:Vm,name:Ja,rule(){return{type:Ja,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 Fm=[qo,Go,Yo,Xo,Jo,Ko,Qo,Zo,en,tn,on,nn,ln,an],Dm={[qo.name]:qo,[Go.name]:Go,[Yo.name]:Yo,[Xo.name]:Xo,[Jo.name]:Jo,[Ko.name]:Ko,[Qo.name]:Qo,[Zo.name]:Zo,[en.name]:en,[tn.name]:tn,[on.name]:on,[nn.name]:nn,[ln.name]:ln,[an.name]:an},xm="\u901A\u7528\u6807\u9898",Ka="DkViewTitle";var rn={icon:"ic:sharp-title",label:xm,name:Ka,rule(){return{type:Ka,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(o){return o!==""},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 Nm="\u7A7A\u5185\u5BB9",Qa="VanEmpty";var sn={icon:"grommet-icons:test",label:Nm,name:Qa,count:1,rule(){return{type:Qa,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"}]}}]}},Za={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"}}]}},cn={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"}}]}},er={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 Am="\u95F4\u8DDD",tr="div";var un={icon:"ri:space",label:Am,name:tr,rule(){return{type:tr,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"}]}}]}},dn={icon:"cil:columns",label:"\u6805\u683C\u5E03\u5C40",name:"row",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 Sm="\u5206\u5272\u7EBF",or="van-divider";var pn={icon:"mingcute:border-horizontal-line",label:Sm,name:or,rule(){return{type:or,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"}]}]}},mn={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"}}]}},nr={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 $m=[rn,sn,cn,un,dn,pn,mn],Tm={...{[rn.name]:rn,[sn.name]:sn,[Za.name]:Za,[cn.name]:cn,[er.name]:er,[un.name]:un,[dn.name]:dn,[pn.name]:pn,[mn.name]:mn,[nr.name]:nr},...Dm},Im=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...Fm]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[...$m]}]},zm="\u89C6\u9891",lr="DkMinVideo";var fn={icon:"icon-park-twotone:video-two",label:zm,name:lr,rule(){return{type:lr,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 Rm="\u8F6E\u64AD\u56FE",ar="DkMinSwiperImage";var hn={icon:"dashicons:images-alt2",label:Rm,name:ar,rule(){return{type:ar,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:o=>o/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:"DkUrlInput",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Om="\u6807\u9898",rr="DkMinTitle";var gn={icon:"material-symbols:title",label:Om,name:rr,rule(){return{type:rr,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 Pm="\u7A7A\u767D",ir="DkMinBlank";var yn={icon:"FullScreen",label:Pm,name:ir,rule(){return{type:ir,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 jm="\u5BCC\u6587\u672C",sr="DkMinTextarea";var _n={icon:"fluent:image-alt-text-16-regular",label:jm,name:sr,rule(){return{type:sr,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 vm="\u70ED\u56FE",cr="DkMinHotArea";var bn={icon:"dashicons:images-alt2",label:vm,name:cr,rule(){return{type:cr,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 Mm="\u5BAB\u683C",ur="DkMinGrid";var kn={icon:"mdi:grid",label:Mm,name:ur,rule(){return{type:ur,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:""}]},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:"DkUrlInput",field:"path",title:"\u5730\u5740"}]},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 Lm=[fn,hn,gn,yn,_n,bn,kn],Um={...{[fn.name]:fn,[hn.name]:hn,[gn.name]:gn,[yn.name]:yn,[_n.name]:_n,[bn.name]:bn,[kn.name]:kn}},Hm=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...Lm]}]};function dr(o){return o.replace(o[0],o[0].toLocaleUpperCase())}const pr=Qt,re=Qt.factory();let Wm=0;const mr=()=>"F"+Math.random().toString(36).substr(3,3)+(+`${Date.now()}${++Wm}`).toString(36);function qm(){return[{type:"DkStyleInput",field:"style",value:{},title:"",props:{}}]}const fr=[{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 Cn(o){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:[o]}]}}function hr(o){const t=fr[0].animate;for(let n=0;n<t.length;n++)if(t[n].value===o)return!0;return!1}function En(o=null){const t=[{type:"el-collapse",props:{modelValue:"base"},style:"width:100%",children:[{type:"el-collapse-item",props:{name:"base"},children:[Cn("\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:[Cn("\u52A8\u753B\u914D\u7F6E"),{type:"DkAnimateSelect",field:"animate",value:"",title:"\u9009\u62E9\u52A8\u753B",control:[{handle:function(n){return n?hr(n):!1},rule:[{type:"dk-style-animation-input",field:"animation",title:"",value:{animationDelay:"0s",animationDuration:"1s",animationIterationCount:"infinite"}}]},{handle:function(n){return n?!hr(n):!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(o&&o.config.config.rule().fixed){const n=[Cn("\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:""}]}]}],l={type:"el-collapse-item",props:{name:"fixed"},children:n};t[0].children.push(l)}return t}const gr={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"}},Gm={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 o={};return this.height&&this.isHeight?o.height=this.height+"px":o.height="240px",o}},mounted(){},methods:{}},Ym={style:{position:"relative"},class:"dk-video-content"},Xm={class:"video-preview"},Jm={key:0},Km={key:1};function Qm(o,t,n,l,a,r){const s=e.resolveComponent("el-image"),i=e.resolveComponent("dk-icon");return e.openBlock(),e.createElementBlock("div",{class:"dk-view-video",style:e.normalizeStyle(r._style)},[e.createElementVNode("div",Ym,[n.poster?(e.openBlock(),e.createBlock(s,{key:0,src:n.poster,alt:"",class:"poster"},null,8,["src"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",Xm,[e.createVNode(i,{icon:"VideoPlay",size:24}),n.videoPath?(e.openBlock(),e.createElementBlock("p",Km,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B!!!!")):(e.openBlock(),e.createElementBlock("p",Jm,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891!!!"))])])],4)}var Zm=T(Gm,[["render",Qm],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinVideo.vue"]]);const ef={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(o){}},mounted(){},methods:{}},tf={key:0,class:"swipe-title"};function of(o,t,n,l,a,r){const s=e.resolveComponent("van-image"),i=e.resolveComponent("van-swipe-item"),c=e.resolveComponent("van-swipe");return e.openBlock(),e.createBlock(c,{class:"dk-min-swipe",autoplay:n.autoplay,"indicator-color":"white",style:e.normalizeStyle({background:n.bgColor||""})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.swipeList,(u,h)=>(e.openBlock(),e.createBlock(i,{key:h},{default:e.withCtx(()=>[e.createVNode(s,{src:u.img,width:"100%",height:n.height,style:e.normalizeStyle(n.radius?"border-radius: "+n.radius+"px; overflow: hidden":"")},null,8,["src","height","style"]),n.showTitle?(e.openBlock(),e.createElementBlock("div",tf,e.toDisplayString(u.title),1)):e.createCommentVNode("v-if",!0)]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var nf=T(ef,[["render",of],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinSwiperImage.vue"]]);const lf={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:{}},af={class:"dk-min-title flex items-center justify-between"},rf={class:"flex justify-center items-center"},sf=["src"];function cf(o,t,n,l,a,r){const s=e.resolveComponent("dk-uni-icon");return e.openBlock(),e.createElementBlock("div",af,[e.createElementVNode("div",rf,[e.createElementVNode("div",{style:e.normalizeStyle({marginRight:n.marginRight+"px"})},[n.iconType==="icon"?(e.openBlock(),e.createBlock(s,{key:0,type:n.icon,size:n.iconSize,color:n.iconColor},null,8,["type","size","color"])):n.iconType==="img"&&n.image?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.image,style:e.normalizeStyle({width:n.iconSize+"px",height:n.iconSize+"px"}),alt:""},null,12,sf)):e.createCommentVNode("v-if",!0)],4),e.createElementVNode("div",null,[e.createElementVNode("span",{style:e.normalizeStyle({...n.titleStyle})},e.toDisplayString(n.title),5),n.showSubtitle?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle([{"margin-left":"5px","font-size":"12px"},{color:n.subColor}])},e.toDisplayString(n.subtitle),5)):e.createCommentVNode("v-if",!0)])]),n.isMore?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle([{color:n.moreColor},{"font-size":"12px"}])},e.toDisplayString(n.moreText),5)):e.createCommentVNode("v-if",!0)])}var uf=T(lf,[["render",cf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTitle.vue"]]);const df={name:"DkMinBlank",props:{height:{default:20,type:[String,Number]}},data(){return{}},computed:{},mounted(){},methods:{}};function pf(o,t,n,l,a,r){return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([{height:n.height+"px"},{width:"100%"}])},null,4)}var mf=T(df,[["render",pf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinBlank.vue"]]);const ff={name:"DkMinTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},hf=["innerHTML"];function gf(o,t,n,l,a,r){return e.openBlock(),e.createElementBlock("div",{innerHTML:n.textarea},null,8,hf)}var yf=T(ff,[["render",gf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTextarea.vue"]]);const _f={name:"DkMinHotArea",props:{hotData:{default:()=>({}),type:Object},showMask:{default:!1,type:Boolean}},setup(o){const t=e.ref(null);let n=null;const l=e.ref(0),a=e.ref([]);e.onMounted(()=>{n=new(window.ResizeObserver||ResizeObserver)(r),n.observe(t.value),l.value=t.value.clientWidth,s()}),e.onUnmounted(()=>{n&&n.disconnect()}),e.watch(()=>o.hotData.views,()=>{s()},{deep:!0});function r(i){i.forEach(c=>{c.target===t.value&&(l.value=c.contentRect.width,s())})}function s(){a.value=JSON.parse(JSON.stringify(o.hotData.views)),a.value.forEach(i=>{const{left:c,top:u,width:h,height:g}=i.css,_=Math.round(h*(l.value/o.hotData.width)),k=Math.round(g*(l.value/o.hotData.width)),E=Math.round(c*(l.value/o.hotData.width)),m=Math.round(u*(l.value/o.hotData.width));i.css={...i.css,left:E+"px",top:m+"px",width:_+"px",height:k+"px"}})}return{el:t,containerWidth:l,views:a}}},bf={ref:"el",class:"dk-min-area"},kf=["src"];function Cf(o,t,n,l,a,r){const s=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",bf,[n.hotData.background?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.hotData.background,alt:"",style:{width:"100%"}},null,8,kf)):(e.openBlock(),e.createBlock(s,{key:1,description:"\u8BF7\u4E0A\u4F20\u80CC\u666F\u56FE"})),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.views,(i,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,style:e.normalizeStyle({position:"absolute",...i.css,background:n.showMask?"#0008":"#0004"})},[e.createCommentVNode(" \u53EF\u4EE5\u5728\u8FD9\u91CC\u653E\u7F6E\u70ED\u56FE\u94FE\u63A5\u6216\u8986\u76D6\u5C42 "),e.createElementVNode("div",{style:e.normalizeStyle({width:i.css.width,height:i.css.height}),class:"hot-item"},e.toDisplayString(c+1),5)],4))),128))],512)}var Ef=T(_f,[["render",Cf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinHotArea.vue"]]);const wf={name:"DkMinGrid",props:["list","columnNum","imageStyle","useImageStyle","fontStyle"],data:()=>({value:""})},Bf=["src"];function Vf(o,t,n,l,a,r){const s=e.resolveComponent("dk-icon"),i=e.resolveComponent("van-grid-item"),c=e.resolveComponent("van-grid"),u=e.resolveComponent("el-empty");return n.list?.length>0?(e.openBlock(),e.createBlock(c,{key:0,border:!1,"column-num":n.columnNum,class:"min-h-30px dk-app-gold-grid",style:{"--van-grid-item-content-background":"none"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,(h,g)=>(e.openBlock(),e.createBlock(i,{key:g},{default:e.withCtx(()=>[h.image?(e.openBlock(),e.createElementBlock("img",{key:0,src:h.image,alt:"",style:e.normalizeStyle(n.imageStyle)},null,12,Bf)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"flex justify-center items-center",style:e.normalizeStyle([{display:"flex",background:"#f3f5f7"},n.imageStyle])},[e.createVNode(s,{icon:"PictureFilled",color:"#BBBFC8"})],4)),e.createElementVNode("span",{style:e.normalizeStyle({...n.fontStyle})},e.toDisplayString(h.title),5)]),_:2},1024))),128))]),_:1},8,["column-num"])):(e.openBlock(),e.createBlock(u,{key:1}))}var Ff=T(wf,[["render",Vf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinGrid.vue"]]);const yr={DkMinVideo:Zm,DkMinSwiperImage:nf,DkMinTitle:uf,DkMinBlank:mf,DkMinTextarea:yf,DkMinHotArea:Ef,DkMinGrid:Ff},Df={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:{}},xf={class:"bullet-content"},Nf=["src"],Af={class:"over"},Sf=[e.createElementVNode("div",{class:"bullet-content"},[e.createElementVNode("span",{class:"over"},"\u5F53\u524D\u6570\u636E\u7531\u4E8B\u4EF6\u4F20\u5165")],-1)];function $f(o,t,n,l,a,r){const s=e.resolveComponent("van-swipe-item"),i=e.resolveComponent("van-swipe");return n.dataType==="default"?(e.openBlock(),e.createBlock(i,{key:0,vertical:"",class:"dk-view-bullet-chat",style:e.normalizeStyle({background:n.bgColor,color:n.textColor}),autoplay:n.autoplay,"show-indicators":!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.bulletData,(c,u)=>(e.openBlock(),e.createBlock(s,{key:u},{default:e.withCtx(()=>[e.createElementVNode("div",xf,[c.avatar?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.avatar,alt:""},null,8,Nf)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",Af,e.toDisplayString(c.text),1)])]),_:2},1024))),128))]),_:1},8,["style","autoplay"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"dk-view-bullet-chat",style:e.normalizeStyle([{display:"flex"},{background:n.bgColor,color:n.textColor}])},Sf,4))}var Tf=T(Df,[["render",$f],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewBulletChat.vue"]]);const If={name:"DkViewCell",props:{groups:{default:()=>[],type:Array}},data(){return{}},computed:{},mounted(){},methods:{}};function zf(o,t,n,l,a,r){const s=e.resolveComponent("van-cell"),i=e.resolveComponent("van-cell-group");return e.openBlock(),e.createBlock(i,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.groups,(c,u)=>(e.openBlock(),e.createBlock(s,{key:u,title:c.title,value:c.value},null,8,["title","value"]))),128))]),_:1})}var Rf=T(If,[["render",zf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCell.vue"]]);const Of={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:{}},Pf={class:"dk-view-common-btn"},jf={key:0,class:"btn"},vf={key:1,class:"f-btn"},Mf={key:0,class:"image-content"},Lf=["src","width"];function Uf(o,t,n,l,a,r){const s=e.resolveComponent("van-button"),i=e.resolveComponent("van-icon");return e.openBlock(),e.createElementBlock("div",Pf,[n.type==="btn"?(e.openBlock(),e.createElementBlock("div",jf,[e.createVNode(s,{type:"primary",block:n.block,round:n.round,size:n.size,color:r.vanBtnColor,icon:n.icon},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.btnText),1)]),_:1},8,["block","round","size","color","icon"])])):(e.openBlock(),e.createElementBlock("div",vf,[n.img?(e.openBlock(),e.createElementBlock("div",Mf,[e.createElementVNode("img",{src:n.img,alt:"",width:n.imgSize},null,8,Lf)])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{style:e.normalizeStyle(r.textStyle),class:"f-btn-content"},[e.createVNode(i,{name:n.icon,size:n.iconSize},null,8,["name","size"]),e.createElementVNode("span",{style:e.normalizeStyle({fontSize:n.fontSize+"px"})},e.toDisplayString(n.fBtnText),5)],4)]))])}var Hf=T(Of,[["render",Uf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCommonBtn.vue"]]);const Wf={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")}}},qf={class:"dk-view-dialog"},Gf=e.createElementVNode("div",{class:"preview"},"\u70B9\u51FB\u9884\u89C8\u53EF\u4EE5\u67E5\u770B\u5F39\u7A97\u6548\u679C",-1),Yf=["innerHTML"];function Xf(o,t,n,l,a,r){const s=e.resolveComponent("van-dialog");return e.openBlock(),e.createElementBlock("div",qf,[Gf,a.showDialog?(e.openBlock(),e.createBlock(s,{key:0,show:a.showDialog,"onUpdate:show":t[0]||(t[0]=i=>a.showDialog=i),title:n.title,teleport:".phone-body","overlay-style":{position:"absolute"},style:{position:"absolute"}},{default:e.withCtx(()=>[e.createElementVNode("div",{style:{padding:"10px"},innerHTML:n.content},null,8,Yf)]),_:1},8,["show","title"])):e.createCommentVNode("v-if",!0)])}var Jf=T(Wf,[["render",Xf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewDialog.vue"]]);const Kf={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:{}},Qf={key:0,class:"cell"},Zf=["src","alt","width","height"],eh={key:1,class:"grid"},th=["src","width","height","alt"];function oh(o,t,n,l,a,r){const s=e.resolveComponent("dk-icon"),i=e.resolveComponent("van-cell"),c=e.resolveComponent("van-cell-group"),u=e.resolveComponent("van-grid-item"),h=e.resolveComponent("van-grid");return n.type==="cell"?(e.openBlock(),e.createElementBlock("div",Qf,[e.createVNode(c,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.gridCellList,(g,_)=>(e.openBlock(),e.createBlock(i,{key:_,"is-link":"",style:e.normalizeStyle({lineHeight:n.cellImgSize+"px!important"})},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:g.img,alt:g.title,width:n.cellImgSize,height:n.cellImgSize,style:e.normalizeStyle({borderRadius:n.imgRadius+"px",marginRight:n.imgTextGutter+"px"})},null,12,Zf)]),title:e.withCtx(()=>[e.createElementVNode("span",{class:"custom-title",style:e.normalizeStyle({fontSize:n.fontSize+"px"})},e.toDisplayString(g.title),5)]),"right-icon":e.withCtx(()=>[e.createVNode(s,{icon:"ArrowRight"}),e.createCommentVNode(' <div style="color: #999; font-size: 16px">'),e.createCommentVNode(' <i class="el-icon-arrow-right" />'),e.createCommentVNode(" </div>")]),_:2},1032,["style"]))),128))]),_:1})])):(e.openBlock(),e.createElementBlock("div",eh,[e.createVNode(h,{square:n.square,direction:n.direction,gutter:n.gutter,clickable:n.clickable,border:n.border,"column-num":n.columnNum},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.gridCellList,(g,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[g.show?(e.openBlock(),e.createBlock(u,{key:_,icon:"photo-o"},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:g.img,width:n.gridImgSize,height:n.gridImgSize,alt:g.title,style:e.normalizeStyle({borderRadius:n.imgRadius+"px"})},null,12,th)]),text:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle({fontSize:n.fontSize+"px"})},e.toDisplayString(g.title),5)]),_:2},1024)):e.createCommentVNode("v-if",!0)],64))),256))]),_:1},8,["square","direction","gutter","clickable","border","column-num"])]))}var nh=T(Kf,[["render",oh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewGridCellList.vue"]]);const lh={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 o={};return this.type==="default"?o.marginBottom=this.marginBottom+"px":(o.width=this.width+"%",o.marginRight=this.marginRight+"px"),o.borderRadius=this.borderRadius+"px",o}},mounted(){},methods:{}},ah={key:0};function rh(o,t,n,l,a,r){const s=e.resolveComponent("van-image"),i=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dk-view-image","dk-mobile-image-"+n.type])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.imageList,(c,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"dk-mobile-image-content",style:e.normalizeStyle(r._style)},[e.createVNode(s,{src:c.img,fit:n.fit,width:"100%",height:n.heightAuto?n.height:"",style:{overflow:"hidden"}},null,8,["src","fit","height"]),n.showText&&c.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass("text-type-"+n.textType)},e.toDisplayString(c.title),3)):e.createCommentVNode("v-if",!0)],4))),128)),n.imageList.length<=0?(e.openBlock(),e.createElementBlock("div",ah,[e.createVNode(i,{description:"\u8BF7\u6DFB\u52A0\u56FE\u7247\u6570\u636E"})])):e.createCommentVNode("v-if",!0)],2)}var ih=T(lh,[["render",rh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewImage.vue"]]);const sh={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 o=11-this.speed+"s";return{width:this.iconSize+"px",height:this.iconSize+"px",fontSize:this.iconSize+"px",animationDuration:o,animationIterationCount:"infinite",animationTimingFunction:"linear"}}},mounted(){},methods:{}},ch={class:"dk-view-music"},uh={key:0},dh=["src"];function ph(o,t,n,l,a,r){const s=e.resolveComponent("van-icon");return e.openBlock(),e.createElementBlock("div",ch,[n.iconType==="image"?(e.openBlock(),e.createElementBlock("div",uh,[e.createElementVNode("img",{src:n.imgUrl,width:"100%",style:e.normalizeStyle(r._style),class:e.normalizeClass([n.rotation,"dk-music-img"]),alt:""},null,14,dh)])):(e.openBlock(),e.createBlock(s,{key:1,name:"music-o",class:e.normalizeClass(["dk-music-icon",n.rotation]),style:e.normalizeStyle(r._style)},null,8,["class","style"]))])}var mh=T(sh,[["render",ph],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewMusic.vue"]]);const fh={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 hh(o,t,n,l,a,r){const s=e.resolveComponent("van-nav-bar");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{title:n.title,"left-text":n.leftText,"right-text":n.rightText,"left-arrow":n.leftArrow,border:n.border},null,8,["title","left-text","right-text","left-arrow","border"])])}var gh=T(fh,[["render",hh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNavBar.vue"]]);const yh={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 _h(o,t,n,l,a,r){const s=e.resolveComponent("van-notice-bar");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{speed:n.speed,"left-icon":n.leftIcon,text:n.text,color:n.color,background:n.background},null,8,["speed","left-icon","text","color","background"])])}var bh=T(yh,[["render",_h],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNoticeBar.vue"]]);const kh={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(o){}},mounted(){},methods:{}};function Ch(o,t,n,l,a,r){const s=e.resolveComponent("van-image"),i=e.resolveComponent("van-swipe-item"),c=e.resolveComponent("van-swipe");return e.openBlock(),e.createBlock(c,{class:"dk-view-swipe",autoplay:n.autoplay,"indicator-color":"white",style:e.normalizeStyle({background:n.bgColor||""})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.swipeList,(u,h)=>(e.openBlock(),e.createBlock(i,{key:h},{default:e.withCtx(()=>[e.createVNode(s,{src:u.img,fit:n.fit,width:"100%",height:n.height},null,8,["src","fit","height"])]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var Eh=T(kh,[["render",Ch],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewSwipe.vue"]]);const wh={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:{}},Bh={class:"dk-view-tabbar"},Vh=["src"];function Fh(o,t,n,l,a,r){const s=e.resolveComponent("van-tabbar-item"),i=e.resolveComponent("van-tabbar");return e.openBlock(),e.createElementBlock("div",Bh,[e.createVNode(i,{modelValue:a.tmpActive,"onUpdate:modelValue":t[0]||(t[0]=c=>a.tmpActive=c),"active-color":n.activeColor,"inactive-color":n.inactiveColor,style:e.normalizeStyle({backgroundColor:n.bgColor}),fixed:!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabBars,(c,u)=>(e.openBlock(),e.createBlock(s,{key:u,icon:c.icon,dot:c.badge==="dot",badge:c.badge==="badge"?c.badge_text:""},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(c.title),1)]),_:2},[c.useImg===!0?{name:"icon",fn:e.withCtx(()=>[e.createElementVNode("img",{src:c.imgIcon,alt:""},null,8,Vh)]),key:"0"}:void 0]),1032,["icon","dot","badge"]))),128))]),_:1},8,["modelValue","active-color","inactive-color","style"])])}var Dh=T(wh,[["render",Fh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTabbar.vue"]]);const xh={name:"DkViewTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},Nh=["innerHTML"];function Ah(o,t,n,l,a,r){return e.openBlock(),e.createElementBlock("div",{innerHTML:n.textarea},null,8,Nh)}var Sh=T(xh,[["render",Ah],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTextarea.vue"]]);const $h={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:{}},Th={class:"dk-view-title"},Ih={class:"title-left"};function zh(o,t,n,l,a,r){const s=e.resolveComponent("van-icon"),i=e.resolveComponent("van-image");return e.openBlock(),e.createElementBlock("div",Th,[e.createElementVNode("div",Ih,[n.prefix==="icon"?(e.openBlock(),e.createBlock(s,{key:0,name:n.icon,style:e.normalizeStyle({color:n.prefixColor,fontSize:n.iconSize+"px"})},null,8,["name","style"])):e.createCommentVNode("v-if",!0),n.prefix==="image"?(e.openBlock(),e.createBlock(i,{key:1,src:n.prefixImage,alt:"",class:"dk-title-img",width:n.imageWidth,height:n.imageHeight},null,8,["src","width","height"])):e.createCommentVNode("v-if",!0),n.prefix==="square"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle({width:n.squareWidth+"px",height:n.squareHeight+"px",background:n.prefixColor})},null,4)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{style:e.normalizeStyle({marginLeft:n.titleMarginLeft+"px",color:n.color,fontWeight:n.bold?800:400})},e.toDisplayString(n.title),5)]),n.showRight?(e.openBlock(),e.createElementBlock("div",{key:0,class:"title-right",style:e.normalizeStyle({color:n.rColor,fontSize:n.rSize+"px"})},e.toDisplayString(n.rTitle),5)):e.createCommentVNode("v-if",!0)])}var Rh=T($h,[["render",zh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTitle.vue"]]);const Oh={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 o={};return this.height&&this.isHeight?o.height=this.height+"px":o.height="240px",o}},mounted(){},methods:{}},Ph={style:{position:"relative"},class:"dk-video-content"},jh={class:"video-preview"},vh={key:0},Mh={key:1};function Lh(o,t,n,l,a,r){const s=e.resolveComponent("el-image"),i=e.resolveComponent("dk-icon");return e.openBlock(),e.createElementBlock("div",{class:"dk-view-video",style:e.normalizeStyle(r._style)},[e.createElementVNode("div",Ph,[n.poster?(e.openBlock(),e.createBlock(s,{key:0,src:n.poster,alt:"",class:"poster"},null,8,["src"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",jh,[e.createVNode(i,{icon:"VideoPlay",size:24}),n.videoPath?(e.openBlock(),e.createElementBlock("p",Mh,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B")):(e.openBlock(),e.createElementBlock("p",vh,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891"))])])],4)}var Uh=T(Oh,[["render",Lh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewVideo.vue"]]);const _r={DkViewBulletChat:Tf,DkViewCell:Rf,DkViewCommonBtn:Hf,DkViewDialog:Jf,DkViewGridCellList:nh,DkViewImage:ih,DkViewMusic:mh,DkViewNavBar:gh,DkViewNoticeBar:bh,DkViewSwipe:Eh,DkViewTabbar:Dh,DkViewTextarea:Sh,DkViewTitle:Rh,DkViewVideo:Uh},ut="/adminapi/cloud_diy/";function Hh(o,t,n,l){return X({url:ut+"getList",method:"post",data:{page_name:o,page:t,search:n,size:l}})}function Wh(o){return X({url:ut+"down",method:"post",data:{id:o}})}function qh(o,t,n){return X({url:ut+"getDiyForm",method:"post",data:{id:o,page_name:t,diy_data:n}})}function Gh(){return X({url:ut+"getSiteMsg",method:"post",data:{}})}function Yh(o,t){return X({url:ut+"getCheckForm",method:"post",data:{id:o,state:t}})}function Xh(o){return X({url:ut+"delDiy",method:"post",data:{id:o}})}const Jh={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(()=>{Wh(this.chooseDiy.id).then(o=>{this.$emit("submit",o.data)})}).catch(()=>{})},onChooseDiy(o){this.chooseDiy=o},getDiyList(o){this.page=o||this.page,this.loading=!0,Hh(this.pageName,this.page,this.search,this.pageSize).then(t=>{this.list=t.data,this.total=t.msg,this.loading=!1}).catch(t=>{this.errMsg=t.msg,this.errCode=-1,this.loading=!1})},getSiteMsg(){Gh().then(o=>{this.site=o.data})},getDiyForm(o=0){qh(o,this.pageName,this.diyData).then(t=>{console.log("getDiyForm",t),this.formData=t.data,this.width="600px",this.$refs.formRef.show()}).catch(t=>{this.$message.error(t.msg)})},getCheckForm(){Yh(this.chooseDiy.id,this.chooseDiy.state).then(o=>{this.formData=o.data,this.width="400px",this.$refs.formRef.show()}).catch(o=>{this.$message.error(o.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(()=>{Xh(this.chooseDiy.id).then(o=>{this.$message.success(o.msg),this.getDiyList(1)}).catch(o=>{this.$message.error(o.msg)})}).catch(()=>{})},onSubmit(){this.getDiyList(0)}}},Kh={class:"diy-cloud"},Qh={class:"diy-header"},Zh={class:"diy-search"},eg={class:"diy-content"},tg={key:0,class:"cl"},og=["onClick"],ng={key:0,class:"mask"},lg={class:"type"},ag={key:1,class:"tag-list"},rg={key:0,class:"tag"},ig={key:1,class:"tag"},sg={class:"title over"},cg={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"500px"}},ug={class:"diy-footer"};function dg(o,t,n,l,a,r){const s=e.resolveComponent("el-option"),i=e.resolveComponent("el-select"),c=e.resolveComponent("el-button"),u=e.resolveComponent("el-input"),h=e.resolveComponent("el-image"),g=e.resolveComponent("el-tag"),_=e.resolveComponent("van-icon"),k=e.resolveComponent("el-empty"),E=e.resolveComponent("el-pagination"),m=e.resolveComponent("dk-form"),B=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",Kh,[e.createElementVNode("div",Qh,[e.createElementVNode("div",Zh,[e.createVNode(i,{modelValue:a.search.state,"onUpdate:modelValue":t[0]||(t[0]=w=>a.search.state=w),placeholder:"\u72B6\u6001"},{default:e.withCtx(()=>[e.createVNode(s,{label:"\u5168\u90E8\u72B6\u6001",value:""}),a.site.level>0?(e.openBlock(),e.createBlock(s,{key:0,label:"\u672A\u901A\u8FC7",value:"-1"})):e.createCommentVNode("v-if",!0),a.site.level>0?(e.openBlock(),e.createBlock(s,{key:1,label:"\u672A\u5BA1\u6838",value:"0"})):e.createCommentVNode("v-if",!0),e.createVNode(s,{label:"\u5DF2\u5BA1\u6838",value:"1"}),e.createVNode(s,{label:"\u5DF2\u63A8\u8350",value:"2"})]),_:1},8,["modelValue"]),e.createVNode(i,{modelValue:a.search.look,"onUpdate:modelValue":t[1]||(t[1]=w=>a.search.look=w),placeholder:"\u67E5\u770B",class:"u-m-l-10"},{default:e.withCtx(()=>[e.createVNode(s,{label:"\u5168\u90E8\u6A21\u677F",value:""}),e.createVNode(s,{label:"\u6211\u7684\u6A21\u677F",value:"me"}),e.createVNode(s,{label:"\u4ED6\u4EBA\u6A21\u677F",value:"other"})]),_:1},8,["modelValue"]),e.createVNode(u,{modelValue:a.search["name like"],"onUpdate:modelValue":t[3]||(t[3]=w=>a.search["name like"]=w),placeholder:"\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0",clearable:"",onClear:t[4]||(t[4]=w=>r.getDiyList(0))},{append:e.withCtx(()=>[e.createVNode(c,{icon:"Search",onClick:t[2]||(t[2]=w=>r.getDiyList(1))})]),_:1},8,["modelValue"])]),e.createElementVNode("div",null,[a.site.level>0?(e.openBlock(),e.createBlock(c,{key:0,type:"warning",disabled:!a.chooseDiy.id,onClick:r.getCheckForm},{default:e.withCtx(()=>[e.createTextVNode("\u5BA1\u6838 ")]),_:1},8,["disabled","onClick"])):e.createCommentVNode("v-if",!0),a.site.level>1?(e.openBlock(),e.createBlock(c,{key:1,type:"danger",disabled:!a.chooseDiy.id,onClick:r.delDiy},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664")]),_:1},8,["disabled","onClick"])):e.createCommentVNode("v-if",!0),a.site.level>0||a.site.site_id===a.chooseDiy.site_id?(e.openBlock(),e.createBlock(c,{key:2,type:"info",disabled:!a.chooseDiy.id,onClick:t[5]||(t[5]=w=>r.getDiyForm(a.chooseDiy.id))},{default:e.withCtx(()=>[e.createTextVNode("\u7F16\u8F91 ")]),_:1},8,["disabled"])):e.createCommentVNode("v-if",!0),e.createVNode(c,{type:"primary",icon:"Upload",onClick:t[6]||(t[6]=w=>r.getDiyForm())},{default:e.withCtx(()=>[e.createTextVNode("\u4E0A\u4F20\u65B0\u6A21\u677F")]),_:1})])]),e.createCommentVNode("-------------\u6A21\u677F\u5217\u8868------------------------"),e.withDirectives((e.openBlock(),e.createElementBlock("div",eg,[!a.loading&&a.list.length>0?(e.openBlock(),e.createElementBlock("ul",tg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.list,(w,b)=>(e.openBlock(),e.createElementBlock("li",{key:b,class:e.normalizeClass({choose:a.chooseDiy.id===w.id}),onClick:d=>r.onChooseDiy(w)},[e.createVNode(h,{src:w.cover_image,class:"cover",fit:"contain"},null,8,["src"]),w.state<=0?(e.openBlock(),e.createElementBlock("div",ng)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",lg,[w.state==="0"?(e.openBlock(),e.createBlock(g,{key:0,effect:"dark"},{default:e.withCtx(()=>[e.createTextVNode("\u5BA1\u6838\u4E2D")]),_:1})):e.createCommentVNode("v-if",!0),w.state==="-1"?(e.openBlock(),e.createBlock(g,{key:1,type:"danger",effect:"dark"},{default:e.withCtx(()=>[e.createTextVNode("\u5BA1\u6838\u672A\u901A\u8FC7")]),_:1})):e.createCommentVNode("v-if",!0)]),w.state>0?(e.openBlock(),e.createElementBlock("div",ag,[w.state>=2?(e.openBlock(),e.createElementBlock("span",rg,[e.createVNode(_,{name:"good-job"}),e.createTextVNode("\u63A8\u8350")])):e.createCommentVNode("v-if",!0),w.down_count>100?(e.openBlock(),e.createElementBlock("span",ig,[e.createVNode(_,{name:"fire"}),e.createTextVNode("\u70ED\u95E8")])):e.createCommentVNode("v-if",!0)])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",sg,e.toDisplayString(w.name),1)],10,og))),128))])):(e.openBlock(),e.createElementBlock("div",cg,[a.errCode===0?(e.openBlock(),e.createBlock(k,{key:0,description:"\u5F53\u524D\u8FD8\u6CA1\u6A21\u677F\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u4E0A\u4F20\u81EA\u5DF1\u7684\u6A21\u677F\u5427"})):(e.openBlock(),e.createBlock(k,{key:1,description:a.errMsg},null,8,["description"]))])),e.createVNode(E,{background:"",layout:"total,prev, pager, next",total:a.total,"current-page":a.page,"page-size":a.pageSize,"hide-on-single-page":"",onCurrentChange:r.getDiyList},null,8,["total","current-page","page-size","onCurrentChange"])])),[[B,a.loading]]),e.createElementVNode("div",ug,[e.createVNode(c,{type:"primary",style:{width:"300px"},disabled:!a.chooseDiy.id,onClick:r.submit},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u5B9A")]),_:1},8,["disabled","onClick"])]),e.createVNode(m,{ref:"formRef","is-dialog":!0,"form-data":a.formData,onSubmit:r.onSubmit},null,8,["form-data","onSubmit"])])}var pg=T(Jh,[["render",dg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DiyCloud.vue"]]);class mg{events=[];constructor(){}addEvent(t){this.events.push({id:t.id,label:t.label,value:t.value})}addEvents(t){this.events.push(...t.map(n=>({id:n.id,label:n.label,value:n.value})))}getAllEvents(){return this.events}getEventById(t){return this.events.find(n=>n.id===t)}removeEventById(t){const n=this.events.findIndex(l=>l.id===t);n!==-1&&this.events.splice(n,1)}removeEventByLabel(t){const n=this.events.findIndex(l=>l.label===t);n!==-1&&this.events.splice(n,1)}removeAllEvent(){this.events=[]}}re.register({name:"help",init({value:o},t){Po(o)||(o=[o]),t.suffix={type:"p",children:o,class:"form-help"}}});const fg=e.defineComponent({name:"DkPageDiy",components:{DiyCloud:pg,PreviewPhone:dm,DragForm:re.$form()},props:gr,setup(o){const{menu:t,height:n,mask:l,locale:a}=e.toRefs(o),r=e.getCurrentInstance(),s=e.ref({active:null});e.provide("fcx",s),e.provide("diy",r);const i=new mg,c=e.toRef(o,"config",{}),u=o.type==="web"?Tm:Um,h=o.type==="web"?Im:Hm;if(o.type==="web")for(const d in _r)re.component(d,_r[d]);else for(const d in yr)re.component(d,yr[d]);const g=d=>{const f=["DragTool","DragBox"],p=[];return f.indexOf(d.type)>-1?d.children.length>0?(d.children.forEach(y=>{p.push(...g(y))}),p):[]:[d]},_=d=>{const f=[];return d.forEach(p=>{g(p).forEach(C=>{if(C._id){const V={id:C._id,type:C.type,name:C.config?.config?.label||"",children:[]};C.children&&C.children.length>0&&(V.children=_(C.children)),f.push(V)}})}),f},k=e.computed(()=>_(m.children)),E=e.computed(()=>{const d={};let f;for(let p=0;p<m.children.length;p++)m.children[p].children.length>0&&(f=m.children[p].children[0].type,d[f]?d[f]=d[f]+1:d[f]=1);return d}),m=e.reactive({cacheProps:{},moveRule:null,addRule:null,added:null,activeTab:"page",activeRule:null,children:e.ref([]),menuList:t.value||h(),showBaseRule:!1,showDkSettingRule:!1,visible:{preview:!1},preview:{state:!1,rule:[],option:{}},diyCloud:{pageName:"",show:!1},dragForm:e.ref({rule:[],api:{},option:{form:{},submitBtn:!1}}),dkSettingForm:{rule:En(),api:{},options:{form:{labelPosition:"left",size:"small",labelWidth:"82px"},submitBtn:!1,mounted:d=>{d.activeRule=m.activeRule,d.setValue(d.options.formData||{})}}},dkPageForm:{rule:qm(),api:{},options:{formData:{},form:{labelPosition:"left",size:"small",labelWidth:"82px"},submitBtn:!1,mounted:d=>{d.setValue(d.options.formData||{})}}},propsForm:{rule:[],api:{},value:{},options:{form:{labelPosition:"left",size:"small",labelWidth:"70px"},submitBtn:!1,mounted:d=>{d.activeRule=m.activeRule,d.setValue(d.options.formData||{})}}},isDragging:!1,startValue:0,dragName:"",asideValue:0,trackMouseBound:null,stopChangeBound:null,rightAside:{style:{width:o.rightAsideWidth},hide:!1},leftAside:{style:{width:o.leftAsideWidth},hide:!1},treeAside:{style:{height:"500px",minHeight:"30px",maxHeight:"30px"},hide:!0,treeData:[]}});function B(d){return Array.isArray(d)?d.map(f=>B(f)):(typeof d=="object"&&d!==null&&Array.isArray(d.children)&&(d.children=d.children.filter(f=>typeof f=="object"&&f!==null),d.children=B(d.children)),d)}e.watch(()=>m.dragForm,()=>{m.treeAside.treeData=b.parseRule(ct(m.dragForm.api.rule[0].children),!0),m.treeAside.treeData=B(m.treeAside.treeData)},{deep:!0}),e.watch(()=>m.preview.state,function(d){d||e.nextTick(()=>{m.preview.rule=m.preview.option=null})});let w=null;const b={clear(d="all"){(d==="all"||d==="rule")&&b.setRule([]),(d==="all"||d==="page")&&b.setPageConfig({})},get(){return{rule:b.getRule(),config:b.getPageConfig()}},set(d){if(!d)return;const f=d.config?d.config:{};b.setPageConfig(f),b.setRule(d.rule)},unWatchActiveRule(){w&&w(),w=null},watchActiveRule(){b.unWatchActiveRule(),w=e.watch(()=>m.activeRule,function(d){d&&b.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren(d){return e.reactive({children:d}).children},addMenu(d){if(!d.name||!d.list)return;let f=!0;m.menuList.forEach((p,y)=>{p.name===d.name&&(m.menuList[y]=d,f=!1)}),f&&m.menuList.push(d)},removeMenu(d){[...m.menuList].forEach((f,p)=>{f.name===d&&m.menuList.splice(p,1)})},setMenuItem(d,f){m.menuList.forEach(p=>{p.name===d&&(p.list=f)})},appendMenuItem(d,f){m.menuList.forEach(p=>{p.name===d&&p.list.push(...Array.isArray(f)?f:[f])})},removeMenuItem(d){m.menuList.forEach(f=>{let p;_e.String(d)?[...f.list].forEach((y,C)=>{y.name===d&&f.list.splice(C,1)}):(p=f.list.indexOf(d))>-1&&f.list.splice(p,1)})},addComponent(d){Array.isArray(d)?d.forEach(f=>{u[f.name]=f}):u[d.name]=d},getParent(d){let f=d.__fc__.parent.rule;const p=f.config;return p&&p.config.inside&&(d=f,f=f.__fc__.parent.rule),{root:f,parent:d}},makeDrag(d,f,p,y){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:d===!0?"default":d,ghostClass:"ghost",animation:150,emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:f},children:p,on:y}},makeDragRule(d){return b.makeChildren([b.makeDrag(!0,"draggable",d,{add:(f,p)=>b.dragAdd(d,p),end:(f,p)=>b.dragEnd(d,p),start:(f,p)=>b.dragStart(d,p),unchoose:(f,p)=>b.dragUnchoose(d,p)})])},previewFc(){m.preview.state=!0,m.preview.rule=b.getRule(),m.preview.option=b.getOption()},getPageConfig(){return m.dkPageForm.options.formData},setPageConfig(d){(!d||Po(d))&&(d={}),m.dkPageForm.api.coverValue(d)},showDiyCloud(d){console.log("123");const f=b.get();m.diyCloud.pageName=d,m.diyCloud.show=!0,m.diyCloud.diy_data=f},downCloudConfig(d){b.set(d),m.diyCloud.show=!1},getRule(){return b.parseRule(ct(m.dragForm.api.rule[0].children))},getJson(){return re.toJson(b.getRule())},setRule(d){d||(d=[]),m.children=b.makeChildren(b.loadRule(_e.String(d)?re.parseJson(d):ct(d))),b.clearActiveRule(),m.dragForm.rule=b.makeDragRule(m.children)},clearActiveRule(){m.activeRule=null,m.activeTab="page"},loadRule(d){const f=[];return d.forEach(p=>{if(_e.String(p))return f.push(p);const y=u[p._fc_drag_tag]||u[p.type],C=p.children;if(p.children=[],p.control&&(p._control=p.control,delete p.control),y){if(p=b.makeRule(y,p),C){let V=p.children[0].children;y.drag&&(V=V[0].children),V.push(...b.loadRule(C))}}else C&&(p.children=b.loadRule(C));f.push(p)}),f},parseRule(d,f=!1){return[...d].reduce((p,y)=>_e.String(y)?(p.push(y),p):y.type==="DragBox"?(p.push(...b.parseRule(y.children,f)),p):y.type==="DragTool"&&(y=y.children[0],y.type==="DragBox")?(p.push(...b.parseRule(y.children,f)),p):(y&&(y={...y},y.children&&y.children.length&&(y.children=b.parseRule(y.children,f)),delete y.key,delete y.component,f||(delete y._id,y.config&&delete y.config.config),y.effect&&(delete y.effect._fc,delete y.effect._fc_tool),y._control&&(y.control=y._control,delete y._control),Object.keys(y).filter(C=>Array.isArray(y[C])&&y[C].length===0||_e.Object(y[C])&&Object.keys(y[C]).length===0).forEach(C=>{delete y[C]}),p.push(y)),p),[])},baseChange(d,f,p,y){m.activeRule&&y[m.activeRule._id]===m.activeRule&&(b.unWatchActiveRule(),m.activeRule[d]=f,b.watchActiveRule(),m.activeRule.config.config?.watch?.["$"+d]?.({field:d,value:f,api:y,rule:m.activeRule}))},dkSettingChange(d,f,p,y,C){m.activeRule&&y[m.activeRule._id]===m.activeRule&&(m.activeRule.setting[d]=f)},propRemoveField(d,f,p){if(m.activeRule&&p[m.activeRule._id]===m.activeRule){b.unWatchActiveRule();const y=d;if(m.dragForm.api.sync(m.activeRule),d.indexOf("formCreate")===0){if(d=d.replace("formCreate",""),!d)return;d=Ra(d),d.indexOf("effect")===0&&d.indexOf(">")>-1?delete m.activeRule.effect[d.split(">")[1]]:d.indexOf("props")===0&&d.indexOf(">")>-1?delete m.activeRule.props[d.split(">")[1]]:d.indexOf("attrs")===0&&d.indexOf(">")>-1?m.activeRule.attrs[d.split(">")[1]]=value:d==="child"?delete m.activeRule.children[0]:d&&(m.activeRule[d]=void 0)}else delete m.activeRule.props[d];b.watchActiveRule(),m.activeRule.config.config?.watch?.[y]?.({field:y,value:void 0,api:p,rule:m.activeRule})}},propChange(d,f,p,y){if(m.activeRule&&y[m.activeRule._id]===m.activeRule){b.unWatchActiveRule();const C=d;if(d.indexOf("formCreate")===0){if(d=d.replace("formCreate",""),!d)return;d=Ra(d),d.indexOf("effect")===0&&d.indexOf(">")>-1?m.activeRule.effect[d.split(">")[1]]=f:d.indexOf("props")===0&&d.indexOf(">")>-1?m.activeRule.props[d.split(">")[1]]=f:d.indexOf("attrs")===0&&d.indexOf(">")>-1?m.activeRule.attrs[d.split(">")[1]]=f:d==="child"?m.activeRule.children[0]=f:m.activeRule[d]=f}else m.activeRule.props[d]=f;b.watchActiveRule(),m.activeRule.config.config?.watch?.[C]?.({field:C,value:f,api:y,rule:m.activeRule})}},dkPageChange(d,f,p,y,C){m.dkPageForm.options.formData[d]=f},nodeClick(d){b.chooseRule(d._id)},delRule(d,f=null){f=f||m.children,f.forEach(p=>{if(p._id===d){if(p.config.config.inside)p.__fc__.rm(),r.emit("delete",p);else{const y=b.getParent(p);r.emit("delete",y.root.children[0]),y.root.__fc__.rm()}b.clearActiveRule()}else p.children&&p.children.length>0&&b.delRule(d,p.children)})},chooseRule(d,f=null){f=f||m.children,f.forEach(p=>{if(p._id===d)if(r.emit("active",p),b.toolActive(p),p.config.config.inside)s.value.active=p.children[0]?.props.unique||null;else{const y=b.getParent(p);s.value.active=y.root?.props?.unique||null}else p.children&&p.children.length>0&&b.chooseRule(d,p.children)})},toolActive(d){b.unWatchActiveRule(),m.activeRule&&(delete m.propsForm.api[m.activeRule._id],delete m.dragForm.api.activeRule),m.activeRule=d,m.dragForm.api.activeRule=d,e.nextTick(()=>{m.activeTab="props",e.nextTick(()=>{m.propsForm.api[m.activeRule._id]=m.activeRule,m.dkSettingForm.api[m.activeRule._id]=m.activeRule})}),m.cacheProps[d._id]||(m.cacheProps[d._id]=d.config.config.props(d)),m.propsForm.rule=m.cacheProps[d._id],b.updateRuleFormData(),b.watchActiveRule(),b.updateShowStyle(d)},updateShowStyle(d){if(m.showDkSettingRule=d.showStyle,m.showDkSettingRule)if(m.dkSettingForm.rule=En(d),Object.values(d.setting).length>0)m.dkSettingForm.options.formData=d.setting;else{const f={};En(d).forEach(p=>{f[p.field]=p.value}),m.dkSettingForm.options.formData=f}},updateRuleFormData(){const d=m.activeRule,f={...d.props,formCreateChild:ct(d.children[0])};Object.keys(d).forEach(p=>{["effect","config","payload","id","type"].indexOf(p)<0&&(f["formCreate"+dr(p)]=ct(d[p]))}),["props","effect","attrs"].forEach(p=>{d[p]&&Object.keys(d[p]).forEach(y=>{f["formCreate"+dr(p)+">"+y]=ct(d[p][y])})}),m.propsForm.value=f,m.showBaseRule=Jp(d,"field")&&d.input!==!1&&(!c.value||c.value.showBaseForm!==!1),m.showBaseRule&&m.dragForm.api.refreshValidate()},dragStart(d){m.moveRule=d,m.added=!1},dragUnchoose(d,f){m.addRule={children:d,oldIndex:f.oldIndex}},dragAdd(d,f){const p=f.newIndex,y=f.item._underlying_vm_;if(!y||y.__fc__){if(m.addRule){const C=m.addRule.children.splice(m.addRule.oldIndex,1);d.splice(p,0,C[0])}}else{const C=b.makeRule(u[y.name]),V=C.children[0].config.config,x=V.count?V.count:99;if((E.value[V.name]?E.value[V.name]:0)>=x)return Q.ElNotification({title:"\u8B66\u544A",message:"\u5F53\u524D\u6A21\u5757\u53EA\u80FD\u6DFB\u52A0"+V.count+"\u4E2A",type:"warning"}),!1;d.splice(p,0,C)}m.added=!0},dragEnd(d,{newIndex:f,oldIndex:p}){if(!m.added&&!(m.moveRule===d&&f===p)){const y=m.moveRule.splice(p,1);d.splice(f,0,y[0])}m.moveRule=null,m.addRule=null,m.added=!1},makeRule(d,f){const p=f||d.rule();p.config={config:d},d.component&&(p.component=e.markRaw(d.component)),p.effect||(p.effect={}),p.effect._fc=!0,p._fc_drag_tag=d.name,p.setting=p.setting||{};let y;if(d.drag&&p.children.push(y=b.makeDrag(d.drag,p.type,b.makeChildren([]),{end:(V,x)=>b.dragEnd(V.self.children,x),add:(V,x)=>b.dragAdd(V.self.children,x),start:(V,x)=>b.dragStart(V.self.children,x),unchoose:(V,x)=>b.dragUnchoose(V.self.children,x)})),d.children&&!f)for(let V=0;V<(d.childrenLen||1);V++){const x=b.makeRule(u[d.children]);(y||p).children.push(x)}const C=l.value!==void 0?l.value!==!1:d.mask!==!1;return d.inside?(p.children=b.makeChildren([{type:"DragTool",props:{dragBtn:d.dragBtn!==!1,children:d.children,mask:C,setting:p.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:V})=>{const x=b.getParent(V).parent;x.__fc__.rm(),r.emit("delete",x),b.clearActiveRule()},create:({self:V})=>{const x=b.getParent(V);r.emit("create",x.parent),x.root.children.splice(x.root.children.indexOf(x.parent)+1,0,b.makeRule(x.parent.config.config))},addChild:({self:V})=>{const x=b.getParent(V),D=x.parent.config.config,$=u[D.children];$&&(D.drag?x.parent.children[0]:x.parent).children[0].children.push(b.makeRule($))},copy:({self:V})=>{const x=b.getParent(V);r.emit("copy",x.parent),x.root.children.splice(x.root.children.indexOf(x.parent)+1,0,re.copyRule(x.parent))},active:({self:V})=>{const x=b.getParent(V);r.emit("active",x.parent),b.toolActive(x.parent)}},children:p.children}]),p):{type:"DragTool",props:{dragBtn:d.dragBtn!==!1,children:d.children,mask:C,setting:p.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:V})=>{r.emit("delete",V.children[0]),V.__fc__.rm(),b.clearActiveRule()},create:({self:V})=>{r.emit("create",V.children[0]);const x=b.getParent(V);x.root.children.splice(x.root.children.indexOf(x.parent)+1,0,b.makeRule(V.children[0].config.config))},addChild:({self:V})=>{const x=V.children[0].config.config,D=u[x.children];D&&(x.drag?V.children[0]:V).children[0].children.push(b.makeRule(D))},copy:({self:V})=>{r.emit("copy",V.children[0]);const x=b.getParent(V),D=re.copyRule(x.parent);D.props.setting=D.children[0].setting,x.root.children.splice(x.root.children.indexOf(x.parent)+1,0,D)},active:({self:V})=>{r.emit("active",V.children[0]),b.toolActive(V.children[0])}},children:b.makeChildren([p])}},onResizerMouseDown(d,f){m.isDragging=!0,m.startValue=f.clientX,m.dragName=d,d==="left"&&(m.asideValue=document.getElementsByClassName("_fc-l")[0].offsetWidth),d==="right"&&(m.asideValue=document.getElementsByClassName("_fc-r")[0].offsetWidth),document.body.style.cursor="ew-resize",d==="tree"&&(m.startValue=f.clientY,m.asideValue=document.getElementsByClassName("children-list")[0].offsetHeight,console.log("data.startValue",m.startValue),console.log("data.asideValue",m.asideValue),document.body.style.cursor="n-resize"),m.trackMouseBound=b.onResizerMouseMove.bind(f),m.stopChangeBound=b.onResizerMouseUp.bind(f),document.addEventListener("mousemove",m.trackMouseBound),document.addEventListener("mouseup",m.stopChangeBound)},onResizerMouseUp(){document.removeEventListener("mousemove",m.trackMouseBound),document.removeEventListener("mouseup",m.stopChangeBound),document.body.style.cursor="default",m.isDragging=!1,m.dragName=""},onResizerMouseMove(d){if(m.isDragging){if(m.dragName==="left"){let f=d.clientX-m.startValue+m.asideValue;f>455&&(f=455),f<200&&(f=200),m.leftAside.style.width=f+"px"}if(m.dragName==="right"){let f=m.startValue-d.clientX+m.asideValue;f>800&&(f=800),f<300&&(f=300),m.rightAside.style.width=f+"px"}if(m.dragName==="tree"){let f=m.startValue-d.clientY+m.asideValue;f>800&&(f=800),f<30&&(f=30),m.treeAside.style.height=f+"px"}}},hideAside(d){if(d==="left")m.leftAside.hide?(m.leftAside.hide=!1,delete m.leftAside.style.minWidth,delete m.leftAside.style.maxWidth):(m.leftAside.hide=!0,m.leftAside.style.minWidth="0px",m.leftAside.style.maxWidth="0px");else if(d==="right")m.rightAside.hide?(m.rightAside.hide=!1,delete m.rightAside.style.minWidth,delete m.rightAside.style.maxWidth):(m.rightAside.hide=!0,m.rightAside.style.minWidth="0px",m.rightAside.style.maxWidth="0px");else if(d==="tree")if(m.treeAside.hide){m.treeAside.hide=!1;const f=m.treeAside.style.height;m.treeAside.style={height:f}}else m.treeAside.hide=!0,m.treeAside.style.minHeight="30px",m.treeAside.style.maxHeight="30px"},allowDrop(d,f,p){const y=d.data.config.config,C=f.data.config.config;return!!(p==="inner"&&y.inside&&y.name===C.children||p!=="inner"&&y.name===C.name&&y.inside&&C.inside||p!=="inner"&&!y.inside&&!C.inside||p==="inner"&&!y.inside&&C.inside)},allowDrag(d){if(console.log("allowDrag",d),d.data.type==="DragTool")return!0},nodeDrop(d,f,p,y){b.setRule(m.treeAside.treeData)}};return m.dragForm.rule=b.makeDragRule(b.makeChildren(m.children)),{...e.toRefs(m),...b,countObj:E,diyTree:k,eventData:i}},created(){document.body.ondrop=o=>{o.preventDefault(),o.stopPropagation()}}}),hg={class:"_fc-l-groups"},gg={class:"_fc-l-title"},yg={class:"_fc-l-icon"},_g={class:"_fc-l-name"},bg={key:0,class:"_fc-l-count",style:{}},kg=e.createElementVNode("span",null,"\u7ED3\u6784",-1),Cg={key:0};function Eg(o,t,n,l,a,r){const s=e.resolveComponent("dk-icon"),i=e.resolveComponent("draggable"),c=e.resolveComponent("el-tree"),u=e.resolveComponent("el-aside"),h=e.resolveComponent("el-header"),g=e.resolveComponent("DragForm"),_=e.resolveComponent("preview-phone"),k=e.resolveComponent("el-container"),E=e.resolveComponent("el-tab-pane"),m=e.resolveComponent("el-tabs"),B=e.resolveComponent("el-dialog"),w=e.resolveComponent("diy-cloud"),b=e.resolveComponent("dk-dialog"),d=e.resolveDirective("loading");return e.openBlock(),e.createBlock(k,{class:"_fc-designer dk-page-diy"},{default:e.withCtx(()=>[e.createCommentVNode(" \u5DE6\u8FB9"),e.createVNode(u,{class:"_fc-l item-box",style:e.normalizeStyle(o.leftAside.style)},{default:e.withCtx(()=>[e.createElementVNode("div",hg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menuList,(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"_fc-l-group"},[e.createElementVNode("h4",gg,e.toDisplayString(f.title),1),e.createVNode(i,{group:{name:"default",pull:"clone",put:!1},sort:!1,list:f.list,"item-key":"icon",filter:".not-drag",class:"_fc-l-items"},{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createElementBlock("div",{key:y.id,class:e.normalizeClass(["_fc-l-item",y.count-(o.countObj[y.name]||0)<=0?"not-drag":""])},[e.createElementVNode("div",yg,[e.createVNode(s,{icon:y.icon,size:24},null,8,["icon"])]),e.createElementVNode("span",_g,e.toDisplayString(y.label),1),y.count?(e.openBlock(),e.createElementBlock("span",bg,e.toDisplayString(y.count-(o.countObj[y.name]||0)),1)):e.createCommentVNode("v-if",!0)],2))]),_:2},1032,["list"])]))),128))]),e.createElementVNode("div",{class:"children-list",style:e.normalizeStyle(o.treeAside.style)},[e.createElementVNode("div",{class:"child-title",onClick:t[0]||(t[0]=f=>o.hideAside("tree"))},[kg,e.createVNode(s,{icon:o.treeAside.hide?"ArrowUp":"ArrowDown"},null,8,["icon"])]),e.createCommentVNode(' <textarea style="width: 100%">{{ treeAside.treeData }}</textarea>'),e.createVNode(c,{draggable:"","highlight-current":"",data:o.treeAside.treeData,props:{value:"type",label:"type"},"allow-drop":o.allowDrop,"default-expand-all":!0,onNodeDrop:o.nodeDrop,onNodeClick:o.nodeClick},{default:e.withCtx(({data:f})=>[e.createElementVNode("div",{class:"el-tree-node-content",style:e.normalizeStyle(o.activeRule&&o.activeRule._id===f._id?"color:red":"")},[e.createTextVNode(e.toDisplayString(f.type)+" ",1),f.config?.config.label?(e.openBlock(),e.createElementBlock("span",Cg,e.toDisplayString(f.config?.config.label),1)):e.createCommentVNode("v-if",!0),e.createVNode(s,{icon:"Close",class:"close-rule",onClick:e.withModifiers(p=>o.delRule(f._id),["stop"])},null,8,["onClick"])],4)]),_:1},8,["data","allow-drop","onNodeDrop","onNodeClick"]),o.treeAside.hide?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"aside-resizer",onMousedown:t[1]||(t[1]=f=>o.onResizerMouseDown("tree",f)),onMouseup:t[2]||(t[2]=f=>o.onResizerMouseUp("tree")),onMousemove:t[3]||(t[3]=f=>o.onResizerMouseMove("tree"))},null,32))],4),o.leftAside.hide?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"aside-resizer",onMousedown:t[4]||(t[4]=f=>o.onResizerMouseDown("left",f)),onMouseup:t[5]||(t[5]=f=>o.onResizerMouseUp("left")),onMousemove:t[6]||(t[6]=f=>o.onResizerMouseMove("left"))},null,32)),e.createElementVNode("div",{class:"aside-toggle left-99%",style:e.normalizeStyle(o.leftAside.hide?"display:block":""),onClick:t[7]||(t[7]=f=>o.hideAside("left"))},[e.createVNode(s,{icon:o.leftAside.hide?"ArrowRight":"ArrowLeft"},null,8,["icon"])],4)]),_:1},8,["style"]),e.createCommentVNode(" \u5DE6\u8FB9\u7ED3\u675F"),e.createCommentVNode(" \u9884\u89C8\u533A"),e.createVNode(k,{class:"_fc-m"},{default:e.withCtx(()=>[e.createVNode(h,{class:"_fc-m-tools",height:"45"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3}),e.createVNode(_,{"page-config":o.dkPageForm.options.formData},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(g,{api:o.dragForm.api,"onUpdate:api":t[8]||(t[8]=f=>o.dragForm.api=f),rule:o.dragForm.rule,option:o.dragForm.option},null,8,["api","rule","option"]),[[d,o.loading]])]),_:1},8,["page-config"])]),_:3}),e.createCommentVNode(" \u9884\u89C8\u533A\u7ED3\u675F"),e.createCommentVNode(" \u53F3\u8FB9\u64CD\u4F5C\u533A"),e.createVNode(u,{class:"_fc-r",style:e.normalizeStyle(o.rightAside.style)},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(m,{modelValue:o.activeTab,"onUpdate:modelValue":t[12]||(t[12]=f=>o.activeTab=f)},{default:e.withCtx(()=>[o.activeRule?(e.openBlock(),e.createBlock(E,{key:o.activeRule?"props_"+o.activeRule._id6:"",label:"\u7EC4\u4EF6\u8BBE\u7F6E",name:"props"},{default:e.withCtx(()=>[e.createVNode(g,{api:o.propsForm.api,"onUpdate:api":t[9]||(t[9]=f=>o.propsForm.api=f),rule:o.propsForm.rule,option:o.propsForm.options,"model-value":o.propsForm.value,onChange:o.propChange,onRemoveField:o.propRemoveField},null,8,["api","rule","option","model-value","onChange","onRemoveField"])]),_:1})):e.createCommentVNode("v-if",!0),o.activeRule?(e.openBlock(),e.createBlock(E,{key:o.activeRule?"style_"+o.activeRule._id:"",label:"\u6837\u5F0F\u8BBE\u7F6E",name:"style"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(g,{api:o.dkSettingForm.api,"onUpdate:api":t[10]||(t[10]=f=>o.dkSettingForm.api=f),rule:o.dkSettingForm.rule,option:o.dkSettingForm.options,"model-value":o.dkSettingForm.value,onChange:o.dkSettingChange},null,8,["api","rule","option","model-value","onChange"]),[[e.vShow,o.showDkSettingRule]])]),_:1})):e.createCommentVNode("v-if",!0),e.createVNode(E,{label:"\u9875\u9762\u914D\u7F6E",name:"page"},{default:e.withCtx(()=>[e.createVNode(g,{api:o.dkPageForm.api,"onUpdate:api":t[11]||(t[11]=f=>o.dkPageForm.api=f),rule:o.dkPageForm.rule,option:o.dkPageForm.options,onChange:o.dkPageChange},null,8,["api","rule","option","onChange"])]),_:1})]),_:1},8,["modelValue"]),[[e.vShow,!o.rightAside.hide]]),o.rightAside.hide?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"aside-resizer left-0",onMousedown:t[13]||(t[13]=f=>o.onResizerMouseDown("right",f)),onMouseup:t[14]||(t[14]=f=>o.onResizerMouseUp("right")),onMousemove:t[15]||(t[15]=f=>o.onResizerMouseMove("right"))},null,32)),e.createElementVNode("div",{class:"aside-toggle right-99%",style:e.normalizeStyle(o.rightAside.hide?"display:block":""),onClick:t[16]||(t[16]=f=>o.hideAside("right"))},[e.createVNode(s,{icon:o.rightAside.hide?"ArrowLeft":"ArrowRight"},null,8,["icon"])],4)]),_:1},8,["style"]),e.createCommentVNode(" \u53F3\u8FB9\u64CD\u4F5C\u533A\u7ED3\u675F"),e.createVNode(B,{visible:o.preview.state,"onUpdate:visible":t[17]||(t[17]=f=>o.preview.state=f),width:"375px","append-to-body":"",style:{"min-height":"700px"}},{default:e.withCtx(()=>[e.createCommentVNode(" <form-create"),e.createCommentVNode(' v-if="preview.state"'),e.createCommentVNode(' :rule="preview.rule"'),e.createCommentVNode(' :option="preview.option"'),e.createCommentVNode(" />")]),_:1},8,["visible"]),e.createVNode(b,{modelValue:o.diyCloud.show,"onUpdate:modelValue":t[18]||(t[18]=f=>o.diyCloud.show=f),width:"1200px","append-to-body":"",title:"DIY\u6A21\u677F\u5E02\u573A",top:"10vh"},{default:e.withCtx(()=>[o.diyCloud.show?(e.openBlock(),e.createBlock(w,{key:0,"page-name":o.diyCloud.pageName,"diy-data":o.diyCloud.diy_data,onSubmit:o.downCloudConfig},null,8,["page-name","diy-data","onSubmit"])):e.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])]),_:3})}var eo=T(fg,[["render",Eg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\page-diy.vue"]]);let wg=1;const Bg=e.defineComponent({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(o){const{unique:t}=e.toRefs(o),n=e.computed(()=>t.value||wg++),l=e.inject("fcx"),a=e.inject("previewSetting");return{id:n,state:l,previewSetting:a}},computed:{pageConfig(){return{}},_style(){let o={...this.setting.style,...this.setting.animation};return this.setting.is_position&&(o=Object.assign(o,{...this.setting.position,position:"absolute"})),o},_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"))}}}),Vg={key:0,class:"drag-mask"},Fg={class:"drag-r"};function Dg(o,t,n,l,a,r){const s=e.resolveComponent("dk-icon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["drag-tool animate__animated",[{active:o.state.active===o.id},o._animate]]),style:e.normalizeStyle(o._style),onClick:t[4]||(t[4]=e.withModifiers((...i)=>o.active&&o.active(...i),["stop"]))},[o.mask?(e.openBlock(),e.createElementBlock("div",Vg)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",Fg,[e.createElementVNode("div",{class:"drag-btn",title:"\u6DFB\u52A0\u5F53\u524D\u7EC4\u4EF6",onClick:t[0]||(t[0]=i=>o.$emit("create"))},[e.createVNode(s,{icon:"CirclePlus"})]),e.createElementVNode("div",{class:"drag-btn",title:"\u590D\u5236\u5F53\u524D\u7EC4\u4EF6",onClick:t[1]||(t[1]=i=>o.$emit("copy"))},[e.createVNode(s,{icon:"CopyDocument"})]),o.children?(e.openBlock(),e.createElementBlock("div",{key:0,class:"drag-btn",title:"\u6DFB\u52A0\u5B50\u7EC4\u4EF6",onClick:t[2]||(t[2]=i=>o.$emit("addChild"))},[e.createVNode(s,{icon:"fluent:tab-add-20-regular"})])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:"drag-btn drag-btn-danger",title:"\u5220\u9664\u7EC4\u4EF6",onClick:t[3]||(t[3]=i=>o.$emit("delete"))},[e.createVNode(s,{icon:"Close"})])]),e.renderSlot(o.$slots,"default")],6)}var xg=T(Bg,[["render",Dg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragTool.vue"]]);const Ng=e.defineComponent({name:"DragBox",props:["rule","tag","formCreateInject"],render(o){const t={...o.$props.rule.props,...o.$attrs};let n=o.tag+"-drag drag-box";Object.keys(o.$slots).length||(n+=" "+o.tag+"-holder"),t.class=n,t.modelValue=[...this.$props.formCreateInject.children];const l={};return o.$slots.default&&o.$slots.default().forEach(r=>{r.key&&(l[r.key]=r)}),e.h(fl,t,{item:({element:a})=>e.h("div",{class:"drag-box-item"},l[a.__fc__.key+"fc"])})}});var Ag=T(Ng,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragBox.vue"]]);const Sg=e.defineComponent({name:"DkEventCreateInput"});var $g=e.defineComponent({...Sg,props:{modelValue:{default:"",type:String},placeholder:{default:"",type:String},label:{default:"",type:String}},emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,l=e.ref(n.modelValue||"");e.watch(()=>n.modelValue,s=>{l.value=s}),e.watch(()=>l.value,s=>{t("change",s),t("update:modelValue",s),t("input",s)});const a=s=>{s=s||32;const i="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",c=i.length;let u="";for(let h=0;h<s;h++)u+=i.charAt(Math.floor(Math.random()*c));return u},r=()=>{l.value=a(6)};return(s,i)=>{const c=e.resolveComponent("el-button"),u=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u,{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=h=>l.value=h),placeholder:o.placeholder,clearable:""},{append:e.withCtx(()=>[e.createVNode(c,{onClick:r},{default:e.withCtx(()=>[e.createTextVNode("\u968F\u673A")]),_:1})]),_:1},8,["modelValue","placeholder"])])}}}),Tg=T($g,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventCreateInput.vue"]]);const Ig={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(o){o=o||32;const t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",n=t.length;let l="";for(let a=0;a<o;a++)l+=t.charAt(Math.floor(Math.random()*n));return l},onUpdateEvent(){for(let o=0;o<this.children.length;o++)if(this.children[o].children.length>0){const t=this.children[o].children[0],n=t.props,l=t.config.config;if(l.event||!1){const r=l.props();this.findDkEventCreateInput(r,n).forEach(s=>{const i={id:t._id,label:s.props?.label||l.label,value:n[s.field]};i.value&&i.id&&i.label&&this.EventData.addEvent(i)})}}this.eventData=this.EventData.getAllEvents()},findDkEventCreateInput(o,t){const n=[];return o.forEach(l=>{l.children&&n.push(...this.findDkEventCreateInput(l.children)),l.control&&Array.isArray(l.control)&&l.control.forEach(a=>{a.rule.length>0&&n.push(...this.findDkEventCreateInput(a.rule))}),l.type==="DkEventCreateInput"&&n.push(l)}),n}}},zg={style:{display:"flex"}},Rg={style:{float:"left"}},Og={style:{float:"right","font-size":"13px",color:"#8492a6"}};function Pg(o,t,n,l,a,r){const s=e.resolveComponent("el-option"),i=e.resolveComponent("el-select"),c=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",zg,[e.createVNode(i,{modelValue:a.data,"onUpdate:modelValue":t[0]||(t[0]=u=>a.data=u),placeholder:"\u8BF7\u9009\u62E9\u8981\u89E6\u53D1\u4E8B\u4EF6",style:{width:"100%"},"allow-create":"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.eventData,u=>(e.openBlock(),e.createBlock(s,{key:u.value,label:u.label+"\uFF08"+u.value+"\uFF09",value:u.value},{default:e.withCtx(()=>[e.createElementVNode("span",Rg,e.toDisplayString(u.label),1),e.createElementVNode("span",Og,e.toDisplayString(u.value),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(c,{loading:a.loading,onClick:r.updateEvent},{default:e.withCtx(()=>[e.createTextVNode("\u5237\u65B0")]),_:1},8,["loading","onClick"])])}var jg=T(Ig,[["render",Pg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventSelectInput.vue"]]);const vg=(o,t)=>{re.component(o,t),pr.component(o,t)};re.component("DragTool",xg),re.component("DragBox",Ag),re.component("DkEventCreateInput",Tg),re.component("DkEventSelectInput",jg),re.register("_fc",{init(o,t){t._id=mr(),o.value&&(t.effect._fc=!1)}}),re.register("_fc_tool",{init(o,t){t.props.unique=mr()}}),eo.formCreate=pr,eo.designerForm=re,eo.component=vg;const br=U(eo),kr={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}};/**!
1
+ (function(S,Ye){typeof exports=="object"&&typeof module<"u"?Ye(exports,require("axios"),require("element-plus"),require("vue"),require("@vueuse/core"),require("vuedraggable"),require("vue3-draggable-resizable"),require("@tinymce/tinymce-vue"),require("@iconify/vue"),require("@element-plus/icons-vue"),require("@vant/icons"),require("@form-create/element-ui")):typeof define=="function"&&define.amd?define(["exports","axios","element-plus","vue","@vueuse/core","vuedraggable","vue3-draggable-resizable","@tinymce/tinymce-vue","@iconify/vue","@element-plus/icons-vue","@vant/icons","@form-create/element-ui"],Ye):(S=typeof globalThis<"u"?globalThis:S||self,Ye(S.DkUI={},S.axios,S.ElementPlus,S.Vue,S.VueUse,S.draggable,S.Vue3DraggableResizable,S.Editor,S.Icon,S.ElementPlusIconsVue,S.VantIcons,S.formCreate))})(this,function(S,Ye,Q,e,$e,fl,cs,hl,To,Jt,Kt,Qt){"use strict";function us(o){var t=Object.create(null);return o&&Object.keys(o).forEach(function(n){if(n!=="default"){var l=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:function(){return o[n]}})}}),t.default=o,Object.freeze(t)}var gl=us(Jt);const yl=o=>o!==null&&typeof o=="object",ds=o=>o!=null,ps=o=>typeof o=="function";function _l(o,t){const n=t.split(".");let l=o;return n.forEach(a=>{var r;l=yl(l)&&(r=l[a])!=null?r:""}),l}const Xe=o=>({type:String,default:o}),ms=/-(\w)/g,fs=o=>o.replace(ms,(t,n)=>n.toUpperCase()),{hasOwnProperty:hs}=Object.prototype;function gs(o,t,n){const l=t[n];ds(l)&&(!hs.call(o,n)||!yl(l)?o[n]=l:o[n]=bl(Object(o[n]),l))}function bl(o,t){return Object.keys(t).forEach(n=>{gs(o,t,n)}),o}var ys={name:"\u59D3\u540D",tel:"\u7535\u8BDD",save:"\u4FDD\u5B58",clear:"\u6E05\u7A7A",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",delete:"\u5220\u9664",loading:"\u52A0\u8F7D\u4E2D...",noCoupon:"\u6682\u65E0\u4F18\u60E0\u5238",nameEmpty:"\u8BF7\u586B\u5199\u59D3\u540D",addContact:"\u6DFB\u52A0\u8054\u7CFB\u4EBA",telInvalid:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7535\u8BDD",vanCalendar:{end:"\u7ED3\u675F",start:"\u5F00\u59CB",title:"\u65E5\u671F\u9009\u62E9",weekdays:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],monthTitle:(o,t)=>`${o}\u5E74${t}\u6708`,rangePrompt:o=>`\u6700\u591A\u9009\u62E9 ${o} \u5929`},vanCascader:{select:"\u8BF7\u9009\u62E9"},vanPagination:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875"},vanPullRefresh:{pulling:"\u4E0B\u62C9\u5373\u53EF\u5237\u65B0...",loosing:"\u91CA\u653E\u5373\u53EF\u5237\u65B0..."},vanSubmitBar:{label:"\u5408\u8BA1:"},vanCoupon:{unlimited:"\u65E0\u95E8\u69DB",discount:o=>`${o}\u6298`,condition:o=>`\u6EE1${o}\u5143\u53EF\u7528`},vanCouponCell:{title:"\u4F18\u60E0\u5238",count:o=>`${o}\u5F20\u53EF\u7528`},vanCouponList:{exchange:"\u5151\u6362",close:"\u4E0D\u4F7F\u7528",enable:"\u53EF\u7528",disabled:"\u4E0D\u53EF\u7528",placeholder:"\u8F93\u5165\u4F18\u60E0\u7801"},vanAddressEdit:{area:"\u5730\u533A",areaEmpty:"\u8BF7\u9009\u62E9\u5730\u533A",addressEmpty:"\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",addressDetail:"\u8BE6\u7EC6\u5730\u5740",defaultAddress:"\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"},vanAddressList:{add:"\u65B0\u589E\u5730\u5740"}};const kl=e.ref("zh-CN"),Cl=e.reactive({"zh-CN":ys});var _s={messages(){return Cl[kl.value]},use(o,t){kl.value=o,this.add({[o]:t})},add(o={}){bl(Cl,o)}};function bs(o){const t=fs(o)+".";return(n,...l)=>{const a=_s.messages(),r=_l(a,t+n)||_l(a,n);return ps(r)?r(...l):r}}function Io(o,t){return t?typeof t=="string"?` ${o}--${t}`:Array.isArray(t)?t.reduce((n,l)=>n+Io(o,l),""):Object.keys(t).reduce((n,l)=>n+(t[l]?Io(o,l):""),""):""}function ks(o){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${o}__${t}`:o,`${t}${Io(t,n)}`)}function se(o){const t=`dk-${o}`;return[t,ks(t),bs(t)]}const El={ApiUrl:"",AccessToken:"",Plaid:0,Appid:0,AddonName:"",ProjectType:"addon"};function Cs(o){Object.assign(El,o)}function zo(){return El}const Es=Object.prototype.toString,Ro=(o,t)=>Es.call(o)===`[object ${t}]`,ws=o=>typeof o<"u",Oo=o=>!ws(o),wl=o=>o!==null&&Ro(o,"Object"),Bl=o=>Ro(o,"Number"),Bs=o=>Ro(o,"String"),Po=o=>o&&Array.isArray(o),Ft=new Map,ve={target:null,count:0};function Vl(o){const{url:t,method:n,params:l}=o;let{data:a}=o;return typeof a=="string"&&(a=JSON.parse(a)),[t,n,JSON.stringify(l),JSON.stringify(a)].join("&")}function Vs(o){const t=Vl(o);o.cancelToken=o.cancelToken||new Ye.CancelToken(n=>{Ft.has(t)||Ft.set(t,n)})}function jo(o){const t=Vl(o);Ft.has(t)&&(Ft.get(t)(t),Ft.delete(t))}function Fl(o){o.loading&&ve.count>0&&ve.count--,ve.count===0&&(ve.target.close(),ve.target=null)}function Fs(o){if(Ye.isCancel(o))return console.warn("\u8BF7\u6C42\u7684\u91CD\u590D\u8BF7\u6C42\uFF1A"+o.message);let t="";if(o&&o.response)switch(o.response.status){case 302:t="\u63A5\u53E3\u91CD\u5B9A\u5411\u4E86\uFF01";break;case 400:t="\u53C2\u6570\u4E0D\u6B63\u786E\uFF01";break;case 401:t="\u60A8\u672A\u767B\u5F55\uFF0C\u6216\u8005\u767B\u5F55\u5DF2\u7ECF\u8D85\u65F6\uFF0C\u8BF7\u5148\u767B\u5F55\uFF01";break;case 403:t="\u60A8\u6CA1\u6709\u6743\u9650\u64CD\u4F5C\uFF01";break;case 404:t=`\u8BF7\u6C42\u5730\u5740\u51FA\u9519: ${o.response.config.url}`;break;case 408:t="\u8BF7\u6C42\u8D85\u65F6\uFF01";break;case 409:t="\u7CFB\u7EDF\u5DF2\u5B58\u5728\u76F8\u540C\u6570\u636E\uFF01";break;case 500:t="\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF\uFF01";break;case 501:t="\u670D\u52A1\u672A\u5B9E\u73B0\uFF01";break;case 502:t="\u7F51\u5173\u9519\u8BEF\uFF01";break;case 503:t="\u670D\u52A1\u4E0D\u53EF\u7528\uFF01";break;case 504:t="\u670D\u52A1\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF01";break;case 505:t="HTTP\u7248\u672C\u4E0D\u53D7\u652F\u6301\uFF01";break;default:t="\u5F02\u5E38\u95EE\u9898\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01";break}o.message.includes("timeout")&&(t="\u7F51\u7EDC\u8BF7\u6C42\u8D85\u65F6\uFF01"),o.message.includes("Network")&&(t=window.navigator.onLine?"\u670D\u52A1\u7AEF\u5F02\u5E38\uFF01":"\u60A8\u65AD\u7F51\u4E86\uFF01"),Q.ElMessage({type:"error",message:t})}const X=(o,t,n)=>{const l=Ye.create({...o,baseURL:zo().ApiUrl}),a=Object.assign({repeat_request_cancel:!0,loading:!1,reduct_data_format:!0,error_message_show:!0,code_success_show:!1,code_error_show:!1},t);return l.interceptors.request.use(r=>{jo(r),a.repeat_request_cancel&&Vs(r),a.loading&&(ve.count++,ve.count===1&&(ve.target=Q.ElLoading.service(n)));const s=zo();return r.headers["Access-Token"]=s.AccessToken,r.headers["Project-Type"]=s.ProjectType,r.headers["Addon-Name"]=s.AddonName,r.headers.Plaid=s.Plaid,r.headers.Appid=s.Appid,r.params=r.params||{},r.params._ajax=1,r},r=>Promise.reject(r)),l.interceptors.response.use(r=>{jo(r.config),a.loading&&Fl(a);const s=r.data,i=s.code;if(i===0)return a.code_success_show&&Q.ElMessage.success(s.msg),s;switch(a.code_error_show&&Q.ElMessage.error(s.msg),i){case-1:case 401:case 402:case 403:return Promise.reject(s);default:return Promise.reject(r.data||{msg:"\u672A\u77E5\u9519\u8BEF"})}},r=>(console.log("error",r),r.config&&jo(r.config),a.error_message_show&&Fs(r),a.loading&&Fl(a),Promise.reject(r))),l.request(o)},vo=o=>{const t={file:0,image:1,audio:2,video:3};return typeof o=="number"||/^\d+$/.test(o)?parseInt(o,10):t[o]},Ds=o=>{const t={0:"\u6587\u4EF6\u9009\u62E9",1:"\u9009\u62E9\u56FE\u7247",2:"\u9009\u62E9\u97F3\u9891",3:"\u9009\u62E9\u89C6\u9891"},n=vo(o);return t[n]||"\u6587\u4EF6\u9009\u62E9"};function U(o){return o.install=t=>{const{name:n}=o;n&&t.component(n,o)},o}const Te={get(o,t="localStorage"){const n=this.getStorage(t);return n?n.getItem(o):null},set(o,t,n="localStorage"){const l=this.getStorage(n);l&&l.setItem(o,t)},remove(o,t="localStorage"){const n=this.getStorage(t);n&&n.removeItem(o)},clear(o="localStorage"){const t=this.getStorage(o);t&&t.clear()},getStorage(o){return o==="localStorage"&&typeof localStorage<"u"?localStorage:o==="sessionStorage"&&typeof sessionStorage<"u"?sessionStorage:null}};function Zt(o){return o.replace(o[0],o[0].toLocaleUpperCase())}const Dl=(o,t=["px","%","rem","em"])=>{const n=/(\d+)(\D+)/,l=o.match(n);let a={number:0,unit:""};return l&&(a={number:parseInt(l[1],10),unit:t.includes(l[2])?l[2]:t[0]}),a};for(let o=0;o<=15;o++)o.toString(16);const xs=(o,t="_blank")=>{t=="_blank"?window.open(o):window.location.href=o},Ns=(o,t="yyyy-mm-dd hh:MM:ss")=>{o||(o=Number(new Date)),o.toString().length===10&&(o=+o*1e3);const n=new Date(o);let l;const a={"y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"h+":n.getHours().toString(),"M+":n.getMinutes().toString(),"s+":n.getSeconds().toString()};for(const r in a)l=new RegExp("("+r+")").exec(t),l&&(t=t.replace(l[1],l[1].length==1?a[r]:As(a[r],l[1].length,"0")));return t},As=(o,t,n=" ")=>{if(o.length>=t)return o;const l=t-o.length;let a=Math.ceil(l/n.length);for(;a>>=1;)n+=n,a===1&&(n+=n);return n.slice(0,l)+o},Mo=(o,t,n)=>{for(const l in o)if(o[l][t]==n)return l;return!1},Lo=(o,t,n=-1)=>{for(const l in o){if(typeof n=="number"&&n++,n==t)return o[l];if(o[l].children&&(n=Lo(o[l].children,t,n),typeof n!="number"))return n}return n};class Ss{el;constructor(t){this.el=t,this.handleWheelEvent()}handleWheelEvent(){let t="";"onmousewheel"in this.el?t="mousewheel":"onwheel"in this.el?t="wheel":"attachEvent"in window?t="onmousewheel":t="DOMMouseScroll",this.el.addEventListener(t,this.scroll,{passive:!0})}scroll=t=>{this.el.clientWidth>=this.el.scrollWidth||(this.el.scrollLeft+=t.deltaY?t.deltaY:t.detail&&t.detail!==0?t.detail:-t.wheelDelta)}}function xl(o,t){let n=null;return function(...l){clearTimeout(n),n=setTimeout(()=>{o.apply(this,l)},t)}}function $s(o){Rs(o),zs(o),Is(o),Ts(o)}function Ts(o){o.directive("tableLateralDrag",{created(t){new Ss(t.querySelector(".el-table__body-wrapper .el-scrollbar .el-scrollbar__wrap"))}})}function Is(o){o.directive("blur",{mounted(t){$e.useEventListener(t,"focus",()=>t.blur())}})}function zs(o){o.directive("zoom",{mounted(t,n){if(!n.value)return!1;const l=Bs(n.value)?[n.value,".el-dialog__body",!1,!0]:n.value;l[1]=l[1]?l[1]:".el-dialog__body",l[2]=typeof l[2]>"u"?!1:l[2],l[3]=typeof l[3]>"u"?!0:l[3],e.nextTick(()=>{const a=document.querySelector(l[1]),r=document.querySelector(l[0]),s=document.createElement("div");s.className="zoom-handle",s.onmouseenter=()=>{s.onmousedown=i=>{const c=i.clientX,u=i.clientY,h=a.offsetWidth,g=a.offsetHeight,_=r.offsetWidth,k=r.offsetHeight;document.onmousemove=E=>{E.preventDefault();const m=h+(E.clientX-c)*2,B=g+(E.clientY-u);if(a.style.width=`${m}px`,a.style.height=`${B}px`,l[2]){const w=k+(E.clientY-u);r.style.height=`${w}px`}if(l[3]){const w=_+(E.clientX-c)*2;r.style.width=`${w}px`}},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}},r.appendChild(s)})}})}function Rs(o){o.directive("drag",{mounted(t,n){if(!n.value)return!1;const l=document.querySelector(n.value[0]),a=document.querySelector(n.value[1]);if(!a||!l)return!1;a.onmouseover=()=>a.style.cursor="move";function r(i,c){const u=c==="pc"?i.clientX-a.offsetLeft:i.touches[0].clientX-a.offsetLeft,h=c==="pc"?i.clientY-a.offsetTop:i.touches[0].clientY-a.offsetTop,g=document.body.clientWidth,_=document.body.clientHeight||document.documentElement.clientHeight,k=l.offsetWidth,E=l.offsetHeight,m=l.offsetLeft,B=g-l.offsetLeft-k,w=l.offsetTop,b=_-l.offsetTop-E;let d=getComputedStyle(l).left,f=getComputedStyle(l).top;return d=+d.replace(/\px/g,""),f=+f.replace(/\px/g,""),{disX:u,disY:h,minDragDomLeft:m,maxDragDomLeft:B,minDragDomTop:w,maxDragDomTop:b,styL:d,styT:f}}function s(i,c,u){const{disX:h,disY:g,minDragDomLeft:_,maxDragDomLeft:k,minDragDomTop:E,maxDragDomTop:m,styL:B,styT:w}=u;let b=c==="pc"?i.clientX-h:i.touches[0].clientX-h,d=c==="pc"?i.clientY-g:i.touches[0].clientY-g;-b>_?b=-_:b>k&&(b=k),-d>E?d=-E:d>m&&(d=m),l.style.cssText+=`;left:${b+B}px;top:${d+w}px;`}a.onmousedown=i=>{const c=r(i,"pc");document.onmousemove=u=>{s(u,"pc",c)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},a.ontouchstart=i=>{const c=r(i,"app");document.ontouchmove=u=>{s(u,"app",c)},document.ontouchend=()=>{document.ontouchmove=null,document.ontouchend=null}}}})}const Nl={type:Xe(""),test:{default:"\u6D4B\u8BD5\u6D4B\u8BD5",type:String}},Os={class:"mr-10px bg-black"},Ps=e.defineComponent({name:"DkTest"});var js=e.defineComponent({...Ps,props:Nl,emits:["onChooseUrl"],setup(o,{emit:t}){se("test");const n=()=>{t("onChooseUrl","\u9009\u4E2D\u7684\u94FE\u63A5\u5730\u5740")};return(l,a)=>{const r=e.resolveComponent("el-button"),s=e.resolveComponent("van-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{class:"dk-test"},{default:e.withCtx(()=>[e.createTextVNode("el\u6309\u94AE")]),_:1}),e.createVNode(s,null,{default:e.withCtx(()=>[e.createTextVNode("van\u6309\u94AE")]),_:1}),e.createVNode(r,{onClick:n},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9\u94FE\u63A5")]),_:1}),e.createElementVNode("div",Os,e.toDisplayString(l.test),1)],64)}}}),T=(o,t)=>{const n=o.__vccOpts||o;for(const[l,a]of t)n[l]=a;return n},vs=T(js,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\test\\src\\test.vue"]]);const Al=U(vs);function Ms(o,t){return{}.hasOwnProperty.call(o,t)}function Dt(o,t,n){o[t]=n}function Uo(o){return Ho({},{value:o},void 0).value}function Ho(o,t={},n=!1){let l=!1;for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let r=t[a];if((l=Array.isArray(r))||wl(r)){const s=o[a]===void 0;if(l)l=!1,s&&Dt(o,a,[]);else if(r._clone&&n)if(n)r=r.getRule(),s&&Dt(o,a,{});else{Dt(o,a,r._clone());continue}else s&&Dt(o,a,{});o[a]=Ho(o[a],r,n)}else Dt(o,a,r),Oo(r)||(Oo(r.__json)||(o[a].__json=r.__json),Oo(r.__origin)||(o[a].__origin=r.__origin))}return n!==void 0&&Array.isArray(o)?o.filter(a=>!a||!a.__ctrl):o}function Ls(o,t,n){o[t]=n}const Us=Object.assign||function(o){for(let t=1;t<arguments.length;t++){const n=arguments[t];for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&Ls(o,l,n[l])}return o};function Hs(...o){return Us.apply(this,o)}const Sl={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}},Ws={key:1},qs={class:"collapse-title"},Gs={class:"_dk-group-handle"},Ys=e.defineComponent({name:"DkGroup"});var Xs=e.defineComponent({...Ys,props:Sl,emits:["update:modelValue","change","itemMounted","remove","add"],setup(o,{emit:t}){const n=o,l=e.reactive({len:0,cacheRule:{},cacheValue:{},sort:[],form:e.markRaw(n.formCreateInject.form.$form()),loading:!0}),a=e.reactive({modelValue:[0],accordion:n.accordion}),r=l.form;e.watch(()=>n.rule,(p,y)=>{Object.keys(l.cacheRule).forEach(C=>{const V=l.cacheRule[C];if(V.$f){const x=V.$f.formData();if(p===y)V.$f.deferSyncValue(()=>{Ho(V.rule,p,!1),V.$f.setValue(x)},!0);else{const D=V.$f.formData();V.$f.once("reloading",()=>{V.$f.setValue(D)}),V.rule=Uo(p)}}})},{deep:!0}),e.watch(()=>n.disabled,p=>{if(n.syncDisabled){const y=l.cacheRule;Object.keys(y).forEach(C=>{y[C].$f.disabled(p)})}}),e.watch(()=>n.expand,p=>{const y=p-n.modelValue.length;y>0&&d(y)}),e.watch(()=>n.modelValue,p=>{p=p||[];const y=Object.keys(l.cacheRule),C=y.length,V=C-p.length;if(V<0){for(let x=V;x<0;x++)E(p.length-1,!0);for(let x=0;x<C;x++)k(y[x],p[x])}else{if(V>0)for(let x=0;x<V;x++)console.log("keys[total - i - 1]",y[C-x-1]),m(y[C-x-1]);p.forEach((x,D)=>{k(y[D],p[D])})}},{deep:!0}),e.watch(()=>({...l.cacheRule}),p=>{l.sort=Object.keys(p)},{immediate:!0});const s=p=>n.field?{[n.field]:c(n.modelValue[p])}:n.modelValue[p],i=p=>{if(l.cacheRule[p]){const{rule:y}=l.cacheRule[p],C=n.titleField?n.titleField:y[0]?.field;return l.cacheRule[p].$f?.getValue(C)||"\u70B9\u51FB\u5C55\u5F00"}else return"\u70B9\u51FB\u5C55\u5F00"},c=p=>p&&Ms(p,n.field)?p[n.field]:p,u=(p,y)=>{l.cacheValue[p]=JSON.stringify(y)},h=p=>{t("update:modelValue",p),t("change",p)},g=(p,y)=>{e.nextTick(()=>{const V=Object.keys(l.cacheRule).map(x=>{const D=p===x?y:{...l.cacheRule[x].$f.form},$=n.field?D[n.field]||null:D;return u(x,$),$});h(V)})},_=(p,y)=>{l.cacheRule[p].$f=y,e.nextTick(()=>{n.syncDisabled&&y.disabled(n.disabled),t("itemMounted",y,Object.keys(l.cacheRule).indexOf(p))})};e.onMounted(()=>{l.loading=!1});const k=(p,y)=>{const C=n.field;C&&(y={[C]:c(y)}),l.cacheValue[p]!==JSON.stringify(C?y[C]:y)&&u(p,y)},E=(p,y=!1)=>{const C=n.formCreateInject.form.copyRules(n.rule||[]),V=n.options?{...n.options}:{submitBtn:!1,resetBtn:!1};if(n.defaultValue){V.formData||(V.formData={});const x=Uo(n.defaultValue);Hs(V.formData,n.field?{[n.field]:x}:x)}n.parse&&n.parse({rule:C,options:V,index:l.sort.length}),l.cacheRule[p]={rule:C,options:V},y&&e.nextTick(()=>t("add",C,Object.keys(l.cacheRule).length-1))},m=(p,y=!1)=>{delete l.cacheRule[p],delete l.cacheValue[p],y&&e.nextTick(()=>t("remove",p))},B=()=>{if(n.disabled||n.onBeforeAdd(n.modelValue)===!1)return;const p=[...n.modelValue];p.push(n.defaultValue?Uo(n.defaultValue):n.field?null:{}),h(p),a.modelValue=[p.length-1]},w=(p,y)=>{if(n.disabled||n.onBeforeRemove(n.modelValue,p)===!1)return;const C=[...n.modelValue];C.splice(p,1),h(C)},b=(p,y,C)=>{t(p,...y,l.cacheRule[C].$f,C)},d=p=>{for(let y=0;y<p;y++)n.modelValue.push(n.field?null:{})},f=(n.expand||0)-n.modelValue.length;for(let p=0;p<n.modelValue.length;p++)E(p);return f>0&&d(f),(p,y)=>{const C=e.resolveComponent("el-divider"),V=e.resolveComponent("el-button"),x=e.resolveComponent("dk-icon"),D=e.resolveComponent("el-button-group"),$=e.resolveComponent("el-collapse-item"),F=e.resolveComponent("draggable");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass("dk-group _fc-group "+(p.disabled?"_fc-group-disabled":""))},[n.title?(e.openBlock(),e.createBlock(C,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1})):e.createCommentVNode("v-if",!0),l.sort.length===0?(e.openBlock(),e.createElementBlock("div",Ws,[(e.openBlock(),e.createBlock(V,{key:"a_def",style:{width:"100%"},type:"primary",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(" \u6DFB\u52A0\u6570\u636E ")]),_:1}))])):e.createCommentVNode("v-if",!0),e.createVNode(F,{tag:"el-collapse",list:n.modelValue,"component-data":a,"item-key":"id",handle:".collapse-title-rank"},{item:e.withCtx(({element:A,index:z})=>[e.createVNode($,{title:A.title,name:z},{title:e.withCtx(()=>[e.createElementVNode("div",qs,[e.createVNode(x,{icon:"Rank",class:"collapse-title-rank"}),e.createElementVNode("span",null,e.toDisplayString(i(z)),1)])]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("div",{key:z,class:"_dk-group-container"},[(e.openBlock(),e.createBlock(e.unref(r),{key:z,"in-for":!0,"model-value":s(z),rule:l.cacheRule[z].rule,option:l.cacheRule[z].options,"extend-option":!0,"onUpdate:modelValue":R=>g(z,R),onEmitEvent:(R,...v)=>b(R,v,z),"onUpdate:api":R=>_(z,R)},null,8,["model-value","rule","option","onUpdate:modelValue","onEmitEvent","onUpdate:api"])),e.createElementVNode("div",Gs,[e.createVNode(D,null,{default:e.withCtx(()=>[e.createVNode(V,{icon:"Plus",plain:"",onClick:B},{default:e.withCtx(()=>[e.createTextVNode("\u589E\u52A0")]),_:1}),e.createVNode(V,{icon:"Delete",plain:"",onClick:R=>w(z)},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)])]))]),_:2},1032,["title","name"])]),_:1},8,["list","component-data"])],2)}}}),Js=T(Xs,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\group\\src\\group.vue"]]);const $l=U(Js);var Ks={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:!0,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};function Qs(o,t,n=1,l,a){return a.group_id=l,a.type=n,X({method:"post",url:"/adminapi/attachment/list",data:{page:o,size:t,search:a}})}function Zs(o,t=1,n=0){const l=new FormData;return l.append("file",o),l.append("type",t.toString()),l.append("file","file"),l.append("group_id",n.toString()),X({method:"post",url:"/adminapi/attachment/upload",data:l})}function ec(o){return X({method:"post",url:"/adminapi/attachment/delete",data:{ids:o}},{code_success_show:!0})}function tc(o,t){return X({method:"post",url:"/adminapi/attachment/move",data:{ids:o,group_id:t}})}function oc(o){return X({method:"get",url:"/adminapi/attachment/group",params:{type:o}},{code_error_show:!0})}function nc(o){return X({method:"delete",url:"/adminapi/attachment/group/"+o},{code_error_show:!0})}const Tl={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}},lc={key:0},ac={key:1},rc={class:"text-center"},ic=e.defineComponent({name:"DkTinyEditor"});var sc=e.defineComponent({...ic,props:Tl,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,l=e.ref(null),{width:a}=$e.useElementSize(l),r=e.ref(n.modelValue),s=e.ref(!1),i=(B,w)=>new Promise((b,d)=>{Zs(B.blob()).then(f=>{w(100),b(f.data.url)}).catch(f=>{d(f)})}),c=e.ref({...Ks,height:n.height,content_css:n.document?"document":"",images_upload_handler:i,initialContent:"Loading editor..."}),u=e.ref("https://cdn-1251560393.cos.ap-chengdu.myqcloud.com/lib/tinymce/tinymce.min.js"),h=e.ref(),g=e.ref(),_=e.computed(()=>a.value>=n.showDialogWidth);e.watch(()=>n.modelValue,B=>{r.value=B}),e.watch(()=>r.value,B=>{t("update:modelValue",B),t("input",B),t("change",B)}),e.onMounted(()=>{e.nextTick(()=>{k()})}),e.watch(()=>g.value,()=>{g.value?.getEditor()&&g.value.getEditor().on("showImage",()=>{h.value.open()})});const k=()=>{g.value?.getEditor()?g.value.getEditor().on("showImage",()=>{h.value.open()}):setTimeout(()=>{k()},1e3)},E=B=>{const w=g.value.getEditor();let b="";B.forEach(d=>{b+='<img src="'+d.url+'" alt="" width="100%">'}),w.insertContent(b)},m=B=>{console.log(B)};return(B,w)=>{const b=e.resolveComponent("el-button"),d=e.resolveComponent("dk-dialog"),f=e.resolveComponent("dk-attachment-dialog");return e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:l,class:"dk-tiny-editor"},[_.value?(e.openBlock(),e.createElementBlock("div",lc,[e.createVNode(e.unref(hl),{ref_key:"editorRef",ref:g,modelValue:r.value,"onUpdate:modelValue":w[0]||(w[0]=p=>r.value=p),init:c.value,"tinymce-script-src":u.value,onDblclick:m},null,8,["modelValue","init","tinymce-script-src"])])):(e.openBlock(),e.createElementBlock("div",ac,[e.createVNode(b,{type:"primary",plain:"",style:{width:"100%"},onClick:w[1]||(w[1]=p=>s.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.buttonText),1)]),_:1}),e.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":w[4]||(w[4]=p=>s.value=p),title:"\u7F16\u8F91",width:"900px","z-index":1298},{footer:e.withCtx(()=>[e.createElementVNode("div",rc,[e.createVNode(b,{type:"primary",style:{width:"200px"},onClick:w[3]||(w[3]=p=>s.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u5B9A")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(e.unref(hl),{ref_key:"editorRef",ref:g,modelValue:r.value,"onUpdate:modelValue":w[2]||(w[2]=p=>r.value=p),init:c.value,"tinymce-script-src":u.value,onDblclick:m},null,8,["modelValue","init","tinymce-script-src"])]),_:1},8,["modelValue"])])),e.createVNode(f,{ref_key:"attachmentRef",ref:h,type:1,onConfirm:E},null,512)],512)}}}),cc=T(sc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\tiny-editor\\src\\tiny-editor.vue"]]);const Il=U(cc),zl={icon:{default:"",type:String},color:String,size:Number,hoverColor:String,showEl:{default:!0,type:Boolean},showVant:{default:!0,type:Boolean}},uc=e.defineComponent({name:"DkIcon"});var dc=e.defineComponent({...uc,props:zl,setup(o){const t=o,[n,l]=se("icon"),a=Object.keys(gl).map(i=>i),r=e.computed(()=>{const{color:i,size:c,hoverColor:u}=t,h={};return i&&(h.color=i),c&&(h.fontSize=`${c}px`),u&&(h["--hover-color"]=u),h}),s=e.computed(()=>{let i="cloud";return a.includes(t.icon)&&t.showEl&&(i="el"),t.showVant&&(Kt.basic.includes(t.icon)&&(i="vant"),Kt.outline.includes(t.icon)&&(i="vant"),Kt.filled.includes(t.icon)&&(i="vant")),i});return(i,c)=>{const u=e.resolveComponent("van-icon"),h=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(h,{class:e.normalizeClass(e.unref(l)()),style:e.normalizeStyle(r.value)},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default",{},()=>[s.value==="cloud"?(e.openBlock(),e.createBlock(e.unref(To.Icon),{key:0,icon:t.icon},null,8,["icon"])):e.createCommentVNode("v-if",!0),s.value==="el"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:1})):e.createCommentVNode("v-if",!0),s.value==="vant"?(e.openBlock(),e.createBlock(u,{key:2,class:e.normalizeClass(e.unref(l)()),name:t.icon,style:e.normalizeStyle(r.value)},null,8,["class","name","style"])):e.createCommentVNode("v-if",!0)])]),_:3},8,["class","style"])}}}),pc=T(dc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon\\src\\icon.vue"]]);const Rl=U(pc),Ol={modelValue:Xe(""),showAlpha:{default:!1,type:Boolean},placeholder:Xe(""),colorFormat:Xe("hex")},mc={style:{display:"flex"},class:"dk-color-input"},fc=e.defineComponent({name:"DkColorInput"});var hc=e.defineComponent({...fc,props:Ol,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o;se("color-input");const l=e.ref(n.modelValue||"");return e.watch(()=>n.modelValue,a=>{l.value=a}),e.watch(()=>l.value,a=>{t("change",a),t("update:modelValue",a),t("input",a)}),(a,r)=>{const s=e.resolveComponent("el-input"),i=e.resolveComponent("el-color-picker");return e.openBlock(),e.createElementBlock("div",mc,[e.createVNode(s,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=c=>l.value=c),placeholder:a.placeholder,clearable:"",style:{width:"100%"}},null,8,["modelValue","placeholder"]),e.createVNode(i,{modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=c=>l.value=c),teleported:!1,"show-alpha":a.showAlpha,"color-format":a.colorFormat},null,8,["modelValue","show-alpha","color-format"])])}}}),gc=T(hc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\color-input\\src\\color-input.vue"]]);const Pl=U(gc),jl={modelValue:{type:Object,default:()=>({})}},yc={class:"hot-area-content"},_c={class:"hot-area-draggable"},bc={class:"hot-item-content",style:{position:"relative",width:"100%",height:"100%",background:"#0003"}},kc={key:1,style:{width:"500px",height:"500px"}},Cc={class:"hot-area-form"},Ec=e.createElementVNode("h3",{style:{"margin-top":"0","font-size":"16px","font-weight":"500"}},"\u70ED\u533A\u7BA1\u7406",-1),wc={style:{display:"flex","justify-content":"space-between",width:"100%"}},Bc=e.defineComponent({name:"HotAreaContent"});var Vc=e.defineComponent({...Bc,props:{hotDataValue:{default:()=>({views:[],width:400,height:400,background:null}),type:Object}},setup(o){const t=o,n=e.ref(0),l=e.reactive(t.hotDataValue),a=()=>{Array.isArray(l.views)||(l.views=[]),l.views.push({css:{left:0,top:0,width:80,height:80,borderRadius:0,borderColor:"#fff"},url:""})},r=h=>{h>=0&&h<l.views.length&&l.views.splice(h,1)},s=h=>{const g=l.views[n.value].css;g.left=h.x,g.top=h.y},i=h=>{const g=l.views[n.value].css;g.left=h.x,g.top=h.y,g.width=h.w,g.height=h.h};e.onMounted(()=>{c()}),e.watch(()=>l?.background,()=>{c()});const c=()=>{l.background&&u(l.background).then(h=>{l.width=500,l.height=h.height*500/h.width,setTimeout(()=>{},200)}).catch(()=>{})},u=h=>new Promise(function(g,_){const k=new Image;k.onload=function(){g({width:k.width,height:k.height})},k.onerror=function(){_(new Error("error"))},k.src=h});return(h,g)=>{const _=e.resolveComponent("vue3-draggable-resizable"),k=e.resolveComponent("el-empty"),E=e.resolveComponent("dk-image-input"),m=e.resolveComponent("el-form-item"),B=e.resolveComponent("dk-url-input"),w=e.resolveComponent("dk-icon"),b=e.resolveComponent("el-button"),d=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",yc,[e.createElementVNode("div",_c,[l.background?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle([{width:l.width+"px",height:l.height+"px",backgroundImage:"url("+l.background+")"},{"background-size":"100% 100%"}]),onContextmenu:g[0]||(g[0]=e.withModifiers(()=>{},["prevent"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.views,(f,p)=>(e.openBlock(),e.createBlock(_,{key:p,ref_for:!0,ref:"draggables",h:f.css.height,"onUpdate:h":y=>f.css.height=y,x:f.css.left,"onUpdate:x":y=>f.css.left=y,y:f.css.top,"onUpdate:y":y=>f.css.top=y,w:f.css.width,"onUpdate:w":y=>f.css.width=y,"init-w":f.css.width,"init-h":f.css.height,parent:!0,style:{cursor:"move"},"min-width":20,"min-height":20,onResizing:i,onDragging:s,onMousedown:y=>n.value=p},{default:e.withCtx(()=>[e.createElementVNode("div",bc,e.toDisplayString(p+1),1)]),_:2},1032,["h","onUpdate:h","x","onUpdate:x","y","onUpdate:y","w","onUpdate:w","init-w","init-h","onMousedown"]))),128))],36)):(e.openBlock(),e.createElementBlock("div",kc,[e.createVNode(k,{description:"\u8BF7\u4E0A\u4F20\u56FE\u7247"})]))]),e.createElementVNode("div",Cc,[Ec,e.createVNode(d,{"label-width":"80px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(m,{label:"\u80CC\u666F\u56FE "},{default:e.withCtx(()=>[e.createVNode(E,{modelValue:l.background,"onUpdate:modelValue":g[1]||(g[1]=f=>l.background=f)},null,8,["modelValue"])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.views,(f,p)=>(e.openBlock(),e.createBlock(m,{key:p,label:"\u70ED\u533A\u5730\u5740"+(p+1)},{default:e.withCtx(()=>[e.createElementVNode("div",wc,[e.createVNode(B,{modelValue:l.views[p].url,"onUpdate:modelValue":y=>l.views[p].url=y,placeholder:"\u586B\u5199\u8DF3\u8F6C\u5730\u5740",style:{width:"100%","margin-right":"5px"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(b,{type:"danger",plain:"",onClick:y=>r(p)},{default:e.withCtx(()=>[e.createVNode(w,{icon:"Delete"})]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128))]),_:1}),e.createVNode(b,{disabled:!l.background,type:"primary",onClick:g[2]||(g[2]=f=>a())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.background?"\u6DFB\u52A0\u70ED\u533A":"\u8BF7\u5148\u4E0A\u4F20\u56FE\u7247"),1)]),_:1},8,["disabled"])])])}}}),Fc=T(Vc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\component\\hot-area-content.vue"]]);const Dc={class:"dk-hot-area-input"},xc={class:"text-center"},Nc=e.defineComponent({name:"DkHotAreaInput"});var Ac=e.defineComponent({...Nc,props:jl,setup(o){const t=o,n=e.reactive(t.modelValue),l=e.ref(!1);return(a,r)=>{const s=e.resolveComponent("el-button"),i=e.resolveComponent("dk-dialog");return e.openBlock(),e.createElementBlock("div",Dc,[e.createVNode(s,{type:"primary",onClick:r[0]||(r[0]=c=>l.value=!0)},{default:e.withCtx(()=>[e.createTextVNode("\u8BBE\u7F6E\u70ED\u533A")]),_:1}),e.createVNode(i,{modelValue:l.value,"onUpdate:modelValue":r[2]||(r[2]=c=>l.value=c),width:"1000px",title:"\u8BBE\u7F6E\u70ED\u533A"},{footer:e.withCtx(()=>[e.createElementVNode("div",xc,[e.createVNode(s,{size:"default",style:{width:"200px"},type:"primary",onClick:r[1]||(r[1]=c=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u5B9A")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(Fc,{"hot-data-value":n},null,8,["hot-data-value"])]),_:1},8,["modelValue"])])}}}),Sc=T(Ac,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\hot-area-input.vue"]]);const vl=U(Sc),$c={modelValue:{type:Boolean,default:!1},title:Xe(""),fullscreen:{type:Boolean,default:!1},defaultFullscreen:{type:Boolean,default:!1},maxHeight:{type:String,default:""},draggable:{type:Boolean,default:!0},zIndex:{type:Number,default:1299}},Tc={class:"flex justify-between items-center relative"},Ic={class:"flex justify-between items-center absolute top-[50%] right-0 translate-y-[-50%]"},zc=e.defineComponent({name:"DkDialog"});var Rc=e.defineComponent({...zc,props:$c,setup(o){const t=o;se("dialog");const n=e.useSlots(),l=e.computed(()=>{const c=["fullscreen","title","maxHeight"],h={...e.useAttrs(),...t};for(const g in h)c.indexOf(g)!==-1&&delete h[g];return h}),a=e.ref(t.defaultFullscreen);e.watch(()=>t.defaultFullscreen,()=>{a.value=t.defaultFullscreen});const r=()=>{a.value=!e.unref(a)},s=e.ref(Bl(t.maxHeight)?`${t.maxHeight}px`:t.maxHeight);e.watch(()=>a.value,async c=>{if(await e.nextTick(),c){const u=document.documentElement.offsetHeight;s.value=`${u-55-60-(n.footer?63:0)}px`}else s.value=Bl(t.maxHeight)?`${t.maxHeight}px`:t.maxHeight},{immediate:!0});const i=e.computed(()=>({maxHeight:t.maxHeight==="auto"?"auto":e.unref(s)}));return(c,u)=>{const h=e.resolveComponent("dk-icon"),g=e.resolveComponent("ElScrollbar"),_=e.resolveComponent("ElDialog");return e.openBlock(),e.createBlock(_,e.mergeProps(l.value,{fullscreen:a.value,"destroy-on-close":"","append-to-body":"","lock-scroll":"",draggable:t.draggable,"close-on-click-modal":!1,"show-close":!1,class:"dk-dialog","z-index":t.zIndex}),e.createSlots({header:e.withCtx(({close:k})=>[e.renderSlot(c.$slots,"header",{},()=>[e.createElementVNode("div",Tc,[e.createElementVNode("span",null,e.toDisplayString(t.title),1),e.createElementVNode("div",Ic,[c.fullscreen?(e.openBlock(),e.createBlock(h,{key:0,class:"cursor-pointer is-hover mr-10px",icon:a.value?"radix-icons:exit-full-screen":"radix-icons:enter-full-screen",color:"var(--el-color-info)","hover-color":"var(--el-color-primary)",onClick:r},null,8,["icon"])):e.createCommentVNode("v-if",!0),e.createVNode(h,{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:e.withCtx(()=>[e.createVNode(g,{style:e.normalizeStyle(i.value)},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["style"])]),_:2},[e.unref(n).footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(c.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen","draggable","z-index"])}}}),Oc=T(Rc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\dialog\\src\\dialog.vue"]]);const Pc=U(Oc),Ml={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}};var jc={global:{upload:{props:{onSuccess(o,t){o.status===200?t.url=o.data.src:Q.ElMessage.error(o.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}};const vc={key:1},Mc=e.defineComponent({name:"DkForm"});var Lc=e.defineComponent({...Mc,props:Ml,emits:["submit","fail","update:modelValue"],setup(o,{expose:t,emit:n}){const l=o;se("form"),Qt.register({name:"help",init({value:C},V){Po(C)||(C=[C]),V.suffix={type:"p",children:C,class:"form-help"}}});const a=Qt.$form(),r=e.reactive(jc),s=e.ref(),i=e.ref(!0),c=e.ref(!1),u=e.ref(!1),{width:h}=$e.useWindowSize(),g=e.computed(()=>{const C=r;return h.value<768?(C.form.labelPosition="top",C.form.size="small"):(C.form.labelPosition="left",C.form.size="default"),{...C,...l.extraConfig}}),_=e.ref(null),k=e.ref(l.formData||{});e.watch(()=>l.formData,()=>{k.value=l.formData},{deep:!0}),e.watch(()=>_.value,C=>{n("update:modelValue",C||{})});const E=e.computed(()=>{let C="800px";const V=k.value?.config||{};if(V?.width)return V?.width;l.dialog?.width&&(C=l.dialog?.width),V?.defaultWidth&&(C=V?.defaultWidth);let x=768;return C.endsWith("%")||(x=parseInt(C)),h.value<x?"100%":C}),m=e.computed(()=>k.value?.config?.style?k.value?.config?.style:l.dialog?.style?l.dialog?.style:{}),B=e.computed(()=>{let C=!1;const V=k.value?.config?.autoFullscreen!==!1;return l.dialog?.width&&(C=l.dialog?.fullscreen),k.value?.config?.fullscreen&&(C=k.value?.config?.fullscreen),h.value<768&&V&&(C=!0),C}),w=e.computed(()=>Object.assign(l.dialog,k.value?.config?.dialog)),b=C=>{_.value=null,k.value=C},d=C=>{if(C||(C=l.formUrl),l.formData)i.value=!1;else if(C){let V;wl(C)?V=C:V={url:C,method:"post"},X(V).then(x=>{k.value=x.data,i.value=!1}).catch(x=>{i.value=!1})}},f=()=>{s.value.validate().then(()=>{s.value.submit(C=>{p(C)}).catch(C=>{Q.ElMessage.warning(Object.values(C)[0][0].message)})}).catch(C=>{Q.ElMessage.warning(Object.values(C)[0][0].message)})},p=C=>{l.isLoading&&(c.value=!0),l.isSubmit?X({url:l.path+k.value.action,method:k.value.method,data:{formData:C}}).then(V=>{Q.ElMessage.success(V.msg),n("submit",C,V),c.value=!1}).catch(V=>{Q.ElMessage.error(V.msg),n("fail",C,V),c.value=!1}):(n("submit",C),c.value=!1),u.value=!1},y=()=>{u.value=!0};return e.onMounted(()=>{d()}),t({showDialog:u,buttonLoading:c,fApi:s,value:_,show:y,checkForm:f,onSubmit:p,initFormData:d,setFormData:b}),(C,V)=>{const x=e.resolveComponent("DkDialog");return l.isDialog?(e.openBlock(),e.createBlock(x,e.mergeProps({key:0,modelValue:u.value,"onUpdate:modelValue":V[3]||(V[3]=D=>u.value=D),title:k.value?.title?k.value?.title:"\u8868\u5355",width:E.value,"default-fullscreen":B.value,"min-height":"200px"},w.value,{"max-height":"auto","append-to-body":""}),{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(m.value),class:"dk-form p10px"},[e.createVNode(e.unref(a),{modelValue:_.value,"onUpdate:modelValue":V[0]||(V[0]=D=>_.value=D),option:g.value,rule:k.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":V[1]||(V[1]=D=>s.value=D),"onUpdate:value":V[2]||(V[2]=D=>_.value=D)},null,8,["modelValue","option","rule"]),e.createElementVNode("div",{style:e.normalizeStyle({marginLeft:r.form.labelWidth}),class:"m-t-10px"},[e.renderSlot(C.$slots,"buttons",{},()=>[e.createVNode(e.unref(Q.ElButton),{type:"primary",loading:c.value,onClick:f},{default:e.withCtx(()=>[e.createTextVNode(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4)]),_:3},16,["modelValue","title","width","default-fullscreen"])):(e.openBlock(),e.createElementBlock("div",vc,[e.createElementVNode("div",{style:e.normalizeStyle({minHeight:C.minHeight}),class:"dk-form"},[e.createVNode(e.unref(a),{modelValue:_.value,"onUpdate:modelValue":V[4]||(V[4]=D=>_.value=D),option:g.value,rule:k.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":V[5]||(V[5]=D=>s.value=D),"onUpdate:value":V[6]||(V[6]=D=>_.value=D)},null,8,["modelValue","option","rule"]),e.createElementVNode("div",{style:e.normalizeStyle({marginLeft:r.form.labelWidth}),class:"m-t-10px"},[e.renderSlot(C.$slots,"buttons",{},()=>[e.createVNode(e.unref(Q.ElButton),{type:"primary",loading:c.value,onClick:f},{default:e.withCtx(()=>[e.createTextVNode(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4),e.createCommentVNode(' <div v-else :style="{ minHeight }"></div>')]))}}}),Uc=T(Lc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\form\\src\\form.vue"]]);const Ll=U(Uc),Hc={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"},Wc=e.createElementVNode("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),qc=e.createElementVNode("path",{fill:"#B0B7BD",d:"m384,128l96,0l-128,-128l0,96c0,17.6 14.4,32 32,32z",style:{fill:"#b0b7bd"}},null,-1),Gc=e.createElementVNode("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 ",style:{fill:"#cad1d8"}},null,-1),Yc=e.createElementVNode("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),Xc={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"},Jc={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"},Kc={x:"-1",y:"0"},Qc={x:"220",y:"380","text-anchor":"middle",fill:"white","font-family":"Verdana, Helvetica, Arial, sans-serif","font-size":"124"},Zc=e.defineComponent({name:"DkFileIcon"});var eu=e.defineComponent({...Zc,props:{type:{default:0,type:[Number,String]},fileSuffix:{default:"",type:String},fileName:{default:"",type:String},fileUrl:{default:"",type:String}},setup(o){const t=o,n=e.ref(t.type),l=e.computed(()=>{let r="";if(t.fileSuffix&&(r=t.fileSuffix),t.fileName){const s=t.fileName,i=s.lastIndexOf(".");i!==-1&&(r=s.substring(i+1))}if(t.fileUrl){const s=t.fileUrl,i=s.lastIndexOf(".");i!==-1&&(r=s.substring(i+1))}return r.length>5?"\u672A\u77E5":r===""?"\u7A7A":r}),a=r=>{if(r==="PDF")return"#f44336";const s=["#0ca0ff","#16a806","#f44336","#ff374e","#ccc","#32CD32","#867aff","#9a978f","#ffd5b2","#FFAA33","#6082B6"],i=r.charCodeAt(0)%s.length;return s[i]};return(r,s)=>(e.openBlock(),e.createElementBlock("svg",Hc,[e.createElementVNode("g",null,[Wc,qc,Gc,e.createElementVNode("path",{style:e.normalizeStyle({fill:a(l.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),Yc,n.value===2?(e.openBlock(),e.createElementBlock("path",Xc)):e.createCommentVNode("v-if",!0),n.value===3?(e.openBlock(),e.createElementBlock("path",Jc)):e.createCommentVNode("v-if",!0),e.createElementVNode("g",null,[e.createElementVNode("text",Kc,[e.createElementVNode("tspan",Qc,e.toDisplayString(l.value),1)])])])]))}}),st=T(eu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\file-icon.vue"]]);const Wo={type:{type:[Number,String],default:1},accept:{type:String,default:""}},tu={class:"dk-attachment attachment"},ou={class:"attachment-header flex justify-between pt-5px pb-5px"},nu={class:"header-form z"},lu={class:"header-button y"},au=e.createElementVNode("i",{class:"el-icon-delete el-icon--right"},null,-1),ru=e.createElementVNode("i",{class:"el-icon-upload el-icon--right"},null,-1),iu={class:"attachment-content flex"},su={class:"attachment-group"},cu={class:"group_list"},uu=["onClick"],du={class:"ml-10px"},pu={class:"op"},mu={class:"attachment-container"},fu={key:0,class:"p2"},hu=["onClick","onContextmenu"],gu={class:"file"},yu=e.createElementVNode("div",{class:"u-m-t-30"},[e.createElementVNode("i",{class:"el-icon-loading"}),e.createElementVNode("span",null,"\u52A0\u8F7D\u4E2D")],-1),_u={key:1},bu={key:2},ku={key:3},Cu={class:"file-name over"},Eu={class:"right"},wu={class:"block p-10px"},Bu={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"340px"}},Vu=e.defineComponent({name:"DkAttachment"});var Fu=e.defineComponent({...Vu,props:Wo,setup(o,{expose:t}){const n=o,l=e.computed(()=>vo(n.type)),a=e.ref(""),r=e.ref([]),s=e.ref([]),i=e.ref([]),c=zo(),u=c.ApiUrl+"/adminapi/attachment/upload",h={"Access-Token":c.AccessToken},g=e.ref(),_=e.reactive({type:l.value,file:"file",group_id:0}),k=M=>{tc(i.value,M).then(Y=>{Q.ElMessage.success(Y.msg),j()})},E=M=>{console.log("res",M),M.code===0?(Q.ElMessage.success(M.msg),j()):Q.ElMessage.error(M.msg)},m=e.computed(()=>{let M="";if(n.accept)return n.accept;switch(l.value){case 0:break;case 1:M="image/*";break;case 2:M="audio/*";break;case 3:M="video/*";break}return M}),B=()=>{Q.ElMessageBox.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{ec(i.value).then(M=>{console.log(M),j()}).catch(M=>{console.log("deleteAttachment error",M)})}catch(M){console.log(M)}})},w=e.ref([]),b=e.computed(()=>v.value===0?{url:c.ApiUrl+"/adminapi/attachment/group/create",method:"get"}:{url:c.ApiUrl+"/adminapi/attachment/group/"+v.value+"/edit",method:"get"}),d=e.ref(),f=()=>{v.value=0,d.value.show()},p=M=>{Q.ElMessageBox.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{nc(M).then(Y=>{Q.ElMessage.success(Y.msg),C()}).catch(()=>{})}catch(Y){console.log(Y)}})},y=()=>{d.value.show()},C=()=>{x(),j()},V=M=>{v.value=M,F.value=1,j()},x=async()=>{try{const M=await oc(l.value);w.value=M.data}catch{}},D=e.ref(!0),$=e.ref([]),F=e.ref(1),A=e.ref(0),z=e.ref(10),R=e.ref(0),v=e.ref(0),N=M=>{z.value=M,j()},H=M=>{F.value=M,j()},j=async(M={})=>{ue();try{const Y=await Qs(F.value,z.value,l.value,v.value,M);$.value=Y.data,A.value=Y.msg,D.value=!1}catch{}},ue=()=>{r.value=[],i.value=[],s.value=[]},Ae=(M,Y)=>{const te=r.value.indexOf(Y);te>-1?(r.value.splice(te,1),i.value.splice(te,1),s.value.splice(te,1)):(r.value.push(Y),i.value.push(M.id),s.value.push(M))};return e.onMounted(()=>{x(),j()}),t({chooseFileId:i,chooseFileKey:r,chooseFileList:s,clearChoose:ue}),(M,Y)=>{const te=e.resolveComponent("el-button"),ye=e.resolveComponent("el-input"),Vt=e.resolveComponent("el-dropdown-item"),at=e.resolveComponent("el-dropdown-menu"),Ge=e.resolveComponent("el-dropdown"),il=e.resolveComponent("el-upload"),sl=e.resolveComponent("CirclePlusFilled"),rt=e.resolveComponent("el-icon"),No=e.resolveComponent("dk-icon"),Ao=e.resolveComponent("Tools"),cl=e.resolveComponent("el-popover"),ul=e.resolveComponent("el-image"),So=e.resolveComponent("Check"),$o=e.resolveComponent("el-pagination"),dl=e.resolveComponent("el-empty"),pl=e.resolveComponent("dk-form"),je=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",tu,[e.createCommentVNode(" \u9876\u90E8"),e.createElementVNode("div",ou,[e.createElementVNode("div",nu,[e.createVNode(ye,{modelValue:a.value,"onUpdate:modelValue":Y[0]||(Y[0]=q=>a.value=q),size:"default",placeholder:"\u8BF7\u8F93\u5165\u9644\u4EF6\u540D\u79F0",class:"input-with-select"},{append:e.withCtx(()=>[e.createVNode(te,{icon:e.unref(Jt.Search)},null,8,["icon"])]),_:1},8,["modelValue"])]),e.createElementVNode("div",lu,[e.createVNode(Ge,{class:"mr",trigger:"click",onCommand:k},{dropdown:e.withCtx(()=>[e.createVNode(at,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(q,Se)=>(e.openBlock(),e.createBlock(Vt,{key:Se,command:q.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(q.name),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createVNode(te,{size:"default",type:"info",disabled:r.value.length<=0},{default:e.withCtx(()=>[e.createTextVNode(" \u79FB\u52A8 ")]),_:1},8,["disabled"])]),_:1}),e.createVNode(te,{size:"default",type:"danger",disabled:r.value.length<=0,onClick:B},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664"),au]),_:1},8,["disabled"]),e.createVNode(il,{ref_key:"upload",ref:g,class:"dk-upload-button",action:u,multiple:"",data:_,"show-file-list":!1,headers:h,"on-success":E,accept:m.value,"list-type":"text"},{default:e.withCtx(()=>[e.createVNode(te,{type:"primary",size:"default"},{default:e.withCtx(()=>[e.createTextVNode("\u4E0A\u4F20"),ru]),_:1})]),_:1},8,["data","accept"])])]),e.createCommentVNode("\u5185\u90E8"),e.createElementVNode("div",iu,[e.createCommentVNode(" \u5206\u7EC4"),e.createElementVNode("div",su,[e.createElementVNode("h5",{class:"cursor-pointer flex items-center content-center",onClick:Y[1]||(Y[1]=q=>f())},[e.createTextVNode(" \u9644\u4EF6\u5206\u7EC4 "),e.createVNode(rt,{class:"m-l-5px"},{default:e.withCtx(()=>[e.createVNode(sl)]),_:1})]),e.createElementVNode("ul",cu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(q,Se)=>(e.openBlock(),e.createElementBlock("li",{key:Se,class:e.normalizeClass({active:v.value===q.id}),onClick:it=>V(q.id)},[q.id===v.value?(e.openBlock(),e.createBlock(No,{key:0,icon:"flat-color-icons:opened-folder"})):(e.openBlock(),e.createBlock(No,{key:1,icon:"flat-color-icons:folder"})),e.createElementVNode("span",du,e.toDisplayString(q.name),1),e.createVNode(cl,{placement:"right",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",pu,[q.id>0?(e.openBlock(),e.createBlock(rt,{key:0},{default:e.withCtx(()=>[e.createVNode(Ao)]),_:1})):e.createCommentVNode("v-if",!0)])]),default:e.withCtx(()=>[e.createVNode(te,{size:"small",type:"primary",onClick:Y[2]||(Y[2]=e.withModifiers(it=>y(),["stop"]))},{default:e.withCtx(()=>[e.createTextVNode("\u7F16\u8F91 ")]),_:1}),e.createVNode(te,{size:"small",type:"danger",onClick:it=>p(q.id)},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)],10,uu))),128))])]),e.createCommentVNode(" \u5217\u8868"),e.createElementVNode("div",mu,[D.value||$.value.length>0?e.withDirectives((e.openBlock(),e.createElementBlock("div",fu,[e.createElementVNode("ul",{class:"attachment-list cl",style:e.normalizeStyle({overflow:$.value.length>10?"auto":""})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(q,Se)=>(e.openBlock(),e.createElementBlock("li",{key:Se,class:e.normalizeClass({choose:r.value.indexOf(Se)>-1}),onClick:it=>Ae(q,Se),onContextmenu:e.withModifiers(it=>R.value=q.id,["prevent"])},[e.createElementVNode("div",gu,[q.type===1?(e.openBlock(),e.createBlock(ul,{key:0,class:"file",src:q.url,fit:"contain"},{placeholder:e.withCtx(()=>[yu]),_:2},1032,["src"])):e.createCommentVNode("v-if",!0),q.type===2?(e.openBlock(),e.createElementBlock("div",_u,[e.createVNode(st,{"file-name":q.filename,type:q.type},null,8,["file-name","type"])])):e.createCommentVNode("v-if",!0),q.type===3?(e.openBlock(),e.createElementBlock("div",bu,[e.createVNode(st,{"file-name":q.filename,type:q.type},null,8,["file-name","type"])])):e.createCommentVNode("v-if",!0),q.type===0?(e.openBlock(),e.createElementBlock("div",ku,[e.createVNode(st,{"file-name":q.filename},null,8,["file-name"])])):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",Cu,e.toDisplayString(q.name),1),e.createElementVNode("div",Eu,[e.createVNode(rt,null,{default:e.withCtx(()=>[e.createVNode(So)]),_:1})])],42,hu))),128))],4),e.createElementVNode("div",wu,[e.createVNode($o,{"current-page":F.value,layout:"total, prev, pager, next, jumper,sizes",total:A.value,"page-size":z.value,onSizeChange:N,onCurrentChange:H},null,8,["current-page","total","page-size"])])])),[[je,D.value]]):(e.openBlock(),e.createElementBlock("div",Bu,[e.createVNode(dl,{description:"\u6682\u65E0\u6570\u636E"})])),(e.openBlock(),e.createBlock(pl,{ref_key:"groupForm",ref:d,key:v.value,"form-url":b.value,"is-dialog":!0,onSubmit:Y[3]||(Y[3]=q=>C())},null,8,["form-url"]))])])])}}}),Du=T(Fu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\attachment.vue"]]);const Ul=U(Du),Hl={...Wo,title:{type:String,default:""},zIndex:{type:Number,default:1299}},xu={class:"text-center m2"},Nu=e.defineComponent({name:"DkAttachmentDialog"});var Au=e.defineComponent({...Nu,props:Hl,emits:["confirm"],setup(o,{expose:t,emit:n}){const l=o,[a,r]=se("attachment-dialog"),s=e.ref(),i=e.ref(!1),c=e.ref(l.title||Ds(l.type)),u=e.ref(vo(l.type)),h=()=>{s.value.chooseFileList.length>0?(n("confirm",s.value.chooseFileList||[]),i.value=!1):Q.ElMessage.warning({message:"\u8BF7\u5148\u9009\u62E9\u6587\u4EF6"})},g=()=>{i.value=!1};return t({dialogVisible:i,attachment:s,cancel:g,open:()=>{i.value=!0}}),(k,E)=>{const m=e.resolveComponent("dk-attachment"),B=e.resolveComponent("el-button"),w=e.resolveComponent("DkDialog");return e.openBlock(),e.createBlock(w,{modelValue:i.value,"onUpdate:modelValue":E[2]||(E[2]=b=>i.value=b),class:e.normalizeClass(e.unref(r)()),title:c.value,width:"1040px",fullscreen:!1,"z-index":k.zIndex},{default:e.withCtx(()=>[e.createVNode(m,{ref_key:"attachment",ref:s,type:u.value},null,8,["type"]),e.createElementVNode("div",xu,[e.createVNode(B,{type:"primary",size:"default",onClick:E[0]||(E[0]=b=>h())},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u5B9A")]),_:1}),e.createVNode(B,{size:"default",onClick:E[1]||(E[1]=b=>g())},{default:e.withCtx(()=>[e.createTextVNode("\u5173\u95ED")]),_:1})])]),_:1},8,["modelValue","class","title","z-index"])}}}),Su=T(Au,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment-dialog\\src\\attachment-dialog.vue"]]);const Wl=U(Su),ql={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:""}},$u={class:"show m-t-5px"},Tu={class:"image-error"},Iu={class:"image-slot"},zu={class:"no-image"},Ru=e.defineComponent({name:"DkFileInput"});var Ou=e.defineComponent({...Ru,props:ql,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("file-input"),r=e.ref(n.modelValue),s=e.ref();e.watch(()=>n.modelValue,g=>{r.value=g}),e.watch(()=>r.value,g=>{i(g)});const i=g=>{t("update:modelValue",g),t("input",g),t("change",g)},c=()=>{r.value=""},u=()=>{s.value.open()},h=g=>{r.value=g[0].url};return(g,_)=>{const k=e.resolveComponent("el-button"),E=e.resolveComponent("el-input"),m=e.resolveComponent("dk-icon"),B=e.resolveComponent("el-image"),w=e.resolveComponent("Picture"),b=e.resolveComponent("el-icon"),d=e.resolveComponent("Close"),f=e.resolveComponent("Plus"),p=e.resolveComponent("dk-attachment-dialog");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a)())},[e.createCommentVNode("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),g.showInput?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(E,{modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=y=>r.value=y),placeholder:g.placeholder,clearable:""},{append:e.withCtx(()=>[e.createVNode(k,{onClick:u},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),e.createCommentVNode("\u9009\u62E9\u7684\u662F\u56FE\u7247"),e.createElementVNode("div",$u,[g.type===1?(e.openBlock(),e.createBlock(B,{key:0,src:r.value,alt:"",fit:"contain",class:"file rd-4px","preview-src-list":[r.value]},{error:e.withCtx(()=>[e.createElementVNode("div",Tu,[e.createVNode(m,{icon:"Picture"})])]),_:1},8,["src","preview-src-list"])):(e.openBlock(),e.createBlock(st,{key:1,"file-url":r.value,class:"file rd-4px",type:g.type},null,8,["file-url","type"])),e.createElementVNode("em",{onClick:_[1]||(_[1]=y=>r.value="")},[e.createVNode(m,{icon:"Close"})])])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),e.createElementVNode("div",{class:"only-img flex justify-center items-center",style:e.normalizeStyle([{position:"relative"},{width:g.imgSize+"px",height:g.imgSize+"px"}]),onClick:u},[r.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createCommentVNode("\u56FE\u7247\u9644\u4EF6"),g.type===1?(e.openBlock(),e.createBlock(B,{key:0,src:r.value,alt:"",fit:"contain",style:{width:"100%",height:"100%"}},{error:e.withCtx(()=>[e.createElementVNode("div",Iu,[e.createElementVNode("div",zu,[e.createVNode(b,null,{default:e.withCtx(()=>[e.createVNode(w)]),_:1})])])]),_:1},8,["src"])):e.createCommentVNode("v-if",!0),e.createCommentVNode("\u5176\u4ED6\u9644\u4EF6"),g.type!==1&&r.value?(e.openBlock(),e.createBlock(st,{key:1,"file-url":r.value,class:"file rd-4px",type:g.type},null,8,["file-url","type"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:"close",onClick:_[2]||(_[2]=e.withModifiers(y=>c(),["stop"]))},[e.createVNode(b,null,{default:e.withCtx(()=>[e.createVNode(d)]),_:1})])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode("\u6CA1\u6709\u4E0A\u4F20\u7684\u65F6\u5019"),e.createElementVNode("div",{class:"media",style:e.normalizeStyle({lineHeight:g.imgSize+"px",fontSize:g.imgSize/2+"px"})},[e.createVNode(b,null,{default:e.withCtx(()=>[e.createVNode(f)]),_:1})],4)],64))],4)],64)),e.createVNode(p,{ref_key:"attachmentDialog",ref:s,type:g.type,onConfirm:h},null,8,["type"])],2)}}}),Pu=T(Ou,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-input\\src\\file-input.vue"]]);const Gl=U(Pu),Yl={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},ju=e.defineComponent({name:"DkImageInput"});var vu=e.defineComponent({...ju,props:Yl,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("image-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),type:1,class:e.unref(a)()}),null,16,["modelValue","class"])}}}),Mu=T(vu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-input\\src\\image-input.vue"]]);const Xl=U(Mu),Jl={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Lu=e.defineComponent({name:"DkAudioInput"});var Uu=e.defineComponent({...Lu,props:Jl,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("audio-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),type:2,class:e.unref(a)()}),null,16,["modelValue","class"])}}}),Hu=T(Uu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-input\\src\\audio-input.vue"]]);const Kl=U(Hu),Ql={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Wu=e.defineComponent({name:"DkVideoInput"});var qu=e.defineComponent({...Wu,props:Ql,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("video-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),type:3,class:e.unref(a)()}),null,16,["modelValue","class"])}}}),Gu=T(qu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-input\\src\\video-input.vue"]]);const Zl=U(Gu),ea={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}},Yu={class:"dk-image-list"},Xu=["onClick"],Ju={key:0},Ku=e.defineComponent({name:"DkFileListInput"});var Qu=e.defineComponent({...Ku,props:ea,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("file-list-input"),r=e.ref(n.modelValue),s=e.computed(()=>({width:n.imgSize+"px",height:n.imgSize+"px",lineHeight:n.imgSize+"px"})),i=e.ref(),c=()=>{i.value.open()},u=_=>{_.forEach(k=>{r.value.length<n.limit&&(r.value.push(k.url),g(r.value))})},h=_=>{r.value.splice(_,1)};e.watch(()=>n.modelValue,_=>{r.value=_}),e.watch(()=>r.value,_=>{g(_)});const g=_=>{t("update:modelValue",_),t("input",_),t("change",_)};return(_,k)=>{const E=e.resolveComponent("el-image"),m=e.resolveComponent("Close"),B=e.resolveComponent("el-icon"),w=e.resolveComponent("Plus"),b=e.resolveComponent("dk-attachment-dialog");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a)())},[e.createElementVNode("div",Yu,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(d,f)=>(e.openBlock(),e.createElementBlock("li",{key:f},[e.createElementVNode("div",{class:"file",style:e.normalizeStyle(s.value)},[_.type===1?(e.openBlock(),e.createBlock(E,{key:0,src:d,fit:"contain",style:e.normalizeStyle(s.value)},null,8,["src","style"])):(e.openBlock(),e.createBlock(st,{key:1,"file-url":d,class:"file rd-4px",type:_.type},null,8,["file-url","type"])),_.disabled?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:2,class:"close",onClick:p=>h(f)},[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(m)]),_:1})],8,Xu))],4)]))),128)),_.limit>r.value.length&&!_.disabled?(e.openBlock(),e.createElementBlock("li",Ju,[e.createElementVNode("div",{class:"chooseImage",style:e.normalizeStyle(s.value),onClick:k[0]||(k[0]=d=>c())},[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(w)]),_:1})],4)])):e.createCommentVNode("v-if",!0)])]),e.createVNode(b,{ref_key:"attachment",ref:i,type:_.type,onConfirm:u},null,8,["type"])],2)}}}),Zu=T(Qu,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-list-input\\src\\file-list-input.vue"]]);const ta=U(Zu),oa={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},ed=e.defineComponent({name:"DkImageListInput"});var td=e.defineComponent({...ed,props:oa,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("image-list-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-list-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),class:e.unref(a)(),type:1,onChange:c[1]||(c[1]=h=>s(r.value))}),null,16,["modelValue","class"])}}}),od=T(td,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-list-input\\src\\image-list-input.vue"]]);const na=U(od),la={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},nd=e.defineComponent({name:"DkAudioListInput"});var ld=e.defineComponent({...nd,props:la,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("audio-list-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-list-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),class:e.unref(a)(),type:2,onChange:c[1]||(c[1]=h=>s(r.value))}),null,16,["modelValue","class"])}}}),ad=T(ld,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-list-input\\src\\audio-list-input.vue"]]);const aa=U(ad),ra={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},rd=e.defineComponent({name:"DkVideoListInput"});var id=e.defineComponent({...rd,props:ra,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("video-list-input"),r=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{r.value=i}),e.watch(()=>r.value,i=>{s(i)});const s=i=>{t("update:modelValue",i),t("input",i),t("change",i)};return(i,c)=>{const u=e.resolveComponent("dk-file-list-input");return e.openBlock(),e.createBlock(u,e.mergeProps(i.$props,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value=h),class:e.unref(a)(),type:3,onChange:c[1]||(c[1]=h=>s(r.value))}),null,16,["modelValue","class"])}}}),sd=T(id,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-list-input\\src\\video-list-input.vue"]]);const ia=U(sd),sa={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}},ca={icon:{default:"",type:String},type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}},ua={type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}};function cd(o){return X({method:"post",url:"/adminapi/common/getIcons/",data:{query:o}})}const ud={class:"dk-icon-content"},dd={key:0,class:"text-center",style:{"font-size":"12px",color:"#999"}},pd={class:"search-icon"},md=e.defineComponent({name:"DkIconContent"});var fd=e.defineComponent({...md,props:ca,emits:["choose"],setup(o,{expose:t,emit:n}){const l=o;To.disableCache("all");function a(d){let f=[];for(const p in d)d.hasOwnProperty(p)&&Array.isArray(d[p])&&(f=f.concat(d[p]));return f}const r=Object.keys(gl).map(d=>d),s=a(Kt),i=e.ref(r),c=e.ref(s),u=To.listIcons(),h=e.ref(u),g=()=>{const{el:d,vant:f,cloud:p}=l.showTab;return d?"element":f?"vant":p?"cloud":l.type},_=e.ref(g()),k=e.ref(""),E=e.computed(()=>_.value==="element"?"\u641C\u7D22element-plus\u56FE\u6807":_.value==="vant"?"\u641C\u7D22vant\u56FE\u6807":"\u641C\u7D22\u4E91\u7AEF\u56FE\u6807"),m=e.ref(""),B=d=>{m.value=d,n("choose",d)},w=()=>{if(_.value==="element"){const d=k.value.toLowerCase();console.log(d),i.value=r.filter(f=>!!(d&&f.toLowerCase().includes(d)))}else _.value==="vant"?(console.log("use"),c.value=s.filter(d=>!!(k.value&&d.toLowerCase().includes(k.value)))):cd(k.value).then(d=>{h.value=d.data}).catch(d=>{console.log(d)})},b=()=>{k.value="",i.value=r,h.value=u,c.value=s};return t({chooseIcon:m}),(d,f)=>{const p=e.resolveComponent("dk-icon"),y=e.resolveComponent("el-tab-pane"),C=e.resolveComponent("el-empty"),V=e.resolveComponent("el-tabs"),x=e.resolveComponent("el-button"),D=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",ud,[e.createVNode(V,{modelValue:_.value,"onUpdate:modelValue":f[0]||(f[0]=$=>_.value=$)},{default:e.withCtx(()=>[l.showTab.el?(e.openBlock(),e.createBlock(y,{key:0,label:"element\u56FE\u6807",name:"element",class:"dk-tab-pane"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,($,F)=>(e.openBlock(),e.createBlock(p,{key:F,size:36,color:$==m.value?"var(--el-color-primary)":"",class:e.normalizeClass([$==m.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",onClick:A=>B($)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent($)))]),_:2},1032,["color","class","onClick"]))),128))]),_:1})):e.createCommentVNode("v-if",!0),l.showTab.vant?(e.openBlock(),e.createBlock(y,{key:1,label:"vant\u56FE\u6807",name:"vant",class:"dk-tab-pane"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,($,F)=>(e.openBlock(),e.createBlock(p,{key:F,size:36,color:$==m.value?"#409eff":"",class:e.normalizeClass([$==m.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",icon:$,onClick:A=>B($)},null,8,["color","class","icon","onClick"]))),128))]),_:1})):e.createCommentVNode("v-if",!0),l.showTab.cloud?(e.openBlock(),e.createBlock(y,{key:2,label:"\u4E91\u7AEF\u56FE\u6807",name:"cloud",class:"dk-tab-pane"},{default:e.withCtx(()=>[h.value.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,($,F)=>(e.openBlock(),e.createBlock(p,{key:F,icon:$,size:36,"hover-color":"var(--el-color-primary)",color:$==m.value?"#409eff":"",class:e.normalizeClass([$==m.value?"choose-icon":"dk-icon","cursor-pointer"]),onClick:A=>B($)},null,8,["icon","color","class","onClick"]))),128)),k.value?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("p",dd,"\u5F53\u524D\u663E\u793A\u5DF2\u7F13\u5B58\u7684\u56FE\u6807"))],64)):(e.openBlock(),e.createBlock(C,{key:1,description:"\u6682\u65E0\u56FE\u6807\uFF0C\u8BF7\u641C\u7D22"}))]),_:1})):e.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",pd,[e.createVNode(D,{modelValue:k.value,"onUpdate:modelValue":f[2]||(f[2]=$=>k.value=$),clearable:"",placeholder:E.value,onClear:b},{append:e.withCtx(()=>[e.createVNode(x,{icon:e.unref(Jt.Search),onClick:f[1]||(f[1]=$=>w())},null,8,["icon"])]),_:1},8,["modelValue","placeholder"])])])}}}),da=T(fd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-content.vue"]]);const hd={class:"text-center m2"},gd=e.defineComponent({name:"DkIconDialog"});var yd=e.defineComponent({...gd,props:ua,emits:["choose","confirm"],setup(o,{expose:t,emit:n}){const l=o,a=e.ref(!1),r=e.ref(),s=e.ref("");t({dialogVisible:a,open:()=>{a.value=!0},iconContent:r});const c=g=>{s.value=g,n("choose",g)},u=()=>{a.value=!1,n("confirm",s.value)},h=()=>{a.value=!1};return(g,_)=>{const k=e.resolveComponent("el-button"),E=e.resolveComponent("dk-dialog");return e.openBlock(),e.createBlock(E,{modelValue:a.value,"onUpdate:modelValue":_[0]||(_[0]=m=>a.value=m),title:"\u9009\u62E9\u56FE\u6807",width:"800px",class:"dk-icon-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("div",hd,[e.createVNode(k,{type:"primary",onClick:u},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u5B9A")]),_:1}),e.createVNode(k,{onClick:h},{default:e.withCtx(()=>[e.createTextVNode("\u5173\u95ED")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(da,e.mergeProps({ref_key:"iconContent",ref:r},l,{onChoose:c}),null,16)]),_:1},8,["modelValue"])}}}),pa=T(yd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-dialog.vue"]]);const _d={key:0,class:"show m-t-5px"},bd=e.defineComponent({name:"DkIconInput"});var kd=e.defineComponent({...bd,props:sa,emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,[l,a]=se("icon-input"),r=e.ref(n.modelValue),s=e.ref();e.watch(()=>n.modelValue,g=>{r.value=g}),e.watch(()=>r.value,g=>{c(g)});const i=e.computed(()=>{const{modelValue:g,..._}=n;return _}),c=g=>{t("update:modelValue",g),t("input",g),t("change",g)},u=()=>{s.value.open()},h=g=>{console.log(g),r.value=g};return(g,_)=>{const k=e.resolveComponent("el-button"),E=e.resolveComponent("el-input"),m=e.resolveComponent("dk-icon"),B=e.resolveComponent("Close"),w=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a)())},[e.createCommentVNode("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),e.createVNode(E,{modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=b=>r.value=b),placeholder:n.placeholder,clearable:""},{append:e.withCtx(()=>[e.createVNode(k,{onClick:u},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),e.createCommentVNode("\u9009\u62E9\u7684\u662F\u56FE\u7247"),n.preview?(e.openBlock(),e.createElementBlock("div",_d,[e.createVNode(m,{icon:r.value?r.value:"fluent:document-none-24-regular",class:"icon rd-4px cursor-pointer",size:50,color:r.value?"":"#ccc",onClick:u},null,8,["icon","color"]),e.createElementVNode("em",{onClick:_[1]||(_[1]=b=>r.value="")},[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(B)]),_:1})])])):e.createCommentVNode("v-if",!0),e.createCommentVNode("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),e.createVNode(pa,e.mergeProps({ref_key:"iconDialog",ref:s},i.value,{onConfirm:h}),null,16)],2)}}}),Cd=T(kd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-input.vue"]]);const ma=U(Cd),fa=U(da),ha=U(pa),Ed=[{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"]}],ga={components:{default:()=>Ed,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}},wd={class:"dk-style-input"},Bd={key:0,class:"p-5px"},Vd={key:1},Fd=e.defineComponent({name:"DkStyleInput"});var Dd=e.defineComponent({...Fd,props:ga,emits:["update:modelValue"],setup(o,{emit:t}){const n=o,l=e.ref(!1),a=e.ref([0]),r=e.ref({}),s=e.ref(!0),i=()=>{const h={};Object.keys(r.value).forEach(g=>{Object.keys(r.value[g]).forEach(_=>{h[_]=r.value[g][_]})}),t("update:modelValue",h)},c=e.ref([]),u=()=>{c.value=n.components.filter(g=>!n.hideComponents.includes(g.name));const h={};c.value.forEach(g=>{const _=g.params,k={};Object.keys(_).forEach(E=>{const m=_[E];n.modelValue[m]&&(k[m]=n.modelValue[m])}),h[g.name]=k}),r.value=h,s.value=!1};return e.watch(()=>n.modelValue,()=>{u()},{deep:!0}),e.onMounted(()=>{u()}),(h,g)=>{const _=e.resolveComponent("el-collapse-item"),k=e.resolveComponent("el-collapse"),E=e.resolveComponent("el-button"),m=e.resolveComponent("el-drawer");return e.openBlock(),e.createElementBlock("div",wd,[s.value?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",Bd,[n.isDrawer?(e.openBlock(),e.createElementBlock("div",Vd,[e.createVNode(E,{type:"primary",plain:"",style:{width:"100%"},size:"small",onClick:g[1]||(g[1]=B=>l.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.drawerText),1)]),_:1}),e.createVNode(m,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":g[3]||(g[3]=B=>l.value=B)},n.drawerProps),{default:e.withCtx(()=>[e.createVNode(k,{modelValue:a.value,"onUpdate:modelValue":g[2]||(g[2]=B=>a.value=B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(B,w)=>(e.openBlock(),e.createBlock(_,{key:w,title:"",name:w},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.title),1)]),default:e.withCtx(()=>[a.value.includes(w)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(B.name),e.mergeProps({key:0,modelValue:r.value[B.name],"onUpdate:modelValue":b=>r.value[B.name]=b},B.props,{onChange:i}),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])]),_:1},16,["modelValue"])])):(e.openBlock(),e.createBlock(k,{key:0,modelValue:a.value,"onUpdate:modelValue":g[0]||(g[0]=B=>a.value=B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(B,w)=>(e.openBlock(),e.createBlock(_,{key:w,title:"",name:w},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.title),1)]),default:e.withCtx(()=>[a.value.includes(w)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(B.name),e.mergeProps({key:0,modelValue:r.value[B.name],"onUpdate:modelValue":b=>r.value[B.name]=b},B.props,{onChange:i}),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]))]))])}}}),xd=T(Dd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-input\\src\\style-input.vue"]]);const ya=U(xd),_a={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}},Nd=["onMousedown"],Ad={style:{display:"flex"}},Sd=e.defineComponent({name:"DkBoxSizeInput"});var $d=e.defineComponent({...Sd,props:_a,emits:["update:modelValue"],setup(o,{emit:t}){const n=o,l=e.ref(),{width:a}=$e.useElementSize(l),r=e.reactive({all:"",first:"",second:"",third:"",fourth:""}),s=e.reactive({all:"px",first:"rem",second:"px",third:"px",fourth:"px"}),i=["px","%","rem","rm","vh","auto"],c=e.ref(""),u=e.ref(n.defaultIsMerge),h=e.ref(!1),g=e.ref(0),_=e.ref(!1),k=e.ref(null),E=e.ref(null),m=e.computed(()=>i.map(y=>({label:y,value:y}))),B=e.computed(()=>{let y;return n.type==="radius"?y=[{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"}]:y=[{position:"first",name:"\u4E0A",icon:"ArrowUp"},{position:"second",name:"\u53F3",icon:"ArrowRight"},{position:"third",name:"\u4E0B",icon:"ArrowDown"},{position:"fourth",name:"\u5DE6",icon:"ArrowLeft"}],y}),w=(y,C)=>{h.value=!0,g.value=C.clientX,c.value=y,k.value=b.bind(C),E.value=d.bind(C),document.addEventListener("mousemove",k.value),document.addEventListener("mouseup",E.value),document.body.style.cursor="ew-resize"},b=y=>{h.value&&(r[c.value]=y.clientX-g.value)},d=()=>{document.removeEventListener("mousemove",k.value),document.removeEventListener("mouseup",E.value),document.body.style.cursor="default",h.value=!1,c.value=""},f=()=>{const y=A=>{let z="px";return i.forEach(R=>{A.includes(R)&&(z=R)}),z},C=n.modelValue.split(" ")||["0px"];let[V,x=V,D=V,$=x]=C;C.length===4?u.value=!1:C.length===3?(u.value=!1,$=""):C.length===2?(u.value=!1,D=V,$=x):(u.value=!0,x=D=$=V);const F={first:V,second:x,third:D,fourth:$};for(const A in F)r[A]=parseInt(F[A])||0,s[A]=y(F[A]);u.value&&(r.all=r.first,s.all=s.first)};e.watch(()=>n.modelValue,()=>{f()});const p=()=>{if(u.value)s.all==="auto"?t("update:modelValue","auto"):t("update:modelValue",`${r.all}${s.all}`);else{let y="";for(const C in s)C!=="all"&&(s[C]==="auto"?y+="auto ":y+=`${r[C]}${s[C]} `);t("update:modelValue",y.trim())}};return e.watch(r,()=>{p()}),e.watch(u,()=>{p()}),e.watch(s,()=>{p()}),e.onMounted(()=>{f()}),(y,C)=>{const V=e.resolveComponent("dk-icon"),x=e.resolveComponent("el-tooltip"),D=e.resolveComponent("el-input"),$=e.resolveComponent("el-select-v2"),F=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:l,class:"dk-box-size-input"},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass((e.unref(a)>500,""))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(A,z)=>(e.openBlock(),e.createElementBlock("div",{key:z,style:{display:"flex"}},[e.createVNode(D,{modelValue:r[A.position],"onUpdate:modelValue":R=>r[A.position]=R,type:"number",controls:!1,disabled:s[A.position]=="auto"},e.createSlots({_:2},[e.unref(a)>600||e.unref(a)<500?{name:"prefix",fn:e.withCtx(()=>[e.createElementVNode("span",{class:"w-resize",onMousemove:b,onMousedown:R=>w(A.position,R),onMouseup:d},[e.createVNode(x,{"hide-after":0,class:"item",effect:"dark",content:A.name,placement:"top-start",disabled:_.value},{default:e.withCtx(()=>[e.createVNode(V,{icon:A.icon},null,8,["icon"])]),_:2},1032,["content","disabled"])],40,Nd)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode($,{modelValue:s[A.position],"onUpdate:modelValue":R=>s[A.position]=R,options:m.value},null,8,["modelValue","onUpdate:modelValue","options"])]))),128))],2),[[e.vShow,!u.value]]),e.withDirectives(e.createElementVNode("div",Ad,[e.createVNode(D,{modelValue:r.all,"onUpdate:modelValue":C[1]||(C[1]=A=>r.all=A),type:"number",controls:!1,disabled:s.all==="auto",clearable:n.clearable},{prefix:e.withCtx(()=>[e.createElementVNode("span",{class:"w-resize",onMousemove:b,onMousedown:C[0]||(C[0]=A=>w("all",A)),onMouseup:d},[e.createVNode(V,{icon:"Rank"})],32)]),_:1},8,["modelValue","disabled","clearable"]),e.createVNode($,{modelValue:s.all,"onUpdate:modelValue":C[2]||(C[2]=A=>s.all=A),options:m.value},null,8,["modelValue","options"])],512),[[e.vShow,u.value]]),n.showMerge?(e.openBlock(),e.createElementBlock("div",{key:0,class:"dk-full",onClick:C[3]||(C[3]=A=>u.value=!u.value)},[e.createVNode(x,{class:"item",effect:"dark",content:u.value?"\u72EC\u7ACB\u914D\u7F6E":"\u6279\u91CF\u914D\u7F6E",placement:"top","hide-after":0},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createBlock(F,{key:0},{default:e.withCtx(()=>[e.createVNode(V,{icon:"streamline:interface-layout-border-horizontal-border-cell-center-format-formatting"})]),_:1})):(e.openBlock(),e.createBlock(F,{key:1},{default:e.withCtx(()=>[e.createVNode(V,{icon:"streamline:interface-layout-border-full-grid-layout-layouts-module"})]),_:1}))]),_:1},8,["content"])])):e.createCommentVNode("v-if",!0)],512)}}}),Td=T($d,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\box-size-input\\src\\box-size-input.vue"]]);const ba=U(Td),ka={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)"}},Id=[{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>'}}],zd=[{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>'}}],Rd={class:"dk-style-box-input"},Od={class:"header"},Pd={class:"items-center"},jd=["title","onDblclick"],vd=["onUpdate:modelValue","onBlur"],Md=["width","height","viewBox","data-link-anchor","innerHTML"],Ld=e.createElementVNode("div",{style:{position:"absolute",display:"none",width:"100%",height:"100%"}},null,-1),Ud={class:"anchor-wrapper"},Hd=["onMousedown"],Wd=e.createElementVNode("span",{class:"title"}," \u5916\u8FB9\u8DDD ",-1),qd={class:"tools"},Gd={class:"thumnail border"},Yd=["title","onDblclick"],Xd=["onUpdate:modelValue","onBlur"],Jd=["width","height","viewBox","data-link-anchor","innerHTML"],Kd={class:"anchor-wrapper"},Qd=["onMousedown"],Zd=e.createElementVNode("span",{class:"title"}," \u5185\u8FB9\u8DDD ",-1),ep={class:"tools"},tp={class:"title"},op=e.createElementVNode("span",null," x ",-1),np=e.defineComponent({name:"DkStyleBoxInput"});var lp=e.defineComponent({...np,props:ka,emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,l=e.reactive({margin:!1,padding:!1,widthHeight:!1}),a=e.ref(),r=e.ref(),s=e.ref(),i=e.reactive({marginLeft:n.modelValue.marginLeft||"",marginRight:n.modelValue.marginRight||"",marginTop:n.modelValue.marginTop||"",marginBottom:n.modelValue.marginBottom||"",paddingLeft:n.modelValue.paddingLeft||"",paddingRight:n.modelValue.paddingRight||"",paddingTop:n.modelValue.paddingTop||"",paddingBottom:n.modelValue.paddingBottom||"",width:n.modelValue.width||"",height:n.modelValue.height||""}),c=e.ref(null),{width:u}=$e.useElementSize(c),h=e.reactive({padding:!1,margin:!1,size:!1}),g=e.computed(()=>{if(n.height==="auto"){const F=u.value/1.8;return F>200?200:F}else return n.height});e.watch(()=>n.modelValue,(F,A)=>{["marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","width","height"].forEach(R=>{F[R]!==A[R]&&(i[R]=F[R]||"")})},{deep:!0}),e.watch(i,()=>{const F=Object.keys(i).reduce((A,z)=>(i[z]!==""&&(A[z]=i[z]),A),{});t("update:modelValue",F),t("change",F)});const _=e.reactive({marginLeft:!1,marginRight:!1,marginTop:!1,marginBottom:!1,paddingLeft:!1,paddingRight:!1,paddingTop:!1,paddingBottom:!1,width:!1,height:!1}),k=e.ref(!1),E=e.reactive({x:0,y:0}),m=e.ref(null),B=e.ref(null),w=e.reactive({type:"",position:""}),b=e.reactive({display:"none",width:"0px",height:"0px",left:"0px",top:"0px"}),d=F=>{if(!k.value)return;const A=w.position,z=w.type,R=z+Zt(A),v=(N,H)=>{const j=N==="x"?"clientX":"clientY";b[H]=F[j]+"px";let ue=F[j]-E[N];(A==="top"||A==="left")&&(ue=-ue),i[R]=(parseInt(i[R])||0)+ue+"px",h[z]&&(i[z+"Top"]=i[R],i[z+"Bottom"]=i[R],i[z+"Left"]=i[R],i[z+"Right"]=i[R]),E[N]=F[j]};A==="left"||A==="right"?v("x","left"):(A==="top"||A==="bottom")&&v("y","top")},f=(F,A,z)=>{Object.assign(w,{position:A,type:F}),m.value=d.bind(z),document.addEventListener("mousemove",m.value),B.value=p.bind(z),document.addEventListener("mouseup",B.value),k.value=!0;const R=document.querySelector(".wrapper"),v=R?R.offsetWidth:0,N={margin:.9,padding:.9*.7},{clientX:H,clientY:j}=z,ue=(Ae,M,Y,te,ye)=>{document.body.style.cursor=Ae,Object.assign(b,{left:M,top:Y,width:te,height:ye,display:"block"})};E.x=H,E.y=j,A==="left"||A==="right"?ue("ew-resize",H+"px",j-g.value*.5*N[F]+"px","0.1px",g.value*N[F]+"px"):ue("ns-resize",H-v*.5*N[F]+"px",j+"px",v*N[F]+"px","0.1px")},p=()=>{document.removeEventListener("mousemove",m.value),document.removeEventListener("mouseup",B.value),k.value=!1,b.display="none",document.body.style.cursor="default",E.x=null,E.y=null},y=(F,A="move",z)=>{k.value||z.stopPropagation(),A!=="move"?l[F]=!1:(Object.keys(l).forEach(R=>{R!==F&&(l[R]=!1)}),l[F]=!0)},C=(F,A)=>{_[F]=!0,e.nextTick(()=>{F==="width"?r.value.focus():F==="height"?s.value.focus():a.value[A].focus()})},V=F=>F==="auto"?F:F==="0"||F===0?0:F===""?"-":F,x=F=>{if(_[F]=!1,i[F]===""||i[F]==="auto")return;if(!/^(\d*\.?\d+)(px|rem|%|vh)$/.test(i[F])){const z=parseInt(i[F]);isNaN(z)?i[F]="":(i[F]=z+"px",F.indexOf("padding")==0&&h.padding&&(i.paddingTop=i[F],i.paddingRight=i[F],i.paddingBottom=i[F],i.paddingLeft=i[F]),F.indexOf("margin")==0&&h.padding&&(i.marginTop=i[F],i.marginRight=i[F],i.marginBottom=i[F],i.marginLeft=i[F]))}},D=F=>{F==="widthHeight"?(i.width="",i.height=""):F==="margin"?(i.marginLeft="",i.marginRight="",i.marginTop="",i.marginBottom=""):F==="padding"&&(i.paddingLeft="",i.paddingRight="",i.paddingTop="",i.paddingBottom="")},$=F=>{h[F]=!h[F]};return(F,A)=>{const z=e.resolveComponent("dk-icon"),R=e.resolveComponent("el-popover"),v=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",Rd,[e.createElementVNode("div",{class:"position-line",style:e.normalizeStyle(b)},null,4),e.createElementVNode("div",Od,[e.createElementVNode("label",Pd,[e.createTextVNode(" \u5185\u5916\u8FB9\u8DDD | \u9AD8\u5BBD "),e.createVNode(R,{ref:"popover",placement:"bottom",title:"\u8BF4\u660E",width:280,trigger:"hover",content:n.help},{reference:e.withCtx(()=>[e.createVNode(z,{icon:"QuestionFilled",class:"m-l-5px vertical-text-top"})]),_:1},8,["content"])]),e.createCommentVNode(' <div class="float-right cursor-pointer">'),e.createCommentVNode(' <div class="name-header-operations">'),e.createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u9AD8\u5BBD" placement="top-start">'),e.createCommentVNode(` <dk-icon icon="Refresh" color="#303133" @click="onRefresh('widthHeight')"></dk-icon>`),e.createCommentVNode(" </el-tooltip>"),e.createCommentVNode(" </div>"),e.createCommentVNode(' <div class="name-header-operations">'),e.createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5185\u8FB9\u8DDD" placement="top-start">'),e.createCommentVNode(` <dk-icon icon="Refresh" color="var(&#45;&#45;el-color-success)" @click="onRefresh('padding')"></dk-icon>`),e.createCommentVNode(" </el-tooltip>"),e.createCommentVNode(" </div>"),e.createCommentVNode(' <div class="name-header-operations">'),e.createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5916\u8FB9\u8DDD" placement="top-start">'),e.createCommentVNode(` <dk-icon icon="Refresh" color="var(&#45;&#45;el-color-warning)" @click="onRefresh('margin')"></dk-icon>`),e.createCommentVNode(" </el-tooltip>"),e.createCommentVNode(" </div>"),e.createCommentVNode(" </div>"),e.createElementVNode("div",{ref_key:"box",ref:c,tabindex:"0",class:"wrapper",style:e.normalizeStyle([{"margin-top":"10px"},{height:g.value+"px"}])},[e.createElementVNode("div",{class:e.normalizeClass(["thumnail margin",l.margin?"thumnail-heightlight":""]),onMousemove:A[14]||(A[14]=N=>y("margin","move",N)),onMouseleave:A[15]||(A[15]=N=>y("margin","leave",N))},[e.createCommentVNode("\u5916\u8FB9\u8DDD Margin"),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Id),(N,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("span",{title:N.title,class:e.normalizeClass(`anchor-tip-${N.position} value-indicator`),onDblclick:j=>C(N.value,H)},[e.createElementVNode("span",null,e.toDisplayString(V(i[N.value])),1)],42,jd),e.withDirectives(e.createElementVNode("input",{ref_for:!0,ref_key:"inputField",ref:a,"onUpdate:modelValue":j=>i[N.value]=j,class:e.normalizeClass("input-box anchor-tip-"+N.position+(_[N.value]?" show":"")),onBlur:j=>x(N.value)},null,42,vd),[[e.vModelText,i[N.value]]]),(e.openBlock(),e.createElementBlock("svg",{width:N.svg.width,height:N.svg.height,viewBox:N.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":N.value,style:e.normalizeStyle(N.svg.style),class:"esm-modal-svg",innerHTML:N.svg.content},null,12,Md))]))),128))]),Ld,e.createElementVNode("div",Ud,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["left","right","top","bottom"],(N,H)=>e.createElementVNode("div",{key:H,class:e.normalizeClass(["anchor","anchor-"+N]),onMousemove:d,onMousedown:j=>f("margin",N,j),onMouseup:p},null,42,Hd)),64))]),Wd,e.createElementVNode("div",qd,[e.createVNode(v,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:e.withCtx(()=>[e.createVNode(z,{style:{"margin-right":"5px"},icon:"Connection",color:h.margin?"#f00":"#303133",onClick:A[0]||(A[0]=N=>$("margin"))},null,8,["color"])]),_:1}),e.createVNode(v,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5916\u8FB9\u8DDD",placement:"top-start"},{default:e.withCtx(()=>[e.createVNode(z,{icon:"Refresh",color:"#303133",onClick:A[1]||(A[1]=N=>D("margin"))})]),_:1})]),e.createCommentVNode("\u5916\u8FB9\u8DDD Margin END"),e.createCommentVNode("\u5185\u8FB9\u8DDD Padding"),e.createElementVNode("div",Gd,[e.createElementVNode("div",{class:e.normalizeClass(["thumnail padding",l.padding?"thumnail-heightlight":""]),onMousemove:A[12]||(A[12]=N=>y("padding","move",N)),onMouseleave:A[13]||(A[13]=N=>y("padding","leave",N))},[e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(zd),(N,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("span",{title:N.title,class:e.normalizeClass(`anchor-tip-${N.position} value-indicator`),onDblclick:j=>C(N.value,H+4)},[e.createElementVNode("span",null,e.toDisplayString(V(i[N.value])),1)],42,Yd),e.withDirectives(e.createElementVNode("input",{ref_for:!0,ref_key:"inputField",ref:a,"onUpdate:modelValue":j=>i[N.value]=j,class:e.normalizeClass("input-box anchor-tip-"+N.position+(_[N.value]?" show":"")),onBlur:j=>x(N.value)},null,42,Xd),[[e.vModelText,i[N.value]]]),(e.openBlock(),e.createElementBlock("svg",{width:N.svg.width,height:N.svg.height,viewBox:N.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":N.value,style:e.normalizeStyle(N.svg.style),class:"esm-modal-svg",innerHTML:N.svg.content},null,12,Jd))]))),128))]),e.createElementVNode("div",Kd,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["left","right","top","bottom"],(N,H)=>e.createElementVNode("div",{key:H,class:e.normalizeClass(["anchor","anchor-"+N]),onMousemove:d,onMousedown:j=>f("padding",N,j),onMouseup:p},null,42,Qd)),64))]),Zd,e.createElementVNode("div",ep,[e.createVNode(v,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:e.withCtx(()=>[e.createVNode(z,{style:{"margin-right":"5px"},icon:"Connection",color:h.padding?"#f00":"#303133",onClick:A[2]||(A[2]=N=>$("padding"))},null,8,["color"])]),_:1}),e.createVNode(v,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5185\u8FB9\u8DDD",placement:"top-start"},{default:e.withCtx(()=>[e.createVNode(z,{icon:"Refresh",color:"#303133",onClick:A[3]||(A[3]=N=>D("padding"))})]),_:1})]),e.createCommentVNode("\u5185\u8FB9\u8DDD END"),e.createElementVNode("div",{class:e.normalizeClass(["thumnail width-height",l.widthHeight?"thumnail-heightlight":""]),onMousemove:A[10]||(A[10]=N=>y("widthHeight","move",N)),onMouseleave:A[11]||(A[11]=N=>y("widthHeight","leave",N))},[e.createElementVNode("span",tp,[e.createElementVNode("span",{class:"content-unit left-0",onDblclick:A[4]||(A[4]=N=>C("width",9))},[e.createElementVNode("em",null,e.toDisplayString(V(i.width)),1)],32),e.withDirectives(e.createElementVNode("input",{ref_key:"inputWidth",ref:r,"onUpdate:modelValue":A[5]||(A[5]=N=>i.width=N),class:e.normalizeClass(["input-box absolute left-5% top-10px",_.width?" show":""]),onBlur:A[6]||(A[6]=N=>x("width"))},null,34),[[e.vModelText,i.width]]),op,e.createElementVNode("span",{class:"content-unit right-0",onDblclick:A[7]||(A[7]=N=>C("height",9))},[e.createElementVNode("em",null,e.toDisplayString(V(i.height)),1)],32),e.withDirectives(e.createElementVNode("input",{ref_key:"inputHeight",ref:s,"onUpdate:modelValue":A[8]||(A[8]=N=>i.height=N),class:e.normalizeClass(["input-box absolute right-5% top-10px",_.height?" show":""]),onBlur:A[9]||(A[9]=N=>x("height"))},null,34),[[e.vModelText,i.height]])])],34)],34)])],34)],4)])])}}}),ap=T(lp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-box-input\\src\\style-box-input.vue"]]);const Ca=U(ap),Ea={modelValue:{type:Object,default:()=>({})}},rp={class:"dk-style-font-input"},ip={style:{display:"flex","flex-flow":"wrap","align-items":"center"}},sp={class:"m-b-5px"},cp={style:{width:"100px"},class:"m-b-5px"},up={style:{width:"100px"},class:"m-r-5px m-b-5px"},dp={class:"m-r-5px m-b-5px"},pp={class:"m-b-5px"},mp=e.defineComponent({name:"DkStyleFontInput"});var fp=e.defineComponent({...mp,props:Ea,emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,l=400,a=100,r=e.reactive({color:n.modelValue.color||"",fontSize:n.modelValue.fontSize||"",fontWeight:n.modelValue.fontWeight||"",fontStyle:n.modelValue.fontStyle||"",textDecoration:n.modelValue.textDecoration||""});e.watch(r,c=>{const u=Object.keys(r).reduce((h,g)=>(r[g]!==""&&(h[g]=r[g]),h),{});t("update:modelValue",u),t("change",u)}),e.watch(()=>n.modelValue,()=>{["color","fontSize","fontWeight","fontStyle","textDecoration"].forEach(u=>{r[u]=n.modelValue[u]||""})},{deep:!0});const s=[{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"}],i=c=>{c==="all"?Object.keys(r).forEach(u=>{r[u]=""}):r[c]=""};return(c,u)=>{const h=e.resolveComponent("el-button"),g=e.resolveComponent("el-color-picker"),_=e.resolveComponent("el-tooltip"),k=e.resolveComponent("el-option"),E=e.resolveComponent("el-select"),m=e.resolveComponent("dk-icon"),B=e.resolveComponent("el-button-group");return e.openBlock(),e.createElementBlock("div",rp,[e.createCommentVNode(" \u989C\u8272\u3001\u5B57\u53F7\u3001\u7C97\u7EC6\u3001\u98CE\u683C\u3001\u88C5\u9970"),e.createElementVNode("div",ip,[e.createVNode(_,{placement:"top-end",trigger:"hover","show-after":l,"hide-after":a},{content:e.withCtx(()=>[e.createTextVNode(" \u6587\u5B57\u989C\u8272 "),e.createVNode(h,{size:"small",icon:"Refresh",color:"var(--el-text-color-primary)",disabled:r.color==="",onClick:u[0]||(u[0]=w=>i("color"))},{default:e.withCtx(()=>[e.createTextVNode("\u91CD\u7F6E")]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",sp,[e.createVNode(g,{modelValue:r.color,"onUpdate:modelValue":u[1]||(u[1]=w=>r.color=w)},null,8,["modelValue"])])]),_:1}),e.createElementVNode("div",cp,[e.createVNode(E,{modelValue:r.fontSize,"onUpdate:modelValue":u[2]||(u[2]=w=>r.fontSize=w),"remote-show-suffix":!1,placeholder:"\u5B57\u53F7","allow-create":"",clearable:"",filterable:!0},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["12px","14px","16px","18px","20px","24px","28px","32px","36px","40px","48px"],w=>e.createVNode(k,{key:w,label:w,value:w},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",up,[e.createVNode(E,{modelValue:r.fontWeight,"onUpdate:modelValue":u[3]||(u[3]=w=>r.fontWeight=w),"remote-show-suffix":!1,placeholder:"\u7C97\u7EC6","allow-create":"",clearable:"",filterable:!0},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,w=>e.createVNode(k,{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",dp,[e.createVNode(h,{type:r.fontStyle?"primary":"",onClick:u[4]||(u[4]=w=>r.fontStyle?r.fontStyle="":r.fontStyle="italic")},{default:e.withCtx(()=>[e.createVNode(m,{icon:"radix-icons:font-italic",title:"\u6587\u5B57\u503E\u659C"})]),_:1},8,["type"])]),e.createElementVNode("div",pp,[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(h,{type:r.textDecoration=="underline"?"primary":"",onClick:u[5]||(u[5]=w=>r.textDecoration=="underline"?r.textDecoration="":r.textDecoration="underline")},{default:e.withCtx(()=>[e.createVNode(m,{icon:"radix-icons:underline",title:"\u4E0B\u5212\u7EBF"})]),_:1},8,["type"]),e.createVNode(h,{type:r.textDecoration=="line-through"?"primary":"",onClick:u[6]||(u[6]=w=>r.textDecoration=="line-through"?r.textDecoration="":r.textDecoration="line-through")},{default:e.withCtx(()=>[e.createVNode(m,{icon:"radix-icons:strikethrough",title:"\u5220\u9664\u7EBF"})]),_:1},8,["type"]),e.createVNode(h,{type:r.textDecoration=="wavy underline"?"primary":"",onClick:u[7]||(u[7]=w=>r.textDecoration=="wavy underline"?r.textDecoration="":r.textDecoration="wavy underline")},{default:e.withCtx(()=>[e.createVNode(m,{icon:"mdi:format-underline-wavy",title:"\u6CE2\u6D6A\u7EBF"})]),_:1},8,["type"])]),_:1})]),e.createVNode(_,{placement:"top",trigger:"hover",content:"\u5168\u90E8\u91CD\u7F6E","show-after":l,"hide-after":a},{default:e.withCtx(()=>[e.createVNode(h,{type:"danger",plain:"",icon:"Delete",class:"m-l-5px m-b-5px",onClick:u[8]||(u[8]=w=>i("all"))})]),_:1})])])}}}),hp=T(fp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-font-input\\src\\style-font-input.vue"]]);const wa=U(hp),Ba={modelValue:{type:Object,default:()=>{}}},gp={class:"border-box"},yp={style:{width:"100%"},class:"m-l-20px"},_p={style:{display:"flex",width:"100%"}},bp=e.defineComponent({name:"DkStyleBorderInput"});var kp=e.defineComponent({...bp,props:Ba,emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,l=["top","right","bottom","left","all"],a=["px","%","rem","em","vw","vh"],r=e.ref("all"),s=e.ref(),{width:i}=$e.useElementSize(s),c=()=>({unit:"px"}),u=e.reactive({top:c(),right:c(),bottom:c(),left:c(),all:c(),radius:n.modelValue.borderRadius||"0px"}),h=e.computed(()=>{const E={};return l.forEach(m=>{m==="all"?(u[m].borderWidth&&(E.borderWidth=u[m].borderWidth+(u[m].unit||"px")),u[m].borderStyle&&(E.borderStyle=u[m].borderStyle),u[m].borderColor&&(E.borderColor=u[m].borderColor)):(u[m].borderWidth&&(E["border"+Zt(m)+"Width"]=u[m].borderWidth+(u[m].unit||"px")),u[m].borderStyle&&(E["border"+Zt(m)+"Style"]=u[m].borderStyle),u[m].borderColor&&(E["border"+Zt(m)+"Color"]=u[m].borderColor))}),u.radius!=="0px"&&(E.borderRadius=u.radius),E});e.watch(h,()=>{t("update:modelValue",h.value),t("change",h.value)});const g=()=>{["borderWidth","borderStyle","borderColor","borderRightWidth","borderRightStyle","borderRightColor","borderLeftWidth","borderLeftStyle","borderLeftColor","borderTopWidth","borderTopStyle","borderTopColor","borderBottomWidth","borderBottomStyle","borderBottomColor","borderRadius"].forEach(m=>{if(n.modelValue[m])if(m==="borderRadius")u.radius=n.modelValue[m];else{let[B,w,b]=m.split(/(?=[A-Z])/),d=w.toLowerCase();const f=n.modelValue[m];if(l.indexOf(d)===-1&&(d="all",b=w),b==="Width"){const p=parseInt(f)||0,y=f.replace(p+"","")||"px";a.indexOf(y)>-1&&(u[d].unit=y,u[d].borderWidth=p)}else u[d]["border"+b]=f}else if(m==="borderRadius")u.radius="0px";else{let[B,w,b]=m.split(/(?=[A-Z])/),d=w.toLowerCase();l.indexOf(d)===-1&&(d="all",b=w),n.modelValue[m],b==="Width"?(delete u[d].borderWidth,delete u[d].unit):delete u[d]["border"+b]}})},_=()=>{r.value==="all"?l.forEach(E=>{E!=="all"&&(u[E]={unit:"px"})}):l.forEach(E=>{E==="all"&&(u[E]={unit:"px"})})},k=E=>{E==="radius"?u.radius="0px":delete u[r.value][E]};return e.watch(()=>n.modelValue,()=>{g()},{deep:!0}),e.onMounted(()=>{g()}),(E,m)=>{const B=e.resolveComponent("dk-icon"),w=e.resolveComponent("el-tooltip"),b=e.resolveComponent("el-slider"),d=e.resolveComponent("el-input"),f=e.resolveComponent("el-option"),p=e.resolveComponent("el-select"),y=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-color-picker"),D=e.resolveComponent("dk-box-size-input"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:s,class:e.normalizeClass(["dk-style-border-input",e.unref(i)<400?"mini":""])},[e.createElementVNode("div",gp,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,F=>e.createVNode(B,{key:F,icon:"gg:border-"+F,class:e.normalizeClass("border-box-option border-"+F+" "+(r.value==F?"selected":"")),size:24,style:e.normalizeStyle("grid-area: border-"+F+" / border-"+F+" / border-"+F+" / border-"+F+";"),onClick:A=>r.value=F},null,8,["icon","class","style","onClick"])),64))]),e.createElementVNode("div",yp,[e.createCommentVNode(" \u6837\u5F0F\u3001\u5BBD\u5EA6\u3001\u989C\u8272"),e.createVNode($,{"label-width":"50px","label-position":"left",size:"small"},{default:e.withCtx(()=>[e.createVNode(y,{value:"\u5C3A\u5BF8"},{label:e.withCtx(()=>[e.createVNode(w,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!u[r.value].borderWidth},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["cursor-pointer",u[r.value].borderWidth?"color-blue":""]),onClick:m[0]||(m[0]=F=>k("borderWidth"))},"\u5C3A\u5BF8",2)]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",_p,[e.createVNode(b,{modelValue:u[r.value].borderWidth,"onUpdate:modelValue":m[1]||(m[1]=F=>u[r.value].borderWidth=F),class:"dk-border-slider",max:50,onChange:m[2]||(m[2]=F=>_())},null,8,["modelValue"]),e.createVNode(d,{modelValue:u[r.value].borderWidth,"onUpdate:modelValue":m[3]||(m[3]=F=>u[r.value].borderWidth=F),class:"dk-border-input",type:"number",onChange:m[4]||(m[4]=F=>_())},{default:e.withCtx(()=>[e.createCommentVNode(" <template #append>"),e.createCommentVNode(" <el-select"),e.createCommentVNode(' v-model="form[position].unit"'),e.createCommentVNode(' placeholder="px"'),e.createCommentVNode(' class="dk-border-select"'),e.createCommentVNode(' style="width: 50px"'),e.createCommentVNode(' suffix-icon=""'),e.createCommentVNode(' @change="clearOtherBorder()"'),e.createCommentVNode(" >"),e.createCommentVNode(" <el-option"),e.createCommentVNode(' v-for="item in units"'),e.createCommentVNode(' :key="item"'),e.createCommentVNode(' :label="item"'),e.createCommentVNode(' :value="item"'),e.createCommentVNode(" />"),e.createCommentVNode(" </el-select>"),e.createCommentVNode(" </template>")]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:u[r.value].unit,"onUpdate:modelValue":m[5]||(m[5]=F=>u[r.value].unit=F),placeholder:"px",class:"dk-border-select",style:{width:"60px"},onChange:m[6]||(m[6]=F=>_())},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,F=>e.createVNode(f,{key:F,label:F,value:F},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(y,{value:"\u6837\u5F0F"},{label:e.withCtx(()=>[e.createVNode(w,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!u[r.value].borderStyle},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["cursor-pointer",u[r.value].borderStyle?"color-blue":""]),onClick:m[7]||(m[7]=F=>k("borderStyle"))},"\u6837\u5F0F",2)]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createVNode(V,{modelValue:u[r.value].borderStyle,"onUpdate:modelValue":m[8]||(m[8]=F=>u[r.value].borderStyle=F),onChange:m[9]||(m[9]=F=>_())},{default:e.withCtx(()=>[e.createVNode(C,{value:"solid",name:"type"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"gg:border-style-solid"})]),_:1}),e.createVNode(C,{value:"dotted",name:"type"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"gg:border-style-dotted"})]),_:1}),e.createVNode(C,{value:"dashed",name:"type"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"gg:border-style-dashed"})]),_:1}),e.createVNode(C,{value:"double",name:"type"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"memory:box-light-double-horizontal"})]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(y,{label:"\u989C\u8272"},{label:e.withCtx(()=>[e.createVNode(w,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!u[r.value].borderColor},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["cursor-pointer",u[r.value].borderColor?"color-blue":""]),onClick:m[10]||(m[10]=F=>k("borderColor"))},"\u989C\u8272",2)]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createVNode(x,{modelValue:u[r.value].borderColor,"onUpdate:modelValue":m[11]||(m[11]=F=>u[r.value].borderColor=F)},null,8,["modelValue"])]),_:1}),e.createVNode(y,{label:"\u5F27\u5EA6"},{label:e.withCtx(()=>[e.createVNode(w,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:u.radius=="0px"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["cursor-pointer",u.radius!=="0px"?"color-blue":""]),onClick:m[12]||(m[12]=F=>k("radius"))},"\u5F27\u5EA6",2)]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createVNode(D,{modelValue:u.radius,"onUpdate:modelValue":m[13]||(m[13]=F=>u.radius=F),type:"radius"},null,8,["modelValue"])]),_:1})]),_:1})])],2)}}}),Cp=T(kp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-border-input\\src\\style-border-input.vue"]]);const Va=U(Cp),Fa={modelValue:{type:Object,default:()=>({backgroundImage:"",backgroundColor:""})}},Ep={class:"dk-style-background-input"},wp=e.defineComponent({name:"DkStyleBackgroundInput"});var Bp=e.defineComponent({...wp,props:Fa,emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,l=e.reactive({backgroundImage:"",backgroundColor:""});e.watch(l,()=>{const r={};l.backgroundColor&&(r.backgroundColor=l.backgroundColor),l.backgroundImage&&(r.backgroundImage=`url(${l.backgroundImage})`),t("update:modelValue",r),t("change",r)},{deep:!0});const a=()=>{l.backgroundColor=n.modelValue.backgroundColor||"";const r=n.modelValue.backgroundImage;if(r){const s=/url\((.+)\)/,i=r.match(s);i&&(l.backgroundImage=i[1])}};return e.watch(()=>n.modelValue,()=>{a()}),e.onMounted(()=>{a()}),(r,s)=>{const i=e.resolveComponent("el-color-picker"),c=e.resolveComponent("dk-image-input");return e.openBlock(),e.createElementBlock("div",Ep,[e.createVNode(i,{modelValue:l.backgroundColor,"onUpdate:modelValue":s[0]||(s[0]=u=>l.backgroundColor=u),"show-alpha":""},null,8,["modelValue"]),e.createVNode(c,{modelValue:l.backgroundImage,"onUpdate:modelValue":s[1]||(s[1]=u=>l.backgroundImage=u)},null,8,["modelValue"])])}}}),Vp=T(Bp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-background-input\\src\\style-background-input.vue"]]);const Da=U(Vp),xa={type:{default:"input",type:String},modelValue:{default:()=>{},type:Object}},Fp={class:"dk-style-shadow-input"},Dp={key:1,class:"shadow-list"},xp=e.defineComponent({name:"DkStyleShadowInput"});var Np=e.defineComponent({...xp,props:xa,emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,l=e.ref([]),a=e.ref("1"),r=()=>{l.value.push("2px 2px 3px 2px #E7E5E5FF"),a.value=l.value.length-1+""},s=u=>{l.value.splice(u,1)},i=()=>{n.modelValue.boxShadow&&(l.value=n.modelValue.boxShadow.split(","))},c=e.computed(()=>l.value.join(","));return e.watch(c,(u,h)=>{t("update:modelValue",{boxShadow:c.value}),t("change",{boxShadow:c.value})}),e.watch(()=>n.modelValue,()=>{i()},{deep:!0}),e.onMounted(()=>{i()}),(u,h)=>{const g=e.resolveComponent("dk-style-shadow-content"),_=e.resolveComponent("el-collapse-item"),k=e.resolveComponent("el-collapse"),E=e.resolveComponent("el-button"),m=e.resolveComponent("el-popover"),B=e.resolveComponent("el-input"),w=e.resolveComponent("dk-icon");return e.openBlock(),e.createElementBlock("div",Fp,[u.type==="collapse"?(e.openBlock(),e.createBlock(k,{key:0,modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=b=>a.value=b),accordion:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(b,d)=>(e.openBlock(),e.createBlock(_,{key:d,title:b,name:d+""},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:l.value[d],"onUpdate:modelValue":f=>l.value[d]=f},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createElementBlock("ul",Dp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(b,d)=>(e.openBlock(),e.createElementBlock("li",{key:d},[e.createVNode(B,{modelValue:l.value[d],"onUpdate:modelValue":f=>l.value[d]=f,disabled:""},{append:e.withCtx(()=>[e.createVNode(m,{placement:"right-start",title:"",width:"380",trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(E,null,{default:e.withCtx(()=>[e.createTextVNode("\u8BBE\u7F6E")]),_:1})]),default:e.withCtx(()=>[e.createVNode(g,{modelValue:l.value[d],"onUpdate:modelValue":f=>l.value[d]=f},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]),e.createVNode(w,{class:"close-shadow",icon:"Close","hover-color":"#f00",onClick:f=>s(d)},null,8,["onClick"])]))),128))])),e.createVNode(E,{class:"m-t-10px w-100%",onClick:r},{default:e.withCtx(()=>[e.createVNode(w,{icon:"Plus"})]),_:1})])}}}),Ap=T(Np,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);const Sp={class:"flex"},$p={class:"flex"},Tp={class:"flex"},Ip={class:"flex"},zp={class:"shadow-content-shortcut"},Rp={class:"default-css m-b-10px"},Op=e.createElementVNode("div",{class:"m-b-10px"},"\u5E38\u7528\u6837\u5F0F",-1),Pp=[e.createElementVNode("i",{id:"center"},null,-1)],jp=e.defineComponent({name:"DkStyleShadowContent"});var vp=e.defineComponent({...jp,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(o,{emit:t}){const n=o,l=e.ref(null);$e.useElementSize(l);const a=e.reactive({color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"}),r=["px","%","rem","em","vw","vh"],s=e.ref(!1),i=e.reactive({left:0,top:0}),c=e.ref(""),u=e.ref(),h=e.computed(()=>({left:i.left+"px",top:i.top+"px"})),g=(m,B)=>{if(s.value||B){const w=u.value.getBoundingClientRect();i.left=parseInt(String(m.clientX-w.x)),i.top=parseInt(String(m.clientY-w.y))}};e.watch(i,()=>{a.x=parseInt(String((i.left-n.boxSize/2)/n.boxSize*n.max)),a.y=parseInt(String((i.top-n.boxSize/2)/n.boxSize*n.max))}),e.watch(a,()=>{let m=`${a.x}${a.x_unit} ${a.y}${a.y_unit} ${a.vague}${a.vague_unit} ${a.extend}${a.extend_unit} ${a.color}`;a.type==="inset"&&(m=m+" inset"),t("update:modelValue",m)});const _=m=>{g(m,1),s.value=!0},k=m=>{m?.indexOf(" inset")>-1&&(a.type="inset",m=m.replace(" inset",""));const B=m.split("rgba");let w,b;B.length>1?(w="rgba"+B[1].trim(),b=B[0].trim().split(" ")):(b=B[0].trim().split(" "),w=b.pop()),a.color=w||"#000",a.x=parseInt(b[0])||0,a.y=parseInt(b[1])||0,a.vague=parseInt(b[2])||0,a.extend=parseInt(b[3])||0;const d=f=>{let p=f?.replace(/[-\d.]/g,"")||"px";return r.indexOf(p)===-1&&(p="px"),p};a.x_unit=d(b[0]),a.y_unit=d(b[1]),a.vague_unit=d(b[2]),a.extend_unit=d(b[3]),i.left=n.boxSize/2+a.x/n.max*n.boxSize||0,i.top=n.boxSize/2+a.y/n.max*n.boxSize||0},E=m=>{const B=m.value;k(B)};return e.onMounted(()=>{k(n.modelValue)}),(m,B)=>{const w=e.resolveComponent("el-radio-button"),b=e.resolveComponent("el-radio-group"),d=e.resolveComponent("el-form-item"),f=e.resolveComponent("dk-color-input"),p=e.resolveComponent("el-input"),y=e.resolveComponent("el-option"),C=e.resolveComponent("el-select"),V=e.resolveComponent("el-form"),x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:l,class:"dk-style-shadow-content",style:e.normalizeStyle({"--shadow-box-width":o.boxSize+"px"})},[e.createVNode(V,{"label-width":"60px","label-position":"left",class:"shadow-form-content",size:o.size},{default:e.withCtx(()=>[e.createVNode(d,{label:"\u6A21\u5F0F"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:a.type,"onUpdate:modelValue":B[0]||(B[0]=D=>a.type=D)},{default:e.withCtx(()=>[e.createVNode(w,{value:"external"},{default:e.withCtx(()=>[e.createTextVNode("\u5916\u90E8")]),_:1}),e.createVNode(w,{value:"inset"},{default:e.withCtx(()=>[e.createTextVNode("\u5185\u90E8")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"\u989C\u8272"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.color,"onUpdate:modelValue":B[1]||(B[1]=D=>a.color=D),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"x\u8F74"},{default:e.withCtx(()=>[e.createElementVNode("div",Sp,[e.createVNode(p,{modelValue:a.x,"onUpdate:modelValue":B[2]||(B[2]=D=>a.x=D),type:"number"},null,8,["modelValue"]),e.createVNode(C,{modelValue:a.x_unit,"onUpdate:modelValue":B[3]||(B[3]=D=>a.x_unit=D),placeholder:"\u8BF7\u9009\u62E9"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,D=>e.createVNode(y,{key:D,label:D,value:D},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(d,{label:"y\u8F74"},{default:e.withCtx(()=>[e.createElementVNode("div",$p,[e.createVNode(p,{modelValue:a.y,"onUpdate:modelValue":B[4]||(B[4]=D=>a.y=D),type:"number"},null,8,["modelValue"]),e.createVNode(C,{modelValue:a.y_unit,"onUpdate:modelValue":B[5]||(B[5]=D=>a.y_unit=D),placeholder:"\u8BF7\u9009\u62E9",class:"w-40px"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,D=>e.createVNode(y,{key:D,label:D,value:D},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(d,{label:"\u6A21\u7CCA"},{default:e.withCtx(()=>[e.createElementVNode("div",Tp,[e.createVNode(p,{modelValue:a.vague,"onUpdate:modelValue":B[6]||(B[6]=D=>a.vague=D),type:"number"},null,8,["modelValue"]),e.createVNode(C,{modelValue:a.vague_unit,"onUpdate:modelValue":B[7]||(B[7]=D=>a.vague_unit=D),placeholder:"\u8BF7\u9009\u62E9"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,D=>e.createVNode(y,{key:D,label:D,value:D},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(d,{label:"\u6269\u5C55"},{default:e.withCtx(()=>[e.createElementVNode("div",Ip,[e.createVNode(p,{modelValue:a.extend,"onUpdate:modelValue":B[8]||(B[8]=D=>a.extend=D),type:"number"},null,8,["modelValue"]),e.createVNode(C,{modelValue:a.extend_unit,"onUpdate:modelValue":B[9]||(B[9]=D=>a.extend_unit=D),placeholder:"\u8BF7\u9009\u62E9"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,D=>e.createVNode(y,{key:D,label:D,value:D},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1})]),_:1},8,["size"]),e.createElementVNode("div",zp,[e.createElementVNode("div",Rp,[Op,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.defaultStyles,(D,$)=>(e.openBlock(),e.createBlock(x,{key:$,size:"small",onClick:F=>E(D)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(D.label),1)]),_:2},1032,["onClick"]))),128))]),e.createElementVNode("div",{ref_key:"box",ref:u,class:e.normalizeClass(["shadow-content-box",s.value?"down":""]),style:e.normalizeStyle({height:o.boxSize+"px",width:o.boxSize+"px"}),onClick:B[10]||(B[10]=D=>g(D,1)),onMousedown:_,onMouseup:B[11]||(B[11]=D=>s.value=!1),onMousemove:B[12]||(B[12]=D=>g(D,0))},[e.createElementVNode("span",{id:"spot",style:e.normalizeStyle(h.value)},Pp,4),e.createElementVNode("span",{id:"center-spot",style:e.normalizeStyle({top:o.boxSize/2+"px",left:o.boxSize/2+"px"})},null,4),e.createElementVNode("div",{class:"x-hr",style:e.normalizeStyle({top:o.boxSize/2+"px"})},null,4),e.createElementVNode("div",{class:"y-hr",style:e.normalizeStyle({left:o.boxSize/2+"px"})},null,4),e.createElementVNode("div",{class:"line",style:e.normalizeStyle(c.value)},null,4)],38)])],4)}}}),Mp=T(vp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-content.vue"]]);const Na=U(Ap),Aa=U(Mp),Sa={modelValue:{type:Object,default:()=>({})}},Lp={class:"m-t-10px"},Up=["onClick"],Hp=e.defineComponent({name:"DkStylePositionInput"});var Wp=e.defineComponent({...Hp,props:Sa,emits:["update:modelValue"],setup(o,{emit:t}){const n=o,l=e.ref(null),{width:a}=$e.useElementSize(l),r=e.computed(()=>a.value<=300?24:a.value<800?12:6),s=e.ref({left:n.modelValue.left||"",top:n.modelValue.top||"",right:n.modelValue.right||"",bottom:n.modelValue.bottom||""}),i=[{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"}],c=[{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"}],u=e.ref(!1),h=_=>{switch(u.value=!0,_){case"left-top":s.value={left:"1px",top:"1px",right:"",bottom:""};break;case"left-down":s.value={left:"1px",bottom:"1px",right:"",up:""};break;case"right-top":s.value={top:"1px",right:"1px",left:"",bottom:""};break;case"right-down":s.value={right:"1px",bottom:"1px",left:"",up:""};break;case"down-center":s.value={left:"1px",right:"1px",bottom:"1px",up:""};break;case"up-center":s.value={left:"1px",top:"1px",right:"1px",bottom:""};break}},g=()=>{const _=Object.keys(s.value).reduce((k,E)=>((u.value&&s.value[E]!="0px"||!u.value&&E!=="position")&&s.value[E]&&(k[E]=s.value[E]),k),{});t("update:modelValue",_)};return e.watch(()=>s.value,()=>{g()},{deep:!0}),e.watch(()=>n.modelValue,()=>{Object.keys(n.modelValue).reduce((_,k)=>(k!=="position"&&(_[k]=n.modelValue[k]),_),s.value)},{deep:!0}),(_,k)=>{const E=e.resolveComponent("el-radio-button"),m=e.resolveComponent("el-radio-group"),B=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-tooltip"),b=e.resolveComponent("dk-style-number-input"),d=e.resolveComponent("el-col"),f=e.resolveComponent("el-row"),p=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:l,class:"dk-style-position-input"},[e.createVNode(p,{"label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(B,{label:"\u5E38\u7528"},{default:e.withCtx(()=>[e.createVNode(m,{onChange:h},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,(y,C)=>e.createVNode(E,{key:C,label:y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["label"])),64))]),_:1})]),_:1})]),e.createElementVNode("div",Lp,[e.createVNode(f,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,(y,C)=>e.createVNode(d,{key:C,span:r.value,class:"m-b-5px"},{default:e.withCtx(()=>[e.createVNode(B,{label:y.label},{label:e.withCtx(()=>[e.createVNode(w,{class:"item",effect:"dark",content:y.tip,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle([{cursor:"pointer"},s.value[y.value]?"color:var(--el-color-primary)":""]),onClick:V=>s.value[y.value]=""},e.toDisplayString(y.label)+"\uFF1A",13,Up)]),_:2},1032,["content"])]),default:e.withCtx(()=>[e.createVNode(b,{modelValue:s.value[y.value],"onUpdate:modelValue":V=>s.value[y.value]=V,onInput:k[0]||(k[0]=V=>u.value=!1)},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:2},1032,["span"])),64))]),_:1})])]),_:1})],512)}}}),qp=T(Wp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-position-input\\src\\style-position-input.vue"]]);const $a=U(qp),Ta={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}},Gp=e.defineComponent({name:"DkStyleNumberInput"});var Yp=e.defineComponent({...Gp,props:Ta,emits:["input","update:modelValue"],setup(o,{emit:t}){const n=o,l=Dl(n.modelValue,n.units),a=e.reactive({number:l.number,unit:l.unit||"px"}),r=e.ref(!1),s=e.ref(null),i=e.ref(null),c=e.ref(0),u=e.ref(0),h=k=>{r.value=!0,u.value=k.clientX,c.value=k.clientY,s.value=g.bind(k),i.value=_.bind(k),document.addEventListener("mousemove",s.value),document.addEventListener("mouseup",i.value),document.body.style.cursor="ew-resize"},g=k=>{if(r.value){let E;if(n.direction==="horizontal"){const m=k.clientX-u.value;E=Math.floor(m/10),u.value+=E*10}else if(n.direction==="vertical"){const m=k.clientY-c.value;E=Math.floor(m/10),c.value+=E*10}a.number=parseInt(a.number+E)}},_=()=>{console.log("up"),document.removeEventListener("mousemove",s.value),document.removeEventListener("mouseup",i.value),document.body.style.cursor="default",r.value=!1};return e.watch(()=>a,()=>{a.number===""?t("update:modelValue",""):t("update:modelValue",a.number+a.unit)},{deep:!0}),e.watch(()=>n.modelValue,()=>{const k=Dl(n.modelValue,n.units);a.number=k.number,a.unit=k.unit||"px"}),(k,E)=>{const m=e.resolveComponent("dk-icon"),B=e.resolveComponent("el-tooltip"),w=e.resolveComponent("el-option"),b=e.resolveComponent("el-select"),d=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dk-style-number-input",n.direction])},[e.createVNode(d,{modelValue:a.number,"onUpdate:modelValue":E[1]||(E[1]=f=>a.number=f),type:"text",controls:!1,onInput:E[2]||(E[2]=f=>t("input",f))},e.createSlots({prefix:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["w-resize",[`${n.direction}-resize`]]),onMousemove:g,onMousedown:h,onMouseup:_},[e.createVNode(B,{class:"item",effect:"dark",disabled:!n.tooltipContent,content:n.tooltipContent,placement:"top","open-delay":500},{default:e.withCtx(()=>[e.createVNode(m,{icon:n.icon||"Rank"},null,8,["icon"])]),_:1},8,["disabled","content"])],34)]),_:2},[k.showUnit?{name:"append",fn:e.withCtx(()=>[e.createVNode(b,{modelValue:a.unit,"onUpdate:modelValue":E[0]||(E[0]=f=>a.unit=f),style:{width:"40px"},"suffix-icon":""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.units,(f,p)=>(e.openBlock(),e.createBlock(w,{key:p,label:f,value:f},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),key:"0"}:void 0]),1032,["modelValue"])],2)}}}),Xp=T(Yp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-number-input\\src\\style-number-input.vue"]]);const Ia=U(Xp);function xt(o,t,n){o[t]=n}const _e={type(o,t){return Object.prototype.toString.call(o)==="[object "+t+"]"},Undef(o){return o==null},Element(o){return typeof o=="object"&&o!==null&&o.nodeType===1&&!_e.Object(o)},trueArray(o){return Array.isArray(o)&&o.length>0},Function(o){const t=this.getType(o);return t==="Function"||t==="AsyncFunction"},getType(o){const t=Object.prototype.toString.call(o);return/^\[object (.*)\]$/.exec(t)[1]},empty(o){return o==null||Array.isArray(o)&&Array.isArray(o)&&!o.length?!0:typeof o=="string"&&!o}};["Date","Object","String","Boolean","Array","Number"].forEach(o=>{_e[o]=function(t){return _e.type(t,o)}});function Jp(o,t){return{}.hasOwnProperty.call(o,t)}function za(o,t={},n){let l=!1;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let r=t[a];if((l=Array.isArray(r))||_e.Object(r)){let s=o[a]===void 0;if(l)l=!1,s&&xt(o,a,[]);else if(r._clone&&n!==void 0)if(n)r=r.getRule(),s&&xt(o,a,{});else{xt(o,a,r._clone());continue}else s&&xt(o,a,{});o[a]=za(o[a],r,n)}else xt(o,a,r),_e.Undef(r)||(_e.Undef(r.__json)||(o[a].__json=r.__json),_e.Undef(r.__origin)||(o[a].__origin=r.__origin))}return n!==void 0&&Array.isArray(o)?o.filter(a=>!a||!a.__ctrl):o}function ct(o){return za({},{value:o}).value}function Ra(o){return o.replace(o[0],o[0].toLowerCase())}const Kp={class:"preview-phone"},Qp={class:"phone"},Zp={class:"phone-header"},em={class:"phone-header-top"},tm={class:"phone-time"},om=e.createElementVNode("div",null,null,-1),nm={class:"phone-battery"},lm=e.createElementVNode("span",{class:"m-r-4px"},"100%",-1),am={class:"phone-title"},rm={class:"phone-title-icon"},im=e.createElementVNode("div",null,"\u9875\u9762\u6807\u9898",-1),sm={class:"phone-title-icon"},cm=e.defineComponent({name:"PreviewPhone"});var um=e.defineComponent({...cm,props:{value:{default:"",type:String},pageConfig:{default:()=>{},type:[Object]}},setup(o){const t=o,n=e.inject("diy"),l="preview-phone",a=JSON.parse(Te.get(l)||"{}"),r=e.ref({showLine:a.showLine||!0,margin:a.margin||2,preview:a.preview||!1,closeAnimate:a.closeAnimate||!1});e.provide("previewSetting",r);const s=()=>{Te.set(l,JSON.stringify(r.value))},i=(h="")=>{const{proxy:g}=n,_={rule:"\u7EC4\u4EF6",config:"\u914D\u7F6E"};Q.ElMessageBox.confirm("\u5F53\u524D\u8981\u6E05\u9664"+_[h]+"\uFF0C\u662F\u5426\u7EE7\u7EED?","\u8B66\u544A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{g.clear(h),Q.ElMessage.success("\u6E05\u9664\u6210\u529F")}).catch(()=>{})},c=e.computed(()=>{let h={"--padding":"0","--overflow":"initial"};return r.value.showLine&&!r.value.preview&&(h={"--margin":r.value.margin+"px","--showDashed":"1px"}),r.value.preview?(h["--padding"]="0",h["--overflow"]="hidden",h["--minHeight"]="0px"):(h["--padding"]="2px 0",h["--overflow"]="initial",h["--minHeight"]="30px"),{...t.pageConfig.style,...h}}),u=e.computed(()=>{const h=new Date,g=h.getHours(),_=h.getMinutes();return g+":"+_});return(h,g)=>{const _=e.resolveComponent("van-icon"),k=e.resolveComponent("dk-icon"),E=e.resolveComponent("el-dropdown-item"),m=e.resolveComponent("el-dropdown-menu"),B=e.resolveComponent("el-dropdown"),w=e.resolveComponent("el-tooltip"),b=e.resolveComponent("el-switch"),d=e.resolveComponent("el-form-item"),f=e.resolveComponent("el-slider"),p=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",Kp,[e.createElementVNode("div",Qp,[e.createElementVNode("div",Zp,[e.createElementVNode("div",em,[e.createElementVNode("div",tm,[e.createElementVNode("span",null,e.toDisplayString(u.value),1),e.createVNode(_,{name:"wechat",color:"#2ddd71"})]),om,e.createElementVNode("div",nm,[lm,e.createVNode(k,{icon:"gg:battery-full",size:18,color:"#555","hover-color":"#f00"})])]),e.createElementVNode("div",am,[e.createElementVNode("div",rm,[e.createVNode(B,{trigger:"click",placement:"bottom-start"},{dropdown:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>[e.createVNode(E,{onClick:g[0]||(g[0]=y=>i("rule"))},{default:e.withCtx(()=>[e.createTextVNode("\u6E05\u9664\u7EC4\u4EF6")]),_:1}),e.createVNode(E,{onClick:g[1]||(g[1]=y=>i("page"))},{default:e.withCtx(()=>[e.createTextVNode("\u6E05\u9664\u9875\u9762")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(k,{icon:"Close","hover-color":"var(--el-color-primary)",size:20,style:{cursor:"pointer"}})]),_:1})]),im,e.createElementVNode("div",sm,[e.createVNode(p,{placement:"bottom",width:200,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(k,{icon:"MoreFilled",size:20,"hover-color":"var(--el-color-primary)",style:{cursor:"pointer"}})]),default:e.withCtx(()=>[e.createVNode(d,{label:"\u663E\u793A\u7F51\u683C"},{label:e.withCtx(()=>[e.createVNode(w,{class:"box-item",effect:"dark",content:"\u663E\u793A\u7EC4\u4EF6\u7F51\u683C\u7EBF",placement:"right-start"},{default:e.withCtx(()=>[e.createTextVNode(" \u663E\u793A\u7F51\u683C ")]),_:1})]),default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.value.showLine,"onUpdate:modelValue":g[2]||(g[2]=y=>r.value.showLine=y),onChange:g[3]||(g[3]=y=>s())},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"\u7F51\u683C\u95F4\u8DDD"},{label:e.withCtx(()=>[e.createVNode(w,{class:"box-item",effect:"dark",content:"\u8BBE\u7F6E\u7EC4\u4EF6\u4E4B\u95F4\u7684\u7F51\u683C\u95F4\u8DDD",placement:"right-start"},{default:e.withCtx(()=>[e.createTextVNode(" \u7F51\u683C\u95F4\u8DDD ")]),_:1})]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.value.margin,"onUpdate:modelValue":g[4]||(g[4]=y=>r.value.margin=y),min:0,step:1,"show-stops":"",max:20,onChange:g[5]||(g[5]=y=>s())},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"\u6548\u679C\u9884\u89C8"},{label:e.withCtx(()=>[e.createVNode(w,{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:e.withCtx(()=>[e.createTextVNode(" \u6548\u679C\u9884\u89C8 ")]),_:1})]),default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.value.preview,"onUpdate:modelValue":g[6]||(g[6]=y=>r.value.preview=y),onChange:g[7]||(g[7]=y=>s())},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"\u5173\u95ED\u52A8\u753B"},{label:e.withCtx(()=>[e.createVNode(w,{class:"box-item",effect:"dark",content:"\u5173\u95ED\u6240\u6709\u9884\u89C8\u7684\u52A8\u753B\u6548\u679C",placement:"right-start"},{default:e.withCtx(()=>[e.createTextVNode(" \u5173\u95ED\u52A8\u753B ")]),_:1})]),default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.value.closeAnimate,"onUpdate:modelValue":g[8]||(g[8]=y=>r.value.closeAnimate=y),onChange:g[9]||(g[9]=y=>s())},null,8,["modelValue"])]),_:1})]),_:1})])])]),e.createElementVNode("div",{class:"phone-body _fc-m-drag",style:e.normalizeStyle(c.value)},[e.renderSlot(h.$slots,"default")],4)])])}}}),dm=T(um,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\PreviewPhone.vue"]]);const pm="\u6D77\u62A5",Oa="dk-poster-btn";var qo={icon:"icon-park-outline:mark",label:pm,name:Oa,rule(){return{type:Oa,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 mm="\u5F39\u5E55\u7EC4\u4EF6",Pa="DkViewBulletChat";var Go={icon:"mingcute:chat-1-line",label:mm,name:Pa,rule(){return{type:Pa,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 fm="\u5355\u5143\u683C",ja="DkViewCell";var Yo={icon:"cil:grid",label:fm,name:ja,rule(){return{type:ja,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 hm="\u901A\u7528\u6309\u94AE",va="DkViewCommonBtn";var Xo={icon:"game-icons:power-button",label:hm,name:va,rule(){return{type:va,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(o){return o!==""},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(o){return o!==""},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(o){return o!==""},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 gm="\u5F39\u7A97\u7EC4\u4EF6",Ma="DkViewDialog";var Jo={icon:"mi:window",label:gm,name:Ma,event:!0,rule(){return{type:Ma,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(o){return o!==""},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 ym="\u5217\u8868",La="DkViewGridCellList";var Ko={icon:"fluent:list-bar-16-regular",label:ym,name:La,rule(){return{type:La,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 _m="\u56FE\u7247",Ua="DkViewImage";var Qo={icon:"clarity:image-line",label:_m,name:Ua,rule(){return{type:Ua,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 bm="\u97F3\u4E50",Ha="DkViewMusic";var Zo={icon:"mingcute:music-3-line",label:bm,name:Ha,rule(){return{type:Ha,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 km="\u5BFC\u822A\u680F",Wa="DkViewNavBar";var en={icon:"bx:navigation",label:km,name:Wa,rule(){return{type:Wa,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 Cm="\u516C\u544A",qa="DkViewNoticeBar";var tn={icon:"icon-park-outline:volume-notice",label:Cm,name:qa,rule(){return{type:qa,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 Em="\u8F6E\u64AD",Ga="DkViewSwipe";var on={icon:"dashicons:images-alt2",label:Em,name:Ga,rule(){return{type:Ga,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:o=>o/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 wm="\u5E95\u90E8\u5BFC\u822A",Ya="DkViewTabbar";var nn={icon:"fluent:table-bottom-row-32-regular",label:wm,name:Ya,rule(){return{type:Ya,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 Bm="\u5BCC\u6587\u672C",Xa="DkViewTextarea";var ln={icon:"fluent:image-alt-text-16-regular",label:Bm,name:Xa,rule(){return{type:Xa,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 Vm="\u89C6\u9891",Ja="DkViewVideo";var an={icon:"icon-park-twotone:video-two",label:Vm,name:Ja,rule(){return{type:Ja,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 Fm=[qo,Go,Yo,Xo,Jo,Ko,Qo,Zo,en,tn,on,nn,ln,an],Dm={[qo.name]:qo,[Go.name]:Go,[Yo.name]:Yo,[Xo.name]:Xo,[Jo.name]:Jo,[Ko.name]:Ko,[Qo.name]:Qo,[Zo.name]:Zo,[en.name]:en,[tn.name]:tn,[on.name]:on,[nn.name]:nn,[ln.name]:ln,[an.name]:an},xm="\u901A\u7528\u6807\u9898",Ka="DkViewTitle";var rn={icon:"ic:sharp-title",label:xm,name:Ka,rule(){return{type:Ka,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(o){return o!==""},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 Nm="\u7A7A\u5185\u5BB9",Qa="VanEmpty";var sn={icon:"grommet-icons:test",label:Nm,name:Qa,count:1,rule(){return{type:Qa,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"}]}}]}},Za={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"}}]}},cn={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"}}]}},er={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 Am="\u95F4\u8DDD",tr="div";var un={icon:"ri:space",label:Am,name:tr,rule(){return{type:tr,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"}]}}]}},dn={icon:"cil:columns",label:"\u6805\u683C\u5E03\u5C40",name:"row",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 Sm="\u5206\u5272\u7EBF",or="van-divider";var pn={icon:"mingcute:border-horizontal-line",label:Sm,name:or,rule(){return{type:or,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"}]}]}},mn={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"}}]}},nr={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 $m=[rn,sn,cn,un,dn,pn,mn],Tm={...{[rn.name]:rn,[sn.name]:sn,[Za.name]:Za,[cn.name]:cn,[er.name]:er,[un.name]:un,[dn.name]:dn,[pn.name]:pn,[mn.name]:mn,[nr.name]:nr},...Dm},Im=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...Fm]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[...$m]}]},zm="\u89C6\u9891",lr="DkMinVideo";var fn={icon:"icon-park-twotone:video-two",label:zm,name:lr,rule(){return{type:lr,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 Rm="\u8F6E\u64AD\u56FE",ar="DkMinSwiperImage";var hn={icon:"dashicons:images-alt2",label:Rm,name:ar,rule(){return{type:ar,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:o=>o/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:"DkUrlInput",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Om="\u6807\u9898",rr="DkMinTitle";var gn={icon:"material-symbols:title",label:Om,name:rr,rule(){return{type:rr,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 Pm="\u7A7A\u767D",ir="DkMinBlank";var yn={icon:"FullScreen",label:Pm,name:ir,rule(){return{type:ir,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 jm="\u5BCC\u6587\u672C",sr="DkMinTextarea";var _n={icon:"fluent:image-alt-text-16-regular",label:jm,name:sr,rule(){return{type:sr,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 vm="\u70ED\u56FE",cr="DkMinHotArea";var bn={icon:"dashicons:images-alt2",label:vm,name:cr,rule(){return{type:cr,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 Mm="\u5BAB\u683C",ur="DkMinGrid";var kn={icon:"mdi:grid",label:Mm,name:ur,rule(){return{type:ur,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:""}]},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:"DkUrlInput",field:"path",title:"\u5730\u5740"}]},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 Lm=[fn,hn,gn,yn,_n,bn,kn],Um={...{[fn.name]:fn,[hn.name]:hn,[gn.name]:gn,[yn.name]:yn,[_n.name]:_n,[bn.name]:bn,[kn.name]:kn}},Hm=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...Lm]}]};function dr(o){return o.replace(o[0],o[0].toLocaleUpperCase())}const pr=Qt,re=Qt.factory();let Wm=0;const mr=()=>"F"+Math.random().toString(36).substr(3,3)+(+`${Date.now()}${++Wm}`).toString(36);function qm(){return[{type:"DkStyleInput",field:"style",value:{},title:"",props:{}}]}const fr=[{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 Cn(o){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:[o]}]}}function hr(o){const t=fr[0].animate;for(let n=0;n<t.length;n++)if(t[n].value===o)return!0;return!1}function En(o=null){const t=[{type:"el-collapse",props:{modelValue:"base"},style:"width:100%",children:[{type:"el-collapse-item",props:{name:"base"},children:[Cn("\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:[Cn("\u52A8\u753B\u914D\u7F6E"),{type:"DkAnimateSelect",field:"animate",value:"",title:"\u9009\u62E9\u52A8\u753B",control:[{handle:function(n){return n?hr(n):!1},rule:[{type:"dk-style-animation-input",field:"animation",title:"",value:{animationDelay:"0s",animationDuration:"1s",animationIterationCount:"infinite"}}]},{handle:function(n){return n?!hr(n):!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(o&&o.config.config.rule().fixed){const n=[Cn("\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:""}]}]}],l={type:"el-collapse-item",props:{name:"fixed"},children:n};t[0].children.push(l)}return t}const gr={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"}},Gm={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 o={};return this.height&&this.isHeight?o.height=this.height+"px":o.height="240px",o}},mounted(){},methods:{}},Ym={style:{position:"relative"},class:"dk-video-content"},Xm={class:"video-preview"},Jm={key:0},Km={key:1};function Qm(o,t,n,l,a,r){const s=e.resolveComponent("el-image"),i=e.resolveComponent("dk-icon");return e.openBlock(),e.createElementBlock("div",{class:"dk-view-video",style:e.normalizeStyle(r._style)},[e.createElementVNode("div",Ym,[n.poster?(e.openBlock(),e.createBlock(s,{key:0,src:n.poster,alt:"",class:"poster"},null,8,["src"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",Xm,[e.createVNode(i,{icon:"VideoPlay",size:24}),n.videoPath?(e.openBlock(),e.createElementBlock("p",Km,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B!!!!")):(e.openBlock(),e.createElementBlock("p",Jm,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891!!!"))])])],4)}var Zm=T(Gm,[["render",Qm],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinVideo.vue"]]);const ef={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(o){}},mounted(){},methods:{}},tf={key:0,class:"swipe-title"};function of(o,t,n,l,a,r){const s=e.resolveComponent("van-image"),i=e.resolveComponent("van-swipe-item"),c=e.resolveComponent("van-swipe");return e.openBlock(),e.createBlock(c,{class:"dk-min-swipe",autoplay:n.autoplay,"indicator-color":"white",style:e.normalizeStyle({background:n.bgColor||""})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.swipeList,(u,h)=>(e.openBlock(),e.createBlock(i,{key:h},{default:e.withCtx(()=>[e.createVNode(s,{src:u.img,width:"100%",height:n.height,style:e.normalizeStyle(n.radius?"border-radius: "+n.radius+"px; overflow: hidden":"")},null,8,["src","height","style"]),n.showTitle?(e.openBlock(),e.createElementBlock("div",tf,e.toDisplayString(u.title),1)):e.createCommentVNode("v-if",!0)]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var nf=T(ef,[["render",of],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinSwiperImage.vue"]]);const lf={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:{}},af={class:"dk-min-title flex items-center justify-between"},rf={class:"flex justify-center items-center"},sf=["src"];function cf(o,t,n,l,a,r){const s=e.resolveComponent("dk-uni-icon");return e.openBlock(),e.createElementBlock("div",af,[e.createElementVNode("div",rf,[e.createElementVNode("div",{style:e.normalizeStyle({marginRight:n.marginRight+"px"})},[n.iconType==="icon"?(e.openBlock(),e.createBlock(s,{key:0,type:n.icon,size:n.iconSize,color:n.iconColor},null,8,["type","size","color"])):n.iconType==="img"&&n.image?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.image,style:e.normalizeStyle({width:n.iconSize+"px",height:n.iconSize+"px"}),alt:""},null,12,sf)):e.createCommentVNode("v-if",!0)],4),e.createElementVNode("div",null,[e.createElementVNode("span",{style:e.normalizeStyle({...n.titleStyle})},e.toDisplayString(n.title),5),n.showSubtitle?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle([{"margin-left":"5px","font-size":"12px"},{color:n.subColor}])},e.toDisplayString(n.subtitle),5)):e.createCommentVNode("v-if",!0)])]),n.isMore?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle([{color:n.moreColor},{"font-size":"12px"}])},e.toDisplayString(n.moreText),5)):e.createCommentVNode("v-if",!0)])}var uf=T(lf,[["render",cf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTitle.vue"]]);const df={name:"DkMinBlank",props:{height:{default:20,type:[String,Number]}},data(){return{}},computed:{},mounted(){},methods:{}};function pf(o,t,n,l,a,r){return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([{height:n.height+"px"},{width:"100%"}])},null,4)}var mf=T(df,[["render",pf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinBlank.vue"]]);const ff={name:"DkMinTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},hf=["innerHTML"];function gf(o,t,n,l,a,r){return e.openBlock(),e.createElementBlock("div",{innerHTML:n.textarea},null,8,hf)}var yf=T(ff,[["render",gf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTextarea.vue"]]);const _f={name:"DkMinHotArea",props:{hotData:{default:()=>({}),type:Object},showMask:{default:!1,type:Boolean}},setup(o){const t=e.ref(null);let n=null;const l=e.ref(0),a=e.ref([]);e.onMounted(()=>{n=new(window.ResizeObserver||ResizeObserver)(r),n.observe(t.value),l.value=t.value.clientWidth,s()}),e.onUnmounted(()=>{n&&n.disconnect()}),e.watch(()=>o.hotData.views,()=>{s()},{deep:!0});function r(i){i.forEach(c=>{c.target===t.value&&(l.value=c.contentRect.width,s())})}function s(){a.value=JSON.parse(JSON.stringify(o.hotData.views)),a.value.forEach(i=>{const{left:c,top:u,width:h,height:g}=i.css,_=Math.round(h*(l.value/o.hotData.width)),k=Math.round(g*(l.value/o.hotData.width)),E=Math.round(c*(l.value/o.hotData.width)),m=Math.round(u*(l.value/o.hotData.width));i.css={...i.css,left:E+"px",top:m+"px",width:_+"px",height:k+"px"}})}return{el:t,containerWidth:l,views:a}}},bf={ref:"el",class:"dk-min-area"},kf=["src"];function Cf(o,t,n,l,a,r){const s=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",bf,[n.hotData.background?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.hotData.background,alt:"",style:{width:"100%"}},null,8,kf)):(e.openBlock(),e.createBlock(s,{key:1,description:"\u8BF7\u4E0A\u4F20\u80CC\u666F\u56FE"})),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.views,(i,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,style:e.normalizeStyle({position:"absolute",...i.css,background:n.showMask?"#0008":"#0004"})},[e.createCommentVNode(" \u53EF\u4EE5\u5728\u8FD9\u91CC\u653E\u7F6E\u70ED\u56FE\u94FE\u63A5\u6216\u8986\u76D6\u5C42 "),e.createElementVNode("div",{style:e.normalizeStyle({width:i.css.width,height:i.css.height}),class:"hot-item"},e.toDisplayString(c+1),5)],4))),128))],512)}var Ef=T(_f,[["render",Cf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinHotArea.vue"]]);const wf={name:"DkMinGrid",props:["list","columnNum","imageStyle","useImageStyle","fontStyle"],data:()=>({value:""})},Bf=["src"];function Vf(o,t,n,l,a,r){const s=e.resolveComponent("dk-icon"),i=e.resolveComponent("van-grid-item"),c=e.resolveComponent("van-grid"),u=e.resolveComponent("el-empty");return n.list?.length>0?(e.openBlock(),e.createBlock(c,{key:0,border:!1,"column-num":n.columnNum,class:"min-h-30px dk-app-gold-grid",style:{"--van-grid-item-content-background":"none"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,(h,g)=>(e.openBlock(),e.createBlock(i,{key:g},{default:e.withCtx(()=>[h.image?(e.openBlock(),e.createElementBlock("img",{key:0,src:h.image,alt:"",style:e.normalizeStyle(n.imageStyle)},null,12,Bf)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"flex justify-center items-center",style:e.normalizeStyle([{display:"flex",background:"#f3f5f7"},n.imageStyle])},[e.createVNode(s,{icon:"PictureFilled",color:"#BBBFC8"})],4)),e.createElementVNode("span",{style:e.normalizeStyle({...n.fontStyle})},e.toDisplayString(h.title),5)]),_:2},1024))),128))]),_:1},8,["column-num"])):(e.openBlock(),e.createBlock(u,{key:1}))}var Ff=T(wf,[["render",Vf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinGrid.vue"]]);const yr={DkMinVideo:Zm,DkMinSwiperImage:nf,DkMinTitle:uf,DkMinBlank:mf,DkMinTextarea:yf,DkMinHotArea:Ef,DkMinGrid:Ff},Df={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:{}},xf={class:"bullet-content"},Nf=["src"],Af={class:"over"},Sf=[e.createElementVNode("div",{class:"bullet-content"},[e.createElementVNode("span",{class:"over"},"\u5F53\u524D\u6570\u636E\u7531\u4E8B\u4EF6\u4F20\u5165")],-1)];function $f(o,t,n,l,a,r){const s=e.resolveComponent("van-swipe-item"),i=e.resolveComponent("van-swipe");return n.dataType==="default"?(e.openBlock(),e.createBlock(i,{key:0,vertical:"",class:"dk-view-bullet-chat",style:e.normalizeStyle({background:n.bgColor,color:n.textColor}),autoplay:n.autoplay,"show-indicators":!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.bulletData,(c,u)=>(e.openBlock(),e.createBlock(s,{key:u},{default:e.withCtx(()=>[e.createElementVNode("div",xf,[c.avatar?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.avatar,alt:""},null,8,Nf)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",Af,e.toDisplayString(c.text),1)])]),_:2},1024))),128))]),_:1},8,["style","autoplay"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"dk-view-bullet-chat",style:e.normalizeStyle([{display:"flex"},{background:n.bgColor,color:n.textColor}])},Sf,4))}var Tf=T(Df,[["render",$f],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewBulletChat.vue"]]);const If={name:"DkViewCell",props:{groups:{default:()=>[],type:Array}},data(){return{}},computed:{},mounted(){},methods:{}};function zf(o,t,n,l,a,r){const s=e.resolveComponent("van-cell"),i=e.resolveComponent("van-cell-group");return e.openBlock(),e.createBlock(i,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.groups,(c,u)=>(e.openBlock(),e.createBlock(s,{key:u,title:c.title,value:c.value},null,8,["title","value"]))),128))]),_:1})}var Rf=T(If,[["render",zf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCell.vue"]]);const Of={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:{}},Pf={class:"dk-view-common-btn"},jf={key:0,class:"btn"},vf={key:1,class:"f-btn"},Mf={key:0,class:"image-content"},Lf=["src","width"];function Uf(o,t,n,l,a,r){const s=e.resolveComponent("van-button"),i=e.resolveComponent("van-icon");return e.openBlock(),e.createElementBlock("div",Pf,[n.type==="btn"?(e.openBlock(),e.createElementBlock("div",jf,[e.createVNode(s,{type:"primary",block:n.block,round:n.round,size:n.size,color:r.vanBtnColor,icon:n.icon},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.btnText),1)]),_:1},8,["block","round","size","color","icon"])])):(e.openBlock(),e.createElementBlock("div",vf,[n.img?(e.openBlock(),e.createElementBlock("div",Mf,[e.createElementVNode("img",{src:n.img,alt:"",width:n.imgSize},null,8,Lf)])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{style:e.normalizeStyle(r.textStyle),class:"f-btn-content"},[e.createVNode(i,{name:n.icon,size:n.iconSize},null,8,["name","size"]),e.createElementVNode("span",{style:e.normalizeStyle({fontSize:n.fontSize+"px"})},e.toDisplayString(n.fBtnText),5)],4)]))])}var Hf=T(Of,[["render",Uf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCommonBtn.vue"]]);const Wf={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")}}},qf={class:"dk-view-dialog"},Gf=e.createElementVNode("div",{class:"preview"},"\u70B9\u51FB\u9884\u89C8\u53EF\u4EE5\u67E5\u770B\u5F39\u7A97\u6548\u679C",-1),Yf=["innerHTML"];function Xf(o,t,n,l,a,r){const s=e.resolveComponent("van-dialog");return e.openBlock(),e.createElementBlock("div",qf,[Gf,a.showDialog?(e.openBlock(),e.createBlock(s,{key:0,show:a.showDialog,"onUpdate:show":t[0]||(t[0]=i=>a.showDialog=i),title:n.title,teleport:".phone-body","overlay-style":{position:"absolute"},style:{position:"absolute"}},{default:e.withCtx(()=>[e.createElementVNode("div",{style:{padding:"10px"},innerHTML:n.content},null,8,Yf)]),_:1},8,["show","title"])):e.createCommentVNode("v-if",!0)])}var Jf=T(Wf,[["render",Xf],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewDialog.vue"]]);const Kf={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:{}},Qf={key:0,class:"cell"},Zf=["src","alt","width","height"],eh={key:1,class:"grid"},th=["src","width","height","alt"];function oh(o,t,n,l,a,r){const s=e.resolveComponent("dk-icon"),i=e.resolveComponent("van-cell"),c=e.resolveComponent("van-cell-group"),u=e.resolveComponent("van-grid-item"),h=e.resolveComponent("van-grid");return n.type==="cell"?(e.openBlock(),e.createElementBlock("div",Qf,[e.createVNode(c,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.gridCellList,(g,_)=>(e.openBlock(),e.createBlock(i,{key:_,"is-link":"",style:e.normalizeStyle({lineHeight:n.cellImgSize+"px!important"})},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:g.img,alt:g.title,width:n.cellImgSize,height:n.cellImgSize,style:e.normalizeStyle({borderRadius:n.imgRadius+"px",marginRight:n.imgTextGutter+"px"})},null,12,Zf)]),title:e.withCtx(()=>[e.createElementVNode("span",{class:"custom-title",style:e.normalizeStyle({fontSize:n.fontSize+"px"})},e.toDisplayString(g.title),5)]),"right-icon":e.withCtx(()=>[e.createVNode(s,{icon:"ArrowRight"}),e.createCommentVNode(' <div style="color: #999; font-size: 16px">'),e.createCommentVNode(' <i class="el-icon-arrow-right" />'),e.createCommentVNode(" </div>")]),_:2},1032,["style"]))),128))]),_:1})])):(e.openBlock(),e.createElementBlock("div",eh,[e.createVNode(h,{square:n.square,direction:n.direction,gutter:n.gutter,clickable:n.clickable,border:n.border,"column-num":n.columnNum},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.gridCellList,(g,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[g.show?(e.openBlock(),e.createBlock(u,{key:_,icon:"photo-o"},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:g.img,width:n.gridImgSize,height:n.gridImgSize,alt:g.title,style:e.normalizeStyle({borderRadius:n.imgRadius+"px"})},null,12,th)]),text:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle({fontSize:n.fontSize+"px"})},e.toDisplayString(g.title),5)]),_:2},1024)):e.createCommentVNode("v-if",!0)],64))),256))]),_:1},8,["square","direction","gutter","clickable","border","column-num"])]))}var nh=T(Kf,[["render",oh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewGridCellList.vue"]]);const lh={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 o={};return this.type==="default"?o.marginBottom=this.marginBottom+"px":(o.width=this.width+"%",o.marginRight=this.marginRight+"px"),o.borderRadius=this.borderRadius+"px",o}},mounted(){},methods:{}},ah={key:0};function rh(o,t,n,l,a,r){const s=e.resolveComponent("van-image"),i=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dk-view-image","dk-mobile-image-"+n.type])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.imageList,(c,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"dk-mobile-image-content",style:e.normalizeStyle(r._style)},[e.createVNode(s,{src:c.img,fit:n.fit,width:"100%",height:n.heightAuto?n.height:"",style:{overflow:"hidden"}},null,8,["src","fit","height"]),n.showText&&c.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass("text-type-"+n.textType)},e.toDisplayString(c.title),3)):e.createCommentVNode("v-if",!0)],4))),128)),n.imageList.length<=0?(e.openBlock(),e.createElementBlock("div",ah,[e.createVNode(i,{description:"\u8BF7\u6DFB\u52A0\u56FE\u7247\u6570\u636E"})])):e.createCommentVNode("v-if",!0)],2)}var ih=T(lh,[["render",rh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewImage.vue"]]);const sh={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 o=11-this.speed+"s";return{width:this.iconSize+"px",height:this.iconSize+"px",fontSize:this.iconSize+"px",animationDuration:o,animationIterationCount:"infinite",animationTimingFunction:"linear"}}},mounted(){},methods:{}},ch={class:"dk-view-music"},uh={key:0},dh=["src"];function ph(o,t,n,l,a,r){const s=e.resolveComponent("van-icon");return e.openBlock(),e.createElementBlock("div",ch,[n.iconType==="image"?(e.openBlock(),e.createElementBlock("div",uh,[e.createElementVNode("img",{src:n.imgUrl,width:"100%",style:e.normalizeStyle(r._style),class:e.normalizeClass([n.rotation,"dk-music-img"]),alt:""},null,14,dh)])):(e.openBlock(),e.createBlock(s,{key:1,name:"music-o",class:e.normalizeClass(["dk-music-icon",n.rotation]),style:e.normalizeStyle(r._style)},null,8,["class","style"]))])}var mh=T(sh,[["render",ph],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewMusic.vue"]]);const fh={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 hh(o,t,n,l,a,r){const s=e.resolveComponent("van-nav-bar");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{title:n.title,"left-text":n.leftText,"right-text":n.rightText,"left-arrow":n.leftArrow,border:n.border},null,8,["title","left-text","right-text","left-arrow","border"])])}var gh=T(fh,[["render",hh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNavBar.vue"]]);const yh={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 _h(o,t,n,l,a,r){const s=e.resolveComponent("van-notice-bar");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{speed:n.speed,"left-icon":n.leftIcon,text:n.text,color:n.color,background:n.background},null,8,["speed","left-icon","text","color","background"])])}var bh=T(yh,[["render",_h],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNoticeBar.vue"]]);const kh={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(o){}},mounted(){},methods:{}};function Ch(o,t,n,l,a,r){const s=e.resolveComponent("van-image"),i=e.resolveComponent("van-swipe-item"),c=e.resolveComponent("van-swipe");return e.openBlock(),e.createBlock(c,{class:"dk-view-swipe",autoplay:n.autoplay,"indicator-color":"white",style:e.normalizeStyle({background:n.bgColor||""})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.swipeList,(u,h)=>(e.openBlock(),e.createBlock(i,{key:h},{default:e.withCtx(()=>[e.createVNode(s,{src:u.img,fit:n.fit,width:"100%",height:n.height},null,8,["src","fit","height"])]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var Eh=T(kh,[["render",Ch],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewSwipe.vue"]]);const wh={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:{}},Bh={class:"dk-view-tabbar"},Vh=["src"];function Fh(o,t,n,l,a,r){const s=e.resolveComponent("van-tabbar-item"),i=e.resolveComponent("van-tabbar");return e.openBlock(),e.createElementBlock("div",Bh,[e.createVNode(i,{modelValue:a.tmpActive,"onUpdate:modelValue":t[0]||(t[0]=c=>a.tmpActive=c),"active-color":n.activeColor,"inactive-color":n.inactiveColor,style:e.normalizeStyle({backgroundColor:n.bgColor}),fixed:!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabBars,(c,u)=>(e.openBlock(),e.createBlock(s,{key:u,icon:c.icon,dot:c.badge==="dot",badge:c.badge==="badge"?c.badge_text:""},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(c.title),1)]),_:2},[c.useImg===!0?{name:"icon",fn:e.withCtx(()=>[e.createElementVNode("img",{src:c.imgIcon,alt:""},null,8,Vh)]),key:"0"}:void 0]),1032,["icon","dot","badge"]))),128))]),_:1},8,["modelValue","active-color","inactive-color","style"])])}var Dh=T(wh,[["render",Fh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTabbar.vue"]]);const xh={name:"DkViewTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},Nh=["innerHTML"];function Ah(o,t,n,l,a,r){return e.openBlock(),e.createElementBlock("div",{innerHTML:n.textarea},null,8,Nh)}var Sh=T(xh,[["render",Ah],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTextarea.vue"]]);const $h={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:{}},Th={class:"dk-view-title"},Ih={class:"title-left"};function zh(o,t,n,l,a,r){const s=e.resolveComponent("van-icon"),i=e.resolveComponent("van-image");return e.openBlock(),e.createElementBlock("div",Th,[e.createElementVNode("div",Ih,[n.prefix==="icon"?(e.openBlock(),e.createBlock(s,{key:0,name:n.icon,style:e.normalizeStyle({color:n.prefixColor,fontSize:n.iconSize+"px"})},null,8,["name","style"])):e.createCommentVNode("v-if",!0),n.prefix==="image"?(e.openBlock(),e.createBlock(i,{key:1,src:n.prefixImage,alt:"",class:"dk-title-img",width:n.imageWidth,height:n.imageHeight},null,8,["src","width","height"])):e.createCommentVNode("v-if",!0),n.prefix==="square"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle({width:n.squareWidth+"px",height:n.squareHeight+"px",background:n.prefixColor})},null,4)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{style:e.normalizeStyle({marginLeft:n.titleMarginLeft+"px",color:n.color,fontWeight:n.bold?800:400})},e.toDisplayString(n.title),5)]),n.showRight?(e.openBlock(),e.createElementBlock("div",{key:0,class:"title-right",style:e.normalizeStyle({color:n.rColor,fontSize:n.rSize+"px"})},e.toDisplayString(n.rTitle),5)):e.createCommentVNode("v-if",!0)])}var Rh=T($h,[["render",zh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTitle.vue"]]);const Oh={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 o={};return this.height&&this.isHeight?o.height=this.height+"px":o.height="240px",o}},mounted(){},methods:{}},Ph={style:{position:"relative"},class:"dk-video-content"},jh={class:"video-preview"},vh={key:0},Mh={key:1};function Lh(o,t,n,l,a,r){const s=e.resolveComponent("el-image"),i=e.resolveComponent("dk-icon");return e.openBlock(),e.createElementBlock("div",{class:"dk-view-video",style:e.normalizeStyle(r._style)},[e.createElementVNode("div",Ph,[n.poster?(e.openBlock(),e.createBlock(s,{key:0,src:n.poster,alt:"",class:"poster"},null,8,["src"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",jh,[e.createVNode(i,{icon:"VideoPlay",size:24}),n.videoPath?(e.openBlock(),e.createElementBlock("p",Mh,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B")):(e.openBlock(),e.createElementBlock("p",vh,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891"))])])],4)}var Uh=T(Oh,[["render",Lh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewVideo.vue"]]);const _r={DkViewBulletChat:Tf,DkViewCell:Rf,DkViewCommonBtn:Hf,DkViewDialog:Jf,DkViewGridCellList:nh,DkViewImage:ih,DkViewMusic:mh,DkViewNavBar:gh,DkViewNoticeBar:bh,DkViewSwipe:Eh,DkViewTabbar:Dh,DkViewTextarea:Sh,DkViewTitle:Rh,DkViewVideo:Uh},ut="/adminapi/cloud_diy/";function Hh(o,t,n,l){return X({url:ut+"getList",method:"post",data:{page_name:o,page:t,search:n,size:l}})}function Wh(o){return X({url:ut+"down",method:"post",data:{id:o}})}function qh(o,t,n){return X({url:ut+"getDiyForm",method:"post",data:{id:o,page_name:t,diy_data:n}})}function Gh(){return X({url:ut+"getSiteMsg",method:"post",data:{}})}function Yh(o,t){return X({url:ut+"getCheckForm",method:"post",data:{id:o,state:t}})}function Xh(o){return X({url:ut+"delDiy",method:"post",data:{id:o}})}const Jh={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(()=>{Wh(this.chooseDiy.id).then(o=>{this.$emit("submit",o.data)})}).catch(()=>{})},onChooseDiy(o){this.chooseDiy=o},getDiyList(o){this.page=o||this.page,this.loading=!0,Hh(this.pageName,this.page,this.search,this.pageSize).then(t=>{this.list=t.data,this.total=t.msg,this.loading=!1}).catch(t=>{this.errMsg=t.msg,this.errCode=-1,this.loading=!1})},getSiteMsg(){Gh().then(o=>{this.site=o.data})},getDiyForm(o=0){qh(o,this.pageName,this.diyData).then(t=>{console.log("getDiyForm",t),this.formData=t.data,this.width="600px",this.$refs.formRef.show()}).catch(t=>{this.$message.error(t.msg)})},getCheckForm(){Yh(this.chooseDiy.id,this.chooseDiy.state).then(o=>{this.formData=o.data,this.width="400px",this.$refs.formRef.show()}).catch(o=>{this.$message.error(o.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(()=>{Xh(this.chooseDiy.id).then(o=>{this.$message.success(o.msg),this.getDiyList(1)}).catch(o=>{this.$message.error(o.msg)})}).catch(()=>{})},onSubmit(){this.getDiyList(0)}}},Kh={class:"diy-cloud"},Qh={class:"diy-header"},Zh={class:"diy-search"},eg={class:"diy-content"},tg={key:0,class:"cl"},og=["onClick"],ng={key:0,class:"mask"},lg={class:"type"},ag={key:1,class:"tag-list"},rg={key:0,class:"tag"},ig={key:1,class:"tag"},sg={class:"title over"},cg={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"500px"}},ug={class:"diy-footer"};function dg(o,t,n,l,a,r){const s=e.resolveComponent("el-option"),i=e.resolveComponent("el-select"),c=e.resolveComponent("el-button"),u=e.resolveComponent("el-input"),h=e.resolveComponent("el-image"),g=e.resolveComponent("el-tag"),_=e.resolveComponent("van-icon"),k=e.resolveComponent("el-empty"),E=e.resolveComponent("el-pagination"),m=e.resolveComponent("dk-form"),B=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",Kh,[e.createElementVNode("div",Qh,[e.createElementVNode("div",Zh,[e.createVNode(i,{modelValue:a.search.state,"onUpdate:modelValue":t[0]||(t[0]=w=>a.search.state=w),placeholder:"\u72B6\u6001"},{default:e.withCtx(()=>[e.createVNode(s,{label:"\u5168\u90E8\u72B6\u6001",value:""}),a.site.level>0?(e.openBlock(),e.createBlock(s,{key:0,label:"\u672A\u901A\u8FC7",value:"-1"})):e.createCommentVNode("v-if",!0),a.site.level>0?(e.openBlock(),e.createBlock(s,{key:1,label:"\u672A\u5BA1\u6838",value:"0"})):e.createCommentVNode("v-if",!0),e.createVNode(s,{label:"\u5DF2\u5BA1\u6838",value:"1"}),e.createVNode(s,{label:"\u5DF2\u63A8\u8350",value:"2"})]),_:1},8,["modelValue"]),e.createVNode(i,{modelValue:a.search.look,"onUpdate:modelValue":t[1]||(t[1]=w=>a.search.look=w),placeholder:"\u67E5\u770B",class:"u-m-l-10"},{default:e.withCtx(()=>[e.createVNode(s,{label:"\u5168\u90E8\u6A21\u677F",value:""}),e.createVNode(s,{label:"\u6211\u7684\u6A21\u677F",value:"me"}),e.createVNode(s,{label:"\u4ED6\u4EBA\u6A21\u677F",value:"other"})]),_:1},8,["modelValue"]),e.createVNode(u,{modelValue:a.search["name like"],"onUpdate:modelValue":t[3]||(t[3]=w=>a.search["name like"]=w),placeholder:"\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0",clearable:"",onClear:t[4]||(t[4]=w=>r.getDiyList(0))},{append:e.withCtx(()=>[e.createVNode(c,{icon:"Search",onClick:t[2]||(t[2]=w=>r.getDiyList(1))})]),_:1},8,["modelValue"])]),e.createElementVNode("div",null,[a.site.level>0?(e.openBlock(),e.createBlock(c,{key:0,type:"warning",disabled:!a.chooseDiy.id,onClick:r.getCheckForm},{default:e.withCtx(()=>[e.createTextVNode("\u5BA1\u6838 ")]),_:1},8,["disabled","onClick"])):e.createCommentVNode("v-if",!0),a.site.level>1?(e.openBlock(),e.createBlock(c,{key:1,type:"danger",disabled:!a.chooseDiy.id,onClick:r.delDiy},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664")]),_:1},8,["disabled","onClick"])):e.createCommentVNode("v-if",!0),a.site.level>0||a.site.site_id===a.chooseDiy.site_id?(e.openBlock(),e.createBlock(c,{key:2,type:"info",disabled:!a.chooseDiy.id,onClick:t[5]||(t[5]=w=>r.getDiyForm(a.chooseDiy.id))},{default:e.withCtx(()=>[e.createTextVNode("\u7F16\u8F91 ")]),_:1},8,["disabled"])):e.createCommentVNode("v-if",!0),e.createVNode(c,{type:"primary",icon:"Upload",onClick:t[6]||(t[6]=w=>r.getDiyForm())},{default:e.withCtx(()=>[e.createTextVNode("\u4E0A\u4F20\u65B0\u6A21\u677F")]),_:1})])]),e.createCommentVNode("-------------\u6A21\u677F\u5217\u8868------------------------"),e.withDirectives((e.openBlock(),e.createElementBlock("div",eg,[!a.loading&&a.list.length>0?(e.openBlock(),e.createElementBlock("ul",tg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.list,(w,b)=>(e.openBlock(),e.createElementBlock("li",{key:b,class:e.normalizeClass({choose:a.chooseDiy.id===w.id}),onClick:d=>r.onChooseDiy(w)},[e.createVNode(h,{src:w.cover_image,class:"cover",fit:"contain"},null,8,["src"]),w.state<=0?(e.openBlock(),e.createElementBlock("div",ng)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",lg,[w.state==="0"?(e.openBlock(),e.createBlock(g,{key:0,effect:"dark"},{default:e.withCtx(()=>[e.createTextVNode("\u5BA1\u6838\u4E2D")]),_:1})):e.createCommentVNode("v-if",!0),w.state==="-1"?(e.openBlock(),e.createBlock(g,{key:1,type:"danger",effect:"dark"},{default:e.withCtx(()=>[e.createTextVNode("\u5BA1\u6838\u672A\u901A\u8FC7")]),_:1})):e.createCommentVNode("v-if",!0)]),w.state>0?(e.openBlock(),e.createElementBlock("div",ag,[w.state>=2?(e.openBlock(),e.createElementBlock("span",rg,[e.createVNode(_,{name:"good-job"}),e.createTextVNode("\u63A8\u8350")])):e.createCommentVNode("v-if",!0),w.down_count>100?(e.openBlock(),e.createElementBlock("span",ig,[e.createVNode(_,{name:"fire"}),e.createTextVNode("\u70ED\u95E8")])):e.createCommentVNode("v-if",!0)])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",sg,e.toDisplayString(w.name),1)],10,og))),128))])):(e.openBlock(),e.createElementBlock("div",cg,[a.errCode===0?(e.openBlock(),e.createBlock(k,{key:0,description:"\u5F53\u524D\u8FD8\u6CA1\u6A21\u677F\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u4E0A\u4F20\u81EA\u5DF1\u7684\u6A21\u677F\u5427"})):(e.openBlock(),e.createBlock(k,{key:1,description:a.errMsg},null,8,["description"]))])),e.createVNode(E,{background:"",layout:"total,prev, pager, next",total:a.total,"current-page":a.page,"page-size":a.pageSize,"hide-on-single-page":"",onCurrentChange:r.getDiyList},null,8,["total","current-page","page-size","onCurrentChange"])])),[[B,a.loading]]),e.createElementVNode("div",ug,[e.createVNode(c,{type:"primary",style:{width:"300px"},disabled:!a.chooseDiy.id,onClick:r.submit},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u5B9A")]),_:1},8,["disabled","onClick"])]),e.createVNode(m,{ref:"formRef","is-dialog":!0,"form-data":a.formData,onSubmit:r.onSubmit},null,8,["form-data","onSubmit"])])}var pg=T(Jh,[["render",dg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DiyCloud.vue"]]);class mg{events=[];constructor(){}addEvent(t){this.events.push({id:t.id,label:t.label,value:t.value})}addEvents(t){this.events.push(...t.map(n=>({id:n.id,label:n.label,value:n.value})))}getAllEvents(){return this.events}getEventById(t){return this.events.find(n=>n.id===t)}removeEventById(t){const n=this.events.findIndex(l=>l.id===t);n!==-1&&this.events.splice(n,1)}removeEventByLabel(t){const n=this.events.findIndex(l=>l.label===t);n!==-1&&this.events.splice(n,1)}removeAllEvent(){this.events=[]}}re.register({name:"help",init({value:o},t){Po(o)||(o=[o]),t.suffix={type:"p",children:o,class:"form-help"}}});const fg=e.defineComponent({name:"DkPageDiy",components:{DiyCloud:pg,PreviewPhone:dm,DragForm:re.$form()},props:gr,setup(o){const{menu:t,height:n,mask:l,locale:a}=e.toRefs(o),r=e.getCurrentInstance(),s=e.ref({active:null});e.provide("fcx",s),e.provide("diy",r);const i=new mg,c=e.toRef(o,"config",{}),u=o.type==="web"?Tm:Um,h=o.type==="web"?Im:Hm;if(o.type==="web")for(const d in _r)re.component(d,_r[d]);else for(const d in yr)re.component(d,yr[d]);const g=d=>{const f=["DragTool","DragBox"],p=[];return f.indexOf(d.type)>-1?d.children.length>0?(d.children.forEach(y=>{p.push(...g(y))}),p):[]:[d]},_=d=>{const f=[];return d.forEach(p=>{g(p).forEach(C=>{if(C._id){const V={id:C._id,type:C.type,name:C.config?.config?.label||"",children:[]};C.children&&C.children.length>0&&(V.children=_(C.children)),f.push(V)}})}),f},k=e.computed(()=>_(m.children)),E=e.computed(()=>{const d={};let f;for(let p=0;p<m.children.length;p++)m.children[p].children.length>0&&(f=m.children[p].children[0].type,d[f]?d[f]=d[f]+1:d[f]=1);return d}),m=e.reactive({cacheProps:{},moveRule:null,addRule:null,added:null,activeTab:"page",activeRule:null,children:e.ref([]),menuList:t.value||h(),showBaseRule:!1,showDkSettingRule:!1,visible:{preview:!1},preview:{state:!1,rule:[],option:{}},diyCloud:{pageName:"",show:!1},dragForm:e.ref({rule:[],api:{},option:{form:{},submitBtn:!1}}),dkSettingForm:{rule:En(),api:{},options:{form:{labelPosition:"left",size:"small",labelWidth:"82px"},submitBtn:!1,mounted:d=>{d.activeRule=m.activeRule,d.setValue(d.options.formData||{})}}},dkPageForm:{rule:qm(),api:{},options:{formData:{},form:{labelPosition:"left",size:"small",labelWidth:"82px"},submitBtn:!1,mounted:d=>{d.setValue(d.options.formData||{})}}},propsForm:{rule:[],api:{},value:{},options:{form:{labelPosition:"left",size:"small",labelWidth:"70px"},submitBtn:!1,mounted:d=>{d.activeRule=m.activeRule,d.setValue(d.options.formData||{})}}},isDragging:!1,startValue:0,dragName:"",asideValue:0,trackMouseBound:null,stopChangeBound:null,rightAside:{style:{width:o.rightAsideWidth},hide:!1},leftAside:{style:{width:o.leftAsideWidth},hide:!1},treeAside:{style:{height:"500px",minHeight:"30px",maxHeight:"30px"},hide:!0,treeData:[]},leftTabsName:"component"});function B(d){return Array.isArray(d)?d.map(f=>B(f)):(typeof d=="object"&&d!==null&&Array.isArray(d.children)&&(d.children=d.children.filter(f=>typeof f=="object"&&f!==null),d.children=B(d.children)),d)}e.watch(()=>m.dragForm,()=>{m.treeAside.treeData=b.parseRule(ct(m.dragForm.api.rule[0].children),!0),m.treeAside.treeData=B(m.treeAside.treeData)},{deep:!0}),e.watch(()=>m.preview.state,function(d){d||e.nextTick(()=>{m.preview.rule=m.preview.option=null})});let w=null;const b={clear(d="all"){(d==="all"||d==="rule")&&b.setRule([]),(d==="all"||d==="page")&&b.setPageConfig({})},get(){return{rule:b.getRule(),config:b.getPageConfig()}},set(d){if(!d)return;const f=d.config?d.config:{};b.setPageConfig(f),b.setRule(d.rule)},unWatchActiveRule(){w&&w(),w=null},watchActiveRule(){b.unWatchActiveRule(),w=e.watch(()=>m.activeRule,function(d){d&&b.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren(d){return e.reactive({children:d}).children},addMenu(d){if(!d.name||!d.list)return;let f=!0;m.menuList.forEach((p,y)=>{p.name===d.name&&(m.menuList[y]=d,f=!1)}),f&&m.menuList.push(d)},removeMenu(d){[...m.menuList].forEach((f,p)=>{f.name===d&&m.menuList.splice(p,1)})},setMenuItem(d,f){m.menuList.forEach(p=>{p.name===d&&(p.list=f)})},appendMenuItem(d,f){m.menuList.forEach(p=>{p.name===d&&p.list.push(...Array.isArray(f)?f:[f])})},removeMenuItem(d){m.menuList.forEach(f=>{let p;_e.String(d)?[...f.list].forEach((y,C)=>{y.name===d&&f.list.splice(C,1)}):(p=f.list.indexOf(d))>-1&&f.list.splice(p,1)})},addComponent(d){Array.isArray(d)?d.forEach(f=>{u[f.name]=f}):u[d.name]=d},getParent(d){let f=d.__fc__.parent.rule;const p=f.config;return p&&p.config.inside&&(d=f,f=f.__fc__.parent.rule),{root:f,parent:d}},makeDrag(d,f,p,y){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:d===!0?"default":d,ghostClass:"ghost",animation:150,emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:f},children:p,on:y}},makeDragRule(d){return b.makeChildren([b.makeDrag(!0,"draggable",d,{add:(f,p)=>b.dragAdd(d,p),end:(f,p)=>b.dragEnd(d,p),start:(f,p)=>b.dragStart(d,p),unchoose:(f,p)=>b.dragUnchoose(d,p)})])},previewFc(){m.preview.state=!0,m.preview.rule=b.getRule(),m.preview.option=b.getOption()},getPageConfig(){return m.dkPageForm.options.formData},setPageConfig(d){(!d||Po(d))&&(d={}),m.dkPageForm.api.coverValue(d)},showDiyCloud(d){console.log("123");const f=b.get();m.diyCloud.pageName=d,m.diyCloud.show=!0,m.diyCloud.diy_data=f},downCloudConfig(d){b.set(d),m.diyCloud.show=!1},getRule(){return b.parseRule(ct(m.dragForm.api.rule[0].children))},getJson(){return re.toJson(b.getRule())},setRule(d){d||(d=[]),m.children=b.makeChildren(b.loadRule(_e.String(d)?re.parseJson(d):ct(d))),b.clearActiveRule(),m.dragForm.rule=b.makeDragRule(m.children)},clearActiveRule(){m.activeRule=null,m.activeTab="page"},loadRule(d){const f=[];return d.forEach(p=>{if(_e.String(p))return f.push(p);const y=u[p._fc_drag_tag]||u[p.type],C=p.children;if(p.children=[],p.control&&(p._control=p.control,delete p.control),y){if(p=b.makeRule(y,p),C){let V=p.children[0].children;y.drag&&(V=V[0].children),V.push(...b.loadRule(C))}}else C&&(p.children=b.loadRule(C));f.push(p)}),f},parseRule(d,f=!1){return[...d].reduce((p,y)=>_e.String(y)?(p.push(y),p):y.type==="DragBox"?(p.push(...b.parseRule(y.children,f)),p):y.type==="DragTool"&&(y=y.children[0],y.type==="DragBox")?(p.push(...b.parseRule(y.children,f)),p):(y&&(y={...y},y.children&&y.children.length&&(y.children=b.parseRule(y.children,f)),delete y.key,delete y.component,f||(delete y._id,y.config&&delete y.config.config),y.effect&&(delete y.effect._fc,delete y.effect._fc_tool),y._control&&(y.control=y._control,delete y._control),Object.keys(y).filter(C=>Array.isArray(y[C])&&y[C].length===0||_e.Object(y[C])&&Object.keys(y[C]).length===0).forEach(C=>{delete y[C]}),p.push(y)),p),[])},baseChange(d,f,p,y){m.activeRule&&y[m.activeRule._id]===m.activeRule&&(b.unWatchActiveRule(),m.activeRule[d]=f,b.watchActiveRule(),m.activeRule.config.config?.watch?.["$"+d]?.({field:d,value:f,api:y,rule:m.activeRule}))},dkSettingChange(d,f,p,y,C){m.activeRule&&y[m.activeRule._id]===m.activeRule&&(m.activeRule.setting[d]=f)},propRemoveField(d,f,p){if(m.activeRule&&p[m.activeRule._id]===m.activeRule){b.unWatchActiveRule();const y=d;if(m.dragForm.api.sync(m.activeRule),d.indexOf("formCreate")===0){if(d=d.replace("formCreate",""),!d)return;d=Ra(d),d.indexOf("effect")===0&&d.indexOf(">")>-1?delete m.activeRule.effect[d.split(">")[1]]:d.indexOf("props")===0&&d.indexOf(">")>-1?delete m.activeRule.props[d.split(">")[1]]:d.indexOf("attrs")===0&&d.indexOf(">")>-1?m.activeRule.attrs[d.split(">")[1]]=value:d==="child"?delete m.activeRule.children[0]:d&&(m.activeRule[d]=void 0)}else delete m.activeRule.props[d];b.watchActiveRule(),m.activeRule.config.config?.watch?.[y]?.({field:y,value:void 0,api:p,rule:m.activeRule})}},propChange(d,f,p,y){if(m.activeRule&&y[m.activeRule._id]===m.activeRule){b.unWatchActiveRule();const C=d;if(d.indexOf("formCreate")===0){if(d=d.replace("formCreate",""),!d)return;d=Ra(d),d.indexOf("effect")===0&&d.indexOf(">")>-1?m.activeRule.effect[d.split(">")[1]]=f:d.indexOf("props")===0&&d.indexOf(">")>-1?m.activeRule.props[d.split(">")[1]]=f:d.indexOf("attrs")===0&&d.indexOf(">")>-1?m.activeRule.attrs[d.split(">")[1]]=f:d==="child"?m.activeRule.children[0]=f:m.activeRule[d]=f}else m.activeRule.props[d]=f;b.watchActiveRule(),m.activeRule.config.config?.watch?.[C]?.({field:C,value:f,api:y,rule:m.activeRule})}},dkPageChange(d,f,p,y,C){m.dkPageForm.options.formData[d]=f},nodeClick(d){b.chooseRule(d._id)},delRule(d,f=null){f=f||m.children,f.forEach(p=>{if(p._id===d){if(p.config.config.inside)p.__fc__.rm(),r.emit("delete",p);else{const y=b.getParent(p);r.emit("delete",y.root.children[0]),y.root.__fc__.rm()}b.clearActiveRule()}else p.children&&p.children.length>0&&b.delRule(d,p.children)})},chooseRule(d,f=null){f=f||m.children,f.forEach(p=>{if(p._id===d)if(r.emit("active",p),b.toolActive(p),p.config.config.inside)s.value.active=p.children[0]?.props.unique||null;else{const y=b.getParent(p);s.value.active=y.root?.props?.unique||null}else p.children&&p.children.length>0&&b.chooseRule(d,p.children)})},toolActive(d){b.unWatchActiveRule(),m.activeRule&&(delete m.propsForm.api[m.activeRule._id],delete m.dragForm.api.activeRule),m.activeRule=d,m.dragForm.api.activeRule=d,e.nextTick(()=>{m.activeTab="props",e.nextTick(()=>{m.propsForm.api[m.activeRule._id]=m.activeRule,m.dkSettingForm.api[m.activeRule._id]=m.activeRule})}),m.cacheProps[d._id]||(m.cacheProps[d._id]=d.config.config.props(d)),m.propsForm.rule=m.cacheProps[d._id],b.updateRuleFormData(),b.watchActiveRule(),b.updateShowStyle(d)},updateShowStyle(d){if(m.showDkSettingRule=d.showStyle,m.showDkSettingRule)if(m.dkSettingForm.rule=En(d),Object.values(d.setting).length>0)m.dkSettingForm.options.formData=d.setting;else{const f={};En(d).forEach(p=>{f[p.field]=p.value}),m.dkSettingForm.options.formData=f}},updateRuleFormData(){const d=m.activeRule,f={...d.props,formCreateChild:ct(d.children[0])};Object.keys(d).forEach(p=>{["effect","config","payload","id","type"].indexOf(p)<0&&(f["formCreate"+dr(p)]=ct(d[p]))}),["props","effect","attrs"].forEach(p=>{d[p]&&Object.keys(d[p]).forEach(y=>{f["formCreate"+dr(p)+">"+y]=ct(d[p][y])})}),m.propsForm.value=f,m.showBaseRule=Jp(d,"field")&&d.input!==!1&&(!c.value||c.value.showBaseForm!==!1),m.showBaseRule&&m.dragForm.api.refreshValidate()},dragStart(d){m.moveRule=d,m.added=!1},dragUnchoose(d,f){m.addRule={children:d,oldIndex:f.oldIndex}},dragAdd(d,f){const p=f.newIndex,y=f.item._underlying_vm_;if(!y||y.__fc__){if(m.addRule){const C=m.addRule.children.splice(m.addRule.oldIndex,1);d.splice(p,0,C[0])}}else{const C=b.makeRule(u[y.name]),V=C.children[0].config.config,x=V.count?V.count:99;if((E.value[V.name]?E.value[V.name]:0)>=x)return Q.ElNotification({title:"\u8B66\u544A",message:"\u5F53\u524D\u6A21\u5757\u53EA\u80FD\u6DFB\u52A0"+V.count+"\u4E2A",type:"warning"}),!1;d.splice(p,0,C)}m.added=!0},dragEnd(d,{newIndex:f,oldIndex:p}){if(!m.added&&!(m.moveRule===d&&f===p)){const y=m.moveRule.splice(p,1);d.splice(f,0,y[0])}m.moveRule=null,m.addRule=null,m.added=!1},makeRule(d,f){const p=f||d.rule();p.config={config:d},d.component&&(p.component=e.markRaw(d.component)),p.effect||(p.effect={}),p.effect._fc=!0,p._fc_drag_tag=d.name,p.setting=p.setting||{};let y;if(d.drag&&p.children.push(y=b.makeDrag(d.drag,p.type,b.makeChildren([]),{end:(V,x)=>b.dragEnd(V.self.children,x),add:(V,x)=>b.dragAdd(V.self.children,x),start:(V,x)=>b.dragStart(V.self.children,x),unchoose:(V,x)=>b.dragUnchoose(V.self.children,x)})),d.children&&!f)for(let V=0;V<(d.childrenLen||1);V++){const x=b.makeRule(u[d.children]);(y||p).children.push(x)}const C=l.value!==void 0?l.value!==!1:d.mask!==!1;return d.inside?(p.children=b.makeChildren([{type:"DragTool",props:{dragBtn:d.dragBtn!==!1,children:d.children,mask:C,setting:p.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:V})=>{const x=b.getParent(V).parent;x.__fc__.rm(),r.emit("delete",x),b.clearActiveRule()},create:({self:V})=>{const x=b.getParent(V);r.emit("create",x.parent),x.root.children.splice(x.root.children.indexOf(x.parent)+1,0,b.makeRule(x.parent.config.config))},addChild:({self:V})=>{const x=b.getParent(V),D=x.parent.config.config,$=u[D.children];$&&(D.drag?x.parent.children[0]:x.parent).children[0].children.push(b.makeRule($))},copy:({self:V})=>{const x=b.getParent(V);r.emit("copy",x.parent),x.root.children.splice(x.root.children.indexOf(x.parent)+1,0,re.copyRule(x.parent))},active:({self:V})=>{const x=b.getParent(V);r.emit("active",x.parent),b.toolActive(x.parent)}},children:p.children}]),p):{type:"DragTool",props:{dragBtn:d.dragBtn!==!1,children:d.children,mask:C,setting:p.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:V})=>{r.emit("delete",V.children[0]),V.__fc__.rm(),b.clearActiveRule()},create:({self:V})=>{r.emit("create",V.children[0]);const x=b.getParent(V);x.root.children.splice(x.root.children.indexOf(x.parent)+1,0,b.makeRule(V.children[0].config.config))},addChild:({self:V})=>{const x=V.children[0].config.config,D=u[x.children];D&&(x.drag?V.children[0]:V).children[0].children.push(b.makeRule(D))},copy:({self:V})=>{r.emit("copy",V.children[0]);const x=b.getParent(V),D=re.copyRule(x.parent);D.props.setting=D.children[0].setting,x.root.children.splice(x.root.children.indexOf(x.parent)+1,0,D)},active:({self:V})=>{r.emit("active",V.children[0]),b.toolActive(V.children[0])}},children:b.makeChildren([p])}},onResizerMouseDown(d,f){m.isDragging=!0,m.startValue=f.clientX,m.dragName=d,d==="left"&&(m.asideValue=document.getElementsByClassName("_fc-l")[0].offsetWidth),d==="right"&&(m.asideValue=document.getElementsByClassName("_fc-r")[0].offsetWidth),document.body.style.cursor="ew-resize",d==="tree"&&(m.startValue=f.clientY,m.asideValue=document.getElementsByClassName("children-list")[0].offsetHeight,console.log("data.startValue",m.startValue),console.log("data.asideValue",m.asideValue),document.body.style.cursor="n-resize"),m.trackMouseBound=b.onResizerMouseMove.bind(f),m.stopChangeBound=b.onResizerMouseUp.bind(f),document.addEventListener("mousemove",m.trackMouseBound),document.addEventListener("mouseup",m.stopChangeBound)},onResizerMouseUp(){document.removeEventListener("mousemove",m.trackMouseBound),document.removeEventListener("mouseup",m.stopChangeBound),document.body.style.cursor="default",m.isDragging=!1,m.dragName=""},onResizerMouseMove(d){if(m.isDragging){if(m.dragName==="left"){let f=d.clientX-m.startValue+m.asideValue;f>455&&(f=455),f<200&&(f=200),m.leftAside.style.width=f+"px"}if(m.dragName==="right"){let f=m.startValue-d.clientX+m.asideValue;f>800&&(f=800),f<300&&(f=300),m.rightAside.style.width=f+"px"}if(m.dragName==="tree"){let f=m.startValue-d.clientY+m.asideValue;f>800&&(f=800),f<30&&(f=30),m.treeAside.style.height=f+"px"}}},hideAside(d){if(d==="left")m.leftAside.hide?(m.leftAside.hide=!1,delete m.leftAside.style.minWidth,delete m.leftAside.style.maxWidth):(m.leftAside.hide=!0,m.leftAside.style.minWidth="0px",m.leftAside.style.maxWidth="0px");else if(d==="right")m.rightAside.hide?(m.rightAside.hide=!1,delete m.rightAside.style.minWidth,delete m.rightAside.style.maxWidth):(m.rightAside.hide=!0,m.rightAside.style.minWidth="0px",m.rightAside.style.maxWidth="0px");else if(d==="tree")if(m.treeAside.hide){m.treeAside.hide=!1;const f=m.treeAside.style.height;m.treeAside.style={height:f}}else m.treeAside.hide=!0,m.treeAside.style.minHeight="30px",m.treeAside.style.maxHeight="30px"},allowDrop(d,f,p){const y=d.data.config.config,C=f.data.config.config;return!!(p==="inner"&&y.inside&&y.name===C.children||p!=="inner"&&y.name===C.name&&y.inside&&C.inside||p!=="inner"&&!y.inside&&!C.inside||p==="inner"&&!y.inside&&C.inside)},allowDrag(d){if(console.log("allowDrag",d),d.data.type==="DragTool")return!0},nodeDrop(d,f,p,y){b.setRule(m.treeAside.treeData)}};return m.dragForm.rule=b.makeDragRule(b.makeChildren(m.children)),{...e.toRefs(m),...b,countObj:E,diyTree:k,eventData:i}},created(){document.body.ondrop=o=>{o.preventDefault(),o.stopPropagation()}}}),hg={class:"_fc-l-groups"},gg={class:"_fc-l-title"},yg={class:"_fc-l-icon"},_g={class:"_fc-l-name"},bg={key:0,class:"_fc-l-count",style:{}},kg={class:"children-list"},Cg={key:0,class:"_fc-tree-node"};function Eg(o,t,n,l,a,r){const s=e.resolveComponent("dk-icon"),i=e.resolveComponent("draggable"),c=e.resolveComponent("el-tab-pane"),u=e.resolveComponent("el-tree"),h=e.resolveComponent("el-tabs"),g=e.resolveComponent("el-aside"),_=e.resolveComponent("el-header"),k=e.resolveComponent("DragForm"),E=e.resolveComponent("preview-phone"),m=e.resolveComponent("el-container"),B=e.resolveComponent("el-dialog"),w=e.resolveComponent("diy-cloud"),b=e.resolveComponent("dk-dialog"),d=e.resolveDirective("loading");return e.openBlock(),e.createBlock(m,{class:"_fc-designer dk-page-diy"},{default:e.withCtx(()=>[e.createCommentVNode(" \u5DE6\u8FB9"),e.createVNode(g,{class:"_fc-l item-box",style:e.normalizeStyle(o.leftAside.style)},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:o.leftTabsName,"onUpdate:modelValue":t[0]||(t[0]=f=>o.leftTabsName=f)},{default:e.withCtx(()=>[e.createVNode(c,{label:"\u7EC4\u4EF6\u5217\u8868",name:"component"},{default:e.withCtx(()=>[e.createElementVNode("div",hg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menuList,(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"_fc-l-group"},[e.createElementVNode("h4",gg,e.toDisplayString(f.title),1),e.createVNode(i,{group:{name:"default",pull:"clone",put:!1},sort:!1,list:f.list,"item-key":"icon",filter:".not-drag",class:"_fc-l-items"},{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createElementBlock("div",{key:y.id,class:e.normalizeClass(["_fc-l-item",y.count-(o.countObj[y.name]||0)<=0?"not-drag":""])},[e.createElementVNode("div",yg,[e.createVNode(s,{icon:y.icon,size:24},null,8,["icon"])]),e.createElementVNode("span",_g,e.toDisplayString(y.label),1),y.count?(e.openBlock(),e.createElementBlock("span",bg,e.toDisplayString(y.count-(o.countObj[y.name]||0)),1)):e.createCommentVNode("v-if",!0)],2))]),_:2},1032,["list"])]))),128))])]),_:1}),e.createVNode(c,{label:"\u7ED3\u6784\u5927\u7EB2",name:"tree"},{default:e.withCtx(()=>[e.createElementVNode("div",kg,[e.createVNode(u,{draggable:"","highlight-current":"",data:o.treeAside.treeData,props:{value:"type",label:"type"},"allow-drop":o.allowDrop,"default-expand-all":!0,onNodeDrop:o.nodeDrop,onNodeClick:o.nodeClick},{default:e.withCtx(({data:f})=>[e.createElementVNode("div",{class:"el-tree-node-content",style:e.normalizeStyle(o.activeRule&&o.activeRule._id===f._id?"color:#409eff":"")},[f.config?.config.label?(e.openBlock(),e.createElementBlock("div",Cg,[e.createVNode(s,{icon:f.config?.config.icon,class:"_fc-tree-icon"},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(f.config?.config.label),1)])):e.createCommentVNode("v-if",!0),e.createVNode(s,{icon:"Close",class:"close-rule",onClick:e.withModifiers(p=>o.delRule(f._id),["stop"])},null,8,["onClick"])],4)]),_:1},8,["data","allow-drop","onNodeDrop","onNodeClick"])])]),_:1})]),_:1},8,["modelValue"]),o.leftAside.hide?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"aside-resizer",onMousedown:t[1]||(t[1]=f=>o.onResizerMouseDown("left",f)),onMouseup:t[2]||(t[2]=f=>o.onResizerMouseUp("left")),onMousemove:t[3]||(t[3]=f=>o.onResizerMouseMove("left"))},null,32)),e.createElementVNode("div",{class:"aside-toggle left-99%",style:e.normalizeStyle(o.leftAside.hide?"display:block":""),onClick:t[4]||(t[4]=f=>o.hideAside("left"))},[e.createVNode(s,{icon:o.leftAside.hide?"ArrowRight":"ArrowLeft"},null,8,["icon"])],4)]),_:1},8,["style"]),e.createCommentVNode(" \u5DE6\u8FB9\u7ED3\u675F"),e.createCommentVNode(" \u9884\u89C8\u533A"),e.createVNode(m,{class:"_fc-m"},{default:e.withCtx(()=>[e.createVNode(_,{class:"_fc-m-tools",height:"45"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3}),e.createVNode(E,{"page-config":o.dkPageForm.options.formData},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(k,{api:o.dragForm.api,"onUpdate:api":t[5]||(t[5]=f=>o.dragForm.api=f),rule:o.dragForm.rule,option:o.dragForm.option},null,8,["api","rule","option"]),[[d,o.loading]])]),_:1},8,["page-config"])]),_:3}),e.createCommentVNode(" \u9884\u89C8\u533A\u7ED3\u675F"),e.createCommentVNode(" \u53F3\u8FB9\u64CD\u4F5C\u533A"),e.createVNode(g,{class:"_fc-r",style:e.normalizeStyle(o.rightAside.style)},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(h,{modelValue:o.activeTab,"onUpdate:modelValue":t[9]||(t[9]=f=>o.activeTab=f)},{default:e.withCtx(()=>[o.activeRule?(e.openBlock(),e.createBlock(c,{key:o.activeRule?"props_"+o.activeRule._id6:"",label:"\u7EC4\u4EF6\u8BBE\u7F6E",name:"props"},{default:e.withCtx(()=>[e.createVNode(k,{api:o.propsForm.api,"onUpdate:api":t[6]||(t[6]=f=>o.propsForm.api=f),rule:o.propsForm.rule,option:o.propsForm.options,"model-value":o.propsForm.value,onChange:o.propChange,onRemoveField:o.propRemoveField},null,8,["api","rule","option","model-value","onChange","onRemoveField"])]),_:1})):e.createCommentVNode("v-if",!0),o.activeRule?(e.openBlock(),e.createBlock(c,{key:o.activeRule?"style_"+o.activeRule._id:"",label:"\u6837\u5F0F\u8BBE\u7F6E",name:"style"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(k,{api:o.dkSettingForm.api,"onUpdate:api":t[7]||(t[7]=f=>o.dkSettingForm.api=f),rule:o.dkSettingForm.rule,option:o.dkSettingForm.options,"model-value":o.dkSettingForm.value,onChange:o.dkSettingChange},null,8,["api","rule","option","model-value","onChange"]),[[e.vShow,o.showDkSettingRule]])]),_:1})):e.createCommentVNode("v-if",!0),e.createVNode(c,{label:"\u9875\u9762\u914D\u7F6E",name:"page"},{default:e.withCtx(()=>[e.createVNode(k,{api:o.dkPageForm.api,"onUpdate:api":t[8]||(t[8]=f=>o.dkPageForm.api=f),rule:o.dkPageForm.rule,option:o.dkPageForm.options,onChange:o.dkPageChange},null,8,["api","rule","option","onChange"])]),_:1})]),_:1},8,["modelValue"]),[[e.vShow,!o.rightAside.hide]]),o.rightAside.hide?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"aside-resizer left-0",onMousedown:t[10]||(t[10]=f=>o.onResizerMouseDown("right",f)),onMouseup:t[11]||(t[11]=f=>o.onResizerMouseUp("right")),onMousemove:t[12]||(t[12]=f=>o.onResizerMouseMove("right"))},null,32)),e.createElementVNode("div",{class:"aside-toggle right-99%",style:e.normalizeStyle(o.rightAside.hide?"display:block":""),onClick:t[13]||(t[13]=f=>o.hideAside("right"))},[e.createVNode(s,{icon:o.rightAside.hide?"ArrowLeft":"ArrowRight"},null,8,["icon"])],4)]),_:1},8,["style"]),e.createCommentVNode(" \u53F3\u8FB9\u64CD\u4F5C\u533A\u7ED3\u675F"),e.createVNode(B,{visible:o.preview.state,"onUpdate:visible":t[14]||(t[14]=f=>o.preview.state=f),width:"375px","append-to-body":"",style:{"min-height":"700px"}},{default:e.withCtx(()=>[e.createCommentVNode(" <form-create"),e.createCommentVNode(' v-if="preview.state"'),e.createCommentVNode(' :rule="preview.rule"'),e.createCommentVNode(' :option="preview.option"'),e.createCommentVNode(" />")]),_:1},8,["visible"]),e.createVNode(b,{modelValue:o.diyCloud.show,"onUpdate:modelValue":t[15]||(t[15]=f=>o.diyCloud.show=f),width:"1200px","append-to-body":"",title:"DIY\u6A21\u677F\u5E02\u573A",top:"10vh"},{default:e.withCtx(()=>[o.diyCloud.show?(e.openBlock(),e.createBlock(w,{key:0,"page-name":o.diyCloud.pageName,"diy-data":o.diyCloud.diy_data,onSubmit:o.downCloudConfig},null,8,["page-name","diy-data","onSubmit"])):e.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])]),_:3})}var eo=T(fg,[["render",Eg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\page-diy.vue"]]);let wg=1;const Bg=e.defineComponent({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(o){const{unique:t}=e.toRefs(o),n=e.computed(()=>t.value||wg++),l=e.inject("fcx"),a=e.inject("previewSetting");return{id:n,state:l,previewSetting:a}},computed:{pageConfig(){return{}},_style(){let o={...this.setting.style,...this.setting.animation};return this.setting.is_position&&(o=Object.assign(o,{...this.setting.position,position:"absolute"})),o},_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"))}}}),Vg={key:0,class:"drag-mask"},Fg={class:"drag-r"};function Dg(o,t,n,l,a,r){const s=e.resolveComponent("dk-icon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["drag-tool animate__animated",[{active:o.state.active===o.id},o._animate]]),style:e.normalizeStyle(o._style),onClick:t[4]||(t[4]=e.withModifiers((...i)=>o.active&&o.active(...i),["stop"]))},[o.mask?(e.openBlock(),e.createElementBlock("div",Vg)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",Fg,[e.createElementVNode("div",{class:"drag-btn",title:"\u6DFB\u52A0\u5F53\u524D\u7EC4\u4EF6",onClick:t[0]||(t[0]=i=>o.$emit("create"))},[e.createVNode(s,{icon:"CirclePlus"})]),e.createElementVNode("div",{class:"drag-btn",title:"\u590D\u5236\u5F53\u524D\u7EC4\u4EF6",onClick:t[1]||(t[1]=i=>o.$emit("copy"))},[e.createVNode(s,{icon:"CopyDocument"})]),o.children?(e.openBlock(),e.createElementBlock("div",{key:0,class:"drag-btn",title:"\u6DFB\u52A0\u5B50\u7EC4\u4EF6",onClick:t[2]||(t[2]=i=>o.$emit("addChild"))},[e.createVNode(s,{icon:"fluent:tab-add-20-regular"})])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:"drag-btn drag-btn-danger",title:"\u5220\u9664\u7EC4\u4EF6",onClick:t[3]||(t[3]=i=>o.$emit("delete"))},[e.createVNode(s,{icon:"Close"})])]),e.renderSlot(o.$slots,"default")],6)}var xg=T(Bg,[["render",Dg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragTool.vue"]]);const Ng=e.defineComponent({name:"DragBox",props:["rule","tag","formCreateInject"],render(o){const t={...o.$props.rule.props,...o.$attrs};let n=o.tag+"-drag drag-box";Object.keys(o.$slots).length||(n+=" "+o.tag+"-holder"),t.class=n,t.modelValue=[...this.$props.formCreateInject.children];const l={};return o.$slots.default&&o.$slots.default().forEach(r=>{r.key&&(l[r.key]=r)}),e.h(fl,t,{item:({element:a})=>e.h("div",{class:"drag-box-item"},l[a.__fc__.key+"fc"])})}});var Ag=T(Ng,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragBox.vue"]]);const Sg=e.defineComponent({name:"DkEventCreateInput"});var $g=e.defineComponent({...Sg,props:{modelValue:{default:"",type:String},placeholder:{default:"",type:String},label:{default:"",type:String}},emits:["input","update:modelValue","change"],setup(o,{emit:t}){const n=o,l=e.ref(n.modelValue||"");e.watch(()=>n.modelValue,s=>{l.value=s}),e.watch(()=>l.value,s=>{t("change",s),t("update:modelValue",s),t("input",s)});const a=s=>{s=s||32;const i="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",c=i.length;let u="";for(let h=0;h<s;h++)u+=i.charAt(Math.floor(Math.random()*c));return u},r=()=>{l.value=a(6)};return(s,i)=>{const c=e.resolveComponent("el-button"),u=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u,{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=h=>l.value=h),placeholder:o.placeholder,clearable:""},{append:e.withCtx(()=>[e.createVNode(c,{onClick:r},{default:e.withCtx(()=>[e.createTextVNode("\u968F\u673A")]),_:1})]),_:1},8,["modelValue","placeholder"])])}}}),Tg=T($g,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventCreateInput.vue"]]);const Ig={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(o){o=o||32;const t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",n=t.length;let l="";for(let a=0;a<o;a++)l+=t.charAt(Math.floor(Math.random()*n));return l},onUpdateEvent(){for(let o=0;o<this.children.length;o++)if(this.children[o].children.length>0){const t=this.children[o].children[0],n=t.props,l=t.config.config;if(l.event||!1){const r=l.props();this.findDkEventCreateInput(r,n).forEach(s=>{const i={id:t._id,label:s.props?.label||l.label,value:n[s.field]};i.value&&i.id&&i.label&&this.EventData.addEvent(i)})}}this.eventData=this.EventData.getAllEvents()},findDkEventCreateInput(o,t){const n=[];return o.forEach(l=>{l.children&&n.push(...this.findDkEventCreateInput(l.children)),l.control&&Array.isArray(l.control)&&l.control.forEach(a=>{a.rule.length>0&&n.push(...this.findDkEventCreateInput(a.rule))}),l.type==="DkEventCreateInput"&&n.push(l)}),n}}},zg={style:{display:"flex"}},Rg={style:{float:"left"}},Og={style:{float:"right","font-size":"13px",color:"#8492a6"}};function Pg(o,t,n,l,a,r){const s=e.resolveComponent("el-option"),i=e.resolveComponent("el-select"),c=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",zg,[e.createVNode(i,{modelValue:a.data,"onUpdate:modelValue":t[0]||(t[0]=u=>a.data=u),placeholder:"\u8BF7\u9009\u62E9\u8981\u89E6\u53D1\u4E8B\u4EF6",style:{width:"100%"},"allow-create":"",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.eventData,u=>(e.openBlock(),e.createBlock(s,{key:u.value,label:u.label+"\uFF08"+u.value+"\uFF09",value:u.value},{default:e.withCtx(()=>[e.createElementVNode("span",Rg,e.toDisplayString(u.label),1),e.createElementVNode("span",Og,e.toDisplayString(u.value),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(c,{loading:a.loading,onClick:r.updateEvent},{default:e.withCtx(()=>[e.createTextVNode("\u5237\u65B0")]),_:1},8,["loading","onClick"])])}var jg=T(Ig,[["render",Pg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventSelectInput.vue"]]);const vg=(o,t)=>{re.component(o,t),pr.component(o,t)};re.component("DragTool",xg),re.component("DragBox",Ag),re.component("DkEventCreateInput",Tg),re.component("DkEventSelectInput",jg),re.register("_fc",{init(o,t){t._id=mr(),o.value&&(t.effect._fc=!1)}}),re.register("_fc_tool",{init(o,t){t.props.unique=mr()}}),eo.formCreate=pr,eo.designerForm=re,eo.component=vg;const br=U(eo),kr={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}};/**!
2
2
  * Sortable 1.15.0
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>