@vipl520/dk-ui 1.0.70 → 1.0.71
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +0 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/web-types.json +1 -1
- package/es/tiny-editor/src/tiny-editor.vue2.mjs +0 -1
- package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js +0 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
- package/package.json +1 -1
package/dist/index.min.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import gn from"axios";import{ElLoading as Gr,ElMessage as Se,ElButton as Xl,ElMessageBox as vn,ElNotification as Jl}from"element-plus";import{ref as O,reactive as ie,nextTick as ze,defineComponent as P,resolveComponent as _,openBlock as g,createElementBlock as D,Fragment as L,createVNode as c,withCtx as m,createTextVNode as M,createElementVNode as w,toDisplayString as G,markRaw as Kl,watch as Y,onMounted as De,normalizeClass as ne,createBlock as T,createCommentVNode as A,unref as N,computed as Q,normalizeStyle as q,renderSlot as he,resolveDynamicComponent as dt,withModifiers as ct,renderList as X,useSlots as Yr,useAttrs as Xr,mergeProps as ve,createSlots as Ft,resolveDirective as pt,withDirectives as fe,vShow as Zt,vModelText as So,inject as ot,provide as eo,onUnmounted as Jr,toRefs as yn,getCurrentInstance as Kr,toRef as Qr,h as Ql,withKeys as Zr,normalizeProps as Zl,guardReactiveProps as eu,warn as es}from"vue";import{useEventListener as ts,useElementSize as wt,useWindowSize as os}from"@vueuse/core";import tu from"vuedraggable";import ns from"vue3-draggable-resizable";import ou from"@tinymce/tinymce-vue";import{Icon as ls,disableCache as us,listIcons as as}from"@iconify/vue";import*as nu from"@element-plus/icons-vue";import{Search as lu,CircleClose as is}from"@element-plus/icons-vue";import Vo from"@vant/icons";import $o from"@form-create/element-ui";const uu=t=>t!==null&&typeof t=="object",rs=t=>t!=null,ss=t=>typeof t=="function";function au(t,e){const o=e.split(".");let n=t;return o.forEach(l=>{var u;n=uu(n)&&(u=n[l])!=null?u:""}),n}const Dt=t=>({type:String,default:t}),ds=/-(\w)/g,cs=t=>t.replace(ds,(e,o)=>o.toUpperCase()),{hasOwnProperty:ps}=Object.prototype;function fs(t,e,o){const n=e[o];rs(n)&&(!ps.call(t,o)||!uu(n)?t[o]=n:t[o]=iu(Object(t[o]),n))}function iu(t,e){return Object.keys(e).forEach(o=>{fs(t,e,o)}),t}var ms={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:(t,e)=>`${t}\u5E74${e}\u6708`,rangePrompt:t=>`\u6700\u591A\u9009\u62E9 ${t} \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:t=>`${t}\u6298`,condition:t=>`\u6EE1${t}\u5143\u53EF\u7528`},vanCouponCell:{title:"\u4F18\u60E0\u5238",count:t=>`${t}\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 ru=O("zh-CN"),su=ie({"zh-CN":ms}),hs={messages(){return su[ru.value]},use(t,e){ru.value=t,this.add({[t]:e})},add(t={}){iu(su,t)}};var gs=hs;function vs(t){const e=cs(t)+".";return(o,...n)=>{const l=gs.messages(),u=au(l,e+o)||au(l,o);return ss(u)?u(...n):u}}function _n(t,e){return e?typeof e=="string"?` ${t}--${e}`:Array.isArray(e)?e.reduce((o,n)=>o+_n(t,n),""):Object.keys(e).reduce((o,n)=>o+(e[n]?_n(t,n):""),""):""}function ys(t){return(e,o)=>(e&&typeof e!="string"&&(o=e,e=""),e=e?`${t}__${e}`:t,`${e}${_n(e,o)}`)}function Ve(t){const e=`dk-${t}`;return[e,ys(e),vs(e)]}const du={ApiUrl:"",AccessToken:"",Plaid:0,Appid:0,AddonName:"",ProjectType:"addon"};function _s(t){Object.assign(du,t)}function bn(){return du}const bs=Object.prototype.toString,En=(t,e)=>bs.call(t)===`[object ${e}]`,Es=t=>typeof t<"u",kn=t=>!Es(t),cu=t=>t!==null&&En(t,"Object"),pu=t=>En(t,"Number"),ks=t=>En(t,"String"),Fn=t=>t&&Array.isArray(t),to=new Map,ft={target:null,count:0};function fu(t){const{url:e,method:o,params:n}=t;let{data:l}=t;return typeof l=="string"&&(l=JSON.parse(l)),[e,o,JSON.stringify(n),JSON.stringify(l)].join("&")}function Fs(t){const e=fu(t);t.cancelToken=t.cancelToken||new gn.CancelToken(o=>{to.has(e)||to.set(e,o)})}function wn(t){const e=fu(t);to.has(e)&&(to.get(e)(e),to.delete(e))}function mu(t){t.loading&&ft.count>0&&ft.count--,ft.count===0&&(ft.target.close(),ft.target=null)}function ws(t){if(gn.isCancel(t))return console.warn("\u8BF7\u6C42\u7684\u91CD\u590D\u8BF7\u6C42\uFF1A"+t.message);let e="";if(t&&t.response)switch(t.response.status){case 302:e="\u63A5\u53E3\u91CD\u5B9A\u5411\u4E86\uFF01";break;case 400:e="\u53C2\u6570\u4E0D\u6B63\u786E\uFF01";break;case 401:e="\u60A8\u672A\u767B\u5F55\uFF0C\u6216\u8005\u767B\u5F55\u5DF2\u7ECF\u8D85\u65F6\uFF0C\u8BF7\u5148\u767B\u5F55\uFF01";break;case 403:e="\u60A8\u6CA1\u6709\u6743\u9650\u64CD\u4F5C\uFF01";break;case 404:e=`\u8BF7\u6C42\u5730\u5740\u51FA\u9519: ${t.response.config.url}`;break;case 408:e="\u8BF7\u6C42\u8D85\u65F6\uFF01";break;case 409:e="\u7CFB\u7EDF\u5DF2\u5B58\u5728\u76F8\u540C\u6570\u636E\uFF01";break;case 500:e="\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF\uFF01";break;case 501:e="\u670D\u52A1\u672A\u5B9E\u73B0\uFF01";break;case 502:e="\u7F51\u5173\u9519\u8BEF\uFF01";break;case 503:e="\u670D\u52A1\u4E0D\u53EF\u7528\uFF01";break;case 504:e="\u670D\u52A1\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF01";break;case 505:e="HTTP\u7248\u672C\u4E0D\u53D7\u652F\u6301\uFF01";break;default:e="\u5F02\u5E38\u95EE\u9898\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01";break}t.message.includes("timeout")&&(e="\u7F51\u7EDC\u8BF7\u6C42\u8D85\u65F6\uFF01"),t.message.includes("Network")&&(e=window.navigator.onLine?"\u670D\u52A1\u7AEF\u5F02\u5E38\uFF01":"\u60A8\u65AD\u7F51\u4E86\uFF01"),Se({type:"error",message:e})}const me=(t,e,o)=>{const n=gn.create({...t,baseURL:bn().ApiUrl}),l=Object.assign({repeat_request_cancel:!0,loading:!1,reduct_data_format:!0,error_message_show:!0,code_success_show:!1,code_error_show:!1},e);return n.interceptors.request.use(u=>{wn(u),l.repeat_request_cancel&&Fs(u),l.loading&&(ft.count++,ft.count===1&&(ft.target=Gr.service(o)));const i=bn();return u.headers["Access-Token"]=i.AccessToken,u.headers["Project-Type"]=i.ProjectType,u.headers["Addon-Name"]=i.AddonName,u.headers.Plaid=i.Plaid,u.headers.Appid=i.Appid,u.params=u.params||{},u.params._ajax=1,u},u=>Promise.reject(u)),n.interceptors.response.use(u=>{wn(u.config),l.loading&&mu(l);const i=u.data,a=i.code;if(a===0)return l.code_success_show&&Se.success(i.msg),i;switch(l.code_error_show&&Se.error(i.msg),a){case-1:case 401:case 402:case 403:return Promise.reject(i);default:return Promise.reject(u.data||{msg:"\u672A\u77E5\u9519\u8BEF"})}},u=>(console.log("error",u),u.config&&wn(u.config),l.error_message_show&&ws(u),l.loading&&mu(l),Promise.reject(u))),n.request(t)},Dn=t=>{const e={file:0,image:1,audio:2,video:3};return typeof t=="number"||/^\d+$/.test(t)?parseInt(t,10):e[t]},Ds=t=>{const e={0:"\u6587\u4EF6\u9009\u62E9",1:"\u9009\u62E9\u56FE\u7247",2:"\u9009\u62E9\u97F3\u9891",3:"\u9009\u62E9\u89C6\u9891"},o=Dn(t);return e[o]||"\u6587\u4EF6\u9009\u62E9"};function ae(t){return t.install=e=>{const{name:o}=t;o&&e.component(o,t)},t}const nt={get(t,e="localStorage"){const o=this.getStorage(e);return o?o.getItem(t):null},set(t,e,o="localStorage"){const n=this.getStorage(o);n&&n.setItem(t,e)},remove(t,e="localStorage"){const o=this.getStorage(e);o&&o.removeItem(t)},clear(t="localStorage"){const e=this.getStorage(t);e&&e.clear()},getStorage(t){return t==="localStorage"&&typeof localStorage<"u"?localStorage:t==="sessionStorage"&&typeof sessionStorage<"u"?sessionStorage:null}};function Io(t){return t.replace(t[0],t[0].toLocaleUpperCase())}const hu=(t,e=["px","%","rem","em"])=>{const o=/(\d+)(\D+)/,n=t.match(o);let l={number:0,unit:""};return n&&(l={number:parseInt(n[1],10),unit:e.includes(n[2])?n[2]:e[0]}),l};for(let t=0;t<=15;t++)t.toString(16);const Cs=(t,e="_blank")=>{e=="_blank"?window.open(t):window.location.href=t},As=(t,e="yyyy-mm-dd hh:MM:ss")=>{t||(t=Number(new Date)),t.toString().length===10&&(t=+t*1e3);const o=new Date(t);let n;const l={"y+":o.getFullYear().toString(),"m+":(o.getMonth()+1).toString(),"d+":o.getDate().toString(),"h+":o.getHours().toString(),"M+":o.getMinutes().toString(),"s+":o.getSeconds().toString()};for(const u in l)n=new RegExp("("+u+")").exec(e),n&&(e=e.replace(n[1],n[1].length==1?l[u]:xs(l[u],n[1].length,"0")));return e},xs=(t,e,o=" ")=>{if(t.length>=e)return t;const n=e-t.length;let l=Math.ceil(n/o.length);for(;l>>=1;)o+=o,l===1&&(o+=o);return o.slice(0,n)+t},Cn=(t,e,o)=>{for(const n in t)if(t[n][e]==o)return n;return!1},An=(t,e,o=-1)=>{for(const n in t){if(typeof o=="number"&&o++,o==e)return t[n];if(t[n].children&&(o=An(t[n].children,e,o),typeof o!="number"))return o}return o};class Bs{el;constructor(e){this.el=e,this.handleWheelEvent()}handleWheelEvent(){let e="";"onmousewheel"in this.el?e="mousewheel":"onwheel"in this.el?e="wheel":"attachEvent"in window?e="onmousewheel":e="DOMMouseScroll",this.el.addEventListener(e,this.scroll,{passive:!0})}scroll=e=>{this.el.clientWidth>=this.el.scrollWidth||(this.el.scrollLeft+=e.deltaY?e.deltaY:e.detail&&e.detail!==0?e.detail:-e.wheelDelta)}}function gu(t,e){let o=null;return function(...n){clearTimeout(o),o=setTimeout(()=>{t.apply(this,n)},e)}}function Ss(t){Ts(t),Is(t),$s(t),Vs(t)}function Vs(t){t.directive("tableLateralDrag",{created(e){new Bs(e.querySelector(".el-table__body-wrapper .el-scrollbar .el-scrollbar__wrap"))}})}function $s(t){t.directive("blur",{mounted(e){ts(e,"focus",()=>e.blur())}})}function Is(t){t.directive("zoom",{mounted(e,o){if(!o.value)return!1;const n=ks(o.value)?[o.value,".el-dialog__body",!1,!0]:o.value;n[1]=n[1]?n[1]:".el-dialog__body",n[2]=typeof n[2]>"u"?!1:n[2],n[3]=typeof n[3]>"u"?!0:n[3],ze(()=>{const l=document.querySelector(n[1]),u=document.querySelector(n[0]),i=document.createElement("div");i.className="zoom-handle",i.onmouseenter=()=>{i.onmousedown=a=>{const r=a.clientX,s=a.clientY,v=l.offsetWidth,y=l.offsetHeight,E=u.offsetWidth,F=u.offsetHeight;document.onmousemove=C=>{C.preventDefault();const f=v+(C.clientX-r)*2,V=y+(C.clientY-s);if(l.style.width=`${f}px`,l.style.height=`${V}px`,n[2]){const B=F+(C.clientY-s);u.style.height=`${B}px`}if(n[3]){const B=E+(C.clientX-r)*2;u.style.width=`${B}px`}},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}},u.appendChild(i)})}})}function Ts(t){t.directive("drag",{mounted(e,o){if(!o.value)return!1;const n=document.querySelector(o.value[0]),l=document.querySelector(o.value[1]);if(!l||!n)return!1;l.onmouseover=()=>l.style.cursor="move";function u(a,r){const s=r==="pc"?a.clientX-l.offsetLeft:a.touches[0].clientX-l.offsetLeft,v=r==="pc"?a.clientY-l.offsetTop:a.touches[0].clientY-l.offsetTop,y=document.body.clientWidth,E=document.body.clientHeight||document.documentElement.clientHeight,F=n.offsetWidth,C=n.offsetHeight,f=n.offsetLeft,V=y-n.offsetLeft-F,B=n.offsetTop,k=E-n.offsetTop-C;let d=getComputedStyle(n).left,h=getComputedStyle(n).top;return d=+d.replace(/\px/g,""),h=+h.replace(/\px/g,""),{disX:s,disY:v,minDragDomLeft:f,maxDragDomLeft:V,minDragDomTop:B,maxDragDomTop:k,styL:d,styT:h}}function i(a,r,s){const{disX:v,disY:y,minDragDomLeft:E,maxDragDomLeft:F,minDragDomTop:C,maxDragDomTop:f,styL:V,styT:B}=s;let k=r==="pc"?a.clientX-v:a.touches[0].clientX-v,d=r==="pc"?a.clientY-y:a.touches[0].clientY-y;-k>E?k=-E:k>F&&(k=F),-d>C?d=-C:d>f&&(d=f),n.style.cssText+=`;left:${k+V}px;top:${d+B}px;`}l.onmousedown=a=>{const r=u(a,"pc");document.onmousemove=s=>{i(s,"pc",r)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},l.ontouchstart=a=>{const r=u(a,"app");document.ontouchmove=s=>{i(s,"app",r)},document.ontouchend=()=>{document.ontouchmove=null,document.ontouchend=null}}}})}const vu={type:Dt(""),test:{default:"\u6D4B\u8BD5\u6D4B\u8BD5",type:String}},Rs={class:"mr-10px bg-black"},Os=P({name:"DkTest"});var zs=P({...Os,props:vu,emits:["onChooseUrl"],setup(t,{emit:e}){Ve("test");const o=()=>{e("onChooseUrl","\u9009\u4E2D\u7684\u94FE\u63A5\u5730\u5740")};return(n,l)=>{const u=_("el-button"),i=_("van-button");return g(),D(L,null,[c(u,{class:"dk-test"},{default:m(()=>[M("el\u6309\u94AE")]),_:1}),c(i,null,{default:m(()=>[M("van\u6309\u94AE")]),_:1}),c(u,{onClick:o},{default:m(()=>[M("\u9009\u62E9\u94FE\u63A5")]),_:1}),w("div",Rs,G(n.test),1)],64)}}}),H=(t,e)=>{const o=t.__vccOpts||t;for(const[n,l]of e)o[n]=l;return o},js=H(zs,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\test\\src\\test.vue"]]);const yu=ae(js);function Ps(t,e){return{}.hasOwnProperty.call(t,e)}function oo(t,e,o){t[e]=o}function xn(t){return Bn({},{value:t},void 0).value}function Bn(t,e={},o=!1){let n=!1;for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){let u=e[l];if((n=Array.isArray(u))||cu(u)){const i=t[l]===void 0;if(n)n=!1,i&&oo(t,l,[]);else if(u._clone&&o)if(o)u=u.getRule(),i&&oo(t,l,{});else{oo(t,l,u._clone());continue}else i&&oo(t,l,{});t[l]=Bn(t[l],u,o)}else oo(t,l,u),kn(u)||(kn(u.__json)||(t[l].__json=u.__json),kn(u.__origin)||(t[l].__origin=u.__origin))}return o!==void 0&&Array.isArray(t)?t.filter(l=>!l||!l.__ctrl):t}function Ns(t,e,o){t[e]=o}const Us=Object.assign||function(t){for(let e=1;e<arguments.length;e++){const o=arguments[e];for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&Ns(t,n,o[n])}return t};function Ms(...t){return Us.apply(this,t)}const _u={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}},Ls={key:1},Hs={class:"collapse-title"},Ws={class:"_dk-group-handle"},qs=P({name:"DkGroup"});var Gs=P({...qs,props:_u,emits:["update:modelValue","change","itemMounted","remove","add"],setup(t,{emit:e}){const o=t,n=ie({len:0,cacheRule:{},cacheValue:{},sort:[],form:Kl(o.formCreateInject.form.$form()),loading:!0}),l=ie({modelValue:[0],accordion:o.accordion}),u=n.form;Y(()=>o.rule,(p,b)=>{Object.keys(n.cacheRule).forEach(S=>{const x=n.cacheRule[S];if(x.$f){const $=x.$f.formData();if(p===b)x.$f.deferSyncValue(()=>{Bn(x.rule,p,!1),x.$f.setValue($)},!0);else{const R=x.$f.formData();x.$f.once("reloading",()=>{x.$f.setValue(R)}),x.rule=xn(p)}}})},{deep:!0}),Y(()=>o.disabled,p=>{if(o.syncDisabled){const b=n.cacheRule;Object.keys(b).forEach(S=>{b[S].$f.disabled(p)})}}),Y(()=>o.expand,p=>{const b=p-o.modelValue.length;b>0&&d(b)}),Y(()=>o.modelValue,p=>{p=p||[];const b=Object.keys(n.cacheRule),S=b.length,x=S-p.length;if(x<0){for(let $=x;$<0;$++)C(p.length-1,!0);for(let $=0;$<S;$++)F(b[$],p[$])}else{if(x>0)for(let $=0;$<x;$++)console.log("keys[total - i - 1]",b[S-$-1]),f(b[S-$-1]);p.forEach(($,R)=>{F(b[R],p[R])})}},{deep:!0}),Y(()=>({...n.cacheRule}),p=>{n.sort=Object.keys(p)},{immediate:!0});const i=p=>o.field?{[o.field]:r(o.modelValue[p])}:o.modelValue[p],a=p=>{if(n.cacheRule[p]){const{rule:b}=n.cacheRule[p],S=o.titleField?o.titleField:b[0]?.field;return n.cacheRule[p].$f?.getValue(S)||"\u70B9\u51FB\u5C55\u5F00"}else return"\u70B9\u51FB\u5C55\u5F00"},r=p=>p&&Ps(p,o.field)?p[o.field]:p,s=(p,b)=>{n.cacheValue[p]=JSON.stringify(b)},v=p=>{e("update:modelValue",p),e("change",p)},y=(p,b)=>{ze(()=>{const x=Object.keys(n.cacheRule).map($=>{const R=p===$?b:{...n.cacheRule[$].$f.form},U=o.field?R[o.field]||null:R;return s($,U),U});v(x)})},E=(p,b)=>{n.cacheRule[p].$f=b,ze(()=>{o.syncDisabled&&b.disabled(o.disabled),e("itemMounted",b,Object.keys(n.cacheRule).indexOf(p))})};De(()=>{n.loading=!1});const F=(p,b)=>{const S=o.field;S&&(b={[S]:r(b)}),n.cacheValue[p]!==JSON.stringify(S?b[S]:b)&&s(p,b)},C=(p,b=!1)=>{const S=o.formCreateInject.form.copyRules(o.rule||[]),x=o.options?{...o.options}:{submitBtn:!1,resetBtn:!1};if(o.defaultValue){x.formData||(x.formData={});const $=xn(o.defaultValue);Ms(x.formData,o.field?{[o.field]:$}:$)}o.parse&&o.parse({rule:S,options:x,index:n.sort.length}),n.cacheRule[p]={rule:S,options:x},b&&ze(()=>e("add",S,Object.keys(n.cacheRule).length-1))},f=(p,b=!1)=>{delete n.cacheRule[p],delete n.cacheValue[p],b&&ze(()=>e("remove",p))},V=()=>{if(o.disabled||o.onBeforeAdd(o.modelValue)===!1)return;const p=[...o.modelValue];p.push(o.defaultValue?xn(o.defaultValue):o.field?null:{}),v(p),l.modelValue=[p.length-1]},B=(p,b)=>{if(o.disabled||o.onBeforeRemove(o.modelValue,p)===!1)return;const S=[...o.modelValue];S.splice(p,1),v(S)},k=(p,b,S)=>{e(p,...b,n.cacheRule[S].$f,S)},d=p=>{for(let b=0;b<p;b++)o.modelValue.push(o.field?null:{})},h=(o.expand||0)-o.modelValue.length;for(let p=0;p<o.modelValue.length;p++)C(p);return h>0&&d(h),(p,b)=>{const S=_("el-divider"),x=_("el-button"),$=_("dk-icon"),R=_("el-button-group"),U=_("el-collapse-item"),I=_("draggable");return g(),D("div",{class:ne("dk-group _fc-group "+(p.disabled?"_fc-group-disabled":""))},[o.title?(g(),T(S,{key:0},{default:m(()=>[M(G(o.title),1)]),_:1})):A("v-if",!0),n.sort.length===0?(g(),D("div",Ls,[(g(),T(x,{key:"a_def",style:{width:"100%"},type:"primary",onClick:V},{default:m(()=>[M(" \u6DFB\u52A0\u6570\u636E ")]),_:1}))])):A("v-if",!0),c(I,{tag:"el-collapse",list:o.modelValue,"component-data":l,"item-key":"id",handle:".collapse-title-rank"},{item:m(({element:j,index:J})=>[c(U,{title:j.title,name:J},{title:m(()=>[w("div",Hs,[c($,{icon:"Rank",class:"collapse-title-rank"}),w("span",null,G(a(J)),1)])]),default:m(()=>[(g(),D("div",{key:J,class:"_dk-group-container"},[(g(),T(N(u),{key:J,"in-for":!0,"model-value":i(J),rule:n.cacheRule[J].rule,option:n.cacheRule[J].options,"extend-option":!0,"onUpdate:modelValue":K=>y(J,K),onEmitEvent:(K,...oe)=>k(K,oe,J),"onUpdate:api":K=>E(J,K)},null,8,["model-value","rule","option","onUpdate:modelValue","onEmitEvent","onUpdate:api"])),w("div",Ws,[c(R,null,{default:m(()=>[c(x,{icon:"Plus",plain:"",onClick:V},{default:m(()=>[M("\u589E\u52A0")]),_:1}),c(x,{icon:"Delete",plain:"",onClick:K=>B(J)},{default:m(()=>[M("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)])]))]),_:2},1032,["title","name"])]),_:1},8,["list","component-data"])],2)}}}),Ys=H(Gs,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\group\\src\\group.vue"]]);const bu=ae(Ys),Xs={language:"zh-Hans",branding:!1,skin:"oxide",icons:"jam",promotion:!1,plugins:"showImage preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media codesample table pagebreak nonbreaking anchor insertdatetime advlist lists wordcount quickbars emoticons imageSize",editimage_cors_hosts:["picsum.photos"],menubar:"file edit view insert format tools table help",toolbar:"showImage bold italic underline strikethrough fontfamily fontsize blocks alignleft aligncenter alignright alignjustify numlist bullist forecolor backcolor removeformat image media link emoticons code preview fullscreen |",toolbar_sticky:!1,height:400,quickbars_selection_toolbar:"bold italic | quicklink h2 h3 blockquote showImage",quickbars_insert_toolbar:"",quickbars_image_toolbar:"imageSize100 imageSize50 imageSize20 imageDel",toolbar_mode:"",convert_urls:!1};var Js=Xs;function Ks(t,e,o=1,n,l){return l.group_id=n,l.type=o,me({method:"post",url:"/adminapi/attachment/list",data:{page:t,size:e,search:l}})}function Qs(t,e=1,o=0){const n=new FormData;return n.append("file",t),n.append("type",e.toString()),n.append("file","file"),n.append("group_id",o.toString()),me({method:"post",url:"/adminapi/attachment/upload",data:n})}function Zs(t){return me({method:"post",url:"/adminapi/attachment/delete",data:{ids:t}},{code_success_show:!0})}function ed(t,e){return me({method:"post",url:"/adminapi/attachment/move",data:{ids:t,group_id:e}})}function td(t){return me({method:"get",url:"/adminapi/attachment/group",params:{type:t}},{code_error_show:!0})}function od(t){return me({method:"delete",url:"/adminapi/attachment/group/"+t},{code_error_show:!0})}const Eu={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}},nd={key:0},ld={key:1},ud={class:"text-center"},ad=P({name:"DkTinyEditor"});var id=P({...ad,props:Eu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,n=O(null),{width:l}=wt(n),u=O(o.modelValue),i=O(!1),a=(B,k)=>new Promise((d,h)=>{Qs(B.blob()).then(p=>{k(100),d(p.data.url)}).catch(p=>{h(p)})}),r=O("vue-tinymce-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")),s=O({selector:"#"+r.value,...Js,height:o.height,content_css:o.document?"document":"",images_upload_handler:a,initialContent:"Loading editor..."});console.log("init",s);const v=O("https://cdn-1251560393.cos.ap-chengdu.myqcloud.com/lib/tinymce/tinymce.min.js"),y=O(),E=O(),F=Q(()=>l.value>=o.showDialogWidth);Y(()=>o.modelValue,B=>{u.value=B}),Y(()=>u.value,B=>{e("update:modelValue",B),e("input",B),e("change",B)}),De(()=>{ze(()=>{C()})}),Y(()=>E.value,()=>{E.value?.getEditor()&&E.value.getEditor().on("showImage",()=>{y.value.open()})});const C=()=>{E.value?.getEditor()?E.value.getEditor().on("showImage",()=>{y.value.open()}):setTimeout(()=>{C()},1e3)},f=B=>{const k=E.value.getEditor();let d="";B.forEach(h=>{d+='<img src="'+h.url+'" alt="" width="100%">'}),k.insertContent(d)},V=B=>{console.log(B)};return(B,k)=>{const d=_("el-button"),h=_("dk-dialog"),p=_("dk-attachment-dialog");return g(),D("div",{ref_key:"el",ref:n,class:"dk-tiny-editor"},[F.value?(g(),D("div",nd,[c(N(ou),{ref_key:"editorRef",ref:E,modelValue:u.value,"onUpdate:modelValue":k[0]||(k[0]=b=>u.value=b),init:s.value,"tinymce-script-src":v.value,onDblclick:V},null,8,["modelValue","init","tinymce-script-src"])])):(g(),D("div",ld,[c(d,{type:"primary",plain:"",style:{width:"100%"},onClick:k[1]||(k[1]=b=>i.value=!0)},{default:m(()=>[M(G(o.buttonText),1)]),_:1}),c(h,{modelValue:i.value,"onUpdate:modelValue":k[4]||(k[4]=b=>i.value=b),title:"\u7F16\u8F91",width:"900px","z-index":1298},{footer:m(()=>[w("div",ud,[c(d,{type:"primary",style:{width:"200px"},onClick:k[3]||(k[3]=b=>i.value=!1)},{default:m(()=>[M("\u786E\u5B9A")]),_:1})])]),default:m(()=>[c(N(ou),{ref_key:"editorRef",ref:E,modelValue:u.value,"onUpdate:modelValue":k[2]||(k[2]=b=>u.value=b),init:s.value,"tinymce-script-src":v.value,onDblclick:V},null,8,["modelValue","init","tinymce-script-src"])]),_:1},8,["modelValue"])])),c(p,{ref_key:"attachmentRef",ref:y,type:1,onConfirm:f},null,512)],512)}}}),rd=H(id,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\tiny-editor\\src\\tiny-editor.vue"]]);const ku=ae(rd),Fu={icon:{default:"",type:String},color:String,size:Number,hoverColor:String,showEl:{default:!0,type:Boolean},showVant:{default:!0,type:Boolean}},sd=P({name:"DkIcon"});var dd=P({...sd,props:Fu,setup(t){const e=t,[o,n]=Ve("icon"),l=Object.keys(nu).map(a=>a),u=Q(()=>{const{color:a,size:r,hoverColor:s}=e,v={};return a&&(v.color=a),r&&(v.fontSize=`${r}px`),s&&(v["--hover-color"]=s),v}),i=Q(()=>{let a="cloud";return l.includes(e.icon)&&e.showEl&&(a="el"),e.showVant&&(Vo.basic.includes(e.icon)&&(a="vant"),Vo.outline.includes(e.icon)&&(a="vant"),Vo.filled.includes(e.icon)&&(a="vant")),a});return(a,r)=>{const s=_("van-icon"),v=_("el-icon");return g(),T(v,{class:ne(N(n)()),style:q(u.value)},{default:m(()=>[he(a.$slots,"default",{},()=>[i.value==="cloud"?(g(),T(N(ls),{key:0,icon:e.icon},null,8,["icon"])):A("v-if",!0),i.value==="el"?(g(),T(dt(e.icon),{key:1})):A("v-if",!0),i.value==="vant"?(g(),T(s,{key:2,class:ne(N(n)()),name:e.icon,style:q(u.value)},null,8,["class","name","style"])):A("v-if",!0)])]),_:3},8,["class","style"])}}}),cd=H(dd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon\\src\\icon.vue"]]);const wu=ae(cd),Du={modelValue:Dt(""),showAlpha:{default:!1,type:Boolean},placeholder:Dt(""),colorFormat:Dt("hex"),teleported:{default:!0,type:Boolean}},pd={style:{display:"flex"},class:"dk-color-input"},fd=P({name:"DkColorInput"});var md=P({...fd,props:Du,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t;Ve("color-input");const n=O(o.modelValue||"");return Y(()=>o.modelValue,l=>{n.value=l}),Y(()=>n.value,l=>{e("change",l),e("update:modelValue",l),e("input",l)}),(l,u)=>{const i=_("el-color-picker"),a=_("el-input");return g(),D("div",pd,[c(i,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=r=>n.value=r),teleported:l.teleported,"show-alpha":l.showAlpha,"color-format":l.colorFormat},null,8,["modelValue","teleported","show-alpha","color-format"]),c(a,{modelValue:n.value,"onUpdate:modelValue":u[1]||(u[1]=r=>n.value=r),placeholder:l.placeholder,clearable:"",style:{width:"100%"}},null,8,["modelValue","placeholder"])])}}}),hd=H(md,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\color-input\\src\\color-input.vue"]]);const Cu=ae(hd),Au={modelValue:{type:Object,default:()=>({})}},gd={class:"hot-area-content"},vd={class:"hot-area-draggable"},yd={class:"hot-item-content",style:{position:"relative",width:"100%",height:"100%",background:"#0003"}},_d={key:1,style:{width:"500px",height:"500px"}},bd={class:"hot-area-form"},Ed=w("h3",{style:{"margin-top":"0","font-size":"16px","font-weight":"500"}},"\u70ED\u533A\u7BA1\u7406",-1),kd={style:{display:"flex","justify-content":"space-between",width:"100%"}},Fd=P({name:"HotAreaContent"});var wd=P({...Fd,props:{hotDataValue:{default:()=>({views:[],width:400,height:400,background:null}),type:Object}},setup(t){const e=t,o=O(0),n=ie(e.hotDataValue),l=()=>{Array.isArray(n.views)||(n.views=[]),n.views.push({css:{left:0,top:0,width:80,height:80,borderRadius:0,borderColor:"#fff"},url:""})},u=v=>{v>=0&&v<n.views.length&&n.views.splice(v,1)},i=v=>{const y=n.views[o.value].css;y.left=v.x,y.top=v.y},a=v=>{const y=n.views[o.value].css;y.left=v.x,y.top=v.y,y.width=v.w,y.height=v.h};De(()=>{r()}),Y(()=>n?.background,()=>{r()});const r=()=>{n.background&&s(n.background).then(v=>{n.width=500,n.height=v.height*500/v.width,setTimeout(()=>{},200)}).catch(()=>{})},s=v=>new Promise(function(y,E){const F=new Image;F.onload=function(){y({width:F.width,height:F.height})},F.onerror=function(){E(new Error("error"))},F.src=v});return(v,y)=>{const E=_("vue3-draggable-resizable"),F=_("el-empty"),C=_("dk-image-input"),f=_("el-form-item"),V=_("dk-url-input"),B=_("dk-icon"),k=_("el-button"),d=_("el-form");return g(),D("div",gd,[w("div",vd,[n.background?(g(),D("div",{key:0,style:q([{width:n.width+"px",height:n.height+"px",backgroundImage:"url("+n.background+")"},{"background-size":"100% 100%"}]),onContextmenu:y[0]||(y[0]=ct(()=>{},["prevent"]))},[(g(!0),D(L,null,X(n.views,(h,p)=>(g(),T(E,{key:p,ref_for:!0,ref:"draggables",h:h.css.height,"onUpdate:h":b=>h.css.height=b,x:h.css.left,"onUpdate:x":b=>h.css.left=b,y:h.css.top,"onUpdate:y":b=>h.css.top=b,w:h.css.width,"onUpdate:w":b=>h.css.width=b,"init-w":h.css.width,"init-h":h.css.height,parent:!0,style:{cursor:"move"},"min-width":20,"min-height":20,onResizing:a,onDragging:i,onMousedown:b=>o.value=p},{default:m(()=>[w("div",yd,G(p+1),1)]),_:2},1032,["h","onUpdate:h","x","onUpdate:x","y","onUpdate:y","w","onUpdate:w","init-w","init-h","onMousedown"]))),128))],36)):(g(),D("div",_d,[c(F,{description:"\u8BF7\u4E0A\u4F20\u56FE\u7247"})]))]),w("div",bd,[Ed,c(d,{"label-width":"80px","label-position":"left"},{default:m(()=>[c(f,{label:"\u80CC\u666F\u56FE "},{default:m(()=>[c(C,{modelValue:n.background,"onUpdate:modelValue":y[1]||(y[1]=h=>n.background=h)},null,8,["modelValue"])]),_:1}),(g(!0),D(L,null,X(n.views,(h,p)=>(g(),T(f,{key:p,label:"\u70ED\u533A\u5730\u5740"+(p+1)},{default:m(()=>[w("div",kd,[c(V,{modelValue:n.views[p].url,"onUpdate:modelValue":b=>n.views[p].url=b,placeholder:"\u586B\u5199\u8DF3\u8F6C\u5730\u5740",style:{width:"100%","margin-right":"5px"}},null,8,["modelValue","onUpdate:modelValue"]),c(k,{type:"danger",plain:"",onClick:b=>u(p)},{default:m(()=>[c(B,{icon:"Delete"})]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128))]),_:1}),c(k,{disabled:!n.background,type:"primary",onClick:y[2]||(y[2]=h=>l())},{default:m(()=>[M(G(n.background?"\u6DFB\u52A0\u70ED\u533A":"\u8BF7\u5148\u4E0A\u4F20\u56FE\u7247"),1)]),_:1},8,["disabled"])])])}}}),Dd=H(wd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\component\\hot-area-content.vue"]]);const Cd={class:"dk-hot-area-input"},Ad={class:"text-center"},xd=P({name:"DkHotAreaInput"});var Bd=P({...xd,props:Au,setup(t){const o=ie(t.modelValue),n=O(!1);return(l,u)=>{const i=_("el-button"),a=_("dk-dialog");return g(),D("div",Cd,[c(i,{type:"primary",onClick:u[0]||(u[0]=r=>n.value=!0)},{default:m(()=>[M("\u8BBE\u7F6E\u70ED\u533A")]),_:1}),c(a,{modelValue:n.value,"onUpdate:modelValue":u[2]||(u[2]=r=>n.value=r),width:"1000px",title:"\u8BBE\u7F6E\u70ED\u533A"},{footer:m(()=>[w("div",Ad,[c(i,{size:"default",style:{width:"200px"},type:"primary",onClick:u[1]||(u[1]=r=>n.value=!1)},{default:m(()=>[M("\u786E\u5B9A")]),_:1})])]),default:m(()=>[c(Dd,{"hot-data-value":o},null,8,["hot-data-value"])]),_:1},8,["modelValue"])])}}}),Sd=H(Bd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\hot-area-input.vue"]]);const xu=ae(Sd),Vd={modelValue:{type:Boolean,default:!1},title:Dt(""),fullscreen:{type:Boolean,default:!1},defaultFullscreen:{type:Boolean,default:!1},maxHeight:{type:String,default:""},draggable:{type:Boolean,default:!0},zIndex:{type:Number,default:1299}},$d={class:"flex justify-between items-center relative"},Id={class:"flex justify-between items-center absolute top-[50%] right-0 translate-y-[-50%]"},Td=P({name:"DkDialog"});var Rd=P({...Td,props:Vd,setup(t){const e=t;Ve("dialog");const o=Yr(),n=Q(()=>{const r=["fullscreen","title","maxHeight"],v={...Xr(),...e};for(const y in v)r.indexOf(y)!==-1&&delete v[y];return v}),l=O(e.defaultFullscreen);Y(()=>e.defaultFullscreen,()=>{l.value=e.defaultFullscreen});const u=()=>{l.value=!N(l)},i=O(pu(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight);Y(()=>l.value,async r=>{if(await ze(),r){const s=document.documentElement.offsetHeight;i.value=`${s-55-60-(o.footer?63:0)}px`}else i.value=pu(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight},{immediate:!0});const a=Q(()=>({maxHeight:e.maxHeight==="auto"?"auto":N(i)}));return(r,s)=>{const v=_("dk-icon"),y=_("ElScrollbar"),E=_("ElDialog");return g(),T(E,ve(n.value,{fullscreen:l.value,"destroy-on-close":"","append-to-body":"","lock-scroll":"",draggable:e.draggable,"close-on-click-modal":!1,"show-close":!1,class:"dk-dialog","z-index":e.zIndex}),Ft({header:m(({close:F})=>[he(r.$slots,"header",{},()=>[w("div",$d,[w("span",null,G(e.title),1),w("div",Id,[r.fullscreen?(g(),T(v,{key:0,class:"cursor-pointer is-hover mr-10px",icon:l.value?"radix-icons:exit-full-screen":"radix-icons:enter-full-screen",color:"var(--el-color-info)","hover-color":"var(--el-color-primary)",onClick:u},null,8,["icon"])):A("v-if",!0),c(v,{class:"cursor-pointer is-hover",icon:"ep:close","hover-color":"var(--el-color-primary)",color:"var(--el-color-info)",onClick:F},null,8,["onClick"])])])])]),default:m(()=>[c(y,{style:q(a.value)},{default:m(()=>[he(r.$slots,"default")]),_:3},8,["style"])]),_:2},[N(o).footer?{name:"footer",fn:m(()=>[he(r.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen","draggable","z-index"])}}}),Od=H(Rd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\dialog\\src\\dialog.vue"]]);const zd=ae(Od),Bu={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}},jd={global:{upload:{props:{onSuccess(t,e){t.status===200?e.url=t.data.src:Se.error(t.msg)}}}},info:{icon:"el-icon-warning-outline",align:"left"},form:{inline:!1,labelPosition:"left",labelSuffix:void 0,hideRequiredAsterisk:!1,labelWidth:"125px",showMessage:!0,inlineMessage:!1,statusIcon:!1,validateOnRuleChange:!0,disabled:!1,size:"default"},submitBtn:!1,resetBtn:{type:"default",size:"default",plain:!1,round:!1,circle:!1,loading:!1,disabled:!1,icon:"el-icon-refresh",width:void 0,autofocus:!1,nativeType:"button",innerText:"\u91CD\u7F6E",show:!1,col:void 0,click:void 0}};var Pd=jd;const Nd={key:1},Ud=P({name:"DkForm"});var Md=P({...Ud,props:Bu,emits:["submit","fail","update:modelValue"],setup(t,{expose:e,emit:o}){const n=t;Ve("form"),$o.register({name:"help",init({value:x},$){Fn(x)||(x=[x]),$.suffix={type:"p",children:x,class:"form-help"}}});const l=$o.$form(),u=ie(Pd),i=O(),a=O(!0),r=O(!1),s=O(!1),{width:v}=os(),y=Q(()=>{const x=u;return v.value<768?(x.form.labelPosition="top",x.form.size="small"):(x.form.labelPosition="left",x.form.size="default"),{...x,...n.extraConfig}}),E=O(null),F=O(n.formData||{});Y(()=>n.formData,()=>{F.value=n.formData},{deep:!0}),Y(()=>E.value,x=>{o("update:modelValue",x||{})});const C=Q(()=>{let x="800px";const $=F.value?.config||{};if($?.width)return $?.width;n.dialog?.width&&(x=n.dialog?.width),$?.defaultWidth&&(x=$?.defaultWidth);let R=768;return x.endsWith("%")||(R=parseInt(x)),v.value<R?"100%":x}),f=Q(()=>F.value?.config?.style?F.value?.config?.style:n.dialog?.style?n.dialog?.style:{}),V=Q(()=>{let x=!1;return n.dialog?.draggable&&(x=n.dialog?.draggable),F.value?.config?.draggable!==void 0&&(x=F.value?.config?.draggable),x}),B=Q(()=>{let x=!1;const $=F.value?.config?.autoFullscreen!==!1;return n.dialog?.width&&(x=n.dialog?.fullscreen),F.value?.config?.fullscreen&&(x=F.value?.config?.fullscreen),v.value<768&&$&&(x=!0),x}),k=Q(()=>Object.assign(n.dialog,F.value?.config?.dialog)),d=x=>{E.value=null,F.value=x},h=x=>{if(x||(x=n.formUrl),n.formData)a.value=!1;else if(x){let $;cu(x)?$=x:$={url:x,method:"post"},me($).then(R=>{F.value=R.data,a.value=!1}).catch(R=>{a.value=!1})}},p=()=>{i.value.validate().then(()=>{i.value.submit(x=>{b(x)}).catch(x=>{Se.warning(Object.values(x)[0][0].message)})}).catch(x=>{Se.warning(Object.values(x)[0][0].message)})},b=x=>{n.isLoading&&(r.value=!0),n.isSubmit?me({url:n.path+F.value.action,method:F.value.method,data:{formData:x}}).then($=>{Se.success($.msg),o("submit",x,$),r.value=!1}).catch($=>{Se.error($.msg),o("fail",x,$),r.value=!1}):(o("submit",x),r.value=!1),s.value=!1},S=()=>{s.value=!0};return De(()=>{h()}),e({showDialog:s,buttonLoading:r,fApi:i,value:E,show:S,checkForm:p,onSubmit:b,initFormData:h,setFormData:d}),(x,$)=>{const R=_("DkDialog");return n.isDialog?(g(),T(R,ve({key:0,modelValue:s.value,"onUpdate:modelValue":$[3]||($[3]=U=>s.value=U),title:F.value?.title?F.value?.title:"\u8868\u5355",width:C.value,"default-fullscreen":B.value,"min-height":"200px"},k.value,{"max-height":"auto",draggable:V.value,"append-to-body":""}),{default:m(()=>[w("div",{style:q(f.value),class:"dk-form p10px"},[c(N(l),{modelValue:E.value,"onUpdate:modelValue":$[0]||($[0]=U=>E.value=U),option:y.value,rule:F.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":$[1]||($[1]=U=>i.value=U),"onUpdate:value":$[2]||($[2]=U=>E.value=U)},null,8,["modelValue","option","rule"]),w("div",{style:q({marginLeft:u.form.labelWidth}),class:"m-t-10px"},[he(x.$slots,"buttons",{},()=>[c(N(Xl),{type:"primary",loading:r.value,onClick:p},{default:m(()=>[M(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4)]),_:3},16,["modelValue","title","width","default-fullscreen","draggable"])):(g(),D("div",Nd,[w("div",{style:q({minHeight:x.minHeight}),class:"dk-form"},[c(N(l),{modelValue:E.value,"onUpdate:modelValue":$[4]||($[4]=U=>E.value=U),option:y.value,rule:F.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":$[5]||($[5]=U=>i.value=U),"onUpdate:value":$[6]||($[6]=U=>E.value=U)},null,8,["modelValue","option","rule"]),w("div",{style:q({marginLeft:u.form.labelWidth}),class:"m-t-10px"},[he(x.$slots,"buttons",{},()=>[c(N(Xl),{type:"primary",loading:r.value,onClick:p},{default:m(()=>[M(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4),A(' <div v-else :style="{ minHeight }"></div>')]))}}}),Ld=H(Md,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\form\\src\\form.vue"]]);const Su=ae(Ld),Hd={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"},Wd=w("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),qd=w("path",{fill:"#B0B7BD",d:"m384,128l96,0l-128,-128l0,96c0,17.6 14.4,32 32,32z",style:{fill:"#b0b7bd"}},null,-1),Gd=w("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 ",style:{fill:"#cad1d8"}},null,-1),Yd=w("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),Xd={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"},Jd={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"},Kd={x:"-1",y:"0"},Qd={x:"220",y:"380","text-anchor":"middle",fill:"white","font-family":"Verdana, Helvetica, Arial, sans-serif","font-size":"124"},Zd=P({name:"DkFileIcon"});var ec=P({...Zd,props:{type:{default:0,type:[Number,String]},fileSuffix:{default:"",type:String},fileName:{default:"",type:String},fileUrl:{default:"",type:String}},setup(t){const e=t,o=O(e.type),n=Q(()=>{let u="";if(e.fileSuffix&&(u=e.fileSuffix),e.fileName){const i=e.fileName,a=i.lastIndexOf(".");a!==-1&&(u=i.substring(a+1))}if(e.fileUrl){const i=e.fileUrl,a=i.lastIndexOf(".");a!==-1&&(u=i.substring(a+1))}return u.length>5?"\u672A\u77E5":u===""?"\u7A7A":u}),l=u=>{if(u==="PDF")return"#f44336";const i=["#0ca0ff","#16a806","#f44336","#ff374e","#ccc","#32CD32","#867aff","#9a978f","#ffd5b2","#FFAA33","#6082B6"],a=u.charCodeAt(0)%i.length;return i[a]};return(u,i)=>(g(),D("svg",Hd,[w("g",null,[Wd,qd,Gd,w("path",{style:q({fill:l(n.value)}),d:"m416,416c0,8.8 -7.2,16 -16,16l-352,0c-8.8,0 -16,-7.2 -16,-16l0,-160c0,-8.8 7.2,-16 16,-16l352,0c8.8,0 16,7.2 16,16l0,160z"},null,4),Yd,o.value===2?(g(),D("path",Xd)):A("v-if",!0),o.value===3?(g(),D("path",Jd)):A("v-if",!0),w("g",null,[w("text",Kd,[w("tspan",Qd,G(n.value),1)])])])]))}}),Ot=H(ec,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\file-icon.vue"]]);const Sn={type:{type:[Number,String],default:1},accept:{type:String,default:""}},tc={class:"dk-attachment attachment"},oc={class:"attachment-header flex justify-between pt-5px pb-5px"},nc={class:"header-form z"},lc={class:"header-button y"},uc=w("i",{class:"el-icon-delete el-icon--right"},null,-1),ac=w("i",{class:"el-icon-upload el-icon--right"},null,-1),ic={class:"attachment-content flex"},rc={class:"attachment-group"},sc={class:"group_list"},dc=["onClick"],cc={class:"ml-10px"},pc={class:"op"},fc={class:"attachment-container"},mc={key:0,class:"p2"},hc=["onClick","onContextmenu"],gc={class:"file"},vc=w("div",{class:"u-m-t-30"},[w("i",{class:"el-icon-loading"}),w("span",null,"\u52A0\u8F7D\u4E2D")],-1),yc={key:1},_c={key:2},bc={key:3},Ec={class:"file-name over"},kc={class:"right"},Fc={class:"block p-10px"},wc={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"340px"}},Dc=P({name:"DkAttachment"});var Cc=P({...Dc,props:Sn,setup(t,{expose:e}){const o=t,n=Q(()=>Dn(o.type)),l=O(""),u=O([]),i=O([]),a=O([]),r=bn(),s=r.ApiUrl+"/adminapi/attachment/upload",v={"Access-Token":r.AccessToken},y=O(),E=ie({type:n.value,file:"file",group_id:0}),F=le=>{ed(a.value,le).then(pe=>{Se.success(pe.msg),Z()})},C=le=>{console.log("res",le),le.code===0?(Se.success(le.msg),Z()):Se.error(le.msg)},f=Q(()=>{let le="";if(o.accept)return o.accept;switch(n.value){case 0:break;case 1:le="image/*";break;case 2:le="audio/*";break;case 3:le="video/*";break}return le}),V=()=>{vn.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u6587\u4EF6, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}).then(()=>{try{Zs(a.value).then(le=>{console.log(le),Z()}).catch(le=>{console.log("deleteAttachment error",le)})}catch(le){console.log(le)}})},B=O([]),k=Q(()=>oe.value===0?{url:r.ApiUrl+"/adminapi/attachment/group/create",method:"get"}:{url:r.ApiUrl+"/adminapi/attachment/group/"+oe.value+"/edit",method:"get"}),d=O(),h=()=>{oe.value=0,d.value.show()},p=le=>{vn.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u5206\u7EC4, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{try{od(le).then(pe=>{Se.success(pe.msg),S()}).catch(()=>{})}catch(pe){console.log(pe)}})},b=()=>{d.value.show()},S=()=>{$(),Z()},x=le=>{oe.value=le,I.value=1,Z()},$=async()=>{try{const le=await td(n.value);B.value=le.data}catch{}},R=O(!0),U=O([]),I=O(1),j=O(0),J=O(10),K=O(0),oe=O(0),z=le=>{J.value=le,Z()},re=le=>{I.value=le,Z()},Z=async(le={})=>{Be();try{const pe=await Ks(I.value,J.value,n.value,oe.value,le);U.value=pe.data,j.value=pe.msg,R.value=!1}catch{}},Be=()=>{u.value=[],a.value=[],i.value=[]},Ye=(le,pe)=>{const Ee=u.value.indexOf(pe);Ee>-1?(u.value.splice(Ee,1),a.value.splice(Ee,1),i.value.splice(Ee,1)):(u.value.push(pe),a.value.push(le.id),i.value.push(le))};return De(()=>{$(),Z()}),e({chooseFileId:a,chooseFileKey:u,chooseFileList:i,clearChoose:Be}),(le,pe)=>{const Ee=_("el-button"),Oe=_("el-input"),Rt=_("el-dropdown-item"),bt=_("el-dropdown-menu"),st=_("el-dropdown"),sn=_("el-upload"),dn=_("CirclePlusFilled"),Et=_("el-icon"),Co=_("dk-icon"),Ao=_("Tools"),cn=_("el-popover"),pn=_("el-image"),xo=_("Check"),Bo=_("el-pagination"),fn=_("el-empty"),mn=_("dk-form"),tt=pt("loading");return g(),D("div",tc,[A(" \u9876\u90E8"),w("div",oc,[w("div",nc,[c(Oe,{modelValue:l.value,"onUpdate:modelValue":pe[0]||(pe[0]=de=>l.value=de),size:"default",placeholder:"\u8BF7\u8F93\u5165\u9644\u4EF6\u540D\u79F0",class:"input-with-select"},{append:m(()=>[c(Ee,{icon:N(lu)},null,8,["icon"])]),_:1},8,["modelValue"])]),w("div",lc,[c(st,{class:"mr",trigger:"click",onCommand:F},{dropdown:m(()=>[c(bt,null,{default:m(()=>[(g(!0),D(L,null,X(B.value,(de,Xe)=>(g(),T(Rt,{key:Xe,command:de.id},{default:m(()=>[M(G(de.name),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:m(()=>[c(Ee,{size:"default",type:"info",disabled:u.value.length<=0},{default:m(()=>[M(" \u79FB\u52A8 ")]),_:1},8,["disabled"])]),_:1}),c(Ee,{size:"default",type:"danger",disabled:u.value.length<=0,onClick:V},{default:m(()=>[M("\u5220\u9664"),uc]),_:1},8,["disabled"]),c(sn,{ref_key:"upload",ref:y,class:"dk-upload-button",action:s,multiple:"",data:E,"show-file-list":!1,headers:v,"on-success":C,accept:f.value,"list-type":"text"},{default:m(()=>[c(Ee,{type:"primary",size:"default"},{default:m(()=>[M("\u4E0A\u4F20"),ac]),_:1})]),_:1},8,["data","accept"])])]),A("\u5185\u90E8"),w("div",ic,[A(" \u5206\u7EC4"),w("div",rc,[w("h5",{class:"cursor-pointer flex items-center content-center",onClick:pe[1]||(pe[1]=de=>h())},[M(" \u9644\u4EF6\u5206\u7EC4 "),c(Et,{class:"m-l-5px"},{default:m(()=>[c(dn)]),_:1})]),w("ul",sc,[(g(!0),D(L,null,X(B.value,(de,Xe)=>(g(),D("li",{key:Xe,class:ne({active:oe.value===de.id}),onClick:kt=>x(de.id)},[de.id===oe.value?(g(),T(Co,{key:0,icon:"flat-color-icons:opened-folder"})):(g(),T(Co,{key:1,icon:"flat-color-icons:folder"})),w("span",cc,G(de.name),1),c(cn,{placement:"right",trigger:"click"},{reference:m(()=>[w("div",pc,[de.id>0?(g(),T(Et,{key:0},{default:m(()=>[c(Ao)]),_:1})):A("v-if",!0)])]),default:m(()=>[c(Ee,{size:"small",type:"primary",onClick:pe[2]||(pe[2]=ct(kt=>b(),["stop"]))},{default:m(()=>[M("\u7F16\u8F91 ")]),_:1}),c(Ee,{size:"small",type:"danger",onClick:kt=>p(de.id)},{default:m(()=>[M("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)],10,dc))),128))])]),A(" \u5217\u8868"),w("div",fc,[R.value||U.value.length>0?fe((g(),D("div",mc,[w("ul",{class:"attachment-list cl",style:q({overflow:U.value.length>10?"auto":""})},[(g(!0),D(L,null,X(U.value,(de,Xe)=>(g(),D("li",{key:Xe,class:ne({choose:u.value.indexOf(Xe)>-1}),onClick:kt=>Ye(de,Xe),onContextmenu:ct(kt=>K.value=de.id,["prevent"])},[w("div",gc,[de.type===1?(g(),T(pn,{key:0,class:"file",src:de.url,fit:"contain"},{placeholder:m(()=>[vc]),_:2},1032,["src"])):A("v-if",!0),de.type===2?(g(),D("div",yc,[c(Ot,{"file-name":de.filename,type:de.type},null,8,["file-name","type"])])):A("v-if",!0),de.type===3?(g(),D("div",_c,[c(Ot,{"file-name":de.filename,type:de.type},null,8,["file-name","type"])])):A("v-if",!0),de.type===0?(g(),D("div",bc,[c(Ot,{"file-name":de.filename},null,8,["file-name"])])):A("v-if",!0)]),w("div",Ec,G(de.name),1),w("div",kc,[c(Et,null,{default:m(()=>[c(xo)]),_:1})])],42,hc))),128))],4),w("div",Fc,[c(Bo,{"current-page":I.value,layout:"total, prev, pager, next, jumper,sizes",total:j.value,"page-size":J.value,onSizeChange:z,onCurrentChange:re},null,8,["current-page","total","page-size"])])])),[[tt,R.value]]):(g(),D("div",wc,[c(fn,{description:"\u6682\u65E0\u6570\u636E"})])),(g(),T(mn,{ref_key:"groupForm",ref:d,key:oe.value,"form-url":k.value,"is-dialog":!0,onSubmit:pe[3]||(pe[3]=de=>S())},null,8,["form-url"]))])])])}}}),Ac=H(Cc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\attachment.vue"]]);const Vu=ae(Ac),$u={...Sn,title:{type:String,default:""},zIndex:{type:Number,default:1299}},xc={class:"text-center m2"},Bc=P({name:"DkAttachmentDialog"});var Sc=P({...Bc,props:$u,emits:["confirm"],setup(t,{expose:e,emit:o}){const n=t,[l,u]=Ve("attachment-dialog"),i=O(),a=O(!1),r=O(n.title||Ds(n.type)),s=O(Dn(n.type)),v=()=>{i.value.chooseFileList.length>0?(o("confirm",i.value.chooseFileList||[]),a.value=!1):Se.warning({message:"\u8BF7\u5148\u9009\u62E9\u6587\u4EF6"})},y=()=>{a.value=!1};return e({dialogVisible:a,attachment:i,cancel:y,open:()=>{a.value=!0}}),(F,C)=>{const f=_("dk-attachment"),V=_("el-button"),B=_("DkDialog");return g(),T(B,{modelValue:a.value,"onUpdate:modelValue":C[2]||(C[2]=k=>a.value=k),class:ne(N(u)()),title:r.value,width:"1040px",fullscreen:!1,"z-index":F.zIndex},{default:m(()=>[c(f,{ref_key:"attachment",ref:i,type:s.value},null,8,["type"]),w("div",xc,[c(V,{type:"primary",size:"default",onClick:C[0]||(C[0]=k=>v())},{default:m(()=>[M("\u786E\u5B9A")]),_:1}),c(V,{size:"default",onClick:C[1]||(C[1]=k=>y())},{default:m(()=>[M("\u5173\u95ED")]),_:1})])]),_:1},8,["modelValue","class","title","z-index"])}}}),Vc=H(Sc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment-dialog\\src\\attachment-dialog.vue"]]);const Iu=ae(Vc),Tu={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:""}},$c={class:"show m-t-5px"},Ic={class:"image-error"},Tc={class:"image-slot"},Rc={class:"no-image"},Oc=P({name:"DkFileInput"});var zc=P({...Oc,props:Tu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("file-input"),u=O(o.modelValue),i=O();Y(()=>o.modelValue,y=>{u.value=y}),Y(()=>u.value,y=>{a(y)});const a=y=>{e("update:modelValue",y),e("input",y),e("change",y)},r=()=>{u.value=""},s=()=>{i.value.open()},v=y=>{u.value=y[0].url};return(y,E)=>{const F=_("el-button"),C=_("el-input"),f=_("dk-icon"),V=_("el-image"),B=_("Picture"),k=_("el-icon"),d=_("Close"),h=_("Plus"),p=_("dk-attachment-dialog");return g(),D("div",{class:ne(N(l)())},[A("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),y.showInput?(g(),D(L,{key:0},[c(C,{modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=b=>u.value=b),placeholder:y.placeholder,clearable:""},{append:m(()=>[c(F,{onClick:s},{default:m(()=>[M("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),A("\u9009\u62E9\u7684\u662F\u56FE\u7247"),w("div",$c,[y.type===1?(g(),T(V,{key:0,src:u.value,alt:"",fit:"contain",class:"file rd-4px","preview-src-list":[u.value]},{error:m(()=>[w("div",Ic,[c(f,{icon:"Picture"})])]),_:1},8,["src","preview-src-list"])):(g(),T(Ot,{key:1,"file-url":u.value,class:"file rd-4px",type:y.type},null,8,["file-url","type"])),w("em",{onClick:E[1]||(E[1]=b=>u.value="")},[c(f,{icon:"Close"})])])],64)):(g(),D(L,{key:1},[A("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),w("div",{class:"only-img flex justify-center items-center",style:q([{position:"relative"},{width:y.imgSize+"px",height:y.imgSize+"px"}]),onClick:s},[u.value?(g(),D(L,{key:0},[A("\u56FE\u7247\u9644\u4EF6"),y.type===1?(g(),T(V,{key:0,src:u.value,alt:"",fit:"contain",style:{width:"100%",height:"100%"}},{error:m(()=>[w("div",Tc,[w("div",Rc,[c(k,null,{default:m(()=>[c(B)]),_:1})])])]),_:1},8,["src"])):A("v-if",!0),A("\u5176\u4ED6\u9644\u4EF6"),y.type!==1&&u.value?(g(),T(Ot,{key:1,"file-url":u.value,class:"file rd-4px",type:y.type},null,8,["file-url","type"])):A("v-if",!0),w("div",{class:"close",onClick:E[2]||(E[2]=ct(b=>r(),["stop"]))},[c(k,null,{default:m(()=>[c(d)]),_:1})])],64)):(g(),D(L,{key:1},[A("\u6CA1\u6709\u4E0A\u4F20\u7684\u65F6\u5019"),w("div",{class:"media",style:q({lineHeight:y.imgSize+"px",fontSize:y.imgSize/2+"px"})},[c(k,null,{default:m(()=>[c(h)]),_:1})],4)],64))],4)],64)),c(p,{ref_key:"attachmentDialog",ref:i,type:y.type,onConfirm:v},null,8,["type"])],2)}}}),jc=H(zc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-input\\src\\file-input.vue"]]);const Ru=ae(jc),Ou={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Pc=P({name:"DkImageInput"});var Nc=P({...Pc,props:Ou,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("image-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),type:1,class:N(l)()}),null,16,["modelValue","class"])}}}),Uc=H(Nc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-input\\src\\image-input.vue"]]);const zu=ae(Uc),ju={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Mc=P({name:"DkAudioInput"});var Lc=P({...Mc,props:ju,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("audio-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),type:2,class:N(l)()}),null,16,["modelValue","class"])}}}),Hc=H(Lc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-input\\src\\audio-input.vue"]]);const Pu=ae(Hc),Nu={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Wc=P({name:"DkVideoInput"});var qc=P({...Wc,props:Nu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("video-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),type:3,class:N(l)()}),null,16,["modelValue","class"])}}}),Gc=H(qc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-input\\src\\video-input.vue"]]);const Uu=ae(Gc),Mu={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}},Yc={class:"dk-image-list"},Xc=["onClick"],Jc={key:0},Kc=P({name:"DkFileListInput"});var Qc=P({...Kc,props:Mu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("file-list-input"),u=O(o.modelValue),i=Q(()=>({width:o.imgSize+"px",height:o.imgSize+"px",lineHeight:o.imgSize+"px"})),a=O(),r=()=>{a.value.open()},s=E=>{E.forEach(F=>{u.value.length<o.limit&&(u.value.push(F.url),y(u.value))})},v=E=>{u.value.splice(E,1)};Y(()=>o.modelValue,E=>{u.value=E}),Y(()=>u.value,E=>{y(E)});const y=E=>{e("update:modelValue",E),e("input",E),e("change",E)};return(E,F)=>{const C=_("el-image"),f=_("Close"),V=_("el-icon"),B=_("Plus"),k=_("dk-attachment-dialog");return g(),D("div",{class:ne(N(l)())},[w("div",Yc,[w("ul",null,[(g(!0),D(L,null,X(u.value,(d,h)=>(g(),D("li",{key:h},[w("div",{class:"file",style:q(i.value)},[E.type===1?(g(),T(C,{key:0,src:d,fit:"contain",style:q(i.value)},null,8,["src","style"])):(g(),T(Ot,{key:1,"file-url":d,class:"file rd-4px",type:E.type},null,8,["file-url","type"])),E.disabled?A("v-if",!0):(g(),D("div",{key:2,class:"close",onClick:p=>v(h)},[c(V,null,{default:m(()=>[c(f)]),_:1})],8,Xc))],4)]))),128)),E.limit>u.value.length&&!E.disabled?(g(),D("li",Jc,[w("div",{class:"chooseImage",style:q(i.value),onClick:F[0]||(F[0]=d=>r())},[c(V,null,{default:m(()=>[c(B)]),_:1})],4)])):A("v-if",!0)])]),c(k,{ref_key:"attachment",ref:a,type:E.type,onConfirm:s},null,8,["type"])],2)}}}),Zc=H(Qc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-list-input\\src\\file-list-input.vue"]]);const Lu=ae(Zc),Hu={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},ep=P({name:"DkImageListInput"});var tp=P({...ep,props:Hu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("image-list-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-list-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),class:N(l)(),type:1,onChange:r[1]||(r[1]=v=>i(u.value))}),null,16,["modelValue","class"])}}}),op=H(tp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-list-input\\src\\image-list-input.vue"]]);const Wu=ae(op),qu={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},np=P({name:"DkAudioListInput"});var lp=P({...np,props:qu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("audio-list-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-list-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),class:N(l)(),type:2,onChange:r[1]||(r[1]=v=>i(u.value))}),null,16,["modelValue","class"])}}}),up=H(lp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-list-input\\src\\audio-list-input.vue"]]);const Gu=ae(up),Yu={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},ap=P({name:"DkVideoListInput"});var ip=P({...ap,props:Yu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("video-list-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-list-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),class:N(l)(),type:3,onChange:r[1]||(r[1]=v=>i(u.value))}),null,16,["modelValue","class"])}}}),rp=H(ip,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-list-input\\src\\video-list-input.vue"]]);const Xu=ae(rp),Ju={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}},Ku={icon:{default:"",type:String},type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}},Qu={type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}};function sp(t){return me({method:"post",url:"/adminapi/common/getIcons/",data:{query:t}})}const dp={class:"dk-icon-content"},cp={key:0,class:"text-center",style:{"font-size":"12px",color:"#999"}},pp={class:"search-icon"},fp=P({name:"DkIconContent"});var mp=P({...fp,props:Ku,emits:["choose"],setup(t,{expose:e,emit:o}){const n=t;us("all");function l(d){let h=[];for(const p in d)d.hasOwnProperty(p)&&Array.isArray(d[p])&&(h=h.concat(d[p]));return h}const u=Object.keys(nu).map(d=>d),i=l(Vo),a=O(u),r=O(i),s=as(),v=O(s),E=O((()=>{const{el:d,vant:h,cloud:p}=n.showTab;return d?"element":h?"vant":p?"cloud":n.type})()),F=O(""),C=Q(()=>E.value==="element"?"\u641C\u7D22element-plus\u56FE\u6807":E.value==="vant"?"\u641C\u7D22vant\u56FE\u6807":"\u641C\u7D22\u4E91\u7AEF\u56FE\u6807"),f=O(""),V=d=>{f.value=d,o("choose",d)},B=()=>{if(E.value==="element"){const d=F.value.toLowerCase();console.log(d),a.value=u.filter(h=>!!(d&&h.toLowerCase().includes(d)))}else E.value==="vant"?(console.log("use"),r.value=i.filter(d=>!!(F.value&&d.toLowerCase().includes(F.value)))):sp(F.value).then(d=>{v.value=d.data}).catch(d=>{console.log(d)})},k=()=>{F.value="",a.value=u,v.value=s,r.value=i};return e({chooseIcon:f}),(d,h)=>{const p=_("dk-icon"),b=_("el-tab-pane"),S=_("el-empty"),x=_("el-tabs"),$=_("el-button"),R=_("el-input");return g(),D("div",dp,[c(x,{modelValue:E.value,"onUpdate:modelValue":h[0]||(h[0]=U=>E.value=U)},{default:m(()=>[n.showTab.el?(g(),T(b,{key:0,label:"element\u56FE\u6807",name:"element",class:"dk-tab-pane"},{default:m(()=>[(g(!0),D(L,null,X(a.value,(U,I)=>(g(),T(p,{key:I,size:36,color:U==f.value?"var(--el-color-primary)":"",class:ne([U==f.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",onClick:j=>V(U)},{default:m(()=>[(g(),T(dt(U)))]),_:2},1032,["color","class","onClick"]))),128))]),_:1})):A("v-if",!0),n.showTab.vant?(g(),T(b,{key:1,label:"vant\u56FE\u6807",name:"vant",class:"dk-tab-pane"},{default:m(()=>[(g(!0),D(L,null,X(r.value,(U,I)=>(g(),T(p,{key:I,size:36,color:U==f.value?"#409eff":"",class:ne([U==f.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",icon:U,onClick:j=>V(U)},null,8,["color","class","icon","onClick"]))),128))]),_:1})):A("v-if",!0),n.showTab.cloud?(g(),T(b,{key:2,label:"\u4E91\u7AEF\u56FE\u6807",name:"cloud",class:"dk-tab-pane"},{default:m(()=>[v.value.length>0?(g(),D(L,{key:0},[(g(!0),D(L,null,X(v.value,(U,I)=>(g(),T(p,{key:I,icon:U,size:36,"hover-color":"var(--el-color-primary)",color:U==f.value?"#409eff":"",class:ne([U==f.value?"choose-icon":"dk-icon","cursor-pointer"]),onClick:j=>V(U)},null,8,["icon","color","class","onClick"]))),128)),F.value?A("v-if",!0):(g(),D("p",cp,"\u5F53\u524D\u663E\u793A\u5DF2\u7F13\u5B58\u7684\u56FE\u6807"))],64)):(g(),T(S,{key:1,description:"\u6682\u65E0\u56FE\u6807\uFF0C\u8BF7\u641C\u7D22"}))]),_:1})):A("v-if",!0)]),_:1},8,["modelValue"]),w("div",pp,[c(R,{modelValue:F.value,"onUpdate:modelValue":h[2]||(h[2]=U=>F.value=U),clearable:"",placeholder:C.value,onClear:k},{append:m(()=>[c($,{icon:N(lu),onClick:h[1]||(h[1]=U=>B())},null,8,["icon"])]),_:1},8,["modelValue","placeholder"])])])}}}),Zu=H(mp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-content.vue"]]);const hp={class:"text-center m2"},gp=P({name:"DkIconDialog"});var vp=P({...gp,props:Qu,emits:["choose","confirm"],setup(t,{expose:e,emit:o}){const n=t,l=O(!1),u=O(),i=O("");e({dialogVisible:l,open:()=>{l.value=!0},iconContent:u});const r=y=>{i.value=y,o("choose",y)},s=()=>{l.value=!1,o("confirm",i.value)},v=()=>{l.value=!1};return(y,E)=>{const F=_("el-button"),C=_("dk-dialog");return g(),T(C,{modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=f=>l.value=f),title:"\u9009\u62E9\u56FE\u6807",width:"800px",class:"dk-icon-dialog"},{footer:m(()=>[w("div",hp,[c(F,{type:"primary",onClick:s},{default:m(()=>[M("\u786E\u5B9A")]),_:1}),c(F,{onClick:v},{default:m(()=>[M("\u5173\u95ED")]),_:1})])]),default:m(()=>[c(Zu,ve({ref_key:"iconContent",ref:u},n,{onChoose:r}),null,16)]),_:1},8,["modelValue"])}}}),ea=H(vp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-dialog.vue"]]);const yp={key:0,class:"show m-t-5px"},_p=P({name:"DkIconInput"});var bp=P({..._p,props:Ju,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("icon-input"),u=O(o.modelValue),i=O();Y(()=>o.modelValue,y=>{u.value=y}),Y(()=>u.value,y=>{r(y)});const a=Q(()=>{const{modelValue:y,...E}=o;return E}),r=y=>{e("update:modelValue",y),e("input",y),e("change",y)},s=()=>{i.value.open()},v=y=>{console.log(y),u.value=y};return(y,E)=>{const F=_("el-button"),C=_("el-input"),f=_("dk-icon"),V=_("Close"),B=_("el-icon");return g(),D("div",{class:ne(N(l)())},[A("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),c(C,{modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=k=>u.value=k),placeholder:o.placeholder,clearable:""},{append:m(()=>[c(F,{onClick:s},{default:m(()=>[M("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),A("\u9009\u62E9\u7684\u662F\u56FE\u7247"),o.preview?(g(),D("div",yp,[c(f,{icon:u.value?u.value:"fluent:document-none-24-regular",class:"icon rd-4px cursor-pointer",size:50,color:u.value?"":"#ccc",onClick:s},null,8,["icon","color"]),w("em",{onClick:E[1]||(E[1]=k=>u.value="")},[c(B,null,{default:m(()=>[c(V)]),_:1})])])):A("v-if",!0),A("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),c(ea,ve({ref_key:"iconDialog",ref:i},a.value,{onConfirm:v}),null,16)],2)}}}),Ep=H(bp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-input.vue"]]);const ta=ae(Ep),oa=ae(Zu),na=ae(ea),kp=[{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"]}],la={components:{default:()=>kp,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}},Fp={class:"dk-style-input"},wp={key:0,class:"p-5px"},Dp={key:1},Cp=P({name:"DkStyleInput"});var Ap=P({...Cp,props:la,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=O(!1),l=O([0]),u=O({}),i=O(!0),a=()=>{const v={};Object.keys(u.value).forEach(y=>{Object.keys(u.value[y]).forEach(E=>{v[E]=u.value[y][E]})}),e("update:modelValue",v)},r=O([]),s=()=>{r.value=o.components.filter(y=>!o.hideComponents.includes(y.name));const v={};r.value.forEach(y=>{const E=y.params,F={};Object.keys(E).forEach(C=>{const f=E[C];o.modelValue[f]&&(F[f]=o.modelValue[f])}),v[y.name]=F}),u.value=v,i.value=!1};return Y(()=>o.modelValue,()=>{s()},{deep:!0}),De(()=>{s()}),(v,y)=>{const E=_("el-collapse-item"),F=_("el-collapse"),C=_("el-button"),f=_("el-drawer");return g(),D("div",Fp,[i.value?A("v-if",!0):(g(),D("div",wp,[o.isDrawer?(g(),D("div",Dp,[c(C,{type:"primary",plain:"",style:{width:"100%"},size:"small",onClick:y[1]||(y[1]=V=>n.value=!0)},{default:m(()=>[M(G(o.drawerText),1)]),_:1}),c(f,ve({modelValue:n.value,"onUpdate:modelValue":y[3]||(y[3]=V=>n.value=V)},o.drawerProps),{default:m(()=>[c(F,{modelValue:l.value,"onUpdate:modelValue":y[2]||(y[2]=V=>l.value=V)},{default:m(()=>[(g(!0),D(L,null,X(r.value,(V,B)=>(g(),T(E,{key:B,title:"",name:B},{title:m(()=>[M(G(V.title),1)]),default:m(()=>[l.value.includes(B)?(g(),T(dt(V.name),ve({key:0,modelValue:u.value[V.name],"onUpdate:modelValue":k=>u.value[V.name]=k},V.props,{onChange:a}),null,16,["modelValue","onUpdate:modelValue"])):A("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])]),_:1},16,["modelValue"])])):(g(),T(F,{key:0,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=V=>l.value=V)},{default:m(()=>[(g(!0),D(L,null,X(r.value,(V,B)=>(g(),T(E,{key:B,title:"",name:B},{title:m(()=>[M(G(V.title),1)]),default:m(()=>[l.value.includes(B)?(g(),T(dt(V.name),ve({key:0,modelValue:u.value[V.name],"onUpdate:modelValue":k=>u.value[V.name]=k},V.props,{onChange:a}),null,16,["modelValue","onUpdate:modelValue"])):A("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]))]))])}}}),xp=H(Ap,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-input\\src\\style-input.vue"]]);const ua=ae(xp),aa={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}},Bp=["onMousedown"],Sp={style:{display:"flex"}},Vp=P({name:"DkBoxSizeInput"});var $p=P({...Vp,props:aa,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=O(),{width:l}=wt(n),u=ie({all:"",first:"",second:"",third:"",fourth:""}),i=ie({all:"px",first:"rem",second:"px",third:"px",fourth:"px"}),a=["px","%","rem","rm","vh","auto"],r=O(""),s=O(o.defaultIsMerge),v=O(!1),y=O(0),E=O(!1),F=O(null),C=O(null),f=Q(()=>a.map(b=>({label:b,value:b}))),V=Q(()=>{let b;return o.type==="radius"?b=[{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"}]:b=[{position:"first",name:"\u4E0A",icon:"ArrowUp"},{position:"second",name:"\u53F3",icon:"ArrowRight"},{position:"third",name:"\u4E0B",icon:"ArrowDown"},{position:"fourth",name:"\u5DE6",icon:"ArrowLeft"}],b}),B=(b,S)=>{v.value=!0,y.value=S.clientX,r.value=b,F.value=k.bind(S),C.value=d.bind(S),document.addEventListener("mousemove",F.value),document.addEventListener("mouseup",C.value),document.body.style.cursor="ew-resize"},k=b=>{v.value&&(u[r.value]=b.clientX-y.value)},d=()=>{document.removeEventListener("mousemove",F.value),document.removeEventListener("mouseup",C.value),document.body.style.cursor="default",v.value=!1,r.value=""},h=()=>{const b=j=>{let J="px";return a.forEach(K=>{j.includes(K)&&(J=K)}),J},S=o.modelValue.split(" ")||["0px"];let[x,$=x,R=x,U=$]=S;S.length===4?s.value=!1:S.length===3?(s.value=!1,U=""):S.length===2?(s.value=!1,R=x,U=$):(s.value=!0,$=R=U=x);const I={first:x,second:$,third:R,fourth:U};for(const j in I)u[j]=parseInt(I[j])||0,i[j]=b(I[j]);s.value&&(u.all=u.first,i.all=i.first)};Y(()=>o.modelValue,()=>{h()});const p=()=>{if(s.value)i.all==="auto"?e("update:modelValue","auto"):e("update:modelValue",`${u.all}${i.all}`);else{let b="";for(const S in i)S!=="all"&&(i[S]==="auto"?b+="auto ":b+=`${u[S]}${i[S]} `);e("update:modelValue",b.trim())}};return Y(u,()=>{p()}),Y(s,()=>{p()}),Y(i,()=>{p()}),De(()=>{h()}),(b,S)=>{const x=_("dk-icon"),$=_("el-tooltip"),R=_("el-input"),U=_("el-select-v2"),I=_("el-button");return g(),D("div",{ref_key:"el",ref:n,class:"dk-box-size-input"},[fe(w("div",{class:ne((N(l)>500,""))},[(g(!0),D(L,null,X(V.value,(j,J)=>(g(),D("div",{key:J,style:{display:"flex"}},[c(R,{modelValue:u[j.position],"onUpdate:modelValue":K=>u[j.position]=K,type:"number",controls:!1,disabled:i[j.position]=="auto"},Ft({_:2},[N(l)>600||N(l)<500?{name:"prefix",fn:m(()=>[w("span",{class:"w-resize",onMousemove:k,onMousedown:K=>B(j.position,K),onMouseup:d},[c($,{"hide-after":0,class:"item",effect:"dark",content:j.name,placement:"top-start",disabled:E.value},{default:m(()=>[c(x,{icon:j.icon},null,8,["icon"])]),_:2},1032,["content","disabled"])],40,Bp)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","disabled"]),c(U,{modelValue:i[j.position],"onUpdate:modelValue":K=>i[j.position]=K,options:f.value},null,8,["modelValue","onUpdate:modelValue","options"])]))),128))],2),[[Zt,!s.value]]),fe(w("div",Sp,[c(R,{modelValue:u.all,"onUpdate:modelValue":S[1]||(S[1]=j=>u.all=j),type:"number",controls:!1,disabled:i.all==="auto",clearable:o.clearable},{prefix:m(()=>[w("span",{class:"w-resize",onMousemove:k,onMousedown:S[0]||(S[0]=j=>B("all",j)),onMouseup:d},[c(x,{icon:"Rank"})],32)]),_:1},8,["modelValue","disabled","clearable"]),c(U,{modelValue:i.all,"onUpdate:modelValue":S[2]||(S[2]=j=>i.all=j),options:f.value},null,8,["modelValue","options"])],512),[[Zt,s.value]]),o.showMerge?(g(),D("div",{key:0,class:"dk-full",onClick:S[3]||(S[3]=j=>s.value=!s.value)},[c($,{class:"item",effect:"dark",content:s.value?"\u72EC\u7ACB\u914D\u7F6E":"\u6279\u91CF\u914D\u7F6E",placement:"top","hide-after":0},{default:m(()=>[s.value?(g(),T(I,{key:0},{default:m(()=>[c(x,{icon:"streamline:interface-layout-border-horizontal-border-cell-center-format-formatting"})]),_:1})):(g(),T(I,{key:1},{default:m(()=>[c(x,{icon:"streamline:interface-layout-border-full-grid-layout-layouts-module"})]),_:1}))]),_:1},8,["content"])])):A("v-if",!0)],512)}}}),Ip=H($p,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\box-size-input\\src\\box-size-input.vue"]]);const ia=ae(Ip),ra={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)"}},Tp=[{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>'}}],Rp=[{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>'}}],Op={class:"dk-style-box-input"},zp={class:"header"},jp={class:"items-center"},Pp=["title","onDblclick"],Np=["onUpdate:modelValue","onBlur"],Up=["width","height","viewBox","data-link-anchor","innerHTML"],Mp=w("div",{style:{position:"absolute",display:"none",width:"100%",height:"100%"}},null,-1),Lp={class:"anchor-wrapper"},Hp=["onMousedown"],Wp=w("span",{class:"title"}," \u5916\u8FB9\u8DDD ",-1),qp={class:"tools"},Gp={class:"thumnail border"},Yp=["title","onDblclick"],Xp=["onUpdate:modelValue","onBlur"],Jp=["width","height","viewBox","data-link-anchor","innerHTML"],Kp={class:"anchor-wrapper"},Qp=["onMousedown"],Zp=w("span",{class:"title"}," \u5185\u8FB9\u8DDD ",-1),ef={class:"tools"},tf={class:"title"},of=w("span",null," x ",-1),nf=P({name:"DkStyleBoxInput"});var lf=P({...nf,props:ra,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=ie({margin:!1,padding:!1,widthHeight:!1}),l=O(),u=O(),i=O(),a=ie({marginLeft:o.modelValue.marginLeft||"",marginRight:o.modelValue.marginRight||"",marginTop:o.modelValue.marginTop||"",marginBottom:o.modelValue.marginBottom||"",paddingLeft:o.modelValue.paddingLeft||"",paddingRight:o.modelValue.paddingRight||"",paddingTop:o.modelValue.paddingTop||"",paddingBottom:o.modelValue.paddingBottom||"",width:o.modelValue.width||"",height:o.modelValue.height||""}),r=O(null),{width:s}=wt(r),v=ie({padding:!1,margin:!1,size:!1}),y=Q(()=>{if(o.height==="auto"){const I=s.value/1.8;return I>200?200:I}else return o.height});Y(()=>o.modelValue,(I,j)=>{["marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","width","height"].forEach(K=>{I[K]!==j[K]&&(a[K]=I[K]||"")})},{deep:!0}),Y(a,()=>{const I=Object.keys(a).reduce((j,J)=>(a[J]!==""&&(j[J]=a[J]),j),{});e("update:modelValue",I),e("change",I)});const E=ie({marginLeft:!1,marginRight:!1,marginTop:!1,marginBottom:!1,paddingLeft:!1,paddingRight:!1,paddingTop:!1,paddingBottom:!1,width:!1,height:!1}),F=O(!1),C=ie({x:0,y:0}),f=O(null),V=O(null),B=ie({type:"",position:""}),k=ie({display:"none",width:"0px",height:"0px",left:"0px",top:"0px"}),d=I=>{if(!F.value)return;const j=B.position,J=B.type,K=J+Io(j),oe=(z,re)=>{const Z=z==="x"?"clientX":"clientY";k[re]=I[Z]+"px";let Be=I[Z]-C[z];(j==="top"||j==="left")&&(Be=-Be),a[K]=(parseInt(a[K])||0)+Be+"px",v[J]&&(a[J+"Top"]=a[K],a[J+"Bottom"]=a[K],a[J+"Left"]=a[K],a[J+"Right"]=a[K]),C[z]=I[Z]};j==="left"||j==="right"?oe("x","left"):(j==="top"||j==="bottom")&&oe("y","top")},h=(I,j,J)=>{Object.assign(B,{position:j,type:I}),f.value=d.bind(J),document.addEventListener("mousemove",f.value),V.value=p.bind(J),document.addEventListener("mouseup",V.value),F.value=!0;const K=document.querySelector(".wrapper"),oe=K?K.offsetWidth:0,z={margin:.9,padding:.9*.7},{clientX:re,clientY:Z}=J,Be=(Ye,le,pe,Ee,Oe)=>{document.body.style.cursor=Ye,Object.assign(k,{left:le,top:pe,width:Ee,height:Oe,display:"block"})};C.x=re,C.y=Z,j==="left"||j==="right"?Be("ew-resize",re+"px",Z-y.value*.5*z[I]+"px","0.1px",y.value*z[I]+"px"):Be("ns-resize",re-oe*.5*z[I]+"px",Z+"px",oe*z[I]+"px","0.1px")},p=()=>{document.removeEventListener("mousemove",f.value),document.removeEventListener("mouseup",V.value),F.value=!1,k.display="none",document.body.style.cursor="default",C.x=null,C.y=null},b=(I,j="move",J)=>{F.value||J.stopPropagation(),j!=="move"?n[I]=!1:(Object.keys(n).forEach(K=>{K!==I&&(n[K]=!1)}),n[I]=!0)},S=(I,j)=>{E[I]=!0,ze(()=>{I==="width"?u.value.focus():I==="height"?i.value.focus():l.value[j].focus()})},x=I=>I==="auto"?I:I==="0"||I===0?0:I===""?"-":I,$=I=>{if(E[I]=!1,a[I]===""||a[I]==="auto")return;if(!/^(\d*\.?\d+)(px|rem|%|vh)$/.test(a[I])){const J=parseInt(a[I]);isNaN(J)?a[I]="":(a[I]=J+"px",I.indexOf("padding")==0&&v.padding&&(a.paddingTop=a[I],a.paddingRight=a[I],a.paddingBottom=a[I],a.paddingLeft=a[I]),I.indexOf("margin")==0&&v.padding&&(a.marginTop=a[I],a.marginRight=a[I],a.marginBottom=a[I],a.marginLeft=a[I]))}},R=I=>{I==="widthHeight"?(a.width="",a.height=""):I==="margin"?(a.marginLeft="",a.marginRight="",a.marginTop="",a.marginBottom=""):I==="padding"&&(a.paddingLeft="",a.paddingRight="",a.paddingTop="",a.paddingBottom="")},U=I=>{v[I]=!v[I]};return(I,j)=>{const J=_("dk-icon"),K=_("el-popover"),oe=_("el-tooltip");return g(),D("div",Op,[w("div",{class:"position-line",style:q(k)},null,4),w("div",zp,[w("label",jp,[M(" \u5185\u5916\u8FB9\u8DDD | \u9AD8\u5BBD "),c(K,{ref:"popover",placement:"bottom",title:"\u8BF4\u660E",width:280,trigger:"hover",content:o.help},{reference:m(()=>[c(J,{icon:"QuestionFilled",class:"m-l-5px vertical-text-top"})]),_:1},8,["content"])]),A(' <div class="float-right cursor-pointer">'),A(' <div class="name-header-operations">'),A(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u9AD8\u5BBD" placement="top-start">'),A(` <dk-icon icon="Refresh" color="#303133" @click="onRefresh('widthHeight')"></dk-icon>`),A(" </el-tooltip>"),A(" </div>"),A(' <div class="name-header-operations">'),A(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5185\u8FB9\u8DDD" placement="top-start">'),A(` <dk-icon icon="Refresh" color="var(--el-color-success)" @click="onRefresh('padding')"></dk-icon>`),A(" </el-tooltip>"),A(" </div>"),A(' <div class="name-header-operations">'),A(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5916\u8FB9\u8DDD" placement="top-start">'),A(` <dk-icon icon="Refresh" color="var(--el-color-warning)" @click="onRefresh('margin')"></dk-icon>`),A(" </el-tooltip>"),A(" </div>"),A(" </div>"),w("div",{ref_key:"box",ref:r,tabindex:"0",class:"wrapper",style:q([{"margin-top":"10px"},{height:y.value+"px"}])},[w("div",{class:ne(["thumnail margin",n.margin?"thumnail-heightlight":""]),onMousemove:j[14]||(j[14]=z=>b("margin","move",z)),onMouseleave:j[15]||(j[15]=z=>b("margin","leave",z))},[A("\u5916\u8FB9\u8DDD Margin"),w("div",null,[(g(!0),D(L,null,X(N(Tp),(z,re)=>(g(),D("div",{key:re},[w("span",{title:z.title,class:ne(`anchor-tip-${z.position} value-indicator`),onDblclick:Z=>S(z.value,re)},[w("span",null,G(x(a[z.value])),1)],42,Pp),fe(w("input",{ref_for:!0,ref_key:"inputField",ref:l,"onUpdate:modelValue":Z=>a[z.value]=Z,class:ne("input-box anchor-tip-"+z.position+(E[z.value]?" show":"")),onBlur:Z=>$(z.value)},null,42,Np),[[So,a[z.value]]]),(g(),D("svg",{width:z.svg.width,height:z.svg.height,viewBox:z.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":z.value,style:q(z.svg.style),class:"esm-modal-svg",innerHTML:z.svg.content},null,12,Up))]))),128))]),Mp,w("div",Lp,[(g(),D(L,null,X(["left","right","top","bottom"],(z,re)=>w("div",{key:re,class:ne(["anchor","anchor-"+z]),onMousemove:d,onMousedown:Z=>h("margin",z,Z),onMouseup:p},null,42,Hp)),64))]),Wp,w("div",qp,[c(oe,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:m(()=>[c(J,{style:{"margin-right":"5px"},icon:"Connection",color:v.margin?"#f00":"#303133",onClick:j[0]||(j[0]=z=>U("margin"))},null,8,["color"])]),_:1}),c(oe,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5916\u8FB9\u8DDD",placement:"top-start"},{default:m(()=>[c(J,{icon:"Refresh",color:"#303133",onClick:j[1]||(j[1]=z=>R("margin"))})]),_:1})]),A("\u5916\u8FB9\u8DDD Margin END"),A("\u5185\u8FB9\u8DDD Padding"),w("div",Gp,[w("div",{class:ne(["thumnail padding",n.padding?"thumnail-heightlight":""]),onMousemove:j[12]||(j[12]=z=>b("padding","move",z)),onMouseleave:j[13]||(j[13]=z=>b("padding","leave",z))},[w("div",null,[(g(!0),D(L,null,X(N(Rp),(z,re)=>(g(),D("div",{key:re},[w("span",{title:z.title,class:ne(`anchor-tip-${z.position} value-indicator`),onDblclick:Z=>S(z.value,re+4)},[w("span",null,G(x(a[z.value])),1)],42,Yp),fe(w("input",{ref_for:!0,ref_key:"inputField",ref:l,"onUpdate:modelValue":Z=>a[z.value]=Z,class:ne("input-box anchor-tip-"+z.position+(E[z.value]?" show":"")),onBlur:Z=>$(z.value)},null,42,Xp),[[So,a[z.value]]]),(g(),D("svg",{width:z.svg.width,height:z.svg.height,viewBox:z.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":z.value,style:q(z.svg.style),class:"esm-modal-svg",innerHTML:z.svg.content},null,12,Jp))]))),128))]),w("div",Kp,[(g(),D(L,null,X(["left","right","top","bottom"],(z,re)=>w("div",{key:re,class:ne(["anchor","anchor-"+z]),onMousemove:d,onMousedown:Z=>h("padding",z,Z),onMouseup:p},null,42,Qp)),64))]),Zp,w("div",ef,[c(oe,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:m(()=>[c(J,{style:{"margin-right":"5px"},icon:"Connection",color:v.padding?"#f00":"#303133",onClick:j[2]||(j[2]=z=>U("padding"))},null,8,["color"])]),_:1}),c(oe,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5185\u8FB9\u8DDD",placement:"top-start"},{default:m(()=>[c(J,{icon:"Refresh",color:"#303133",onClick:j[3]||(j[3]=z=>R("padding"))})]),_:1})]),A("\u5185\u8FB9\u8DDD END"),w("div",{class:ne(["thumnail width-height",n.widthHeight?"thumnail-heightlight":""]),onMousemove:j[10]||(j[10]=z=>b("widthHeight","move",z)),onMouseleave:j[11]||(j[11]=z=>b("widthHeight","leave",z))},[w("span",tf,[w("span",{class:"content-unit left-0",onDblclick:j[4]||(j[4]=z=>S("width",9))},[w("em",null,G(x(a.width)),1)],32),fe(w("input",{ref_key:"inputWidth",ref:u,"onUpdate:modelValue":j[5]||(j[5]=z=>a.width=z),class:ne(["input-box absolute left-5% top-10px",E.width?" show":""]),onBlur:j[6]||(j[6]=z=>$("width"))},null,34),[[So,a.width]]),of,w("span",{class:"content-unit right-0",onDblclick:j[7]||(j[7]=z=>S("height",9))},[w("em",null,G(x(a.height)),1)],32),fe(w("input",{ref_key:"inputHeight",ref:i,"onUpdate:modelValue":j[8]||(j[8]=z=>a.height=z),class:ne(["input-box absolute right-5% top-10px",E.height?" show":""]),onBlur:j[9]||(j[9]=z=>$("height"))},null,34),[[So,a.height]])])],34)],34)])],34)],4)])])}}}),uf=H(lf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-box-input\\src\\style-box-input.vue"]]);const sa=ae(uf),da={modelValue:{type:Object,default:()=>({})}},af={class:"dk-style-font-input"},rf={style:{display:"flex","flex-flow":"wrap","align-items":"center"}},sf={class:"m-b-5px"},df={style:{width:"100px"},class:"m-b-5px"},cf={style:{width:"100px"},class:"m-r-5px m-b-5px"},pf={class:"m-r-5px m-b-5px"},ff={class:"m-b-5px"},mf=P({name:"DkStyleFontInput"});var hf=P({...mf,props:da,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=400,l=100,u=ie({color:o.modelValue.color||"",fontSize:o.modelValue.fontSize||"",fontWeight:o.modelValue.fontWeight||"",fontStyle:o.modelValue.fontStyle||"",textDecoration:o.modelValue.textDecoration||""});Y(u,r=>{const s=Object.keys(u).reduce((v,y)=>(u[y]!==""&&(v[y]=u[y]),v),{});e("update:modelValue",s),e("change",s)}),Y(()=>o.modelValue,()=>{["color","fontSize","fontWeight","fontStyle","textDecoration"].forEach(s=>{u[s]=o.modelValue[s]||""})},{deep:!0});const i=[{label:"\u666E\u901A",value:"normal"},{label:"\u52A0\u7C97",value:"bold"},{label:"\u66F4\u7C97",value:"bolder"},{label:"\u66F4\u7EC6",value:"lighter"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}],a=r=>{r==="all"?Object.keys(u).forEach(s=>{u[s]=""}):u[r]=""};return(r,s)=>{const v=_("el-button"),y=_("el-color-picker"),E=_("el-tooltip"),F=_("el-option"),C=_("el-select"),f=_("dk-icon"),V=_("el-button-group");return g(),D("div",af,[A(" \u989C\u8272\u3001\u5B57\u53F7\u3001\u7C97\u7EC6\u3001\u98CE\u683C\u3001\u88C5\u9970"),w("div",rf,[c(E,{placement:"top-end",trigger:"hover","show-after":n,"hide-after":l},{content:m(()=>[M(" \u6587\u5B57\u989C\u8272 "),c(v,{size:"small",icon:"Refresh",color:"var(--el-text-color-primary)",disabled:u.color==="",onClick:s[0]||(s[0]=B=>a("color"))},{default:m(()=>[M("\u91CD\u7F6E")]),_:1},8,["disabled"])]),default:m(()=>[w("div",sf,[c(y,{modelValue:u.color,"onUpdate:modelValue":s[1]||(s[1]=B=>u.color=B)},null,8,["modelValue"])])]),_:1}),w("div",df,[c(C,{modelValue:u.fontSize,"onUpdate:modelValue":s[2]||(s[2]=B=>u.fontSize=B),"remote-show-suffix":!1,placeholder:"\u5B57\u53F7","allow-create":"",clearable:"",filterable:!0},{default:m(()=>[(g(),D(L,null,X(["12px","14px","16px","18px","20px","24px","28px","32px","36px","40px","48px"],B=>c(F,{key:B,label:B,value:B},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),w("div",cf,[c(C,{modelValue:u.fontWeight,"onUpdate:modelValue":s[3]||(s[3]=B=>u.fontWeight=B),"remote-show-suffix":!1,placeholder:"\u7C97\u7EC6","allow-create":"",clearable:"",filterable:!0},{default:m(()=>[(g(),D(L,null,X(i,B=>c(F,{key:B.value,label:B.label,value:B.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),w("div",pf,[c(v,{type:u.fontStyle?"primary":"",onClick:s[4]||(s[4]=B=>u.fontStyle?u.fontStyle="":u.fontStyle="italic")},{default:m(()=>[c(f,{icon:"radix-icons:font-italic",title:"\u6587\u5B57\u503E\u659C"})]),_:1},8,["type"])]),w("div",ff,[c(V,null,{default:m(()=>[c(v,{type:u.textDecoration=="underline"?"primary":"",onClick:s[5]||(s[5]=B=>u.textDecoration=="underline"?u.textDecoration="":u.textDecoration="underline")},{default:m(()=>[c(f,{icon:"radix-icons:underline",title:"\u4E0B\u5212\u7EBF"})]),_:1},8,["type"]),c(v,{type:u.textDecoration=="line-through"?"primary":"",onClick:s[6]||(s[6]=B=>u.textDecoration=="line-through"?u.textDecoration="":u.textDecoration="line-through")},{default:m(()=>[c(f,{icon:"radix-icons:strikethrough",title:"\u5220\u9664\u7EBF"})]),_:1},8,["type"]),c(v,{type:u.textDecoration=="wavy underline"?"primary":"",onClick:s[7]||(s[7]=B=>u.textDecoration=="wavy underline"?u.textDecoration="":u.textDecoration="wavy underline")},{default:m(()=>[c(f,{icon:"mdi:format-underline-wavy",title:"\u6CE2\u6D6A\u7EBF"})]),_:1},8,["type"])]),_:1})]),c(E,{placement:"top",trigger:"hover",content:"\u5168\u90E8\u91CD\u7F6E","show-after":n,"hide-after":l},{default:m(()=>[c(v,{type:"danger",plain:"",icon:"Delete",class:"m-l-5px m-b-5px",onClick:s[8]||(s[8]=B=>a("all"))})]),_:1})])])}}}),gf=H(hf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-font-input\\src\\style-font-input.vue"]]);const ca=ae(gf),pa={modelValue:{type:Object,default:()=>{}}},vf={class:"border-box"},yf={style:{width:"100%"},class:"m-l-20px"},_f={style:{display:"flex",width:"100%"}},bf=P({name:"DkStyleBorderInput"});var Ef=P({...bf,props:pa,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=["top","right","bottom","left","all"],l=["px","%","rem","em","vw","vh"],u=O("all"),i=O(),{width:a}=wt(i),r=()=>({unit:"px"}),s=ie({top:r(),right:r(),bottom:r(),left:r(),all:r(),radius:o.modelValue.borderRadius||"0px"}),v=Q(()=>{const C={};return n.forEach(f=>{f==="all"?(s[f].borderWidth&&(C.borderWidth=s[f].borderWidth+(s[f].unit||"px")),s[f].borderStyle&&(C.borderStyle=s[f].borderStyle),s[f].borderColor&&(C.borderColor=s[f].borderColor)):(s[f].borderWidth&&(C["border"+Io(f)+"Width"]=s[f].borderWidth+(s[f].unit||"px")),s[f].borderStyle&&(C["border"+Io(f)+"Style"]=s[f].borderStyle),s[f].borderColor&&(C["border"+Io(f)+"Color"]=s[f].borderColor))}),s.radius!=="0px"&&(C.borderRadius=s.radius),C});Y(v,()=>{e("update:modelValue",v.value),e("change",v.value)});const y=()=>{["borderWidth","borderStyle","borderColor","borderRightWidth","borderRightStyle","borderRightColor","borderLeftWidth","borderLeftStyle","borderLeftColor","borderTopWidth","borderTopStyle","borderTopColor","borderBottomWidth","borderBottomStyle","borderBottomColor","borderRadius"].forEach(f=>{if(o.modelValue[f])if(f==="borderRadius")s.radius=o.modelValue[f];else{let[V,B,k]=f.split(/(?=[A-Z])/),d=B.toLowerCase();const h=o.modelValue[f];if(n.indexOf(d)===-1&&(d="all",k=B),k==="Width"){const p=parseInt(h)||0,b=h.replace(p+"","")||"px";l.indexOf(b)>-1&&(s[d].unit=b,s[d].borderWidth=p)}else s[d]["border"+k]=h}else if(f==="borderRadius")s.radius="0px";else{let[V,B,k]=f.split(/(?=[A-Z])/),d=B.toLowerCase();n.indexOf(d)===-1&&(d="all",k=B),o.modelValue[f],k==="Width"?(delete s[d].borderWidth,delete s[d].unit):delete s[d]["border"+k]}})},E=()=>{u.value==="all"?n.forEach(C=>{C!=="all"&&(s[C]={unit:"px"})}):n.forEach(C=>{C==="all"&&(s[C]={unit:"px"})})},F=C=>{C==="radius"?s.radius="0px":delete s[u.value][C]};return Y(()=>o.modelValue,()=>{y()},{deep:!0}),De(()=>{y()}),(C,f)=>{const V=_("dk-icon"),B=_("el-tooltip"),k=_("el-slider"),d=_("el-input"),h=_("el-option"),p=_("el-select"),b=_("el-form-item"),S=_("el-radio-button"),x=_("el-radio-group"),$=_("el-color-picker"),R=_("dk-box-size-input"),U=_("el-form");return g(),D("div",{ref_key:"el",ref:i,class:ne(["dk-style-border-input",N(a)<400?"mini":""])},[w("div",vf,[(g(),D(L,null,X(n,I=>c(V,{key:I,icon:"gg:border-"+I,class:ne("border-box-option border-"+I+" "+(u.value==I?"selected":"")),size:24,style:q("grid-area: border-"+I+" / border-"+I+" / border-"+I+" / border-"+I+";"),onClick:j=>u.value=I},null,8,["icon","class","style","onClick"])),64))]),w("div",yf,[A(" \u6837\u5F0F\u3001\u5BBD\u5EA6\u3001\u989C\u8272"),c(U,{"label-width":"50px","label-position":"left",size:"small"},{default:m(()=>[c(b,{value:"\u5C3A\u5BF8"},{label:m(()=>[c(B,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!s[u.value].borderWidth},{default:m(()=>[w("span",{class:ne(["cursor-pointer",s[u.value].borderWidth?"color-blue":""]),onClick:f[0]||(f[0]=I=>F("borderWidth"))},"\u5C3A\u5BF8",2)]),_:1},8,["disabled"])]),default:m(()=>[w("div",_f,[c(k,{modelValue:s[u.value].borderWidth,"onUpdate:modelValue":f[1]||(f[1]=I=>s[u.value].borderWidth=I),class:"dk-border-slider",max:50,onChange:f[2]||(f[2]=I=>E())},null,8,["modelValue"]),c(d,{modelValue:s[u.value].borderWidth,"onUpdate:modelValue":f[3]||(f[3]=I=>s[u.value].borderWidth=I),class:"dk-border-input",type:"number",onChange:f[4]||(f[4]=I=>E())},{default:m(()=>[A(" <template #append>"),A(" <el-select"),A(' v-model="form[position].unit"'),A(' placeholder="px"'),A(' class="dk-border-select"'),A(' style="width: 50px"'),A(' suffix-icon=""'),A(' @change="clearOtherBorder()"'),A(" >"),A(" <el-option"),A(' v-for="item in units"'),A(' :key="item"'),A(' :label="item"'),A(' :value="item"'),A(" />"),A(" </el-select>"),A(" </template>")]),_:1},8,["modelValue"]),c(p,{modelValue:s[u.value].unit,"onUpdate:modelValue":f[5]||(f[5]=I=>s[u.value].unit=I),placeholder:"px",class:"dk-border-select",style:{width:"60px"},onChange:f[6]||(f[6]=I=>E())},{default:m(()=>[(g(),D(L,null,X(l,I=>c(h,{key:I,label:I,value:I},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),c(b,{value:"\u6837\u5F0F"},{label:m(()=>[c(B,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!s[u.value].borderStyle},{default:m(()=>[w("span",{class:ne(["cursor-pointer",s[u.value].borderStyle?"color-blue":""]),onClick:f[7]||(f[7]=I=>F("borderStyle"))},"\u6837\u5F0F",2)]),_:1},8,["disabled"])]),default:m(()=>[c(x,{modelValue:s[u.value].borderStyle,"onUpdate:modelValue":f[8]||(f[8]=I=>s[u.value].borderStyle=I),onChange:f[9]||(f[9]=I=>E())},{default:m(()=>[c(S,{value:"solid",name:"type"},{default:m(()=>[c(V,{icon:"gg:border-style-solid"})]),_:1}),c(S,{value:"dotted",name:"type"},{default:m(()=>[c(V,{icon:"gg:border-style-dotted"})]),_:1}),c(S,{value:"dashed",name:"type"},{default:m(()=>[c(V,{icon:"gg:border-style-dashed"})]),_:1}),c(S,{value:"double",name:"type"},{default:m(()=>[c(V,{icon:"memory:box-light-double-horizontal"})]),_:1})]),_:1},8,["modelValue"])]),_:1}),c(b,{label:"\u989C\u8272"},{label:m(()=>[c(B,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!s[u.value].borderColor},{default:m(()=>[w("span",{class:ne(["cursor-pointer",s[u.value].borderColor?"color-blue":""]),onClick:f[10]||(f[10]=I=>F("borderColor"))},"\u989C\u8272",2)]),_:1},8,["disabled"])]),default:m(()=>[c($,{modelValue:s[u.value].borderColor,"onUpdate:modelValue":f[11]||(f[11]=I=>s[u.value].borderColor=I)},null,8,["modelValue"])]),_:1}),c(b,{label:"\u5F27\u5EA6"},{label:m(()=>[c(B,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:s.radius=="0px"},{default:m(()=>[w("span",{class:ne(["cursor-pointer",s.radius!=="0px"?"color-blue":""]),onClick:f[12]||(f[12]=I=>F("radius"))},"\u5F27\u5EA6",2)]),_:1},8,["disabled"])]),default:m(()=>[c(R,{modelValue:s.radius,"onUpdate:modelValue":f[13]||(f[13]=I=>s.radius=I),type:"radius"},null,8,["modelValue"])]),_:1})]),_:1})])],2)}}}),kf=H(Ef,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-border-input\\src\\style-border-input.vue"]]);const fa=ae(kf),ma={modelValue:{type:Object,default:()=>({backgroundImage:"",backgroundColor:""})}},Ff={class:"dk-style-background-input"},wf=P({name:"DkStyleBackgroundInput"});var Df=P({...wf,props:ma,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=ie({backgroundImage:"",backgroundColor:""});Y(n,()=>{const u={};n.backgroundColor&&(u.backgroundColor=n.backgroundColor),n.backgroundImage&&(u.backgroundImage=`url(${n.backgroundImage})`),e("update:modelValue",u),e("change",u)},{deep:!0});const l=()=>{n.backgroundColor=o.modelValue.backgroundColor||"";const u=o.modelValue.backgroundImage;if(u){const i=/url\((.+)\)/,a=u.match(i);a&&(n.backgroundImage=a[1])}};return Y(()=>o.modelValue,()=>{l()}),De(()=>{l()}),(u,i)=>{const a=_("el-color-picker"),r=_("dk-image-input");return g(),D("div",Ff,[c(a,{modelValue:n.backgroundColor,"onUpdate:modelValue":i[0]||(i[0]=s=>n.backgroundColor=s),"show-alpha":""},null,8,["modelValue"]),c(r,{modelValue:n.backgroundImage,"onUpdate:modelValue":i[1]||(i[1]=s=>n.backgroundImage=s)},null,8,["modelValue"])])}}}),Cf=H(Df,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-background-input\\src\\style-background-input.vue"]]);const ha=ae(Cf),ga={type:{default:"input",type:String},modelValue:{default:()=>{},type:Object}},Af={class:"dk-style-shadow-input"},xf={key:1,class:"shadow-list"},Bf=P({name:"DkStyleShadowInput"});var Sf=P({...Bf,props:ga,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=O([]),l=O("1"),u=()=>{n.value.push("2px 2px 3px 2px #E7E5E5FF"),l.value=n.value.length-1+""},i=s=>{n.value.splice(s,1)},a=()=>{o.modelValue.boxShadow&&(n.value=o.modelValue.boxShadow.split(","))},r=Q(()=>n.value.join(","));return Y(r,(s,v)=>{e("update:modelValue",{boxShadow:r.value}),e("change",{boxShadow:r.value})}),Y(()=>o.modelValue,()=>{a()},{deep:!0}),De(()=>{a()}),(s,v)=>{const y=_("dk-style-shadow-content"),E=_("el-collapse-item"),F=_("el-collapse"),C=_("el-button"),f=_("el-popover"),V=_("el-input"),B=_("dk-icon");return g(),D("div",Af,[s.type==="collapse"?(g(),T(F,{key:0,modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=k=>l.value=k),accordion:""},{default:m(()=>[(g(!0),D(L,null,X(n.value,(k,d)=>(g(),T(E,{key:d,title:k,name:d+""},{default:m(()=>[c(y,{modelValue:n.value[d],"onUpdate:modelValue":h=>n.value[d]=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])):(g(),D("ul",xf,[(g(!0),D(L,null,X(n.value,(k,d)=>(g(),D("li",{key:d},[c(V,{modelValue:n.value[d],"onUpdate:modelValue":h=>n.value[d]=h,disabled:""},{append:m(()=>[c(f,{placement:"right-start",title:"",width:"380",trigger:"click"},{reference:m(()=>[c(C,null,{default:m(()=>[M("\u8BBE\u7F6E")]),_:1})]),default:m(()=>[c(y,{modelValue:n.value[d],"onUpdate:modelValue":h=>n.value[d]=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]),c(B,{class:"close-shadow",icon:"Close","hover-color":"#f00",onClick:h=>i(d)},null,8,["onClick"])]))),128))])),c(C,{class:"m-t-10px w-100%",onClick:u},{default:m(()=>[c(B,{icon:"Plus"})]),_:1})])}}}),Vf=H(Sf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);const $f={class:"flex"},If={class:"flex"},Tf={class:"flex"},Rf={class:"flex"},Of={class:"shadow-content-shortcut"},zf={class:"default-css m-b-10px"},jf=w("div",{class:"m-b-10px"},"\u5E38\u7528\u6837\u5F0F",-1),Pf=w("i",{id:"center"},null,-1),Nf=[Pf],Uf=P({name:"DkStyleShadowContent"});var Mf=P({...Uf,props:{boxSize:{default:180,type:Number},size:{default:"small",type:String},max:{default:24,type:Number},modelValue:{default:"0px 0px 0px rgba(0, 0, 0, 0)",type:String},defaultStyles:{default:()=>[{label:"\u7ECF\u5178",value:"3px 5px 7px 2px #CBCBCBFF"},{label:"\u6241\u5E73",value:"4px 4px 3px -2px #E7E5E5FF"},{label:"\u7ACB\u4F53",value:"1px 2px 4px 2px #979797FF"}],type:Array}},emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=O(null);wt(n);const l=ie({color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"}),u=["px","%","rem","em","vw","vh"],i=O(!1),a=ie({left:0,top:0}),r=O(""),s=O(),v=Q(()=>({left:a.left+"px",top:a.top+"px"})),y=(f,V)=>{if(i.value||V){const B=s.value.getBoundingClientRect();a.left=parseInt(String(f.clientX-B.x)),a.top=parseInt(String(f.clientY-B.y))}};Y(a,()=>{l.x=parseInt(String((a.left-o.boxSize/2)/o.boxSize*o.max)),l.y=parseInt(String((a.top-o.boxSize/2)/o.boxSize*o.max))}),Y(l,()=>{let f=`${l.x}${l.x_unit} ${l.y}${l.y_unit} ${l.vague}${l.vague_unit} ${l.extend}${l.extend_unit} ${l.color}`;l.type==="inset"&&(f=f+" inset"),e("update:modelValue",f)});const E=f=>{y(f,1),i.value=!0},F=f=>{f?.indexOf(" inset")>-1&&(l.type="inset",f=f.replace(" inset",""));const V=f.split("rgba");let B,k;V.length>1?(B="rgba"+V[1].trim(),k=V[0].trim().split(" ")):(k=V[0].trim().split(" "),B=k.pop()),l.color=B||"#000",l.x=parseInt(k[0])||0,l.y=parseInt(k[1])||0,l.vague=parseInt(k[2])||0,l.extend=parseInt(k[3])||0;const d=h=>{let p=h?.replace(/[-\d.]/g,"")||"px";return u.indexOf(p)===-1&&(p="px"),p};l.x_unit=d(k[0]),l.y_unit=d(k[1]),l.vague_unit=d(k[2]),l.extend_unit=d(k[3]),a.left=o.boxSize/2+l.x/o.max*o.boxSize||0,a.top=o.boxSize/2+l.y/o.max*o.boxSize||0},C=f=>{const V=f.value;F(V)};return De(()=>{F(o.modelValue)}),(f,V)=>{const B=_("el-radio-button"),k=_("el-radio-group"),d=_("el-form-item"),h=_("dk-color-input"),p=_("el-input"),b=_("el-option"),S=_("el-select"),x=_("el-form"),$=_("el-button");return g(),D("div",{ref_key:"el",ref:n,class:"dk-style-shadow-content",style:q({"--shadow-box-width":t.boxSize+"px"})},[c(x,{"label-width":"60px","label-position":"left",class:"shadow-form-content",size:t.size},{default:m(()=>[c(d,{label:"\u6A21\u5F0F"},{default:m(()=>[c(k,{modelValue:l.type,"onUpdate:modelValue":V[0]||(V[0]=R=>l.type=R)},{default:m(()=>[c(B,{value:"external"},{default:m(()=>[M("\u5916\u90E8")]),_:1}),c(B,{value:"inset"},{default:m(()=>[M("\u5185\u90E8")]),_:1})]),_:1},8,["modelValue"])]),_:1}),c(d,{label:"\u989C\u8272"},{default:m(()=>[c(h,{modelValue:l.color,"onUpdate:modelValue":V[1]||(V[1]=R=>l.color=R),"show-alpha":"",teleported:!1},null,8,["modelValue"])]),_:1}),c(d,{label:"x\u8F74"},{default:m(()=>[w("div",$f,[c(p,{modelValue:l.x,"onUpdate:modelValue":V[2]||(V[2]=R=>l.x=R),type:"number"},null,8,["modelValue"]),c(S,{modelValue:l.x_unit,"onUpdate:modelValue":V[3]||(V[3]=R=>l.x_unit=R),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[(g(),D(L,null,X(u,R=>c(b,{key:R,label:R,value:R},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),c(d,{label:"y\u8F74"},{default:m(()=>[w("div",If,[c(p,{modelValue:l.y,"onUpdate:modelValue":V[4]||(V[4]=R=>l.y=R),type:"number"},null,8,["modelValue"]),c(S,{modelValue:l.y_unit,"onUpdate:modelValue":V[5]||(V[5]=R=>l.y_unit=R),placeholder:"\u8BF7\u9009\u62E9",class:"w-40px"},{default:m(()=>[(g(),D(L,null,X(u,R=>c(b,{key:R,label:R,value:R},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),c(d,{label:"\u6A21\u7CCA"},{default:m(()=>[w("div",Tf,[c(p,{modelValue:l.vague,"onUpdate:modelValue":V[6]||(V[6]=R=>l.vague=R),type:"number"},null,8,["modelValue"]),c(S,{modelValue:l.vague_unit,"onUpdate:modelValue":V[7]||(V[7]=R=>l.vague_unit=R),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[(g(),D(L,null,X(u,R=>c(b,{key:R,label:R,value:R},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),c(d,{label:"\u6269\u5C55"},{default:m(()=>[w("div",Rf,[c(p,{modelValue:l.extend,"onUpdate:modelValue":V[8]||(V[8]=R=>l.extend=R),type:"number"},null,8,["modelValue"]),c(S,{modelValue:l.extend_unit,"onUpdate:modelValue":V[9]||(V[9]=R=>l.extend_unit=R),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[(g(),D(L,null,X(u,R=>c(b,{key:R,label:R,value:R},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1})]),_:1},8,["size"]),w("div",Of,[w("div",zf,[jf,(g(!0),D(L,null,X(o.defaultStyles,(R,U)=>(g(),T($,{key:U,size:"small",onClick:I=>C(R)},{default:m(()=>[M(G(R.label),1)]),_:2},1032,["onClick"]))),128))]),w("div",{ref_key:"box",ref:s,class:ne(["shadow-content-box",i.value?"down":""]),style:q({height:t.boxSize+"px",width:t.boxSize+"px"}),onClick:V[10]||(V[10]=R=>y(R,1)),onMousedown:E,onMouseup:V[11]||(V[11]=R=>i.value=!1),onMousemove:V[12]||(V[12]=R=>y(R,0))},[w("span",{id:"spot",style:q(v.value)},Nf,4),w("span",{id:"center-spot",style:q({top:t.boxSize/2+"px",left:t.boxSize/2+"px"})},null,4),w("div",{class:"x-hr",style:q({top:t.boxSize/2+"px"})},null,4),w("div",{class:"y-hr",style:q({left:t.boxSize/2+"px"})},null,4),w("div",{class:"line",style:q(r.value)},null,4)],38)])],4)}}}),Lf=H(Mf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-content.vue"]]);const va=ae(Vf),ya=ae(Lf),_a={modelValue:{type:Object,default:()=>({})}},Hf={class:"m-t-10px"},Wf=["onClick"],qf=P({name:"DkStylePositionInput"});var Gf=P({...qf,props:_a,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=O(null),{width:l}=wt(n),u=Q(()=>l.value<=300?24:l.value<800?12:6),i=O({left:o.modelValue.left||"",top:o.modelValue.top||"",right:o.modelValue.right||"",bottom:o.modelValue.bottom||""}),a=[{label:"\u4E0A",value:"top",tip:"\u5F53\u524D\u8DDD\u79BB\u9876\u90E8\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u53F3",value:"right",tip:"\u5F53\u524D\u8DDD\u79BB\u53F3\u4FA7\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u4E0B",value:"bottom",tip:"\u5F53\u524D\u8DDD\u79BB\u5E95\u90E8\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u5DE6",value:"left",tip:"\u5F53\u524D\u8DDD\u79BB\u5DE6\u4FA7\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"}],r=[{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"}],s=O(!1),v=E=>{switch(s.value=!0,E){case"left-top":i.value={left:"1px",top:"1px",right:"",bottom:""};break;case"left-down":i.value={left:"1px",bottom:"1px",right:"",up:""};break;case"right-top":i.value={top:"1px",right:"1px",left:"",bottom:""};break;case"right-down":i.value={right:"1px",bottom:"1px",left:"",up:""};break;case"down-center":i.value={left:"1px",right:"1px",bottom:"1px",up:""};break;case"up-center":i.value={left:"1px",top:"1px",right:"1px",bottom:""};break}},y=()=>{const E=Object.keys(i.value).reduce((F,C)=>((s.value&&i.value[C]!="0px"||!s.value&&C!=="position")&&i.value[C]&&(F[C]=i.value[C]),F),{});e("update:modelValue",E)};return Y(()=>i.value,()=>{y()},{deep:!0}),Y(()=>o.modelValue,()=>{Object.keys(o.modelValue).reduce((E,F)=>(F!=="position"&&(E[F]=o.modelValue[F]),E),i.value)},{deep:!0}),(E,F)=>{const C=_("el-radio-button"),f=_("el-radio-group"),V=_("el-form-item"),B=_("el-tooltip"),k=_("dk-style-number-input"),d=_("el-col"),h=_("el-row"),p=_("el-form");return g(),D("div",{ref_key:"el",ref:n,class:"dk-style-position-input"},[c(p,{"label-width":"50px","label-position":"left"},{default:m(()=>[w("div",null,[c(V,{label:"\u5E38\u7528"},{default:m(()=>[c(f,{onChange:v},{default:m(()=>[(g(),D(L,null,X(r,(b,S)=>c(C,{key:S,label:b.value},{default:m(()=>[M(G(b.label),1)]),_:2},1032,["label"])),64))]),_:1})]),_:1})]),w("div",Hf,[c(h,{gutter:20},{default:m(()=>[(g(),D(L,null,X(a,(b,S)=>c(d,{key:S,span:u.value,class:"m-b-5px"},{default:m(()=>[c(V,{label:b.label},{label:m(()=>[c(B,{class:"item",effect:"dark",content:b.tip,placement:"top"},{default:m(()=>[w("span",{style:q([{cursor:"pointer"},i.value[b.value]?"color:var(--el-color-primary)":""]),onClick:x=>i.value[b.value]=""},G(b.label)+"\uFF1A",13,Wf)]),_:2},1032,["content"])]),default:m(()=>[c(k,{modelValue:i.value[b.value],"onUpdate:modelValue":x=>i.value[b.value]=x,onInput:F[0]||(F[0]=x=>s.value=!1)},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:2},1032,["span"])),64))]),_:1})])]),_:1})],512)}}}),Yf=H(Gf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-position-input\\src\\style-position-input.vue"]]);const ba=ae(Yf),Ea={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}},Xf=P({name:"DkStyleNumberInput"});var Jf=P({...Xf,props:Ea,emits:["input","update:modelValue"],setup(t,{emit:e}){const o=t,n=hu(o.modelValue,o.units),l=ie({number:n.number,unit:n.unit||"px"}),u=O(!1),i=O(null),a=O(null),r=O(0),s=O(0),v=F=>{u.value=!0,s.value=F.clientX,r.value=F.clientY,i.value=y.bind(F),a.value=E.bind(F),document.addEventListener("mousemove",i.value),document.addEventListener("mouseup",a.value),document.body.style.cursor="ew-resize"},y=F=>{if(u.value){let C;if(o.direction==="horizontal"){const f=F.clientX-s.value;C=Math.floor(f/10),s.value+=C*10}else if(o.direction==="vertical"){const f=F.clientY-r.value;C=Math.floor(f/10),r.value+=C*10}l.number=parseInt(l.number+C)}},E=()=>{console.log("up"),document.removeEventListener("mousemove",i.value),document.removeEventListener("mouseup",a.value),document.body.style.cursor="default",u.value=!1};return Y(()=>l,()=>{l.number===""?e("update:modelValue",""):e("update:modelValue",l.number+l.unit)},{deep:!0}),Y(()=>o.modelValue,()=>{const F=hu(o.modelValue,o.units);l.number=F.number,l.unit=F.unit||"px"}),(F,C)=>{const f=_("dk-icon"),V=_("el-tooltip"),B=_("el-option"),k=_("el-select"),d=_("el-input");return g(),D("div",{class:ne(["dk-style-number-input",o.direction])},[c(d,{modelValue:l.number,"onUpdate:modelValue":C[1]||(C[1]=h=>l.number=h),type:"text",controls:!1,onInput:C[2]||(C[2]=h=>e("input",h))},Ft({prefix:m(()=>[w("span",{class:ne(["w-resize",[`${o.direction}-resize`]]),onMousemove:y,onMousedown:v,onMouseup:E},[c(V,{class:"item",effect:"dark",disabled:!o.tooltipContent,content:o.tooltipContent,placement:"top","open-delay":500},{default:m(()=>[c(f,{icon:o.icon||"Rank"},null,8,["icon"])]),_:1},8,["disabled","content"])],34)]),_:2},[F.showUnit?{name:"append",fn:m(()=>[c(k,{modelValue:l.unit,"onUpdate:modelValue":C[0]||(C[0]=h=>l.unit=h),style:{width:"40px"},"suffix-icon":""},{default:m(()=>[(g(!0),D(L,null,X(F.units,(h,p)=>(g(),T(B,{key:p,label:h,value:h},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),key:"0"}:void 0]),1032,["modelValue"])],2)}}}),Kf=H(Jf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-number-input\\src\\style-number-input.vue"]]);const ka=ae(Kf);function no(t,e,o){t[e]=o}const Ue={type(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"},Undef(t){return t==null},Element(t){return typeof t=="object"&&t!==null&&t.nodeType===1&&!Ue.Object(t)},trueArray(t){return Array.isArray(t)&&t.length>0},Function(t){const e=this.getType(t);return e==="Function"||e==="AsyncFunction"},getType(t){const e=Object.prototype.toString.call(t);return/^\[object (.*)\]$/.exec(e)[1]},empty(t){return t==null||Array.isArray(t)&&Array.isArray(t)&&!t.length?!0:typeof t=="string"&&!t}};["Date","Object","String","Boolean","Array","Number"].forEach(t=>{Ue[t]=function(e){return Ue.type(e,t)}});function Qf(t,e){return{}.hasOwnProperty.call(t,e)}function Fa(t,e={},o){let n=!1;for(let l in e)if(Object.prototype.hasOwnProperty.call(e,l)){let u=e[l];if((n=Array.isArray(u))||Ue.Object(u)){let i=t[l]===void 0;if(n)n=!1,i&&no(t,l,[]);else if(u._clone&&o!==void 0)if(o)u=u.getRule(),i&&no(t,l,{});else{no(t,l,u._clone());continue}else i&&no(t,l,{});t[l]=Fa(t[l],u,o)}else no(t,l,u),Ue.Undef(u)||(Ue.Undef(u.__json)||(t[l].__json=u.__json),Ue.Undef(u.__origin)||(t[l].__origin=u.__origin))}return o!==void 0&&Array.isArray(t)?t.filter(l=>!l||!l.__ctrl):t}function zt(t){return Fa({},{value:t}).value}function wa(t){return t.replace(t[0],t[0].toLowerCase())}const Zf={class:"preview-phone"},em={class:"phone"},tm={class:"phone-header"},om={class:"phone-header-top"},nm={class:"phone-time"},lm=w("div",null,null,-1),um={class:"phone-battery"},am=w("span",{class:"m-r-4px"},"100%",-1),im={class:"phone-title"},rm={class:"phone-title-icon"},sm=w("div",null,"\u9875\u9762\u6807\u9898",-1),dm={class:"phone-title-icon"},cm=P({name:"PreviewPhone"});var pm=P({...cm,props:{value:{default:"",type:String},pageConfig:{default:()=>{},type:[Object]}},setup(t){const e=t,o=ot("diy"),n="preview-phone",l=JSON.parse(nt.get(n)||"{}"),u=O({showLine:l.showLine||!0,margin:l.margin||2,preview:l.preview||!1,closeAnimate:l.closeAnimate||!1});eo("previewSetting",u);const i=()=>{nt.set(n,JSON.stringify(u.value))},a=(v="")=>{const{proxy:y}=o,E={rule:"\u7EC4\u4EF6",config:"\u914D\u7F6E"};vn.confirm("\u5F53\u524D\u8981\u6E05\u9664"+E[v]+"\uFF0C\u662F\u5426\u7EE7\u7EED?","\u8B66\u544A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{y.clear(v),Se.success("\u6E05\u9664\u6210\u529F")}).catch(()=>{})},r=Q(()=>{let v={"--padding":"0","--overflow":"initial"};return u.value.showLine&&!u.value.preview&&(v={"--margin":u.value.margin+"px","--showDashed":"1px"}),u.value.preview?(v["--padding"]="0",v["--overflow"]="hidden",v["--minHeight"]="0px"):(v["--padding"]="2px 0",v["--overflow"]="initial",v["--minHeight"]="30px"),{...e.pageConfig.style,...v}}),s=Q(()=>{const v=new Date,y=v.getHours(),E=v.getMinutes();return y+":"+E});return(v,y)=>{const E=_("van-icon"),F=_("dk-icon"),C=_("el-dropdown-item"),f=_("el-dropdown-menu"),V=_("el-dropdown"),B=_("el-tooltip"),k=_("el-switch"),d=_("el-form-item"),h=_("el-slider"),p=_("el-popover");return g(),D("div",Zf,[w("div",em,[w("div",tm,[w("div",om,[w("div",nm,[w("span",null,G(s.value),1),c(E,{name:"wechat",color:"#2ddd71"})]),lm,w("div",um,[am,c(F,{icon:"gg:battery-full",size:18,color:"#555","hover-color":"#f00"})])]),w("div",im,[w("div",rm,[c(V,{trigger:"click",placement:"bottom-start"},{dropdown:m(()=>[c(f,null,{default:m(()=>[c(C,{onClick:y[0]||(y[0]=b=>a("rule"))},{default:m(()=>[M("\u6E05\u9664\u7EC4\u4EF6")]),_:1}),c(C,{onClick:y[1]||(y[1]=b=>a("page"))},{default:m(()=>[M("\u6E05\u9664\u9875\u9762")]),_:1})]),_:1})]),default:m(()=>[c(F,{icon:"Close","hover-color":"var(--el-color-primary)",size:20,style:{cursor:"pointer"}})]),_:1})]),sm,w("div",dm,[c(p,{placement:"bottom",width:200,trigger:"click"},{reference:m(()=>[c(F,{icon:"MoreFilled",size:20,"hover-color":"var(--el-color-primary)",style:{cursor:"pointer"}})]),default:m(()=>[c(d,{label:"\u663E\u793A\u7F51\u683C"},{label:m(()=>[c(B,{class:"box-item",effect:"dark",content:"\u663E\u793A\u7EC4\u4EF6\u7F51\u683C\u7EBF",placement:"right-start"},{default:m(()=>[M(" \u663E\u793A\u7F51\u683C ")]),_:1})]),default:m(()=>[c(k,{modelValue:u.value.showLine,"onUpdate:modelValue":y[2]||(y[2]=b=>u.value.showLine=b),onChange:y[3]||(y[3]=b=>i())},null,8,["modelValue"])]),_:1}),c(d,{label:"\u7F51\u683C\u95F4\u8DDD"},{label:m(()=>[c(B,{class:"box-item",effect:"dark",content:"\u8BBE\u7F6E\u7EC4\u4EF6\u4E4B\u95F4\u7684\u7F51\u683C\u95F4\u8DDD",placement:"right-start"},{default:m(()=>[M(" \u7F51\u683C\u95F4\u8DDD ")]),_:1})]),default:m(()=>[c(h,{modelValue:u.value.margin,"onUpdate:modelValue":y[4]||(y[4]=b=>u.value.margin=b),min:0,step:1,"show-stops":"",max:20,onChange:y[5]||(y[5]=b=>i())},null,8,["modelValue"])]),_:1}),c(d,{label:"\u6548\u679C\u9884\u89C8"},{label:m(()=>[c(B,{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:m(()=>[M(" \u6548\u679C\u9884\u89C8 ")]),_:1})]),default:m(()=>[c(k,{modelValue:u.value.preview,"onUpdate:modelValue":y[6]||(y[6]=b=>u.value.preview=b),onChange:y[7]||(y[7]=b=>i())},null,8,["modelValue"])]),_:1}),c(d,{label:"\u5173\u95ED\u52A8\u753B"},{label:m(()=>[c(B,{class:"box-item",effect:"dark",content:"\u5173\u95ED\u6240\u6709\u9884\u89C8\u7684\u52A8\u753B\u6548\u679C",placement:"right-start"},{default:m(()=>[M(" \u5173\u95ED\u52A8\u753B ")]),_:1})]),default:m(()=>[c(k,{modelValue:u.value.closeAnimate,"onUpdate:modelValue":y[8]||(y[8]=b=>u.value.closeAnimate=b),onChange:y[9]||(y[9]=b=>i())},null,8,["modelValue"])]),_:1})]),_:1})])])]),w("div",{class:"phone-body _fc-m-drag",style:q(r.value)},[he(v.$slots,"default")],4)])])}}}),fm=H(pm,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\PreviewPhone.vue"]]);const mm="\u6D77\u62A5",Da="dk-poster-btn";var Vn={icon:"icon-park-outline:mark",label:mm,name:Da,rule(){return{type:Da,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 hm="\u5F39\u5E55\u7EC4\u4EF6",Ca="DkViewBulletChat";var $n={icon:"mingcute:chat-1-line",label:hm,name:Ca,rule(){return{type:Ca,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 gm="\u5355\u5143\u683C",Aa="DkViewCell";var In={icon:"cil:grid",label:gm,name:Aa,rule(){return{type:Aa,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 vm="\u901A\u7528\u6309\u94AE",xa="DkViewCommonBtn";var Tn={icon:"game-icons:power-button",label:vm,name:xa,rule(){return{type:xa,props:{fBtnText:"\u81EA\u5B9A\u4E49",fWSize:80,fHSize:20},showStyle:!0,fixed:!0,trigger:!0,event:!0}},props(){return[{type:"select",field:"click_type",title:"\u70B9\u51FB\u903B\u8F91",value:"event",options:[{label:"\u94FE\u63A5\u8DF3\u8F6C",value:"url"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"url",rule:[{type:"DkLinkInput",field:"url",title:"\u9009\u62E9\u94FE\u63A5",value:""}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"event",title:"\u4E8B\u4EF6\u540D\u79F0",value:"",effect:{help:"\u914D\u7F6E\u88AB\u89E6\u53D1\u7684\u4E8B\u4EF6\u540D\u79F0\uFF0C\u540D\u79F0\u4EC5\u4E3A\u82F1\u6587\u5B57\u7B26"}}]}]},{type:"select",field:"type",title:"\u6837\u5F0F",value:"btn",options:[{label:"\u666E\u901A\u6309\u94AE",value:"btn"},{label:"\u56FE\u6587\u6309\u94AE",value:"text_image_btn"}],control:[{value:"btn",rule:[{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"",props:{isVant:!0}},{type:"input",field:"btnText",title:"\u6309\u94AE\u6587\u5B57",value:"\u6309\u94AE\u540D\u79F0"},{type:"switch",field:"block",title:"\u5757\u72B6\u6309\u94AE",value:!0},{type:"switch",field:"round",title:"\u5706\u5F27",value:!0},{type:"select",field:"size",title:"\u5C3A\u5BF8",value:"normal",options:[{label:"\u8FF7\u4F60\u6309\u94AE",value:"mini"},{label:"\u5C0F\u578B\u6309\u94AE",value:"small"},{label:"\u4E2D\u578B\u6309\u94AE",value:"normal"},{label:"\u5927\u578B\u6309\u94AE",value:"large"}]},{type:"DkColorInput",field:"color",title:"\u989C\u8272",value:"#ff3d2c",col:{span:12},props:{showAlpha:!0}},{type:"DkColorInput",field:"color2",title:"\u6E10\u53D8\u8272",value:"",col:{span:12},props:{showAlpha:!0}}]},{value:"text_image_btn",rule:[{type:"input",field:"fBtnText",title:"\u6587\u5B57",value:"\u81EA\u5B9A\u4E49\u6587\u672C",control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"fontSize",title:"\u6587\u5B57\u5927\u5C0F",value:12,props:{min:12,max:32},col:{span:12}},{type:"inputNumber",field:"fontTopSize",title:"\u5411\u4E0A\u95F4\u8DDD",value:0,props:{min:0,max:32},col:{span:12}}]}]},{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"",props:{isVant:!0},control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"iconSize",title:"\u56FE\u6807\u5927\u5C0F",value:12,props:{min:12,max:32},col:{span:12}}]}]},{type:"switch",field:"isTextBlock",title:"\u9650\u5236\u5BBD\u9AD8",value:!1,control:[{value:!0,rule:[{type:"slider",field:"borderRadius",title:"\u5F27\u5EA6",value:0,props:{min:0,max:100}},{type:"DkColorInput",field:"fBgColor",title:"\u80CC\u666F\u8272",value:"#ff3d2c",props:{showAlpha:!0},col:{span:8}},{type:"DkColorInput",field:"fColor",title:"\u6587\u5B57\u8272",value:"#fff",col:{span:8,offset:4}},{type:"inputNumber",field:"fWSize",title:"\u5BBD",value:30,props:{min:20,max:400,step:10},col:{span:8}},{type:"inputNumber",field:"fHSize",title:"\u9AD8",value:30,props:{min:20,max:400,step:10},col:{span:8,offset:4}}]}]},{type:"DkImageInput",field:"img",title:"\u56FE\u7247",value:"",control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"imgSize",title:"\u56FE\u7247\u5BBD\u5EA6",value:20,props:{min:20,max:400,step:10}}]}]}]}],effect:{help:"\u914D\u7F6E\u540E\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u3010\u6837\u5F0F\u8BBE\u7F6E\u3011->\u3010\u7EC4\u4EF6\u60AC\u6D6E\u3011\u5BF9\u6309\u94AE\u8FDB\u884C\u60AC\u6D6E"}}]}};const ym="\u5F39\u7A97\u7EC4\u4EF6",Ba="DkViewDialog";var Rn={icon:"mi:window",label:ym,name:Ba,event:!0,rule(){return{type:Ba,props:{title:"\u901A\u77E5",listen:""},showStyle:!0,fixed:!0}},props(){return[{type:"DkEventCreateInput",field:"listen",title:"\u76D1\u542C\u4E8B\u4EF6",value:"",props:{label:"\u5F39\u7A97\u7EC4\u4EF6"}},{type:"input",field:"title",title:"\u5F39\u7A97\u6807\u9898",value:"\u901A\u77E5"},{type:"dk-tiny-editor",field:"content",title:"\u5F39\u7A97\u5185\u5BB9",props:{buttonText:"\u7F16\u8F91\u5F39\u7A97\u5185\u5BB9"},value:""},{type:"input",field:"confirmText",title:"\u6309\u94AE\u6587\u5B57",value:"\u786E\u5B9A"},{type:"switch",field:"show",title:"\u9884\u89C8",value:!1,effect:{help:"\u5F53\u524D\u4E3A\u9884\u89C8\u6309\u94AE\uFF0C\u4E0D\u5F71\u54CD\u5B9E\u9645\u663E\u793A\uFF0C\u70B9\u51FB\u540E\u5728\u9884\u89C8\u7A97\u53E3\u70B9\u786E\u5B9A\u5373\u53EF\u5173\u95ED"}},{type:"radio",field:"copy",title:"\u590D\u5236\u5185\u5BB9",value:"0",options:[{label:"\u4E0D\u590D\u5236",value:"0"},{label:"\u590D\u5236\u5F39\u7A97\u5185\u5BB9",value:"1"},{label:"\u590D\u5236\u81EA\u5B9A\u4E49\u5185\u5BB9",value:"2"}],control:[{value:"2",rule:[{type:"select",field:"copyType",title:"\u590D\u5236\u7C7B\u578B",value:"text",options:[{label:"\u7EAF\u6587\u672C",value:"text"},{label:"\u5BCC\u6587\u672C",value:"html"}],control:[{value:"text",rule:[{type:"input",field:"copyText",title:"\u590D\u5236\u5185\u5BB9",value:"",props:{type:"textarea"}}]},{value:"html",rule:[{type:"dk-tiny-editor",field:"copyHtml",title:"\u590D\u5236\u5185\u5BB9",value:""}]}]}]},{handle:function(t){return t!==""},rule:[{type:"input",field:"copySuccessToast",title:"\u590D\u5236\u63D0\u793A",value:"\u590D\u5236\u6210\u529F",effect:{help:"\u590D\u5236\u6210\u529F\u540E\u7684\u63D0\u793A,\u4E0D\u586B\u5219\u4E0D\u663E\u793A"}}]}]}]}};const _m="\u5217\u8868",Sa="DkViewGridCellList";var On={icon:"fluent:list-bar-16-regular",label:_m,name:Sa,rule(){return{type:Sa,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 bm="\u56FE\u7247",Va="DkViewImage";var zn={icon:"clarity:image-line",label:bm,name:Va,rule(){return{type:Va,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 Em="\u97F3\u4E50",$a="DkViewMusic";var jn={icon:"mingcute:music-3-line",label:Em,name:$a,rule(){return{type:$a,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",Ia="DkViewNavBar";var Pn={icon:"bx:navigation",label:km,name:Ia,rule(){return{type:Ia,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 Fm="\u516C\u544A",Ta="DkViewNoticeBar";var Nn={icon:"icon-park-outline:volume-notice",label:Fm,name:Ta,rule(){return{type:Ta,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 wm="\u8F6E\u64AD",Ra="DkViewSwipe";var Un={icon:"dashicons:images-alt2",label:wm,name:Ra,rule(){return{type:Ra,props:{swipeList:[{img:"https://img01.yzcdn.cn/upload_files/2021/07/06/FsivVhWrSJsQWx0GhgOJKS_IOQp_.jpg?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F01",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/07/Fm30KtbmHzLJ96USZWFGI8FLQVss.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F02",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/01/Fj19dCrgsMyTYdrr89b9iheMVFZU.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F03",show:!0}],autoplay:2e3},showStyle:!0}},props(){return[{type:"switch",field:"heightAuto",title:"\u81EA\u5B9A\u4E49\u9AD8\u5EA6",value:!1,control:[{value:!0,rule:[{type:"inputNumber",field:"height",title:"\u56FE\u7247\u9AD8\u5EA6",value:200,props:{min:0,max:500}},{type:"select",field:"fit",title:"\u586B\u5145\u6A21\u5F0F",value:"cover",options:[{label:"fill\uFF1A\u62C9\u4F38\u586B\u5145",value:"fill"},{label:"contain\uFF1A\u7F29\u653E\u586B\u5145",value:"contain"},{label:"cover\uFF1A\u6700\u5927\u5BBD\u5EA6\u586B\u5145",value:"cover"},{label:"none\uFF1A\u539F\u59CB\u5C3A\u5BF8",value:"none"},{label:"scale-down\uFF1A\u5BF9\u6BD4\u5BBD\u9AD8\u586B\u5145",value:"scale-down"}]}]}]},{type:"DkColorInput",field:"bgColor",title:"\u80CC\u666F\u8272",value:""},{type:"slider",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",value:3e3,props:{min:500,max:1e4,step:100,formatTooltip:t=>t/1e3+"\u79D2"}},{type:"el-divider",props:{},children:["\u8F6E\u64AD\u914D\u7F6E"],col:{span:24},field:"divider"},{type:"DkGroup",field:"swipeList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"urlInput",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Dm="\u5E95\u90E8\u5BFC\u822A",Oa="DkViewTabbar";var Mn={icon:"fluent:table-bottom-row-32-regular",label:Dm,name:Oa,rule(){return{type:Oa,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 Cm="\u5BCC\u6587\u672C",za="DkViewTextarea";var Ln={icon:"fluent:image-alt-text-16-regular",label:Cm,name:za,rule(){return{type:za,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 Am="\u89C6\u9891",ja="DkViewVideo";var Hn={icon:"icon-park-twotone:video-two",label:Am,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 xm=[Vn,$n,In,Tn,Rn,On,zn,jn,Pn,Nn,Un,Mn,Ln,Hn],Bm={[Vn.name]:Vn,[$n.name]:$n,[In.name]:In,[Tn.name]:Tn,[Rn.name]:Rn,[On.name]:On,[zn.name]:zn,[jn.name]:jn,[Pn.name]:Pn,[Nn.name]:Nn,[Un.name]:Un,[Mn.name]:Mn,[Ln.name]:Ln,[Hn.name]:Hn},Sm="\u901A\u7528\u6807\u9898",Pa="DkViewTitle";var Wn={icon:"ic:sharp-title",label:Sm,name:Pa,rule(){return{type:Pa,props:{},showStyle:!0}},props(){return[{type:"input",field:"title",title:"\u540D\u79F0",value:"\u6807\u9898"},{type:"inputNumber",field:"size",title:"\u5927\u5C0F",value:14,props:{min:10,max:24}},{type:"DkColorInput",field:"color",title:"\u989C\u8272",value:""},{type:"switch",field:"bold",title:"\u52A0\u7C97",value:!1},{type:"select",field:"prefix",title:"\u524D\u7F00",value:"",options:[{label:"\u65E0",value:""},{label:"\u56FE\u6807",value:"icon"},{label:"\u56FE\u7247",value:"image"},{label:"\u65B9\u5F62",value:"square"}],control:[{value:"icon",rule:[{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"volume",props:{isVant:!0}},{type:"DkColorInput",field:"prefixColor",title:"\u989C\u8272"},{type:"inputNumber",field:"iconSize",title:"\u56FE\u6807\u5927\u5C0F",value:18}]},{value:"image",rule:[{type:"dkImageInput",field:"prefixImage",title:"\u9009\u62E9\u56FE\u7247",value:""},{type:"inputNumber",field:"imageWidth",title:"\u5BBD",value:24},{type:"inputNumber",field:"imageHeight",title:"\u9AD8",value:24}]},{value:"square",rule:[{type:"inputNumber",field:"squareWidth",title:"\u5BBD",value:3},{type:"inputNumber",field:"squareHeight",title:"\u9AD8",value:18},{type:"DkColorInput",field:"prefixColor",title:"\u989C\u8272",value:"#409eff"}]},{handle(t){return t!==""},rule:[{type:"inputNumber",field:"titleMarginLeft",title:"\u6807\u9898\u95F4\u8DDD",value:4}]}]},{type:"switch",field:"showRight",title:"\u53F3\u4FA7\u8DF3\u8F6C",value:!1,control:[{value:!0,rule:[{type:"input",field:"rTitle",title:"\u53F3\u4FA7\u5185\u5BB9",value:"\u66F4\u591A"},{type:"DkColorInput",field:"rColor",title:"\u53F3\u4FA7\u989C\u8272",value:"#999"},{type:"inputNumber",field:"rSize",title:"\u53F3\u4FA7\u5927\u5C0F",value:14},{type:"dkLinkInput",field:"rUrl",title:"\u8DF3\u8F6C\u5730\u5740"}]}]}]}};const Vm="\u7A7A\u5185\u5BB9",Na="VanEmpty";var qn={icon:"grommet-icons:test",label:Vm,name:Na,count:1,rule(){return{type:Na,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"}]}}]}},Ua={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"}}]}},Gn={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"}}]}},Ma={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 $m="\u95F4\u8DDD",La="div";var Yn={icon:"ri:space",label:$m,name:La,rule(){return{type:La,wrap:{show:!1},style:{width:"100%",height:"20px"},showStyle:!0,children:[]}},props(){return[{type:"object",field:"formCreateStyle",native:!0,props:{rule:[{type:"input",field:"height",title:"height"}]}}]}};const Im="\u6805\u683C\u5E03\u5C40",Tm="row";var Xn={icon:"cil:columns",label:Im,name:Tm,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 Rm="\u5206\u5272\u7EBF",Ha="van-divider";var Jn={icon:"mingcute:border-horizontal-line",label:Rm,name:Ha,rule(){return{type:Ha,props:{hairline:!0,contentPosition:"center"},wrap:{show:!1},native:!1,showStyle:!0,children:["\u6807\u9898"]}},props(){return[{type:"switch",field:"dashed",title:"\u865A\u7EBF"},{type:"switch",field:"hairline",title:"\u7EC6\u7EBF"},{type:"input",field:"formCreateChild",title:"\u8BBE\u7F6E\u6587\u6848"},{type:"radio",field:"contentPosition",title:"\u6587\u6848\u4F4D\u7F6E",props:{type:"button"},options:[{label:"\u5DE6\u4FA7",value:"left"},{label:"\u53F3\u4FA7",value:"right"},{label:"\u5C45\u4E2D",value:"center"}]}]}},Kn={icon:"ic:outline-swipe",label:"\u8F6E\u64AD",name:"van-swipe",children:"van-swipe-item",mask:!1,rule(){return{type:"van-swipe",style:"width:100%;",children:[],showStyle:!0}},props(){return[{type:"number",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",props:{min:0,max:1e4,step:500},effect:{help:"\u81EA\u52A8\u8F6E\u64AD\u95F4\u9694\uFF0C\u5355\u4F4D\u4E3A ms,0\u8868\u793A\u4E0D\u8F6E\u64AD"}},{type:"number",field:"initial-swipe",title:"\u521D\u59CB\u4F4D\u7F6E",value:0,effect:{help:"\u521D\u59CB\u4F4D\u7F6E\u7D22\u5F15\u503C\uFF0C\u4E5F\u53EF\u4EE5\u901A\u8FC7\u5F53\u524D\u9009\u9879\u6765\u5207\u6362\u4E0D\u540C\u7684\u4F4D\u7F6E\u8FDB\u884C\u7F16\u8F91"}},{type:"number",field:"duration",title:"\u52A8\u753B\u65F6\u95F4",value:.3,effect:{help:"\u52A8\u753B\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D2\uFF0C\u8BBE\u7F6E\u4E3A 0 \u53EF\u4EE5\u7981\u7528\u52A8\u753B"}},{type:"switch",field:"loop",title:"\u662F\u5426\u5FAA\u73AF",value:!0},{type:"switch",field:"show-indicators",title:"\u663E\u793A\u6307\u793A\u5668",value:!0},{type:"switch",field:"vertical",title:"\u7EB5\u5411\u6EDA\u52A8",value:!1},{type:"switch",field:"touchable",title:"\u624B\u52BF\u6ED1\u52A8",value:!0,effect:{help:"\u662F\u5426\u53EF\u4EE5\u901A\u8FC7\u624B\u52BF\u6ED1\u52A8"}},{type:"dk-color-input",field:"indicator-color",title:"\u6307\u793A\u5668\u8272",value:"#1989fa",effect:{help:"\u6307\u793A\u5668\u989C\u8272"}}]}},Wa={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 Om=[Wn,qn,Gn,Yn,Xn,Jn,Kn],zm={[Wn.name]:Wn,[qn.name]:qn,[Ua.name]:Ua,[Gn.name]:Gn,[Ma.name]:Ma,[Yn.name]:Yn,[Xn.name]:Xn,[Jn.name]:Jn,[Kn.name]:Kn,[Wa.name]:Wa},jm={...zm,...Bm},Pm=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...xm]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[...Om]}]},Nm="\u89C6\u9891",qa="DkMinVideo";var Qn={icon:"icon-park-twotone:video-two",label:Nm,name:qa,rule(){return{type:qa,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 Um="\u8F6E\u64AD\u56FE",Ga="DkMinSwiperImage";var Zn={icon:"dashicons:images-alt2",label:Um,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}],height:160,autoplay:2e3},showStyle:!0}},props(){return[{type:"inputNumber",field:"height",title:"\u56FE\u7247\u9AD8\u5EA6",value:200,props:{min:0,max:500}},{type:"select",field:"imgMode",title:"\u88C1\u526A\u7F29\u653E\u6A21\u5F0F",value:"aspectFill",options:[{label:"scaleToFill\uFF1A\u5BBD\u9AD8\u5B8C\u5168\u62C9\u4F38\u81F3\u586B\u6EE1",value:"scaleToFill"},{label:"aspectFit\uFF1A\u957F\u8FB9\u80FD\u5B8C\u5168\u663E\u793A\u51FA\u6765",value:"aspectFit"},{label:"aspectFill\uFF1A\u77ED\u8FB9\u80FD\u5B8C\u5168\u663E\u793A\u51FA\u6765",value:"aspectFill"},{label:"widthFix\uFF1A\u5BBD\u5EA6\u4E0D\u53D8\uFF0C\u9AD8\u5EA6\u81EA\u52A8\u53D8\u5316",value:"widthFix"},{label:"heightFix\uFF1A\u9AD8\u5EA6\u4E0D\u53D8\uFF0C\u5BBD\u5EA6\u81EA\u52A8\u53D8\u5316",value:"heightFix"},{label:"top\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u9876\u90E8\u533A\u57DF",value:"top"},{label:"bottom\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5E95\u90E8\u533A\u57DF",value:"bottom"},{label:"center\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u4E2D\u95F4\u533A\u57DF",value:"center"},{label:"left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u8FB9\u533A\u57DF",value:"left"},{label:"right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u8FB9\u533A\u57DF",value:"right"},{label:"top left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u4E0A\u8FB9\u533A\u57DF",value:"top left"},{label:"top right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u4E0A\u8FB9\u533A\u57DF",value:"top right"},{label:"bottom left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u4E0B\u8FB9\u533A\u57DF",value:"bottom left"},{label:"bottom right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u4E0B\u8FB9\u533A\u57DF",value:"bottom right"}],effect:{help:"\u5C0F\u7A0B\u5E8F\u56FE\u7247\u7684\u7F29\u653E\u526A\u88C1\u6A21\u5F0F\uFF0C\u76EE\u524D\u65E0\u6CD5\u76F4\u63A5\u9884\u89C8\uFF0C\u53EF\u4EE5\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/component/image.html"}},{type:"slider",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",value:3e3,props:{min:500,max:1e4,step:100,formatTooltip:t=>t/1e3+"\u79D2"}},{type:"switch",field:"showTitle",title:"\u663E\u793A\u6807\u9898",value:!1},{type:"inputNumber",field:"radius",title:"\u5F27\u5EA6",value:0},{type:"DkGroup",field:"swipeList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"DkUrlInput",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Mm="\u6807\u9898",Ya="DkMinTitle";var el={icon:"material-symbols:title",label:Mm,name:Ya,rule(){return{type:Ya,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 Lm="\u7A7A\u767D",Xa="DkMinBlank";var tl={icon:"FullScreen",label:Lm,name:Xa,rule(){return{type:Xa,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 Hm="\u5BCC\u6587\u672C",Ja="DkMinTextarea";var ol={icon:"fluent:image-alt-text-16-regular",label:Hm,name:Ja,rule(){return{type:Ja,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 Wm="\u70ED\u56FE",Ka="DkMinHotArea";var nl={icon:"dashicons:images-alt2",label:Wm,name:Ka,rule(){return{type:Ka,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 qm="\u5BAB\u683C",Qa="DkMinGrid";var ll={icon:"mdi:grid",label:qm,name:Qa,rule(){return{type:Qa,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 Gm=[Qn,Zn,el,tl,ol,nl,ll],Ym={[Qn.name]:Qn,[Zn.name]:Zn,[el.name]:el,[tl.name]:tl,[ol.name]:ol,[nl.name]:nl,[ll.name]:ll},Xm={...Ym},Jm=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...Gm]}]};function Za(t){return t.replace(t[0],t[0].toLocaleUpperCase())}const ei=$o,Ae=$o.factory();let Km=0;const ti=()=>"F"+Math.random().toString(36).substr(3,3)+(+`${Date.now()}${++Km}`).toString(36);function Qm(){return[{type:"DkStyleInput",field:"style",value:{},title:"",props:{}}]}const oi=[{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 ul(t){return{type:"h2",slot:"title",style:"display: flex;align-items: center;font-size: 14px;font-weight: 600;margin:0;padding:0",children:[{type:"em",style:"width: 6px; height: 18px; background: rgb(64, 158, 255); display: block; margin-right: 5px;"},{type:"span",children:[t]}]}}function ni(t){const e=oi[0].animate;for(let o=0;o<e.length;o++)if(e[o].value===t)return!0;return!1}function al(t=null){const e=[{type:"el-collapse",props:{modelValue:"base"},style:"width:100%",children:[{type:"el-collapse-item",props:{name:"base"},children:[ul("\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:[ul("\u52A8\u753B\u914D\u7F6E"),{type:"DkAnimateSelect",field:"animate",value:"",title:"\u9009\u62E9\u52A8\u753B",control:[{handle:function(o){return o?ni(o):!1},rule:[{type:"dk-style-animation-input",field:"animation",title:"",value:{animationDelay:"0s",animationDuration:"1s",animationIterationCount:"infinite"}}]},{handle:function(o){return o?!ni(o):!1},rule:[{type:"dk-style-animation-input",field:"animation",title:"",value:{animationDelay:"0s",animationDuration:"1s",animationIterationCount:1}}]}]},{type:"switch",field:"animation_preview",title:"\u5B9E\u65F6\u9884\u89C8",value:!0,effect:{help:"\u8BBE\u7F6E\u5F53\u524D\u7EC4\u4EF6\u5FAA\u73AF\u52A8\u753B\u5B9E\u65F6\u9884\u89C8\uFF0C\u5F53\u524D\u4EC5\u4E3A\u8C03\u8BD5\u9879"}}]}]}];if(t&&t.config.config.rule().fixed){const o=[ul("\u60AC\u6D6E\u914D\u7F6E"),{type:"switch",field:"is_position",value:!1,title:"\u5F00\u542F\u60AC\u6D6E",effect:{help:"\u8BBE\u7F6E\u7EC4\u4EF6\u662F\u5426\u5F00\u542F\u60AC\u6D6E"},control:[{value:!0,rule:[{type:"DkStylePositionInput",field:"position",value:{},title:""}]}]}],n={type:"el-collapse-item",props:{name:"fixed"},children:o};e[0].children.push(n)}return e}const li={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"}},Zm={name:"DkMinVideo",props:{poster:{default:"",type:String},isHeight:{default:!1,type:Boolean},height:{default:0,type:Number},videoPath:{default:"",type:String},isOpenClose:{default:!1,type:Boolean}},data(){return{}},computed:{_style(){const t={};return this.height&&this.isHeight?t.height=this.height+"px":t.height="240px",t}},mounted(){},methods:{}},eh={style:{position:"relative"},class:"dk-video-content"},th={class:"video-preview"},oh={key:0},nh={key:1};function lh(t,e,o,n,l,u){const i=_("el-image"),a=_("dk-icon");return g(),D("div",{class:"dk-view-video",style:q(u._style)},[w("div",eh,[o.poster?(g(),T(i,{key:0,src:o.poster,alt:"",class:"poster"},null,8,["src"])):A("v-if",!0),w("div",th,[c(a,{icon:"VideoPlay",size:24}),o.videoPath?(g(),D("p",nh,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B!!!!")):(g(),D("p",oh,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891!!!"))])])],4)}var uh=H(Zm,[["render",lh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinVideo.vue"]]);const ah={name:"DkMinSwiperImage",props:{value:{default:"",type:String},height:{default:"",type:[Number,String]},autoplay:{default:3e3,type:[Number,String]},swipeList:{default:()=>[],type:[Array]},imgMode:{default:"aspectFill",type:String},bgColor:{default:"",type:String},showTitle:{default:!1,type:Boolean},radius:{default:0,type:Number}},data(){return{}},computed:{},watch:{swipeList(t){}},mounted(){},methods:{}},ih={key:0,class:"swipe-title"};function rh(t,e,o,n,l,u){const i=_("van-image"),a=_("van-swipe-item"),r=_("van-swipe");return g(),T(r,{class:"dk-min-swipe",autoplay:o.autoplay,"indicator-color":"white",style:q({background:o.bgColor||""})},{default:m(()=>[(g(!0),D(L,null,X(o.swipeList,(s,v)=>(g(),T(a,{key:v},{default:m(()=>[c(i,{src:s.img,width:"100%",height:o.height,style:q(o.radius?"border-radius: "+o.radius+"px; overflow: hidden":"")},null,8,["src","height","style"]),o.showTitle?(g(),D("div",ih,G(s.title),1)):A("v-if",!0)]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var sh=H(ah,[["render",rh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinSwiperImage.vue"]]);const dh={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:{}},ch={class:"dk-min-title flex items-center justify-between"},ph={class:"flex justify-center items-center"},fh=["src"];function mh(t,e,o,n,l,u){const i=_("dk-uni-icon");return g(),D("div",ch,[w("div",ph,[w("div",{style:q({marginRight:o.marginRight+"px"})},[o.iconType==="icon"?(g(),T(i,{key:0,type:o.icon,size:o.iconSize,color:o.iconColor},null,8,["type","size","color"])):o.iconType==="img"&&o.image?(g(),D("img",{key:1,src:o.image,style:q({width:o.iconSize+"px",height:o.iconSize+"px"}),alt:""},null,12,fh)):A("v-if",!0)],4),w("div",null,[w("span",{style:q({...o.titleStyle})},G(o.title),5),o.showSubtitle?(g(),D("span",{key:0,style:q([{"margin-left":"5px","font-size":"12px"},{color:o.subColor}])},G(o.subtitle),5)):A("v-if",!0)])]),o.isMore?(g(),D("div",{key:0,style:q([{color:o.moreColor},{"font-size":"12px"}])},G(o.moreText),5)):A("v-if",!0)])}var hh=H(dh,[["render",mh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTitle.vue"]]);const gh={name:"DkMinBlank",props:{height:{default:20,type:[String,Number]}},data(){return{}},computed:{},mounted(){},methods:{}};function vh(t,e,o,n,l,u){return g(),D("div",{style:q([{height:o.height+"px"},{width:"100%"}])},null,4)}var yh=H(gh,[["render",vh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinBlank.vue"]]);const _h={name:"DkMinTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},bh=["innerHTML"];function Eh(t,e,o,n,l,u){return g(),D("div",{innerHTML:o.textarea},null,8,bh)}var kh=H(_h,[["render",Eh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTextarea.vue"]]);const Fh={name:"DkMinHotArea",props:{hotData:{default:()=>({}),type:Object},showMask:{default:!1,type:Boolean}},setup(t){const e=O(null);let o=null;const n=O(0),l=O([]);De(()=>{o=new(window.ResizeObserver||ResizeObserver)(u),o.observe(e.value),n.value=e.value.clientWidth,i()}),Jr(()=>{o&&o.disconnect()}),Y(()=>t.hotData.views,()=>{i()},{deep:!0});function u(a){a.forEach(r=>{r.target===e.value&&(n.value=r.contentRect.width,i())})}function i(){l.value=JSON.parse(JSON.stringify(t.hotData.views)),l.value.forEach(a=>{const{left:r,top:s,width:v,height:y}=a.css,E=Math.round(v*(n.value/t.hotData.width)),F=Math.round(y*(n.value/t.hotData.width)),C=Math.round(r*(n.value/t.hotData.width)),f=Math.round(s*(n.value/t.hotData.width));a.css={...a.css,left:C+"px",top:f+"px",width:E+"px",height:F+"px"}})}return{el:e,containerWidth:n,views:l}}},wh={ref:"el",class:"dk-min-area"},Dh=["src"];function Ch(t,e,o,n,l,u){const i=_("el-empty");return g(),D("div",wh,[o.hotData.background?(g(),D("img",{key:0,src:o.hotData.background,alt:"",style:{width:"100%"}},null,8,Dh)):(g(),T(i,{key:1,description:"\u8BF7\u4E0A\u4F20\u80CC\u666F\u56FE"})),(g(!0),D(L,null,X(n.views,(a,r)=>(g(),D("div",{key:r,style:q({position:"absolute",...a.css,background:o.showMask?"#0008":"#0004"})},[A(" \u53EF\u4EE5\u5728\u8FD9\u91CC\u653E\u7F6E\u70ED\u56FE\u94FE\u63A5\u6216\u8986\u76D6\u5C42 "),w("div",{style:q({width:a.css.width,height:a.css.height}),class:"hot-item"},G(r+1),5)],4))),128))],512)}var Ah=H(Fh,[["render",Ch],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinHotArea.vue"]]);const xh={name:"DkMinGrid",props:["list","columnNum","imageStyle","useImageStyle","fontStyle"],data:()=>({value:""})},Bh=["src"];function Sh(t,e,o,n,l,u){const i=_("dk-icon"),a=_("van-grid-item"),r=_("van-grid"),s=_("el-empty");return o.list?.length>0?(g(),T(r,{key:0,border:!1,"column-num":o.columnNum,class:"min-h-30px dk-app-gold-grid",style:{"--van-grid-item-content-background":"none"}},{default:m(()=>[(g(!0),D(L,null,X(o.list,(v,y)=>(g(),T(a,{key:y},{default:m(()=>[v.image?(g(),D("img",{key:0,src:v.image,alt:"",style:q(o.imageStyle)},null,12,Bh)):(g(),D("div",{key:1,class:"flex justify-center items-center",style:q([{display:"flex",background:"#f3f5f7"},o.imageStyle])},[c(i,{icon:"PictureFilled",color:"#BBBFC8"})],4)),w("span",{style:q({...o.fontStyle})},G(v.title),5)]),_:2},1024))),128))]),_:1},8,["column-num"])):(g(),T(s,{key:1}))}var Vh=H(xh,[["render",Sh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinGrid.vue"]]);const ui={DkMinVideo:uh,DkMinSwiperImage:sh,DkMinTitle:hh,DkMinBlank:yh,DkMinTextarea:kh,DkMinHotArea:Ah,DkMinGrid:Vh},$h={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:{}},Ih={class:"bullet-content"},Th=["src"],Rh={class:"over"},Oh=w("div",{class:"bullet-content"},[w("span",{class:"over"},"\u5F53\u524D\u6570\u636E\u7531\u4E8B\u4EF6\u4F20\u5165")],-1),zh=[Oh];function jh(t,e,o,n,l,u){const i=_("van-swipe-item"),a=_("van-swipe");return o.dataType==="default"?(g(),T(a,{key:0,vertical:"",class:"dk-view-bullet-chat",style:q({background:o.bgColor,color:o.textColor}),autoplay:o.autoplay,"show-indicators":!1},{default:m(()=>[(g(!0),D(L,null,X(o.bulletData,(r,s)=>(g(),T(i,{key:s},{default:m(()=>[w("div",Ih,[r.avatar?(g(),D("img",{key:0,src:r.avatar,alt:""},null,8,Th)):A("v-if",!0),w("span",Rh,G(r.text),1)])]),_:2},1024))),128))]),_:1},8,["style","autoplay"])):(g(),D("div",{key:1,class:"dk-view-bullet-chat",style:q([{display:"flex"},{background:o.bgColor,color:o.textColor}])},zh,4))}var Ph=H($h,[["render",jh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewBulletChat.vue"]]);const Nh={name:"DkViewCell",props:{groups:{default:()=>[],type:Array}},data(){return{}},computed:{},mounted(){},methods:{}};function Uh(t,e,o,n,l,u){const i=_("van-cell"),a=_("van-cell-group");return g(),T(a,null,{default:m(()=>[(g(!0),D(L,null,X(o.groups,(r,s)=>(g(),T(i,{key:s,title:r.title,value:r.value},null,8,["title","value"]))),128))]),_:1})}var Mh=H(Nh,[["render",Uh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCell.vue"]]);const Lh={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:{}},Hh={class:"dk-view-common-btn"},Wh={key:0,class:"btn"},qh={key:1,class:"f-btn"},Gh={key:0,class:"image-content"},Yh=["src","width"];function Xh(t,e,o,n,l,u){const i=_("van-button"),a=_("van-icon");return g(),D("div",Hh,[o.type==="btn"?(g(),D("div",Wh,[c(i,{type:"primary",block:o.block,round:o.round,size:o.size,color:u.vanBtnColor,icon:o.icon},{default:m(()=>[M(G(o.btnText),1)]),_:1},8,["block","round","size","color","icon"])])):(g(),D("div",qh,[o.img?(g(),D("div",Gh,[w("img",{src:o.img,alt:"",width:o.imgSize},null,8,Yh)])):A("v-if",!0),w("div",{style:q(u.textStyle),class:"f-btn-content"},[c(a,{name:o.icon,size:o.iconSize},null,8,["name","size"]),w("span",{style:q({fontSize:o.fontSize+"px"})},G(o.fBtnText),5)],4)]))])}var Jh=H(Lh,[["render",Xh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCommonBtn.vue"]]);const Kh={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")}}},Qh={class:"dk-view-dialog"},Zh=w("div",{class:"preview"},"\u70B9\u51FB\u9884\u89C8\u53EF\u4EE5\u67E5\u770B\u5F39\u7A97\u6548\u679C",-1),eg=["innerHTML"];function tg(t,e,o,n,l,u){const i=_("van-dialog");return g(),D("div",Qh,[Zh,l.showDialog?(g(),T(i,{key:0,show:l.showDialog,"onUpdate:show":e[0]||(e[0]=a=>l.showDialog=a),title:o.title,teleport:".phone-body","overlay-style":{position:"absolute"},style:{position:"absolute"}},{default:m(()=>[w("div",{style:{padding:"10px"},innerHTML:o.content},null,8,eg)]),_:1},8,["show","title"])):A("v-if",!0)])}var og=H(Kh,[["render",tg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewDialog.vue"]]);const ng={name:"DkViewGridCellList",props:{value:{default:"",type:String},imgRadius:{default:0,type:Number},gridCellList:{default:()=>{},type:[Array]},fontSize:{default:14,type:Number},type:{default:"cell",type:String},cellImgSize:{default:20,type:Number},imgTextGutter:{default:0,type:Number},columnNum:{default:4,type:Number},square:{default:!1,type:Boolean},gutter:{default:0,type:Number},direction:{default:"vertical",type:String},clickable:{default:!0,type:Boolean},border:{default:!0,type:Boolean},gridImgSize:{default:40,type:Number}},data(){return{}},computed:{},mounted(){},methods:{}},lg={key:0,class:"cell"},ug=["src","alt","width","height"],ag={key:1,class:"grid"},ig=["src","width","height","alt"];function rg(t,e,o,n,l,u){const i=_("dk-icon"),a=_("van-cell"),r=_("van-cell-group"),s=_("van-grid-item"),v=_("van-grid");return o.type==="cell"?(g(),D("div",lg,[c(r,null,{default:m(()=>[(g(!0),D(L,null,X(o.gridCellList,(y,E)=>(g(),T(a,{key:E,"is-link":"",style:q({lineHeight:o.cellImgSize+"px!important"})},{icon:m(()=>[w("img",{src:y.img,alt:y.title,width:o.cellImgSize,height:o.cellImgSize,style:q({borderRadius:o.imgRadius+"px",marginRight:o.imgTextGutter+"px"})},null,12,ug)]),title:m(()=>[w("span",{class:"custom-title",style:q({fontSize:o.fontSize+"px"})},G(y.title),5)]),"right-icon":m(()=>[c(i,{icon:"ArrowRight"}),A(' <div style="color: #999; font-size: 16px">'),A(' <i class="el-icon-arrow-right" />'),A(" </div>")]),_:2},1032,["style"]))),128))]),_:1})])):(g(),D("div",ag,[c(v,{square:o.square,direction:o.direction,gutter:o.gutter,clickable:o.clickable,border:o.border,"column-num":o.columnNum},{default:m(()=>[(g(!0),D(L,null,X(o.gridCellList,(y,E)=>(g(),D(L,null,[y.show?(g(),T(s,{key:E,icon:"photo-o"},{icon:m(()=>[w("img",{src:y.img,width:o.gridImgSize,height:o.gridImgSize,alt:y.title,style:q({borderRadius:o.imgRadius+"px"})},null,12,ig)]),text:m(()=>[w("span",{style:q({fontSize:o.fontSize+"px"})},G(y.title),5)]),_:2},1024)):A("v-if",!0)],64))),256))]),_:1},8,["square","direction","gutter","clickable","border","column-num"])]))}var sg=H(ng,[["render",rg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewGridCellList.vue"]]);const dg={name:"DkViewImage",props:{value:{default:"",type:String},type:{default:"default",type:String},textType:{default:"default",type:String},heightAuto:{default:!1,type:Boolean},showText:{default:!1,type:Boolean},height:{default:"",type:[Number,String]},width:{default:"",type:[Number,String]},borderRadius:{default:"",type:[Number,String]},marginBottom:{default:"",type:[Number,String]},marginRight:{default:"",type:[Number,String]},imageList:{default:()=>[],type:[Array]},fit:{default:"cover",type:String}},data(){return{}},computed:{_style(){const t={};return this.type==="default"?t.marginBottom=this.marginBottom+"px":(t.width=this.width+"%",t.marginRight=this.marginRight+"px"),t.borderRadius=this.borderRadius+"px",t}},mounted(){},methods:{}},cg={key:0};function pg(t,e,o,n,l,u){const i=_("van-image"),a=_("el-empty");return g(),D("div",{class:ne(["dk-view-image","dk-mobile-image-"+o.type])},[(g(!0),D(L,null,X(o.imageList,(r,s)=>(g(),D("div",{key:s,class:"dk-mobile-image-content",style:q(u._style)},[c(i,{src:r.img,fit:o.fit,width:"100%",height:o.heightAuto?o.height:"",style:{overflow:"hidden"}},null,8,["src","fit","height"]),o.showText&&r.title?(g(),D("div",{key:0,class:ne("text-type-"+o.textType)},G(r.title),3)):A("v-if",!0)],4))),128)),o.imageList.length<=0?(g(),D("div",cg,[c(a,{description:"\u8BF7\u6DFB\u52A0\u56FE\u7247\u6570\u636E"})])):A("v-if",!0)],2)}var fg=H(dg,[["render",pg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewImage.vue"]]);const mg={name:"DkViewMusic",props:{musicPath:{default:"",type:String},iconType:{default:"",type:String},iconSize:{default:40,type:Number},rotation:{default:"changeRight",type:String},speed:{default:5,type:Number},imgUrl:{default:"",type:String}},data(){return{}},computed:{_style(){const t=11-this.speed+"s";return{width:this.iconSize+"px",height:this.iconSize+"px",fontSize:this.iconSize+"px",animationDuration:t,animationIterationCount:"infinite",animationTimingFunction:"linear"}}},mounted(){},methods:{}},hg={class:"dk-view-music"},gg={key:0},vg=["src"];function yg(t,e,o,n,l,u){const i=_("van-icon");return g(),D("div",hg,[o.iconType==="image"?(g(),D("div",gg,[w("img",{src:o.imgUrl,width:"100%",style:q(u._style),class:ne([o.rotation,"dk-music-img"]),alt:""},null,14,vg)])):(g(),T(i,{key:1,name:"music-o",class:ne(["dk-music-icon",o.rotation]),style:q(u._style)},null,8,["class","style"]))])}var _g=H(mg,[["render",yg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewMusic.vue"]]);const bg={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 Eg(t,e,o,n,l,u){const i=_("van-nav-bar");return g(),D("div",null,[c(i,{title:o.title,"left-text":o.leftText,"right-text":o.rightText,"left-arrow":o.leftArrow,border:o.border},null,8,["title","left-text","right-text","left-arrow","border"])])}var kg=H(bg,[["render",Eg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNavBar.vue"]]);const Fg={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 wg(t,e,o,n,l,u){const i=_("van-notice-bar");return g(),D("div",null,[c(i,{speed:o.speed,"left-icon":o.leftIcon,text:o.text,color:o.color,background:o.background},null,8,["speed","left-icon","text","color","background"])])}var Dg=H(Fg,[["render",wg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNoticeBar.vue"]]);const Cg={name:"DkViewSwipe",props:{value:{default:"",type:String},height:{default:"",type:[Number,String]},autoplay:{default:3e3,type:[Number,String]},swipeList:{default:()=>[],type:[Array]},fit:{default:"fill",type:String},bgColor:{default:"",type:String}},data(){return{}},computed:{},watch:{swipeList(t){}},mounted(){},methods:{}};function Ag(t,e,o,n,l,u){const i=_("van-image"),a=_("van-swipe-item"),r=_("van-swipe");return g(),T(r,{class:"dk-view-swipe",autoplay:o.autoplay,"indicator-color":"white",style:q({background:o.bgColor||""})},{default:m(()=>[(g(!0),D(L,null,X(o.swipeList,(s,v)=>(g(),T(a,{key:v},{default:m(()=>[c(i,{src:s.img,fit:o.fit,width:"100%",height:o.height},null,8,["src","fit","height"])]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var xg=H(Cg,[["render",Ag],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewSwipe.vue"]]);const Bg={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:{}},Sg={class:"dk-view-tabbar"},Vg=["src"];function $g(t,e,o,n,l,u){const i=_("van-tabbar-item"),a=_("van-tabbar");return g(),D("div",Sg,[c(a,{modelValue:l.tmpActive,"onUpdate:modelValue":e[0]||(e[0]=r=>l.tmpActive=r),"active-color":o.activeColor,"inactive-color":o.inactiveColor,style:q({backgroundColor:o.bgColor}),fixed:!1},{default:m(()=>[(g(!0),D(L,null,X(o.tabBars,(r,s)=>(g(),T(i,{key:s,icon:r.icon,dot:r.badge==="dot",badge:r.badge==="badge"?r.badge_text:""},Ft({default:m(()=>[w("span",null,G(r.title),1)]),_:2},[r.useImg===!0?{name:"icon",fn:m(()=>[w("img",{src:r.imgIcon,alt:""},null,8,Vg)]),key:"0"}:void 0]),1032,["icon","dot","badge"]))),128))]),_:1},8,["modelValue","active-color","inactive-color","style"])])}var Ig=H(Bg,[["render",$g],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTabbar.vue"]]);const Tg={name:"DkViewTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},Rg=["innerHTML"];function Og(t,e,o,n,l,u){return g(),D("div",{innerHTML:o.textarea},null,8,Rg)}var zg=H(Tg,[["render",Og],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTextarea.vue"]]);const jg={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:{}},Pg={class:"dk-view-title"},Ng={class:"title-left"};function Ug(t,e,o,n,l,u){const i=_("van-icon"),a=_("van-image");return g(),D("div",Pg,[w("div",Ng,[o.prefix==="icon"?(g(),T(i,{key:0,name:o.icon,style:q({color:o.prefixColor,fontSize:o.iconSize+"px"})},null,8,["name","style"])):A("v-if",!0),o.prefix==="image"?(g(),T(a,{key:1,src:o.prefixImage,alt:"",class:"dk-title-img",width:o.imageWidth,height:o.imageHeight},null,8,["src","width","height"])):A("v-if",!0),o.prefix==="square"?(g(),D("div",{key:2,style:q({width:o.squareWidth+"px",height:o.squareHeight+"px",background:o.prefixColor})},null,4)):A("v-if",!0),w("div",{style:q({marginLeft:o.titleMarginLeft+"px",color:o.color,fontWeight:o.bold?800:400})},G(o.title),5)]),o.showRight?(g(),D("div",{key:0,class:"title-right",style:q({color:o.rColor,fontSize:o.rSize+"px"})},G(o.rTitle),5)):A("v-if",!0)])}var Mg=H(jg,[["render",Ug],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTitle.vue"]]);const Lg={name:"DkViewVideo",props:{poster:{default:"",type:String},isHeight:{default:!1,type:Boolean},height:{default:0,type:Number},videoPath:{default:"",type:String},isOpenClose:{default:!1,type:Boolean}},data(){return{}},computed:{_style(){const t={};return this.height&&this.isHeight?t.height=this.height+"px":t.height="240px",t}},mounted(){},methods:{}},Hg={style:{position:"relative"},class:"dk-video-content"},Wg={class:"video-preview"},qg={key:0},Gg={key:1};function Yg(t,e,o,n,l,u){const i=_("el-image"),a=_("dk-icon");return g(),D("div",{class:"dk-view-video",style:q(u._style)},[w("div",Hg,[o.poster?(g(),T(i,{key:0,src:o.poster,alt:"",class:"poster"},null,8,["src"])):A("v-if",!0),w("div",Wg,[c(a,{icon:"VideoPlay",size:24}),o.videoPath?(g(),D("p",Gg,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B")):(g(),D("p",qg,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891"))])])],4)}var Xg=H(Lg,[["render",Yg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewVideo.vue"]]);const ai={DkViewBulletChat:Ph,DkViewCell:Mh,DkViewCommonBtn:Jh,DkViewDialog:og,DkViewGridCellList:sg,DkViewImage:fg,DkViewMusic:_g,DkViewNavBar:kg,DkViewNoticeBar:Dg,DkViewSwipe:xg,DkViewTabbar:Ig,DkViewTextarea:zg,DkViewTitle:Mg,DkViewVideo:Xg},jt="/adminapi/cloud_diy/";function Jg(t,e,o,n){return me({url:jt+"getList",method:"post",data:{page_name:t,page:e,search:o,size:n}})}function Kg(t){return me({url:jt+"down",method:"post",data:{id:t}})}function Qg(t,e,o){return me({url:jt+"getDiyForm",method:"post",data:{id:t,page_name:e,diy_data:o}})}function Zg(){return me({url:jt+"getSiteMsg",method:"post",data:{}})}function ev(t,e){return me({url:jt+"getCheckForm",method:"post",data:{id:t,state:e}})}function tv(t){return me({url:jt+"delDiy",method:"post",data:{id:t}})}const ov={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(()=>{Kg(this.chooseDiy.id).then(t=>{this.$emit("submit",t.data)})}).catch(()=>{})},onChooseDiy(t){this.chooseDiy=t},getDiyList(t){this.page=t||this.page,this.loading=!0,Jg(this.pageName,this.page,this.search,this.pageSize).then(e=>{this.list=e.data,this.total=e.msg,this.loading=!1}).catch(e=>{this.errMsg=e.msg,this.errCode=-1,this.loading=!1})},getSiteMsg(){Zg().then(t=>{this.site=t.data})},getDiyForm(t=0){Qg(t,this.pageName,this.diyData).then(e=>{console.log("getDiyForm",e),this.formData=e.data,this.width="600px",this.$refs.formRef.show()}).catch(e=>{this.$message.error(e.msg)})},getCheckForm(){ev(this.chooseDiy.id,this.chooseDiy.state).then(t=>{this.formData=t.data,this.width="400px",this.$refs.formRef.show()}).catch(t=>{this.$message.error(t.msg)})},delDiy(){this.$confirm("\u786E\u5B9A\u8981\u5220\u9664\u5F53\u524D\u6A21\u677F\uFF0C\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{tv(this.chooseDiy.id).then(t=>{this.$message.success(t.msg),this.getDiyList(1)}).catch(t=>{this.$message.error(t.msg)})}).catch(()=>{})},onSubmit(){this.getDiyList(0)}}},nv={class:"diy-cloud"},lv={class:"diy-header"},uv={class:"diy-search"},av={class:"diy-content"},iv={key:0,class:"cl"},rv=["onClick"],sv={key:0,class:"mask"},dv={class:"type"},cv={key:1,class:"tag-list"},pv={key:0,class:"tag"},fv={key:1,class:"tag"},mv={class:"title over"},hv={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"500px"}},gv={class:"diy-footer"};function vv(t,e,o,n,l,u){const i=_("el-option"),a=_("el-select"),r=_("el-button"),s=_("el-input"),v=_("el-image"),y=_("el-tag"),E=_("van-icon"),F=_("el-empty"),C=_("el-pagination"),f=_("dk-form"),V=pt("loading");return g(),D("div",nv,[w("div",lv,[w("div",uv,[c(a,{modelValue:l.search.state,"onUpdate:modelValue":e[0]||(e[0]=B=>l.search.state=B),placeholder:"\u72B6\u6001"},{default:m(()=>[c(i,{label:"\u5168\u90E8\u72B6\u6001",value:""}),l.site.level>0?(g(),T(i,{key:0,label:"\u672A\u901A\u8FC7",value:"-1"})):A("v-if",!0),l.site.level>0?(g(),T(i,{key:1,label:"\u672A\u5BA1\u6838",value:"0"})):A("v-if",!0),c(i,{label:"\u5DF2\u5BA1\u6838",value:"1"}),c(i,{label:"\u5DF2\u63A8\u8350",value:"2"})]),_:1},8,["modelValue"]),c(a,{modelValue:l.search.look,"onUpdate:modelValue":e[1]||(e[1]=B=>l.search.look=B),placeholder:"\u67E5\u770B",class:"u-m-l-10"},{default:m(()=>[c(i,{label:"\u5168\u90E8\u6A21\u677F",value:""}),c(i,{label:"\u6211\u7684\u6A21\u677F",value:"me"}),c(i,{label:"\u4ED6\u4EBA\u6A21\u677F",value:"other"})]),_:1},8,["modelValue"]),c(s,{modelValue:l.search["name like"],"onUpdate:modelValue":e[3]||(e[3]=B=>l.search["name like"]=B),placeholder:"\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0",clearable:"",onClear:e[4]||(e[4]=B=>u.getDiyList(0))},{append:m(()=>[c(r,{icon:"Search",onClick:e[2]||(e[2]=B=>u.getDiyList(1))})]),_:1},8,["modelValue"])]),w("div",null,[l.site.level>0?(g(),T(r,{key:0,type:"warning",disabled:!l.chooseDiy.id,onClick:u.getCheckForm},{default:m(()=>[M("\u5BA1\u6838 ")]),_:1},8,["disabled","onClick"])):A("v-if",!0),l.site.level>1?(g(),T(r,{key:1,type:"danger",disabled:!l.chooseDiy.id,onClick:u.delDiy},{default:m(()=>[M("\u5220\u9664")]),_:1},8,["disabled","onClick"])):A("v-if",!0),l.site.level>0||l.site.site_id===l.chooseDiy.site_id?(g(),T(r,{key:2,type:"info",disabled:!l.chooseDiy.id,onClick:e[5]||(e[5]=B=>u.getDiyForm(l.chooseDiy.id))},{default:m(()=>[M("\u7F16\u8F91 ")]),_:1},8,["disabled"])):A("v-if",!0),c(r,{type:"primary",icon:"Upload",onClick:e[6]||(e[6]=B=>u.getDiyForm())},{default:m(()=>[M("\u4E0A\u4F20\u65B0\u6A21\u677F")]),_:1})])]),A("-------------\u6A21\u677F\u5217\u8868------------------------"),fe((g(),D("div",av,[!l.loading&&l.list.length>0?(g(),D("ul",iv,[(g(!0),D(L,null,X(l.list,(B,k)=>(g(),D("li",{key:k,class:ne({choose:l.chooseDiy.id===B.id}),onClick:d=>u.onChooseDiy(B)},[c(v,{src:B.cover_image,class:"cover",fit:"contain"},null,8,["src"]),B.state<=0?(g(),D("div",sv)):A("v-if",!0),w("div",dv,[B.state==="0"?(g(),T(y,{key:0,effect:"dark"},{default:m(()=>[M("\u5BA1\u6838\u4E2D")]),_:1})):A("v-if",!0),B.state==="-1"?(g(),T(y,{key:1,type:"danger",effect:"dark"},{default:m(()=>[M("\u5BA1\u6838\u672A\u901A\u8FC7")]),_:1})):A("v-if",!0)]),B.state>0?(g(),D("div",cv,[B.state>=2?(g(),D("span",pv,[c(E,{name:"good-job"}),M("\u63A8\u8350")])):A("v-if",!0),B.down_count>100?(g(),D("span",fv,[c(E,{name:"fire"}),M("\u70ED\u95E8")])):A("v-if",!0)])):A("v-if",!0),w("div",mv,G(B.name),1)],10,rv))),128))])):(g(),D("div",hv,[l.errCode===0?(g(),T(F,{key:0,description:"\u5F53\u524D\u8FD8\u6CA1\u6A21\u677F\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u4E0A\u4F20\u81EA\u5DF1\u7684\u6A21\u677F\u5427"})):(g(),T(F,{key:1,description:l.errMsg},null,8,["description"]))])),c(C,{background:"",layout:"total,prev, pager, next",total:l.total,"current-page":l.page,"page-size":l.pageSize,"hide-on-single-page":"",onCurrentChange:u.getDiyList},null,8,["total","current-page","page-size","onCurrentChange"])])),[[V,l.loading]]),w("div",gv,[c(r,{type:"primary",style:{width:"300px"},disabled:!l.chooseDiy.id,onClick:u.submit},{default:m(()=>[M("\u786E\u5B9A")]),_:1},8,["disabled","onClick"])]),c(f,{ref:"formRef","is-dialog":!0,"form-data":l.formData,onSubmit:u.onSubmit},null,8,["form-data","onSubmit"])])}var yv=H(ov,[["render",vv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DiyCloud.vue"]]);class _v{events=[];constructor(){}addEvent(e){this.events.push({id:e.id,label:e.label,value:e.value})}addEvents(e){this.events.push(...e.map(o=>({id:o.id,label:o.label,value:o.value})))}getAllEvents(){return this.events}getEventById(e){return this.events.find(o=>o.id===e)}removeEventById(e){const o=this.events.findIndex(n=>n.id===e);o!==-1&&this.events.splice(o,1)}removeEventByLabel(e){const o=this.events.findIndex(n=>n.label===e);o!==-1&&this.events.splice(o,1)}removeAllEvent(){this.events=[]}}Ae.register({name:"help",init({value:t},e){Fn(t)||(t=[t]),e.suffix={type:"p",children:t,class:"form-help"}}});const bv=P({name:"DkPageDiy",components:{DiyCloud:yv,PreviewPhone:fm,DragForm:Ae.$form()},props:li,setup(t){const{menu:e,height:o,mask:n,locale:l}=yn(t),u=Kr(),i=O({active:null});eo("fcx",i),eo("diy",u);const a=new _v,r=Qr(t,"config",{}),s=t.type==="web"?jm:Xm,v=t.type==="web"?Pm:Jm;if(t.type==="web")for(const d in ai)Ae.component(d,ai[d]);else for(const d in ui)Ae.component(d,ui[d]);const y=d=>{const h=["DragTool","DragBox"],p=[];return h.indexOf(d.type)>-1?d.children.length>0?(d.children.forEach(b=>{p.push(...y(b))}),p):[]:[d]},E=d=>{const h=[];return d.forEach(p=>{y(p).forEach(S=>{if(S._id){const x={id:S._id,type:S.type,name:S.config?.config?.label||"",children:[]};S.children&&S.children.length>0&&(x.children=E(S.children)),h.push(x)}})}),h},F=Q(()=>E(f.children)),C=Q(()=>{const d={};let h;for(let p=0;p<f.children.length;p++)f.children[p].children.length>0&&(h=f.children[p].children[0].type,d[h]?d[h]=d[h]+1:d[h]=1);return d}),f=ie({cacheProps:{},moveRule:null,addRule:null,added:null,activeTab:"page",activeRule:null,children:O([]),menuList:e.value||v(),showBaseRule:!1,showDkSettingRule:!1,visible:{preview:!1},preview:{state:!1,rule:[],option:{}},diyCloud:{pageName:"",show:!1},dragForm:O({rule:[],api:{},option:{form:{},submitBtn:!1}}),dkSettingForm:{rule:al(),api:{},options:{form:{labelPosition:"left",size:"small",labelWidth:"82px"},submitBtn:!1,mounted:d=>{d.activeRule=f.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=f.activeRule,d.setValue(d.options.formData||{})}}},isDragging:!1,startValue:0,dragName:"",asideValue:0,trackMouseBound:null,stopChangeBound:null,rightAside:{style:{width:t.rightAsideWidth},hide:!1},leftAside:{style:{width:t.leftAsideWidth},hide:!1},treeAside:{style:{height:"500px",minHeight:"30px",maxHeight:"30px"},hide:!0,treeData:[]},leftTabsName:"component"});function V(d){return Array.isArray(d)?d.map(h=>V(h)):(typeof d=="object"&&d!==null&&Array.isArray(d.children)&&(d.children=d.children.filter(h=>typeof h=="object"&&h!==null),d.children=V(d.children)),d)}Y(()=>f.dragForm,()=>{f.treeAside.treeData=k.parseRule(zt(f.dragForm.api.rule[0].children),!0),f.treeAside.treeData=V(f.treeAside.treeData)},{deep:!0}),Y(()=>f.preview.state,function(d){d||ze(()=>{f.preview.rule=f.preview.option=null})});let B=null;const k={clear(d="all"){(d==="all"||d==="rule")&&k.setRule([]),(d==="all"||d==="page")&&k.setPageConfig({})},get(){return{rule:k.getRule(),config:k.getPageConfig()}},set(d){if(!d)return;const h=d.config?d.config:{};k.setPageConfig(h),k.setRule(d.rule)},unWatchActiveRule(){B&&B(),B=null},watchActiveRule(){k.unWatchActiveRule(),B=Y(()=>f.activeRule,function(d){d&&k.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren(d){return ie({children:d}).children},addMenu(d){if(!d.name||!d.list)return;let h=!0;f.menuList.forEach((p,b)=>{p.name===d.name&&(f.menuList[b]=d,h=!1)}),h&&f.menuList.push(d)},removeMenu(d){[...f.menuList].forEach((h,p)=>{h.name===d&&f.menuList.splice(p,1)})},setMenuItem(d,h){f.menuList.forEach(p=>{p.name===d&&(p.list=h)})},appendMenuItem(d,h){f.menuList.forEach(p=>{p.name===d&&p.list.push(...Array.isArray(h)?h:[h])})},removeMenuItem(d){f.menuList.forEach(h=>{let p;Ue.String(d)?[...h.list].forEach((b,S)=>{b.name===d&&h.list.splice(S,1)}):(p=h.list.indexOf(d))>-1&&h.list.splice(p,1)})},addComponent(d){Array.isArray(d)?d.forEach(h=>{s[h.name]=h}):s[d.name]=d},getParent(d){let h=d.__fc__.parent.rule;const p=h.config;return p&&p.config.inside&&(d=h,h=h.__fc__.parent.rule),{root:h,parent:d}},makeDrag(d,h,p,b){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:h},children:p,on:b}},makeDragRule(d){return k.makeChildren([k.makeDrag(!0,"draggable",d,{add:(h,p)=>k.dragAdd(d,p),end:(h,p)=>k.dragEnd(d,p),start:(h,p)=>k.dragStart(d,p),unchoose:(h,p)=>k.dragUnchoose(d,p)})])},previewFc(){f.preview.state=!0,f.preview.rule=k.getRule(),f.preview.option=k.getOption()},getPageConfig(){return f.dkPageForm.options.formData},setPageConfig(d){(!d||Fn(d))&&(d={}),f.dkPageForm.api.coverValue(d)},showDiyCloud(d){console.log("123");const h=k.get();f.diyCloud.pageName=d,f.diyCloud.show=!0,f.diyCloud.diy_data=h},downCloudConfig(d){k.set(d),f.diyCloud.show=!1},getRule(){return k.parseRule(zt(f.dragForm.api.rule[0].children))},getJson(){return Ae.toJson(k.getRule())},setRule(d){d||(d=[]),f.children=k.makeChildren(k.loadRule(Ue.String(d)?Ae.parseJson(d):zt(d))),k.clearActiveRule(),f.dragForm.rule=k.makeDragRule(f.children)},clearActiveRule(){f.activeRule=null,f.activeTab="page"},loadRule(d){const h=[];return d.forEach(p=>{if(Ue.String(p))return h.push(p);const b=s[p._fc_drag_tag]||s[p.type],S=p.children;if(p.children=[],p.control&&(p._control=p.control,delete p.control),b){if(p=k.makeRule(b,p),S){let x=p.children[0].children;b.drag&&(x=x[0].children),x.push(...k.loadRule(S))}}else S&&(p.children=k.loadRule(S));h.push(p)}),h},parseRule(d,h=!1){return[...d].reduce((p,b)=>Ue.String(b)?(p.push(b),p):b.type==="DragBox"?(p.push(...k.parseRule(b.children,h)),p):b.type==="DragTool"&&(b=b.children[0],b.type==="DragBox")?(p.push(...k.parseRule(b.children,h)),p):(b&&(b={...b},b.children&&b.children.length&&(b.children=k.parseRule(b.children,h)),delete b.key,delete b.component,h||(delete b._id,b.config&&delete b.config.config),b.effect&&(delete b.effect._fc,delete b.effect._fc_tool),b._control&&(b.control=b._control,delete b._control),Object.keys(b).filter(S=>Array.isArray(b[S])&&b[S].length===0||Ue.Object(b[S])&&Object.keys(b[S]).length===0).forEach(S=>{delete b[S]}),p.push(b)),p),[])},baseChange(d,h,p,b){f.activeRule&&b[f.activeRule._id]===f.activeRule&&(k.unWatchActiveRule(),f.activeRule[d]=h,k.watchActiveRule(),f.activeRule.config.config?.watch?.["$"+d]?.({field:d,value:h,api:b,rule:f.activeRule}))},dkSettingChange(d,h,p,b,S){f.activeRule&&b[f.activeRule._id]===f.activeRule&&(f.activeRule.setting[d]=h)},propRemoveField(d,h,p){if(f.activeRule&&p[f.activeRule._id]===f.activeRule){k.unWatchActiveRule();const b=d;if(f.dragForm.api.sync(f.activeRule),d.indexOf("formCreate")===0){if(d=d.replace("formCreate",""),!d)return;d=wa(d),d.indexOf("effect")===0&&d.indexOf(">")>-1?delete f.activeRule.effect[d.split(">")[1]]:d.indexOf("props")===0&&d.indexOf(">")>-1?delete f.activeRule.props[d.split(">")[1]]:d.indexOf("attrs")===0&&d.indexOf(">")>-1?f.activeRule.attrs[d.split(">")[1]]=value:d==="child"?delete f.activeRule.children[0]:d&&(f.activeRule[d]=void 0)}else delete f.activeRule.props[d];k.watchActiveRule(),f.activeRule.config.config?.watch?.[b]?.({field:b,value:void 0,api:p,rule:f.activeRule})}},propChange(d,h,p,b){if(f.activeRule&&b[f.activeRule._id]===f.activeRule){k.unWatchActiveRule();const S=d;if(d.indexOf("formCreate")===0){if(d=d.replace("formCreate",""),!d)return;d=wa(d),d.indexOf("effect")===0&&d.indexOf(">")>-1?f.activeRule.effect[d.split(">")[1]]=h:d.indexOf("props")===0&&d.indexOf(">")>-1?f.activeRule.props[d.split(">")[1]]=h:d.indexOf("attrs")===0&&d.indexOf(">")>-1?f.activeRule.attrs[d.split(">")[1]]=h:d==="child"?f.activeRule.children[0]=h:f.activeRule[d]=h}else f.activeRule.props[d]=h;k.watchActiveRule(),f.activeRule.config.config?.watch?.[S]?.({field:S,value:h,api:b,rule:f.activeRule})}},dkPageChange(d,h,p,b,S){f.dkPageForm.options.formData[d]=h},nodeClick(d){k.chooseRule(d._id)},delRule(d,h=null){h=h||f.children,h.forEach(p=>{if(p._id===d){if(p.config.config.inside)p.__fc__.rm(),u.emit("delete",p);else{const b=k.getParent(p);u.emit("delete",b.root.children[0]),b.root.__fc__.rm()}k.clearActiveRule()}else p.children&&p.children.length>0&&k.delRule(d,p.children)})},chooseRule(d,h=null){h=h||f.children,h.forEach(p=>{if(p._id===d)if(u.emit("active",p),k.toolActive(p),p.config.config.inside)i.value.active=p.children[0]?.props.unique||null;else{const b=k.getParent(p);i.value.active=b.root?.props?.unique||null}else p.children&&p.children.length>0&&k.chooseRule(d,p.children)})},toolActive(d){k.unWatchActiveRule(),f.activeRule&&(delete f.propsForm.api[f.activeRule._id],delete f.dragForm.api.activeRule),f.activeRule=d,f.dragForm.api.activeRule=d,ze(()=>{f.activeTab="props",ze(()=>{f.propsForm.api[f.activeRule._id]=f.activeRule,f.dkSettingForm.api[f.activeRule._id]=f.activeRule})}),f.cacheProps[d._id]||(f.cacheProps[d._id]=d.config.config.props(d)),f.propsForm.rule=f.cacheProps[d._id],k.updateRuleFormData(),k.watchActiveRule(),k.updateShowStyle(d)},updateShowStyle(d){if(f.showDkSettingRule=d.showStyle,f.showDkSettingRule)if(f.dkSettingForm.rule=al(d),Object.values(d.setting).length>0)f.dkSettingForm.options.formData=d.setting;else{const h={};al(d).forEach(p=>{h[p.field]=p.value}),f.dkSettingForm.options.formData=h}},updateRuleFormData(){const d=f.activeRule,h={...d.props,formCreateChild:zt(d.children[0])};Object.keys(d).forEach(p=>{["effect","config","payload","id","type"].indexOf(p)<0&&(h["formCreate"+Za(p)]=zt(d[p]))}),["props","effect","attrs"].forEach(p=>{d[p]&&Object.keys(d[p]).forEach(b=>{h["formCreate"+Za(p)+">"+b]=zt(d[p][b])})}),f.propsForm.value=h,f.showBaseRule=Qf(d,"field")&&d.input!==!1&&(!r.value||r.value.showBaseForm!==!1),f.showBaseRule&&f.dragForm.api.refreshValidate()},dragStart(d){f.moveRule=d,f.added=!1},dragUnchoose(d,h){f.addRule={children:d,oldIndex:h.oldIndex}},dragAdd(d,h){const p=h.newIndex,b=h.item._underlying_vm_;if(!b||b.__fc__){if(f.addRule){const S=f.addRule.children.splice(f.addRule.oldIndex,1);d.splice(p,0,S[0])}}else{const S=k.makeRule(s[b.name]),x=S.children[0].config.config,$=x.count?x.count:99;if((C.value[x.name]?C.value[x.name]:0)>=$)return Jl({title:"\u8B66\u544A",message:"\u5F53\u524D\u6A21\u5757\u53EA\u80FD\u6DFB\u52A0"+x.count+"\u4E2A",type:"warning"}),!1;d.splice(p,0,S)}f.added=!0},dragEnd(d,{newIndex:h,oldIndex:p}){if(!f.added&&!(f.moveRule===d&&h===p)){const b=f.moveRule.splice(p,1);d.splice(h,0,b[0])}f.moveRule=null,f.addRule=null,f.added=!1},makeRule(d,h){const p=h||d.rule();p.config={config:d},d.component&&(p.component=Kl(d.component)),p.effect||(p.effect={}),p.effect._fc=!0,p._fc_drag_tag=d.name,p.setting=p.setting||{};let b;if(d.drag&&p.children.push(b=k.makeDrag(d.drag,p.type,k.makeChildren([]),{end:(x,$)=>k.dragEnd(x.self.children,$),add:(x,$)=>k.dragAdd(x.self.children,$),start:(x,$)=>k.dragStart(x.self.children,$),unchoose:(x,$)=>k.dragUnchoose(x.self.children,$)})),d.children&&!h)for(let x=0;x<(d.childrenLen||1);x++){const $=k.makeRule(s[d.children]);(b||p).children.push($)}const S=n.value!==void 0?n.value!==!1:d.mask!==!1;return d.inside?(p.children=k.makeChildren([{type:"DragTool",props:{dragBtn:d.dragBtn!==!1,children:d.children,mask:S,setting:p.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:x})=>{const $=k.getParent(x).parent;$.__fc__.rm(),u.emit("delete",$),k.clearActiveRule()},create:({self:x})=>{const $=k.getParent(x);u.emit("create",$.parent),$.root.children.splice($.root.children.indexOf($.parent)+1,0,k.makeRule($.parent.config.config))},addChild:({self:x})=>{const $=k.getParent(x),R=$.parent.config.config,U=s[R.children];U&&(R.drag?$.parent.children[0]:$.parent).children[0].children.push(k.makeRule(U))},copy:({self:x})=>{const $=k.getParent(x);u.emit("copy",$.parent),$.root.children.splice($.root.children.indexOf($.parent)+1,0,Ae.copyRule($.parent))},active:({self:x})=>{const $=k.getParent(x);u.emit("active",$.parent),k.toolActive($.parent)}},children:p.children}]),p):{type:"DragTool",props:{dragBtn:d.dragBtn!==!1,children:d.children,mask:S,setting:p.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:x})=>{u.emit("delete",x.children[0]),x.__fc__.rm(),k.clearActiveRule()},create:({self:x})=>{u.emit("create",x.children[0]);const $=k.getParent(x);$.root.children.splice($.root.children.indexOf($.parent)+1,0,k.makeRule(x.children[0].config.config))},addChild:({self:x})=>{const $=x.children[0].config.config,R=s[$.children];R&&($.drag?x.children[0]:x).children[0].children.push(k.makeRule(R))},copy:({self:x})=>{u.emit("copy",x.children[0]);const $=k.getParent(x),R=Ae.copyRule($.parent);R.props.setting=R.children[0].setting,$.root.children.splice($.root.children.indexOf($.parent)+1,0,R)},active:({self:x})=>{u.emit("active",x.children[0]),k.toolActive(x.children[0])}},children:k.makeChildren([p])}},onResizerMouseDown(d,h){f.isDragging=!0,f.startValue=h.clientX,f.dragName=d,d==="left"&&(f.asideValue=document.getElementsByClassName("_fc-l")[0].offsetWidth),d==="right"&&(f.asideValue=document.getElementsByClassName("_fc-r")[0].offsetWidth),document.body.style.cursor="ew-resize",d==="tree"&&(f.startValue=h.clientY,f.asideValue=document.getElementsByClassName("children-list")[0].offsetHeight,console.log("data.startValue",f.startValue),console.log("data.asideValue",f.asideValue),document.body.style.cursor="n-resize"),f.trackMouseBound=k.onResizerMouseMove.bind(h),f.stopChangeBound=k.onResizerMouseUp.bind(h),document.addEventListener("mousemove",f.trackMouseBound),document.addEventListener("mouseup",f.stopChangeBound)},onResizerMouseUp(){document.removeEventListener("mousemove",f.trackMouseBound),document.removeEventListener("mouseup",f.stopChangeBound),document.body.style.cursor="default",f.isDragging=!1,f.dragName=""},onResizerMouseMove(d){if(f.isDragging){if(f.dragName==="left"){let h=d.clientX-f.startValue+f.asideValue;h>455&&(h=455),h<200&&(h=200),f.leftAside.style.width=h+"px"}if(f.dragName==="right"){let h=f.startValue-d.clientX+f.asideValue;h>800&&(h=800),h<300&&(h=300),f.rightAside.style.width=h+"px"}if(f.dragName==="tree"){let h=f.startValue-d.clientY+f.asideValue;h>800&&(h=800),h<30&&(h=30),f.treeAside.style.height=h+"px"}}},hideAside(d){if(d==="left")f.leftAside.hide?(f.leftAside.hide=!1,delete f.leftAside.style.minWidth,delete f.leftAside.style.maxWidth):(f.leftAside.hide=!0,f.leftAside.style.minWidth="0px",f.leftAside.style.maxWidth="0px");else if(d==="right")f.rightAside.hide?(f.rightAside.hide=!1,delete f.rightAside.style.minWidth,delete f.rightAside.style.maxWidth):(f.rightAside.hide=!0,f.rightAside.style.minWidth="0px",f.rightAside.style.maxWidth="0px");else if(d==="tree")if(f.treeAside.hide){f.treeAside.hide=!1;const h=f.treeAside.style.height;f.treeAside.style={height:h}}else f.treeAside.hide=!0,f.treeAside.style.minHeight="30px",f.treeAside.style.maxHeight="30px"},allowDrop(d,h,p){const b=d.data.config.config,S=h.data.config.config;return!!(p==="inner"&&b.inside&&b.name===S.children||p!=="inner"&&b.name===S.name&&b.inside&&S.inside||p!=="inner"&&!b.inside&&!S.inside||p==="inner"&&!b.inside&&S.inside)},allowDrag(d){if(console.log("allowDrag",d),d.data.type==="DragTool")return!0},nodeDrop(d,h,p,b){k.setRule(f.treeAside.treeData)}};return f.dragForm.rule=k.makeDragRule(k.makeChildren(f.children)),{...yn(f),...k,countObj:C,diyTree:F,eventData:a}},created(){document.body.ondrop=t=>{t.preventDefault(),t.stopPropagation()}}}),Ev={class:"_fc-l-groups"},kv={class:"_fc-l-title"},Fv={class:"_fc-l-icon"},wv={class:"_fc-l-name"},Dv={key:0,class:"_fc-l-count",style:{}},Cv={class:"children-list"},Av={key:0,class:"_fc-tree-node"};function xv(t,e,o,n,l,u){const i=_("dk-icon"),a=_("draggable"),r=_("el-tab-pane"),s=_("el-tree"),v=_("el-tabs"),y=_("el-aside"),E=_("el-header"),F=_("DragForm"),C=_("preview-phone"),f=_("el-container"),V=_("el-dialog"),B=_("diy-cloud"),k=_("dk-dialog"),d=pt("loading");return g(),T(f,{class:"_fc-designer dk-page-diy"},{default:m(()=>[A(" \u5DE6\u8FB9"),c(y,{class:"_fc-l item-box",style:q(t.leftAside.style)},{default:m(()=>[c(v,{modelValue:t.leftTabsName,"onUpdate:modelValue":e[0]||(e[0]=h=>t.leftTabsName=h)},{default:m(()=>[c(r,{label:"\u7EC4\u4EF6\u5217\u8868",name:"component"},{default:m(()=>[w("div",Ev,[(g(!0),D(L,null,X(t.menuList,(h,p)=>(g(),D("div",{key:p,class:"_fc-l-group"},[w("h4",kv,G(h.title),1),c(a,{group:{name:"default",pull:"clone",put:!1},sort:!1,list:h.list,"item-key":"icon",filter:".not-drag",class:"_fc-l-items"},{item:m(({element:b})=>[(g(),D("div",{key:b.id,class:ne(["_fc-l-item",b.count-(t.countObj[b.name]||0)<=0?"not-drag":""])},[w("div",Fv,[c(i,{icon:b.icon,size:24},null,8,["icon"])]),w("span",wv,G(b.label),1),b.count?(g(),D("span",Dv,G(b.count-(t.countObj[b.name]||0)),1)):A("v-if",!0)],2))]),_:2},1032,["list"])]))),128))])]),_:1}),c(r,{label:"\u7ED3\u6784\u5927\u7EB2",name:"tree"},{default:m(()=>[w("div",Cv,[c(s,{draggable:"","highlight-current":"",data:t.treeAside.treeData,props:{value:"type",label:"type"},"allow-drop":t.allowDrop,"default-expand-all":!0,onNodeDrop:t.nodeDrop,onNodeClick:t.nodeClick},{default:m(({data:h})=>[w("div",{class:"el-tree-node-content",style:q(t.activeRule&&t.activeRule._id===h._id?"color:#409eff":"")},[h.config?.config.label?(g(),D("div",Av,[c(i,{icon:h.config?.config.icon,class:"_fc-tree-icon"},null,8,["icon"]),M(" "+G(h.config?.config.label),1)])):A("v-if",!0),c(i,{icon:"Close",class:"close-rule",onClick:ct(p=>t.delRule(h._id),["stop"])},null,8,["onClick"])],4)]),_:1},8,["data","allow-drop","onNodeDrop","onNodeClick"])])]),_:1})]),_:1},8,["modelValue"]),t.leftAside.hide?A("v-if",!0):(g(),D("div",{key:0,class:"aside-resizer",onMousedown:e[1]||(e[1]=h=>t.onResizerMouseDown("left",h)),onMouseup:e[2]||(e[2]=h=>t.onResizerMouseUp("left")),onMousemove:e[3]||(e[3]=h=>t.onResizerMouseMove("left"))},null,32)),w("div",{class:"aside-toggle left-99%",style:q(t.leftAside.hide?"display:block":""),onClick:e[4]||(e[4]=h=>t.hideAside("left"))},[c(i,{icon:t.leftAside.hide?"ArrowRight":"ArrowLeft"},null,8,["icon"])],4)]),_:1},8,["style"]),A(" \u5DE6\u8FB9\u7ED3\u675F"),A(" \u9884\u89C8\u533A"),c(f,{class:"_fc-m"},{default:m(()=>[c(E,{class:"_fc-m-tools",height:"45"},{default:m(()=>[he(t.$slots,"default")]),_:3}),c(C,{"page-config":t.dkPageForm.options.formData},{default:m(()=>[fe(c(F,{api:t.dragForm.api,"onUpdate:api":e[5]||(e[5]=h=>t.dragForm.api=h),rule:t.dragForm.rule,option:t.dragForm.option},null,8,["api","rule","option"]),[[d,t.loading]])]),_:1},8,["page-config"])]),_:3}),A(" \u9884\u89C8\u533A\u7ED3\u675F"),A(" \u53F3\u8FB9\u64CD\u4F5C\u533A"),c(y,{class:"_fc-r",style:q(t.rightAside.style)},{default:m(()=>[fe(c(v,{modelValue:t.activeTab,"onUpdate:modelValue":e[9]||(e[9]=h=>t.activeTab=h)},{default:m(()=>[t.activeRule?(g(),T(r,{key:t.activeRule?"props_"+t.activeRule._id6:"",label:"\u7EC4\u4EF6\u8BBE\u7F6E",name:"props"},{default:m(()=>[c(F,{api:t.propsForm.api,"onUpdate:api":e[6]||(e[6]=h=>t.propsForm.api=h),rule:t.propsForm.rule,option:t.propsForm.options,"model-value":t.propsForm.value,onChange:t.propChange,onRemoveField:t.propRemoveField},null,8,["api","rule","option","model-value","onChange","onRemoveField"])]),_:1})):A("v-if",!0),t.activeRule?(g(),T(r,{key:t.activeRule?"style_"+t.activeRule._id:"",label:"\u6837\u5F0F\u8BBE\u7F6E",name:"style"},{default:m(()=>[fe(c(F,{api:t.dkSettingForm.api,"onUpdate:api":e[7]||(e[7]=h=>t.dkSettingForm.api=h),rule:t.dkSettingForm.rule,option:t.dkSettingForm.options,"model-value":t.dkSettingForm.value,onChange:t.dkSettingChange},null,8,["api","rule","option","model-value","onChange"]),[[Zt,t.showDkSettingRule]])]),_:1})):A("v-if",!0),c(r,{label:"\u9875\u9762\u914D\u7F6E",name:"page"},{default:m(()=>[c(F,{api:t.dkPageForm.api,"onUpdate:api":e[8]||(e[8]=h=>t.dkPageForm.api=h),rule:t.dkPageForm.rule,option:t.dkPageForm.options,onChange:t.dkPageChange},null,8,["api","rule","option","onChange"])]),_:1})]),_:1},8,["modelValue"]),[[Zt,!t.rightAside.hide]]),t.rightAside.hide?A("v-if",!0):(g(),D("div",{key:0,class:"aside-resizer left-0",onMousedown:e[10]||(e[10]=h=>t.onResizerMouseDown("right",h)),onMouseup:e[11]||(e[11]=h=>t.onResizerMouseUp("right")),onMousemove:e[12]||(e[12]=h=>t.onResizerMouseMove("right"))},null,32)),w("div",{class:"aside-toggle right-99%",style:q(t.rightAside.hide?"display:block":""),onClick:e[13]||(e[13]=h=>t.hideAside("right"))},[c(i,{icon:t.rightAside.hide?"ArrowLeft":"ArrowRight"},null,8,["icon"])],4)]),_:1},8,["style"]),A(" \u53F3\u8FB9\u64CD\u4F5C\u533A\u7ED3\u675F"),c(V,{visible:t.preview.state,"onUpdate:visible":e[14]||(e[14]=h=>t.preview.state=h),width:"375px","append-to-body":"",style:{"min-height":"700px"}},{default:m(()=>[A(" <form-create"),A(' v-if="preview.state"'),A(' :rule="preview.rule"'),A(' :option="preview.option"'),A(" />")]),_:1},8,["visible"]),c(k,{modelValue:t.diyCloud.show,"onUpdate:modelValue":e[15]||(e[15]=h=>t.diyCloud.show=h),width:"1200px","append-to-body":"",title:"DIY\u6A21\u677F\u5E02\u573A",top:"10vh"},{default:m(()=>[t.diyCloud.show?(g(),T(B,{key:0,"page-name":t.diyCloud.pageName,"diy-data":t.diyCloud.diy_data,onSubmit:t.downCloudConfig},null,8,["page-name","diy-data","onSubmit"])):A("v-if",!0)]),_:1},8,["modelValue"])]),_:3})}var To=H(bv,[["render",xv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\page-diy.vue"]]);let Bv=1;const Sv=P({name:"DragTool",props:{dragBtn:{default:!1,type:Boolean},children:{default:"",type:String},unique:{default:"",type:String},mask:{default:!1,type:Boolean},setting:{default:()=>{},type:[Object]}},setup(t){const{unique:e}=yn(t),o=Q(()=>e.value||Bv++),n=ot("fcx"),l=ot("previewSetting");return{id:o,state:n,previewSetting:l}},computed:{pageConfig(){return{}},_style(){let t={...this.setting.style,...this.setting.animation};return this.setting.is_position&&(t=Object.assign(t,{...this.setting.position,position:"absolute"})),t},_animate(){return this.setting.animation_preview!==!1&&this.setting.animate&&!this.previewSetting.closeAnimate?"animate__"+this.setting.animate:""}},beforeUnmount(){this.state={}},methods:{active(){this.state.active!==this.id&&(this.state.active=this.id,this.$emit("active"))}}}),Vv={key:0,class:"drag-mask"},$v={class:"drag-r"};function Iv(t,e,o,n,l,u){const i=_("dk-icon");return g(),D("div",{class:ne(["drag-tool animate__animated",[{active:t.state.active===t.id},t._animate]]),style:q(t._style),onClick:e[4]||(e[4]=ct((...a)=>t.active&&t.active(...a),["stop"]))},[t.mask?(g(),D("div",Vv)):A("v-if",!0),w("div",$v,[w("div",{class:"drag-btn",title:"\u6DFB\u52A0\u5F53\u524D\u7EC4\u4EF6",onClick:e[0]||(e[0]=a=>t.$emit("create"))},[c(i,{icon:"CirclePlus"})]),w("div",{class:"drag-btn",title:"\u590D\u5236\u5F53\u524D\u7EC4\u4EF6",onClick:e[1]||(e[1]=a=>t.$emit("copy"))},[c(i,{icon:"CopyDocument"})]),t.children?(g(),D("div",{key:0,class:"drag-btn",title:"\u6DFB\u52A0\u5B50\u7EC4\u4EF6",onClick:e[2]||(e[2]=a=>t.$emit("addChild"))},[c(i,{icon:"fluent:tab-add-20-regular"})])):A("v-if",!0),w("div",{class:"drag-btn drag-btn-danger",title:"\u5220\u9664\u7EC4\u4EF6",onClick:e[3]||(e[3]=a=>t.$emit("delete"))},[c(i,{icon:"Close"})])]),he(t.$slots,"default")],6)}var Tv=H(Sv,[["render",Iv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragTool.vue"]]);const Rv=P({name:"DragBox",props:["rule","tag","formCreateInject"],render(t){const e={...t.$props.rule.props,...t.$attrs};let o=t.tag+"-drag drag-box";Object.keys(t.$slots).length||(o+=" "+t.tag+"-holder"),e.class=o,e.modelValue=[...this.$props.formCreateInject.children];const n={};return t.$slots.default&&t.$slots.default().forEach(u=>{u.key&&(n[u.key]=u)}),Ql(tu,e,{item:({element:l})=>Ql("div",{class:"drag-box-item"},n[l.__fc__.key+"fc"])})}});var Ov=H(Rv,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragBox.vue"]]);const zv=P({name:"DkEventCreateInput"});var jv=P({...zv,props:{modelValue:{default:"",type:String},placeholder:{default:"",type:String},label:{default:"",type:String}},emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,n=O(o.modelValue||"");Y(()=>o.modelValue,i=>{n.value=i}),Y(()=>n.value,i=>{e("change",i),e("update:modelValue",i),e("input",i)});const l=i=>{i=i||32;const a="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",r=a.length;let s="";for(let v=0;v<i;v++)s+=a.charAt(Math.floor(Math.random()*r));return s},u=()=>{n.value=l(6)};return(i,a)=>{const r=_("el-button"),s=_("el-input");return g(),D("div",null,[c(s,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=v=>n.value=v),placeholder:t.placeholder,clearable:""},{append:m(()=>[c(r,{onClick:u},{default:m(()=>[M("\u968F\u673A")]),_:1})]),_:1},8,["modelValue","placeholder"])])}}}),Pv=H(jv,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventCreateInput.vue"]]);const Nv={name:"DkEventSelectInput",inject:["diy"],props:{modelValue:{default:"",type:String},placeholder:{default:"",type:String}},emits:["update:modelValue"],data(){return{data:"",loading:!1,eventData:[]}},computed:{EventData(){return this.diy.proxy.eventData},children(){return this.diy.proxy.children}},watch:{data(){this.$emit("update:modelValue",this.data)}},mounted(){this.data=this.modelValue||"",this.updateEvent()},methods:{updateEvent(){this.loading=!0,this.EventData.removeAllEvent(),this.onUpdateEvent(),this.loading=!1},onClick(){this.data=this.randomString(10)},randomString(t){t=t||32;const e="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",o=e.length;let n="";for(let l=0;l<t;l++)n+=e.charAt(Math.floor(Math.random()*o));return n},onUpdateEvent(){for(let t=0;t<this.children.length;t++)if(this.children[t].children.length>0){const e=this.children[t].children[0],o=e.props,n=e.config.config;if(n.event||!1){const u=n.props();this.findDkEventCreateInput(u,o).forEach(i=>{const a={id:e._id,label:i.props?.label||n.label,value:o[i.field]};a.value&&a.id&&a.label&&this.EventData.addEvent(a)})}}this.eventData=this.EventData.getAllEvents()},findDkEventCreateInput(t,e){const o=[];return t.forEach(n=>{n.children&&o.push(...this.findDkEventCreateInput(n.children)),n.control&&Array.isArray(n.control)&&n.control.forEach(l=>{l.rule.length>0&&o.push(...this.findDkEventCreateInput(l.rule))}),n.type==="DkEventCreateInput"&&o.push(n)}),o}}},Uv={style:{display:"flex"}},Mv={style:{float:"left"}},Lv={style:{float:"right","font-size":"13px",color:"#8492a6"}};function Hv(t,e,o,n,l,u){const i=_("el-option"),a=_("el-select"),r=_("el-button");return g(),D("div",Uv,[c(a,{modelValue:l.data,"onUpdate:modelValue":e[0]||(e[0]=s=>l.data=s),placeholder:"\u8BF7\u9009\u62E9\u8981\u89E6\u53D1\u4E8B\u4EF6",style:{width:"100%"},"allow-create":"",filterable:""},{default:m(()=>[(g(!0),D(L,null,X(l.eventData,s=>(g(),T(i,{key:s.value,label:s.label+"\uFF08"+s.value+"\uFF09",value:s.value},{default:m(()=>[w("span",Mv,G(s.label),1),w("span",Lv,G(s.value),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),c(r,{loading:l.loading,onClick:u.updateEvent},{default:m(()=>[M("\u5237\u65B0")]),_:1},8,["loading","onClick"])])}var Wv=H(Nv,[["render",Hv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventSelectInput.vue"]]);const qv=(t,e)=>{Ae.component(t,e),ei.component(t,e)};Ae.component("DragTool",Tv),Ae.component("DragBox",Ov),Ae.component("DkEventCreateInput",Pv),Ae.component("DkEventSelectInput",Wv),Ae.register("_fc",{init(t,e){e._id=ti(),t.value&&(e.effect._fc=!1)}}),Ae.register("_fc_tool",{init(t,e){e.props.unique=ti()}}),To.formCreate=ei,To.designerForm=Ae,To.component=qv;const ii=ae(To),ri={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
|
+
import gn from"axios";import{ElLoading as Gr,ElMessage as Se,ElButton as Xl,ElMessageBox as vn,ElNotification as Jl}from"element-plus";import{ref as O,reactive as ie,nextTick as ze,defineComponent as P,resolveComponent as _,openBlock as g,createElementBlock as D,Fragment as L,createVNode as c,withCtx as m,createTextVNode as M,createElementVNode as w,toDisplayString as G,markRaw as Kl,watch as Y,onMounted as De,normalizeClass as ne,createBlock as T,createCommentVNode as A,unref as N,computed as Q,normalizeStyle as q,renderSlot as he,resolveDynamicComponent as dt,withModifiers as ct,renderList as X,useSlots as Yr,useAttrs as Xr,mergeProps as ve,createSlots as Ft,resolveDirective as pt,withDirectives as fe,vShow as Zt,vModelText as So,inject as ot,provide as eo,onUnmounted as Jr,toRefs as yn,getCurrentInstance as Kr,toRef as Qr,h as Ql,withKeys as Zr,normalizeProps as Zl,guardReactiveProps as eu,warn as es}from"vue";import{useEventListener as ts,useElementSize as wt,useWindowSize as os}from"@vueuse/core";import tu from"vuedraggable";import ns from"vue3-draggable-resizable";import ou from"@tinymce/tinymce-vue";import{Icon as ls,disableCache as us,listIcons as as}from"@iconify/vue";import*as nu from"@element-plus/icons-vue";import{Search as lu,CircleClose as is}from"@element-plus/icons-vue";import Vo from"@vant/icons";import $o from"@form-create/element-ui";const uu=t=>t!==null&&typeof t=="object",rs=t=>t!=null,ss=t=>typeof t=="function";function au(t,e){const o=e.split(".");let n=t;return o.forEach(l=>{var u;n=uu(n)&&(u=n[l])!=null?u:""}),n}const Dt=t=>({type:String,default:t}),ds=/-(\w)/g,cs=t=>t.replace(ds,(e,o)=>o.toUpperCase()),{hasOwnProperty:ps}=Object.prototype;function fs(t,e,o){const n=e[o];rs(n)&&(!ps.call(t,o)||!uu(n)?t[o]=n:t[o]=iu(Object(t[o]),n))}function iu(t,e){return Object.keys(e).forEach(o=>{fs(t,e,o)}),t}var ms={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:(t,e)=>`${t}\u5E74${e}\u6708`,rangePrompt:t=>`\u6700\u591A\u9009\u62E9 ${t} \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:t=>`${t}\u6298`,condition:t=>`\u6EE1${t}\u5143\u53EF\u7528`},vanCouponCell:{title:"\u4F18\u60E0\u5238",count:t=>`${t}\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 ru=O("zh-CN"),su=ie({"zh-CN":ms}),hs={messages(){return su[ru.value]},use(t,e){ru.value=t,this.add({[t]:e})},add(t={}){iu(su,t)}};var gs=hs;function vs(t){const e=cs(t)+".";return(o,...n)=>{const l=gs.messages(),u=au(l,e+o)||au(l,o);return ss(u)?u(...n):u}}function _n(t,e){return e?typeof e=="string"?` ${t}--${e}`:Array.isArray(e)?e.reduce((o,n)=>o+_n(t,n),""):Object.keys(e).reduce((o,n)=>o+(e[n]?_n(t,n):""),""):""}function ys(t){return(e,o)=>(e&&typeof e!="string"&&(o=e,e=""),e=e?`${t}__${e}`:t,`${e}${_n(e,o)}`)}function Ve(t){const e=`dk-${t}`;return[e,ys(e),vs(e)]}const du={ApiUrl:"",AccessToken:"",Plaid:0,Appid:0,AddonName:"",ProjectType:"addon"};function _s(t){Object.assign(du,t)}function bn(){return du}const bs=Object.prototype.toString,En=(t,e)=>bs.call(t)===`[object ${e}]`,Es=t=>typeof t<"u",kn=t=>!Es(t),cu=t=>t!==null&&En(t,"Object"),pu=t=>En(t,"Number"),ks=t=>En(t,"String"),Fn=t=>t&&Array.isArray(t),to=new Map,ft={target:null,count:0};function fu(t){const{url:e,method:o,params:n}=t;let{data:l}=t;return typeof l=="string"&&(l=JSON.parse(l)),[e,o,JSON.stringify(n),JSON.stringify(l)].join("&")}function Fs(t){const e=fu(t);t.cancelToken=t.cancelToken||new gn.CancelToken(o=>{to.has(e)||to.set(e,o)})}function wn(t){const e=fu(t);to.has(e)&&(to.get(e)(e),to.delete(e))}function mu(t){t.loading&&ft.count>0&&ft.count--,ft.count===0&&(ft.target.close(),ft.target=null)}function ws(t){if(gn.isCancel(t))return console.warn("\u8BF7\u6C42\u7684\u91CD\u590D\u8BF7\u6C42\uFF1A"+t.message);let e="";if(t&&t.response)switch(t.response.status){case 302:e="\u63A5\u53E3\u91CD\u5B9A\u5411\u4E86\uFF01";break;case 400:e="\u53C2\u6570\u4E0D\u6B63\u786E\uFF01";break;case 401:e="\u60A8\u672A\u767B\u5F55\uFF0C\u6216\u8005\u767B\u5F55\u5DF2\u7ECF\u8D85\u65F6\uFF0C\u8BF7\u5148\u767B\u5F55\uFF01";break;case 403:e="\u60A8\u6CA1\u6709\u6743\u9650\u64CD\u4F5C\uFF01";break;case 404:e=`\u8BF7\u6C42\u5730\u5740\u51FA\u9519: ${t.response.config.url}`;break;case 408:e="\u8BF7\u6C42\u8D85\u65F6\uFF01";break;case 409:e="\u7CFB\u7EDF\u5DF2\u5B58\u5728\u76F8\u540C\u6570\u636E\uFF01";break;case 500:e="\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF\uFF01";break;case 501:e="\u670D\u52A1\u672A\u5B9E\u73B0\uFF01";break;case 502:e="\u7F51\u5173\u9519\u8BEF\uFF01";break;case 503:e="\u670D\u52A1\u4E0D\u53EF\u7528\uFF01";break;case 504:e="\u670D\u52A1\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF01";break;case 505:e="HTTP\u7248\u672C\u4E0D\u53D7\u652F\u6301\uFF01";break;default:e="\u5F02\u5E38\u95EE\u9898\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01";break}t.message.includes("timeout")&&(e="\u7F51\u7EDC\u8BF7\u6C42\u8D85\u65F6\uFF01"),t.message.includes("Network")&&(e=window.navigator.onLine?"\u670D\u52A1\u7AEF\u5F02\u5E38\uFF01":"\u60A8\u65AD\u7F51\u4E86\uFF01"),Se({type:"error",message:e})}const me=(t,e,o)=>{const n=gn.create({...t,baseURL:bn().ApiUrl}),l=Object.assign({repeat_request_cancel:!0,loading:!1,reduct_data_format:!0,error_message_show:!0,code_success_show:!1,code_error_show:!1},e);return n.interceptors.request.use(u=>{wn(u),l.repeat_request_cancel&&Fs(u),l.loading&&(ft.count++,ft.count===1&&(ft.target=Gr.service(o)));const i=bn();return u.headers["Access-Token"]=i.AccessToken,u.headers["Project-Type"]=i.ProjectType,u.headers["Addon-Name"]=i.AddonName,u.headers.Plaid=i.Plaid,u.headers.Appid=i.Appid,u.params=u.params||{},u.params._ajax=1,u},u=>Promise.reject(u)),n.interceptors.response.use(u=>{wn(u.config),l.loading&&mu(l);const i=u.data,a=i.code;if(a===0)return l.code_success_show&&Se.success(i.msg),i;switch(l.code_error_show&&Se.error(i.msg),a){case-1:case 401:case 402:case 403:return Promise.reject(i);default:return Promise.reject(u.data||{msg:"\u672A\u77E5\u9519\u8BEF"})}},u=>(console.log("error",u),u.config&&wn(u.config),l.error_message_show&&ws(u),l.loading&&mu(l),Promise.reject(u))),n.request(t)},Dn=t=>{const e={file:0,image:1,audio:2,video:3};return typeof t=="number"||/^\d+$/.test(t)?parseInt(t,10):e[t]},Ds=t=>{const e={0:"\u6587\u4EF6\u9009\u62E9",1:"\u9009\u62E9\u56FE\u7247",2:"\u9009\u62E9\u97F3\u9891",3:"\u9009\u62E9\u89C6\u9891"},o=Dn(t);return e[o]||"\u6587\u4EF6\u9009\u62E9"};function ae(t){return t.install=e=>{const{name:o}=t;o&&e.component(o,t)},t}const nt={get(t,e="localStorage"){const o=this.getStorage(e);return o?o.getItem(t):null},set(t,e,o="localStorage"){const n=this.getStorage(o);n&&n.setItem(t,e)},remove(t,e="localStorage"){const o=this.getStorage(e);o&&o.removeItem(t)},clear(t="localStorage"){const e=this.getStorage(t);e&&e.clear()},getStorage(t){return t==="localStorage"&&typeof localStorage<"u"?localStorage:t==="sessionStorage"&&typeof sessionStorage<"u"?sessionStorage:null}};function Io(t){return t.replace(t[0],t[0].toLocaleUpperCase())}const hu=(t,e=["px","%","rem","em"])=>{const o=/(\d+)(\D+)/,n=t.match(o);let l={number:0,unit:""};return n&&(l={number:parseInt(n[1],10),unit:e.includes(n[2])?n[2]:e[0]}),l};for(let t=0;t<=15;t++)t.toString(16);const Cs=(t,e="_blank")=>{e=="_blank"?window.open(t):window.location.href=t},As=(t,e="yyyy-mm-dd hh:MM:ss")=>{t||(t=Number(new Date)),t.toString().length===10&&(t=+t*1e3);const o=new Date(t);let n;const l={"y+":o.getFullYear().toString(),"m+":(o.getMonth()+1).toString(),"d+":o.getDate().toString(),"h+":o.getHours().toString(),"M+":o.getMinutes().toString(),"s+":o.getSeconds().toString()};for(const u in l)n=new RegExp("("+u+")").exec(e),n&&(e=e.replace(n[1],n[1].length==1?l[u]:xs(l[u],n[1].length,"0")));return e},xs=(t,e,o=" ")=>{if(t.length>=e)return t;const n=e-t.length;let l=Math.ceil(n/o.length);for(;l>>=1;)o+=o,l===1&&(o+=o);return o.slice(0,n)+t},Cn=(t,e,o)=>{for(const n in t)if(t[n][e]==o)return n;return!1},An=(t,e,o=-1)=>{for(const n in t){if(typeof o=="number"&&o++,o==e)return t[n];if(t[n].children&&(o=An(t[n].children,e,o),typeof o!="number"))return o}return o};class Bs{el;constructor(e){this.el=e,this.handleWheelEvent()}handleWheelEvent(){let e="";"onmousewheel"in this.el?e="mousewheel":"onwheel"in this.el?e="wheel":"attachEvent"in window?e="onmousewheel":e="DOMMouseScroll",this.el.addEventListener(e,this.scroll,{passive:!0})}scroll=e=>{this.el.clientWidth>=this.el.scrollWidth||(this.el.scrollLeft+=e.deltaY?e.deltaY:e.detail&&e.detail!==0?e.detail:-e.wheelDelta)}}function gu(t,e){let o=null;return function(...n){clearTimeout(o),o=setTimeout(()=>{t.apply(this,n)},e)}}function Ss(t){Ts(t),Is(t),$s(t),Vs(t)}function Vs(t){t.directive("tableLateralDrag",{created(e){new Bs(e.querySelector(".el-table__body-wrapper .el-scrollbar .el-scrollbar__wrap"))}})}function $s(t){t.directive("blur",{mounted(e){ts(e,"focus",()=>e.blur())}})}function Is(t){t.directive("zoom",{mounted(e,o){if(!o.value)return!1;const n=ks(o.value)?[o.value,".el-dialog__body",!1,!0]:o.value;n[1]=n[1]?n[1]:".el-dialog__body",n[2]=typeof n[2]>"u"?!1:n[2],n[3]=typeof n[3]>"u"?!0:n[3],ze(()=>{const l=document.querySelector(n[1]),u=document.querySelector(n[0]),i=document.createElement("div");i.className="zoom-handle",i.onmouseenter=()=>{i.onmousedown=a=>{const r=a.clientX,s=a.clientY,v=l.offsetWidth,y=l.offsetHeight,E=u.offsetWidth,F=u.offsetHeight;document.onmousemove=C=>{C.preventDefault();const f=v+(C.clientX-r)*2,V=y+(C.clientY-s);if(l.style.width=`${f}px`,l.style.height=`${V}px`,n[2]){const B=F+(C.clientY-s);u.style.height=`${B}px`}if(n[3]){const B=E+(C.clientX-r)*2;u.style.width=`${B}px`}},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}},u.appendChild(i)})}})}function Ts(t){t.directive("drag",{mounted(e,o){if(!o.value)return!1;const n=document.querySelector(o.value[0]),l=document.querySelector(o.value[1]);if(!l||!n)return!1;l.onmouseover=()=>l.style.cursor="move";function u(a,r){const s=r==="pc"?a.clientX-l.offsetLeft:a.touches[0].clientX-l.offsetLeft,v=r==="pc"?a.clientY-l.offsetTop:a.touches[0].clientY-l.offsetTop,y=document.body.clientWidth,E=document.body.clientHeight||document.documentElement.clientHeight,F=n.offsetWidth,C=n.offsetHeight,f=n.offsetLeft,V=y-n.offsetLeft-F,B=n.offsetTop,k=E-n.offsetTop-C;let d=getComputedStyle(n).left,h=getComputedStyle(n).top;return d=+d.replace(/\px/g,""),h=+h.replace(/\px/g,""),{disX:s,disY:v,minDragDomLeft:f,maxDragDomLeft:V,minDragDomTop:B,maxDragDomTop:k,styL:d,styT:h}}function i(a,r,s){const{disX:v,disY:y,minDragDomLeft:E,maxDragDomLeft:F,minDragDomTop:C,maxDragDomTop:f,styL:V,styT:B}=s;let k=r==="pc"?a.clientX-v:a.touches[0].clientX-v,d=r==="pc"?a.clientY-y:a.touches[0].clientY-y;-k>E?k=-E:k>F&&(k=F),-d>C?d=-C:d>f&&(d=f),n.style.cssText+=`;left:${k+V}px;top:${d+B}px;`}l.onmousedown=a=>{const r=u(a,"pc");document.onmousemove=s=>{i(s,"pc",r)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},l.ontouchstart=a=>{const r=u(a,"app");document.ontouchmove=s=>{i(s,"app",r)},document.ontouchend=()=>{document.ontouchmove=null,document.ontouchend=null}}}})}const vu={type:Dt(""),test:{default:"\u6D4B\u8BD5\u6D4B\u8BD5",type:String}},Rs={class:"mr-10px bg-black"},Os=P({name:"DkTest"});var zs=P({...Os,props:vu,emits:["onChooseUrl"],setup(t,{emit:e}){Ve("test");const o=()=>{e("onChooseUrl","\u9009\u4E2D\u7684\u94FE\u63A5\u5730\u5740")};return(n,l)=>{const u=_("el-button"),i=_("van-button");return g(),D(L,null,[c(u,{class:"dk-test"},{default:m(()=>[M("el\u6309\u94AE")]),_:1}),c(i,null,{default:m(()=>[M("van\u6309\u94AE")]),_:1}),c(u,{onClick:o},{default:m(()=>[M("\u9009\u62E9\u94FE\u63A5")]),_:1}),w("div",Rs,G(n.test),1)],64)}}}),H=(t,e)=>{const o=t.__vccOpts||t;for(const[n,l]of e)o[n]=l;return o},js=H(zs,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\test\\src\\test.vue"]]);const yu=ae(js);function Ps(t,e){return{}.hasOwnProperty.call(t,e)}function oo(t,e,o){t[e]=o}function xn(t){return Bn({},{value:t},void 0).value}function Bn(t,e={},o=!1){let n=!1;for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){let u=e[l];if((n=Array.isArray(u))||cu(u)){const i=t[l]===void 0;if(n)n=!1,i&&oo(t,l,[]);else if(u._clone&&o)if(o)u=u.getRule(),i&&oo(t,l,{});else{oo(t,l,u._clone());continue}else i&&oo(t,l,{});t[l]=Bn(t[l],u,o)}else oo(t,l,u),kn(u)||(kn(u.__json)||(t[l].__json=u.__json),kn(u.__origin)||(t[l].__origin=u.__origin))}return o!==void 0&&Array.isArray(t)?t.filter(l=>!l||!l.__ctrl):t}function Ns(t,e,o){t[e]=o}const Us=Object.assign||function(t){for(let e=1;e<arguments.length;e++){const o=arguments[e];for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&Ns(t,n,o[n])}return t};function Ms(...t){return Us.apply(this,t)}const _u={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}},Ls={key:1},Hs={class:"collapse-title"},Ws={class:"_dk-group-handle"},qs=P({name:"DkGroup"});var Gs=P({...qs,props:_u,emits:["update:modelValue","change","itemMounted","remove","add"],setup(t,{emit:e}){const o=t,n=ie({len:0,cacheRule:{},cacheValue:{},sort:[],form:Kl(o.formCreateInject.form.$form()),loading:!0}),l=ie({modelValue:[0],accordion:o.accordion}),u=n.form;Y(()=>o.rule,(p,b)=>{Object.keys(n.cacheRule).forEach(S=>{const x=n.cacheRule[S];if(x.$f){const $=x.$f.formData();if(p===b)x.$f.deferSyncValue(()=>{Bn(x.rule,p,!1),x.$f.setValue($)},!0);else{const R=x.$f.formData();x.$f.once("reloading",()=>{x.$f.setValue(R)}),x.rule=xn(p)}}})},{deep:!0}),Y(()=>o.disabled,p=>{if(o.syncDisabled){const b=n.cacheRule;Object.keys(b).forEach(S=>{b[S].$f.disabled(p)})}}),Y(()=>o.expand,p=>{const b=p-o.modelValue.length;b>0&&d(b)}),Y(()=>o.modelValue,p=>{p=p||[];const b=Object.keys(n.cacheRule),S=b.length,x=S-p.length;if(x<0){for(let $=x;$<0;$++)C(p.length-1,!0);for(let $=0;$<S;$++)F(b[$],p[$])}else{if(x>0)for(let $=0;$<x;$++)console.log("keys[total - i - 1]",b[S-$-1]),f(b[S-$-1]);p.forEach(($,R)=>{F(b[R],p[R])})}},{deep:!0}),Y(()=>({...n.cacheRule}),p=>{n.sort=Object.keys(p)},{immediate:!0});const i=p=>o.field?{[o.field]:r(o.modelValue[p])}:o.modelValue[p],a=p=>{if(n.cacheRule[p]){const{rule:b}=n.cacheRule[p],S=o.titleField?o.titleField:b[0]?.field;return n.cacheRule[p].$f?.getValue(S)||"\u70B9\u51FB\u5C55\u5F00"}else return"\u70B9\u51FB\u5C55\u5F00"},r=p=>p&&Ps(p,o.field)?p[o.field]:p,s=(p,b)=>{n.cacheValue[p]=JSON.stringify(b)},v=p=>{e("update:modelValue",p),e("change",p)},y=(p,b)=>{ze(()=>{const x=Object.keys(n.cacheRule).map($=>{const R=p===$?b:{...n.cacheRule[$].$f.form},U=o.field?R[o.field]||null:R;return s($,U),U});v(x)})},E=(p,b)=>{n.cacheRule[p].$f=b,ze(()=>{o.syncDisabled&&b.disabled(o.disabled),e("itemMounted",b,Object.keys(n.cacheRule).indexOf(p))})};De(()=>{n.loading=!1});const F=(p,b)=>{const S=o.field;S&&(b={[S]:r(b)}),n.cacheValue[p]!==JSON.stringify(S?b[S]:b)&&s(p,b)},C=(p,b=!1)=>{const S=o.formCreateInject.form.copyRules(o.rule||[]),x=o.options?{...o.options}:{submitBtn:!1,resetBtn:!1};if(o.defaultValue){x.formData||(x.formData={});const $=xn(o.defaultValue);Ms(x.formData,o.field?{[o.field]:$}:$)}o.parse&&o.parse({rule:S,options:x,index:n.sort.length}),n.cacheRule[p]={rule:S,options:x},b&&ze(()=>e("add",S,Object.keys(n.cacheRule).length-1))},f=(p,b=!1)=>{delete n.cacheRule[p],delete n.cacheValue[p],b&&ze(()=>e("remove",p))},V=()=>{if(o.disabled||o.onBeforeAdd(o.modelValue)===!1)return;const p=[...o.modelValue];p.push(o.defaultValue?xn(o.defaultValue):o.field?null:{}),v(p),l.modelValue=[p.length-1]},B=(p,b)=>{if(o.disabled||o.onBeforeRemove(o.modelValue,p)===!1)return;const S=[...o.modelValue];S.splice(p,1),v(S)},k=(p,b,S)=>{e(p,...b,n.cacheRule[S].$f,S)},d=p=>{for(let b=0;b<p;b++)o.modelValue.push(o.field?null:{})},h=(o.expand||0)-o.modelValue.length;for(let p=0;p<o.modelValue.length;p++)C(p);return h>0&&d(h),(p,b)=>{const S=_("el-divider"),x=_("el-button"),$=_("dk-icon"),R=_("el-button-group"),U=_("el-collapse-item"),I=_("draggable");return g(),D("div",{class:ne("dk-group _fc-group "+(p.disabled?"_fc-group-disabled":""))},[o.title?(g(),T(S,{key:0},{default:m(()=>[M(G(o.title),1)]),_:1})):A("v-if",!0),n.sort.length===0?(g(),D("div",Ls,[(g(),T(x,{key:"a_def",style:{width:"100%"},type:"primary",onClick:V},{default:m(()=>[M(" \u6DFB\u52A0\u6570\u636E ")]),_:1}))])):A("v-if",!0),c(I,{tag:"el-collapse",list:o.modelValue,"component-data":l,"item-key":"id",handle:".collapse-title-rank"},{item:m(({element:j,index:J})=>[c(U,{title:j.title,name:J},{title:m(()=>[w("div",Hs,[c($,{icon:"Rank",class:"collapse-title-rank"}),w("span",null,G(a(J)),1)])]),default:m(()=>[(g(),D("div",{key:J,class:"_dk-group-container"},[(g(),T(N(u),{key:J,"in-for":!0,"model-value":i(J),rule:n.cacheRule[J].rule,option:n.cacheRule[J].options,"extend-option":!0,"onUpdate:modelValue":K=>y(J,K),onEmitEvent:(K,...oe)=>k(K,oe,J),"onUpdate:api":K=>E(J,K)},null,8,["model-value","rule","option","onUpdate:modelValue","onEmitEvent","onUpdate:api"])),w("div",Ws,[c(R,null,{default:m(()=>[c(x,{icon:"Plus",plain:"",onClick:V},{default:m(()=>[M("\u589E\u52A0")]),_:1}),c(x,{icon:"Delete",plain:"",onClick:K=>B(J)},{default:m(()=>[M("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)])]))]),_:2},1032,["title","name"])]),_:1},8,["list","component-data"])],2)}}}),Ys=H(Gs,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\group\\src\\group.vue"]]);const bu=ae(Ys),Xs={language:"zh-Hans",branding:!1,skin:"oxide",icons:"jam",promotion:!1,plugins:"showImage preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media codesample table pagebreak nonbreaking anchor insertdatetime advlist lists wordcount quickbars emoticons imageSize",editimage_cors_hosts:["picsum.photos"],menubar:"file edit view insert format tools table help",toolbar:"showImage bold italic underline strikethrough fontfamily fontsize blocks alignleft aligncenter alignright alignjustify numlist bullist forecolor backcolor removeformat image media link emoticons code preview fullscreen |",toolbar_sticky:!1,height:400,quickbars_selection_toolbar:"bold italic | quicklink h2 h3 blockquote showImage",quickbars_insert_toolbar:"",quickbars_image_toolbar:"imageSize100 imageSize50 imageSize20 imageDel",toolbar_mode:"",convert_urls:!1};var Js=Xs;function Ks(t,e,o=1,n,l){return l.group_id=n,l.type=o,me({method:"post",url:"/adminapi/attachment/list",data:{page:t,size:e,search:l}})}function Qs(t,e=1,o=0){const n=new FormData;return n.append("file",t),n.append("type",e.toString()),n.append("file","file"),n.append("group_id",o.toString()),me({method:"post",url:"/adminapi/attachment/upload",data:n})}function Zs(t){return me({method:"post",url:"/adminapi/attachment/delete",data:{ids:t}},{code_success_show:!0})}function ed(t,e){return me({method:"post",url:"/adminapi/attachment/move",data:{ids:t,group_id:e}})}function td(t){return me({method:"get",url:"/adminapi/attachment/group",params:{type:t}},{code_error_show:!0})}function od(t){return me({method:"delete",url:"/adminapi/attachment/group/"+t},{code_error_show:!0})}const Eu={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}},nd={key:0},ld={key:1},ud={class:"text-center"},ad=P({name:"DkTinyEditor"});var id=P({...ad,props:Eu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,n=O(null),{width:l}=wt(n),u=O(o.modelValue),i=O(!1),a=(B,k)=>new Promise((d,h)=>{Qs(B.blob()).then(p=>{k(100),d(p.data.url)}).catch(p=>{h(p)})}),r=O("vue-tinymce-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")),s=O({selector:"#"+r.value,...Js,height:o.height,content_css:o.document?"document":"",images_upload_handler:a,initialContent:"Loading editor..."}),v=O("https://cdn-1251560393.cos.ap-chengdu.myqcloud.com/lib/tinymce/tinymce.min.js"),y=O(),E=O(),F=Q(()=>l.value>=o.showDialogWidth);Y(()=>o.modelValue,B=>{u.value=B}),Y(()=>u.value,B=>{e("update:modelValue",B),e("input",B),e("change",B)}),De(()=>{ze(()=>{C()})}),Y(()=>E.value,()=>{E.value?.getEditor()&&E.value.getEditor().on("showImage",()=>{y.value.open()})});const C=()=>{E.value?.getEditor()?E.value.getEditor().on("showImage",()=>{y.value.open()}):setTimeout(()=>{C()},1e3)},f=B=>{const k=E.value.getEditor();let d="";B.forEach(h=>{d+='<img src="'+h.url+'" alt="" width="100%">'}),k.insertContent(d)},V=B=>{console.log(B)};return(B,k)=>{const d=_("el-button"),h=_("dk-dialog"),p=_("dk-attachment-dialog");return g(),D("div",{ref_key:"el",ref:n,class:"dk-tiny-editor"},[F.value?(g(),D("div",nd,[c(N(ou),{ref_key:"editorRef",ref:E,modelValue:u.value,"onUpdate:modelValue":k[0]||(k[0]=b=>u.value=b),init:s.value,"tinymce-script-src":v.value,onDblclick:V},null,8,["modelValue","init","tinymce-script-src"])])):(g(),D("div",ld,[c(d,{type:"primary",plain:"",style:{width:"100%"},onClick:k[1]||(k[1]=b=>i.value=!0)},{default:m(()=>[M(G(o.buttonText),1)]),_:1}),c(h,{modelValue:i.value,"onUpdate:modelValue":k[4]||(k[4]=b=>i.value=b),title:"\u7F16\u8F91",width:"900px","z-index":1298},{footer:m(()=>[w("div",ud,[c(d,{type:"primary",style:{width:"200px"},onClick:k[3]||(k[3]=b=>i.value=!1)},{default:m(()=>[M("\u786E\u5B9A")]),_:1})])]),default:m(()=>[c(N(ou),{ref_key:"editorRef",ref:E,modelValue:u.value,"onUpdate:modelValue":k[2]||(k[2]=b=>u.value=b),init:s.value,"tinymce-script-src":v.value,onDblclick:V},null,8,["modelValue","init","tinymce-script-src"])]),_:1},8,["modelValue"])])),c(p,{ref_key:"attachmentRef",ref:y,type:1,onConfirm:f},null,512)],512)}}}),rd=H(id,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\tiny-editor\\src\\tiny-editor.vue"]]);const ku=ae(rd),Fu={icon:{default:"",type:String},color:String,size:Number,hoverColor:String,showEl:{default:!0,type:Boolean},showVant:{default:!0,type:Boolean}},sd=P({name:"DkIcon"});var dd=P({...sd,props:Fu,setup(t){const e=t,[o,n]=Ve("icon"),l=Object.keys(nu).map(a=>a),u=Q(()=>{const{color:a,size:r,hoverColor:s}=e,v={};return a&&(v.color=a),r&&(v.fontSize=`${r}px`),s&&(v["--hover-color"]=s),v}),i=Q(()=>{let a="cloud";return l.includes(e.icon)&&e.showEl&&(a="el"),e.showVant&&(Vo.basic.includes(e.icon)&&(a="vant"),Vo.outline.includes(e.icon)&&(a="vant"),Vo.filled.includes(e.icon)&&(a="vant")),a});return(a,r)=>{const s=_("van-icon"),v=_("el-icon");return g(),T(v,{class:ne(N(n)()),style:q(u.value)},{default:m(()=>[he(a.$slots,"default",{},()=>[i.value==="cloud"?(g(),T(N(ls),{key:0,icon:e.icon},null,8,["icon"])):A("v-if",!0),i.value==="el"?(g(),T(dt(e.icon),{key:1})):A("v-if",!0),i.value==="vant"?(g(),T(s,{key:2,class:ne(N(n)()),name:e.icon,style:q(u.value)},null,8,["class","name","style"])):A("v-if",!0)])]),_:3},8,["class","style"])}}}),cd=H(dd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon\\src\\icon.vue"]]);const wu=ae(cd),Du={modelValue:Dt(""),showAlpha:{default:!1,type:Boolean},placeholder:Dt(""),colorFormat:Dt("hex"),teleported:{default:!0,type:Boolean}},pd={style:{display:"flex"},class:"dk-color-input"},fd=P({name:"DkColorInput"});var md=P({...fd,props:Du,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t;Ve("color-input");const n=O(o.modelValue||"");return Y(()=>o.modelValue,l=>{n.value=l}),Y(()=>n.value,l=>{e("change",l),e("update:modelValue",l),e("input",l)}),(l,u)=>{const i=_("el-color-picker"),a=_("el-input");return g(),D("div",pd,[c(i,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=r=>n.value=r),teleported:l.teleported,"show-alpha":l.showAlpha,"color-format":l.colorFormat},null,8,["modelValue","teleported","show-alpha","color-format"]),c(a,{modelValue:n.value,"onUpdate:modelValue":u[1]||(u[1]=r=>n.value=r),placeholder:l.placeholder,clearable:"",style:{width:"100%"}},null,8,["modelValue","placeholder"])])}}}),hd=H(md,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\color-input\\src\\color-input.vue"]]);const Cu=ae(hd),Au={modelValue:{type:Object,default:()=>({})}},gd={class:"hot-area-content"},vd={class:"hot-area-draggable"},yd={class:"hot-item-content",style:{position:"relative",width:"100%",height:"100%",background:"#0003"}},_d={key:1,style:{width:"500px",height:"500px"}},bd={class:"hot-area-form"},Ed=w("h3",{style:{"margin-top":"0","font-size":"16px","font-weight":"500"}},"\u70ED\u533A\u7BA1\u7406",-1),kd={style:{display:"flex","justify-content":"space-between",width:"100%"}},Fd=P({name:"HotAreaContent"});var wd=P({...Fd,props:{hotDataValue:{default:()=>({views:[],width:400,height:400,background:null}),type:Object}},setup(t){const e=t,o=O(0),n=ie(e.hotDataValue),l=()=>{Array.isArray(n.views)||(n.views=[]),n.views.push({css:{left:0,top:0,width:80,height:80,borderRadius:0,borderColor:"#fff"},url:""})},u=v=>{v>=0&&v<n.views.length&&n.views.splice(v,1)},i=v=>{const y=n.views[o.value].css;y.left=v.x,y.top=v.y},a=v=>{const y=n.views[o.value].css;y.left=v.x,y.top=v.y,y.width=v.w,y.height=v.h};De(()=>{r()}),Y(()=>n?.background,()=>{r()});const r=()=>{n.background&&s(n.background).then(v=>{n.width=500,n.height=v.height*500/v.width,setTimeout(()=>{},200)}).catch(()=>{})},s=v=>new Promise(function(y,E){const F=new Image;F.onload=function(){y({width:F.width,height:F.height})},F.onerror=function(){E(new Error("error"))},F.src=v});return(v,y)=>{const E=_("vue3-draggable-resizable"),F=_("el-empty"),C=_("dk-image-input"),f=_("el-form-item"),V=_("dk-url-input"),B=_("dk-icon"),k=_("el-button"),d=_("el-form");return g(),D("div",gd,[w("div",vd,[n.background?(g(),D("div",{key:0,style:q([{width:n.width+"px",height:n.height+"px",backgroundImage:"url("+n.background+")"},{"background-size":"100% 100%"}]),onContextmenu:y[0]||(y[0]=ct(()=>{},["prevent"]))},[(g(!0),D(L,null,X(n.views,(h,p)=>(g(),T(E,{key:p,ref_for:!0,ref:"draggables",h:h.css.height,"onUpdate:h":b=>h.css.height=b,x:h.css.left,"onUpdate:x":b=>h.css.left=b,y:h.css.top,"onUpdate:y":b=>h.css.top=b,w:h.css.width,"onUpdate:w":b=>h.css.width=b,"init-w":h.css.width,"init-h":h.css.height,parent:!0,style:{cursor:"move"},"min-width":20,"min-height":20,onResizing:a,onDragging:i,onMousedown:b=>o.value=p},{default:m(()=>[w("div",yd,G(p+1),1)]),_:2},1032,["h","onUpdate:h","x","onUpdate:x","y","onUpdate:y","w","onUpdate:w","init-w","init-h","onMousedown"]))),128))],36)):(g(),D("div",_d,[c(F,{description:"\u8BF7\u4E0A\u4F20\u56FE\u7247"})]))]),w("div",bd,[Ed,c(d,{"label-width":"80px","label-position":"left"},{default:m(()=>[c(f,{label:"\u80CC\u666F\u56FE "},{default:m(()=>[c(C,{modelValue:n.background,"onUpdate:modelValue":y[1]||(y[1]=h=>n.background=h)},null,8,["modelValue"])]),_:1}),(g(!0),D(L,null,X(n.views,(h,p)=>(g(),T(f,{key:p,label:"\u70ED\u533A\u5730\u5740"+(p+1)},{default:m(()=>[w("div",kd,[c(V,{modelValue:n.views[p].url,"onUpdate:modelValue":b=>n.views[p].url=b,placeholder:"\u586B\u5199\u8DF3\u8F6C\u5730\u5740",style:{width:"100%","margin-right":"5px"}},null,8,["modelValue","onUpdate:modelValue"]),c(k,{type:"danger",plain:"",onClick:b=>u(p)},{default:m(()=>[c(B,{icon:"Delete"})]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128))]),_:1}),c(k,{disabled:!n.background,type:"primary",onClick:y[2]||(y[2]=h=>l())},{default:m(()=>[M(G(n.background?"\u6DFB\u52A0\u70ED\u533A":"\u8BF7\u5148\u4E0A\u4F20\u56FE\u7247"),1)]),_:1},8,["disabled"])])])}}}),Dd=H(wd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\component\\hot-area-content.vue"]]);const Cd={class:"dk-hot-area-input"},Ad={class:"text-center"},xd=P({name:"DkHotAreaInput"});var Bd=P({...xd,props:Au,setup(t){const o=ie(t.modelValue),n=O(!1);return(l,u)=>{const i=_("el-button"),a=_("dk-dialog");return g(),D("div",Cd,[c(i,{type:"primary",onClick:u[0]||(u[0]=r=>n.value=!0)},{default:m(()=>[M("\u8BBE\u7F6E\u70ED\u533A")]),_:1}),c(a,{modelValue:n.value,"onUpdate:modelValue":u[2]||(u[2]=r=>n.value=r),width:"1000px",title:"\u8BBE\u7F6E\u70ED\u533A"},{footer:m(()=>[w("div",Ad,[c(i,{size:"default",style:{width:"200px"},type:"primary",onClick:u[1]||(u[1]=r=>n.value=!1)},{default:m(()=>[M("\u786E\u5B9A")]),_:1})])]),default:m(()=>[c(Dd,{"hot-data-value":o},null,8,["hot-data-value"])]),_:1},8,["modelValue"])])}}}),Sd=H(Bd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\hot-area-input\\src\\hot-area-input.vue"]]);const xu=ae(Sd),Vd={modelValue:{type:Boolean,default:!1},title:Dt(""),fullscreen:{type:Boolean,default:!1},defaultFullscreen:{type:Boolean,default:!1},maxHeight:{type:String,default:""},draggable:{type:Boolean,default:!0},zIndex:{type:Number,default:1299}},$d={class:"flex justify-between items-center relative"},Id={class:"flex justify-between items-center absolute top-[50%] right-0 translate-y-[-50%]"},Td=P({name:"DkDialog"});var Rd=P({...Td,props:Vd,setup(t){const e=t;Ve("dialog");const o=Yr(),n=Q(()=>{const r=["fullscreen","title","maxHeight"],v={...Xr(),...e};for(const y in v)r.indexOf(y)!==-1&&delete v[y];return v}),l=O(e.defaultFullscreen);Y(()=>e.defaultFullscreen,()=>{l.value=e.defaultFullscreen});const u=()=>{l.value=!N(l)},i=O(pu(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight);Y(()=>l.value,async r=>{if(await ze(),r){const s=document.documentElement.offsetHeight;i.value=`${s-55-60-(o.footer?63:0)}px`}else i.value=pu(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight},{immediate:!0});const a=Q(()=>({maxHeight:e.maxHeight==="auto"?"auto":N(i)}));return(r,s)=>{const v=_("dk-icon"),y=_("ElScrollbar"),E=_("ElDialog");return g(),T(E,ve(n.value,{fullscreen:l.value,"destroy-on-close":"","append-to-body":"","lock-scroll":"",draggable:e.draggable,"close-on-click-modal":!1,"show-close":!1,class:"dk-dialog","z-index":e.zIndex}),Ft({header:m(({close:F})=>[he(r.$slots,"header",{},()=>[w("div",$d,[w("span",null,G(e.title),1),w("div",Id,[r.fullscreen?(g(),T(v,{key:0,class:"cursor-pointer is-hover mr-10px",icon:l.value?"radix-icons:exit-full-screen":"radix-icons:enter-full-screen",color:"var(--el-color-info)","hover-color":"var(--el-color-primary)",onClick:u},null,8,["icon"])):A("v-if",!0),c(v,{class:"cursor-pointer is-hover",icon:"ep:close","hover-color":"var(--el-color-primary)",color:"var(--el-color-info)",onClick:F},null,8,["onClick"])])])])]),default:m(()=>[c(y,{style:q(a.value)},{default:m(()=>[he(r.$slots,"default")]),_:3},8,["style"])]),_:2},[N(o).footer?{name:"footer",fn:m(()=>[he(r.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen","draggable","z-index"])}}}),Od=H(Rd,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\dialog\\src\\dialog.vue"]]);const zd=ae(Od),Bu={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}},jd={global:{upload:{props:{onSuccess(t,e){t.status===200?e.url=t.data.src:Se.error(t.msg)}}}},info:{icon:"el-icon-warning-outline",align:"left"},form:{inline:!1,labelPosition:"left",labelSuffix:void 0,hideRequiredAsterisk:!1,labelWidth:"125px",showMessage:!0,inlineMessage:!1,statusIcon:!1,validateOnRuleChange:!0,disabled:!1,size:"default"},submitBtn:!1,resetBtn:{type:"default",size:"default",plain:!1,round:!1,circle:!1,loading:!1,disabled:!1,icon:"el-icon-refresh",width:void 0,autofocus:!1,nativeType:"button",innerText:"\u91CD\u7F6E",show:!1,col:void 0,click:void 0}};var Pd=jd;const Nd={key:1},Ud=P({name:"DkForm"});var Md=P({...Ud,props:Bu,emits:["submit","fail","update:modelValue"],setup(t,{expose:e,emit:o}){const n=t;Ve("form"),$o.register({name:"help",init({value:x},$){Fn(x)||(x=[x]),$.suffix={type:"p",children:x,class:"form-help"}}});const l=$o.$form(),u=ie(Pd),i=O(),a=O(!0),r=O(!1),s=O(!1),{width:v}=os(),y=Q(()=>{const x=u;return v.value<768?(x.form.labelPosition="top",x.form.size="small"):(x.form.labelPosition="left",x.form.size="default"),{...x,...n.extraConfig}}),E=O(null),F=O(n.formData||{});Y(()=>n.formData,()=>{F.value=n.formData},{deep:!0}),Y(()=>E.value,x=>{o("update:modelValue",x||{})});const C=Q(()=>{let x="800px";const $=F.value?.config||{};if($?.width)return $?.width;n.dialog?.width&&(x=n.dialog?.width),$?.defaultWidth&&(x=$?.defaultWidth);let R=768;return x.endsWith("%")||(R=parseInt(x)),v.value<R?"100%":x}),f=Q(()=>F.value?.config?.style?F.value?.config?.style:n.dialog?.style?n.dialog?.style:{}),V=Q(()=>{let x=!1;return n.dialog?.draggable&&(x=n.dialog?.draggable),F.value?.config?.draggable!==void 0&&(x=F.value?.config?.draggable),x}),B=Q(()=>{let x=!1;const $=F.value?.config?.autoFullscreen!==!1;return n.dialog?.width&&(x=n.dialog?.fullscreen),F.value?.config?.fullscreen&&(x=F.value?.config?.fullscreen),v.value<768&&$&&(x=!0),x}),k=Q(()=>Object.assign(n.dialog,F.value?.config?.dialog)),d=x=>{E.value=null,F.value=x},h=x=>{if(x||(x=n.formUrl),n.formData)a.value=!1;else if(x){let $;cu(x)?$=x:$={url:x,method:"post"},me($).then(R=>{F.value=R.data,a.value=!1}).catch(R=>{a.value=!1})}},p=()=>{i.value.validate().then(()=>{i.value.submit(x=>{b(x)}).catch(x=>{Se.warning(Object.values(x)[0][0].message)})}).catch(x=>{Se.warning(Object.values(x)[0][0].message)})},b=x=>{n.isLoading&&(r.value=!0),n.isSubmit?me({url:n.path+F.value.action,method:F.value.method,data:{formData:x}}).then($=>{Se.success($.msg),o("submit",x,$),r.value=!1}).catch($=>{Se.error($.msg),o("fail",x,$),r.value=!1}):(o("submit",x),r.value=!1),s.value=!1},S=()=>{s.value=!0};return De(()=>{h()}),e({showDialog:s,buttonLoading:r,fApi:i,value:E,show:S,checkForm:p,onSubmit:b,initFormData:h,setFormData:d}),(x,$)=>{const R=_("DkDialog");return n.isDialog?(g(),T(R,ve({key:0,modelValue:s.value,"onUpdate:modelValue":$[3]||($[3]=U=>s.value=U),title:F.value?.title?F.value?.title:"\u8868\u5355",width:C.value,"default-fullscreen":B.value,"min-height":"200px"},k.value,{"max-height":"auto",draggable:V.value,"append-to-body":""}),{default:m(()=>[w("div",{style:q(f.value),class:"dk-form p10px"},[c(N(l),{modelValue:E.value,"onUpdate:modelValue":$[0]||($[0]=U=>E.value=U),option:y.value,rule:F.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":$[1]||($[1]=U=>i.value=U),"onUpdate:value":$[2]||($[2]=U=>E.value=U)},null,8,["modelValue","option","rule"]),w("div",{style:q({marginLeft:u.form.labelWidth}),class:"m-t-10px"},[he(x.$slots,"buttons",{},()=>[c(N(Xl),{type:"primary",loading:r.value,onClick:p},{default:m(()=>[M(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4)]),_:3},16,["modelValue","title","width","default-fullscreen","draggable"])):(g(),D("div",Nd,[w("div",{style:q({minHeight:x.minHeight}),class:"dk-form"},[c(N(l),{modelValue:E.value,"onUpdate:modelValue":$[4]||($[4]=U=>E.value=U),option:y.value,rule:F.value.rules,"handle-icon":!1,class:"formBox","onUpdate:api":$[5]||($[5]=U=>i.value=U),"onUpdate:value":$[6]||($[6]=U=>E.value=U)},null,8,["modelValue","option","rule"]),w("div",{style:q({marginLeft:u.form.labelWidth}),class:"m-t-10px"},[he(x.$slots,"buttons",{},()=>[c(N(Xl),{type:"primary",loading:r.value,onClick:p},{default:m(()=>[M(" \u63D0\u4EA4")]),_:1},8,["loading"])])],4)],4),A(' <div v-else :style="{ minHeight }"></div>')]))}}}),Ld=H(Md,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\form\\src\\form.vue"]]);const Su=ae(Ld),Hd={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"},Wd=w("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),qd=w("path",{fill:"#B0B7BD",d:"m384,128l96,0l-128,-128l0,96c0,17.6 14.4,32 32,32z",style:{fill:"#b0b7bd"}},null,-1),Gd=w("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 ",style:{fill:"#cad1d8"}},null,-1),Yd=w("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),Xd={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"},Jd={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"},Kd={x:"-1",y:"0"},Qd={x:"220",y:"380","text-anchor":"middle",fill:"white","font-family":"Verdana, Helvetica, Arial, sans-serif","font-size":"124"},Zd=P({name:"DkFileIcon"});var ec=P({...Zd,props:{type:{default:0,type:[Number,String]},fileSuffix:{default:"",type:String},fileName:{default:"",type:String},fileUrl:{default:"",type:String}},setup(t){const e=t,o=O(e.type),n=Q(()=>{let u="";if(e.fileSuffix&&(u=e.fileSuffix),e.fileName){const i=e.fileName,a=i.lastIndexOf(".");a!==-1&&(u=i.substring(a+1))}if(e.fileUrl){const i=e.fileUrl,a=i.lastIndexOf(".");a!==-1&&(u=i.substring(a+1))}return u.length>5?"\u672A\u77E5":u===""?"\u7A7A":u}),l=u=>{if(u==="PDF")return"#f44336";const i=["#0ca0ff","#16a806","#f44336","#ff374e","#ccc","#32CD32","#867aff","#9a978f","#ffd5b2","#FFAA33","#6082B6"],a=u.charCodeAt(0)%i.length;return i[a]};return(u,i)=>(g(),D("svg",Hd,[w("g",null,[Wd,qd,Gd,w("path",{style:q({fill:l(n.value)}),d:"m416,416c0,8.8 -7.2,16 -16,16l-352,0c-8.8,0 -16,-7.2 -16,-16l0,-160c0,-8.8 7.2,-16 16,-16l352,0c8.8,0 16,7.2 16,16l0,160z"},null,4),Yd,o.value===2?(g(),D("path",Xd)):A("v-if",!0),o.value===3?(g(),D("path",Jd)):A("v-if",!0),w("g",null,[w("text",Kd,[w("tspan",Qd,G(n.value),1)])])])]))}}),Ot=H(ec,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\file-icon.vue"]]);const Sn={type:{type:[Number,String],default:1},accept:{type:String,default:""}},tc={class:"dk-attachment attachment"},oc={class:"attachment-header flex justify-between pt-5px pb-5px"},nc={class:"header-form z"},lc={class:"header-button y"},uc=w("i",{class:"el-icon-delete el-icon--right"},null,-1),ac=w("i",{class:"el-icon-upload el-icon--right"},null,-1),ic={class:"attachment-content flex"},rc={class:"attachment-group"},sc={class:"group_list"},dc=["onClick"],cc={class:"ml-10px"},pc={class:"op"},fc={class:"attachment-container"},mc={key:0,class:"p2"},hc=["onClick","onContextmenu"],gc={class:"file"},vc=w("div",{class:"u-m-t-30"},[w("i",{class:"el-icon-loading"}),w("span",null,"\u52A0\u8F7D\u4E2D")],-1),yc={key:1},_c={key:2},bc={key:3},Ec={class:"file-name over"},kc={class:"right"},Fc={class:"block p-10px"},wc={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"340px"}},Dc=P({name:"DkAttachment"});var Cc=P({...Dc,props:Sn,setup(t,{expose:e}){const o=t,n=Q(()=>Dn(o.type)),l=O(""),u=O([]),i=O([]),a=O([]),r=bn(),s=r.ApiUrl+"/adminapi/attachment/upload",v={"Access-Token":r.AccessToken},y=O(),E=ie({type:n.value,file:"file",group_id:0}),F=le=>{ed(a.value,le).then(pe=>{Se.success(pe.msg),Z()})},C=le=>{console.log("res",le),le.code===0?(Se.success(le.msg),Z()):Se.error(le.msg)},f=Q(()=>{let le="";if(o.accept)return o.accept;switch(n.value){case 0:break;case 1:le="image/*";break;case 2:le="audio/*";break;case 3:le="video/*";break}return le}),V=()=>{vn.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u6587\u4EF6, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}).then(()=>{try{Zs(a.value).then(le=>{console.log(le),Z()}).catch(le=>{console.log("deleteAttachment error",le)})}catch(le){console.log(le)}})},B=O([]),k=Q(()=>oe.value===0?{url:r.ApiUrl+"/adminapi/attachment/group/create",method:"get"}:{url:r.ApiUrl+"/adminapi/attachment/group/"+oe.value+"/edit",method:"get"}),d=O(),h=()=>{oe.value=0,d.value.show()},p=le=>{vn.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u5206\u7EC4, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{try{od(le).then(pe=>{Se.success(pe.msg),S()}).catch(()=>{})}catch(pe){console.log(pe)}})},b=()=>{d.value.show()},S=()=>{$(),Z()},x=le=>{oe.value=le,I.value=1,Z()},$=async()=>{try{const le=await td(n.value);B.value=le.data}catch{}},R=O(!0),U=O([]),I=O(1),j=O(0),J=O(10),K=O(0),oe=O(0),z=le=>{J.value=le,Z()},re=le=>{I.value=le,Z()},Z=async(le={})=>{Be();try{const pe=await Ks(I.value,J.value,n.value,oe.value,le);U.value=pe.data,j.value=pe.msg,R.value=!1}catch{}},Be=()=>{u.value=[],a.value=[],i.value=[]},Ye=(le,pe)=>{const Ee=u.value.indexOf(pe);Ee>-1?(u.value.splice(Ee,1),a.value.splice(Ee,1),i.value.splice(Ee,1)):(u.value.push(pe),a.value.push(le.id),i.value.push(le))};return De(()=>{$(),Z()}),e({chooseFileId:a,chooseFileKey:u,chooseFileList:i,clearChoose:Be}),(le,pe)=>{const Ee=_("el-button"),Oe=_("el-input"),Rt=_("el-dropdown-item"),bt=_("el-dropdown-menu"),st=_("el-dropdown"),sn=_("el-upload"),dn=_("CirclePlusFilled"),Et=_("el-icon"),Co=_("dk-icon"),Ao=_("Tools"),cn=_("el-popover"),pn=_("el-image"),xo=_("Check"),Bo=_("el-pagination"),fn=_("el-empty"),mn=_("dk-form"),tt=pt("loading");return g(),D("div",tc,[A(" \u9876\u90E8"),w("div",oc,[w("div",nc,[c(Oe,{modelValue:l.value,"onUpdate:modelValue":pe[0]||(pe[0]=de=>l.value=de),size:"default",placeholder:"\u8BF7\u8F93\u5165\u9644\u4EF6\u540D\u79F0",class:"input-with-select"},{append:m(()=>[c(Ee,{icon:N(lu)},null,8,["icon"])]),_:1},8,["modelValue"])]),w("div",lc,[c(st,{class:"mr",trigger:"click",onCommand:F},{dropdown:m(()=>[c(bt,null,{default:m(()=>[(g(!0),D(L,null,X(B.value,(de,Xe)=>(g(),T(Rt,{key:Xe,command:de.id},{default:m(()=>[M(G(de.name),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:m(()=>[c(Ee,{size:"default",type:"info",disabled:u.value.length<=0},{default:m(()=>[M(" \u79FB\u52A8 ")]),_:1},8,["disabled"])]),_:1}),c(Ee,{size:"default",type:"danger",disabled:u.value.length<=0,onClick:V},{default:m(()=>[M("\u5220\u9664"),uc]),_:1},8,["disabled"]),c(sn,{ref_key:"upload",ref:y,class:"dk-upload-button",action:s,multiple:"",data:E,"show-file-list":!1,headers:v,"on-success":C,accept:f.value,"list-type":"text"},{default:m(()=>[c(Ee,{type:"primary",size:"default"},{default:m(()=>[M("\u4E0A\u4F20"),ac]),_:1})]),_:1},8,["data","accept"])])]),A("\u5185\u90E8"),w("div",ic,[A(" \u5206\u7EC4"),w("div",rc,[w("h5",{class:"cursor-pointer flex items-center content-center",onClick:pe[1]||(pe[1]=de=>h())},[M(" \u9644\u4EF6\u5206\u7EC4 "),c(Et,{class:"m-l-5px"},{default:m(()=>[c(dn)]),_:1})]),w("ul",sc,[(g(!0),D(L,null,X(B.value,(de,Xe)=>(g(),D("li",{key:Xe,class:ne({active:oe.value===de.id}),onClick:kt=>x(de.id)},[de.id===oe.value?(g(),T(Co,{key:0,icon:"flat-color-icons:opened-folder"})):(g(),T(Co,{key:1,icon:"flat-color-icons:folder"})),w("span",cc,G(de.name),1),c(cn,{placement:"right",trigger:"click"},{reference:m(()=>[w("div",pc,[de.id>0?(g(),T(Et,{key:0},{default:m(()=>[c(Ao)]),_:1})):A("v-if",!0)])]),default:m(()=>[c(Ee,{size:"small",type:"primary",onClick:pe[2]||(pe[2]=ct(kt=>b(),["stop"]))},{default:m(()=>[M("\u7F16\u8F91 ")]),_:1}),c(Ee,{size:"small",type:"danger",onClick:kt=>p(de.id)},{default:m(()=>[M("\u5220\u9664")]),_:2},1032,["onClick"])]),_:2},1024)],10,dc))),128))])]),A(" \u5217\u8868"),w("div",fc,[R.value||U.value.length>0?fe((g(),D("div",mc,[w("ul",{class:"attachment-list cl",style:q({overflow:U.value.length>10?"auto":""})},[(g(!0),D(L,null,X(U.value,(de,Xe)=>(g(),D("li",{key:Xe,class:ne({choose:u.value.indexOf(Xe)>-1}),onClick:kt=>Ye(de,Xe),onContextmenu:ct(kt=>K.value=de.id,["prevent"])},[w("div",gc,[de.type===1?(g(),T(pn,{key:0,class:"file",src:de.url,fit:"contain"},{placeholder:m(()=>[vc]),_:2},1032,["src"])):A("v-if",!0),de.type===2?(g(),D("div",yc,[c(Ot,{"file-name":de.filename,type:de.type},null,8,["file-name","type"])])):A("v-if",!0),de.type===3?(g(),D("div",_c,[c(Ot,{"file-name":de.filename,type:de.type},null,8,["file-name","type"])])):A("v-if",!0),de.type===0?(g(),D("div",bc,[c(Ot,{"file-name":de.filename},null,8,["file-name"])])):A("v-if",!0)]),w("div",Ec,G(de.name),1),w("div",kc,[c(Et,null,{default:m(()=>[c(xo)]),_:1})])],42,hc))),128))],4),w("div",Fc,[c(Bo,{"current-page":I.value,layout:"total, prev, pager, next, jumper,sizes",total:j.value,"page-size":J.value,onSizeChange:z,onCurrentChange:re},null,8,["current-page","total","page-size"])])])),[[tt,R.value]]):(g(),D("div",wc,[c(fn,{description:"\u6682\u65E0\u6570\u636E"})])),(g(),T(mn,{ref_key:"groupForm",ref:d,key:oe.value,"form-url":k.value,"is-dialog":!0,onSubmit:pe[3]||(pe[3]=de=>S())},null,8,["form-url"]))])])])}}}),Ac=H(Cc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\attachment.vue"]]);const Vu=ae(Ac),$u={...Sn,title:{type:String,default:""},zIndex:{type:Number,default:1299}},xc={class:"text-center m2"},Bc=P({name:"DkAttachmentDialog"});var Sc=P({...Bc,props:$u,emits:["confirm"],setup(t,{expose:e,emit:o}){const n=t,[l,u]=Ve("attachment-dialog"),i=O(),a=O(!1),r=O(n.title||Ds(n.type)),s=O(Dn(n.type)),v=()=>{i.value.chooseFileList.length>0?(o("confirm",i.value.chooseFileList||[]),a.value=!1):Se.warning({message:"\u8BF7\u5148\u9009\u62E9\u6587\u4EF6"})},y=()=>{a.value=!1};return e({dialogVisible:a,attachment:i,cancel:y,open:()=>{a.value=!0}}),(F,C)=>{const f=_("dk-attachment"),V=_("el-button"),B=_("DkDialog");return g(),T(B,{modelValue:a.value,"onUpdate:modelValue":C[2]||(C[2]=k=>a.value=k),class:ne(N(u)()),title:r.value,width:"1040px",fullscreen:!1,"z-index":F.zIndex},{default:m(()=>[c(f,{ref_key:"attachment",ref:i,type:s.value},null,8,["type"]),w("div",xc,[c(V,{type:"primary",size:"default",onClick:C[0]||(C[0]=k=>v())},{default:m(()=>[M("\u786E\u5B9A")]),_:1}),c(V,{size:"default",onClick:C[1]||(C[1]=k=>y())},{default:m(()=>[M("\u5173\u95ED")]),_:1})])]),_:1},8,["modelValue","class","title","z-index"])}}}),Vc=H(Sc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment-dialog\\src\\attachment-dialog.vue"]]);const Iu=ae(Vc),Tu={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:""}},$c={class:"show m-t-5px"},Ic={class:"image-error"},Tc={class:"image-slot"},Rc={class:"no-image"},Oc=P({name:"DkFileInput"});var zc=P({...Oc,props:Tu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("file-input"),u=O(o.modelValue),i=O();Y(()=>o.modelValue,y=>{u.value=y}),Y(()=>u.value,y=>{a(y)});const a=y=>{e("update:modelValue",y),e("input",y),e("change",y)},r=()=>{u.value=""},s=()=>{i.value.open()},v=y=>{u.value=y[0].url};return(y,E)=>{const F=_("el-button"),C=_("el-input"),f=_("dk-icon"),V=_("el-image"),B=_("Picture"),k=_("el-icon"),d=_("Close"),h=_("Plus"),p=_("dk-attachment-dialog");return g(),D("div",{class:ne(N(l)())},[A("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),y.showInput?(g(),D(L,{key:0},[c(C,{modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=b=>u.value=b),placeholder:y.placeholder,clearable:""},{append:m(()=>[c(F,{onClick:s},{default:m(()=>[M("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),A("\u9009\u62E9\u7684\u662F\u56FE\u7247"),w("div",$c,[y.type===1?(g(),T(V,{key:0,src:u.value,alt:"",fit:"contain",class:"file rd-4px","preview-src-list":[u.value]},{error:m(()=>[w("div",Ic,[c(f,{icon:"Picture"})])]),_:1},8,["src","preview-src-list"])):(g(),T(Ot,{key:1,"file-url":u.value,class:"file rd-4px",type:y.type},null,8,["file-url","type"])),w("em",{onClick:E[1]||(E[1]=b=>u.value="")},[c(f,{icon:"Close"})])])],64)):(g(),D(L,{key:1},[A("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),w("div",{class:"only-img flex justify-center items-center",style:q([{position:"relative"},{width:y.imgSize+"px",height:y.imgSize+"px"}]),onClick:s},[u.value?(g(),D(L,{key:0},[A("\u56FE\u7247\u9644\u4EF6"),y.type===1?(g(),T(V,{key:0,src:u.value,alt:"",fit:"contain",style:{width:"100%",height:"100%"}},{error:m(()=>[w("div",Tc,[w("div",Rc,[c(k,null,{default:m(()=>[c(B)]),_:1})])])]),_:1},8,["src"])):A("v-if",!0),A("\u5176\u4ED6\u9644\u4EF6"),y.type!==1&&u.value?(g(),T(Ot,{key:1,"file-url":u.value,class:"file rd-4px",type:y.type},null,8,["file-url","type"])):A("v-if",!0),w("div",{class:"close",onClick:E[2]||(E[2]=ct(b=>r(),["stop"]))},[c(k,null,{default:m(()=>[c(d)]),_:1})])],64)):(g(),D(L,{key:1},[A("\u6CA1\u6709\u4E0A\u4F20\u7684\u65F6\u5019"),w("div",{class:"media",style:q({lineHeight:y.imgSize+"px",fontSize:y.imgSize/2+"px"})},[c(k,null,{default:m(()=>[c(h)]),_:1})],4)],64))],4)],64)),c(p,{ref_key:"attachmentDialog",ref:i,type:y.type,onConfirm:v},null,8,["type"])],2)}}}),jc=H(zc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-input\\src\\file-input.vue"]]);const Ru=ae(jc),Ou={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Pc=P({name:"DkImageInput"});var Nc=P({...Pc,props:Ou,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("image-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),type:1,class:N(l)()}),null,16,["modelValue","class"])}}}),Uc=H(Nc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-input\\src\\image-input.vue"]]);const zu=ae(Uc),ju={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Mc=P({name:"DkAudioInput"});var Lc=P({...Mc,props:ju,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("audio-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),type:2,class:N(l)()}),null,16,["modelValue","class"])}}}),Hc=H(Lc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-input\\src\\audio-input.vue"]]);const Pu=ae(Hc),Nu={modelValue:{type:String,default:""},placeholder:{type:String,default:""},showInput:{type:Boolean,default:!0},imgSize:{type:Number,default:100},accept:{type:String,default:""}},Wc=P({name:"DkVideoInput"});var qc=P({...Wc,props:Nu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("video-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),type:3,class:N(l)()}),null,16,["modelValue","class"])}}}),Gc=H(qc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-input\\src\\video-input.vue"]]);const Uu=ae(Gc),Mu={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}},Yc={class:"dk-image-list"},Xc=["onClick"],Jc={key:0},Kc=P({name:"DkFileListInput"});var Qc=P({...Kc,props:Mu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("file-list-input"),u=O(o.modelValue),i=Q(()=>({width:o.imgSize+"px",height:o.imgSize+"px",lineHeight:o.imgSize+"px"})),a=O(),r=()=>{a.value.open()},s=E=>{E.forEach(F=>{u.value.length<o.limit&&(u.value.push(F.url),y(u.value))})},v=E=>{u.value.splice(E,1)};Y(()=>o.modelValue,E=>{u.value=E}),Y(()=>u.value,E=>{y(E)});const y=E=>{e("update:modelValue",E),e("input",E),e("change",E)};return(E,F)=>{const C=_("el-image"),f=_("Close"),V=_("el-icon"),B=_("Plus"),k=_("dk-attachment-dialog");return g(),D("div",{class:ne(N(l)())},[w("div",Yc,[w("ul",null,[(g(!0),D(L,null,X(u.value,(d,h)=>(g(),D("li",{key:h},[w("div",{class:"file",style:q(i.value)},[E.type===1?(g(),T(C,{key:0,src:d,fit:"contain",style:q(i.value)},null,8,["src","style"])):(g(),T(Ot,{key:1,"file-url":d,class:"file rd-4px",type:E.type},null,8,["file-url","type"])),E.disabled?A("v-if",!0):(g(),D("div",{key:2,class:"close",onClick:p=>v(h)},[c(V,null,{default:m(()=>[c(f)]),_:1})],8,Xc))],4)]))),128)),E.limit>u.value.length&&!E.disabled?(g(),D("li",Jc,[w("div",{class:"chooseImage",style:q(i.value),onClick:F[0]||(F[0]=d=>r())},[c(V,null,{default:m(()=>[c(B)]),_:1})],4)])):A("v-if",!0)])]),c(k,{ref_key:"attachment",ref:a,type:E.type,onConfirm:s},null,8,["type"])],2)}}}),Zc=H(Qc,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\file-list-input\\src\\file-list-input.vue"]]);const Lu=ae(Zc),Hu={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},ep=P({name:"DkImageListInput"});var tp=P({...ep,props:Hu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("image-list-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-list-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),class:N(l)(),type:1,onChange:r[1]||(r[1]=v=>i(u.value))}),null,16,["modelValue","class"])}}}),op=H(tp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\image-list-input\\src\\image-list-input.vue"]]);const Wu=ae(op),qu={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},np=P({name:"DkAudioListInput"});var lp=P({...np,props:qu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("audio-list-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-list-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),class:N(l)(),type:2,onChange:r[1]||(r[1]=v=>i(u.value))}),null,16,["modelValue","class"])}}}),up=H(lp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-list-input\\src\\audio-list-input.vue"]]);const Gu=ae(up),Yu={modelValue:{default:()=>[],type:Array},disabled:{default:!1,type:Boolean},limit:{default:3,type:Number},imgSize:{default:100,type:Number},accept:{default:"",type:String}},ap=P({name:"DkVideoListInput"});var ip=P({...ap,props:Yu,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("video-list-input"),u=O(o.modelValue);Y(()=>o.modelValue,a=>{u.value=a}),Y(()=>u.value,a=>{i(a)});const i=a=>{e("update:modelValue",a),e("input",a),e("change",a)};return(a,r)=>{const s=_("dk-file-list-input");return g(),T(s,ve(a.$props,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),class:N(l)(),type:3,onChange:r[1]||(r[1]=v=>i(u.value))}),null,16,["modelValue","class"])}}}),rp=H(ip,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-list-input\\src\\video-list-input.vue"]]);const Xu=ae(rp),Ju={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}},Ku={icon:{default:"",type:String},type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}},Qu={type:{default:"element",type:String},showTab:{default:()=>({el:!0,vant:!0,cloud:!0}),type:Object}};function sp(t){return me({method:"post",url:"/adminapi/common/getIcons/",data:{query:t}})}const dp={class:"dk-icon-content"},cp={key:0,class:"text-center",style:{"font-size":"12px",color:"#999"}},pp={class:"search-icon"},fp=P({name:"DkIconContent"});var mp=P({...fp,props:Ku,emits:["choose"],setup(t,{expose:e,emit:o}){const n=t;us("all");function l(d){let h=[];for(const p in d)d.hasOwnProperty(p)&&Array.isArray(d[p])&&(h=h.concat(d[p]));return h}const u=Object.keys(nu).map(d=>d),i=l(Vo),a=O(u),r=O(i),s=as(),v=O(s),E=O((()=>{const{el:d,vant:h,cloud:p}=n.showTab;return d?"element":h?"vant":p?"cloud":n.type})()),F=O(""),C=Q(()=>E.value==="element"?"\u641C\u7D22element-plus\u56FE\u6807":E.value==="vant"?"\u641C\u7D22vant\u56FE\u6807":"\u641C\u7D22\u4E91\u7AEF\u56FE\u6807"),f=O(""),V=d=>{f.value=d,o("choose",d)},B=()=>{if(E.value==="element"){const d=F.value.toLowerCase();console.log(d),a.value=u.filter(h=>!!(d&&h.toLowerCase().includes(d)))}else E.value==="vant"?(console.log("use"),r.value=i.filter(d=>!!(F.value&&d.toLowerCase().includes(F.value)))):sp(F.value).then(d=>{v.value=d.data}).catch(d=>{console.log(d)})},k=()=>{F.value="",a.value=u,v.value=s,r.value=i};return e({chooseIcon:f}),(d,h)=>{const p=_("dk-icon"),b=_("el-tab-pane"),S=_("el-empty"),x=_("el-tabs"),$=_("el-button"),R=_("el-input");return g(),D("div",dp,[c(x,{modelValue:E.value,"onUpdate:modelValue":h[0]||(h[0]=U=>E.value=U)},{default:m(()=>[n.showTab.el?(g(),T(b,{key:0,label:"element\u56FE\u6807",name:"element",class:"dk-tab-pane"},{default:m(()=>[(g(!0),D(L,null,X(a.value,(U,I)=>(g(),T(p,{key:I,size:36,color:U==f.value?"var(--el-color-primary)":"",class:ne([U==f.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",onClick:j=>V(U)},{default:m(()=>[(g(),T(dt(U)))]),_:2},1032,["color","class","onClick"]))),128))]),_:1})):A("v-if",!0),n.showTab.vant?(g(),T(b,{key:1,label:"vant\u56FE\u6807",name:"vant",class:"dk-tab-pane"},{default:m(()=>[(g(!0),D(L,null,X(r.value,(U,I)=>(g(),T(p,{key:I,size:36,color:U==f.value?"#409eff":"",class:ne([U==f.value?"choose-icon":"dk-icon","cursor-pointer"]),"hover-color":"var(--el-color-primary)",icon:U,onClick:j=>V(U)},null,8,["color","class","icon","onClick"]))),128))]),_:1})):A("v-if",!0),n.showTab.cloud?(g(),T(b,{key:2,label:"\u4E91\u7AEF\u56FE\u6807",name:"cloud",class:"dk-tab-pane"},{default:m(()=>[v.value.length>0?(g(),D(L,{key:0},[(g(!0),D(L,null,X(v.value,(U,I)=>(g(),T(p,{key:I,icon:U,size:36,"hover-color":"var(--el-color-primary)",color:U==f.value?"#409eff":"",class:ne([U==f.value?"choose-icon":"dk-icon","cursor-pointer"]),onClick:j=>V(U)},null,8,["icon","color","class","onClick"]))),128)),F.value?A("v-if",!0):(g(),D("p",cp,"\u5F53\u524D\u663E\u793A\u5DF2\u7F13\u5B58\u7684\u56FE\u6807"))],64)):(g(),T(S,{key:1,description:"\u6682\u65E0\u56FE\u6807\uFF0C\u8BF7\u641C\u7D22"}))]),_:1})):A("v-if",!0)]),_:1},8,["modelValue"]),w("div",pp,[c(R,{modelValue:F.value,"onUpdate:modelValue":h[2]||(h[2]=U=>F.value=U),clearable:"",placeholder:C.value,onClear:k},{append:m(()=>[c($,{icon:N(lu),onClick:h[1]||(h[1]=U=>B())},null,8,["icon"])]),_:1},8,["modelValue","placeholder"])])])}}}),Zu=H(mp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-content.vue"]]);const hp={class:"text-center m2"},gp=P({name:"DkIconDialog"});var vp=P({...gp,props:Qu,emits:["choose","confirm"],setup(t,{expose:e,emit:o}){const n=t,l=O(!1),u=O(),i=O("");e({dialogVisible:l,open:()=>{l.value=!0},iconContent:u});const r=y=>{i.value=y,o("choose",y)},s=()=>{l.value=!1,o("confirm",i.value)},v=()=>{l.value=!1};return(y,E)=>{const F=_("el-button"),C=_("dk-dialog");return g(),T(C,{modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=f=>l.value=f),title:"\u9009\u62E9\u56FE\u6807",width:"800px",class:"dk-icon-dialog"},{footer:m(()=>[w("div",hp,[c(F,{type:"primary",onClick:s},{default:m(()=>[M("\u786E\u5B9A")]),_:1}),c(F,{onClick:v},{default:m(()=>[M("\u5173\u95ED")]),_:1})])]),default:m(()=>[c(Zu,ve({ref_key:"iconContent",ref:u},n,{onChoose:r}),null,16)]),_:1},8,["modelValue"])}}}),ea=H(vp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-dialog.vue"]]);const yp={key:0,class:"show m-t-5px"},_p=P({name:"DkIconInput"});var bp=P({..._p,props:Ju,emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,[n,l]=Ve("icon-input"),u=O(o.modelValue),i=O();Y(()=>o.modelValue,y=>{u.value=y}),Y(()=>u.value,y=>{r(y)});const a=Q(()=>{const{modelValue:y,...E}=o;return E}),r=y=>{e("update:modelValue",y),e("input",y),e("change",y)},s=()=>{i.value.open()},v=y=>{console.log(y),u.value=y};return(y,E)=>{const F=_("el-button"),C=_("el-input"),f=_("dk-icon"),V=_("Close"),B=_("el-icon");return g(),D("div",{class:ne(N(l)())},[A("\u2193\u2193\u2193\u2193\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),c(C,{modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=k=>u.value=k),placeholder:o.placeholder,clearable:""},{append:m(()=>[c(F,{onClick:s},{default:m(()=>[M("\u9009\u62E9")]),_:1})]),_:1},8,["modelValue","placeholder"]),A("\u9009\u62E9\u7684\u662F\u56FE\u7247"),o.preview?(g(),D("div",yp,[c(f,{icon:u.value?u.value:"fluent:document-none-24-regular",class:"icon rd-4px cursor-pointer",size:50,color:u.value?"":"#ccc",onClick:s},null,8,["icon","color"]),w("em",{onClick:E[1]||(E[1]=k=>u.value="")},[c(B,null,{default:m(()=>[c(V)]),_:1})])])):A("v-if",!0),A("\u2193\u2193\u2193\u2193\u4E0D\u663E\u793Ainput\u6846\u2193\u2193\u2193\u2193"),c(ea,ve({ref_key:"iconDialog",ref:i},a.value,{onConfirm:v}),null,16)],2)}}}),Ep=H(bp,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\icon-input\\src\\icon-input.vue"]]);const ta=ae(Ep),oa=ae(Zu),na=ae(ea),kp=[{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"]}],la={components:{default:()=>kp,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}},Fp={class:"dk-style-input"},wp={key:0,class:"p-5px"},Dp={key:1},Cp=P({name:"DkStyleInput"});var Ap=P({...Cp,props:la,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=O(!1),l=O([0]),u=O({}),i=O(!0),a=()=>{const v={};Object.keys(u.value).forEach(y=>{Object.keys(u.value[y]).forEach(E=>{v[E]=u.value[y][E]})}),e("update:modelValue",v)},r=O([]),s=()=>{r.value=o.components.filter(y=>!o.hideComponents.includes(y.name));const v={};r.value.forEach(y=>{const E=y.params,F={};Object.keys(E).forEach(C=>{const f=E[C];o.modelValue[f]&&(F[f]=o.modelValue[f])}),v[y.name]=F}),u.value=v,i.value=!1};return Y(()=>o.modelValue,()=>{s()},{deep:!0}),De(()=>{s()}),(v,y)=>{const E=_("el-collapse-item"),F=_("el-collapse"),C=_("el-button"),f=_("el-drawer");return g(),D("div",Fp,[i.value?A("v-if",!0):(g(),D("div",wp,[o.isDrawer?(g(),D("div",Dp,[c(C,{type:"primary",plain:"",style:{width:"100%"},size:"small",onClick:y[1]||(y[1]=V=>n.value=!0)},{default:m(()=>[M(G(o.drawerText),1)]),_:1}),c(f,ve({modelValue:n.value,"onUpdate:modelValue":y[3]||(y[3]=V=>n.value=V)},o.drawerProps),{default:m(()=>[c(F,{modelValue:l.value,"onUpdate:modelValue":y[2]||(y[2]=V=>l.value=V)},{default:m(()=>[(g(!0),D(L,null,X(r.value,(V,B)=>(g(),T(E,{key:B,title:"",name:B},{title:m(()=>[M(G(V.title),1)]),default:m(()=>[l.value.includes(B)?(g(),T(dt(V.name),ve({key:0,modelValue:u.value[V.name],"onUpdate:modelValue":k=>u.value[V.name]=k},V.props,{onChange:a}),null,16,["modelValue","onUpdate:modelValue"])):A("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])]),_:1},16,["modelValue"])])):(g(),T(F,{key:0,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=V=>l.value=V)},{default:m(()=>[(g(!0),D(L,null,X(r.value,(V,B)=>(g(),T(E,{key:B,title:"",name:B},{title:m(()=>[M(G(V.title),1)]),default:m(()=>[l.value.includes(B)?(g(),T(dt(V.name),ve({key:0,modelValue:u.value[V.name],"onUpdate:modelValue":k=>u.value[V.name]=k},V.props,{onChange:a}),null,16,["modelValue","onUpdate:modelValue"])):A("v-if",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]))]))])}}}),xp=H(Ap,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-input\\src\\style-input.vue"]]);const ua=ae(xp),aa={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}},Bp=["onMousedown"],Sp={style:{display:"flex"}},Vp=P({name:"DkBoxSizeInput"});var $p=P({...Vp,props:aa,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=O(),{width:l}=wt(n),u=ie({all:"",first:"",second:"",third:"",fourth:""}),i=ie({all:"px",first:"rem",second:"px",third:"px",fourth:"px"}),a=["px","%","rem","rm","vh","auto"],r=O(""),s=O(o.defaultIsMerge),v=O(!1),y=O(0),E=O(!1),F=O(null),C=O(null),f=Q(()=>a.map(b=>({label:b,value:b}))),V=Q(()=>{let b;return o.type==="radius"?b=[{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"}]:b=[{position:"first",name:"\u4E0A",icon:"ArrowUp"},{position:"second",name:"\u53F3",icon:"ArrowRight"},{position:"third",name:"\u4E0B",icon:"ArrowDown"},{position:"fourth",name:"\u5DE6",icon:"ArrowLeft"}],b}),B=(b,S)=>{v.value=!0,y.value=S.clientX,r.value=b,F.value=k.bind(S),C.value=d.bind(S),document.addEventListener("mousemove",F.value),document.addEventListener("mouseup",C.value),document.body.style.cursor="ew-resize"},k=b=>{v.value&&(u[r.value]=b.clientX-y.value)},d=()=>{document.removeEventListener("mousemove",F.value),document.removeEventListener("mouseup",C.value),document.body.style.cursor="default",v.value=!1,r.value=""},h=()=>{const b=j=>{let J="px";return a.forEach(K=>{j.includes(K)&&(J=K)}),J},S=o.modelValue.split(" ")||["0px"];let[x,$=x,R=x,U=$]=S;S.length===4?s.value=!1:S.length===3?(s.value=!1,U=""):S.length===2?(s.value=!1,R=x,U=$):(s.value=!0,$=R=U=x);const I={first:x,second:$,third:R,fourth:U};for(const j in I)u[j]=parseInt(I[j])||0,i[j]=b(I[j]);s.value&&(u.all=u.first,i.all=i.first)};Y(()=>o.modelValue,()=>{h()});const p=()=>{if(s.value)i.all==="auto"?e("update:modelValue","auto"):e("update:modelValue",`${u.all}${i.all}`);else{let b="";for(const S in i)S!=="all"&&(i[S]==="auto"?b+="auto ":b+=`${u[S]}${i[S]} `);e("update:modelValue",b.trim())}};return Y(u,()=>{p()}),Y(s,()=>{p()}),Y(i,()=>{p()}),De(()=>{h()}),(b,S)=>{const x=_("dk-icon"),$=_("el-tooltip"),R=_("el-input"),U=_("el-select-v2"),I=_("el-button");return g(),D("div",{ref_key:"el",ref:n,class:"dk-box-size-input"},[fe(w("div",{class:ne((N(l)>500,""))},[(g(!0),D(L,null,X(V.value,(j,J)=>(g(),D("div",{key:J,style:{display:"flex"}},[c(R,{modelValue:u[j.position],"onUpdate:modelValue":K=>u[j.position]=K,type:"number",controls:!1,disabled:i[j.position]=="auto"},Ft({_:2},[N(l)>600||N(l)<500?{name:"prefix",fn:m(()=>[w("span",{class:"w-resize",onMousemove:k,onMousedown:K=>B(j.position,K),onMouseup:d},[c($,{"hide-after":0,class:"item",effect:"dark",content:j.name,placement:"top-start",disabled:E.value},{default:m(()=>[c(x,{icon:j.icon},null,8,["icon"])]),_:2},1032,["content","disabled"])],40,Bp)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","disabled"]),c(U,{modelValue:i[j.position],"onUpdate:modelValue":K=>i[j.position]=K,options:f.value},null,8,["modelValue","onUpdate:modelValue","options"])]))),128))],2),[[Zt,!s.value]]),fe(w("div",Sp,[c(R,{modelValue:u.all,"onUpdate:modelValue":S[1]||(S[1]=j=>u.all=j),type:"number",controls:!1,disabled:i.all==="auto",clearable:o.clearable},{prefix:m(()=>[w("span",{class:"w-resize",onMousemove:k,onMousedown:S[0]||(S[0]=j=>B("all",j)),onMouseup:d},[c(x,{icon:"Rank"})],32)]),_:1},8,["modelValue","disabled","clearable"]),c(U,{modelValue:i.all,"onUpdate:modelValue":S[2]||(S[2]=j=>i.all=j),options:f.value},null,8,["modelValue","options"])],512),[[Zt,s.value]]),o.showMerge?(g(),D("div",{key:0,class:"dk-full",onClick:S[3]||(S[3]=j=>s.value=!s.value)},[c($,{class:"item",effect:"dark",content:s.value?"\u72EC\u7ACB\u914D\u7F6E":"\u6279\u91CF\u914D\u7F6E",placement:"top","hide-after":0},{default:m(()=>[s.value?(g(),T(I,{key:0},{default:m(()=>[c(x,{icon:"streamline:interface-layout-border-horizontal-border-cell-center-format-formatting"})]),_:1})):(g(),T(I,{key:1},{default:m(()=>[c(x,{icon:"streamline:interface-layout-border-full-grid-layout-layouts-module"})]),_:1}))]),_:1},8,["content"])])):A("v-if",!0)],512)}}}),Ip=H($p,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\box-size-input\\src\\box-size-input.vue"]]);const ia=ae(Ip),ra={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)"}},Tp=[{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>'}}],Rp=[{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>'}}],Op={class:"dk-style-box-input"},zp={class:"header"},jp={class:"items-center"},Pp=["title","onDblclick"],Np=["onUpdate:modelValue","onBlur"],Up=["width","height","viewBox","data-link-anchor","innerHTML"],Mp=w("div",{style:{position:"absolute",display:"none",width:"100%",height:"100%"}},null,-1),Lp={class:"anchor-wrapper"},Hp=["onMousedown"],Wp=w("span",{class:"title"}," \u5916\u8FB9\u8DDD ",-1),qp={class:"tools"},Gp={class:"thumnail border"},Yp=["title","onDblclick"],Xp=["onUpdate:modelValue","onBlur"],Jp=["width","height","viewBox","data-link-anchor","innerHTML"],Kp={class:"anchor-wrapper"},Qp=["onMousedown"],Zp=w("span",{class:"title"}," \u5185\u8FB9\u8DDD ",-1),ef={class:"tools"},tf={class:"title"},of=w("span",null," x ",-1),nf=P({name:"DkStyleBoxInput"});var lf=P({...nf,props:ra,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=ie({margin:!1,padding:!1,widthHeight:!1}),l=O(),u=O(),i=O(),a=ie({marginLeft:o.modelValue.marginLeft||"",marginRight:o.modelValue.marginRight||"",marginTop:o.modelValue.marginTop||"",marginBottom:o.modelValue.marginBottom||"",paddingLeft:o.modelValue.paddingLeft||"",paddingRight:o.modelValue.paddingRight||"",paddingTop:o.modelValue.paddingTop||"",paddingBottom:o.modelValue.paddingBottom||"",width:o.modelValue.width||"",height:o.modelValue.height||""}),r=O(null),{width:s}=wt(r),v=ie({padding:!1,margin:!1,size:!1}),y=Q(()=>{if(o.height==="auto"){const I=s.value/1.8;return I>200?200:I}else return o.height});Y(()=>o.modelValue,(I,j)=>{["marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","width","height"].forEach(K=>{I[K]!==j[K]&&(a[K]=I[K]||"")})},{deep:!0}),Y(a,()=>{const I=Object.keys(a).reduce((j,J)=>(a[J]!==""&&(j[J]=a[J]),j),{});e("update:modelValue",I),e("change",I)});const E=ie({marginLeft:!1,marginRight:!1,marginTop:!1,marginBottom:!1,paddingLeft:!1,paddingRight:!1,paddingTop:!1,paddingBottom:!1,width:!1,height:!1}),F=O(!1),C=ie({x:0,y:0}),f=O(null),V=O(null),B=ie({type:"",position:""}),k=ie({display:"none",width:"0px",height:"0px",left:"0px",top:"0px"}),d=I=>{if(!F.value)return;const j=B.position,J=B.type,K=J+Io(j),oe=(z,re)=>{const Z=z==="x"?"clientX":"clientY";k[re]=I[Z]+"px";let Be=I[Z]-C[z];(j==="top"||j==="left")&&(Be=-Be),a[K]=(parseInt(a[K])||0)+Be+"px",v[J]&&(a[J+"Top"]=a[K],a[J+"Bottom"]=a[K],a[J+"Left"]=a[K],a[J+"Right"]=a[K]),C[z]=I[Z]};j==="left"||j==="right"?oe("x","left"):(j==="top"||j==="bottom")&&oe("y","top")},h=(I,j,J)=>{Object.assign(B,{position:j,type:I}),f.value=d.bind(J),document.addEventListener("mousemove",f.value),V.value=p.bind(J),document.addEventListener("mouseup",V.value),F.value=!0;const K=document.querySelector(".wrapper"),oe=K?K.offsetWidth:0,z={margin:.9,padding:.9*.7},{clientX:re,clientY:Z}=J,Be=(Ye,le,pe,Ee,Oe)=>{document.body.style.cursor=Ye,Object.assign(k,{left:le,top:pe,width:Ee,height:Oe,display:"block"})};C.x=re,C.y=Z,j==="left"||j==="right"?Be("ew-resize",re+"px",Z-y.value*.5*z[I]+"px","0.1px",y.value*z[I]+"px"):Be("ns-resize",re-oe*.5*z[I]+"px",Z+"px",oe*z[I]+"px","0.1px")},p=()=>{document.removeEventListener("mousemove",f.value),document.removeEventListener("mouseup",V.value),F.value=!1,k.display="none",document.body.style.cursor="default",C.x=null,C.y=null},b=(I,j="move",J)=>{F.value||J.stopPropagation(),j!=="move"?n[I]=!1:(Object.keys(n).forEach(K=>{K!==I&&(n[K]=!1)}),n[I]=!0)},S=(I,j)=>{E[I]=!0,ze(()=>{I==="width"?u.value.focus():I==="height"?i.value.focus():l.value[j].focus()})},x=I=>I==="auto"?I:I==="0"||I===0?0:I===""?"-":I,$=I=>{if(E[I]=!1,a[I]===""||a[I]==="auto")return;if(!/^(\d*\.?\d+)(px|rem|%|vh)$/.test(a[I])){const J=parseInt(a[I]);isNaN(J)?a[I]="":(a[I]=J+"px",I.indexOf("padding")==0&&v.padding&&(a.paddingTop=a[I],a.paddingRight=a[I],a.paddingBottom=a[I],a.paddingLeft=a[I]),I.indexOf("margin")==0&&v.padding&&(a.marginTop=a[I],a.marginRight=a[I],a.marginBottom=a[I],a.marginLeft=a[I]))}},R=I=>{I==="widthHeight"?(a.width="",a.height=""):I==="margin"?(a.marginLeft="",a.marginRight="",a.marginTop="",a.marginBottom=""):I==="padding"&&(a.paddingLeft="",a.paddingRight="",a.paddingTop="",a.paddingBottom="")},U=I=>{v[I]=!v[I]};return(I,j)=>{const J=_("dk-icon"),K=_("el-popover"),oe=_("el-tooltip");return g(),D("div",Op,[w("div",{class:"position-line",style:q(k)},null,4),w("div",zp,[w("label",jp,[M(" \u5185\u5916\u8FB9\u8DDD | \u9AD8\u5BBD "),c(K,{ref:"popover",placement:"bottom",title:"\u8BF4\u660E",width:280,trigger:"hover",content:o.help},{reference:m(()=>[c(J,{icon:"QuestionFilled",class:"m-l-5px vertical-text-top"})]),_:1},8,["content"])]),A(' <div class="float-right cursor-pointer">'),A(' <div class="name-header-operations">'),A(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u9AD8\u5BBD" placement="top-start">'),A(` <dk-icon icon="Refresh" color="#303133" @click="onRefresh('widthHeight')"></dk-icon>`),A(" </el-tooltip>"),A(" </div>"),A(' <div class="name-header-operations">'),A(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5185\u8FB9\u8DDD" placement="top-start">'),A(` <dk-icon icon="Refresh" color="var(--el-color-success)" @click="onRefresh('padding')"></dk-icon>`),A(" </el-tooltip>"),A(" </div>"),A(' <div class="name-header-operations">'),A(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5916\u8FB9\u8DDD" placement="top-start">'),A(` <dk-icon icon="Refresh" color="var(--el-color-warning)" @click="onRefresh('margin')"></dk-icon>`),A(" </el-tooltip>"),A(" </div>"),A(" </div>"),w("div",{ref_key:"box",ref:r,tabindex:"0",class:"wrapper",style:q([{"margin-top":"10px"},{height:y.value+"px"}])},[w("div",{class:ne(["thumnail margin",n.margin?"thumnail-heightlight":""]),onMousemove:j[14]||(j[14]=z=>b("margin","move",z)),onMouseleave:j[15]||(j[15]=z=>b("margin","leave",z))},[A("\u5916\u8FB9\u8DDD Margin"),w("div",null,[(g(!0),D(L,null,X(N(Tp),(z,re)=>(g(),D("div",{key:re},[w("span",{title:z.title,class:ne(`anchor-tip-${z.position} value-indicator`),onDblclick:Z=>S(z.value,re)},[w("span",null,G(x(a[z.value])),1)],42,Pp),fe(w("input",{ref_for:!0,ref_key:"inputField",ref:l,"onUpdate:modelValue":Z=>a[z.value]=Z,class:ne("input-box anchor-tip-"+z.position+(E[z.value]?" show":"")),onBlur:Z=>$(z.value)},null,42,Np),[[So,a[z.value]]]),(g(),D("svg",{width:z.svg.width,height:z.svg.height,viewBox:z.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":z.value,style:q(z.svg.style),class:"esm-modal-svg",innerHTML:z.svg.content},null,12,Up))]))),128))]),Mp,w("div",Lp,[(g(),D(L,null,X(["left","right","top","bottom"],(z,re)=>w("div",{key:re,class:ne(["anchor","anchor-"+z]),onMousemove:d,onMousedown:Z=>h("margin",z,Z),onMouseup:p},null,42,Hp)),64))]),Wp,w("div",qp,[c(oe,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:m(()=>[c(J,{style:{"margin-right":"5px"},icon:"Connection",color:v.margin?"#f00":"#303133",onClick:j[0]||(j[0]=z=>U("margin"))},null,8,["color"])]),_:1}),c(oe,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5916\u8FB9\u8DDD",placement:"top-start"},{default:m(()=>[c(J,{icon:"Refresh",color:"#303133",onClick:j[1]||(j[1]=z=>R("margin"))})]),_:1})]),A("\u5916\u8FB9\u8DDD Margin END"),A("\u5185\u8FB9\u8DDD Padding"),w("div",Gp,[w("div",{class:ne(["thumnail padding",n.padding?"thumnail-heightlight":""]),onMousemove:j[12]||(j[12]=z=>b("padding","move",z)),onMouseleave:j[13]||(j[13]=z=>b("padding","leave",z))},[w("div",null,[(g(!0),D(L,null,X(N(Rp),(z,re)=>(g(),D("div",{key:re},[w("span",{title:z.title,class:ne(`anchor-tip-${z.position} value-indicator`),onDblclick:Z=>S(z.value,re+4)},[w("span",null,G(x(a[z.value])),1)],42,Yp),fe(w("input",{ref_for:!0,ref_key:"inputField",ref:l,"onUpdate:modelValue":Z=>a[z.value]=Z,class:ne("input-box anchor-tip-"+z.position+(E[z.value]?" show":"")),onBlur:Z=>$(z.value)},null,42,Xp),[[So,a[z.value]]]),(g(),D("svg",{width:z.svg.width,height:z.svg.height,viewBox:z.svg.viewBox,preserveAspectRatio:"none","data-link-anchor":z.value,style:q(z.svg.style),class:"esm-modal-svg",innerHTML:z.svg.content},null,12,Jp))]))),128))]),w("div",Kp,[(g(),D(L,null,X(["left","right","top","bottom"],(z,re)=>w("div",{key:re,class:ne(["anchor","anchor-"+z]),onMousemove:d,onMousedown:Z=>h("padding",z,Z),onMouseup:p},null,42,Qp)),64))]),Zp,w("div",ef,[c(oe,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u8054\u52A8",placement:"top-start"},{default:m(()=>[c(J,{style:{"margin-right":"5px"},icon:"Connection",color:v.padding?"#f00":"#303133",onClick:j[2]||(j[2]=z=>U("padding"))},null,8,["color"])]),_:1}),c(oe,{"show-after":1e3,class:"box-item",effect:"dark",content:"\u91CD\u7F6E\u5185\u8FB9\u8DDD",placement:"top-start"},{default:m(()=>[c(J,{icon:"Refresh",color:"#303133",onClick:j[3]||(j[3]=z=>R("padding"))})]),_:1})]),A("\u5185\u8FB9\u8DDD END"),w("div",{class:ne(["thumnail width-height",n.widthHeight?"thumnail-heightlight":""]),onMousemove:j[10]||(j[10]=z=>b("widthHeight","move",z)),onMouseleave:j[11]||(j[11]=z=>b("widthHeight","leave",z))},[w("span",tf,[w("span",{class:"content-unit left-0",onDblclick:j[4]||(j[4]=z=>S("width",9))},[w("em",null,G(x(a.width)),1)],32),fe(w("input",{ref_key:"inputWidth",ref:u,"onUpdate:modelValue":j[5]||(j[5]=z=>a.width=z),class:ne(["input-box absolute left-5% top-10px",E.width?" show":""]),onBlur:j[6]||(j[6]=z=>$("width"))},null,34),[[So,a.width]]),of,w("span",{class:"content-unit right-0",onDblclick:j[7]||(j[7]=z=>S("height",9))},[w("em",null,G(x(a.height)),1)],32),fe(w("input",{ref_key:"inputHeight",ref:i,"onUpdate:modelValue":j[8]||(j[8]=z=>a.height=z),class:ne(["input-box absolute right-5% top-10px",E.height?" show":""]),onBlur:j[9]||(j[9]=z=>$("height"))},null,34),[[So,a.height]])])],34)],34)])],34)],4)])])}}}),uf=H(lf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-box-input\\src\\style-box-input.vue"]]);const sa=ae(uf),da={modelValue:{type:Object,default:()=>({})}},af={class:"dk-style-font-input"},rf={style:{display:"flex","flex-flow":"wrap","align-items":"center"}},sf={class:"m-b-5px"},df={style:{width:"100px"},class:"m-b-5px"},cf={style:{width:"100px"},class:"m-r-5px m-b-5px"},pf={class:"m-r-5px m-b-5px"},ff={class:"m-b-5px"},mf=P({name:"DkStyleFontInput"});var hf=P({...mf,props:da,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=400,l=100,u=ie({color:o.modelValue.color||"",fontSize:o.modelValue.fontSize||"",fontWeight:o.modelValue.fontWeight||"",fontStyle:o.modelValue.fontStyle||"",textDecoration:o.modelValue.textDecoration||""});Y(u,r=>{const s=Object.keys(u).reduce((v,y)=>(u[y]!==""&&(v[y]=u[y]),v),{});e("update:modelValue",s),e("change",s)}),Y(()=>o.modelValue,()=>{["color","fontSize","fontWeight","fontStyle","textDecoration"].forEach(s=>{u[s]=o.modelValue[s]||""})},{deep:!0});const i=[{label:"\u666E\u901A",value:"normal"},{label:"\u52A0\u7C97",value:"bold"},{label:"\u66F4\u7C97",value:"bolder"},{label:"\u66F4\u7EC6",value:"lighter"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}],a=r=>{r==="all"?Object.keys(u).forEach(s=>{u[s]=""}):u[r]=""};return(r,s)=>{const v=_("el-button"),y=_("el-color-picker"),E=_("el-tooltip"),F=_("el-option"),C=_("el-select"),f=_("dk-icon"),V=_("el-button-group");return g(),D("div",af,[A(" \u989C\u8272\u3001\u5B57\u53F7\u3001\u7C97\u7EC6\u3001\u98CE\u683C\u3001\u88C5\u9970"),w("div",rf,[c(E,{placement:"top-end",trigger:"hover","show-after":n,"hide-after":l},{content:m(()=>[M(" \u6587\u5B57\u989C\u8272 "),c(v,{size:"small",icon:"Refresh",color:"var(--el-text-color-primary)",disabled:u.color==="",onClick:s[0]||(s[0]=B=>a("color"))},{default:m(()=>[M("\u91CD\u7F6E")]),_:1},8,["disabled"])]),default:m(()=>[w("div",sf,[c(y,{modelValue:u.color,"onUpdate:modelValue":s[1]||(s[1]=B=>u.color=B)},null,8,["modelValue"])])]),_:1}),w("div",df,[c(C,{modelValue:u.fontSize,"onUpdate:modelValue":s[2]||(s[2]=B=>u.fontSize=B),"remote-show-suffix":!1,placeholder:"\u5B57\u53F7","allow-create":"",clearable:"",filterable:!0},{default:m(()=>[(g(),D(L,null,X(["12px","14px","16px","18px","20px","24px","28px","32px","36px","40px","48px"],B=>c(F,{key:B,label:B,value:B},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),w("div",cf,[c(C,{modelValue:u.fontWeight,"onUpdate:modelValue":s[3]||(s[3]=B=>u.fontWeight=B),"remote-show-suffix":!1,placeholder:"\u7C97\u7EC6","allow-create":"",clearable:"",filterable:!0},{default:m(()=>[(g(),D(L,null,X(i,B=>c(F,{key:B.value,label:B.label,value:B.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),w("div",pf,[c(v,{type:u.fontStyle?"primary":"",onClick:s[4]||(s[4]=B=>u.fontStyle?u.fontStyle="":u.fontStyle="italic")},{default:m(()=>[c(f,{icon:"radix-icons:font-italic",title:"\u6587\u5B57\u503E\u659C"})]),_:1},8,["type"])]),w("div",ff,[c(V,null,{default:m(()=>[c(v,{type:u.textDecoration=="underline"?"primary":"",onClick:s[5]||(s[5]=B=>u.textDecoration=="underline"?u.textDecoration="":u.textDecoration="underline")},{default:m(()=>[c(f,{icon:"radix-icons:underline",title:"\u4E0B\u5212\u7EBF"})]),_:1},8,["type"]),c(v,{type:u.textDecoration=="line-through"?"primary":"",onClick:s[6]||(s[6]=B=>u.textDecoration=="line-through"?u.textDecoration="":u.textDecoration="line-through")},{default:m(()=>[c(f,{icon:"radix-icons:strikethrough",title:"\u5220\u9664\u7EBF"})]),_:1},8,["type"]),c(v,{type:u.textDecoration=="wavy underline"?"primary":"",onClick:s[7]||(s[7]=B=>u.textDecoration=="wavy underline"?u.textDecoration="":u.textDecoration="wavy underline")},{default:m(()=>[c(f,{icon:"mdi:format-underline-wavy",title:"\u6CE2\u6D6A\u7EBF"})]),_:1},8,["type"])]),_:1})]),c(E,{placement:"top",trigger:"hover",content:"\u5168\u90E8\u91CD\u7F6E","show-after":n,"hide-after":l},{default:m(()=>[c(v,{type:"danger",plain:"",icon:"Delete",class:"m-l-5px m-b-5px",onClick:s[8]||(s[8]=B=>a("all"))})]),_:1})])])}}}),gf=H(hf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-font-input\\src\\style-font-input.vue"]]);const ca=ae(gf),pa={modelValue:{type:Object,default:()=>{}}},vf={class:"border-box"},yf={style:{width:"100%"},class:"m-l-20px"},_f={style:{display:"flex",width:"100%"}},bf=P({name:"DkStyleBorderInput"});var Ef=P({...bf,props:pa,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=["top","right","bottom","left","all"],l=["px","%","rem","em","vw","vh"],u=O("all"),i=O(),{width:a}=wt(i),r=()=>({unit:"px"}),s=ie({top:r(),right:r(),bottom:r(),left:r(),all:r(),radius:o.modelValue.borderRadius||"0px"}),v=Q(()=>{const C={};return n.forEach(f=>{f==="all"?(s[f].borderWidth&&(C.borderWidth=s[f].borderWidth+(s[f].unit||"px")),s[f].borderStyle&&(C.borderStyle=s[f].borderStyle),s[f].borderColor&&(C.borderColor=s[f].borderColor)):(s[f].borderWidth&&(C["border"+Io(f)+"Width"]=s[f].borderWidth+(s[f].unit||"px")),s[f].borderStyle&&(C["border"+Io(f)+"Style"]=s[f].borderStyle),s[f].borderColor&&(C["border"+Io(f)+"Color"]=s[f].borderColor))}),s.radius!=="0px"&&(C.borderRadius=s.radius),C});Y(v,()=>{e("update:modelValue",v.value),e("change",v.value)});const y=()=>{["borderWidth","borderStyle","borderColor","borderRightWidth","borderRightStyle","borderRightColor","borderLeftWidth","borderLeftStyle","borderLeftColor","borderTopWidth","borderTopStyle","borderTopColor","borderBottomWidth","borderBottomStyle","borderBottomColor","borderRadius"].forEach(f=>{if(o.modelValue[f])if(f==="borderRadius")s.radius=o.modelValue[f];else{let[V,B,k]=f.split(/(?=[A-Z])/),d=B.toLowerCase();const h=o.modelValue[f];if(n.indexOf(d)===-1&&(d="all",k=B),k==="Width"){const p=parseInt(h)||0,b=h.replace(p+"","")||"px";l.indexOf(b)>-1&&(s[d].unit=b,s[d].borderWidth=p)}else s[d]["border"+k]=h}else if(f==="borderRadius")s.radius="0px";else{let[V,B,k]=f.split(/(?=[A-Z])/),d=B.toLowerCase();n.indexOf(d)===-1&&(d="all",k=B),o.modelValue[f],k==="Width"?(delete s[d].borderWidth,delete s[d].unit):delete s[d]["border"+k]}})},E=()=>{u.value==="all"?n.forEach(C=>{C!=="all"&&(s[C]={unit:"px"})}):n.forEach(C=>{C==="all"&&(s[C]={unit:"px"})})},F=C=>{C==="radius"?s.radius="0px":delete s[u.value][C]};return Y(()=>o.modelValue,()=>{y()},{deep:!0}),De(()=>{y()}),(C,f)=>{const V=_("dk-icon"),B=_("el-tooltip"),k=_("el-slider"),d=_("el-input"),h=_("el-option"),p=_("el-select"),b=_("el-form-item"),S=_("el-radio-button"),x=_("el-radio-group"),$=_("el-color-picker"),R=_("dk-box-size-input"),U=_("el-form");return g(),D("div",{ref_key:"el",ref:i,class:ne(["dk-style-border-input",N(a)<400?"mini":""])},[w("div",vf,[(g(),D(L,null,X(n,I=>c(V,{key:I,icon:"gg:border-"+I,class:ne("border-box-option border-"+I+" "+(u.value==I?"selected":"")),size:24,style:q("grid-area: border-"+I+" / border-"+I+" / border-"+I+" / border-"+I+";"),onClick:j=>u.value=I},null,8,["icon","class","style","onClick"])),64))]),w("div",yf,[A(" \u6837\u5F0F\u3001\u5BBD\u5EA6\u3001\u989C\u8272"),c(U,{"label-width":"50px","label-position":"left",size:"small"},{default:m(()=>[c(b,{value:"\u5C3A\u5BF8"},{label:m(()=>[c(B,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!s[u.value].borderWidth},{default:m(()=>[w("span",{class:ne(["cursor-pointer",s[u.value].borderWidth?"color-blue":""]),onClick:f[0]||(f[0]=I=>F("borderWidth"))},"\u5C3A\u5BF8",2)]),_:1},8,["disabled"])]),default:m(()=>[w("div",_f,[c(k,{modelValue:s[u.value].borderWidth,"onUpdate:modelValue":f[1]||(f[1]=I=>s[u.value].borderWidth=I),class:"dk-border-slider",max:50,onChange:f[2]||(f[2]=I=>E())},null,8,["modelValue"]),c(d,{modelValue:s[u.value].borderWidth,"onUpdate:modelValue":f[3]||(f[3]=I=>s[u.value].borderWidth=I),class:"dk-border-input",type:"number",onChange:f[4]||(f[4]=I=>E())},{default:m(()=>[A(" <template #append>"),A(" <el-select"),A(' v-model="form[position].unit"'),A(' placeholder="px"'),A(' class="dk-border-select"'),A(' style="width: 50px"'),A(' suffix-icon=""'),A(' @change="clearOtherBorder()"'),A(" >"),A(" <el-option"),A(' v-for="item in units"'),A(' :key="item"'),A(' :label="item"'),A(' :value="item"'),A(" />"),A(" </el-select>"),A(" </template>")]),_:1},8,["modelValue"]),c(p,{modelValue:s[u.value].unit,"onUpdate:modelValue":f[5]||(f[5]=I=>s[u.value].unit=I),placeholder:"px",class:"dk-border-select",style:{width:"60px"},onChange:f[6]||(f[6]=I=>E())},{default:m(()=>[(g(),D(L,null,X(l,I=>c(h,{key:I,label:I,value:I},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),c(b,{value:"\u6837\u5F0F"},{label:m(()=>[c(B,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!s[u.value].borderStyle},{default:m(()=>[w("span",{class:ne(["cursor-pointer",s[u.value].borderStyle?"color-blue":""]),onClick:f[7]||(f[7]=I=>F("borderStyle"))},"\u6837\u5F0F",2)]),_:1},8,["disabled"])]),default:m(()=>[c(x,{modelValue:s[u.value].borderStyle,"onUpdate:modelValue":f[8]||(f[8]=I=>s[u.value].borderStyle=I),onChange:f[9]||(f[9]=I=>E())},{default:m(()=>[c(S,{value:"solid",name:"type"},{default:m(()=>[c(V,{icon:"gg:border-style-solid"})]),_:1}),c(S,{value:"dotted",name:"type"},{default:m(()=>[c(V,{icon:"gg:border-style-dotted"})]),_:1}),c(S,{value:"dashed",name:"type"},{default:m(()=>[c(V,{icon:"gg:border-style-dashed"})]),_:1}),c(S,{value:"double",name:"type"},{default:m(()=>[c(V,{icon:"memory:box-light-double-horizontal"})]),_:1})]),_:1},8,["modelValue"])]),_:1}),c(b,{label:"\u989C\u8272"},{label:m(()=>[c(B,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:!s[u.value].borderColor},{default:m(()=>[w("span",{class:ne(["cursor-pointer",s[u.value].borderColor?"color-blue":""]),onClick:f[10]||(f[10]=I=>F("borderColor"))},"\u989C\u8272",2)]),_:1},8,["disabled"])]),default:m(()=>[c($,{modelValue:s[u.value].borderColor,"onUpdate:modelValue":f[11]||(f[11]=I=>s[u.value].borderColor=I)},null,8,["modelValue"])]),_:1}),c(b,{label:"\u5F27\u5EA6"},{label:m(()=>[c(B,{effect:"dark",content:"\u70B9\u51FB\u6E05\u9664",placement:"top-start",disabled:s.radius=="0px"},{default:m(()=>[w("span",{class:ne(["cursor-pointer",s.radius!=="0px"?"color-blue":""]),onClick:f[12]||(f[12]=I=>F("radius"))},"\u5F27\u5EA6",2)]),_:1},8,["disabled"])]),default:m(()=>[c(R,{modelValue:s.radius,"onUpdate:modelValue":f[13]||(f[13]=I=>s.radius=I),type:"radius"},null,8,["modelValue"])]),_:1})]),_:1})])],2)}}}),kf=H(Ef,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-border-input\\src\\style-border-input.vue"]]);const fa=ae(kf),ma={modelValue:{type:Object,default:()=>({backgroundImage:"",backgroundColor:""})}},Ff={class:"dk-style-background-input"},wf=P({name:"DkStyleBackgroundInput"});var Df=P({...wf,props:ma,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=ie({backgroundImage:"",backgroundColor:""});Y(n,()=>{const u={};n.backgroundColor&&(u.backgroundColor=n.backgroundColor),n.backgroundImage&&(u.backgroundImage=`url(${n.backgroundImage})`),e("update:modelValue",u),e("change",u)},{deep:!0});const l=()=>{n.backgroundColor=o.modelValue.backgroundColor||"";const u=o.modelValue.backgroundImage;if(u){const i=/url\((.+)\)/,a=u.match(i);a&&(n.backgroundImage=a[1])}};return Y(()=>o.modelValue,()=>{l()}),De(()=>{l()}),(u,i)=>{const a=_("el-color-picker"),r=_("dk-image-input");return g(),D("div",Ff,[c(a,{modelValue:n.backgroundColor,"onUpdate:modelValue":i[0]||(i[0]=s=>n.backgroundColor=s),"show-alpha":""},null,8,["modelValue"]),c(r,{modelValue:n.backgroundImage,"onUpdate:modelValue":i[1]||(i[1]=s=>n.backgroundImage=s)},null,8,["modelValue"])])}}}),Cf=H(Df,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-background-input\\src\\style-background-input.vue"]]);const ha=ae(Cf),ga={type:{default:"input",type:String},modelValue:{default:()=>{},type:Object}},Af={class:"dk-style-shadow-input"},xf={key:1,class:"shadow-list"},Bf=P({name:"DkStyleShadowInput"});var Sf=P({...Bf,props:ga,emits:["update:modelValue","change"],setup(t,{emit:e}){const o=t,n=O([]),l=O("1"),u=()=>{n.value.push("2px 2px 3px 2px #E7E5E5FF"),l.value=n.value.length-1+""},i=s=>{n.value.splice(s,1)},a=()=>{o.modelValue.boxShadow&&(n.value=o.modelValue.boxShadow.split(","))},r=Q(()=>n.value.join(","));return Y(r,(s,v)=>{e("update:modelValue",{boxShadow:r.value}),e("change",{boxShadow:r.value})}),Y(()=>o.modelValue,()=>{a()},{deep:!0}),De(()=>{a()}),(s,v)=>{const y=_("dk-style-shadow-content"),E=_("el-collapse-item"),F=_("el-collapse"),C=_("el-button"),f=_("el-popover"),V=_("el-input"),B=_("dk-icon");return g(),D("div",Af,[s.type==="collapse"?(g(),T(F,{key:0,modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=k=>l.value=k),accordion:""},{default:m(()=>[(g(!0),D(L,null,X(n.value,(k,d)=>(g(),T(E,{key:d,title:k,name:d+""},{default:m(()=>[c(y,{modelValue:n.value[d],"onUpdate:modelValue":h=>n.value[d]=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])):(g(),D("ul",xf,[(g(!0),D(L,null,X(n.value,(k,d)=>(g(),D("li",{key:d},[c(V,{modelValue:n.value[d],"onUpdate:modelValue":h=>n.value[d]=h,disabled:""},{append:m(()=>[c(f,{placement:"right-start",title:"",width:"380",trigger:"click"},{reference:m(()=>[c(C,null,{default:m(()=>[M("\u8BBE\u7F6E")]),_:1})]),default:m(()=>[c(y,{modelValue:n.value[d],"onUpdate:modelValue":h=>n.value[d]=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue"]),c(B,{class:"close-shadow",icon:"Close","hover-color":"#f00",onClick:h=>i(d)},null,8,["onClick"])]))),128))])),c(C,{class:"m-t-10px w-100%",onClick:u},{default:m(()=>[c(B,{icon:"Plus"})]),_:1})])}}}),Vf=H(Sf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);const $f={class:"flex"},If={class:"flex"},Tf={class:"flex"},Rf={class:"flex"},Of={class:"shadow-content-shortcut"},zf={class:"default-css m-b-10px"},jf=w("div",{class:"m-b-10px"},"\u5E38\u7528\u6837\u5F0F",-1),Pf=w("i",{id:"center"},null,-1),Nf=[Pf],Uf=P({name:"DkStyleShadowContent"});var Mf=P({...Uf,props:{boxSize:{default:180,type:Number},size:{default:"small",type:String},max:{default:24,type:Number},modelValue:{default:"0px 0px 0px rgba(0, 0, 0, 0)",type:String},defaultStyles:{default:()=>[{label:"\u7ECF\u5178",value:"3px 5px 7px 2px #CBCBCBFF"},{label:"\u6241\u5E73",value:"4px 4px 3px -2px #E7E5E5FF"},{label:"\u7ACB\u4F53",value:"1px 2px 4px 2px #979797FF"}],type:Array}},emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=O(null);wt(n);const l=ie({color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"}),u=["px","%","rem","em","vw","vh"],i=O(!1),a=ie({left:0,top:0}),r=O(""),s=O(),v=Q(()=>({left:a.left+"px",top:a.top+"px"})),y=(f,V)=>{if(i.value||V){const B=s.value.getBoundingClientRect();a.left=parseInt(String(f.clientX-B.x)),a.top=parseInt(String(f.clientY-B.y))}};Y(a,()=>{l.x=parseInt(String((a.left-o.boxSize/2)/o.boxSize*o.max)),l.y=parseInt(String((a.top-o.boxSize/2)/o.boxSize*o.max))}),Y(l,()=>{let f=`${l.x}${l.x_unit} ${l.y}${l.y_unit} ${l.vague}${l.vague_unit} ${l.extend}${l.extend_unit} ${l.color}`;l.type==="inset"&&(f=f+" inset"),e("update:modelValue",f)});const E=f=>{y(f,1),i.value=!0},F=f=>{f?.indexOf(" inset")>-1&&(l.type="inset",f=f.replace(" inset",""));const V=f.split("rgba");let B,k;V.length>1?(B="rgba"+V[1].trim(),k=V[0].trim().split(" ")):(k=V[0].trim().split(" "),B=k.pop()),l.color=B||"#000",l.x=parseInt(k[0])||0,l.y=parseInt(k[1])||0,l.vague=parseInt(k[2])||0,l.extend=parseInt(k[3])||0;const d=h=>{let p=h?.replace(/[-\d.]/g,"")||"px";return u.indexOf(p)===-1&&(p="px"),p};l.x_unit=d(k[0]),l.y_unit=d(k[1]),l.vague_unit=d(k[2]),l.extend_unit=d(k[3]),a.left=o.boxSize/2+l.x/o.max*o.boxSize||0,a.top=o.boxSize/2+l.y/o.max*o.boxSize||0},C=f=>{const V=f.value;F(V)};return De(()=>{F(o.modelValue)}),(f,V)=>{const B=_("el-radio-button"),k=_("el-radio-group"),d=_("el-form-item"),h=_("dk-color-input"),p=_("el-input"),b=_("el-option"),S=_("el-select"),x=_("el-form"),$=_("el-button");return g(),D("div",{ref_key:"el",ref:n,class:"dk-style-shadow-content",style:q({"--shadow-box-width":t.boxSize+"px"})},[c(x,{"label-width":"60px","label-position":"left",class:"shadow-form-content",size:t.size},{default:m(()=>[c(d,{label:"\u6A21\u5F0F"},{default:m(()=>[c(k,{modelValue:l.type,"onUpdate:modelValue":V[0]||(V[0]=R=>l.type=R)},{default:m(()=>[c(B,{value:"external"},{default:m(()=>[M("\u5916\u90E8")]),_:1}),c(B,{value:"inset"},{default:m(()=>[M("\u5185\u90E8")]),_:1})]),_:1},8,["modelValue"])]),_:1}),c(d,{label:"\u989C\u8272"},{default:m(()=>[c(h,{modelValue:l.color,"onUpdate:modelValue":V[1]||(V[1]=R=>l.color=R),"show-alpha":"",teleported:!1},null,8,["modelValue"])]),_:1}),c(d,{label:"x\u8F74"},{default:m(()=>[w("div",$f,[c(p,{modelValue:l.x,"onUpdate:modelValue":V[2]||(V[2]=R=>l.x=R),type:"number"},null,8,["modelValue"]),c(S,{modelValue:l.x_unit,"onUpdate:modelValue":V[3]||(V[3]=R=>l.x_unit=R),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[(g(),D(L,null,X(u,R=>c(b,{key:R,label:R,value:R},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),c(d,{label:"y\u8F74"},{default:m(()=>[w("div",If,[c(p,{modelValue:l.y,"onUpdate:modelValue":V[4]||(V[4]=R=>l.y=R),type:"number"},null,8,["modelValue"]),c(S,{modelValue:l.y_unit,"onUpdate:modelValue":V[5]||(V[5]=R=>l.y_unit=R),placeholder:"\u8BF7\u9009\u62E9",class:"w-40px"},{default:m(()=>[(g(),D(L,null,X(u,R=>c(b,{key:R,label:R,value:R},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),c(d,{label:"\u6A21\u7CCA"},{default:m(()=>[w("div",Tf,[c(p,{modelValue:l.vague,"onUpdate:modelValue":V[6]||(V[6]=R=>l.vague=R),type:"number"},null,8,["modelValue"]),c(S,{modelValue:l.vague_unit,"onUpdate:modelValue":V[7]||(V[7]=R=>l.vague_unit=R),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[(g(),D(L,null,X(u,R=>c(b,{key:R,label:R,value:R},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),c(d,{label:"\u6269\u5C55"},{default:m(()=>[w("div",Rf,[c(p,{modelValue:l.extend,"onUpdate:modelValue":V[8]||(V[8]=R=>l.extend=R),type:"number"},null,8,["modelValue"]),c(S,{modelValue:l.extend_unit,"onUpdate:modelValue":V[9]||(V[9]=R=>l.extend_unit=R),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[(g(),D(L,null,X(u,R=>c(b,{key:R,label:R,value:R},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1})]),_:1},8,["size"]),w("div",Of,[w("div",zf,[jf,(g(!0),D(L,null,X(o.defaultStyles,(R,U)=>(g(),T($,{key:U,size:"small",onClick:I=>C(R)},{default:m(()=>[M(G(R.label),1)]),_:2},1032,["onClick"]))),128))]),w("div",{ref_key:"box",ref:s,class:ne(["shadow-content-box",i.value?"down":""]),style:q({height:t.boxSize+"px",width:t.boxSize+"px"}),onClick:V[10]||(V[10]=R=>y(R,1)),onMousedown:E,onMouseup:V[11]||(V[11]=R=>i.value=!1),onMousemove:V[12]||(V[12]=R=>y(R,0))},[w("span",{id:"spot",style:q(v.value)},Nf,4),w("span",{id:"center-spot",style:q({top:t.boxSize/2+"px",left:t.boxSize/2+"px"})},null,4),w("div",{class:"x-hr",style:q({top:t.boxSize/2+"px"})},null,4),w("div",{class:"y-hr",style:q({left:t.boxSize/2+"px"})},null,4),w("div",{class:"line",style:q(r.value)},null,4)],38)])],4)}}}),Lf=H(Mf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-content.vue"]]);const va=ae(Vf),ya=ae(Lf),_a={modelValue:{type:Object,default:()=>({})}},Hf={class:"m-t-10px"},Wf=["onClick"],qf=P({name:"DkStylePositionInput"});var Gf=P({...qf,props:_a,emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=O(null),{width:l}=wt(n),u=Q(()=>l.value<=300?24:l.value<800?12:6),i=O({left:o.modelValue.left||"",top:o.modelValue.top||"",right:o.modelValue.right||"",bottom:o.modelValue.bottom||""}),a=[{label:"\u4E0A",value:"top",tip:"\u5F53\u524D\u8DDD\u79BB\u9876\u90E8\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u53F3",value:"right",tip:"\u5F53\u524D\u8DDD\u79BB\u53F3\u4FA7\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u4E0B",value:"bottom",tip:"\u5F53\u524D\u8DDD\u79BB\u5E95\u90E8\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"},{label:"\u5DE6",value:"left",tip:"\u5F53\u524D\u8DDD\u79BB\u5DE6\u4FA7\u7684\u8DDD\u79BB\uFF0C\u70B9\u51FB\u6E05\u9664"}],r=[{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"}],s=O(!1),v=E=>{switch(s.value=!0,E){case"left-top":i.value={left:"1px",top:"1px",right:"",bottom:""};break;case"left-down":i.value={left:"1px",bottom:"1px",right:"",up:""};break;case"right-top":i.value={top:"1px",right:"1px",left:"",bottom:""};break;case"right-down":i.value={right:"1px",bottom:"1px",left:"",up:""};break;case"down-center":i.value={left:"1px",right:"1px",bottom:"1px",up:""};break;case"up-center":i.value={left:"1px",top:"1px",right:"1px",bottom:""};break}},y=()=>{const E=Object.keys(i.value).reduce((F,C)=>((s.value&&i.value[C]!="0px"||!s.value&&C!=="position")&&i.value[C]&&(F[C]=i.value[C]),F),{});e("update:modelValue",E)};return Y(()=>i.value,()=>{y()},{deep:!0}),Y(()=>o.modelValue,()=>{Object.keys(o.modelValue).reduce((E,F)=>(F!=="position"&&(E[F]=o.modelValue[F]),E),i.value)},{deep:!0}),(E,F)=>{const C=_("el-radio-button"),f=_("el-radio-group"),V=_("el-form-item"),B=_("el-tooltip"),k=_("dk-style-number-input"),d=_("el-col"),h=_("el-row"),p=_("el-form");return g(),D("div",{ref_key:"el",ref:n,class:"dk-style-position-input"},[c(p,{"label-width":"50px","label-position":"left"},{default:m(()=>[w("div",null,[c(V,{label:"\u5E38\u7528"},{default:m(()=>[c(f,{onChange:v},{default:m(()=>[(g(),D(L,null,X(r,(b,S)=>c(C,{key:S,label:b.value},{default:m(()=>[M(G(b.label),1)]),_:2},1032,["label"])),64))]),_:1})]),_:1})]),w("div",Hf,[c(h,{gutter:20},{default:m(()=>[(g(),D(L,null,X(a,(b,S)=>c(d,{key:S,span:u.value,class:"m-b-5px"},{default:m(()=>[c(V,{label:b.label},{label:m(()=>[c(B,{class:"item",effect:"dark",content:b.tip,placement:"top"},{default:m(()=>[w("span",{style:q([{cursor:"pointer"},i.value[b.value]?"color:var(--el-color-primary)":""]),onClick:x=>i.value[b.value]=""},G(b.label)+"\uFF1A",13,Wf)]),_:2},1032,["content"])]),default:m(()=>[c(k,{modelValue:i.value[b.value],"onUpdate:modelValue":x=>i.value[b.value]=x,onInput:F[0]||(F[0]=x=>s.value=!1)},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:2},1032,["span"])),64))]),_:1})])]),_:1})],512)}}}),Yf=H(Gf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-position-input\\src\\style-position-input.vue"]]);const ba=ae(Yf),Ea={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}},Xf=P({name:"DkStyleNumberInput"});var Jf=P({...Xf,props:Ea,emits:["input","update:modelValue"],setup(t,{emit:e}){const o=t,n=hu(o.modelValue,o.units),l=ie({number:n.number,unit:n.unit||"px"}),u=O(!1),i=O(null),a=O(null),r=O(0),s=O(0),v=F=>{u.value=!0,s.value=F.clientX,r.value=F.clientY,i.value=y.bind(F),a.value=E.bind(F),document.addEventListener("mousemove",i.value),document.addEventListener("mouseup",a.value),document.body.style.cursor="ew-resize"},y=F=>{if(u.value){let C;if(o.direction==="horizontal"){const f=F.clientX-s.value;C=Math.floor(f/10),s.value+=C*10}else if(o.direction==="vertical"){const f=F.clientY-r.value;C=Math.floor(f/10),r.value+=C*10}l.number=parseInt(l.number+C)}},E=()=>{console.log("up"),document.removeEventListener("mousemove",i.value),document.removeEventListener("mouseup",a.value),document.body.style.cursor="default",u.value=!1};return Y(()=>l,()=>{l.number===""?e("update:modelValue",""):e("update:modelValue",l.number+l.unit)},{deep:!0}),Y(()=>o.modelValue,()=>{const F=hu(o.modelValue,o.units);l.number=F.number,l.unit=F.unit||"px"}),(F,C)=>{const f=_("dk-icon"),V=_("el-tooltip"),B=_("el-option"),k=_("el-select"),d=_("el-input");return g(),D("div",{class:ne(["dk-style-number-input",o.direction])},[c(d,{modelValue:l.number,"onUpdate:modelValue":C[1]||(C[1]=h=>l.number=h),type:"text",controls:!1,onInput:C[2]||(C[2]=h=>e("input",h))},Ft({prefix:m(()=>[w("span",{class:ne(["w-resize",[`${o.direction}-resize`]]),onMousemove:y,onMousedown:v,onMouseup:E},[c(V,{class:"item",effect:"dark",disabled:!o.tooltipContent,content:o.tooltipContent,placement:"top","open-delay":500},{default:m(()=>[c(f,{icon:o.icon||"Rank"},null,8,["icon"])]),_:1},8,["disabled","content"])],34)]),_:2},[F.showUnit?{name:"append",fn:m(()=>[c(k,{modelValue:l.unit,"onUpdate:modelValue":C[0]||(C[0]=h=>l.unit=h),style:{width:"40px"},"suffix-icon":""},{default:m(()=>[(g(!0),D(L,null,X(F.units,(h,p)=>(g(),T(B,{key:p,label:h,value:h},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),key:"0"}:void 0]),1032,["modelValue"])],2)}}}),Kf=H(Jf,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-number-input\\src\\style-number-input.vue"]]);const ka=ae(Kf);function no(t,e,o){t[e]=o}const Ue={type(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"},Undef(t){return t==null},Element(t){return typeof t=="object"&&t!==null&&t.nodeType===1&&!Ue.Object(t)},trueArray(t){return Array.isArray(t)&&t.length>0},Function(t){const e=this.getType(t);return e==="Function"||e==="AsyncFunction"},getType(t){const e=Object.prototype.toString.call(t);return/^\[object (.*)\]$/.exec(e)[1]},empty(t){return t==null||Array.isArray(t)&&Array.isArray(t)&&!t.length?!0:typeof t=="string"&&!t}};["Date","Object","String","Boolean","Array","Number"].forEach(t=>{Ue[t]=function(e){return Ue.type(e,t)}});function Qf(t,e){return{}.hasOwnProperty.call(t,e)}function Fa(t,e={},o){let n=!1;for(let l in e)if(Object.prototype.hasOwnProperty.call(e,l)){let u=e[l];if((n=Array.isArray(u))||Ue.Object(u)){let i=t[l]===void 0;if(n)n=!1,i&&no(t,l,[]);else if(u._clone&&o!==void 0)if(o)u=u.getRule(),i&&no(t,l,{});else{no(t,l,u._clone());continue}else i&&no(t,l,{});t[l]=Fa(t[l],u,o)}else no(t,l,u),Ue.Undef(u)||(Ue.Undef(u.__json)||(t[l].__json=u.__json),Ue.Undef(u.__origin)||(t[l].__origin=u.__origin))}return o!==void 0&&Array.isArray(t)?t.filter(l=>!l||!l.__ctrl):t}function zt(t){return Fa({},{value:t}).value}function wa(t){return t.replace(t[0],t[0].toLowerCase())}const Zf={class:"preview-phone"},em={class:"phone"},tm={class:"phone-header"},om={class:"phone-header-top"},nm={class:"phone-time"},lm=w("div",null,null,-1),um={class:"phone-battery"},am=w("span",{class:"m-r-4px"},"100%",-1),im={class:"phone-title"},rm={class:"phone-title-icon"},sm=w("div",null,"\u9875\u9762\u6807\u9898",-1),dm={class:"phone-title-icon"},cm=P({name:"PreviewPhone"});var pm=P({...cm,props:{value:{default:"",type:String},pageConfig:{default:()=>{},type:[Object]}},setup(t){const e=t,o=ot("diy"),n="preview-phone",l=JSON.parse(nt.get(n)||"{}"),u=O({showLine:l.showLine||!0,margin:l.margin||2,preview:l.preview||!1,closeAnimate:l.closeAnimate||!1});eo("previewSetting",u);const i=()=>{nt.set(n,JSON.stringify(u.value))},a=(v="")=>{const{proxy:y}=o,E={rule:"\u7EC4\u4EF6",config:"\u914D\u7F6E"};vn.confirm("\u5F53\u524D\u8981\u6E05\u9664"+E[v]+"\uFF0C\u662F\u5426\u7EE7\u7EED?","\u8B66\u544A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{y.clear(v),Se.success("\u6E05\u9664\u6210\u529F")}).catch(()=>{})},r=Q(()=>{let v={"--padding":"0","--overflow":"initial"};return u.value.showLine&&!u.value.preview&&(v={"--margin":u.value.margin+"px","--showDashed":"1px"}),u.value.preview?(v["--padding"]="0",v["--overflow"]="hidden",v["--minHeight"]="0px"):(v["--padding"]="2px 0",v["--overflow"]="initial",v["--minHeight"]="30px"),{...e.pageConfig.style,...v}}),s=Q(()=>{const v=new Date,y=v.getHours(),E=v.getMinutes();return y+":"+E});return(v,y)=>{const E=_("van-icon"),F=_("dk-icon"),C=_("el-dropdown-item"),f=_("el-dropdown-menu"),V=_("el-dropdown"),B=_("el-tooltip"),k=_("el-switch"),d=_("el-form-item"),h=_("el-slider"),p=_("el-popover");return g(),D("div",Zf,[w("div",em,[w("div",tm,[w("div",om,[w("div",nm,[w("span",null,G(s.value),1),c(E,{name:"wechat",color:"#2ddd71"})]),lm,w("div",um,[am,c(F,{icon:"gg:battery-full",size:18,color:"#555","hover-color":"#f00"})])]),w("div",im,[w("div",rm,[c(V,{trigger:"click",placement:"bottom-start"},{dropdown:m(()=>[c(f,null,{default:m(()=>[c(C,{onClick:y[0]||(y[0]=b=>a("rule"))},{default:m(()=>[M("\u6E05\u9664\u7EC4\u4EF6")]),_:1}),c(C,{onClick:y[1]||(y[1]=b=>a("page"))},{default:m(()=>[M("\u6E05\u9664\u9875\u9762")]),_:1})]),_:1})]),default:m(()=>[c(F,{icon:"Close","hover-color":"var(--el-color-primary)",size:20,style:{cursor:"pointer"}})]),_:1})]),sm,w("div",dm,[c(p,{placement:"bottom",width:200,trigger:"click"},{reference:m(()=>[c(F,{icon:"MoreFilled",size:20,"hover-color":"var(--el-color-primary)",style:{cursor:"pointer"}})]),default:m(()=>[c(d,{label:"\u663E\u793A\u7F51\u683C"},{label:m(()=>[c(B,{class:"box-item",effect:"dark",content:"\u663E\u793A\u7EC4\u4EF6\u7F51\u683C\u7EBF",placement:"right-start"},{default:m(()=>[M(" \u663E\u793A\u7F51\u683C ")]),_:1})]),default:m(()=>[c(k,{modelValue:u.value.showLine,"onUpdate:modelValue":y[2]||(y[2]=b=>u.value.showLine=b),onChange:y[3]||(y[3]=b=>i())},null,8,["modelValue"])]),_:1}),c(d,{label:"\u7F51\u683C\u95F4\u8DDD"},{label:m(()=>[c(B,{class:"box-item",effect:"dark",content:"\u8BBE\u7F6E\u7EC4\u4EF6\u4E4B\u95F4\u7684\u7F51\u683C\u95F4\u8DDD",placement:"right-start"},{default:m(()=>[M(" \u7F51\u683C\u95F4\u8DDD ")]),_:1})]),default:m(()=>[c(h,{modelValue:u.value.margin,"onUpdate:modelValue":y[4]||(y[4]=b=>u.value.margin=b),min:0,step:1,"show-stops":"",max:20,onChange:y[5]||(y[5]=b=>i())},null,8,["modelValue"])]),_:1}),c(d,{label:"\u6548\u679C\u9884\u89C8"},{label:m(()=>[c(B,{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:m(()=>[M(" \u6548\u679C\u9884\u89C8 ")]),_:1})]),default:m(()=>[c(k,{modelValue:u.value.preview,"onUpdate:modelValue":y[6]||(y[6]=b=>u.value.preview=b),onChange:y[7]||(y[7]=b=>i())},null,8,["modelValue"])]),_:1}),c(d,{label:"\u5173\u95ED\u52A8\u753B"},{label:m(()=>[c(B,{class:"box-item",effect:"dark",content:"\u5173\u95ED\u6240\u6709\u9884\u89C8\u7684\u52A8\u753B\u6548\u679C",placement:"right-start"},{default:m(()=>[M(" \u5173\u95ED\u52A8\u753B ")]),_:1})]),default:m(()=>[c(k,{modelValue:u.value.closeAnimate,"onUpdate:modelValue":y[8]||(y[8]=b=>u.value.closeAnimate=b),onChange:y[9]||(y[9]=b=>i())},null,8,["modelValue"])]),_:1})]),_:1})])])]),w("div",{class:"phone-body _fc-m-drag",style:q(r.value)},[he(v.$slots,"default")],4)])])}}}),fm=H(pm,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\PreviewPhone.vue"]]);const mm="\u6D77\u62A5",Da="dk-poster-btn";var Vn={icon:"icon-park-outline:mark",label:mm,name:Da,rule(){return{type:Da,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 hm="\u5F39\u5E55\u7EC4\u4EF6",Ca="DkViewBulletChat";var $n={icon:"mingcute:chat-1-line",label:hm,name:Ca,rule(){return{type:Ca,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 gm="\u5355\u5143\u683C",Aa="DkViewCell";var In={icon:"cil:grid",label:gm,name:Aa,rule(){return{type:Aa,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 vm="\u901A\u7528\u6309\u94AE",xa="DkViewCommonBtn";var Tn={icon:"game-icons:power-button",label:vm,name:xa,rule(){return{type:xa,props:{fBtnText:"\u81EA\u5B9A\u4E49",fWSize:80,fHSize:20},showStyle:!0,fixed:!0,trigger:!0,event:!0}},props(){return[{type:"select",field:"click_type",title:"\u70B9\u51FB\u903B\u8F91",value:"event",options:[{label:"\u94FE\u63A5\u8DF3\u8F6C",value:"url"},{label:"\u89E6\u53D1\u4E8B\u4EF6",value:"event"}],control:[{value:"url",rule:[{type:"DkLinkInput",field:"url",title:"\u9009\u62E9\u94FE\u63A5",value:""}]},{value:"event",rule:[{type:"DkEventSelectInput",field:"event",title:"\u4E8B\u4EF6\u540D\u79F0",value:"",effect:{help:"\u914D\u7F6E\u88AB\u89E6\u53D1\u7684\u4E8B\u4EF6\u540D\u79F0\uFF0C\u540D\u79F0\u4EC5\u4E3A\u82F1\u6587\u5B57\u7B26"}}]}]},{type:"select",field:"type",title:"\u6837\u5F0F",value:"btn",options:[{label:"\u666E\u901A\u6309\u94AE",value:"btn"},{label:"\u56FE\u6587\u6309\u94AE",value:"text_image_btn"}],control:[{value:"btn",rule:[{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"",props:{isVant:!0}},{type:"input",field:"btnText",title:"\u6309\u94AE\u6587\u5B57",value:"\u6309\u94AE\u540D\u79F0"},{type:"switch",field:"block",title:"\u5757\u72B6\u6309\u94AE",value:!0},{type:"switch",field:"round",title:"\u5706\u5F27",value:!0},{type:"select",field:"size",title:"\u5C3A\u5BF8",value:"normal",options:[{label:"\u8FF7\u4F60\u6309\u94AE",value:"mini"},{label:"\u5C0F\u578B\u6309\u94AE",value:"small"},{label:"\u4E2D\u578B\u6309\u94AE",value:"normal"},{label:"\u5927\u578B\u6309\u94AE",value:"large"}]},{type:"DkColorInput",field:"color",title:"\u989C\u8272",value:"#ff3d2c",col:{span:12},props:{showAlpha:!0}},{type:"DkColorInput",field:"color2",title:"\u6E10\u53D8\u8272",value:"",col:{span:12},props:{showAlpha:!0}}]},{value:"text_image_btn",rule:[{type:"input",field:"fBtnText",title:"\u6587\u5B57",value:"\u81EA\u5B9A\u4E49\u6587\u672C",control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"fontSize",title:"\u6587\u5B57\u5927\u5C0F",value:12,props:{min:12,max:32},col:{span:12}},{type:"inputNumber",field:"fontTopSize",title:"\u5411\u4E0A\u95F4\u8DDD",value:0,props:{min:0,max:32},col:{span:12}}]}]},{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"",props:{isVant:!0},control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"iconSize",title:"\u56FE\u6807\u5927\u5C0F",value:12,props:{min:12,max:32},col:{span:12}}]}]},{type:"switch",field:"isTextBlock",title:"\u9650\u5236\u5BBD\u9AD8",value:!1,control:[{value:!0,rule:[{type:"slider",field:"borderRadius",title:"\u5F27\u5EA6",value:0,props:{min:0,max:100}},{type:"DkColorInput",field:"fBgColor",title:"\u80CC\u666F\u8272",value:"#ff3d2c",props:{showAlpha:!0},col:{span:8}},{type:"DkColorInput",field:"fColor",title:"\u6587\u5B57\u8272",value:"#fff",col:{span:8,offset:4}},{type:"inputNumber",field:"fWSize",title:"\u5BBD",value:30,props:{min:20,max:400,step:10},col:{span:8}},{type:"inputNumber",field:"fHSize",title:"\u9AD8",value:30,props:{min:20,max:400,step:10},col:{span:8,offset:4}}]}]},{type:"DkImageInput",field:"img",title:"\u56FE\u7247",value:"",control:[{handle(t){return t!==""},rule:[{type:"inputNumber",field:"imgSize",title:"\u56FE\u7247\u5BBD\u5EA6",value:20,props:{min:20,max:400,step:10}}]}]}]}],effect:{help:"\u914D\u7F6E\u540E\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u3010\u6837\u5F0F\u8BBE\u7F6E\u3011->\u3010\u7EC4\u4EF6\u60AC\u6D6E\u3011\u5BF9\u6309\u94AE\u8FDB\u884C\u60AC\u6D6E"}}]}};const ym="\u5F39\u7A97\u7EC4\u4EF6",Ba="DkViewDialog";var Rn={icon:"mi:window",label:ym,name:Ba,event:!0,rule(){return{type:Ba,props:{title:"\u901A\u77E5",listen:""},showStyle:!0,fixed:!0}},props(){return[{type:"DkEventCreateInput",field:"listen",title:"\u76D1\u542C\u4E8B\u4EF6",value:"",props:{label:"\u5F39\u7A97\u7EC4\u4EF6"}},{type:"input",field:"title",title:"\u5F39\u7A97\u6807\u9898",value:"\u901A\u77E5"},{type:"dk-tiny-editor",field:"content",title:"\u5F39\u7A97\u5185\u5BB9",props:{buttonText:"\u7F16\u8F91\u5F39\u7A97\u5185\u5BB9"},value:""},{type:"input",field:"confirmText",title:"\u6309\u94AE\u6587\u5B57",value:"\u786E\u5B9A"},{type:"switch",field:"show",title:"\u9884\u89C8",value:!1,effect:{help:"\u5F53\u524D\u4E3A\u9884\u89C8\u6309\u94AE\uFF0C\u4E0D\u5F71\u54CD\u5B9E\u9645\u663E\u793A\uFF0C\u70B9\u51FB\u540E\u5728\u9884\u89C8\u7A97\u53E3\u70B9\u786E\u5B9A\u5373\u53EF\u5173\u95ED"}},{type:"radio",field:"copy",title:"\u590D\u5236\u5185\u5BB9",value:"0",options:[{label:"\u4E0D\u590D\u5236",value:"0"},{label:"\u590D\u5236\u5F39\u7A97\u5185\u5BB9",value:"1"},{label:"\u590D\u5236\u81EA\u5B9A\u4E49\u5185\u5BB9",value:"2"}],control:[{value:"2",rule:[{type:"select",field:"copyType",title:"\u590D\u5236\u7C7B\u578B",value:"text",options:[{label:"\u7EAF\u6587\u672C",value:"text"},{label:"\u5BCC\u6587\u672C",value:"html"}],control:[{value:"text",rule:[{type:"input",field:"copyText",title:"\u590D\u5236\u5185\u5BB9",value:"",props:{type:"textarea"}}]},{value:"html",rule:[{type:"dk-tiny-editor",field:"copyHtml",title:"\u590D\u5236\u5185\u5BB9",value:""}]}]}]},{handle:function(t){return t!==""},rule:[{type:"input",field:"copySuccessToast",title:"\u590D\u5236\u63D0\u793A",value:"\u590D\u5236\u6210\u529F",effect:{help:"\u590D\u5236\u6210\u529F\u540E\u7684\u63D0\u793A,\u4E0D\u586B\u5219\u4E0D\u663E\u793A"}}]}]}]}};const _m="\u5217\u8868",Sa="DkViewGridCellList";var On={icon:"fluent:list-bar-16-regular",label:_m,name:Sa,rule(){return{type:Sa,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 bm="\u56FE\u7247",Va="DkViewImage";var zn={icon:"clarity:image-line",label:bm,name:Va,rule(){return{type:Va,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 Em="\u97F3\u4E50",$a="DkViewMusic";var jn={icon:"mingcute:music-3-line",label:Em,name:$a,rule(){return{type:$a,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",Ia="DkViewNavBar";var Pn={icon:"bx:navigation",label:km,name:Ia,rule(){return{type:Ia,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 Fm="\u516C\u544A",Ta="DkViewNoticeBar";var Nn={icon:"icon-park-outline:volume-notice",label:Fm,name:Ta,rule(){return{type:Ta,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 wm="\u8F6E\u64AD",Ra="DkViewSwipe";var Un={icon:"dashicons:images-alt2",label:wm,name:Ra,rule(){return{type:Ra,props:{swipeList:[{img:"https://img01.yzcdn.cn/upload_files/2021/07/06/FsivVhWrSJsQWx0GhgOJKS_IOQp_.jpg?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F01",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/07/Fm30KtbmHzLJ96USZWFGI8FLQVss.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F02",show:!0},{img:"https://img01.yzcdn.cn/upload_files/2021/07/01/Fj19dCrgsMyTYdrr89b9iheMVFZU.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1",url:"",title:"\u9ED8\u8BA4\u5907\u6CE8\u540D\u79F03",show:!0}],autoplay:2e3},showStyle:!0}},props(){return[{type:"switch",field:"heightAuto",title:"\u81EA\u5B9A\u4E49\u9AD8\u5EA6",value:!1,control:[{value:!0,rule:[{type:"inputNumber",field:"height",title:"\u56FE\u7247\u9AD8\u5EA6",value:200,props:{min:0,max:500}},{type:"select",field:"fit",title:"\u586B\u5145\u6A21\u5F0F",value:"cover",options:[{label:"fill\uFF1A\u62C9\u4F38\u586B\u5145",value:"fill"},{label:"contain\uFF1A\u7F29\u653E\u586B\u5145",value:"contain"},{label:"cover\uFF1A\u6700\u5927\u5BBD\u5EA6\u586B\u5145",value:"cover"},{label:"none\uFF1A\u539F\u59CB\u5C3A\u5BF8",value:"none"},{label:"scale-down\uFF1A\u5BF9\u6BD4\u5BBD\u9AD8\u586B\u5145",value:"scale-down"}]}]}]},{type:"DkColorInput",field:"bgColor",title:"\u80CC\u666F\u8272",value:""},{type:"slider",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",value:3e3,props:{min:500,max:1e4,step:100,formatTooltip:t=>t/1e3+"\u79D2"}},{type:"el-divider",props:{},children:["\u8F6E\u64AD\u914D\u7F6E"],col:{span:24},field:"divider"},{type:"DkGroup",field:"swipeList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"urlInput",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Dm="\u5E95\u90E8\u5BFC\u822A",Oa="DkViewTabbar";var Mn={icon:"fluent:table-bottom-row-32-regular",label:Dm,name:Oa,rule(){return{type:Oa,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 Cm="\u5BCC\u6587\u672C",za="DkViewTextarea";var Ln={icon:"fluent:image-alt-text-16-regular",label:Cm,name:za,rule(){return{type:za,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 Am="\u89C6\u9891",ja="DkViewVideo";var Hn={icon:"icon-park-twotone:video-two",label:Am,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 xm=[Vn,$n,In,Tn,Rn,On,zn,jn,Pn,Nn,Un,Mn,Ln,Hn],Bm={[Vn.name]:Vn,[$n.name]:$n,[In.name]:In,[Tn.name]:Tn,[Rn.name]:Rn,[On.name]:On,[zn.name]:zn,[jn.name]:jn,[Pn.name]:Pn,[Nn.name]:Nn,[Un.name]:Un,[Mn.name]:Mn,[Ln.name]:Ln,[Hn.name]:Hn},Sm="\u901A\u7528\u6807\u9898",Pa="DkViewTitle";var Wn={icon:"ic:sharp-title",label:Sm,name:Pa,rule(){return{type:Pa,props:{},showStyle:!0}},props(){return[{type:"input",field:"title",title:"\u540D\u79F0",value:"\u6807\u9898"},{type:"inputNumber",field:"size",title:"\u5927\u5C0F",value:14,props:{min:10,max:24}},{type:"DkColorInput",field:"color",title:"\u989C\u8272",value:""},{type:"switch",field:"bold",title:"\u52A0\u7C97",value:!1},{type:"select",field:"prefix",title:"\u524D\u7F00",value:"",options:[{label:"\u65E0",value:""},{label:"\u56FE\u6807",value:"icon"},{label:"\u56FE\u7247",value:"image"},{label:"\u65B9\u5F62",value:"square"}],control:[{value:"icon",rule:[{type:"dkIconInput",field:"icon",title:"\u9009\u62E9\u56FE\u6807",value:"volume",props:{isVant:!0}},{type:"DkColorInput",field:"prefixColor",title:"\u989C\u8272"},{type:"inputNumber",field:"iconSize",title:"\u56FE\u6807\u5927\u5C0F",value:18}]},{value:"image",rule:[{type:"dkImageInput",field:"prefixImage",title:"\u9009\u62E9\u56FE\u7247",value:""},{type:"inputNumber",field:"imageWidth",title:"\u5BBD",value:24},{type:"inputNumber",field:"imageHeight",title:"\u9AD8",value:24}]},{value:"square",rule:[{type:"inputNumber",field:"squareWidth",title:"\u5BBD",value:3},{type:"inputNumber",field:"squareHeight",title:"\u9AD8",value:18},{type:"DkColorInput",field:"prefixColor",title:"\u989C\u8272",value:"#409eff"}]},{handle(t){return t!==""},rule:[{type:"inputNumber",field:"titleMarginLeft",title:"\u6807\u9898\u95F4\u8DDD",value:4}]}]},{type:"switch",field:"showRight",title:"\u53F3\u4FA7\u8DF3\u8F6C",value:!1,control:[{value:!0,rule:[{type:"input",field:"rTitle",title:"\u53F3\u4FA7\u5185\u5BB9",value:"\u66F4\u591A"},{type:"DkColorInput",field:"rColor",title:"\u53F3\u4FA7\u989C\u8272",value:"#999"},{type:"inputNumber",field:"rSize",title:"\u53F3\u4FA7\u5927\u5C0F",value:14},{type:"dkLinkInput",field:"rUrl",title:"\u8DF3\u8F6C\u5730\u5740"}]}]}]}};const Vm="\u7A7A\u5185\u5BB9",Na="VanEmpty";var qn={icon:"grommet-icons:test",label:Vm,name:Na,count:1,rule(){return{type:Na,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"}]}}]}},Ua={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"}}]}},Gn={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"}}]}},Ma={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 $m="\u95F4\u8DDD",La="div";var Yn={icon:"ri:space",label:$m,name:La,rule(){return{type:La,wrap:{show:!1},style:{width:"100%",height:"20px"},showStyle:!0,children:[]}},props(){return[{type:"object",field:"formCreateStyle",native:!0,props:{rule:[{type:"input",field:"height",title:"height"}]}}]}};const Im="\u6805\u683C\u5E03\u5C40",Tm="row";var Xn={icon:"cil:columns",label:Im,name:Tm,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 Rm="\u5206\u5272\u7EBF",Ha="van-divider";var Jn={icon:"mingcute:border-horizontal-line",label:Rm,name:Ha,rule(){return{type:Ha,props:{hairline:!0,contentPosition:"center"},wrap:{show:!1},native:!1,showStyle:!0,children:["\u6807\u9898"]}},props(){return[{type:"switch",field:"dashed",title:"\u865A\u7EBF"},{type:"switch",field:"hairline",title:"\u7EC6\u7EBF"},{type:"input",field:"formCreateChild",title:"\u8BBE\u7F6E\u6587\u6848"},{type:"radio",field:"contentPosition",title:"\u6587\u6848\u4F4D\u7F6E",props:{type:"button"},options:[{label:"\u5DE6\u4FA7",value:"left"},{label:"\u53F3\u4FA7",value:"right"},{label:"\u5C45\u4E2D",value:"center"}]}]}},Kn={icon:"ic:outline-swipe",label:"\u8F6E\u64AD",name:"van-swipe",children:"van-swipe-item",mask:!1,rule(){return{type:"van-swipe",style:"width:100%;",children:[],showStyle:!0}},props(){return[{type:"number",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",props:{min:0,max:1e4,step:500},effect:{help:"\u81EA\u52A8\u8F6E\u64AD\u95F4\u9694\uFF0C\u5355\u4F4D\u4E3A ms,0\u8868\u793A\u4E0D\u8F6E\u64AD"}},{type:"number",field:"initial-swipe",title:"\u521D\u59CB\u4F4D\u7F6E",value:0,effect:{help:"\u521D\u59CB\u4F4D\u7F6E\u7D22\u5F15\u503C\uFF0C\u4E5F\u53EF\u4EE5\u901A\u8FC7\u5F53\u524D\u9009\u9879\u6765\u5207\u6362\u4E0D\u540C\u7684\u4F4D\u7F6E\u8FDB\u884C\u7F16\u8F91"}},{type:"number",field:"duration",title:"\u52A8\u753B\u65F6\u95F4",value:.3,effect:{help:"\u52A8\u753B\u65F6\u95F4\uFF0C\u5355\u4F4D\u79D2\uFF0C\u8BBE\u7F6E\u4E3A 0 \u53EF\u4EE5\u7981\u7528\u52A8\u753B"}},{type:"switch",field:"loop",title:"\u662F\u5426\u5FAA\u73AF",value:!0},{type:"switch",field:"show-indicators",title:"\u663E\u793A\u6307\u793A\u5668",value:!0},{type:"switch",field:"vertical",title:"\u7EB5\u5411\u6EDA\u52A8",value:!1},{type:"switch",field:"touchable",title:"\u624B\u52BF\u6ED1\u52A8",value:!0,effect:{help:"\u662F\u5426\u53EF\u4EE5\u901A\u8FC7\u624B\u52BF\u6ED1\u52A8"}},{type:"dk-color-input",field:"indicator-color",title:"\u6307\u793A\u5668\u8272",value:"#1989fa",effect:{help:"\u6307\u793A\u5668\u989C\u8272"}}]}},Wa={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 Om=[Wn,qn,Gn,Yn,Xn,Jn,Kn],zm={[Wn.name]:Wn,[qn.name]:qn,[Ua.name]:Ua,[Gn.name]:Gn,[Ma.name]:Ma,[Yn.name]:Yn,[Xn.name]:Xn,[Jn.name]:Jn,[Kn.name]:Kn,[Wa.name]:Wa},jm={...zm,...Bm},Pm=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...xm]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[...Om]}]},Nm="\u89C6\u9891",qa="DkMinVideo";var Qn={icon:"icon-park-twotone:video-two",label:Nm,name:qa,rule(){return{type:qa,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 Um="\u8F6E\u64AD\u56FE",Ga="DkMinSwiperImage";var Zn={icon:"dashicons:images-alt2",label:Um,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}],height:160,autoplay:2e3},showStyle:!0}},props(){return[{type:"inputNumber",field:"height",title:"\u56FE\u7247\u9AD8\u5EA6",value:200,props:{min:0,max:500}},{type:"select",field:"imgMode",title:"\u88C1\u526A\u7F29\u653E\u6A21\u5F0F",value:"aspectFill",options:[{label:"scaleToFill\uFF1A\u5BBD\u9AD8\u5B8C\u5168\u62C9\u4F38\u81F3\u586B\u6EE1",value:"scaleToFill"},{label:"aspectFit\uFF1A\u957F\u8FB9\u80FD\u5B8C\u5168\u663E\u793A\u51FA\u6765",value:"aspectFit"},{label:"aspectFill\uFF1A\u77ED\u8FB9\u80FD\u5B8C\u5168\u663E\u793A\u51FA\u6765",value:"aspectFill"},{label:"widthFix\uFF1A\u5BBD\u5EA6\u4E0D\u53D8\uFF0C\u9AD8\u5EA6\u81EA\u52A8\u53D8\u5316",value:"widthFix"},{label:"heightFix\uFF1A\u9AD8\u5EA6\u4E0D\u53D8\uFF0C\u5BBD\u5EA6\u81EA\u52A8\u53D8\u5316",value:"heightFix"},{label:"top\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u9876\u90E8\u533A\u57DF",value:"top"},{label:"bottom\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5E95\u90E8\u533A\u57DF",value:"bottom"},{label:"center\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u4E2D\u95F4\u533A\u57DF",value:"center"},{label:"left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u8FB9\u533A\u57DF",value:"left"},{label:"right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u8FB9\u533A\u57DF",value:"right"},{label:"top left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u4E0A\u8FB9\u533A\u57DF",value:"top left"},{label:"top right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u4E0A\u8FB9\u533A\u57DF",value:"top right"},{label:"bottom left\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u5DE6\u4E0B\u8FB9\u533A\u57DF",value:"bottom left"},{label:"bottom right\uFF1A\u53EA\u663E\u793A\u56FE\u7247\u7684\u53F3\u4E0B\u8FB9\u533A\u57DF",value:"bottom right"}],effect:{help:"\u5C0F\u7A0B\u5E8F\u56FE\u7247\u7684\u7F29\u653E\u526A\u88C1\u6A21\u5F0F\uFF0C\u76EE\u524D\u65E0\u6CD5\u76F4\u63A5\u9884\u89C8\uFF0C\u53EF\u4EE5\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/component/image.html"}},{type:"slider",field:"autoplay",title:"\u8F6E\u64AD\u95F4\u9694",value:3e3,props:{min:500,max:1e4,step:100,formatTooltip:t=>t/1e3+"\u79D2"}},{type:"switch",field:"showTitle",title:"\u663E\u793A\u6807\u9898",value:!1},{type:"inputNumber",field:"radius",title:"\u5F27\u5EA6",value:0},{type:"DkGroup",field:"swipeList",value:[],props:{title:"\u56FE\u7247\u914D\u7F6E",defaultValue:{img:"https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png",url:"",title:"\u65B0\u5185\u5BB9"},rule:[{type:"input",field:"title",value:"",title:"\u5907\u6CE8\u540D\u79F0"},{type:"DkImageInput",field:"img",value:"",title:"\u9009\u62E9\u56FE\u6807"},{type:"switch",field:"show",value:!0,title:"\u662F\u5426\u663E\u793A"},{type:"DkUrlInput",field:"url",props:{showInput:!1},value:{},title:"\u8DF3\u8F6C\u5730\u5740"}]}}]}};const Mm="\u6807\u9898",Ya="DkMinTitle";var el={icon:"material-symbols:title",label:Mm,name:Ya,rule(){return{type:Ya,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 Lm="\u7A7A\u767D",Xa="DkMinBlank";var tl={icon:"FullScreen",label:Lm,name:Xa,rule(){return{type:Xa,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 Hm="\u5BCC\u6587\u672C",Ja="DkMinTextarea";var ol={icon:"fluent:image-alt-text-16-regular",label:Hm,name:Ja,rule(){return{type:Ja,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 Wm="\u70ED\u56FE",Ka="DkMinHotArea";var nl={icon:"dashicons:images-alt2",label:Wm,name:Ka,rule(){return{type:Ka,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 qm="\u5BAB\u683C",Qa="DkMinGrid";var ll={icon:"mdi:grid",label:qm,name:Qa,rule(){return{type:Qa,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 Gm=[Qn,Zn,el,tl,ol,nl,ll],Ym={[Qn.name]:Qn,[Zn.name]:Zn,[el.name]:el,[tl.name]:tl,[ol.name]:ol,[nl.name]:nl,[ll.name]:ll},Xm={...Ym},Jm=function(){return[{name:"base",title:"\u901A\u7528\u7EC4\u4EF6",list:[...Gm]}]};function Za(t){return t.replace(t[0],t[0].toLocaleUpperCase())}const ei=$o,Ae=$o.factory();let Km=0;const ti=()=>"F"+Math.random().toString(36).substr(3,3)+(+`${Date.now()}${++Km}`).toString(36);function Qm(){return[{type:"DkStyleInput",field:"style",value:{},title:"",props:{}}]}const oi=[{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 ul(t){return{type:"h2",slot:"title",style:"display: flex;align-items: center;font-size: 14px;font-weight: 600;margin:0;padding:0",children:[{type:"em",style:"width: 6px; height: 18px; background: rgb(64, 158, 255); display: block; margin-right: 5px;"},{type:"span",children:[t]}]}}function ni(t){const e=oi[0].animate;for(let o=0;o<e.length;o++)if(e[o].value===t)return!0;return!1}function al(t=null){const e=[{type:"el-collapse",props:{modelValue:"base"},style:"width:100%",children:[{type:"el-collapse-item",props:{name:"base"},children:[ul("\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:[ul("\u52A8\u753B\u914D\u7F6E"),{type:"DkAnimateSelect",field:"animate",value:"",title:"\u9009\u62E9\u52A8\u753B",control:[{handle:function(o){return o?ni(o):!1},rule:[{type:"dk-style-animation-input",field:"animation",title:"",value:{animationDelay:"0s",animationDuration:"1s",animationIterationCount:"infinite"}}]},{handle:function(o){return o?!ni(o):!1},rule:[{type:"dk-style-animation-input",field:"animation",title:"",value:{animationDelay:"0s",animationDuration:"1s",animationIterationCount:1}}]}]},{type:"switch",field:"animation_preview",title:"\u5B9E\u65F6\u9884\u89C8",value:!0,effect:{help:"\u8BBE\u7F6E\u5F53\u524D\u7EC4\u4EF6\u5FAA\u73AF\u52A8\u753B\u5B9E\u65F6\u9884\u89C8\uFF0C\u5F53\u524D\u4EC5\u4E3A\u8C03\u8BD5\u9879"}}]}]}];if(t&&t.config.config.rule().fixed){const o=[ul("\u60AC\u6D6E\u914D\u7F6E"),{type:"switch",field:"is_position",value:!1,title:"\u5F00\u542F\u60AC\u6D6E",effect:{help:"\u8BBE\u7F6E\u7EC4\u4EF6\u662F\u5426\u5F00\u542F\u60AC\u6D6E"},control:[{value:!0,rule:[{type:"DkStylePositionInput",field:"position",value:{},title:""}]}]}],n={type:"el-collapse-item",props:{name:"fixed"},children:o};e[0].children.push(n)}return e}const li={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"}},Zm={name:"DkMinVideo",props:{poster:{default:"",type:String},isHeight:{default:!1,type:Boolean},height:{default:0,type:Number},videoPath:{default:"",type:String},isOpenClose:{default:!1,type:Boolean}},data(){return{}},computed:{_style(){const t={};return this.height&&this.isHeight?t.height=this.height+"px":t.height="240px",t}},mounted(){},methods:{}},eh={style:{position:"relative"},class:"dk-video-content"},th={class:"video-preview"},oh={key:0},nh={key:1};function lh(t,e,o,n,l,u){const i=_("el-image"),a=_("dk-icon");return g(),D("div",{class:"dk-view-video",style:q(u._style)},[w("div",eh,[o.poster?(g(),T(i,{key:0,src:o.poster,alt:"",class:"poster"},null,8,["src"])):A("v-if",!0),w("div",th,[c(a,{icon:"VideoPlay",size:24}),o.videoPath?(g(),D("p",nh,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B!!!!")):(g(),D("p",oh,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891!!!"))])])],4)}var uh=H(Zm,[["render",lh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinVideo.vue"]]);const ah={name:"DkMinSwiperImage",props:{value:{default:"",type:String},height:{default:"",type:[Number,String]},autoplay:{default:3e3,type:[Number,String]},swipeList:{default:()=>[],type:[Array]},imgMode:{default:"aspectFill",type:String},bgColor:{default:"",type:String},showTitle:{default:!1,type:Boolean},radius:{default:0,type:Number}},data(){return{}},computed:{},watch:{swipeList(t){}},mounted(){},methods:{}},ih={key:0,class:"swipe-title"};function rh(t,e,o,n,l,u){const i=_("van-image"),a=_("van-swipe-item"),r=_("van-swipe");return g(),T(r,{class:"dk-min-swipe",autoplay:o.autoplay,"indicator-color":"white",style:q({background:o.bgColor||""})},{default:m(()=>[(g(!0),D(L,null,X(o.swipeList,(s,v)=>(g(),T(a,{key:v},{default:m(()=>[c(i,{src:s.img,width:"100%",height:o.height,style:q(o.radius?"border-radius: "+o.radius+"px; overflow: hidden":"")},null,8,["src","height","style"]),o.showTitle?(g(),D("div",ih,G(s.title),1)):A("v-if",!0)]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var sh=H(ah,[["render",rh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinSwiperImage.vue"]]);const dh={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:{}},ch={class:"dk-min-title flex items-center justify-between"},ph={class:"flex justify-center items-center"},fh=["src"];function mh(t,e,o,n,l,u){const i=_("dk-uni-icon");return g(),D("div",ch,[w("div",ph,[w("div",{style:q({marginRight:o.marginRight+"px"})},[o.iconType==="icon"?(g(),T(i,{key:0,type:o.icon,size:o.iconSize,color:o.iconColor},null,8,["type","size","color"])):o.iconType==="img"&&o.image?(g(),D("img",{key:1,src:o.image,style:q({width:o.iconSize+"px",height:o.iconSize+"px"}),alt:""},null,12,fh)):A("v-if",!0)],4),w("div",null,[w("span",{style:q({...o.titleStyle})},G(o.title),5),o.showSubtitle?(g(),D("span",{key:0,style:q([{"margin-left":"5px","font-size":"12px"},{color:o.subColor}])},G(o.subtitle),5)):A("v-if",!0)])]),o.isMore?(g(),D("div",{key:0,style:q([{color:o.moreColor},{"font-size":"12px"}])},G(o.moreText),5)):A("v-if",!0)])}var hh=H(dh,[["render",mh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTitle.vue"]]);const gh={name:"DkMinBlank",props:{height:{default:20,type:[String,Number]}},data(){return{}},computed:{},mounted(){},methods:{}};function vh(t,e,o,n,l,u){return g(),D("div",{style:q([{height:o.height+"px"},{width:"100%"}])},null,4)}var yh=H(gh,[["render",vh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinBlank.vue"]]);const _h={name:"DkMinTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},bh=["innerHTML"];function Eh(t,e,o,n,l,u){return g(),D("div",{innerHTML:o.textarea},null,8,bh)}var kh=H(_h,[["render",Eh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinTextarea.vue"]]);const Fh={name:"DkMinHotArea",props:{hotData:{default:()=>({}),type:Object},showMask:{default:!1,type:Boolean}},setup(t){const e=O(null);let o=null;const n=O(0),l=O([]);De(()=>{o=new(window.ResizeObserver||ResizeObserver)(u),o.observe(e.value),n.value=e.value.clientWidth,i()}),Jr(()=>{o&&o.disconnect()}),Y(()=>t.hotData.views,()=>{i()},{deep:!0});function u(a){a.forEach(r=>{r.target===e.value&&(n.value=r.contentRect.width,i())})}function i(){l.value=JSON.parse(JSON.stringify(t.hotData.views)),l.value.forEach(a=>{const{left:r,top:s,width:v,height:y}=a.css,E=Math.round(v*(n.value/t.hotData.width)),F=Math.round(y*(n.value/t.hotData.width)),C=Math.round(r*(n.value/t.hotData.width)),f=Math.round(s*(n.value/t.hotData.width));a.css={...a.css,left:C+"px",top:f+"px",width:E+"px",height:F+"px"}})}return{el:e,containerWidth:n,views:l}}},wh={ref:"el",class:"dk-min-area"},Dh=["src"];function Ch(t,e,o,n,l,u){const i=_("el-empty");return g(),D("div",wh,[o.hotData.background?(g(),D("img",{key:0,src:o.hotData.background,alt:"",style:{width:"100%"}},null,8,Dh)):(g(),T(i,{key:1,description:"\u8BF7\u4E0A\u4F20\u80CC\u666F\u56FE"})),(g(!0),D(L,null,X(n.views,(a,r)=>(g(),D("div",{key:r,style:q({position:"absolute",...a.css,background:o.showMask?"#0008":"#0004"})},[A(" \u53EF\u4EE5\u5728\u8FD9\u91CC\u653E\u7F6E\u70ED\u56FE\u94FE\u63A5\u6216\u8986\u76D6\u5C42 "),w("div",{style:q({width:a.css.width,height:a.css.height}),class:"hot-item"},G(r+1),5)],4))),128))],512)}var Ah=H(Fh,[["render",Ch],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinHotArea.vue"]]);const xh={name:"DkMinGrid",props:["list","columnNum","imageStyle","useImageStyle","fontStyle"],data:()=>({value:""})},Bh=["src"];function Sh(t,e,o,n,l,u){const i=_("dk-icon"),a=_("van-grid-item"),r=_("van-grid"),s=_("el-empty");return o.list?.length>0?(g(),T(r,{key:0,border:!1,"column-num":o.columnNum,class:"min-h-30px dk-app-gold-grid",style:{"--van-grid-item-content-background":"none"}},{default:m(()=>[(g(!0),D(L,null,X(o.list,(v,y)=>(g(),T(a,{key:y},{default:m(()=>[v.image?(g(),D("img",{key:0,src:v.image,alt:"",style:q(o.imageStyle)},null,12,Bh)):(g(),D("div",{key:1,class:"flex justify-center items-center",style:q([{display:"flex",background:"#f3f5f7"},o.imageStyle])},[c(i,{icon:"PictureFilled",color:"#BBBFC8"})],4)),w("span",{style:q({...o.fontStyle})},G(v.title),5)]),_:2},1024))),128))]),_:1},8,["column-num"])):(g(),T(s,{key:1}))}var Vh=H(xh,[["render",Sh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinGrid.vue"]]);const ui={DkMinVideo:uh,DkMinSwiperImage:sh,DkMinTitle:hh,DkMinBlank:yh,DkMinTextarea:kh,DkMinHotArea:Ah,DkMinGrid:Vh},$h={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:{}},Ih={class:"bullet-content"},Th=["src"],Rh={class:"over"},Oh=w("div",{class:"bullet-content"},[w("span",{class:"over"},"\u5F53\u524D\u6570\u636E\u7531\u4E8B\u4EF6\u4F20\u5165")],-1),zh=[Oh];function jh(t,e,o,n,l,u){const i=_("van-swipe-item"),a=_("van-swipe");return o.dataType==="default"?(g(),T(a,{key:0,vertical:"",class:"dk-view-bullet-chat",style:q({background:o.bgColor,color:o.textColor}),autoplay:o.autoplay,"show-indicators":!1},{default:m(()=>[(g(!0),D(L,null,X(o.bulletData,(r,s)=>(g(),T(i,{key:s},{default:m(()=>[w("div",Ih,[r.avatar?(g(),D("img",{key:0,src:r.avatar,alt:""},null,8,Th)):A("v-if",!0),w("span",Rh,G(r.text),1)])]),_:2},1024))),128))]),_:1},8,["style","autoplay"])):(g(),D("div",{key:1,class:"dk-view-bullet-chat",style:q([{display:"flex"},{background:o.bgColor,color:o.textColor}])},zh,4))}var Ph=H($h,[["render",jh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewBulletChat.vue"]]);const Nh={name:"DkViewCell",props:{groups:{default:()=>[],type:Array}},data(){return{}},computed:{},mounted(){},methods:{}};function Uh(t,e,o,n,l,u){const i=_("van-cell"),a=_("van-cell-group");return g(),T(a,null,{default:m(()=>[(g(!0),D(L,null,X(o.groups,(r,s)=>(g(),T(i,{key:s,title:r.title,value:r.value},null,8,["title","value"]))),128))]),_:1})}var Mh=H(Nh,[["render",Uh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCell.vue"]]);const Lh={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:{}},Hh={class:"dk-view-common-btn"},Wh={key:0,class:"btn"},qh={key:1,class:"f-btn"},Gh={key:0,class:"image-content"},Yh=["src","width"];function Xh(t,e,o,n,l,u){const i=_("van-button"),a=_("van-icon");return g(),D("div",Hh,[o.type==="btn"?(g(),D("div",Wh,[c(i,{type:"primary",block:o.block,round:o.round,size:o.size,color:u.vanBtnColor,icon:o.icon},{default:m(()=>[M(G(o.btnText),1)]),_:1},8,["block","round","size","color","icon"])])):(g(),D("div",qh,[o.img?(g(),D("div",Gh,[w("img",{src:o.img,alt:"",width:o.imgSize},null,8,Yh)])):A("v-if",!0),w("div",{style:q(u.textStyle),class:"f-btn-content"},[c(a,{name:o.icon,size:o.iconSize},null,8,["name","size"]),w("span",{style:q({fontSize:o.fontSize+"px"})},G(o.fBtnText),5)],4)]))])}var Jh=H(Lh,[["render",Xh],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewCommonBtn.vue"]]);const Kh={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")}}},Qh={class:"dk-view-dialog"},Zh=w("div",{class:"preview"},"\u70B9\u51FB\u9884\u89C8\u53EF\u4EE5\u67E5\u770B\u5F39\u7A97\u6548\u679C",-1),eg=["innerHTML"];function tg(t,e,o,n,l,u){const i=_("van-dialog");return g(),D("div",Qh,[Zh,l.showDialog?(g(),T(i,{key:0,show:l.showDialog,"onUpdate:show":e[0]||(e[0]=a=>l.showDialog=a),title:o.title,teleport:".phone-body","overlay-style":{position:"absolute"},style:{position:"absolute"}},{default:m(()=>[w("div",{style:{padding:"10px"},innerHTML:o.content},null,8,eg)]),_:1},8,["show","title"])):A("v-if",!0)])}var og=H(Kh,[["render",tg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewDialog.vue"]]);const ng={name:"DkViewGridCellList",props:{value:{default:"",type:String},imgRadius:{default:0,type:Number},gridCellList:{default:()=>{},type:[Array]},fontSize:{default:14,type:Number},type:{default:"cell",type:String},cellImgSize:{default:20,type:Number},imgTextGutter:{default:0,type:Number},columnNum:{default:4,type:Number},square:{default:!1,type:Boolean},gutter:{default:0,type:Number},direction:{default:"vertical",type:String},clickable:{default:!0,type:Boolean},border:{default:!0,type:Boolean},gridImgSize:{default:40,type:Number}},data(){return{}},computed:{},mounted(){},methods:{}},lg={key:0,class:"cell"},ug=["src","alt","width","height"],ag={key:1,class:"grid"},ig=["src","width","height","alt"];function rg(t,e,o,n,l,u){const i=_("dk-icon"),a=_("van-cell"),r=_("van-cell-group"),s=_("van-grid-item"),v=_("van-grid");return o.type==="cell"?(g(),D("div",lg,[c(r,null,{default:m(()=>[(g(!0),D(L,null,X(o.gridCellList,(y,E)=>(g(),T(a,{key:E,"is-link":"",style:q({lineHeight:o.cellImgSize+"px!important"})},{icon:m(()=>[w("img",{src:y.img,alt:y.title,width:o.cellImgSize,height:o.cellImgSize,style:q({borderRadius:o.imgRadius+"px",marginRight:o.imgTextGutter+"px"})},null,12,ug)]),title:m(()=>[w("span",{class:"custom-title",style:q({fontSize:o.fontSize+"px"})},G(y.title),5)]),"right-icon":m(()=>[c(i,{icon:"ArrowRight"}),A(' <div style="color: #999; font-size: 16px">'),A(' <i class="el-icon-arrow-right" />'),A(" </div>")]),_:2},1032,["style"]))),128))]),_:1})])):(g(),D("div",ag,[c(v,{square:o.square,direction:o.direction,gutter:o.gutter,clickable:o.clickable,border:o.border,"column-num":o.columnNum},{default:m(()=>[(g(!0),D(L,null,X(o.gridCellList,(y,E)=>(g(),D(L,null,[y.show?(g(),T(s,{key:E,icon:"photo-o"},{icon:m(()=>[w("img",{src:y.img,width:o.gridImgSize,height:o.gridImgSize,alt:y.title,style:q({borderRadius:o.imgRadius+"px"})},null,12,ig)]),text:m(()=>[w("span",{style:q({fontSize:o.fontSize+"px"})},G(y.title),5)]),_:2},1024)):A("v-if",!0)],64))),256))]),_:1},8,["square","direction","gutter","clickable","border","column-num"])]))}var sg=H(ng,[["render",rg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewGridCellList.vue"]]);const dg={name:"DkViewImage",props:{value:{default:"",type:String},type:{default:"default",type:String},textType:{default:"default",type:String},heightAuto:{default:!1,type:Boolean},showText:{default:!1,type:Boolean},height:{default:"",type:[Number,String]},width:{default:"",type:[Number,String]},borderRadius:{default:"",type:[Number,String]},marginBottom:{default:"",type:[Number,String]},marginRight:{default:"",type:[Number,String]},imageList:{default:()=>[],type:[Array]},fit:{default:"cover",type:String}},data(){return{}},computed:{_style(){const t={};return this.type==="default"?t.marginBottom=this.marginBottom+"px":(t.width=this.width+"%",t.marginRight=this.marginRight+"px"),t.borderRadius=this.borderRadius+"px",t}},mounted(){},methods:{}},cg={key:0};function pg(t,e,o,n,l,u){const i=_("van-image"),a=_("el-empty");return g(),D("div",{class:ne(["dk-view-image","dk-mobile-image-"+o.type])},[(g(!0),D(L,null,X(o.imageList,(r,s)=>(g(),D("div",{key:s,class:"dk-mobile-image-content",style:q(u._style)},[c(i,{src:r.img,fit:o.fit,width:"100%",height:o.heightAuto?o.height:"",style:{overflow:"hidden"}},null,8,["src","fit","height"]),o.showText&&r.title?(g(),D("div",{key:0,class:ne("text-type-"+o.textType)},G(r.title),3)):A("v-if",!0)],4))),128)),o.imageList.length<=0?(g(),D("div",cg,[c(a,{description:"\u8BF7\u6DFB\u52A0\u56FE\u7247\u6570\u636E"})])):A("v-if",!0)],2)}var fg=H(dg,[["render",pg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewImage.vue"]]);const mg={name:"DkViewMusic",props:{musicPath:{default:"",type:String},iconType:{default:"",type:String},iconSize:{default:40,type:Number},rotation:{default:"changeRight",type:String},speed:{default:5,type:Number},imgUrl:{default:"",type:String}},data(){return{}},computed:{_style(){const t=11-this.speed+"s";return{width:this.iconSize+"px",height:this.iconSize+"px",fontSize:this.iconSize+"px",animationDuration:t,animationIterationCount:"infinite",animationTimingFunction:"linear"}}},mounted(){},methods:{}},hg={class:"dk-view-music"},gg={key:0},vg=["src"];function yg(t,e,o,n,l,u){const i=_("van-icon");return g(),D("div",hg,[o.iconType==="image"?(g(),D("div",gg,[w("img",{src:o.imgUrl,width:"100%",style:q(u._style),class:ne([o.rotation,"dk-music-img"]),alt:""},null,14,vg)])):(g(),T(i,{key:1,name:"music-o",class:ne(["dk-music-icon",o.rotation]),style:q(u._style)},null,8,["class","style"]))])}var _g=H(mg,[["render",yg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewMusic.vue"]]);const bg={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 Eg(t,e,o,n,l,u){const i=_("van-nav-bar");return g(),D("div",null,[c(i,{title:o.title,"left-text":o.leftText,"right-text":o.rightText,"left-arrow":o.leftArrow,border:o.border},null,8,["title","left-text","right-text","left-arrow","border"])])}var kg=H(bg,[["render",Eg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNavBar.vue"]]);const Fg={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 wg(t,e,o,n,l,u){const i=_("van-notice-bar");return g(),D("div",null,[c(i,{speed:o.speed,"left-icon":o.leftIcon,text:o.text,color:o.color,background:o.background},null,8,["speed","left-icon","text","color","background"])])}var Dg=H(Fg,[["render",wg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewNoticeBar.vue"]]);const Cg={name:"DkViewSwipe",props:{value:{default:"",type:String},height:{default:"",type:[Number,String]},autoplay:{default:3e3,type:[Number,String]},swipeList:{default:()=>[],type:[Array]},fit:{default:"fill",type:String},bgColor:{default:"",type:String}},data(){return{}},computed:{},watch:{swipeList(t){}},mounted(){},methods:{}};function Ag(t,e,o,n,l,u){const i=_("van-image"),a=_("van-swipe-item"),r=_("van-swipe");return g(),T(r,{class:"dk-view-swipe",autoplay:o.autoplay,"indicator-color":"white",style:q({background:o.bgColor||""})},{default:m(()=>[(g(!0),D(L,null,X(o.swipeList,(s,v)=>(g(),T(a,{key:v},{default:m(()=>[c(i,{src:s.img,fit:o.fit,width:"100%",height:o.height},null,8,["src","fit","height"])]),_:2},1024))),128))]),_:1},8,["autoplay","style"])}var xg=H(Cg,[["render",Ag],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewSwipe.vue"]]);const Bg={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:{}},Sg={class:"dk-view-tabbar"},Vg=["src"];function $g(t,e,o,n,l,u){const i=_("van-tabbar-item"),a=_("van-tabbar");return g(),D("div",Sg,[c(a,{modelValue:l.tmpActive,"onUpdate:modelValue":e[0]||(e[0]=r=>l.tmpActive=r),"active-color":o.activeColor,"inactive-color":o.inactiveColor,style:q({backgroundColor:o.bgColor}),fixed:!1},{default:m(()=>[(g(!0),D(L,null,X(o.tabBars,(r,s)=>(g(),T(i,{key:s,icon:r.icon,dot:r.badge==="dot",badge:r.badge==="badge"?r.badge_text:""},Ft({default:m(()=>[w("span",null,G(r.title),1)]),_:2},[r.useImg===!0?{name:"icon",fn:m(()=>[w("img",{src:r.imgIcon,alt:""},null,8,Vg)]),key:"0"}:void 0]),1032,["icon","dot","badge"]))),128))]),_:1},8,["modelValue","active-color","inactive-color","style"])])}var Ig=H(Bg,[["render",$g],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTabbar.vue"]]);const Tg={name:"DkViewTextarea",props:{textarea:{default:"",type:String}},data(){return{}},computed:{},mounted(){},methods:{}},Rg=["innerHTML"];function Og(t,e,o,n,l,u){return g(),D("div",{innerHTML:o.textarea},null,8,Rg)}var zg=H(Tg,[["render",Og],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTextarea.vue"]]);const jg={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:{}},Pg={class:"dk-view-title"},Ng={class:"title-left"};function Ug(t,e,o,n,l,u){const i=_("van-icon"),a=_("van-image");return g(),D("div",Pg,[w("div",Ng,[o.prefix==="icon"?(g(),T(i,{key:0,name:o.icon,style:q({color:o.prefixColor,fontSize:o.iconSize+"px"})},null,8,["name","style"])):A("v-if",!0),o.prefix==="image"?(g(),T(a,{key:1,src:o.prefixImage,alt:"",class:"dk-title-img",width:o.imageWidth,height:o.imageHeight},null,8,["src","width","height"])):A("v-if",!0),o.prefix==="square"?(g(),D("div",{key:2,style:q({width:o.squareWidth+"px",height:o.squareHeight+"px",background:o.prefixColor})},null,4)):A("v-if",!0),w("div",{style:q({marginLeft:o.titleMarginLeft+"px",color:o.color,fontWeight:o.bold?800:400})},G(o.title),5)]),o.showRight?(g(),D("div",{key:0,class:"title-right",style:q({color:o.rColor,fontSize:o.rSize+"px"})},G(o.rTitle),5)):A("v-if",!0)])}var Mg=H(jg,[["render",Ug],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewTitle.vue"]]);const Lg={name:"DkViewVideo",props:{poster:{default:"",type:String},isHeight:{default:!1,type:Boolean},height:{default:0,type:Number},videoPath:{default:"",type:String},isOpenClose:{default:!1,type:Boolean}},data(){return{}},computed:{_style(){const t={};return this.height&&this.isHeight?t.height=this.height+"px":t.height="240px",t}},mounted(){},methods:{}},Hg={style:{position:"relative"},class:"dk-video-content"},Wg={class:"video-preview"},qg={key:0},Gg={key:1};function Yg(t,e,o,n,l,u){const i=_("el-image"),a=_("dk-icon");return g(),D("div",{class:"dk-view-video",style:q(u._style)},[w("div",Hg,[o.poster?(g(),T(i,{key:0,src:o.poster,alt:"",class:"poster"},null,8,["src"])):A("v-if",!0),w("div",Wg,[c(a,{icon:"VideoPlay",size:24}),o.videoPath?(g(),D("p",Gg,"\u5F53\u524D\u4E0D\u652F\u6301\u9884\u89C8,\u8BF7\u5230\u5B9E\u9645\u9875\u9762\u67E5\u770B")):(g(),D("p",qg,"\u8BF7\u9009\u62E9\u6216\u8005\u4E0A\u4F20\u60A8\u7684\u89C6\u9891"))])])],4)}var Xg=H(Lg,[["render",Yg],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\web\\DkViewVideo.vue"]]);const ai={DkViewBulletChat:Ph,DkViewCell:Mh,DkViewCommonBtn:Jh,DkViewDialog:og,DkViewGridCellList:sg,DkViewImage:fg,DkViewMusic:_g,DkViewNavBar:kg,DkViewNoticeBar:Dg,DkViewSwipe:xg,DkViewTabbar:Ig,DkViewTextarea:zg,DkViewTitle:Mg,DkViewVideo:Xg},jt="/adminapi/cloud_diy/";function Jg(t,e,o,n){return me({url:jt+"getList",method:"post",data:{page_name:t,page:e,search:o,size:n}})}function Kg(t){return me({url:jt+"down",method:"post",data:{id:t}})}function Qg(t,e,o){return me({url:jt+"getDiyForm",method:"post",data:{id:t,page_name:e,diy_data:o}})}function Zg(){return me({url:jt+"getSiteMsg",method:"post",data:{}})}function ev(t,e){return me({url:jt+"getCheckForm",method:"post",data:{id:t,state:e}})}function tv(t){return me({url:jt+"delDiy",method:"post",data:{id:t}})}const ov={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(()=>{Kg(this.chooseDiy.id).then(t=>{this.$emit("submit",t.data)})}).catch(()=>{})},onChooseDiy(t){this.chooseDiy=t},getDiyList(t){this.page=t||this.page,this.loading=!0,Jg(this.pageName,this.page,this.search,this.pageSize).then(e=>{this.list=e.data,this.total=e.msg,this.loading=!1}).catch(e=>{this.errMsg=e.msg,this.errCode=-1,this.loading=!1})},getSiteMsg(){Zg().then(t=>{this.site=t.data})},getDiyForm(t=0){Qg(t,this.pageName,this.diyData).then(e=>{console.log("getDiyForm",e),this.formData=e.data,this.width="600px",this.$refs.formRef.show()}).catch(e=>{this.$message.error(e.msg)})},getCheckForm(){ev(this.chooseDiy.id,this.chooseDiy.state).then(t=>{this.formData=t.data,this.width="400px",this.$refs.formRef.show()}).catch(t=>{this.$message.error(t.msg)})},delDiy(){this.$confirm("\u786E\u5B9A\u8981\u5220\u9664\u5F53\u524D\u6A21\u677F\uFF0C\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{tv(this.chooseDiy.id).then(t=>{this.$message.success(t.msg),this.getDiyList(1)}).catch(t=>{this.$message.error(t.msg)})}).catch(()=>{})},onSubmit(){this.getDiyList(0)}}},nv={class:"diy-cloud"},lv={class:"diy-header"},uv={class:"diy-search"},av={class:"diy-content"},iv={key:0,class:"cl"},rv=["onClick"],sv={key:0,class:"mask"},dv={class:"type"},cv={key:1,class:"tag-list"},pv={key:0,class:"tag"},fv={key:1,class:"tag"},mv={class:"title over"},hv={key:1,style:{display:"flex","align-items":"center","justify-content":"center",height:"500px"}},gv={class:"diy-footer"};function vv(t,e,o,n,l,u){const i=_("el-option"),a=_("el-select"),r=_("el-button"),s=_("el-input"),v=_("el-image"),y=_("el-tag"),E=_("van-icon"),F=_("el-empty"),C=_("el-pagination"),f=_("dk-form"),V=pt("loading");return g(),D("div",nv,[w("div",lv,[w("div",uv,[c(a,{modelValue:l.search.state,"onUpdate:modelValue":e[0]||(e[0]=B=>l.search.state=B),placeholder:"\u72B6\u6001"},{default:m(()=>[c(i,{label:"\u5168\u90E8\u72B6\u6001",value:""}),l.site.level>0?(g(),T(i,{key:0,label:"\u672A\u901A\u8FC7",value:"-1"})):A("v-if",!0),l.site.level>0?(g(),T(i,{key:1,label:"\u672A\u5BA1\u6838",value:"0"})):A("v-if",!0),c(i,{label:"\u5DF2\u5BA1\u6838",value:"1"}),c(i,{label:"\u5DF2\u63A8\u8350",value:"2"})]),_:1},8,["modelValue"]),c(a,{modelValue:l.search.look,"onUpdate:modelValue":e[1]||(e[1]=B=>l.search.look=B),placeholder:"\u67E5\u770B",class:"u-m-l-10"},{default:m(()=>[c(i,{label:"\u5168\u90E8\u6A21\u677F",value:""}),c(i,{label:"\u6211\u7684\u6A21\u677F",value:"me"}),c(i,{label:"\u4ED6\u4EBA\u6A21\u677F",value:"other"})]),_:1},8,["modelValue"]),c(s,{modelValue:l.search["name like"],"onUpdate:modelValue":e[3]||(e[3]=B=>l.search["name like"]=B),placeholder:"\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0",clearable:"",onClear:e[4]||(e[4]=B=>u.getDiyList(0))},{append:m(()=>[c(r,{icon:"Search",onClick:e[2]||(e[2]=B=>u.getDiyList(1))})]),_:1},8,["modelValue"])]),w("div",null,[l.site.level>0?(g(),T(r,{key:0,type:"warning",disabled:!l.chooseDiy.id,onClick:u.getCheckForm},{default:m(()=>[M("\u5BA1\u6838 ")]),_:1},8,["disabled","onClick"])):A("v-if",!0),l.site.level>1?(g(),T(r,{key:1,type:"danger",disabled:!l.chooseDiy.id,onClick:u.delDiy},{default:m(()=>[M("\u5220\u9664")]),_:1},8,["disabled","onClick"])):A("v-if",!0),l.site.level>0||l.site.site_id===l.chooseDiy.site_id?(g(),T(r,{key:2,type:"info",disabled:!l.chooseDiy.id,onClick:e[5]||(e[5]=B=>u.getDiyForm(l.chooseDiy.id))},{default:m(()=>[M("\u7F16\u8F91 ")]),_:1},8,["disabled"])):A("v-if",!0),c(r,{type:"primary",icon:"Upload",onClick:e[6]||(e[6]=B=>u.getDiyForm())},{default:m(()=>[M("\u4E0A\u4F20\u65B0\u6A21\u677F")]),_:1})])]),A("-------------\u6A21\u677F\u5217\u8868------------------------"),fe((g(),D("div",av,[!l.loading&&l.list.length>0?(g(),D("ul",iv,[(g(!0),D(L,null,X(l.list,(B,k)=>(g(),D("li",{key:k,class:ne({choose:l.chooseDiy.id===B.id}),onClick:d=>u.onChooseDiy(B)},[c(v,{src:B.cover_image,class:"cover",fit:"contain"},null,8,["src"]),B.state<=0?(g(),D("div",sv)):A("v-if",!0),w("div",dv,[B.state==="0"?(g(),T(y,{key:0,effect:"dark"},{default:m(()=>[M("\u5BA1\u6838\u4E2D")]),_:1})):A("v-if",!0),B.state==="-1"?(g(),T(y,{key:1,type:"danger",effect:"dark"},{default:m(()=>[M("\u5BA1\u6838\u672A\u901A\u8FC7")]),_:1})):A("v-if",!0)]),B.state>0?(g(),D("div",cv,[B.state>=2?(g(),D("span",pv,[c(E,{name:"good-job"}),M("\u63A8\u8350")])):A("v-if",!0),B.down_count>100?(g(),D("span",fv,[c(E,{name:"fire"}),M("\u70ED\u95E8")])):A("v-if",!0)])):A("v-if",!0),w("div",mv,G(B.name),1)],10,rv))),128))])):(g(),D("div",hv,[l.errCode===0?(g(),T(F,{key:0,description:"\u5F53\u524D\u8FD8\u6CA1\u6A21\u677F\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u4E0A\u4F20\u81EA\u5DF1\u7684\u6A21\u677F\u5427"})):(g(),T(F,{key:1,description:l.errMsg},null,8,["description"]))])),c(C,{background:"",layout:"total,prev, pager, next",total:l.total,"current-page":l.page,"page-size":l.pageSize,"hide-on-single-page":"",onCurrentChange:u.getDiyList},null,8,["total","current-page","page-size","onCurrentChange"])])),[[V,l.loading]]),w("div",gv,[c(r,{type:"primary",style:{width:"300px"},disabled:!l.chooseDiy.id,onClick:u.submit},{default:m(()=>[M("\u786E\u5B9A")]),_:1},8,["disabled","onClick"])]),c(f,{ref:"formRef","is-dialog":!0,"form-data":l.formData,onSubmit:u.onSubmit},null,8,["form-data","onSubmit"])])}var yv=H(ov,[["render",vv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DiyCloud.vue"]]);class _v{events=[];constructor(){}addEvent(e){this.events.push({id:e.id,label:e.label,value:e.value})}addEvents(e){this.events.push(...e.map(o=>({id:o.id,label:o.label,value:o.value})))}getAllEvents(){return this.events}getEventById(e){return this.events.find(o=>o.id===e)}removeEventById(e){const o=this.events.findIndex(n=>n.id===e);o!==-1&&this.events.splice(o,1)}removeEventByLabel(e){const o=this.events.findIndex(n=>n.label===e);o!==-1&&this.events.splice(o,1)}removeAllEvent(){this.events=[]}}Ae.register({name:"help",init({value:t},e){Fn(t)||(t=[t]),e.suffix={type:"p",children:t,class:"form-help"}}});const bv=P({name:"DkPageDiy",components:{DiyCloud:yv,PreviewPhone:fm,DragForm:Ae.$form()},props:li,setup(t){const{menu:e,height:o,mask:n,locale:l}=yn(t),u=Kr(),i=O({active:null});eo("fcx",i),eo("diy",u);const a=new _v,r=Qr(t,"config",{}),s=t.type==="web"?jm:Xm,v=t.type==="web"?Pm:Jm;if(t.type==="web")for(const d in ai)Ae.component(d,ai[d]);else for(const d in ui)Ae.component(d,ui[d]);const y=d=>{const h=["DragTool","DragBox"],p=[];return h.indexOf(d.type)>-1?d.children.length>0?(d.children.forEach(b=>{p.push(...y(b))}),p):[]:[d]},E=d=>{const h=[];return d.forEach(p=>{y(p).forEach(S=>{if(S._id){const x={id:S._id,type:S.type,name:S.config?.config?.label||"",children:[]};S.children&&S.children.length>0&&(x.children=E(S.children)),h.push(x)}})}),h},F=Q(()=>E(f.children)),C=Q(()=>{const d={};let h;for(let p=0;p<f.children.length;p++)f.children[p].children.length>0&&(h=f.children[p].children[0].type,d[h]?d[h]=d[h]+1:d[h]=1);return d}),f=ie({cacheProps:{},moveRule:null,addRule:null,added:null,activeTab:"page",activeRule:null,children:O([]),menuList:e.value||v(),showBaseRule:!1,showDkSettingRule:!1,visible:{preview:!1},preview:{state:!1,rule:[],option:{}},diyCloud:{pageName:"",show:!1},dragForm:O({rule:[],api:{},option:{form:{},submitBtn:!1}}),dkSettingForm:{rule:al(),api:{},options:{form:{labelPosition:"left",size:"small",labelWidth:"82px"},submitBtn:!1,mounted:d=>{d.activeRule=f.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=f.activeRule,d.setValue(d.options.formData||{})}}},isDragging:!1,startValue:0,dragName:"",asideValue:0,trackMouseBound:null,stopChangeBound:null,rightAside:{style:{width:t.rightAsideWidth},hide:!1},leftAside:{style:{width:t.leftAsideWidth},hide:!1},treeAside:{style:{height:"500px",minHeight:"30px",maxHeight:"30px"},hide:!0,treeData:[]},leftTabsName:"component"});function V(d){return Array.isArray(d)?d.map(h=>V(h)):(typeof d=="object"&&d!==null&&Array.isArray(d.children)&&(d.children=d.children.filter(h=>typeof h=="object"&&h!==null),d.children=V(d.children)),d)}Y(()=>f.dragForm,()=>{f.treeAside.treeData=k.parseRule(zt(f.dragForm.api.rule[0].children),!0),f.treeAside.treeData=V(f.treeAside.treeData)},{deep:!0}),Y(()=>f.preview.state,function(d){d||ze(()=>{f.preview.rule=f.preview.option=null})});let B=null;const k={clear(d="all"){(d==="all"||d==="rule")&&k.setRule([]),(d==="all"||d==="page")&&k.setPageConfig({})},get(){return{rule:k.getRule(),config:k.getPageConfig()}},set(d){if(!d)return;const h=d.config?d.config:{};k.setPageConfig(h),k.setRule(d.rule)},unWatchActiveRule(){B&&B(),B=null},watchActiveRule(){k.unWatchActiveRule(),B=Y(()=>f.activeRule,function(d){d&&k.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren(d){return ie({children:d}).children},addMenu(d){if(!d.name||!d.list)return;let h=!0;f.menuList.forEach((p,b)=>{p.name===d.name&&(f.menuList[b]=d,h=!1)}),h&&f.menuList.push(d)},removeMenu(d){[...f.menuList].forEach((h,p)=>{h.name===d&&f.menuList.splice(p,1)})},setMenuItem(d,h){f.menuList.forEach(p=>{p.name===d&&(p.list=h)})},appendMenuItem(d,h){f.menuList.forEach(p=>{p.name===d&&p.list.push(...Array.isArray(h)?h:[h])})},removeMenuItem(d){f.menuList.forEach(h=>{let p;Ue.String(d)?[...h.list].forEach((b,S)=>{b.name===d&&h.list.splice(S,1)}):(p=h.list.indexOf(d))>-1&&h.list.splice(p,1)})},addComponent(d){Array.isArray(d)?d.forEach(h=>{s[h.name]=h}):s[d.name]=d},getParent(d){let h=d.__fc__.parent.rule;const p=h.config;return p&&p.config.inside&&(d=h,h=h.__fc__.parent.rule),{root:h,parent:d}},makeDrag(d,h,p,b){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:h},children:p,on:b}},makeDragRule(d){return k.makeChildren([k.makeDrag(!0,"draggable",d,{add:(h,p)=>k.dragAdd(d,p),end:(h,p)=>k.dragEnd(d,p),start:(h,p)=>k.dragStart(d,p),unchoose:(h,p)=>k.dragUnchoose(d,p)})])},previewFc(){f.preview.state=!0,f.preview.rule=k.getRule(),f.preview.option=k.getOption()},getPageConfig(){return f.dkPageForm.options.formData},setPageConfig(d){(!d||Fn(d))&&(d={}),f.dkPageForm.api.coverValue(d)},showDiyCloud(d){console.log("123");const h=k.get();f.diyCloud.pageName=d,f.diyCloud.show=!0,f.diyCloud.diy_data=h},downCloudConfig(d){k.set(d),f.diyCloud.show=!1},getRule(){return k.parseRule(zt(f.dragForm.api.rule[0].children))},getJson(){return Ae.toJson(k.getRule())},setRule(d){d||(d=[]),f.children=k.makeChildren(k.loadRule(Ue.String(d)?Ae.parseJson(d):zt(d))),k.clearActiveRule(),f.dragForm.rule=k.makeDragRule(f.children)},clearActiveRule(){f.activeRule=null,f.activeTab="page"},loadRule(d){const h=[];return d.forEach(p=>{if(Ue.String(p))return h.push(p);const b=s[p._fc_drag_tag]||s[p.type],S=p.children;if(p.children=[],p.control&&(p._control=p.control,delete p.control),b){if(p=k.makeRule(b,p),S){let x=p.children[0].children;b.drag&&(x=x[0].children),x.push(...k.loadRule(S))}}else S&&(p.children=k.loadRule(S));h.push(p)}),h},parseRule(d,h=!1){return[...d].reduce((p,b)=>Ue.String(b)?(p.push(b),p):b.type==="DragBox"?(p.push(...k.parseRule(b.children,h)),p):b.type==="DragTool"&&(b=b.children[0],b.type==="DragBox")?(p.push(...k.parseRule(b.children,h)),p):(b&&(b={...b},b.children&&b.children.length&&(b.children=k.parseRule(b.children,h)),delete b.key,delete b.component,h||(delete b._id,b.config&&delete b.config.config),b.effect&&(delete b.effect._fc,delete b.effect._fc_tool),b._control&&(b.control=b._control,delete b._control),Object.keys(b).filter(S=>Array.isArray(b[S])&&b[S].length===0||Ue.Object(b[S])&&Object.keys(b[S]).length===0).forEach(S=>{delete b[S]}),p.push(b)),p),[])},baseChange(d,h,p,b){f.activeRule&&b[f.activeRule._id]===f.activeRule&&(k.unWatchActiveRule(),f.activeRule[d]=h,k.watchActiveRule(),f.activeRule.config.config?.watch?.["$"+d]?.({field:d,value:h,api:b,rule:f.activeRule}))},dkSettingChange(d,h,p,b,S){f.activeRule&&b[f.activeRule._id]===f.activeRule&&(f.activeRule.setting[d]=h)},propRemoveField(d,h,p){if(f.activeRule&&p[f.activeRule._id]===f.activeRule){k.unWatchActiveRule();const b=d;if(f.dragForm.api.sync(f.activeRule),d.indexOf("formCreate")===0){if(d=d.replace("formCreate",""),!d)return;d=wa(d),d.indexOf("effect")===0&&d.indexOf(">")>-1?delete f.activeRule.effect[d.split(">")[1]]:d.indexOf("props")===0&&d.indexOf(">")>-1?delete f.activeRule.props[d.split(">")[1]]:d.indexOf("attrs")===0&&d.indexOf(">")>-1?f.activeRule.attrs[d.split(">")[1]]=value:d==="child"?delete f.activeRule.children[0]:d&&(f.activeRule[d]=void 0)}else delete f.activeRule.props[d];k.watchActiveRule(),f.activeRule.config.config?.watch?.[b]?.({field:b,value:void 0,api:p,rule:f.activeRule})}},propChange(d,h,p,b){if(f.activeRule&&b[f.activeRule._id]===f.activeRule){k.unWatchActiveRule();const S=d;if(d.indexOf("formCreate")===0){if(d=d.replace("formCreate",""),!d)return;d=wa(d),d.indexOf("effect")===0&&d.indexOf(">")>-1?f.activeRule.effect[d.split(">")[1]]=h:d.indexOf("props")===0&&d.indexOf(">")>-1?f.activeRule.props[d.split(">")[1]]=h:d.indexOf("attrs")===0&&d.indexOf(">")>-1?f.activeRule.attrs[d.split(">")[1]]=h:d==="child"?f.activeRule.children[0]=h:f.activeRule[d]=h}else f.activeRule.props[d]=h;k.watchActiveRule(),f.activeRule.config.config?.watch?.[S]?.({field:S,value:h,api:b,rule:f.activeRule})}},dkPageChange(d,h,p,b,S){f.dkPageForm.options.formData[d]=h},nodeClick(d){k.chooseRule(d._id)},delRule(d,h=null){h=h||f.children,h.forEach(p=>{if(p._id===d){if(p.config.config.inside)p.__fc__.rm(),u.emit("delete",p);else{const b=k.getParent(p);u.emit("delete",b.root.children[0]),b.root.__fc__.rm()}k.clearActiveRule()}else p.children&&p.children.length>0&&k.delRule(d,p.children)})},chooseRule(d,h=null){h=h||f.children,h.forEach(p=>{if(p._id===d)if(u.emit("active",p),k.toolActive(p),p.config.config.inside)i.value.active=p.children[0]?.props.unique||null;else{const b=k.getParent(p);i.value.active=b.root?.props?.unique||null}else p.children&&p.children.length>0&&k.chooseRule(d,p.children)})},toolActive(d){k.unWatchActiveRule(),f.activeRule&&(delete f.propsForm.api[f.activeRule._id],delete f.dragForm.api.activeRule),f.activeRule=d,f.dragForm.api.activeRule=d,ze(()=>{f.activeTab="props",ze(()=>{f.propsForm.api[f.activeRule._id]=f.activeRule,f.dkSettingForm.api[f.activeRule._id]=f.activeRule})}),f.cacheProps[d._id]||(f.cacheProps[d._id]=d.config.config.props(d)),f.propsForm.rule=f.cacheProps[d._id],k.updateRuleFormData(),k.watchActiveRule(),k.updateShowStyle(d)},updateShowStyle(d){if(f.showDkSettingRule=d.showStyle,f.showDkSettingRule)if(f.dkSettingForm.rule=al(d),Object.values(d.setting).length>0)f.dkSettingForm.options.formData=d.setting;else{const h={};al(d).forEach(p=>{h[p.field]=p.value}),f.dkSettingForm.options.formData=h}},updateRuleFormData(){const d=f.activeRule,h={...d.props,formCreateChild:zt(d.children[0])};Object.keys(d).forEach(p=>{["effect","config","payload","id","type"].indexOf(p)<0&&(h["formCreate"+Za(p)]=zt(d[p]))}),["props","effect","attrs"].forEach(p=>{d[p]&&Object.keys(d[p]).forEach(b=>{h["formCreate"+Za(p)+">"+b]=zt(d[p][b])})}),f.propsForm.value=h,f.showBaseRule=Qf(d,"field")&&d.input!==!1&&(!r.value||r.value.showBaseForm!==!1),f.showBaseRule&&f.dragForm.api.refreshValidate()},dragStart(d){f.moveRule=d,f.added=!1},dragUnchoose(d,h){f.addRule={children:d,oldIndex:h.oldIndex}},dragAdd(d,h){const p=h.newIndex,b=h.item._underlying_vm_;if(!b||b.__fc__){if(f.addRule){const S=f.addRule.children.splice(f.addRule.oldIndex,1);d.splice(p,0,S[0])}}else{const S=k.makeRule(s[b.name]),x=S.children[0].config.config,$=x.count?x.count:99;if((C.value[x.name]?C.value[x.name]:0)>=$)return Jl({title:"\u8B66\u544A",message:"\u5F53\u524D\u6A21\u5757\u53EA\u80FD\u6DFB\u52A0"+x.count+"\u4E2A",type:"warning"}),!1;d.splice(p,0,S)}f.added=!0},dragEnd(d,{newIndex:h,oldIndex:p}){if(!f.added&&!(f.moveRule===d&&h===p)){const b=f.moveRule.splice(p,1);d.splice(h,0,b[0])}f.moveRule=null,f.addRule=null,f.added=!1},makeRule(d,h){const p=h||d.rule();p.config={config:d},d.component&&(p.component=Kl(d.component)),p.effect||(p.effect={}),p.effect._fc=!0,p._fc_drag_tag=d.name,p.setting=p.setting||{};let b;if(d.drag&&p.children.push(b=k.makeDrag(d.drag,p.type,k.makeChildren([]),{end:(x,$)=>k.dragEnd(x.self.children,$),add:(x,$)=>k.dragAdd(x.self.children,$),start:(x,$)=>k.dragStart(x.self.children,$),unchoose:(x,$)=>k.dragUnchoose(x.self.children,$)})),d.children&&!h)for(let x=0;x<(d.childrenLen||1);x++){const $=k.makeRule(s[d.children]);(b||p).children.push($)}const S=n.value!==void 0?n.value!==!1:d.mask!==!1;return d.inside?(p.children=k.makeChildren([{type:"DragTool",props:{dragBtn:d.dragBtn!==!1,children:d.children,mask:S,setting:p.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:x})=>{const $=k.getParent(x).parent;$.__fc__.rm(),u.emit("delete",$),k.clearActiveRule()},create:({self:x})=>{const $=k.getParent(x);u.emit("create",$.parent),$.root.children.splice($.root.children.indexOf($.parent)+1,0,k.makeRule($.parent.config.config))},addChild:({self:x})=>{const $=k.getParent(x),R=$.parent.config.config,U=s[R.children];U&&(R.drag?$.parent.children[0]:$.parent).children[0].children.push(k.makeRule(U))},copy:({self:x})=>{const $=k.getParent(x);u.emit("copy",$.parent),$.root.children.splice($.root.children.indexOf($.parent)+1,0,Ae.copyRule($.parent))},active:({self:x})=>{const $=k.getParent(x);u.emit("active",$.parent),k.toolActive($.parent)}},children:p.children}]),p):{type:"DragTool",props:{dragBtn:d.dragBtn!==!1,children:d.children,mask:S,setting:p.setting},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:x})=>{u.emit("delete",x.children[0]),x.__fc__.rm(),k.clearActiveRule()},create:({self:x})=>{u.emit("create",x.children[0]);const $=k.getParent(x);$.root.children.splice($.root.children.indexOf($.parent)+1,0,k.makeRule(x.children[0].config.config))},addChild:({self:x})=>{const $=x.children[0].config.config,R=s[$.children];R&&($.drag?x.children[0]:x).children[0].children.push(k.makeRule(R))},copy:({self:x})=>{u.emit("copy",x.children[0]);const $=k.getParent(x),R=Ae.copyRule($.parent);R.props.setting=R.children[0].setting,$.root.children.splice($.root.children.indexOf($.parent)+1,0,R)},active:({self:x})=>{u.emit("active",x.children[0]),k.toolActive(x.children[0])}},children:k.makeChildren([p])}},onResizerMouseDown(d,h){f.isDragging=!0,f.startValue=h.clientX,f.dragName=d,d==="left"&&(f.asideValue=document.getElementsByClassName("_fc-l")[0].offsetWidth),d==="right"&&(f.asideValue=document.getElementsByClassName("_fc-r")[0].offsetWidth),document.body.style.cursor="ew-resize",d==="tree"&&(f.startValue=h.clientY,f.asideValue=document.getElementsByClassName("children-list")[0].offsetHeight,console.log("data.startValue",f.startValue),console.log("data.asideValue",f.asideValue),document.body.style.cursor="n-resize"),f.trackMouseBound=k.onResizerMouseMove.bind(h),f.stopChangeBound=k.onResizerMouseUp.bind(h),document.addEventListener("mousemove",f.trackMouseBound),document.addEventListener("mouseup",f.stopChangeBound)},onResizerMouseUp(){document.removeEventListener("mousemove",f.trackMouseBound),document.removeEventListener("mouseup",f.stopChangeBound),document.body.style.cursor="default",f.isDragging=!1,f.dragName=""},onResizerMouseMove(d){if(f.isDragging){if(f.dragName==="left"){let h=d.clientX-f.startValue+f.asideValue;h>455&&(h=455),h<200&&(h=200),f.leftAside.style.width=h+"px"}if(f.dragName==="right"){let h=f.startValue-d.clientX+f.asideValue;h>800&&(h=800),h<300&&(h=300),f.rightAside.style.width=h+"px"}if(f.dragName==="tree"){let h=f.startValue-d.clientY+f.asideValue;h>800&&(h=800),h<30&&(h=30),f.treeAside.style.height=h+"px"}}},hideAside(d){if(d==="left")f.leftAside.hide?(f.leftAside.hide=!1,delete f.leftAside.style.minWidth,delete f.leftAside.style.maxWidth):(f.leftAside.hide=!0,f.leftAside.style.minWidth="0px",f.leftAside.style.maxWidth="0px");else if(d==="right")f.rightAside.hide?(f.rightAside.hide=!1,delete f.rightAside.style.minWidth,delete f.rightAside.style.maxWidth):(f.rightAside.hide=!0,f.rightAside.style.minWidth="0px",f.rightAside.style.maxWidth="0px");else if(d==="tree")if(f.treeAside.hide){f.treeAside.hide=!1;const h=f.treeAside.style.height;f.treeAside.style={height:h}}else f.treeAside.hide=!0,f.treeAside.style.minHeight="30px",f.treeAside.style.maxHeight="30px"},allowDrop(d,h,p){const b=d.data.config.config,S=h.data.config.config;return!!(p==="inner"&&b.inside&&b.name===S.children||p!=="inner"&&b.name===S.name&&b.inside&&S.inside||p!=="inner"&&!b.inside&&!S.inside||p==="inner"&&!b.inside&&S.inside)},allowDrag(d){if(console.log("allowDrag",d),d.data.type==="DragTool")return!0},nodeDrop(d,h,p,b){k.setRule(f.treeAside.treeData)}};return f.dragForm.rule=k.makeDragRule(k.makeChildren(f.children)),{...yn(f),...k,countObj:C,diyTree:F,eventData:a}},created(){document.body.ondrop=t=>{t.preventDefault(),t.stopPropagation()}}}),Ev={class:"_fc-l-groups"},kv={class:"_fc-l-title"},Fv={class:"_fc-l-icon"},wv={class:"_fc-l-name"},Dv={key:0,class:"_fc-l-count",style:{}},Cv={class:"children-list"},Av={key:0,class:"_fc-tree-node"};function xv(t,e,o,n,l,u){const i=_("dk-icon"),a=_("draggable"),r=_("el-tab-pane"),s=_("el-tree"),v=_("el-tabs"),y=_("el-aside"),E=_("el-header"),F=_("DragForm"),C=_("preview-phone"),f=_("el-container"),V=_("el-dialog"),B=_("diy-cloud"),k=_("dk-dialog"),d=pt("loading");return g(),T(f,{class:"_fc-designer dk-page-diy"},{default:m(()=>[A(" \u5DE6\u8FB9"),c(y,{class:"_fc-l item-box",style:q(t.leftAside.style)},{default:m(()=>[c(v,{modelValue:t.leftTabsName,"onUpdate:modelValue":e[0]||(e[0]=h=>t.leftTabsName=h)},{default:m(()=>[c(r,{label:"\u7EC4\u4EF6\u5217\u8868",name:"component"},{default:m(()=>[w("div",Ev,[(g(!0),D(L,null,X(t.menuList,(h,p)=>(g(),D("div",{key:p,class:"_fc-l-group"},[w("h4",kv,G(h.title),1),c(a,{group:{name:"default",pull:"clone",put:!1},sort:!1,list:h.list,"item-key":"icon",filter:".not-drag",class:"_fc-l-items"},{item:m(({element:b})=>[(g(),D("div",{key:b.id,class:ne(["_fc-l-item",b.count-(t.countObj[b.name]||0)<=0?"not-drag":""])},[w("div",Fv,[c(i,{icon:b.icon,size:24},null,8,["icon"])]),w("span",wv,G(b.label),1),b.count?(g(),D("span",Dv,G(b.count-(t.countObj[b.name]||0)),1)):A("v-if",!0)],2))]),_:2},1032,["list"])]))),128))])]),_:1}),c(r,{label:"\u7ED3\u6784\u5927\u7EB2",name:"tree"},{default:m(()=>[w("div",Cv,[c(s,{draggable:"","highlight-current":"",data:t.treeAside.treeData,props:{value:"type",label:"type"},"allow-drop":t.allowDrop,"default-expand-all":!0,onNodeDrop:t.nodeDrop,onNodeClick:t.nodeClick},{default:m(({data:h})=>[w("div",{class:"el-tree-node-content",style:q(t.activeRule&&t.activeRule._id===h._id?"color:#409eff":"")},[h.config?.config.label?(g(),D("div",Av,[c(i,{icon:h.config?.config.icon,class:"_fc-tree-icon"},null,8,["icon"]),M(" "+G(h.config?.config.label),1)])):A("v-if",!0),c(i,{icon:"Close",class:"close-rule",onClick:ct(p=>t.delRule(h._id),["stop"])},null,8,["onClick"])],4)]),_:1},8,["data","allow-drop","onNodeDrop","onNodeClick"])])]),_:1})]),_:1},8,["modelValue"]),t.leftAside.hide?A("v-if",!0):(g(),D("div",{key:0,class:"aside-resizer",onMousedown:e[1]||(e[1]=h=>t.onResizerMouseDown("left",h)),onMouseup:e[2]||(e[2]=h=>t.onResizerMouseUp("left")),onMousemove:e[3]||(e[3]=h=>t.onResizerMouseMove("left"))},null,32)),w("div",{class:"aside-toggle left-99%",style:q(t.leftAside.hide?"display:block":""),onClick:e[4]||(e[4]=h=>t.hideAside("left"))},[c(i,{icon:t.leftAside.hide?"ArrowRight":"ArrowLeft"},null,8,["icon"])],4)]),_:1},8,["style"]),A(" \u5DE6\u8FB9\u7ED3\u675F"),A(" \u9884\u89C8\u533A"),c(f,{class:"_fc-m"},{default:m(()=>[c(E,{class:"_fc-m-tools",height:"45"},{default:m(()=>[he(t.$slots,"default")]),_:3}),c(C,{"page-config":t.dkPageForm.options.formData},{default:m(()=>[fe(c(F,{api:t.dragForm.api,"onUpdate:api":e[5]||(e[5]=h=>t.dragForm.api=h),rule:t.dragForm.rule,option:t.dragForm.option},null,8,["api","rule","option"]),[[d,t.loading]])]),_:1},8,["page-config"])]),_:3}),A(" \u9884\u89C8\u533A\u7ED3\u675F"),A(" \u53F3\u8FB9\u64CD\u4F5C\u533A"),c(y,{class:"_fc-r",style:q(t.rightAside.style)},{default:m(()=>[fe(c(v,{modelValue:t.activeTab,"onUpdate:modelValue":e[9]||(e[9]=h=>t.activeTab=h)},{default:m(()=>[t.activeRule?(g(),T(r,{key:t.activeRule?"props_"+t.activeRule._id6:"",label:"\u7EC4\u4EF6\u8BBE\u7F6E",name:"props"},{default:m(()=>[c(F,{api:t.propsForm.api,"onUpdate:api":e[6]||(e[6]=h=>t.propsForm.api=h),rule:t.propsForm.rule,option:t.propsForm.options,"model-value":t.propsForm.value,onChange:t.propChange,onRemoveField:t.propRemoveField},null,8,["api","rule","option","model-value","onChange","onRemoveField"])]),_:1})):A("v-if",!0),t.activeRule?(g(),T(r,{key:t.activeRule?"style_"+t.activeRule._id:"",label:"\u6837\u5F0F\u8BBE\u7F6E",name:"style"},{default:m(()=>[fe(c(F,{api:t.dkSettingForm.api,"onUpdate:api":e[7]||(e[7]=h=>t.dkSettingForm.api=h),rule:t.dkSettingForm.rule,option:t.dkSettingForm.options,"model-value":t.dkSettingForm.value,onChange:t.dkSettingChange},null,8,["api","rule","option","model-value","onChange"]),[[Zt,t.showDkSettingRule]])]),_:1})):A("v-if",!0),c(r,{label:"\u9875\u9762\u914D\u7F6E",name:"page"},{default:m(()=>[c(F,{api:t.dkPageForm.api,"onUpdate:api":e[8]||(e[8]=h=>t.dkPageForm.api=h),rule:t.dkPageForm.rule,option:t.dkPageForm.options,onChange:t.dkPageChange},null,8,["api","rule","option","onChange"])]),_:1})]),_:1},8,["modelValue"]),[[Zt,!t.rightAside.hide]]),t.rightAside.hide?A("v-if",!0):(g(),D("div",{key:0,class:"aside-resizer left-0",onMousedown:e[10]||(e[10]=h=>t.onResizerMouseDown("right",h)),onMouseup:e[11]||(e[11]=h=>t.onResizerMouseUp("right")),onMousemove:e[12]||(e[12]=h=>t.onResizerMouseMove("right"))},null,32)),w("div",{class:"aside-toggle right-99%",style:q(t.rightAside.hide?"display:block":""),onClick:e[13]||(e[13]=h=>t.hideAside("right"))},[c(i,{icon:t.rightAside.hide?"ArrowLeft":"ArrowRight"},null,8,["icon"])],4)]),_:1},8,["style"]),A(" \u53F3\u8FB9\u64CD\u4F5C\u533A\u7ED3\u675F"),c(V,{visible:t.preview.state,"onUpdate:visible":e[14]||(e[14]=h=>t.preview.state=h),width:"375px","append-to-body":"",style:{"min-height":"700px"}},{default:m(()=>[A(" <form-create"),A(' v-if="preview.state"'),A(' :rule="preview.rule"'),A(' :option="preview.option"'),A(" />")]),_:1},8,["visible"]),c(k,{modelValue:t.diyCloud.show,"onUpdate:modelValue":e[15]||(e[15]=h=>t.diyCloud.show=h),width:"1200px","append-to-body":"",title:"DIY\u6A21\u677F\u5E02\u573A",top:"10vh"},{default:m(()=>[t.diyCloud.show?(g(),T(B,{key:0,"page-name":t.diyCloud.pageName,"diy-data":t.diyCloud.diy_data,onSubmit:t.downCloudConfig},null,8,["page-name","diy-data","onSubmit"])):A("v-if",!0)]),_:1},8,["modelValue"])]),_:3})}var To=H(bv,[["render",xv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\page-diy.vue"]]);let Bv=1;const Sv=P({name:"DragTool",props:{dragBtn:{default:!1,type:Boolean},children:{default:"",type:String},unique:{default:"",type:String},mask:{default:!1,type:Boolean},setting:{default:()=>{},type:[Object]}},setup(t){const{unique:e}=yn(t),o=Q(()=>e.value||Bv++),n=ot("fcx"),l=ot("previewSetting");return{id:o,state:n,previewSetting:l}},computed:{pageConfig(){return{}},_style(){let t={...this.setting.style,...this.setting.animation};return this.setting.is_position&&(t=Object.assign(t,{...this.setting.position,position:"absolute"})),t},_animate(){return this.setting.animation_preview!==!1&&this.setting.animate&&!this.previewSetting.closeAnimate?"animate__"+this.setting.animate:""}},beforeUnmount(){this.state={}},methods:{active(){this.state.active!==this.id&&(this.state.active=this.id,this.$emit("active"))}}}),Vv={key:0,class:"drag-mask"},$v={class:"drag-r"};function Iv(t,e,o,n,l,u){const i=_("dk-icon");return g(),D("div",{class:ne(["drag-tool animate__animated",[{active:t.state.active===t.id},t._animate]]),style:q(t._style),onClick:e[4]||(e[4]=ct((...a)=>t.active&&t.active(...a),["stop"]))},[t.mask?(g(),D("div",Vv)):A("v-if",!0),w("div",$v,[w("div",{class:"drag-btn",title:"\u6DFB\u52A0\u5F53\u524D\u7EC4\u4EF6",onClick:e[0]||(e[0]=a=>t.$emit("create"))},[c(i,{icon:"CirclePlus"})]),w("div",{class:"drag-btn",title:"\u590D\u5236\u5F53\u524D\u7EC4\u4EF6",onClick:e[1]||(e[1]=a=>t.$emit("copy"))},[c(i,{icon:"CopyDocument"})]),t.children?(g(),D("div",{key:0,class:"drag-btn",title:"\u6DFB\u52A0\u5B50\u7EC4\u4EF6",onClick:e[2]||(e[2]=a=>t.$emit("addChild"))},[c(i,{icon:"fluent:tab-add-20-regular"})])):A("v-if",!0),w("div",{class:"drag-btn drag-btn-danger",title:"\u5220\u9664\u7EC4\u4EF6",onClick:e[3]||(e[3]=a=>t.$emit("delete"))},[c(i,{icon:"Close"})])]),he(t.$slots,"default")],6)}var Tv=H(Sv,[["render",Iv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragTool.vue"]]);const Rv=P({name:"DragBox",props:["rule","tag","formCreateInject"],render(t){const e={...t.$props.rule.props,...t.$attrs};let o=t.tag+"-drag drag-box";Object.keys(t.$slots).length||(o+=" "+t.tag+"-holder"),e.class=o,e.modelValue=[...this.$props.formCreateInject.children];const n={};return t.$slots.default&&t.$slots.default().forEach(u=>{u.key&&(n[u.key]=u)}),Ql(tu,e,{item:({element:l})=>Ql("div",{class:"drag-box-item"},n[l.__fc__.key+"fc"])})}});var Ov=H(Rv,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragBox.vue"]]);const zv=P({name:"DkEventCreateInput"});var jv=P({...zv,props:{modelValue:{default:"",type:String},placeholder:{default:"",type:String},label:{default:"",type:String}},emits:["input","update:modelValue","change"],setup(t,{emit:e}){const o=t,n=O(o.modelValue||"");Y(()=>o.modelValue,i=>{n.value=i}),Y(()=>n.value,i=>{e("change",i),e("update:modelValue",i),e("input",i)});const l=i=>{i=i||32;const a="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",r=a.length;let s="";for(let v=0;v<i;v++)s+=a.charAt(Math.floor(Math.random()*r));return s},u=()=>{n.value=l(6)};return(i,a)=>{const r=_("el-button"),s=_("el-input");return g(),D("div",null,[c(s,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=v=>n.value=v),placeholder:t.placeholder,clearable:""},{append:m(()=>[c(r,{onClick:u},{default:m(()=>[M("\u968F\u673A")]),_:1})]),_:1},8,["modelValue","placeholder"])])}}}),Pv=H(jv,[["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventCreateInput.vue"]]);const Nv={name:"DkEventSelectInput",inject:["diy"],props:{modelValue:{default:"",type:String},placeholder:{default:"",type:String}},emits:["update:modelValue"],data(){return{data:"",loading:!1,eventData:[]}},computed:{EventData(){return this.diy.proxy.eventData},children(){return this.diy.proxy.children}},watch:{data(){this.$emit("update:modelValue",this.data)}},mounted(){this.data=this.modelValue||"",this.updateEvent()},methods:{updateEvent(){this.loading=!0,this.EventData.removeAllEvent(),this.onUpdateEvent(),this.loading=!1},onClick(){this.data=this.randomString(10)},randomString(t){t=t||32;const e="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",o=e.length;let n="";for(let l=0;l<t;l++)n+=e.charAt(Math.floor(Math.random()*o));return n},onUpdateEvent(){for(let t=0;t<this.children.length;t++)if(this.children[t].children.length>0){const e=this.children[t].children[0],o=e.props,n=e.config.config;if(n.event||!1){const u=n.props();this.findDkEventCreateInput(u,o).forEach(i=>{const a={id:e._id,label:i.props?.label||n.label,value:o[i.field]};a.value&&a.id&&a.label&&this.EventData.addEvent(a)})}}this.eventData=this.EventData.getAllEvents()},findDkEventCreateInput(t,e){const o=[];return t.forEach(n=>{n.children&&o.push(...this.findDkEventCreateInput(n.children)),n.control&&Array.isArray(n.control)&&n.control.forEach(l=>{l.rule.length>0&&o.push(...this.findDkEventCreateInput(l.rule))}),n.type==="DkEventCreateInput"&&o.push(n)}),o}}},Uv={style:{display:"flex"}},Mv={style:{float:"left"}},Lv={style:{float:"right","font-size":"13px",color:"#8492a6"}};function Hv(t,e,o,n,l,u){const i=_("el-option"),a=_("el-select"),r=_("el-button");return g(),D("div",Uv,[c(a,{modelValue:l.data,"onUpdate:modelValue":e[0]||(e[0]=s=>l.data=s),placeholder:"\u8BF7\u9009\u62E9\u8981\u89E6\u53D1\u4E8B\u4EF6",style:{width:"100%"},"allow-create":"",filterable:""},{default:m(()=>[(g(!0),D(L,null,X(l.eventData,s=>(g(),T(i,{key:s.value,label:s.label+"\uFF08"+s.value+"\uFF09",value:s.value},{default:m(()=>[w("span",Mv,G(s.label),1),w("span",Lv,G(s.value),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),c(r,{loading:l.loading,onClick:u.updateEvent},{default:m(()=>[M("\u5237\u65B0")]),_:1},8,["loading","onClick"])])}var Wv=H(Nv,[["render",Hv],["__file","E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventSelectInput.vue"]]);const qv=(t,e)=>{Ae.component(t,e),ei.component(t,e)};Ae.component("DragTool",Tv),Ae.component("DragBox",Ov),Ae.component("DkEventCreateInput",Pv),Ae.component("DkEventSelectInput",Wv),Ae.register("_fc",{init(t,e){e._id=ti(),t.value&&(e.effect._fc=!1)}}),Ae.register("_fc_tool",{init(t,e){e.props.unique=ti()}}),To.formCreate=ei,To.designerForm=Ae,To.component=qv;const ii=ae(To),ri={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>
|