(function(e){function t(t){for(var o,r,l=t[0],i=t[1],u=t[2],s=0,f=[];sPPTIST
",rotate:0},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"基于 Vue 3.x + TypeScript 的在线演示文稿应用
",rotate:0},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"#d14424",style:"solid",width:2}],background:{type:"solid",color:"#ffffff"}}],S={activeElementIdList:[],handleElementId:"",canvasPercentage:90,canvasScale:1,thumbnailsFocus:!1,editorAreaFocus:!1,disableHotkeys:!1,showGridLines:!1,creatingElement:null,availableFonts:[],toolbarState:"slideStyle",theme:{themeColor:"#d14424",fontColor:"#333",fontName:"微软雅黑",backgroundColor:"#fff"},viewportRatio:.5625,slides:I,slideIndex:0,selectedSlidesIndex:[],snapshotCursor:-1,snapshotLength:0,ctrlKeyState:!1,shiftKeyState:!1,screening:!1,clipingImageElementId:""},C=(n("d81d"),n("4de4"),n("caad"),n("2532"),n("7db0"),{currentSlide:function(e){return e.slides[e.slideIndex]||null},currentSlideAnimations:function(e){var t=e.slides[e.slideIndex];if(!t)return null;var n=t.animations;if(!n)return null;var o=t.elements,c=o.map((function(e){return e.id}));return n.filter((function(e){return c.includes(e.elId)}))},activeElementList:function(e){var t=e.slides[e.slideIndex];return t&&t.elements?t.elements.filter((function(t){return e.activeElementIdList.includes(t.id)})):[]},handleElement:function(e){var t=e.slides[e.slideIndex];return t&&t.elements&&t.elements.find((function(t){return e.handleElementId===t.id}))||null},canUndo:function(e){return e.snapshotCursor>0},canRedo:function(e){return e.snapshotCursor=0&&n.snapshotCursor20&&(a.push(c[0]),l--),l>=2&&M.snapshots.update(c[l-2],{index:n.slideIndex}),t.next=14,M.snapshots.bulkDelete(a);case 14:o(y.SET_SNAPSHOT_CURSOR,l-1),o(y.SET_SNAPSHOT_LENGTH,l);case 16:case"end":return t.stop()}}),t)})))()})),Object(N["a"])(T,k.UN_DO,(function(e){return Object(x["a"])(regeneratorRuntime.mark((function t(){var n,o,c,a,r,l,i,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.state,o=e.commit,!(n.snapshotCursor<=0)){t.next=3;break}return t.abrupt("return");case 3:return c=n.snapshotCursor-1,t.next=6,M.snapshots.orderBy("id").toArray();case 6:a=t.sent,r=a[c],l=r.index,i=r.slides,u=l>i.length-1?i.length-1:l,o(y.SET_SLIDES,i),o(y.UPDATE_SLIDE_INDEX,u),o(y.SET_SNAPSHOT_CURSOR,c),o(y.SET_ACTIVE_ELEMENT_ID_LIST,[]);case 14:case"end":return t.stop()}}),t)})))()})),Object(N["a"])(T,k.RE_DO,(function(e){return Object(x["a"])(regeneratorRuntime.mark((function t(){var n,o,c,a,r,l,i,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.state,o=e.commit,!(n.snapshotCursor>=n.snapshotLength-1)){t.next=3;break}return t.abrupt("return");case 3:return c=n.snapshotCursor+1,t.next=6,M.snapshots.orderBy("id").toArray();case 6:a=t.sent,r=a[c],l=r.index,i=r.slides,u=l>i.length-1?i.length-1:l,o(y.SET_SLIDES,i),o(y.UPDATE_SLIDE_INDEX,u),o(y.SET_SNAPSHOT_CURSOR,c),o(y.SET_ACTIVE_ELEMENT_ID_LIST,[]);case 14:case"end":return t.stop()}}),t)})))()})),T),P=n("2909"),R=n("5530"),F=(n("a434"),n("99af"),n("c740"),n("3eea")),H=n.n(F),z=[{label:"Arial",value:"Arial"},{label:"微软雅黑",value:"Microsoft Yahei"},{label:"宋体",value:"SimSun"},{label:"黑体",value:"SimHei"},{label:"楷体",value:"KaiTi"},{label:"新宋体",value:"NSimSun"},{label:"仿宋",value:"FangSong"},{label:"苹方",value:"PingFang SC"},{label:"华文黑体",value:"STHeiti"},{label:"华文楷体",value:"STKaiti"},{label:"华文宋体",value:"STSong"},{label:"华文仿宋",value:"STFangSong"},{label:"华文中宋",value:"STZhongSong"},{label:"华文琥珀",value:"STHupo"},{label:"华文新魏",value:"STXinwei"},{label:"华文隶书",value:"STLiti"},{label:"华文行楷",value:"STXingkai"},{label:"冬青黑体",value:"Hiragino Sans GB"},{label:"兰亭黑",value:"Lantinghei SC"},{label:"偏偏体",value:"Hanzipen SC"},{label:"手札体",value:"Hannotate SC"},{label:"宋体",value:"Songti SC"},{label:"娃娃体",value:"Wawati SC"},{label:"行楷",value:"Xingkai SC"},{label:"圆体",value:"Yuanti SC"},{label:"华文细黑",value:"STXihei"},{label:"幼圆",value:"YouYuan"},{label:"隶书",value:"LiSu"}],U=[{label:"仓耳小丸子",value:"仓耳小丸子"},{label:"优设标题黑",value:"优设标题黑"},{label:"峰广明锐体",value:"峰广明锐体"},{label:"摄图摩登小方体",value:"摄图摩登小方体"},{label:"站酷快乐体",value:"站酷快乐体"},{label:"字制区喜脉体",value:"字制区喜脉体"},{label:"素材集市康康体",value:"素材集市康康体"},{label:"联盟起艺卢帅正锐黑体",value:"联盟起艺卢帅正锐黑体"},{label:"素材集市酷方体",value:"素材集市酷方体"},{label:"途牛类圆体",value:"途牛类圆体"},{label:"锐字真言体",value:"锐字真言体"},{label:"阿里汉仪智能黑体",value:"阿里汉仪智能黑体"}],G=(n("a15b"),function(e){if("string"!==typeof e)return!1;var t="Arial";if(e.toLowerCase()===t.toLowerCase())return!0;var n=100,o=100,c=100,a="a",r=document.createElement("canvas"),l=r.getContext("2d");if(!l)return!1;r.width=o,r.height=c,l.textAlign="center",l.fillStyle="black",l.textBaseline="middle";var i=function(e){l.clearRect(0,0,o,c),l.font="".concat(n,"px ").concat(e,", ").concat(t),l.fillText(a,o/2,c/2);var r=l.getImageData(0,0,o,c).data;return[].slice.call(r).filter((function(e){return 0!==e}))};return i(t).join("")!==i(e).join("")}),q=(L={},Object(N["a"])(L,y.SET_ACTIVE_ELEMENT_ID_LIST,(function(e,t){1===t.length?e.handleElementId=t[0]:e.handleElementId="",e.activeElementIdList=t})),Object(N["a"])(L,y.SET_HANDLE_ELEMENT_ID,(function(e,t){e.handleElementId=t})),Object(N["a"])(L,y.SET_CANVAS_PERCENTAGE,(function(e,t){e.canvasPercentage=t})),Object(N["a"])(L,y.SET_CANVAS_SCALE,(function(e,t){e.canvasScale=t})),Object(N["a"])(L,y.SET_THUMBNAILS_FOCUS,(function(e,t){e.thumbnailsFocus=t})),Object(N["a"])(L,y.SET_EDITORAREA_FOCUS,(function(e,t){e.editorAreaFocus=t})),Object(N["a"])(L,y.SET_DISABLE_HOTKEYS_STATE,(function(e,t){e.disableHotkeys=t})),Object(N["a"])(L,y.SET_GRID_LINES_STATE,(function(e,t){e.showGridLines=t})),Object(N["a"])(L,y.SET_CREATING_ELEMENT,(function(e,t){e.creatingElement=t})),Object(N["a"])(L,y.SET_AVAILABLE_FONTS,(function(e){e.availableFonts=z.filter((function(e){return G(e.value)}))})),Object(N["a"])(L,y.SET_TOOLBAR_STATE,(function(e,t){e.toolbarState=t})),Object(N["a"])(L,y.SET_CLIPING_IMAGE_ELEMENT_ID,(function(e,t){e.clipingImageElementId=t})),Object(N["a"])(L,y.SET_THEME,(function(e,t){e.theme=Object(R["a"])(Object(R["a"])({},e.theme),t)})),Object(N["a"])(L,y.SET_VIEWPORT_RATIO,(function(e,t){e.viewportRatio=t})),Object(N["a"])(L,y.SET_SLIDES,(function(e,t){e.slides=t})),Object(N["a"])(L,y.ADD_SLIDE,(function(e,t){var n,o=Array.isArray(t)?t:[t],c=e.slideIndex+1;(n=e.slides).splice.apply(n,[c,0].concat(Object(P["a"])(o))),e.slideIndex=c})),Object(N["a"])(L,y.UPDATE_SLIDE,(function(e,t){var n=e.slideIndex;e.slides[n]=Object(R["a"])(Object(R["a"])({},e.slides[n]),t)})),Object(N["a"])(L,y.DELETE_SLIDE,(function(e,t){for(var n=Array.isArray(t)?t:[t],o=[],c=function(t){var c=e.slides.findIndex((function(e){return e.id===n[t]}));o.push(c)},a=0;al&&(r=l),e.slideIndex=r,e.slides=e.slides.filter((function(e){return!n.includes(e.id)}))})),Object(N["a"])(L,y.UPDATE_SLIDE_INDEX,(function(e,t){e.slideIndex=t})),Object(N["a"])(L,y.UPDATE_SELECTED_SLIDES_INDEX,(function(e,t){e.selectedSlidesIndex=t})),Object(N["a"])(L,y.ADD_ELEMENT,(function(e,t){var n=Array.isArray(t)?t:[t],o=e.slides[e.slideIndex].elements,c=[].concat(Object(P["a"])(o),Object(P["a"])(n));e.slides[e.slideIndex].elements=c})),Object(N["a"])(L,y.UPDATE_ELEMENT,(function(e,t){var n=t.id,o=t.props,c="string"===typeof n?[n]:n,a=e.slideIndex,r=e.slides[a],l=r.elements.map((function(e){return c.includes(e.id)?Object(R["a"])(Object(R["a"])({},e),o):e}));e.slides[a].elements=l})),Object(N["a"])(L,y.REMOVE_ELEMENT_PROPS,(function(e,t){var n=t.id,o=t.propName,c="string"===typeof o?[o]:o,a=e.slideIndex,r=e.slides[a],l=r.elements.map((function(e){return e.id===n?H()(e,c):e}));e.slides[a].elements=l})),Object(N["a"])(L,y.SET_SNAPSHOT_CURSOR,(function(e,t){e.snapshotCursor=t})),Object(N["a"])(L,y.SET_SNAPSHOT_LENGTH,(function(e,t){e.snapshotLength=t})),Object(N["a"])(L,y.SET_CTRL_KEY_STATE,(function(e,t){e.ctrlKeyState=t})),Object(N["a"])(L,y.SET_SHIFT_KEY_STATE,(function(e,t){e.shiftKeyState=t})),Object(N["a"])(L,y.SET_SCREENING,(function(e,t){e.screening=t})),L),X=Symbol(),W=Object(E["a"])({state:S,getters:C,mutations:q,actions:A}),Y=function(){return Object(E["b"])(X)},Z=Object(j["withScopeId"])("data-v-55178b6a");Object(j["pushScopeId"])("data-v-55178b6a");var J={class:"pptist-editor"},K={class:"layout-content"},Q={class:"layout-content-center"};Object(j["popScopeId"])();var $,ee,te,ne,oe,ce,ae=Z((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("EditorHeader"),l=Object(j["resolveComponent"])("Thumbnails"),i=Object(j["resolveComponent"])("CanvasTool"),u=Object(j["resolveComponent"])("Canvas"),d=Object(j["resolveComponent"])("Remark"),s=Object(j["resolveComponent"])("Toolbar");return Object(j["openBlock"])(),Object(j["createBlock"])("div",J,[Object(j["createVNode"])(r,{class:"layout-header"}),Object(j["createVNode"])("div",K,[Object(j["createVNode"])(l,{class:"layout-content-left"}),Object(j["createVNode"])("div",Q,[Object(j["createVNode"])(i,{class:"center-top"}),Object(j["createVNode"])(u,{class:"center-body",style:{height:"calc(100% - ".concat(e.remarkHeight+40,"px)")}},null,8,["style"]),Object(j["createVNode"])(d,{class:"center-bottom",height:e.remarkHeight,"onUpdate:height":t[1]||(t[1]=function(t){return e.remarkHeight=t}),style:{height:"".concat(e.remarkHeight,"px")}},null,8,["height","style"])]),Object(j["createVNode"])(s,{class:"layout-content-right"})])])}));(function(e){e["UP"]="up",e["DOWN"]="down",e["TOP"]="top",e["BOTTOM"]="bottom"})($||($={})),function(e){e["TOP"]="top",e["BOTTOM"]="bottom",e["LEFT"]="left",e["RIGHT"]="right",e["VERTICAL"]="vertical",e["HORIZONTAL"]="horizontal",e["CENTER"]="center"}(ee||(ee={})),function(e){e["T"]="top",e["B"]="bottom",e["L"]="left",e["R"]="right"}(te||(te={})),function(e){e["LEFT_TOP"]="left-top",e["TOP"]="top",e["RIGHT_TOP"]="right-top",e["LEFT"]="left",e["RIGHT"]="right",e["LEFT_BOTTOM"]="left-bottom",e["BOTTOM"]="bottom",e["RIGHT_BOTTOM"]="right-bottom"}(ne||(ne={})),function(e){e["START"]="start",e["END"]="end",e["MID"]="mid"}(oe||(oe={})),function(e){e["C"]="C",e["X"]="X",e["Z"]="Z",e["Y"]="Y",e["A"]="A",e["G"]="G",e["L"]="L",e["F"]="F",e["D"]="D",e["B"]="B",e["MINUS"]="-",e["EQUAL"]="=",e["DIGIT_0"]="0",e["DELETE"]="DELETE",e["UP"]="ARROWUP",e["DOWN"]="ARROWDOWN",e["LEFT"]="ARROWLEFT",e["RIGHT"]="ARROWRIGHT",e["ENTER"]="ENTER",e["SPACE"]=" ",e["TAB"]="TAB",e["BACKSPACE"]="BACKSPACE"}(ce||(ce={}));var re=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"快速复制粘贴",value:"Ctrl + D"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"}]},{type:"幻灯片放映",children:[{label:"开始放映幻灯片",value:"Ctrl + F"},{label:"切换上一页",value:"↑ / ←"},{label:"切换下一页",value:"↓ / → / Enter / Space"},{label:"退出放映",value:"ESC"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"缩放画布",value:"Ctrl + 鼠标滚动"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"缩放画布到合适大小",value:"Ctrl + 0"},{label:"编辑上一页",value:"↑ / ←"},{label:"编辑下一页",value:"↓ / →"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"删除线",value:"Ctrl + D"}]}],le=(n("3b18"),n("f64c")),ie=(n("a630"),n("3ca3"),n("4106")),ue=n.n(ie),de=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,t="_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",n=t.length,o="",c=0;cLe?(n=Le,c=n*a):c>Le*o.value&&(c=Le*o.value,n=c/a),r({type:"image",id:de(),src:e,width:n,height:c,left:(Le-n)/2,top:(Le*o.value-c)/2,fixedRatio:!0,rotate:0})}))},i=function(e){r({type:"chart",id:de(),chartType:e,left:300,top:81.25,width:400,height:400,themeColor:t.value,gridColor:n.value,data:{labels:["类别1","类别2","类别3","类别4","类别5"],series:[[12,19,5,2,18]]}})},u=function(e,n){var c=new Array(n).fill({id:de(),colspan:1,rowspan:1,text:""}),a=new Array(e).fill(c),l=100,i=36,u=new Array(n).fill(1/n),d=n*l,s=e*i;r({type:"table",id:de(),width:d,height:s,colWidths:u,data:a,left:(Le-d)/2,top:(Le*o.value-s)/2,outline:{width:2,style:"solid",color:"#eeece1"},theme:{color:t.value,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}})},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"请输入内容",n=e.left,o=e.top,c=e.width,a=e.height;r({type:"text",id:de(),left:n,top:o,width:c,height:a,content:t,rotate:0})},s=function(e,n){var o=e.left,c=e.top,a=e.width,l=e.height;r({type:"shape",id:de(),left:o,top:c,width:a,height:l,viewBox:n.viewBox,path:n.path,fill:t.value,fixedRatio:!1,rotate:0})},f=function(e,n){var o=e.left,c=e.top,a=e.start,l=e.end,i={type:"line",id:de(),left:o,top:c,start:a,end:l,points:n.points,color:t.value,style:n.style,width:2};n.isBroken&&(i.broken=[(a[0]+l[0])/2,(a[1]+l[1])/2]),n.isCurve&&(i.curve=[(a[0]+l[0])/2,(a[1]+l[1])/2]),r(i)};return{createImageElement:l,createChartElement:i,createTableElement:u,createTextElement:d,createShapeElement:s,createLineElement:f}},Ve=function(){var e=Y(),t=Object(j["computed"])((function(){return e.getters.currentSlide})),n=Ne(),o=n.addHistorySnapshot,c=we(),a=c.createTextElement,r=function(n){var c,a={},r={},l=Object(ke["a"])(n);try{for(l.s();!(c=l.n()).done;){var i=c.value,u=i.groupId;u&&!a[u]&&(a[u]=de()),r[i.id]=de()}}catch(m){l.e(m)}finally{l.f()}var d,s=t.value.elements.map((function(e){return e.id})),f=Object(ke["a"])(n);try{for(f.s();!(d=f.n()).done;){var p=d.value,b=s.includes(p.id);p.id=r[p.id],b&&(p.left=p.left+10,p.top=p.top+10),p.groupId&&(p.groupId=a[p.groupId])}}catch(m){f.e(m)}finally{f.f()}e.commit(y.ADD_ELEMENT,n),e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,Object.values(r)),o()},l=function(t){var n=t.map((function(e){return Object(R["a"])(Object(R["a"])({},e),{},{id:de(8)})}));e.commit(y.ADD_SLIDE,n),o()},i=function(e){a({left:0,top:0,width:600,height:50},e)},u=function(e,t){var n,o=(null===t||void 0===t?void 0:t.onlySlide)||!1,c=(null===t||void 0===t?void 0:t.onlyElements)||!1;try{n=JSON.parse(ge(e))}catch(s){n=e}if("object"===Object(ye["a"])(n)){var a=n,u=a.type,d=a.data;"elements"!==u||o?"slides"!==u||c||l(d):r(d)}else c||o||i(n)};return{pasteTextClipboardData:u}},_e=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.slideIndex})),n=Object(j["computed"])((function(){return e.state.theme})),o=Object(j["computed"])((function(){return e.state.slides})),c=Object(j["computed"])((function(){return e.getters.currentSlide})),a=Object(j["computed"])((function(){return[].concat(Object(P["a"])(e.state.selectedSlidesIndex),[t.value])})),r=Object(j["computed"])((function(){return o.value.filter((function(e,t){return a.value.includes(t)}))})),l=Object(j["computed"])((function(){return r.value.map((function(e){return e.id}))})),i=Ve(),u=i.pasteTextClipboardData,d=Ne(),s=d.addHistorySnapshot,f=function(){e.commit(y.UPDATE_SLIDE_INDEX,0),e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),e.commit(y.SET_SLIDES,[{id:de(8),elements:[]}])},p=function(n){var c=0;n===ce.UP&&t.value>0?c=t.value-1:n===ce.DOWN&&t.value0&&void 0!==arguments[0]?arguments[0]:l.value;o.value.length===t.length?f():e.commit(y.DELETE_SLIDE,t),e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,[]),s()},g=function(){var e=Object(P["a"])(l.value);b(),h(e)},k=function(){var t=Array.from(Array(o.value.length),(function(e,t){return t}));e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,t)};return{resetSlides:f,updateSlideIndex:p,copySlide:b,pasteSlide:m,createSlide:v,copyAndPasteSlide:O,deleteSlide:h,cutSlide:g,selectAllSlide:k}},Be=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.currentSlide})),o=Ne(),c=o.addHistorySnapshot,a=function(){var o,a=JSON.parse(JSON.stringify(n.value.elements)),r=Object(ke["a"])(a);try{for(r.s();!(o=r.n()).done;){var l=o.value;t.value.includes(l.id)&&(l.lock=!0)}}catch(i){r.e(i)}finally{r.f()}e.commit(y.UPDATE_SLIDE,{elements:a}),e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),c()},r=function(t){var o=JSON.parse(JSON.stringify(n.value.elements));if(t.groupId){var a,r=Object(ke["a"])(o);try{for(r.s();!(a=r.n()).done;){var l=a.value;l.groupId===t.groupId&&(l.lock=!1)}}catch(s){r.e(s)}finally{r.f()}return o}var i,u=Object(ke["a"])(o);try{for(u.s();!(i=u.n()).done;){var d=i.value;if(d.id===t.id){d.lock=!1;break}}}catch(s){u.e(s)}finally{u.f()}e.commit(y.UPDATE_SLIDE,{elements:o}),e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[t.id]),c()};return{lockElement:a,unlockElement:r}},De=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.currentSlide})),o=Ne(),c=o.addHistorySnapshot,a=function(){if(t.value.length){var o=n.value.elements.filter((function(e){return!t.value.includes(e.id)}));e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),e.commit(y.UPDATE_SLIDE,{elements:o}),c()}},r=function(){n.value.elements.length&&(e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),e.commit(y.UPDATE_SLIDE,{elements:[]}),c())};return{deleteElement:a,deleteAllElements:r}},Me=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.activeElementList})),o=Object(j["computed"])((function(){return e.getters.currentSlide})),c=Object(j["computed"])((function(){return e.state.handleElementId})),a=Ne(),r=a.addHistorySnapshot,l=function(){var c;if(n.value.length){var a,l=JSON.parse(JSON.stringify(o.value.elements)),i=de(),u=[],d=Object(ke["a"])(l);try{for(d.s();!(a=d.n()).done;){var s=a.value;t.value.includes(s.id)&&(s.groupId=i,u.push(s))}}catch(m){d.e(m)}finally{d.f()}var f=l.findIndex((function(e){return e.id===u[u.length-1].id})),p=u.map((function(e){return e.id}));l=l.filter((function(e){return!p.includes(e.id)}));var b=f-u.length+1;(c=l).splice.apply(c,[b,0].concat(u)),e.commit(y.UPDATE_SLIDE,{elements:l}),r()}},i=function(){if(n.value.length){var a=n.value.some((function(e){return e.groupId}));if(a){var l,i=JSON.parse(JSON.stringify(o.value.elements)),u=Object(ke["a"])(i);try{for(u.s();!(l=u.n()).done;){var d=l.value;t.value.includes(d.id)&&d.groupId&&delete d.groupId}}catch(f){u.e(f)}finally{u.f()}e.commit(y.UPDATE_SLIDE,{elements:i});var s=c.value?[c.value]:[];e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,s),r()}}};return{combineElements:l,uncombineElements:i}},Ae=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.activeElementList})),o=Ve(),c=o.pasteTextClipboardData,a=De(),r=a.deleteElement,l=function(){if(t.value.length){var o=je(JSON.stringify({type:"elements",data:n.value}));be(o).then((function(){e.commit(y.SET_EDITORAREA_FOCUS,!0)}))}},i=function(){l(),r()},u=function(){me().then((function(e){c(e)})).catch((function(e){return le["a"].warning(e)}))},d=function(){l(),u()};return{copyElement:l,cutElement:i,pasteElement:u,quickCopyElement:d}},Pe=function(){var e=Y(),t=Object(j["computed"])((function(){return e.getters.currentSlide})),n=function(){var n=t.value.elements.filter((function(e){return!e.lock})),o=n.map((function(e){return e.id}));e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,o)};return{selectAllElement:n}},Re=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.currentSlide})),o=Ne(),c=o.addHistorySnapshot,a=function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=n.value.elements.map((function(e){if(t.value.includes(e.id)){var n=e.left,c=e.top;switch(o){case ce.LEFT:n-=a;break;case ce.RIGHT:n+=a;break;case ce.UP:c-=a;break;case ce.DOWN:c+=a;break;default:break}return Object(R["a"])(Object(R["a"])({},e),{},{left:n,top:c})}return e}));e.commit(y.UPDATE_SLIDE,{elements:r}),c()};return{moveElement:a}},Fe=function(){var e=Y(),t=Object(j["computed"])((function(){return e.getters.currentSlide})),n=Ne(),o=n.addHistorySnapshot,c=function(e,t){return{minLevel:e.findIndex((function(e){return e.id===t[0].id})),maxLevel:e.findIndex((function(e){return e.id===t[t.length-1].id}))}},a=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),a=c(e,o),r=a.minLevel,l=a.maxLevel;if(l===e.length-1)return;var i=n[l+1],u=n.splice(r,o.length);if(i.groupId){var d=n.filter((function(e){return e.groupId===i.groupId}));n.splice.apply(n,[r+d.length,0].concat(Object(P["a"])(u)))}else n.splice.apply(n,[r+1,0].concat(Object(P["a"])(u)))}else{var s=e.findIndex((function(e){return e.id===t.id}));if(s===e.length-1)return;var f=n[s+1],p=n.splice(s,1)[0];if(f.groupId){var b=n.filter((function(e){return e.groupId===f.groupId}));n.splice(s+b.length,0,p)}else n.splice(s+1,0,p)}return n},r=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),a=c(e,o),r=a.minLevel;if(0===r)return;var l=n[r-1],i=n.splice(r,o.length);if(l.groupId){var u=n.filter((function(e){return e.groupId===l.groupId}));n.splice.apply(n,[r-u.length,0].concat(Object(P["a"])(i)))}else n.splice.apply(n,[r-1,0].concat(Object(P["a"])(i)))}else{var d=e.findIndex((function(e){return e.id===t.id}));if(0===d)return;var s=n[d-1],f=n.splice(d,1)[0];if(s.groupId){var p=n.filter((function(e){return e.groupId===s.groupId}));n.splice(d-p.length,0,f)}else n.splice(d-1,0,f)}return n},l=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),a=c(e,o),r=a.minLevel,l=a.maxLevel;if(l===e.length-1)return null;var i=n.splice(r,o.length);n.push.apply(n,Object(P["a"])(i))}else{var u=e.findIndex((function(e){return e.id===t.id}));if(u===e.length-1)return null;n.splice(u,1),n.push(t)}return n},i=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),a=c(e,o),r=a.minLevel;if(0===r)return;var l=n.splice(r,o.length);n.unshift.apply(n,Object(P["a"])(l))}else{var i=e.findIndex((function(e){return e.id===t.id}));if(0===i)return;n.splice(i,1),n.unshift(t)}return n},u=function(n,c){var u;c===$.UP?u=a(t.value.elements,n):c===$.DOWN?u=r(t.value.elements,n):c===$.TOP?u=l(t.value.elements,n):c===$.BOTTOM&&(u=i(t.value.elements,n)),u&&(e.commit(y.UPDATE_SLIDE,{elements:u}),o())};return{orderElement:u}},He=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()},ze=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},Ue=function(){return document.mozFullScreen||document.webkitIsFullScreen||document.webkitFullScreen},Ge=function(){var e=Y(),t=function(){He(),e.commit(y.SET_SCREENING,!0)},n=function(){e.commit(y.UPDATE_SLIDE_INDEX,0),t()},o=function(){e.commit(y.SET_SCREENING,!1),Ue()&&ze()};return{enterScreening:t,enterScreeningFromStart:n,exitScreening:o}},qe=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.canvasPercentage})),n=function(n){var o=t.value,c=5,a=120,r=60;"+"===n&&o<=a&&(o+=c),"-"===n&&o>=r&&(o-=c),e.commit(y.SET_CANVAS_PERCENTAGE,o)},o=function(t){e.commit(y.SET_CANVAS_PERCENTAGE,t)};return{scaleCanvas:n,setCanvasPercentage:o}},Xe=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.ctrlKeyState})),n=Object(j["computed"])((function(){return e.state.shiftKeyState})),o=Object(j["computed"])((function(){return e.state.disableHotkeys})),c=Object(j["computed"])((function(){return e.state.activeElementIdList})),a=Object(j["computed"])((function(){return e.getters.handleElement})),r=Object(j["computed"])((function(){return e.getters.currentSlide})),l=Object(j["computed"])((function(){return e.state.editorAreaFocus})),i=Object(j["computed"])((function(){return e.state.thumbnailsFocus})),u=_e(),d=u.updateSlideIndex,s=u.copySlide,f=u.createSlide,p=u.deleteSlide,b=u.cutSlide,m=u.copyAndPasteSlide,v=u.selectAllSlide,O=Me(),h=O.combineElements,g=O.uncombineElements,k=De(),E=k.deleteElement,I=Be(),S=I.lockElement,C=Ae(),N=C.copyElement,x=C.cutElement,T=C.quickCopyElement,L=Pe(),w=L.selectAllElement,V=Re(),_=V.moveElement,B=Fe(),D=B.orderElement,M=Ne(),A=M.redo,P=M.undo,R=Ge(),F=R.enterScreening,H=qe(),z=H.scaleCanvas,U=H.setCanvasPercentage,G=function(){c.value.length?N():i.value&&s()},q=function(){c.value.length?x():i.value&&b()},X=function(){c.value.length?T():i.value&&m()},W=function(){l.value&&w(),i.value&&v()},Z=function(){l.value&&S()},J=function(){l.value&&h()},K=function(){l.value&&g()},Q=function(){c.value.length?E():i.value&&p()},ee=function(e){c.value.length?_(e):e!==ce.UP&&e!==ce.DOWN||d(e)},te=function(e){a.value&&D(a.value,e)},ne=function(){i.value&&f()},oe=function(){if(r.value.elements.length)if(a.value){var t=r.value.elements.findIndex((function(e){return e.id===a.value.id})),n=t>=r.value.elements.length-1?0:t+1,o=r.value.elements[n].id;e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[o])}else{var c=r.value.elements[0];e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[c.id])}},ae=function(c){var a=c.ctrlKey,r=c.shiftKey,u=c.altKey,d=c.metaKey,s=a||d,f=c.key.toUpperCase();if(s&&!t.value&&e.commit(y.SET_CTRL_KEY_STATE,!0),r&&!n.value&&e.commit(y.SET_SHIFT_KEY_STATE,!0),s&&f===ce.F&&(c.preventDefault(),F(),e.commit(y.SET_CTRL_KEY_STATE,!1)),l.value||i.value){if(s&&f===ce.C){if(o.value)return;c.preventDefault(),G()}if(s&&f===ce.X){if(o.value)return;c.preventDefault(),q()}if(s&&f===ce.D){if(o.value)return;c.preventDefault(),X()}if(s&&f===ce.Z){if(o.value)return;c.preventDefault(),P()}if(s&&f===ce.Y){if(o.value)return;c.preventDefault(),A()}if(s&&f===ce.A){if(o.value)return;c.preventDefault(),W()}if(s&&f===ce.L){if(o.value)return;c.preventDefault(),Z()}if(!r&&s&&f===ce.G){if(o.value)return;c.preventDefault(),J()}if(r&&s&&f===ce.G){if(o.value)return;c.preventDefault(),K()}if(u&&f===ce.F){if(o.value)return;c.preventDefault(),te($.TOP)}if(u&&f===ce.B){if(o.value)return;c.preventDefault(),te($.BOTTOM)}if(f===ce.DELETE||f===ce.BACKSPACE){if(o.value)return;c.preventDefault(),Q()}if(f===ce.UP){if(o.value)return;c.preventDefault(),ee(ce.UP)}if(f===ce.DOWN){if(o.value)return;c.preventDefault(),ee(ce.DOWN)}if(f===ce.LEFT){if(o.value)return;c.preventDefault(),ee(ce.LEFT)}if(f===ce.RIGHT){if(o.value)return;c.preventDefault(),ee(ce.RIGHT)}if(f===ce.ENTER){if(o.value)return;c.preventDefault(),ne()}if(f===ce.MINUS){if(o.value)return;c.preventDefault(),z("-")}if(f===ce.EQUAL){if(o.value)return;c.preventDefault(),z("+")}if(f===ce.DIGIT_0){if(o.value)return;c.preventDefault(),U(90)}if(f===ce.TAB){if(o.value)return;c.preventDefault(),oe()}}},re=function(){t.value&&e.commit(y.SET_CTRL_KEY_STATE,!1),n.value&&e.commit(y.SET_SHIFT_KEY_STATE,!1)};Object(j["onMounted"])((function(){document.addEventListener("keydown",ae),document.addEventListener("keyup",re),window.addEventListener("blur",re)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",ae),document.removeEventListener("keyup",re),window.removeEventListener("blur",re)}))},We=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.editorAreaFocus})),n=Object(j["computed"])((function(){return e.state.thumbnailsFocus})),o=Object(j["computed"])((function(){return e.state.disableHotkeys})),c=Ve(),a=c.pasteTextClipboardData,r=we(),l=r.createImageElement,i=function(e){Te(e).then((function(e){return l(e)}))},u=function(e){if((t.value||n.value)&&!o.value&&e.clipboardData){var c=e.clipboardData.items,r=c[0];if(r){var l,u=Object(ke["a"])(c);try{for(u.s();!(l=u.n()).done;){var d=l.value;if("file"===d.kind&&-1!==d.type.indexOf("image")){var s=d.getAsFile();return void(s&&i(s))}}}catch(f){u.e(f)}finally{u.f()}"string"===r.kind&&"text/plain"===r.type&&r.getAsString((function(e){return a(e)}))}}};Object(j["onMounted"])((function(){document.addEventListener("paste",u)})),Object(j["onUnmounted"])((function(){document.removeEventListener("paste",u)}))},Ye=Object(j["withScopeId"])("data-v-772225af");Object(j["pushScopeId"])("data-v-772225af");var Ze={class:"editor-header"},Je={class:"left"},Ke={class:"menu-item"},Qe=Object(j["createTextVNode"])(),$e=Object(j["createVNode"])("span",{class:"text"},"编辑",-1),et=Object(j["createTextVNode"])("撤销"),tt=Object(j["createTextVNode"])("重做"),nt=Object(j["createTextVNode"])("添加页面"),ot=Object(j["createTextVNode"])("删除页面"),ct=Object(j["createTextVNode"])("重置幻灯片"),at=Object(j["createTextVNode"])("导出为"),rt={class:"menu-item"},lt=Object(j["createTextVNode"])(),it=Object(j["createVNode"])("span",{class:"text"},"演示",-1),ut=Object(j["createTextVNode"])("从头开始"),dt=Object(j["createTextVNode"])("从当前页开始"),st={class:"menu-item"},ft=Object(j["createTextVNode"])(),pt=Object(j["createVNode"])("span",{class:"text"},"帮助",-1),bt=Object(j["createTextVNode"])("开发文档"),mt=Object(j["createTextVNode"])("快捷键"),vt={class:"right"},Ot={href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},ht={class:"menu-item"};Object(j["popScopeId"])();var jt=Ye((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconEdit"),l=Object(j["resolveComponent"])("MenuItem"),i=Object(j["resolveComponent"])("Menu"),u=Object(j["resolveComponent"])("Dropdown"),d=Object(j["resolveComponent"])("IconPpt"),s=Object(j["resolveComponent"])("IconHelpcenter"),f=Object(j["resolveComponent"])("Tooltip"),p=Object(j["resolveComponent"])("IconGithub"),b=Object(j["resolveComponent"])("HotkeyDoc"),m=Object(j["resolveComponent"])("Drawer"),v=Object(j["resolveComponent"])("ExportDialog"),O=Object(j["resolveComponent"])("Modal");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Ze,[Object(j["createVNode"])("div",Je,[Object(j["createVNode"])(u,{trigger:["click"]},{overlay:Ye((function(){return[Object(j["createVNode"])(i,null,{default:Ye((function(){return[Object(j["createVNode"])(l,{onClick:t[1]||(t[1]=function(t){return e.undo()})},{default:Ye((function(){return[et]})),_:1}),Object(j["createVNode"])(l,{onClick:t[2]||(t[2]=function(t){return e.redo()})},{default:Ye((function(){return[tt]})),_:1}),Object(j["createVNode"])(l,{onClick:t[3]||(t[3]=function(t){return e.createSlide()})},{default:Ye((function(){return[nt]})),_:1}),Object(j["createVNode"])(l,{onClick:t[4]||(t[4]=function(t){return e.deleteSlide()})},{default:Ye((function(){return[ot]})),_:1}),Object(j["createVNode"])(l,{onClick:t[5]||(t[5]=function(t){return e.toggleGridLines()})},{default:Ye((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e.showGridLines?"关闭网格线":"打开网格线"),1)]})),_:1}),Object(j["createVNode"])(l,{onClick:t[6]||(t[6]=function(t){return e.resetSlides()})},{default:Ye((function(){return[ct]})),_:1}),Object(j["createVNode"])(l,{onClick:t[7]||(t[7]=function(t){return e.exportDialogVisible=!0})},{default:Ye((function(){return[at]})),_:1})]})),_:1})]})),default:Ye((function(){return[Object(j["createVNode"])("div",Ke,[Object(j["createVNode"])(r),Qe,$e])]})),_:1}),Object(j["createVNode"])(u,{trigger:["click"]},{overlay:Ye((function(){return[Object(j["createVNode"])(i,null,{default:Ye((function(){return[Object(j["createVNode"])(l,{onClick:t[8]||(t[8]=function(t){return e.enterScreeningFromStart()})},{default:Ye((function(){return[ut]})),_:1}),Object(j["createVNode"])(l,{onClick:t[9]||(t[9]=function(t){return e.enterScreening()})},{default:Ye((function(){return[dt]})),_:1})]})),_:1})]})),default:Ye((function(){return[Object(j["createVNode"])("div",rt,[Object(j["createVNode"])(d),lt,it])]})),_:1}),Object(j["createVNode"])(u,{trigger:["click"]},{overlay:Ye((function(){return[Object(j["createVNode"])(i,null,{default:Ye((function(){return[Object(j["createVNode"])(l,{onClick:t[10]||(t[10]=function(t){return e.openDoc()})},{default:Ye((function(){return[bt]})),_:1}),Object(j["createVNode"])(l,{onClick:t[11]||(t[11]=function(t){return e.hotkeyDrawerVisible=!0})},{default:Ye((function(){return[mt]})),_:1})]})),_:1})]})),default:Ye((function(){return[Object(j["createVNode"])("div",st,[Object(j["createVNode"])(s),ft,pt])]})),_:1})]),Object(j["createVNode"])("div",vt,[Object(j["createVNode"])(f,{mouseLeaveDelay:0,title:"幻灯片放映"},{default:Ye((function(){return[Object(j["createVNode"])("div",{class:"menu-item",onClick:t[12]||(t[12]=function(t){return e.enterScreening()})},[Object(j["createVNode"])(d,{size:"18",fill:"#666",style:{"margin-top":"2px"}})])]})),_:1}),Object(j["createVNode"])("a",Ot,[Object(j["createVNode"])("div",ht,[Object(j["createVNode"])(p,{size:"18",fill:"#666"})])])]),Object(j["createVNode"])(m,{width:"320",placement:"right",visible:e.hotkeyDrawerVisible,onClose:t[13]||(t[13]=function(t){return e.hotkeyDrawerVisible=!1})},{default:Ye((function(){return[Object(j["createVNode"])(b)]})),_:1},8,["visible"]),Object(j["createVNode"])(O,{visible:e.exportDialogVisible,"onUpdate:visible":t[15]||(t[15]=function(t){return e.exportDialogVisible=t}),footer:null,centered:"",closable:!1,width:680,destroyOnClose:""},{default:Ye((function(){return[Object(j["createVNode"])(v,{onClose:t[14]||(t[14]=function(t){return e.exportDialogVisible=!1})})]})),_:1},8,["visible"])])})),gt=Object(j["withScopeId"])("data-v-47d0351b");Object(j["pushScopeId"])("data-v-47d0351b");var yt={class:"hotkey-doc"},kt={class:"title"},Et={class:"label"},It={class:"value"};Object(j["popScopeId"])();var St=gt((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",yt,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.hotkeys,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:e.type},[Object(j["createVNode"])("div",kt,Object(j["toDisplayString"])(e.type),1),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.children,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"hotkey-item",key:e.label},[Object(j["createVNode"])("div",Et,Object(j["toDisplayString"])(e.label),1),Object(j["createVNode"])("div",It,Object(j["toDisplayString"])(e.value),1)])})),128))],64)})),128))])})),Ct=re,Nt=Object(j["defineComponent"])({name:"hotkey-doc",setup:function(){return{hotkeys:Ct}}});n("ef0f");Nt.render=St,Nt.__scopeId="data-v-47d0351b";var xt=Nt,Tt=Object(j["withScopeId"])("data-v-47e95e66");Object(j["pushScopeId"])("data-v-47e95e66");var Lt={class:"export-dialog"},wt={class:"tabs"},Vt={key:0,class:"content json"},_t={class:"json-preview"},Bt={class:"json-configs"},Dt=Object(j["createTextVNode"])("导出 JSON 文件"),Mt=Object(j["createTextVNode"])("关闭"),At={key:1,class:"content image"},Pt={class:"thumbnails-view"},Rt={class:"thumbnails",ref:"imageThumbnailsRef"},Ft={class:"configs"},Ht=Object(j["createTextVNode"])("导出 PNG 图片"),zt=Object(j["createTextVNode"])("导出 JPEG 图片"),Ut=Object(j["createTextVNode"])("关闭"),Gt={key:0,class:"spinning"},qt=Object(j["createVNode"])("div",{class:"tip"},"正在导出,请稍等...",-1);Object(j["popScopeId"])();var Xt,Wt=Tt((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Button"),l=Object(j["resolveComponent"])("ThumbnailSlide"),i=Object(j["resolveComponent"])("Spin");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Lt,[Object(j["createVNode"])("div",wt,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.tabs,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["tab",{active:t.value===e.currentTab}],key:t.value,onClick:function(n){return e.currentTab=t.value}},Object(j["toDisplayString"])(t.label),11,["onClick"])})),128))]),"json"===e.currentTab?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Vt,[Object(j["createVNode"])("div",_t,[Object(j["createVNode"])("pre",null,Object(j["toDisplayString"])(e.slides),1)]),Object(j["createVNode"])("div",Bt,[Object(j["createVNode"])(r,{class:"btn",type:"primary",onClick:t[1]||(t[1]=function(t){return e.exportJSON()})},{default:Tt((function(){return[Dt]})),_:1}),Object(j["createVNode"])(r,{class:"btn",onClick:t[2]||(t[2]=function(t){return e.emit("close")})},{default:Tt((function(){return[Mt]})),_:1})])])):Object(j["createCommentVNode"])("",!0),"image"===e.currentTab?(Object(j["openBlock"])(),Object(j["createBlock"])("div",At,[Object(j["createVNode"])("div",Pt,[Object(j["createVNode"])("div",Rt,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slides,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"thumbnail",key:e.id,slide:e,size:1600},null,8,["slide"])})),128))],512)]),Object(j["createVNode"])("div",Ft,[Object(j["createVNode"])(r,{class:"btn",type:"primary",onClick:t[3]||(t[3]=function(t){return e.exportImage("png")})},{default:Tt((function(){return[Ht]})),_:1}),Object(j["createVNode"])(r,{class:"btn",type:"primary",onClick:t[4]||(t[4]=function(t){return e.exportImage("jpeg")})},{default:Tt((function(){return[zt]})),_:1}),Object(j["createVNode"])(r,{class:"btn",onClick:t[5]||(t[5]=function(t){return e.emit("close")})},{default:Tt((function(){return[Ut]})),_:1})]),e.spinning?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Gt,[Object(j["createVNode"])(i),qt])):Object(j["createCommentVNode"])("",!0)])):Object(j["createCommentVNode"])("",!0)])})),Yt=n("21a6"),Zt=n("e774"),Jt=Object(j["withScopeId"])("data-v-4e59015e"),Kt=Jt((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ThumbnailElement");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"thumbnail-slide",style:{width:e.size+"px",height:e.size*e.viewportRatio+"px"}},[Object(j["createVNode"])("div",{class:"elements",style:{width:e.VIEWPORT_SIZE+"px",height:e.VIEWPORT_SIZE*e.viewportRatio+"px",transform:"scale(".concat(e.scale,")")}},[Object(j["createVNode"])("div",{class:"background",style:e.backgroundStyle},null,4),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slide.elements,(function(e,t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.id,elementInfo:e,elementIndex:t+1},null,8,["elementInfo","elementIndex"])})),128))],4)],4)})),Qt=(n("a9e3"),function(e){var t=Object(j["computed"])((function(){if(!e.value)return{backgroundColor:"#fff"};var t=e.value,n=t.type,o=t.color,c=t.image,a=t.imageSize,r=t.gradientColor,l=t.gradientRotate,i=t.gradientType;if("solid"===n)return{backgroundColor:o};if("image"===n)return c?"repeat"===a?{backgroundImage:"url(".concat(c),backgroundRepeat:"repeat",backgroundSize:"initial"}:{backgroundImage:"url(".concat(c),backgroundRepeat:"no-repeat",backgroundSize:a||"cover"}:{backgroundColor:"#fff"};if("gradient"===n){var u=l||0,d=r?r[0]:"#fff",s=r?r[1]:"#fff";return"radial"===i?{backgroundImage:"radial-gradient(".concat(d,", ").concat(s)}:{backgroundImage:"linear-gradient(".concat(u,"deg, ").concat(d,", ").concat(s)}}return{backgroundColor:"#fff"}}));return{backgroundStyle:t}});function $t(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"base-element",style:{zIndex:e.elementIndex,color:e.theme.fontColor,fontFamily:e.theme.fontName}},[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],4)}(function(e){e["TEXT"]="text",e["IMAGE"]="image",e["SHAPE"]="shape",e["LINE"]="line",e["CHART"]="chart",e["TABLE"]="table"})(Xt||(Xt={}));var en,tn,nn=Object(j["withScopeId"])("data-v-75104890"),on=nn((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ImageOutline");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"base-element-image",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px",transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[Object(j["createVNode"])("div",{class:"rotate-wrapper",style:{transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[Object(j["createVNode"])("div",{class:"element-content",style:{filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle}},[Object(j["createVNode"])(r,{elementInfo:e.elementInfo},null,8,["elementInfo"]),Object(j["createVNode"])("div",{class:"image-content",style:{clipPath:e.clipShape.style}},[Object(j["createVNode"])("img",{src:e.elementInfo.src,draggable:!1,style:{top:e.imgPosition.top,left:e.imgPosition.left,width:e.imgPosition.width,height:e.imgPosition.height,filter:e.filter},alt:""},null,12,["src"])],4)],4)],4)],4)})),cn=function(e){var t=Object(j["computed"])((function(){if(e.value){var t=e.value,n=t.h,o=t.v,c=t.blur,a=t.color;return"".concat(n,"px ").concat(o,"px ").concat(c,"px ").concat(a)}return""}));return{shadowStyle:t}},an=function(e){var t=Object(j["computed"])((function(){if(e.value){var t="",n=e.value,o=n.x,c=n.y;return o&&c?t="rotateX(".concat(o,"deg) rotateY(").concat(c,"deg)"):o?t="rotateX(".concat(o,"deg)"):c&&(t="rotateY(".concat(c,"deg)")),t}return""}));return{flipStyle:t}},rn=n("3835");(function(e){e["RECT"]="rect",e["ELLIPSE"]="ellipse",e["POLYGON"]="polygon"})(en||(en={})),function(e){e["RECT"]="rect",e["ROUNDRECT"]="roundRect",e["ELLIPSE"]="ellipse",e["TRIANGLE"]="triangle",e["PENTAGON"]="pentagon",e["RHOMBUS"]="rhombus",e["STAR"]="star"}(tn||(tn={}));var ln={rect:{name:"矩形",type:en.RECT,radius:"0",style:""},rect2:{name:"矩形2",type:en.POLYGON,style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:function(e,t){return"M 0 0 L ".concat(.8*e," 0 L ").concat(e," ").concat(.2*t," L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}},rect3:{name:"矩形3",type:en.POLYGON,style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:function(e,t){return"M 0 0 L ".concat(.8*e," 0 L ").concat(e," ").concat(.2*t," L ").concat(e," ").concat(t," L ").concat(.2*e," ").concat(t," L 0 ").concat(.8*t," Z")}},roundRect:{name:"圆角矩形",type:en.RECT,radius:"10%",style:"inset(0 0 0 0 round 10% 10% 10% 10%)"},ellipse:{name:"圆形",type:en.ELLIPSE,style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:en.POLYGON,style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L 0 ").concat(t," L ").concat(e," ").concat(t," Z")}},triangle2:{name:"三角形2",type:en.POLYGON,style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:function(e,t){return"M ".concat(.5*e," ").concat(t," L 0 0 L ").concat(e," 0 Z")}},triangle3:{name:"三角形3",type:en.POLYGON,style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:function(e,t){return"M 0 0 L 0 ".concat(t," L ").concat(e," ").concat(t," Z")}},rhombus:{name:"菱形",type:en.POLYGON,style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.5*e," ").concat(t," L 0 ").concat(.5*t," Z")}},hexagon:{name:"六边形",type:en.POLYGON,style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:function(e,t){return"M ".concat(.2*e," 0 L ").concat(.8*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.8*e," ").concat(t," L ").concat(.2*e," ").concat(t," L 0 ").concat(.5*t," Z")}},pentagon:{name:"五边形",type:en.POLYGON,style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L ").concat(e," ").concat(.38*t," L ").concat(.82*e," ").concat(t," L ").concat(.18*e," ").concat(t," L 0 ").concat(.38*t," Z")}},parallelogram:{name:"平行四边形",type:en.POLYGON,style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:function(e,t){return"M ".concat(.3*e," 0 L ").concat(e," 0 L ").concat(.7*e," ").concat(t," L 0 ").concat(t," Z")}},parallelogram2:{name:"平行四边形2",type:en.POLYGON,style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:function(e,t){return"M ".concat(.3*e," ").concat(t," L ").concat(e," ").concat(t," L ").concat(.7*e," 0 L 0 0 Z")}},trapezoid:{name:"梯形",type:en.POLYGON,style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:function(e,t){return"M ".concat(.25*e," 0 L ").concat(.75*e," 0 L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}},trapezoid2:{name:"梯形2",type:en.POLYGON,style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:function(e,t){return"M 0 0 L ".concat(e," 0 L ").concat(.75*e," ").concat(t," L ").concat(.25*e," ").concat(t," Z")}}},un=function(e){var t=Object(j["computed"])((function(){if(!e.value)return ln.rect;var t=e.value.shape||en.RECT;return ln[t]})),n=Object(j["computed"])((function(){if(!e.value)return{top:"0",left:"0",width:"100%",height:"100%"};var t=Object(rn["a"])(e.value.range,2),n=t[0],o=t[1],c=(o[0]-n[0])/100,a=(o[1]-n[1])/100,r=n[0]/c,l=n[1]/a;return{left:-r+"%",top:-l+"%",width:100/c+"%",height:100/a+"%"}}));return{clipShape:t,imgPosition:n}},dn=(n("b64b"),function(e){var t=Object(j["computed"])((function(){if(!e.value)return"";for(var t="",n=0,o=Object.keys(e.value);n1||a.rowspan>1)for(var r=n;r1?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0,elementList:e.elementList,scaleMultiElement:e.scaleMultiElement},null,8,["elementList","scaleMultiElement"])):Object(j["createCommentVNode"])("",!0),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.elementList,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(u,{key:t.id,elementInfo:t,isSelected:e.activeElementIdList.includes(t.id),isActive:e.handleElementId===t.id,isActiveGroupElement:e.activeGroupElementId===t.id,isMultiSelect:e.activeElementIdList.length>1,rotateElement:e.rotateElement,scaleElement:e.scaleElement,dragLineElement:e.dragLineElement},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement"])})),128)),Object(j["createVNode"])(d)]),Object(j["createVNode"])("div",{class:"viewport",ref:"viewportRef",style:{transform:"scale(".concat(e.canvasScale,")")}},[e.mouseSelectionState.isShow?(Object(j["openBlock"])(),Object(j["createBlock"])(s,{key:0,top:e.mouseSelectionState.top,left:e.mouseSelectionState.left,width:e.mouseSelectionState.width,height:e.mouseSelectionState.height,quadrant:e.mouseSelectionState.quadrant},null,8,["top","left","width","height","quadrant"])):Object(j["createCommentVNode"])("",!0),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.elementList,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])(f,{key:t.id,elementInfo:t,elementIndex:n+1,isMultiSelect:e.activeElementIdList.length>1,selectElement:e.selectElement},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])})),128))],4)],4)],544)),[[p,e.contextmenus],[b,e.removeEditorAreaFocus]])})),Vo=function(){var e=window.getSelection();e&&e.removeAllRanges()},_o=function(e){var t=Object(j["ref"])(0),n=Object(j["ref"])(0),o=Y(),c=Object(j["computed"])((function(){return o.state.canvasPercentage})),a=Object(j["computed"])((function(){return o.state.viewportRatio})),r=function(){if(e.value){var r=e.value.clientWidth,l=e.value.clientHeight;if(l/r>a.value){var i=r*(c.value/100);o.commit(y.SET_CANVAS_SCALE,i/Le),t.value=(r-i)/2,n.value=(l-i*a.value)/2}else{var u=l*(c.value/100);o.commit(y.SET_CANVAS_SCALE,u/(Le*a.value)),t.value=(r-u/a.value)/2,n.value=(l-u)/2}}};Object(j["watch"])([c,a],r);var l=Object(j["computed"])((function(){return{width:Le,height:Le*a.value,left:t.value,top:n.value}})),i=new ResizeObserver(r);return Object(j["onMounted"])((function(){e.value&&i.observe(e.value)})),Object(j["onUnmounted"])((function(){e.value&&i.unobserve(e.value)})),{viewportStyles:l}},Bo=(n("159b"),function(e){var t=e.left,n=e.top,o=e.width,c=e.height,a=e.rotate,r=void 0===a?0:a,l=Math.sqrt(Math.pow(o,2)+Math.pow(c,2))/2,i=180*Math.atan(c/o)/Math.PI,u=(180-r-i)*Math.PI/180,d=(i-r)*Math.PI/180,s=t+o/2,f=n+c/2,p=[s+l*Math.cos(u),s+l*Math.cos(d),s-l*Math.cos(u),s-l*Math.cos(d)],b=[f-l*Math.sin(u),f-l*Math.sin(d),f+l*Math.sin(u),f+l*Math.sin(d)];return{xRange:[Math.min.apply(Math,p),Math.max.apply(Math,p)],yRange:[Math.min.apply(Math,b),Math.max.apply(Math,b)]}}),Do=function(e){var t=Bo({left:e.left,top:e.top,width:e.width,height:e.height,rotate:0}),n=t.xRange,o=t.yRange,c=Bo({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),a=c.xRange,r=c.yRange;return{offsetX:a[0]-n[0],offsetY:r[0]-o[0]}},Mo=function(e){var t,n,o,c;if("line"===e.type)t=e.left,n=e.left+Math.max(e.start[0],e.end[0]),o=e.top,c=e.top+Math.max(e.start[1],e.end[1]);else if("rotate"in e&&e.rotate){var a=e.left,r=e.top,l=e.width,i=e.height,u=e.rotate,d=Bo({left:a,top:r,width:l,height:i,rotate:u}),s=d.xRange,f=d.yRange;t=s[0],n=s[1],o=f[0],c=f[1]}else t=e.left,n=e.left+e.width,o=e.top,c=e.top+e.height;return{minX:t,maxX:n,minY:o,maxY:c}},Ao=function(e){var t=[],n=[],o=[],c=[];e.forEach((function(e){var a=Mo(e),r=a.minX,l=a.maxX,i=a.minY,u=a.maxY;t.push(r),n.push(i),o.push(l),c.push(u)}));var a=Math.min.apply(Math,t),r=Math.max.apply(Math,o),l=Math.min.apply(Math,n),i=Math.max.apply(Math,c);return{minX:a,maxX:r,minY:l,maxY:i}},Po=function(e){var t=[];return e.forEach((function(e){var n=t.findIndex((function(t){return t.value===e.value}));if(-1===n)t.push(e);else{var o=t[n],c=Math.min(o.range[0],e.range[0]),a=Math.max(o.range[1],e.range[1]),r=[c,a],l={value:e.value,range:r};t[n]=l}})),t},Ro=function(e,t){var n=Y(),o=Object(j["computed"])((function(){return n.state.canvasScale})),c=Object(j["reactive"])({isShow:!1,top:0,left:0,width:0,height:0,quadrant:1}),a=function(a){if(t.value){var r=!0,l=t.value.getBoundingClientRect(),i=5,u=a.pageX,d=a.pageY,s=(u-l.x)/o.value,f=(d-l.y)/o.value;c.isShow=!1,c.quadrant=4,c.top=f,c.left=s,c.width=0,c.height=0,document.onmousemove=function(e){if(r){var t=e.pageX,n=e.pageY,a=(t-u)/o.value,l=(n-d)/o.value,s=Math.abs(a),f=Math.abs(l);if(!(s0&&l>0?p=4:a<0&&l<0?p=1:a>0&&l<0?p=2:a<0&&l>0&&(p=3),c.isShow=!0,c.quadrant=p,c.width=s,c.height=f}}},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,r=!1;for(var t=[],o=0;ol&&bi&&vl-u&&bi-d&&vl&&bi-d&&vl-u&&bi&&v0&&Math.abs(l-45)<=d?l-=l-45:l<0&&Math.abs(l+45)<=d?l-=l+45:l>0&&Math.abs(l-90)<=d?l-=l-90:l<0&&Math.abs(l+90)<=d?l-=l+90:l>0&&Math.abs(l-135)<=d?l-=l-135:l<0&&Math.abs(l+135)<=d?l-=l+135:l>0&&Math.abs(l-180)<=d?l-=l-180:l<0&&Math.abs(l+180)<=d&&(l-=l+180),e.value=e.value.map((function(e){return c.id===e.id?Object(R["a"])(Object(R["a"])({},e),{},{rotate:l}):e}))}},document.onmouseup=function(){r=!1,document.onmousemove=null,document.onmouseup=null,i!==l&&(n.commit(y.UPDATE_SLIDE,{elements:e.value}),a())}}};return{rotateElement:r}},Uo=n("14b7");(function(e){e["UPDATE_TEXT_STATE"]="UPDATE_TEXT_STATE",e["EXEC_TEXT_COMMAND"]="EXEC_TEXT_COMMAND",e["UPDATE_TABLE_SELECTED_CELL"]="UPDATE_TABLE_SELECTED_CELL",e["SCALE_ELEMENT_STATE"]="SCALE_ELEMENT_STATE"})(Lo||(Lo={}));var Go=Object(Uo["a"])(),qo=Go,Xo={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格"},Wo={text:20,image:20,shape:15,chart:200,table:20},Yo=function(e,t){var n=e.left,o=e.top,c=e.width,a=e.height,r=Math.sqrt(Math.pow(c,2)+Math.pow(a,2))/2,l=180*Math.atan(a/c)/Math.PI,i=(180-t-l)*Math.PI/180,u=(l-t)*Math.PI/180,d=(90-t)*Math.PI/180,s=t*Math.PI/180,f=c/2,p=a/2,b=n+f,m=o+p,v={left:b+r*Math.cos(i),top:m-r*Math.sin(i)},O={left:b+p*Math.cos(d),top:m-p*Math.sin(d)},h={left:b+r*Math.cos(u),top:m-r*Math.sin(u)},j={left:b+f*Math.cos(s),top:m+f*Math.sin(s)},g={left:b-r*Math.cos(i),top:m+r*Math.sin(i)},y={left:b-p*Math.sin(s),top:m+p*Math.cos(s)},k={left:b-r*Math.cos(u),top:m+r*Math.sin(u)},E={left:b-f*Math.cos(s),top:m-f*Math.sin(s)};return{leftTopPoint:v,topPoint:O,rightTopPoint:h,rightPoint:j,rightBottomPoint:g,bottomPoint:y,leftBottomPoint:k,leftPoint:E}},Zo=function(e,t){var n,o=(n={},Object(N["a"])(n,ne.RIGHT_BOTTOM,t.leftTopPoint),Object(N["a"])(n,ne.LEFT_BOTTOM,t.rightTopPoint),Object(N["a"])(n,ne.LEFT_TOP,t.rightBottomPoint),Object(N["a"])(n,ne.RIGHT_TOP,t.leftBottomPoint),Object(N["a"])(n,ne.TOP,t.bottomPoint),Object(N["a"])(n,ne.BOTTOM,t.topPoint),Object(N["a"])(n,ne.LEFT,t.rightPoint),Object(N["a"])(n,ne.RIGHT,t.leftPoint),n);return o[e]},Jo=function(e,t,n){var o=Y(),c=Object(j["computed"])((function(){return o.state.activeElementIdList})),a=Object(j["computed"])((function(){return o.state.canvasScale})),r=Object(j["computed"])((function(){return o.state.viewportRatio})),l=Object(j["computed"])((function(){return o.getters.ctrlOrShiftKeyActive})),i=Ne(),u=i.addHistorySnapshot,d=function(i,d,s){var f=!0;qo.emit(Lo.SCALE_ELEMENT_STATE,!0);var p,b=d.left,m=d.top,v=d.width,O=d.height,h="rotate"in d&&d.rotate?d.rotate:0,j=Math.PI*h/180,g=l.value||"fixedRatio"in d&&d.fixedRatio,k=v/O,E=i.pageX,I=i.pageY,S=Wo[d.type]||20,C=function(e){return e2&&void 0!==arguments[2])||arguments[2];if(r.value||o.commit(y.SET_EDITORAREA_FOCUS,!0),c.value.includes(u.id)){if(l.value){var s=[];if(u.groupId){var f=[];e.value.forEach((function(e){e.groupId===u.groupId&&f.push(e.id)})),s=c.value.filter((function(e){return!f.includes(e)}))}else s=c.value.filter((function(e){return e!==u.id}));s.length>0&&o.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,s)}else if(a.value!==u.id)o.commit(y.SET_HANDLE_ELEMENT_ID,u.id);else if(t.value!==u.id){var p=i.pageX,b=i.pageY;i.target.onmouseup=function(e){var n=e.pageX,o=e.pageY;p===n&&b===o&&(t.value=u.id,e.target.onmouseup=null)}}}else{var m=[];if(m=l.value?[].concat(Object(P["a"])(c.value),[u.id]):[u.id],u.groupId){var v=[];e.value.forEach((function(e){e.groupId===u.groupId&&v.push(e.id)})),m=[].concat(Object(P["a"])(m),v)}o.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,Qo()(m)),o.commit(y.SET_HANDLE_ELEMENT_ID,u.id)}d&&n(i,u)},u=function(){var t=e.value.filter((function(e){return!e.lock})),n=t.map((function(e){return e.id}));o.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,n)};return{selectElement:i,selectAllElement:u}},ec=function(e,t,n){var o=Y(),c=Object(j["computed"])((function(){return o.state.activeElementIdList})),a=Object(j["computed"])((function(){return o.state.canvasScale})),r=Object(j["computed"])((function(){return o.state.viewportRatio})),l=Ne(),i=l.addHistorySnapshot,u=function(l,u){if(c.value.includes(u.id)){var d,s=!0,f=Le,p=Le*r.value,b=5,m=JSON.parse(JSON.stringify(e.value)),v=m.filter((function(e){return c.value.includes(e.id)})),O=u.left,h=u.top,j=u.width,g="height"in u&&u.height?u.height:0,k="rotate"in u&&u.rotate?u.rotate:0,E=l.pageX,I=l.pageY,S=null,C=u.id===t.value,N=[],x=[],T=Object(ke["a"])(e.value);try{for(T.s();!(d=T.n()).done;){var L=d.value;if("line"!==L.type&&((!C||L.id!==u.id)&&(C||!c.value.includes(L.id)))){var w=void 0,V=void 0,_=void 0,B=void 0;if("rotate"in L&&L.rotate){var D=Bo({left:L.left,top:L.top,width:L.width,height:L.height,rotate:L.rotate}),M=D.xRange,A=D.yRange;w=M[0],V=A[0],_=M[1]-M[0],B=A[1]-A[0]}else w=L.left,V=L.top,_=L.width,B=L.height;var F=w+_,H=V+B,z=V+B/2,U=w+_/2,G={value:V,range:[w,F]},q={value:H,range:[w,F]},X={value:z,range:[w,F]},W={value:w,range:[V,H]},Y={value:F,range:[V,H]},Z={value:U,range:[V,H]};N.push(G,q,X),x.push(W,Y,Z)}}}catch(ne){T.e(ne)}finally{T.f()}var J={value:0,range:[0,f]},K={value:p,range:[0,f]},Q={value:p/2,range:[0,f]},$={value:0,range:[0,p]},ee={value:f,range:[0,p]},te={value:f/2,range:[0,p]};N.push(J,K,Q),x.push($,ee,te),N=Po(N),x=Po(x),document.onmousemove=function(t){var o=t.pageX,r=t.pageY;if(!1!==S&&(S=Math.abs(E-o)v&&(D[0]=_-w,M[0]=0),m>O&&(D[1]=B-V,M[1]=0),e.value=e.value.map((function(e){if(e.id===a.id){var t=Object(R["a"])(Object(R["a"])({},e),{},{left:w,top:V,start:D,end:M});return r!==oe.MID?(a.broken&&(t.broken=[(D[0]+M[0])/2,(D[1]+M[1])/2]),a.curve&&(t.curve=[(D[0]+M[0])/2,(D[1]+M[1])/2])):(a.broken&&(t.broken=[j-w,g-V]),a.curve&&(t.curve=[j-w,g-V])),t}return e}))}},document.onmouseup=function(n){l=!1,document.onmousemove=null,document.onmouseup=null;var o=n.pageX,a=n.pageY;u===o&&d===a||(t.commit(y.UPDATE_SLIDE,{elements:e.value}),c())}};return{dragLineElement:a}},nc=function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return t.state.creatingElement})),c=function(t){var o=t.start,c=t.end;if(e.value){var a=e.value.getBoundingClientRect(),r=Object(rn["a"])(o,2),l=r[0],i=r[1],u=Object(rn["a"])(c,2),d=u[0],s=u[1],f=Math.min(l,d),p=Math.max(l,d),b=Math.min(i,s),m=Math.max(i,s),v=(f-a.x)/n.value,O=(b-a.y)/n.value,h=(p-f)/n.value,j=(m-b)/n.value;return{left:v,top:O,width:h,height:j}}},a=function(t){var o=t.start,c=t.end;if(e.value){var a=e.value.getBoundingClientRect(),r=Object(rn["a"])(o,2),l=r[0],i=r[1],u=Object(rn["a"])(c,2),d=u[0],s=u[1],f=Math.min(l,d),p=Math.max(l,d),b=Math.min(i,s),m=Math.max(i,s),v=(f-a.x)/n.value,O=(b-a.y)/n.value,h=(p-f)/n.value,j=(m-b)/n.value,g=[l===f?0:h,i===b?0:j],y=[d===f?0:h,s===b?0:j];return{left:v,top:O,start:g,end:y}}},r=we(),l=r.createTextElement,i=r.createShapeElement,u=r.createLineElement,d=function(e){if(o.value){var n=o.value.type;if("text"===n){var r=c(e);r&&l(r)}else if("shape"===n){var d=c(e);d&&i(d,o.value.data)}else if("line"===n){var s=a(e);s&&u(s,o.value.data)}t.commit(y.SET_CREATING_ELEMENT,null)}};return{insertElementFromCreateSelection:d}};function oc(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"editable-element",ref:"elementRef",id:"editable-element-".concat(e.elementInfo.id),style:{zIndex:e.elementIndex,color:e.theme.fontColor,fontFamily:e.theme.fontName}},[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo,selectElement:e.selectElement,contextmenus:e.contextmenus},null,8,["elementInfo","selectElement","contextmenus"]))],12,["id"])}var cc=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.state.viewportRatio})),o=Object(j["computed"])((function(){return e.getters.activeElementList})),c=Object(j["computed"])((function(){return e.getters.currentSlide})),a=Ne(),r=a.addHistorySnapshot,l=function(a){var l,i=Le,u=Le*n.value,d=Ao(o.value),s=d.minX,f=d.maxX,p=d.minY,b=d.maxY,m=JSON.parse(JSON.stringify(c.value.elements)),v=Object(ke["a"])(m);try{for(v.s();!(l=v.n()).done;){var O=l.value;if(t.value.includes(O.id)){if(a===ee.CENTER){var h=p+(b-p)/2-u/2,j=s+(f-s)/2-i/2;O.top=O.top-h,O.left=O.left-j}if(a===ee.TOP){var g=p-0;O.top=O.top-g}else if(a===ee.VERTICAL){var k=p+(b-p)/2-u/2;O.top=O.top-k}else if(a===ee.BOTTOM){var E=b-u;O.top=O.top-E}else if(a===ee.LEFT){var I=s-0;O.left=O.left-I}else if(a===ee.HORIZONTAL){var S=s+(f-s)/2-i/2;O.left=O.left-S}else if(a===ee.RIGHT){var C=f-i;O.left=O.left-C}}}}catch(N){v.e(N)}finally{v.f()}e.commit(y.UPDATE_SLIDE,{elements:m}),r()};return{alignElementToCanvas:l}},ac=Object(j["withScopeId"])("data-v-3270cb38"),rc=ac((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ImageClipHandler"),l=Object(j["resolveComponent"])("ImageOutline"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-image",{lock:e.elementInfo.lock}],style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}},[Object(j["createVNode"])("div",{class:"rotate-wrapper",style:{transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[e.isCliping?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,src:e.elementInfo.src,clipData:e.elementInfo.clip,width:e.elementInfo.width,height:e.elementInfo.height,top:e.elementInfo.top,left:e.elementInfo.left,clipPath:e.clipShape.style,onClip:t[1]||(t[1]=function(t){return e.handleClip(t)})},null,8,["src","clipData","width","height","top","left","clipPath"])):Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:1,class:"element-content",style:{filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle},onMousedown:t[3]||(t[3]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])(l,{elementInfo:e.elementInfo},null,8,["elementInfo"]),Object(j["createVNode"])("div",{class:"image-content",style:{clipPath:e.clipShape.style}},[Object(j["createVNode"])("img",{src:e.elementInfo.src,draggable:!1,style:{top:e.imgPosition.top,left:e.imgPosition.left,width:e.imgPosition.width,height:e.imgPosition.height,filter:e.filter},onDragstart:t[2]||(t[2]=Object(j["withModifiers"])((function(){}),["prevent"])),alt:""},null,44,["src"])],4)],36)),[[i,e.contextmenus]])],4)],6)})),lc=Object(j["withScopeId"])("data-v-1d9b5032");Object(j["pushScopeId"])("data-v-1d9b5032");var ic=Object(j["createVNode"])("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"},null,-1);Object(j["popScopeId"])();var uc=lc((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper"),l=Object(j["resolveDirective"])("click-outside");return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"image-clip-handler",style:e.clipWrapperPositionStyle},[Object(j["createVNode"])("img",{class:"bottom-img",src:e.src,draggable:!1,alt:"",style:e.bottomImgPositionStyle},null,12,["src"]),Object(j["createVNode"])("div",{class:"top-image-content",style:Object(R["a"])(Object(R["a"])({},e.topImgWrapperPositionStyle),{},{clipPath:e.clipPath})},[Object(j["createVNode"])("img",{class:"top-img",src:e.src,draggable:!1,alt:"",style:e.topImgPositionStyle},null,12,["src"])],4),Object(j["createVNode"])("div",{class:"operate",style:e.topImgWrapperPositionStyle,onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.moveClipRange(t)}),["stop"]))},[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(["t-l","t-r","b-l","b-r"],(function(t){return Object(j["createVNode"])("div",{class:["clip-point",t],key:t,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleClipRange(n,t)}),["stop"])},[Object(j["createVNode"])(r,{width:"16",height:"16",fill:"#fff",stroke:"#333"},{default:lc((function(){return[ic]})),_:1})],42,["onMousedown"])})),64))],36)],4)),[[l,e.handleClip]])})),dc=Object(j["defineComponent"])({name:"image-clip-handler",props:{src:{type:String,required:!0},clipData:{type:Object},clipPath:{type:String,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0},top:{type:Number,required:!0},left:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Y(),c=Object(j["computed"])((function(){return o.state.canvasScale})),a=Object(j["computed"])((function(){return o.getters.ctrlOrShiftKeyActive})),r=Object(j["reactive"])({top:"0",left:"0"}),l=Object(j["ref"])(!1),i=Object(j["ref"])(null),u=function(){var t=e.clipData?e.clipData.range:[[0,0],[100,100]],n=Object(rn["a"])(t,2),o=n[0],c=n[1],a=(c[0]-o[0])/100,r=(c[1]-o[1])/100,l=o[0]/a,i=o[1]/r;return{widthScale:a,heightScale:r,left:l,top:i}},d=Object(j["computed"])((function(){var e=u(),t=e.widthScale,n=e.heightScale,o=e.left,c=e.top;return{left:-o,top:-c,width:100/t,height:100/n}})),s=Object(j["computed"])((function(){return{top:d.value.top+"%",left:d.value.left+"%",width:d.value.width+"%",height:d.value.height+"%"}})),f=Object(j["reactive"])({top:0,left:0,width:0,height:0}),p=Object(j["computed"])((function(){return{top:f.top+"%",left:f.left+"%",width:f.width+"%",height:f.height+"%"}})),b=Object(j["computed"])((function(){var e=d.value.width,t=d.value.height,n=f.left,o=f.top,c=f.width,a=f.height;return{left:100/c*-n+"%",top:100/a*-o+"%",width:e/c*100+"%",height:t/a*100+"%"}})),m=function(){var e=u(),t=e.left,n=e.top;f.left=t,f.top=n,f.width=100,f.height=100,r.top=-n+"%",r.left=-t+"%"},v=function(){if(!l.value)if(i.value){var t=u(),o=t.left,c=t.top,a={left:(f.left-o)/100*e.width,top:(f.top-c)/100*e.height,width:(f.width-100)/100*e.width,height:(f.height-100)/100*e.height},r={range:i.value,position:a};n("clip",r)}else n("clip",null)},O=function(e){var t=e.key.toUpperCase();t===ce.ENTER&&v()};Object(j["onMounted"])((function(){m(),document.addEventListener("keydown",O)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",O)}));var h=function(){var e={left:parseInt(b.value.left),top:parseInt(b.value.top),width:parseInt(b.value.width),height:parseInt(b.value.height)},t=100/e.width,n=100/e.height,o=[-e.left*t,-e.top*n],c=[100*t+o[0],100*n+o[1]];i.value=[o,c]},g=function(t){l.value=!0;var n=!0,o=t.pageX,a=t.pageY,r=d.value,i={left:f.left,top:f.top,width:f.width,height:f.height};document.onmousemove=function(t){if(n){var l=t.pageX,u=t.pageY,d=(l-o)/c.value/e.width*100,s=(u-a)/c.value/e.height*100,p=i.left+d,b=i.top+s;p<0?p=0:p+i.width>r.width&&(p=r.width-i.width),b<0?b=0:b+i.height>r.height&&(b=r.height-i.height),f.left=p,f.top=b}},document.onmouseup=function(){n=!1,document.onmousemove=null,document.onmouseup=null,h(),setTimeout((function(){l.value=!1}),0)}},y=function(t,n){l.value=!0;var o=!0,r=50/e.width*100,i=50/e.height*100,u=t.pageX,s=t.pageY,p=d.value,b={left:f.left,top:f.top,width:f.width,height:f.height},m=f.width/f.height;document.onmousemove=function(t){if(o){var l,d,v,O,h=t.pageX,j=t.pageY,g=(h-u)/c.value/e.width*100,y=(j-s)/c.value/e.height*100;a.value&&("b-r"!==n&&"t-l"!==n||(y=g/m),"b-l"!==n&&"t-r"!==n||(y=-g/m)),"t-l"===n?(b.left+g<0&&(g=-b.left),b.top+y<0&&(y=-b.top),b.width-gp.width&&(g=p.width-(b.left+b.width)),b.top+y<0&&(y=-b.top),b.width+gp.height&&(y=p.height-(b.top+b.height)),b.width-gp.width&&(g=p.width-(b.left+b.width)),b.top+b.height+y>p.height&&(y=p.height-(b.top+b.height)),b.width+g\s$/,e)},xc=function(e){return Object(Sc["g"])(/^(\d+)\.\s$/,e,(function(e){return{order:+e[1]}}),(function(e,t){return t.childCount+t.attrs.order===+e[1]}))},Tc=function(e){return Object(Sc["g"])(/^\s*([-+*])\s$/,e)},Lc=function(e){return Object(Sc["e"])(/^```$/,e)},wc=function(e){var t=[].concat(Object(P["a"])(Sc["d"]),[Sc["a"],Sc["b"]]);return t.push(Nc(e.nodes.blockquote)),t.push(xc(e.nodes.ordered_list)),t.push(Tc(e.nodes.bullet_list)),t.push(Lc(e.nodes.code_block)),Object(Sc["c"])({rules:t})},Vc=function(e){return[wc(e),Object(gc["b"])(Cc(e)),Object(gc["b"])(vc["a"]),Object(kc["a"])(),Object(Ec["a"])(),Object(yc["a"])()]},_c=n("2210"),Bc=Object(R["a"])(Object(R["a"])({},Ic["d"]),{},{content:"list_item+",group:"block"}),Dc=Object(R["a"])(Object(R["a"])({},Ic["a"]),{},{content:"list_item+",group:"block"}),Mc=Object(R["a"])(Object(R["a"])({},Ic["c"]),{},{content:"paragraph block*",group:"block"}),Ac={attrs:{align:{default:""}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:function(e){var t=e.style.textAlign,n=e.getAttribute("align")||t||"";return n=/(left|right|center|justify)/.test(n)?n:"",{align:n}}}],toDOM:function(e){var t=e.attrs.align,n="";return t&&"left"!==t&&(n+="text-align: ".concat(t,";")),["p",{style:n},0]}},Pc=Object(R["a"])(Object(R["a"])({},_c["b"]),{},{ordered_list:Bc,bullet_list:Dc,list_item:Mc,paragraph:Ac}),Rc=(n("5319"),n("ac1f"),{excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:function(e){return"sub"===e&&null}}],toDOM:function(){return["sub",0]}}),Fc={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:function(e){return"super"===e&&null}}],toDOM:function(){return["sup",0]}},Hc={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:function(e){return"line-through"===e&&null}},{style:"text-decoration-line",getAttrs:function(e){return"line-through"===e&&null}}],toDOM:function(){return["span",{style:"text-decoration-line: line-through"},0]}},zc={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:function(e){return"underline"===e&&null}},{style:"text-decoration-line",getAttrs:function(e){return"underline"===e&&null}}],toDOM:function(){return["span",{style:"text-decoration: underline"},0]}},Uc={attrs:{color:{}},parseDOM:[{style:"color",getAttrs:function(e){return e?{color:e}:{}}}],toDOM:function(e){var t=e.attrs.color,n="";return t&&(n+="color: ".concat(t,";")),["span",{style:n},0]}},Gc={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{tag:"span[style*=background-color]",getAttrs:function(e){return e?{backcolor:e}:{}}}],toDOM:function(e){var t=e.attrs.backcolor,n="";return t&&(n+="background-color: ".concat(t,";")),["span",{style:n},0]}},qc={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:function(e){return e?{fontsize:e}:{}}}],toDOM:function(e){var t=e.attrs.fontsize,n="";return t&&(n+="font-size: ".concat(t)),["span",{style:n},0]}},Xc={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:function(e){return{fontname:e&&"string"===typeof e?e.replace(/[\"\']/g,""):""}}}],toDOM:function(e){var t=e.attrs.fontname,n="";return t&&(n+="font-family: ".concat(t)),["span",{style:n},0]}},Wc=Object(R["a"])(Object(R["a"])({},_c["a"]),{},{subscript:Rc,superscript:Fc,strikethrough:Hc,underline:zc,forecolor:Uc,backcolor:Gc,fontsize:qc,fontname:Xc}),Yc=Pc,Zc=Wc,Jc=new jc["i"]({nodes:Yc,marks:Zc}),Kc=function(e){var t="".concat(e,"
"),n=new window.DOMParser,o=n.parseFromString(t,"text/html").body.firstElementChild;return jc["a"].fromSchema(Jc).parse(o)},Qc=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new hc["c"](e,Object(R["a"])({state:Oc["b"].create({doc:Kc(t),plugins:Vc(Jc)})},n))},$c=(n("b0c0"),function(e,t){return Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e}),ea=function(e,t){for(var n=e.depth;n>0;n--){var o=e.node(n);if(t(o))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:o}}},ta=function(e){return function(t){return ea(t.$from,e)}},na=function(e){return function(t){return ta((function(t){return $c(e,t)}))(t)}},oa=function(e,t){var n=t.schema.nodes[e];return!!na(n)(t.selection)},ca=function(e){var t=e.state,n=t.selection,o=t.doc,c=n.from,a=o.nodeAt(c);return(null===a||void 0===a?void 0:a.marks)||[]},aa=function(e,t,n){var o,c=ca(e),a=Object(ke["a"])(c);try{for(a.s();!(o=a.n()).done;){var r=o.value;if(r.type.name===t&&r.attrs[n])return r.attrs[n]}}catch(l){a.e(l)}finally{a.f()}return null},ra=function(e,t){var n,o=ca(e),c=Object(ke["a"])(o);try{for(c.s();!(n=c.n()).done;){var a=n.value;if(a.type.name===t)return!0}}catch(r){c.e(r)}finally{c.f()}return!1},la=function(e,t){var n=e.state,o=n.selection,c=n.doc,a=o.from,r=o.to,l=!0,i="";return c.nodesBetween(a,r,(function(e){return l&&e.attrs[t]&&(l=!1,i=e.attrs[t]),l})),i},ia=function(e){var t=ra(e,"strong"),n=ra(e,"em"),o=ra(e,"underline"),c=ra(e,"strikethrough"),a=ra(e,"superscript"),r=ra(e,"subscript"),l=ra(e,"code"),i=aa(e,"forecolor","color")||"#000",u=aa(e,"backcolor","backcolor")||"#000",d=aa(e,"fontsize","fontsize")||"20px",s=aa(e,"fontname","fontname")||"微软雅黑",f=la(e,"align")||"left",p=oa("bullet_list",e.state),b=oa("ordered_list",e.state),m=oa("blockquote",e.state);return{bold:t,em:n,underline:o,strikethrough:c,superscript:a,subscript:r,code:l,color:i,backcolor:u,fontsize:d,fontname:s,align:f,bulletList:p,orderedList:b,blockquote:m}},ua=(n("6062"),function(e,t,n){var o=e,c=o.selection,a=o.doc;if(!c||!a)return e;var r=c.from,l=c.to,i=t.nodes,u=i.blockquote,d=i.list_item,s=i.paragraph,f=[];n=n||"";var p=new Set([u,d,s]);return a.nodesBetween(r,l,(function(e,t){var o=e.type,c=e.attrs.align||"";return c!==n&&p.has(o)&&f.push({node:e,pos:t,nodeType:o}),!0})),f.length?(f.forEach((function(t){var o=t.node,c=t.pos,a=t.nodeType,r=o.attrs;r=n?Object(R["a"])(Object(R["a"])({},r),{},{align:n}):Object(R["a"])(Object(R["a"])({},r),{},{align:null}),e=e.setNodeMarkup(c,a,r,o.marks)})),e):e}),da=function(e,t){var n=e.state,o=n.schema,c=n.selection,a=ua(n.tr.setSelection(c),o,t);e.dispatch(a)},sa=function(e,t){return e.type===t.nodes.bullet_list||e.type===t.nodes.ordered_list},fa=function(e,t){return function(n,o){var c=n.schema,a=n.selection,r=a.$from,l=a.$to,i=r.blockRange(l);if(!i)return!1;var u=ta((function(e){return sa(e,c)}))(a);if(i.depth>=1&&u&&i.depth-u.depth<=1){if(u.node.type===e)return Object(Ic["b"])(t)(n,o);if(sa(u.node,c)&&e.validContent(u.node.content)){var d=n.tr;return d.setNodeMarkup(u.pos,e),o&&o(d),!1}}return Object(Ic["g"])(e)(n,o)}},pa=Object(j["defineComponent"])({name:"editable-element-text",components:{ElementOutline:Dn},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t,n=Y(),o=Ne(),c=o.addHistorySnapshot,a=Object(j["ref"])(),r=Object(j["ref"])(!1),l=Object(j["ref"])(-1),i=Object(j["ref"])(),u=Object(j["computed"])((function(){return e.elementInfo.shadow})),d=cn(u),s=d.shadowStyle,f=Object(j["computed"])((function(){return n.state.handleElementId})),p=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo,n))},b=function(t){r.value=t,t||-1===l.value||(n.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{height:l.value}}),l.value=-1)};qo.on(Lo.SCALE_ELEMENT_STATE,(function(e){return b(e)})),Object(j["onUnmounted"])((function(){qo.off(Lo.SCALE_ELEMENT_STATE,(function(e){return b(e)}))}));var m=function(t){var o=t[0].contentRect;if(a.value){var c=o.height;e.elementInfo.height!==c&&(r.value?l.value=c:n.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{height:c}}))}},v=new ResizeObserver(m);Object(j["onMounted"])((function(){a.value&&v.observe(a.value)})),Object(j["onUnmounted"])((function(){a.value&&v.unobserve(a.value)}));var O=Ie()((function(){n.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{content:t.dom.innerHTML}}),c()}),300,{trailing:!0}),h=function(){"请输入内容"===e.elementInfo.content&&(t.dom.innerHTML="",O()),n.commit(y.SET_DISABLE_HOTKEYS_STATE,!0)},g=function(){n.commit(y.SET_DISABLE_HOTKEYS_STATE,!1)},k=Ie()((function(){var e=ia(t);qo.emit(Lo.UPDATE_TEXT_STATE,e)}),30,{trailing:!0}),E=function(){O(),k()},I=Object(j["computed"])((function(){return e.elementInfo.content}));Object(j["watch"])(I,(function(){t&&(t.hasFocus()||(t.dom.innerHTML=I.value))}));var S=Object(j["computed"])((function(){return!e.elementInfo.lock}));Object(j["watch"])(S,(function(){t.setProps({editable:function(){return S.value}})})),Object(j["onMounted"])((function(){t=Qc(i.value,I.value,{handleDOMEvents:{focus:h,blur:g,keydown:E,click:k},editable:function(){return S.value}})})),Object(j["onUnmounted"])((function(){t&&t.destroy()}));var C=function(n){if(f.value===e.elementInfo.id){var o,c="command"in n?[n]:n,a=Object(ke["a"])(c);try{for(a.s();!(o=a.n()).done;){var r=o.value;if("fontname"===r.command&&r.value){var l=t.state.schema.marks.fontname.create({fontname:r.value}),i=t.state.selection.empty;i&&Object(vc["d"])(t.state,t.dispatch);var u=t.state.selection,d=u.$from,s=u.$to;t.dispatch(t.state.tr.addMark(d.pos,s.pos,l))}else if("fontsize"===r.command&&r.value){var p=t.state.schema.marks.fontsize.create({fontsize:r.value}),b=t.state.selection.empty;b&&Object(vc["d"])(t.state,t.dispatch);var m=t.state.selection,v=m.$from,h=m.$to;t.dispatch(t.state.tr.addMark(v.pos,h.pos,p))}else if("color"===r.command&&r.value){var j=t.state.schema.marks.forecolor.create({color:r.value}),g=t.state.selection.empty;g&&Object(vc["d"])(t.state,t.dispatch);var y=t.state.selection,E=y.$from,I=y.$to;t.dispatch(t.state.tr.addMark(E.pos,I.pos,j))}else if("backcolor"===r.command&&r.value){var S=t.state.schema.marks.backcolor.create({backcolor:r.value}),C=t.state.selection.empty;C&&Object(vc["d"])(t.state,t.dispatch);var N=t.state.selection,x=N.$from,T=N.$to;t.dispatch(t.state.tr.addMark(x.pos,T.pos,S))}else if("bold"===r.command){var L=t.state.selection.empty;L&&Object(vc["d"])(t.state,t.dispatch),Object(vc["f"])(t.state.schema.marks.strong)(t.state,t.dispatch)}else if("em"===r.command){var w=t.state.selection.empty;w&&Object(vc["d"])(t.state,t.dispatch),Object(vc["f"])(t.state.schema.marks.em)(t.state,t.dispatch)}else if("underline"===r.command){var V=t.state.selection.empty;V&&Object(vc["d"])(t.state,t.dispatch),Object(vc["f"])(t.state.schema.marks.underline)(t.state,t.dispatch)}else if("strikethrough"===r.command){var _=t.state.selection.empty;_&&Object(vc["d"])(t.state,t.dispatch),Object(vc["f"])(t.state.schema.marks.strikethrough)(t.state,t.dispatch)}else if("subscript"===r.command)Object(vc["f"])(t.state.schema.marks.subscript)(t.state,t.dispatch);else if("superscript"===r.command)Object(vc["f"])(t.state.schema.marks.superscript)(t.state,t.dispatch);else if("blockquote"===r.command)Object(vc["g"])(t.state.schema.nodes.blockquote)(t.state,t.dispatch);else if("code"===r.command)Object(vc["f"])(t.state.schema.marks.code)(t.state,t.dispatch);else if("align"===r.command&&r.value)da(t,r.value);else if("bulletList"===r.command){var B=t.state.schema.nodes,D=B.bullet_list,M=B.list_item;fa(D,M)(t.state,t.dispatch)}else if("orderedList"===r.command){var A=t.state.schema.nodes,P=A.ordered_list,R=A.list_item;fa(P,R)(t.state,t.dispatch)}else if("clear"===r.command){var F=t.state.selection.empty;F&&Object(vc["d"])(t.state,t.dispatch);var H=t.state.selection,z=H.$from,U=H.$to;t.dispatch(t.state.tr.removeMark(z.pos,U.pos))}}}catch(G){a.e(G)}finally{a.f()}t.focus(),O(),k()}};return qo.on(Lo.EXEC_TEXT_COMMAND,(function(e){return C(e)})),Object(j["onUnmounted"])((function(){qo.off(Lo.EXEC_TEXT_COMMAND,(function(e){return C(e)}))})),{elementRef:a,editorViewRef:i,handleSelectElement:p,shadowStyle:s}}});n("ee21");pa.render=mc,pa.__scopeId="data-v-cf2c3a18";var ba=pa,ma=Object(j["withScopeId"])("data-v-c7ebf780");Object(j["pushScopeId"])("data-v-c7ebf780");var va={key:0};Object(j["popScopeId"])();var Oa=ma((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("GradientDefs"),l=Object(j["resolveComponent"])("SvgWrapper"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-shape",{lock:e.elementInfo.lock}],style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}},[Object(j["createVNode"])("div",{class:"rotate-wrapper",style:{transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[Object(j["withDirectives"])(Object(j["createVNode"])("div",{class:"element-content",style:{opacity:e.elementInfo.opacity,filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle},onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])(l,{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height},{default:ma((function(){return[e.elementInfo.gradient?(Object(j["openBlock"])(),Object(j["createBlock"])("defs",va,[Object(j["createVNode"])(r,{id:"editabel-gradient-".concat(e.elementInfo.id),type:e.elementInfo.gradient.type,color1:e.elementInfo.gradient.color[0],color2:e.elementInfo.gradient.color[1],rotate:e.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("g",{transform:"scale(".concat(e.elementInfo.width/e.elementInfo.viewBox,", ").concat(e.elementInfo.height/e.elementInfo.viewBox,") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(j["createVNode"])("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",d:e.elementInfo.path,fill:e.elementInfo.gradient?"url(#editabel-gradient-".concat(e.elementInfo.id,")"):e.elementInfo.fill,stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,["d","fill","stroke","stroke-width","stroke-dasharray"])],8,["transform"])]})),_:1},8,["width","height"])],36),[[i,e.contextmenus]])],4)],6)})),ha=Object(j["defineComponent"])({name:"editable-element-shape",components:{GradientDefs:Un},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},n=Object(j["computed"])((function(){return e.elementInfo.outline})),o=mn(n),c=o.outlineWidth,a=o.outlineStyle,r=o.outlineColor,l=Object(j["computed"])((function(){return e.elementInfo.shadow})),i=cn(l),u=i.shadowStyle,d=Object(j["computed"])((function(){return e.elementInfo.flip})),s=an(d),f=s.flipStyle;return{handleSelectElement:t,shadowStyle:u,outlineWidth:c,outlineStyle:a,outlineColor:r,flipStyle:f}}});n("fe41");ha.render=Oa,ha.__scopeId="data-v-c7ebf780";var ja=ha,ga=Object(j["withScopeId"])("data-v-7d3d40d6"),ya=ga((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("LinePointMarker"),l=Object(j["resolveComponent"])("SvgWrapper"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-shape",{lock:e.elementInfo.lock}],style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"}},[Object(j["createVNode"])("div",{class:"element-content",style:{filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):""}},[Object(j["createVNode"])(l,{overflow:"visible",width:e.svgWidth,height:e.svgHeight},{default:ga((function(){return[Object(j["createVNode"])("defs",null,[e.elementInfo.points[0]?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,id:e.elementInfo.id,position:"start",type:e.elementInfo.points[0],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(j["createCommentVNode"])("",!0),e.elementInfo.points[1]?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,id:e.elementInfo.id,position:"end",type:e.elementInfo.points[1],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(j["createCommentVNode"])("",!0)]),Object(j["createVNode"])("path",{d:e.path,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.width,"stroke-dasharray":e.lineDashArray,fill:"none","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":"","marker-start":e.elementInfo.points[0]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[0],"-start)"):"","marker-end":e.elementInfo.points[1]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[1],"-end)"):""},null,8,["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"]),Object(j["withDirectives"])(Object(j["createVNode"])("path",{class:"line-path",d:e.path,stroke:"transparent","stroke-width":"20",fill:"none",onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t)})},null,40,["d"]),[[i,e.contextmenus]])]})),_:1},8,["width","height"])],4)],6)})),ka=Object(j["defineComponent"])({name:"editable-element-shape",components:{LinePointMarker:Qn},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},n=Object(j["computed"])((function(){return e.elementInfo.shadow})),o=cn(n),c=o.shadowStyle,a=Object(j["computed"])((function(){var t=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return t<24?24:t})),r=Object(j["computed"])((function(){var t=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return t<24?24:t})),l=Object(j["computed"])((function(){return"dashed"===e.elementInfo.style?"10 6":"0 0"})),i=Object(j["computed"])((function(){var t=e.elementInfo.start.join(","),n=e.elementInfo.end.join(",");if(e.elementInfo.broken){var o=e.elementInfo.broken.join(",");return"M".concat(t," L").concat(o," L").concat(n)}if(e.elementInfo.curve){var c=e.elementInfo.curve.join(",");return"M".concat(t," Q").concat(c," ").concat(n)}return"M".concat(t," L").concat(n)}));return{handleSelectElement:t,shadowStyle:c,svgWidth:a,svgHeight:r,lineDashArray:l,path:i}}});n("b7b4");ka.render=ya,ka.__scopeId="data-v-7d3d40d6";var Ea=ka,Ia=Object(j["withScopeId"])("data-v-d2dd6e5c"),Sa=Ia((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ElementOutline"),l=Object(j["resolveComponent"])("Chart"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-chart",{lock:e.elementInfo.lock}],style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}},[Object(j["withDirectives"])(Object(j["createVNode"])("div",{class:"element-content",style:{backgroundColor:e.elementInfo.fill},onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])(r,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(j["createVNode"])(l,{width:e.elementInfo.width,height:e.elementInfo.height,type:e.elementInfo.chartType,data:e.elementInfo.data,options:e.elementInfo.options,themeColor:e.elementInfo.themeColor,gridColor:e.elementInfo.gridColor},null,8,["width","height","type","data","options","themeColor","gridColor"])],36),[[i,e.contextmenus]])],6)})),Ca=Object(j["withScopeId"])("data-v-233b1dc8");Object(j["pushScopeId"])("data-v-233b1dc8");var Na={class:"chart"};Object(j["popScopeId"])();var xa=Ca((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",Na,[Object(j["createVNode"])("div",{class:"chart-content",ref:"chartRef",style:{width:e.width+"px",height:e.height+"px",transform:"scale(".concat(1/e.slideScale,")")}},null,4)])})),Ta=n("8103"),La=n.n(Ta),wa=n("ba48"),Va=n.n(wa),_a=(n("aa97"),Object(j["defineComponent"])({name:"chart",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},type:{type:String,required:!0},data:{type:Object,required:!0},options:{type:Object},themeColor:{type:String,required:!0},gridColor:{type:String}},setup:function(e){var t,n=Object(j["ref"])(),o=Object(j["inject"])("slideScale")||Object(j["ref"])(1),c=function(){var t=e.options||{},n=Object(R["a"])(Object(R["a"])({},t),{},{width:e.width*o.value,height:e.height*o.value}),c="pie"===e.type?Object(R["a"])(Object(R["a"])({},e.data),{},{series:e.data.series[0]}):e.data;return{data:c,options:n}},a=function(){if(n.value){var o=La()(e.type),a=c(),r=a.data,l=a.options;t=new Va.a[o](n.value,r,l)}},r=function(){if(t){var e=c(),n=e.data,o=e.options;t.update(n,o)}else a()};Object(j["watch"])([function(){return e.width},function(){return e.height},function(){return e.data},o],r),Object(j["onMounted"])(a);var l=function(){if(n.value)for(var t=bo()(e.themeColor).analogous(10),o=0;o<10;o++){var c=t[o].toRgbString();n.value.style.setProperty("--theme-color-".concat(o+1),c)}};Object(j["watch"])((function(){return e.themeColor}),l),Object(j["onMounted"])(l);var i=function(){n.value&&e.gridColor&&n.value.style.setProperty("--grid-color",e.gridColor)};return Object(j["watch"])((function(){return e.gridColor}),i),Object(j["onMounted"])(i),{slideScale:o,chartRef:n}}}));n("a902"),n("32d8");_a.render=xa,_a.__scopeId="data-v-233b1dc8";var Ba=_a,Da=Object(j["defineComponent"])({name:"editable-element-chart",components:{ElementOutline:Dn,Chart:Ba},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))};return{handleSelectElement:t}}});n("d32e");Da.render=Sa,Da.__scopeId="data-v-d2dd6e5c";var Ma=Da,Aa=Object(j["withScopeId"])("data-v-2e0f379c");Object(j["pushScopeId"])("data-v-2e0f379c");var Pa={class:"element-content"};Object(j["popScopeId"])();var Ra=Aa((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("EditableTable"),l=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-table",{lock:e.elementInfo.lock}],ref:"elementRef",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"}},[Object(j["withDirectives"])(Object(j["createVNode"])("div",Pa,[Object(j["createVNode"])(r,{onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(){}),["stop"])),data:e.elementInfo.data,width:e.elementInfo.width,colWidths:e.elementInfo.colWidths,outline:e.elementInfo.outline,theme:e.elementInfo.theme,editable:e.editable,onChange:t[2]||(t[2]=function(t){return e.updateTableCells(t)}),onChangeColWidths:t[3]||(t[3]=function(t){return e.updateColWidths(t)}),onChangeSelectedCells:t[4]||(t[4]=function(t){return e.updateSelectedCells(t)})},null,8,["data","width","colWidths","outline","theme","editable"]),!e.editable||e.elementInfo.lock?(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:0,class:["table-mask",{lock:e.elementInfo.lock}],onDblclick:t[5]||(t[5]=function(t){return e.startEdit()}),onMousedown:t[6]||(t[6]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])("div",{class:"mask-tip",style:{transform:"scale(".concat(1/e.canvasScale,")")}},"双击编辑",4)],34)):Object(j["createCommentVNode"])("",!0)],512),[[l,e.contextmenus]])],6)})),Fa=Object(j["withScopeId"])("data-v-70bdbb7e");Object(j["pushScopeId"])("data-v-70bdbb7e");var Ha={key:0,class:"handler"};Object(j["popScopeId"])();var za=Fa((function(e,t,n,o,c,a){var r,l,i,u,d,s=Object(j["resolveComponent"])("CustomTextarea"),f=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"editable-table",style:{width:e.totalWidth+"px"}},[e.editable?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Ha,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.dragLinePosition,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"drag-line",key:n,style:{left:t+"px"},onMousedown:function(t){return e.handleMousedownColHandler(t,n)}},null,44,["onMousedown"])})),128))])):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("table",{class:{theme:e.theme,"row-header":null===(r=e.theme)||void 0===r?void 0:r.rowHeader,"row-footer":null===(l=e.theme)||void 0===l?void 0:l.rowFooter,"col-header":null===(i=e.theme)||void 0===i?void 0:i.colHeader,"col-footer":null===(u=e.theme)||void 0===u?void 0:u.colFooter},style:"--themeColor: ".concat(null===(d=e.theme)||void 0===d?void 0:d.color,"; --subThemeColor1: ").concat(e.subThemeColor[0],"; --subThemeColor2: ").concat(e.subThemeColor[1])},[Object(j["createVNode"])("colgroup",null,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.colSizeList,(function(e,t){return Object(j["openBlock"])(),Object(j["createBlock"])("col",{span:"1",key:t,width:e},null,8,["width"])})),128))]),Object(j["createVNode"])("tbody",null,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.tableCells,(function(n,o){return Object(j["openBlock"])(),Object(j["createBlock"])("tr",{key:o},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(n,(function(n,c){return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createBlock"])("td",{class:["cell",{selected:e.selectedCells.includes("".concat(o,"_").concat(c))&&e.selectedCells.length>1,active:e.activedCell==="".concat(o,"_").concat(c)}],style:Object(R["a"])({borderStyle:e.outline.style,borderColor:e.outline.color,borderWidth:e.outline.width+"px"},e.getTextStyle(n.style)),key:n.id,rowspan:n.rowspan,colspan:n.colspan,"data-cell-index":"".concat(o,"_").concat(c),onMousedown:function(t){return e.handleCellMousedown(t,o,c)},onMouseenter:function(t){return e.handleCellMouseenter(o,c)}},[Object(j["createVNode"])(s,{class:["cell-text",{active:e.activedCell==="".concat(o,"_").concat(c)}],contenteditable:e.activedCell==="".concat(o,"_").concat(c)&&"plaintext-only",modelValue:n.text,"onUpdate:modelValue":[function(e){return n.text=e},t[1]||(t[1]=function(t){return e.handleInput()})]},null,8,["class","contenteditable","modelValue","onUpdate:modelValue"])],46,["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"])),[[j["vShow"],!e.hideCells.includes("".concat(o,"_").concat(c))],[f,function(t){return e.contextmenus(t)}]])})),128))])})),128))])],6)],4)})),Ua=(n("1276"),Object(j["withScopeId"])("data-v-0d17e957")),Ga=Ua((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"custom-textarea",ref:"textareaRef",contenteditable:e.contenteditable,onFocus:t[1]||(t[1]=function(){return e.handleFocus&&e.handleFocus.apply(e,arguments)}),onBlur:t[2]||(t[2]=function(){return e.handleBlur&&e.handleBlur.apply(e,arguments)}),onInput:t[3]||(t[3]=function(t){return e.handleInput(t)}),innerHTML:e.text},null,40,["contenteditable","innerHTML"])})),qa=Object(j["defineComponent"])({name:"custom-textarea",props:{modelValue:{type:String,default:""},contenteditable:{type:[Boolean,String],default:!1}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(),c=Object(j["ref"])(""),a=Object(j["ref"])(!1);Object(j["watch"])((function(){return e.modelValue}),(function(){a.value||(c.value=e.modelValue,o.value&&(o.value.innerHTML=e.modelValue))}),{immediate:!0});var r=function(){if(o.value){var e=o.value.innerHTML;n("update:modelValue",e)}},l=function(){a.value=!0,o.value&&(o.value.onpaste=function(e){if(e.preventDefault(),e.clipboardData){var t=e.clipboardData.items[0];t&&"string"===t.kind&&"text/plain"===t.type&&t.getAsString((function(e){return n("update:modelValue",e)}))}})},i=function(){a.value=!1,o.value&&(o.value.onpaste=null)};return Object(j["onUnmounted"])((function(){o.value&&(o.value.onpaste=null)})),{textareaRef:o,handleFocus:l,handleInput:r,handleBlur:i,text:c}}});n("90b2");qa.render=Ga,qa.__scopeId="data-v-0d17e957";var Xa=qa,Wa=Object(j["defineComponent"])({name:"editable-table",components:{CustomTextarea:Xa},props:{data:{type:Array,required:!0},width:{type:Number,required:!0},colWidths:{type:Array,required:!0},outline:{type:Object,required:!0},theme:{type:Object},editable:{type:Boolean,default:!0}},setup:function(e,t){var n=t.emit,o=Y(),c=Object(j["computed"])((function(){return o.state.canvasScale})),a=Object(j["ref"])(!1),r=Object(j["ref"])([]),l=Object(j["ref"])([]),i=Object(j["computed"])({get:function(){return e.data},set:function(e){n("change",e)}}),u=Object(j["computed"])((function(){return e.theme})),d=mo(u),s=d.subThemeColor,f=Object(j["ref"])([]),p=Object(j["computed"])((function(){return f.value.reduce((function(e,t){return e+t}))}));Object(j["watch"])([function(){return e.colWidths},function(){return e.width}],(function(){f.value=e.colWidths.map((function(t){return t*e.width}))}),{immediate:!0});var b=function(){r.value=[],l.value=[]};Object(j["watch"])((function(){return e.editable}),(function(){e.editable||b()}));var m=Object(j["computed"])((function(){for(var e=[],t=1;t=d&&b<=f&&v>=s&&v<=p&&u.push("".concat(b,"_").concat(v));return u}));Object(j["watch"])(g,(function(){n("changeSelectedCells",g.value)}));var y=Object(j["computed"])((function(){return g.value.length>1?null:g.value[0]})),k=Object(j["computed"])((function(){if(!r.value.length)return null;var e=Object(rn["a"])(r.value,2),t=e[0],n=e[1];if(!l.value.length)return{row:[t,t],col:[n,n]};var o=Object(rn["a"])(l.value,2),c=o[0],a=o[1];if(t===c&&n===a)return{row:[t,t],col:[n,n]};var i=Math.min(t,c),u=Math.min(n,a),d=Math.max(t,c),s=Math.max(n,a);return{row:[i,d],col:[u,s]}})),E=function(){return a.value=!1},I=function(e,t,n){0===e.button&&(l.value=[],a.value=!0,r.value=[t,n])},S=function(e,t){a.value&&(l.value=[e,t])};Object(j["onMounted"])((function(){document.addEventListener("mouseup",E)})),Object(j["onUnmounted"])((function(){document.removeEventListener("mouseup",E)}));var C=function(e,t){return h.value.includes("".concat(e,"_").concat(t))},N=function(e){var t=i.value.length-1;r.value=[0,e],l.value=[t,e]},x=function(e){var t=i.value[e].length-1;r.value=[e,0],l.value=[e,t]},T=function(){var e=i.value.length-1,t=i.value[e].length-1;r.value=[0,0],l.value=[e,t]},L=function(e){for(var t=JSON.parse(JSON.stringify(i.value)),n=i.value[e],o=[],c=0;c=0;u--)if(!C(u,l)){t[u][l].rowspan=t[u][l].rowspan-1;break}t.splice(e,1),i.value=t},w=function(e){for(var t=JSON.parse(JSON.stringify(i.value)),o=[],c=0;c=0;u--)if(!C(l,u)){t[l][u].colspan=t[l][u].colspan-1;break}i.value=t.map((function(t){return t.splice(e,1),t})),f.value.splice(e,1),n("changeColWidths",f.value)},V=function(e){for(var t=JSON.parse(JSON.stringify(i.value)),n=[],o=0;o1,n=e[0].length>1;return{canDeleteRow:t,canDeleteCol:n}},U=function(e,t){var n=g.value.length>1,o=i.value[e][t],c=n,a=!n&&(o.rowspan>1||o.colspan>1);return{canMerge:c,canSplit:a}},G=function(e){var t=e.dataset.cellIndex,n=+t.split("_")[0],o=+t.split("_")[1];g.value.includes("".concat(n,"_").concat(o))||(r.value=[n,o],l.value=[]);var c=U(n,o),a=c.canMerge,i=c.canSplit,u=z(),d=u.canDeleteRow,s=u.canDeleteCol;return[{text:"插入列",children:[{text:"到左侧",handler:function(){return _(o)}},{text:"到右侧",handler:function(){return _(o+1)}}]},{text:"插入行",children:[{text:"到上方",handler:function(){return V(n)}},{text:"到下方",handler:function(){return V(n+1)}}]},{text:"删除列",disable:!s,handler:function(){return w(o)}},{text:"删除行",disable:!d,handler:function(){return L(n)}},{divider:!0},{text:"合并单元格",disable:!a,handler:B},{text:"取消合并单元格",disable:!i,handler:function(){return D(n,o)}},{divider:!0},{text:"选中当前列",handler:function(){return N(o)}},{text:"选中当前行",handler:function(){return x(n)}},{text:"选中全部单元格",handler:T}]};return{getTextStyle:so,dragLinePosition:m,tableCells:i,colSizeList:f,totalWidth:p,hideCells:h,selectedCells:g,activedCell:y,selectedRange:k,handleCellMousedown:I,handleCellMouseenter:S,selectCol:N,selectRow:x,handleMousedownColHandler:M,contextmenus:G,handleInput:F,subThemeColor:s}}});n("9fed");Wa.render=za,Wa.__scopeId="data-v-70bdbb7e";var Ya=Wa,Za=Object(j["defineComponent"])({name:"editable-element-table",components:{EditableTable:Ya},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return t.state.handleElementId})),c=Object(j["ref"])(),a=Ne(),r=a.addHistorySnapshot,l=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},i=Object(j["ref"])(!1);Object(j["watch"])(o,(function(){o.value!==e.elementInfo.id&&(i.value=!1)})),Object(j["watch"])(i,(function(){t.commit(y.SET_DISABLE_HOTKEYS_STATE,i.value)}));var u=function(){e.elementInfo.lock||(i.value=!0)},d=Object(j["ref"])(!1),s=Object(j["ref"])(-1),f=function(n){d.value=n,n&&(i.value=!1),n||-1===s.value||(t.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{height:s.value}}),s.value=-1)};qo.on(Lo.SCALE_ELEMENT_STATE,(function(e){return f(e)})),Object(j["onUnmounted"])((function(){qo.off(Lo.SCALE_ELEMENT_STATE,(function(e){return f(e)}))}));var p=function(n){var o=n[0].contentRect;if(c.value){var a=o.height;e.elementInfo.height!==a&&(d.value?s.value=a:t.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{height:a}}))}},b=new ResizeObserver(p);Object(j["onMounted"])((function(){c.value&&b.observe(c.value)})),Object(j["onUnmounted"])((function(){c.value&&b.unobserve(c.value)}));var m=function(n){t.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{data:n}}),r()},v=function(n){var o=n.reduce((function(e,t){return e+t})),c=n.map((function(e){return e/o}));t.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{width:o,colWidths:c}}),r()},O=function(e){Object(j["nextTick"])((function(){return qo.emit(Lo.UPDATE_TABLE_SELECTED_CELL,e)}))};return{elementRef:c,canvasScale:n,handleSelectElement:l,updateTableCells:m,updateColWidths:v,editable:i,startEdit:u,updateSelectedCells:O}}});n("63bf");Za.render=Ra,Za.__scopeId="data-v-2e0f379c";var Ja=Za,Ka=Object(j["defineComponent"])({name:"editable-element",props:{elementInfo:{type:Object,required:!0},elementIndex:{type:Number,required:!0},isMultiSelect:{type:Boolean,required:!0},selectElement:{type:Function,required:!0}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.theme})),o=Object(j["computed"])((function(){var t,n=(t={},Object(N["a"])(t,Xt.IMAGE,pc),Object(N["a"])(t,Xt.TEXT,ba),Object(N["a"])(t,Xt.SHAPE,ja),Object(N["a"])(t,Xt.LINE,Ea),Object(N["a"])(t,Xt.CHART,Ma),Object(N["a"])(t,Xt.TABLE,Ja),t);return n[e.elementInfo.type]||null})),c=Fe(),a=c.orderElement,r=cc(),l=r.alignElementToCanvas,i=Me(),u=i.combineElements,d=i.uncombineElements,s=De(),f=s.deleteElement,p=Be(),b=p.lockElement,m=p.unlockElement,v=Ae(),O=v.copyElement,h=v.pasteElement,g=v.cutElement,y=Pe(),k=y.selectAllElement,E=function(){return e.elementInfo.lock?[{text:"解锁",handler:function(){return m(e.elementInfo)}}]:[{text:"剪切",subText:"Ctrl + X",handler:g},{text:"复制",subText:"Ctrl + C",handler:O},{text:"粘贴",subText:"Ctrl + V",handler:h},{divider:!0},{text:"水平居中",handler:function(){return l(ee.HORIZONTAL)},children:[{text:"水平垂直居中",handler:function(){return l(ee.CENTER)}},{text:"水平居中",handler:function(){return l(ee.HORIZONTAL)}},{text:"左对齐",handler:function(){return l(ee.LEFT)}},{text:"右对齐",handler:function(){return l(ee.RIGHT)}}]},{text:"垂直居中",handler:function(){return l(ee.VERTICAL)},children:[{text:"水平垂直居中",handler:function(){return l(ee.CENTER)}},{text:"垂直居中",handler:function(){return l(ee.VERTICAL)}},{text:"顶部对齐",handler:function(){return l(ee.TOP)}},{text:"底部对齐",handler:function(){return l(ee.BOTTOM)}}]},{divider:!0},{text:"置于顶层",disable:e.isMultiSelect&&!e.elementInfo.groupId,handler:function(){return a(e.elementInfo,$.TOP)},children:[{text:"置于顶层",handler:function(){return a(e.elementInfo,$.TOP)}},{text:"上移一层",handler:function(){return a(e.elementInfo,$.UP)}}]},{text:"置于底层",disable:e.isMultiSelect&&!e.elementInfo.groupId,handler:function(){return a(e.elementInfo,$.BOTTOM)},children:[{text:"置于底层",handler:function(){return a(e.elementInfo,$.BOTTOM)}},{text:"下移一层",handler:function(){return a(e.elementInfo,$.DOWN)}}]},{divider:!0},{text:e.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:e.elementInfo.groupId?d:u,hide:!e.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:k},{text:"锁定",subText:"Ctrl + L",handler:b},{text:"删除",subText:"Delete",handler:f}]};return{currentElementComponent:o,contextmenus:E,theme:n}}});Ka.render=oc;var Qa=Ka,$a=Object(j["withScopeId"])("data-v-1619c258"),er=$a((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"mouse-selection quadrant-".concat(n.quadrant),style:{top:n.top+"px",left:n.left+"px",width:n.width+"px",height:n.height+"px"}},null,6)})),tr={name:"mouse-selection",props:{top:{type:Number,required:!0},left:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0},quadrant:{type:Number,required:!0,validator:function(e){return[1,2,3,4].includes(e)}}}};n("2007");tr.render=er,tr.__scopeId="data-v-1619c258";var nr=tr,or=Object(j["withScopeId"])("data-v-a9ca1b50"),cr=or((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("GridLines");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"viewport-background",style:e.backgroundStyle},[e.showGridLines?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0})):Object(j["createCommentVNode"])("",!0)],4)})),ar=Object(j["withScopeId"])("data-v-3cb2c22e"),rr=ar((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper");return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"grid-lines"},{default:ar((function(){return[Object(j["createVNode"])("path",{style:{transform:"scale(".concat(e.canvasScale,")")},d:e.path,fill:"none",stroke:e.gridColor,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,["d","stroke"])]})),_:1})})),lr=Object(j["defineComponent"])({name:"grid-lines",setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.canvasScale})),n=Object(j["computed"])((function(){return e.state.viewportRatio})),o=Object(j["computed"])((function(){var t;return null===(t=e.getters.currentSlide)||void 0===t?void 0:t.background})),c=Object(j["computed"])((function(){var e,t=(null===(e=o.value)||void 0===e?void 0:e.color)||"#fff",n=["#000","#fff"];return bo.a.mostReadable(t,n,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()})),a=50,r=function(){for(var e=Le,t=Le*n.value,o="",c=0;c<=Math.floor(t/a);c++)o+="M0 ".concat(c*a," L").concat(e," ").concat(c*a," ");for(var r=0;r<=Math.floor(e/a);r++)o+="M".concat(r*a," 0 L").concat(r*a," ").concat(t," ");return o};return{canvasScale:t,gridColor:c,width:Le,height:Le*n.value,path:r()}}});n("5c4c");lr.render=rr,lr.__scopeId="data-v-3cb2c22e";var ir=lr,ur=Object(j["defineComponent"])({name:"viewport-background",components:{GridLines:ir},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.showGridLines})),n=Object(j["computed"])((function(){var t;return null===(t=e.getters.currentSlide)||void 0===t?void 0:t.background})),o=Qt(n),c=o.backgroundStyle;return{showGridLines:t,backgroundStyle:c}}});n("f802");ur.render=cr,ur.__scopeId="data-v-a9ca1b50";var dr=ur,sr=Object(j["withScopeId"])("data-v-2d3eddf5"),fr=sr((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"alignment-line",style:{left:e.left,top:e.top}},[Object(j["createVNode"])("div",{class:["line",e.type],style:e.sizeStyle},null,6)],4)})),pr=Object(j["defineComponent"])({name:"alignment-line",props:{type:{type:String,required:!0},axis:{type:Object,required:!0},length:{type:Number,required:!0}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return e.axis.x*n.value+"px"})),c=Object(j["computed"])((function(){return e.axis.y*n.value+"px"})),a=Object(j["computed"])((function(){return"vertical"===e.type?{height:e.length*n.value+"px"}:{width:e.length*n.value+"px"}}));return{left:o,top:c,sizeStyle:a}}});n("92ad");pr.render=fr,pr.__scopeId="data-v-2d3eddf5";var br=pr,mr=Object(j["withScopeId"])("data-v-3c5b7aac"),vr=mr((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"element-create-selection",ref:"selectionRef",onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.createSelection(t)}),["stop"]))},[e.start&&e.end?(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:0,class:["selection",e.creatingElement.type],style:e.position},["line"===e.creatingElement.type&&e.lineData?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,overflow:"visible",width:e.lineData.svgWidth,height:e.lineData.svgHeight},{default:mr((function(){return[Object(j["createVNode"])("path",{d:e.lineData.path,stroke:"#d14424",fill:"none","stroke-width":"1","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":""},null,8,["d"])]})),_:1},8,["width","height"])):Object(j["createCommentVNode"])("",!0)],6)):Object(j["createCommentVNode"])("",!0)],544)})),Or=Object(j["defineComponent"])({name:"element-create-selection",setup:function(e,t){var n=t.emit,o=Y(),c=Object(j["computed"])((function(){return o.getters.ctrlOrShiftKeyActive})),a=Object(j["computed"])((function(){return o.state.creatingElement})),r=Object(j["ref"])(),l=Object(j["ref"])(),i=Object(j["ref"])(),u=Object(j["reactive"])({x:0,y:0});Object(j["onMounted"])((function(){if(i.value){var e=i.value.getBoundingClientRect(),t=e.x,n=e.y;u.x=t,u.y=n}}));var d=function(e){var t=!0,o=e.pageX,i=e.pageY;r.value=[o,i],document.onmousemove=function(e){if(a.value&&t){var n=e.pageX,r=e.pageY;if(c.value){var u=n-o,d=r-i,s=Math.abs(u),f=Math.abs(d);if("shape"===a.value.type){var p=d>0&&u<0||d<0&&u>0;s>f?r=p?i-u:i+u:n=p?o-d:o+d}else"line"===a.value.type&&(s>f?r=i:n=o)}l.value=[n,r]}},document.onmouseup=function(e){var c,u;document.onmousemove=null,document.onmouseup=null,t=!1;var d=e.pageX,s=e.pageY,f=30;if("line"===(null===(c=a.value)||void 0===c?void 0:c.type)&&(Math.abs(d-o)>=f||Math.abs(s-i)>=f))n("created",{start:r.value,end:l.value});else if("line"!==(null===(u=a.value)||void 0===u?void 0:u.type)&&Math.abs(d-o)>=f&&Math.abs(s-i)>=f)n("created",{start:r.value,end:l.value});else{var p=200,b=Math.min(d,o),m=Math.min(s,i),v=Math.max(d,o),O=Math.max(s,i),h=v-b>=f?v-b:p,j=O-m>=f?O-m:p;n("created",{start:[b,m],end:[b+h,m+j]})}}},s=Object(j["computed"])((function(){if(!r.value||!l.value)return null;if(!a.value||"line"!==a.value.type)return null;var e=Object(rn["a"])(r.value,2),t=e[0],n=e[1],o=Object(rn["a"])(l.value,2),c=o[0],i=o[1],u=Math.min(t,c),d=Math.max(t,c),s=Math.min(n,i),f=Math.max(n,i),p=d-u>=24?d-u:24,b=f-s>=24?f-s:24,m=t===u?0:d-u,v=n===s?0:f-s,O=c===u?0:d-u,h=i===s?0:f-s,j="M".concat(m,", ").concat(v," L").concat(O,", ").concat(h);return{svgWidth:p,svgHeight:b,startX:m,startY:v,endX:O,endY:h,path:j}})),f=Object(j["computed"])((function(){if(!r.value||!l.value)return{};var e=Object(rn["a"])(r.value,2),t=e[0],n=e[1],o=Object(rn["a"])(l.value,2),c=o[0],a=o[1],i=Math.min(t,c),d=Math.max(t,c),s=Math.min(n,a),f=Math.max(n,a),p=d-i,b=f-s;return{left:i-u.x+"px",top:s-u.y+"px",width:p+"px",height:b+"px"}}));return{selectionRef:i,start:r,end:l,creatingElement:a,createSelection:d,lineData:s,position:f}}});n("1949");Or.render=vr,Or.__scopeId="data-v-3c5b7aac";var hr=Or,jr=Object(j["withScopeId"])("data-v-4def6455"),gr=jr((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"multi-select-operate",style:{left:e.minX*e.canvasScale+"px",top:e.minY*e.canvasScale+"px"}},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.disableResize?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],{key:0},Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleMultiElement(n,{minX:e.minX,maxX:e.maxX,minY:e.minY,maxY:e.maxY},t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128))],4)})),yr=function(e,t){var n=Object(j["computed"])((function(){return[{direction:ne.LEFT_TOP,style:{}},{direction:ne.TOP,style:{left:e.value/2+"px"}},{direction:ne.RIGHT_TOP,style:{left:e.value+"px"}},{direction:ne.LEFT,style:{top:t.value/2+"px"}},{direction:ne.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:ne.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:ne.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:ne.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]})),o=Object(j["computed"])((function(){return[{direction:ne.LEFT,style:{top:t.value/2+"px"}},{direction:ne.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]})),c=Object(j["computed"])((function(){return[{type:te.T,style:{width:e.value+"px"}},{type:te.B,style:{top:t.value+"px",width:e.value+"px"}},{type:te.L,style:{height:t.value+"px"}},{type:te.R,style:{left:e.value+"px",height:t.value+"px"}}]}));return{resizeHandlers:n,textElementResizeHandlers:o,borderLines:c}},kr=Object(j["withScopeId"])("data-v-1c2a68d0"),Er=kr((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["resize-handler",n.type]},null,2)})),Ir={name:"resize-handler",props:{type:{type:String,default:""}}};n("a933");Ir.render=Er,Ir.__scopeId="data-v-1c2a68d0";var Sr=Ir,Cr=Object(j["withScopeId"])("data-v-630e246b"),Nr=Cr((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["border-line",n.type,{wide:n.isWide}]},null,2)})),xr={name:"border-line",props:{type:{type:String,required:!0},isWide:{type:Boolean,default:!1}}};n("fb1d");xr.render=Nr,xr.__scopeId="data-v-630e246b";var Tr=xr,Lr=Object(j["defineComponent"])({name:"multi-select-operate",components:{ResizeHandler:Sr,BorderLine:Tr},props:{elementList:{type:Array,required:!0},scaleMultiElement:{type:Function,required:!0}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.activeElementIdList})),o=Object(j["computed"])((function(){return t.state.canvasScale})),c=Object(j["computed"])((function(){return e.elementList.filter((function(e){return n.value.includes(e.id)}))})),a=Object(j["reactive"])({minX:0,maxX:0,minY:0,maxY:0}),r=Object(j["computed"])((function(){return(a.maxX-a.minX)*o.value})),l=Object(j["computed"])((function(){return(a.maxY-a.minY)*o.value})),i=yr(r,l),u=i.resizeHandlers,d=i.borderLines,s=function(){var e=Ao(c.value),t=e.minX,n=e.maxX,o=e.minY,r=e.maxY;a.minX=t,a.maxX=n,a.minY=o,a.maxY=r};Object(j["watchEffect"])(s);var f=Object(j["computed"])((function(){return c.value.some((function(e){return!!("image"!==e.type&&"shape"!==e.type||e.rotate)}))}));return Object(R["a"])(Object(R["a"])({},Object(j["toRefs"])(a)),{},{canvasScale:o,borderLines:d,disableResize:f,resizeHandlers:u})}});n("de7c");Lr.render=gr,Lr.__scopeId="data-v-4def6455";var wr=Lr,Vr=Object(j["withScopeId"])("data-v-558a94fe");Object(j["pushScopeId"])("data-v-558a94fe");var _r={key:1,class:"animation-index"};Object(j["popScopeId"])();var Br=Vr((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["operate",{"multi-select":e.isMultiSelect&&!e.isActive}],style:{top:e.elementInfo.top*e.canvasScale+"px",left:e.elementInfo.left*e.canvasScale+"px",transform:"rotate(".concat(e.elementInfo.rotate,"deg)"),transformOrigin:"".concat(e.elementInfo.width*e.canvasScale/2,"px ").concat(e.elementInfo.height*e.canvasScale/2,"px")}},[e.isSelected?(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentOperateComponent),{key:0,elementInfo:e.elementInfo,isActiveGroupElement:e.isActiveGroupElement,isMultiSelect:e.isMultiSelect,rotateElement:e.rotateElement,scaleElement:e.scaleElement,dragLineElement:e.dragLineElement},null,8,["elementInfo","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement"])):Object(j["createCommentVNode"])("",!0),"elAnimation"===e.toolbarState&&-1!==e.elementIndexInAnimation?(Object(j["openBlock"])(),Object(j["createBlock"])("div",_r,Object(j["toDisplayString"])(e.elementIndexInAnimation+1),1)):Object(j["createCommentVNode"])("",!0)],6)})),Dr=Object(j["withScopeId"])("data-v-5b0628aa"),Mr=Dr((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["image-element-operate",{cliping:e.isCliping}]},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-border-line",key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"operate-resize-handler",key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128)),Object(j["createVNode"])(i,{class:"operate-rotate-handler",style:{left:e.scaleWidth/2+"px"},onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64))],2)})),Ar=Object(j["withScopeId"])("data-v-9a549510");Object(j["pushScopeId"])("data-v-9a549510");var Pr={class:"rotate-handler"};Object(j["popScopeId"])();var Rr=Ar((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",Pr)})),Fr={name:"rotate-handler"};n("8754");Fr.render=Rr,Fr.__scopeId="data-v-9a549510";var Hr=Fr,zr=Object(j["defineComponent"])({name:"image-element-operate",inheritAttrs:!1,components:{RotateHandler:Hr,ResizeHandler:Sr,BorderLine:Tr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return t.state.clipingImageElementId})),c=Object(j["computed"])((function(){return o.value===e.elementInfo.id})),a=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),r=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),l=yr(a,r),i=l.resizeHandlers,u=l.borderLines;return{isCliping:c,scaleWidth:a,resizeHandlers:i,borderLines:u}}});n("5c02");zr.render=Mr,zr.__scopeId="data-v-5b0628aa";var Ur=zr,Gr={class:"text-element-operate"};function qr(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Gr,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-border-line",key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.textElementResizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"operate-resize-handler",key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128)),Object(j["createVNode"])(i,{class:"operate-rotate-handler",style:{left:e.scaleWidth/2+"px"},onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64))])}var Xr=Object(j["defineComponent"])({name:"text-element-operate",inheritAttrs:!1,components:{RotateHandler:Hr,ResizeHandler:Sr,BorderLine:Tr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),c=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),a=yr(o,c),r=a.textElementResizeHandlers,l=a.borderLines;return{scaleWidth:o,textElementResizeHandlers:r,borderLines:l}}});Xr.render=qr;var Wr=Xr,Yr={class:"shape-element-operate"};function Zr(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Yr,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-border-line",key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"operate-resize-handler",key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128)),Object(j["createVNode"])(i,{class:"operate-rotate-handler",style:{left:e.scaleWidth/2+"px"},onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64))])}var Jr=Object(j["defineComponent"])({name:"shape-element-operate",inheritAttrs:!1,components:{RotateHandler:Hr,ResizeHandler:Sr,BorderLine:Tr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),c=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),a=yr(o,c),r=a.resizeHandlers,l=a.borderLines;return{scaleWidth:o,resizeHandlers:r,borderLines:l}}});Jr.render=Zr;var Kr=Jr,Qr={class:"text-element-operate"};function $r(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ResizeHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Qr,[e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],{key:0},Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.dragLineElement(n,e.elementInfo,t.handler)}),["stop"])},null,8,["type","style","onMousedown"])})),128))])}var el=Object(j["defineComponent"])({name:"text-element-operate",inheritAttrs:!1,components:{ResizeHandler:Sr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},dragLineElement:{type:Function,required:!0}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){var t=[{handler:oe.START,style:{left:e.elementInfo.start[0]*n.value+"px",top:e.elementInfo.start[1]*n.value+"px"}},{handler:oe.END,style:{left:e.elementInfo.end[0]*n.value+"px",top:e.elementInfo.end[1]*n.value+"px"}}];if(e.elementInfo.curve||e.elementInfo.broken){var o=e.elementInfo.curve||e.elementInfo.broken;t.push({handler:oe.MID,style:{left:o[0]*n.value+"px",top:o[1]*n.value+"px"}})}return t}));return{resizeHandlers:o}}});el.render=$r;var tl=el,nl={class:"chart-element-operate"};function ol(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",nl,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-border-line",key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],{key:0},Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"operate-resize-handler",key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128))])}var cl=Object(j["defineComponent"])({name:"chart-element-operate",inheritAttrs:!1,components:{ResizeHandler:Sr,BorderLine:Tr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),c=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),a=yr(o,c),r=a.resizeHandlers,l=a.borderLines;return{scaleWidth:o,resizeHandlers:r,borderLines:l}}});cl.render=ol;var al=cl,rl={class:"table-element-operate"};function ll(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",rl,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-border-line",key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],{key:0},Object(j["renderList"])(e.textElementResizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"operate-resize-handler",key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128))])}var il=Object(j["defineComponent"])({name:"table-element-operate",inheritAttrs:!1,components:{ResizeHandler:Sr,BorderLine:Tr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return e.elementInfo.outline.width||1})),c=Object(j["computed"])((function(){return(e.elementInfo.width+o.value)*n.value})),a=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),r=yr(c,a),l=r.textElementResizeHandlers,i=r.borderLines;return{scaleWidth:c,textElementResizeHandlers:l,borderLines:i}}});il.render=ll;var ul=il,dl=Object(j["defineComponent"])({name:"operate",props:{elementInfo:{type:Object,required:!0},isSelected:{type:Boolean,required:!0},isActive:{type:Boolean,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0},dragLineElement:{type:Function,required:!0}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return t.state.toolbarState})),c=Object(j["computed"])((function(){return t.getters.currentSlide})),a=Object(j["computed"])((function(){var t,n=(t={},Object(N["a"])(t,Xt.IMAGE,Ur),Object(N["a"])(t,Xt.TEXT,Wr),Object(N["a"])(t,Xt.SHAPE,Kr),Object(N["a"])(t,Xt.LINE,tl),Object(N["a"])(t,Xt.CHART,al),Object(N["a"])(t,Xt.TABLE,ul),t);return n[e.elementInfo.type]||null})),r=Object(j["computed"])((function(){var t=c.value.animations||[];return t.findIndex((function(t){return t.elId===e.elementInfo.id}))}));return{currentOperateComponent:a,canvasScale:n,toolbarState:o,elementIndexInAnimation:r}}});n("9884");dl.render=Br,dl.__scopeId="data-v-558a94fe";var sl=dl,fl=Object(j["defineComponent"])({name:"editor-canvas",components:{EditableElement:Qa,MouseSelection:nr,ViewportBackground:dr,AlignmentLine:br,ElementCreateSelection:hr,MultiSelectOperate:wr,Operate:sl},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.state.handleElementId})),o=Object(j["computed"])((function(){return e.state.editorAreaFocus})),c=Object(j["computed"])((function(){return e.state.ctrlKeyState})),a=Object(j["computed"])((function(){return e.getters.ctrlOrShiftKeyActive})),r=Object(j["ref"])(),l=Object(j["ref"])([]),i=Object(j["ref"])("");Object(j["watch"])(n,(function(){return i.value=""}));var u=Object(j["computed"])((function(){return e.getters.currentSlide})),d=Object(j["ref"])([]),s=function(){d.value=u.value?JSON.parse(JSON.stringify(u.value.elements)):[]};Object(j["watchEffect"])(s);var f=Object(j["ref"])(),p=Object(j["computed"])((function(){return e.state.canvasScale})),b=_o(f),m=b.viewportStyles;Fo(f);var v=Ro(d,r),O=v.mouseSelectionState,h=v.updateMouseSelection,g=ec(d,i,l),k=g.dragElement,E=tc(d),I=E.dragLineElement,S=$o(d,i,k),C=S.selectElement,N=Jo(d,i,l),x=N.scaleElement,T=N.scaleMultiElement,L=zo(d,r),w=L.rotateElement,V=Pe(),_=V.selectAllElement,B=De(),D=B.deleteAllElements,M=Ae(),A=M.pasteElement,P=Ge(),R=P.enterScreening,F=function(t){e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),a.value||h(t),o.value||e.commit(y.SET_EDITORAREA_FOCUS,!0),Vo()},H=function(){o.value&&e.commit(y.SET_EDITORAREA_FOCUS,!1)},z=qe(),U=z.scaleCanvas,G=Ce()(U,100,{leading:!0,trailing:!1}),q=function(e){c.value&&(e.preventDefault(),e.deltaY>0?G("-"):e.deltaY<0&&G("+"))},X=Object(j["computed"])((function(){return e.state.showGridLines})),W=function(){e.commit(y.SET_GRID_LINES_STATE,!X.value)},Z=Object(j["computed"])((function(){return e.state.creatingElement})),J=nc(r),K=J.insertElementFromCreateSelection,Q=function(){return[{text:"粘贴",subText:"Ctrl + V",handler:A},{text:"全选",subText:"Ctrl + A",handler:_},{text:"网格线",subText:X.value?"√":"",handler:W},{text:"重置当前页",handler:D},{divider:!0},{text:"从当前页演示",subText:"Ctrl+F",handler:R}]};return Object(j["provide"])("slideScale",p),{elementList:d,activeElementIdList:t,handleElementId:n,activeGroupElementId:i,canvasRef:f,viewportRef:r,viewportStyles:m,canvasScale:p,mouseSelectionState:O,handleClickBlankArea:F,removeEditorAreaFocus:H,currentSlide:u,creatingElement:Z,insertElementFromCreateSelection:K,alignmentLines:l,selectElement:C,rotateElement:w,scaleElement:x,dragLineElement:I,scaleMultiElement:T,mousewheelScaleCanvas:q,contextmenus:Q}}});n("0b92");fl.render=wo,fl.__scopeId="data-v-17169d5c";var pl=fl,bl=Object(j["withScopeId"])("data-v-59ae6536");Object(j["pushScopeId"])("data-v-59ae6536");var ml={class:"canvas-tool"},vl={class:"left-handler"},Ol={class:"add-element-handler"},hl={class:"right-handler"},jl={class:"text"};Object(j["popScopeId"])();var gl=bl((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconBack"),l=Object(j["resolveComponent"])("Tooltip"),i=Object(j["resolveComponent"])("IconNext"),u=Object(j["resolveComponent"])("IconFontSize"),d=Object(j["resolveComponent"])("IconPicture"),s=Object(j["resolveComponent"])("FileInput"),f=Object(j["resolveComponent"])("ShapePool"),p=Object(j["resolveComponent"])("IconGraphicDesign"),b=Object(j["resolveComponent"])("Popover"),m=Object(j["resolveComponent"])("LinePool"),v=Object(j["resolveComponent"])("IconConnection"),O=Object(j["resolveComponent"])("ChartPool"),h=Object(j["resolveComponent"])("IconChartProportion"),g=Object(j["resolveComponent"])("TableGenerator"),y=Object(j["resolveComponent"])("IconInsertTable"),k=Object(j["resolveComponent"])("IconMinus"),E=Object(j["resolveComponent"])("IconPlus"),I=Object(j["resolveComponent"])("IconFullScreen");return Object(j["openBlock"])(),Object(j["createBlock"])("div",ml,[Object(j["createVNode"])("div",vl,[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"撤销"},{default:bl((function(){return[Object(j["createVNode"])(r,{class:["handler-item",{disable:!e.canUndo}],onClick:t[1]||(t[1]=function(t){return e.undo()})},null,8,["class"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"重做"},{default:bl((function(){return[Object(j["createVNode"])(i,{class:["handler-item",{disable:!e.canRedo}],onClick:t[2]||(t[2]=function(t){return e.redo()})},null,8,["class"])]})),_:1},8,["mouseEnterDelay"])]),Object(j["createVNode"])("div",Ol,[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入文字"},{default:bl((function(){return[Object(j["createVNode"])(u,{class:"handler-item",onClick:t[3]||(t[3]=function(t){return e.drawText()})})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(s,{onChange:t[4]||(t[4]=function(t){return e.insertImageElement(t)})},{default:bl((function(){return[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入图片"},{default:bl((function(){return[Object(j["createVNode"])(d,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(b,{trigger:"click",visible:e.shapePoolVisible,"onUpdate:visible":t[6]||(t[6]=function(t){return e.shapePoolVisible=t})},{content:bl((function(){return[Object(j["createVNode"])(f,{onSelect:t[5]||(t[5]=function(t){return e.drawShape(t)})})]})),default:bl((function(){return[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入形状"},{default:bl((function(){return[Object(j["createVNode"])(p,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(j["createVNode"])(b,{trigger:"click",visible:e.linePoolVisible,"onUpdate:visible":t[8]||(t[8]=function(t){return e.linePoolVisible=t})},{content:bl((function(){return[Object(j["createVNode"])(m,{onSelect:t[7]||(t[7]=function(t){return e.drawLine(t)})})]})),default:bl((function(){return[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入线条"},{default:bl((function(){return[Object(j["createVNode"])(v,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(j["createVNode"])(b,{trigger:"click",visible:e.chartPoolVisible,"onUpdate:visible":t[10]||(t[10]=function(t){return e.chartPoolVisible=t})},{content:bl((function(){return[Object(j["createVNode"])(O,{onSelect:t[9]||(t[9]=function(t){e.createChartElement(t),e.chartPoolVisible=!1})})]})),default:bl((function(){return[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入图表"},{default:bl((function(){return[Object(j["createVNode"])(h,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(j["createVNode"])(b,{trigger:"click",visible:e.tableGeneratorVisible,"onUpdate:visible":t[13]||(t[13]=function(t){return e.tableGeneratorVisible=t})},{content:bl((function(){return[Object(j["createVNode"])(g,{onClose:t[11]||(t[11]=function(t){return e.tableGeneratorVisible=!1}),onInsert:t[12]||(t[12]=function(t){var n=t.row,o=t.col;e.createTableElement(n,o),e.tableGeneratorVisible=!1})})]})),default:bl((function(){return[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入表格"},{default:bl((function(){return[Object(j["createVNode"])(y,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"])]),Object(j["createVNode"])("div",hl,[Object(j["createVNode"])(k,{class:"handler-item viewport-size",onClick:t[14]||(t[14]=function(t){return e.scaleCanvas("-")})}),Object(j["createVNode"])("span",jl,Object(j["toDisplayString"])(e.canvasScalePercentage),1),Object(j["createVNode"])(E,{class:"handler-item viewport-size",onClick:t[15]||(t[15]=function(t){return e.scaleCanvas("+")})}),Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"适配屏幕"},{default:bl((function(){return[Object(j["createVNode"])(I,{class:"handler-item viewport-size-adaptation",onClick:t[16]||(t[16]=function(t){return e.setCanvasPercentage(90)})})]})),_:1},8,["mouseEnterDelay"])])])})),yl=Object(j["withScopeId"])("data-v-5aabd717");Object(j["pushScopeId"])("data-v-5aabd717");var kl={class:"shape-pool"},El={class:"category-name"},Il={class:"shape-list"};Object(j["popScopeId"])();var Sl=yl((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper");return Object(j["openBlock"])(),Object(j["createBlock"])("div",kl,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.shapeList,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"category",key:t.type},[Object(j["createVNode"])("div",El,Object(j["toDisplayString"])(t.type),1),Object(j["createVNode"])("div",Il,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(t.children,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"shape-item",key:n},[Object(j["createVNode"])("div",{class:"shape-content",onClick:function(n){return e.selectShape(t)}},[Object(j["createVNode"])(r,{overflow:"visible",width:"18",height:"18"},{default:yl((function(){return[Object(j["createVNode"])("g",{transform:"scale(".concat(18/t.viewBox,", ").concat(18/t.viewBox,") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(j["createVNode"])("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",stroke:"#999","stroke-width":"2",d:t.path},null,8,["d"])],8,["transform"])]})),_:2},1024)],8,["onClick"])])})),128))])])})),128))])})),Cl=[{type:"矩形",children:[{viewBox:200,path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},{viewBox:200,path:"M 20 0 L 180 0 Q 200 0 200 20 L 200 180 Q 200 200 180 200 L 20 200 Q 0 200 0 180 L 0 20 Q 0 0 20 0 Z"},{viewBox:200,path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 L 0 150 Z"},{viewBox:200,path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 L 0 200"},{viewBox:200,path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 L 0 50 Z"},{viewBox:200,path:"M 0 0 L 140 0 Q 200 0 200 60 L 200 200 L 60 200 Q 0 200 0 140 L 0 0 Z"},{viewBox:200,path:"M 0 0 L 140 0 Q 200 0 200 60 L 200 200 L 0 200 L 0 0 Z"},{viewBox:200,path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 50 Z"}]},{type:"常用形状",children:[{viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"},{viewBox:200,path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z"},{viewBox:200,path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z"},{viewBox:200,path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z"},{viewBox:200,path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:200,path:"M 100 0 L 0 200 L 200 200 L 100 0 Z"},{viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:200,path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z"},{viewBox:200,path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z"},{viewBox:200,path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z"},{viewBox:200,path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z"},{viewBox:200,path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z"},{viewBox:200,path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:200,path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z"},{viewBox:200,path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:200,path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z"},{viewBox:200,path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:200,path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:200,path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z"},{viewBox:200,path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:200,path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:200,path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:200,path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:200,path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z"},{viewBox:200,path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z"},{viewBox:200,path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:200,path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z"},{viewBox:200,path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:200,path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 L 0 0 Z"},{viewBox:200,path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z"},{viewBox:200,path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:200,path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"}]},{type:"箭头",children:[{viewBox:200,path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z"},{viewBox:200,path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z"},{viewBox:200,path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:200,path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:200,path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z"},{viewBox:200,path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z"},{viewBox:200,path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:200,path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:200,path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:200,path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:200,path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:200,path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z"},{viewBox:200,path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:200,path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z"},{viewBox:200,path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:200,path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:200,path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:200,path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:200,path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:200,path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:200,path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:200,path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:1024,path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z"},{viewBox:1024,path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z"}]},{type:"其他形状",children:[{viewBox:1024,path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z"},{viewBox:1024,path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z"},{viewBox:1024,path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z"},{viewBox:1024,path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z"},{viewBox:1024,path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z"},{viewBox:1024,path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z"},{viewBox:1024,path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z"},{viewBox:1024,path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z"},{viewBox:1024,path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z"},{viewBox:1024,path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z"},{viewBox:1024,path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z"},{viewBox:1024,path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z"},{viewBox:1024,path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z"},{viewBox:1024,path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z"},{viewBox:1024,path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z"},{viewBox:1024,path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z"}]}],Nl=Object(j["defineComponent"])({name:"shape-pool",setup:function(e,t){var n=t.emit,o=Cl,c=function(e){n("select",e)};return{shapeList:o,selectShape:c}}});n("3041");Nl.render=Sl,Nl.__scopeId="data-v-5aabd717";var xl=Nl,Tl=Object(j["withScopeId"])("data-v-5087394c");Object(j["pushScopeId"])("data-v-5087394c");var Ll={class:"line-pool"},wl={class:"category-name"},Vl={class:"line-list"};Object(j["popScopeId"])();var _l=Tl((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("LinePointMarker"),l=Object(j["resolveComponent"])("SvgWrapper");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Ll,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.lineList,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"category",key:t.type},[Object(j["createVNode"])("div",wl,Object(j["toDisplayString"])(t.type),1),Object(j["createVNode"])("div",Vl,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(t.children,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"line-item",key:n},[Object(j["createVNode"])("div",{class:"line-content",onClick:function(n){return e.selectLine(t)}},[Object(j["createVNode"])(l,{overflow:"visible",width:"20",height:"20"},{default:Tl((function(){return[Object(j["createVNode"])("defs",null,[t.points[0]?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,class:"line-marker",id:"preset-line-".concat(n),position:"start",type:t.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Object(j["createCommentVNode"])("",!0),t.points[1]?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,class:"line-marker",id:"preset-line-".concat(n),position:"end",type:t.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Object(j["createCommentVNode"])("",!0)]),Object(j["createVNode"])("path",{class:"line-path",d:t.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":"solid"===t.style?"0, 0":"4, 1","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":"","marker-start":t.points[0]?"url(#".concat("preset-line-".concat(n),"-",t.points[0],"-start)"):"","marker-end":t.points[1]?"url(#".concat("preset-line-".concat(n),"-",t.points[1],"-end)"):""},null,8,["d","stroke-dasharray","marker-start","marker-end"])]})),_:2},1024)],8,["onClick"])])})),128))])])})),128))])})),Bl=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0}]}],Dl=Object(j["defineComponent"])({name:"line-pool",components:{LinePointMarker:Qn},setup:function(e,t){var n=t.emit,o=Bl,c=function(e){n("select",e)};return{lineList:o,selectLine:c}}});n("6530");Dl.render=_l,Dl.__scopeId="data-v-5087394c";var Ml=Dl,Al=Object(j["withScopeId"])("data-v-0028f4b9");Object(j["pushScopeId"])("data-v-0028f4b9");var Pl={class:"chart-pool"};Object(j["popScopeId"])();var Rl=Al((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconChartLine"),l=Object(j["resolveComponent"])("IconChartHistogram"),i=Object(j["resolveComponent"])("IconChartPie");return Object(j["openBlock"])(),Object(j["createBlock"])("ul",Pl,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.chartList,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("li",{class:"chart-item",key:n},[Object(j["createVNode"])("div",{class:"chart-content",onClick:function(n){return e.selectChart(t)}},["line"===t?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,size:"24"})):"bar"===t?(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:1,size:"24"})):"pie"===t?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:2,size:"24"})):Object(j["createCommentVNode"])("",!0)],8,["onClick"])])})),128))])})),Fl=Object(j["defineComponent"])({name:"chart-pool",setup:function(e,t){var n=t.emit,o=["bar","line","pie"],c=function(e){n("select",e)};return{chartList:o,selectChart:c}}});n("f558");Fl.render=Rl,Fl.__scopeId="data-v-0028f4b9";var Hl=Fl,zl=Object(j["withScopeId"])("data-v-576c614c");Object(j["pushScopeId"])("data-v-576c614c");var Ul={class:"table-generator"},Gl={class:"title"},ql={class:"lef"},Xl={key:1,class:"custom"},Wl={class:"row"},Yl=Object(j["createVNode"])("div",{class:"label",style:{flex:"1"}},"行数:",-1),Zl={class:"row"},Jl=Object(j["createVNode"])("div",{class:"label",style:{flex:"1"}},"列数:",-1),Kl={class:"btns"},Ql=Object(j["createTextVNode"])("取消"),$l=Object(j["createTextVNode"])("确认");Object(j["popScopeId"])();var ei=zl((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("InputNumber"),l=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Ul,[Object(j["createVNode"])("div",Gl,[Object(j["createVNode"])("div",ql,"表格 "+Object(j["toDisplayString"])(e.endCell.length?"".concat(e.endCell[0]," x ").concat(e.endCell[1]):""),1),Object(j["createVNode"])("div",{class:"right",onClick:t[1]||(t[1]=function(t){return e.isCustom=!e.isCustom})},Object(j["toDisplayString"])(e.isCustom?"返回":"自定义"),1)]),e.isCustom?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Xl,[Object(j["createVNode"])("div",Wl,[Yl,Object(j["createVNode"])(r,{min:1,max:20,value:e.customRow,"onUpdate:value":t[4]||(t[4]=function(t){return e.customRow=t}),style:{flex:"3"}},null,8,["value"])]),Object(j["createVNode"])("div",Zl,[Jl,Object(j["createVNode"])(r,{min:1,max:20,value:e.customCol,"onUpdate:value":t[5]||(t[5]=function(t){return e.customCol=t}),style:{flex:"3"}},null,8,["value"])]),Object(j["createVNode"])("div",Kl,[Object(j["createVNode"])(l,{class:"btn",onClick:t[6]||(t[6]=function(t){return e.close()})},{default:zl((function(){return[Ql]})),_:1}),Object(j["createVNode"])(l,{class:"btn",type:"primary",onClick:t[7]||(t[7]=function(t){return e.insertCustomTable()})},{default:zl((function(){return[$l]})),_:1})])])):(Object(j["openBlock"])(),Object(j["createBlock"])("table",{key:0,onMouseleave:t[2]||(t[2]=function(t){return e.endCell=[]}),onClick:t[3]||(t[3]=function(t){return e.handleClickTable()})},[Object(j["createVNode"])("tbody",null,[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(10,(function(t){return Object(j["createVNode"])("tr",{key:t},[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(10,(function(n){return Object(j["createVNode"])("td",{onMouseenter:function(o){return e.endCell=[t,n]},key:n},[Object(j["createVNode"])("div",{class:["cell",{active:e.endCell.length&&t<=e.endCell[0]&&n<=e.endCell[1]}]},null,2)],40,["onMouseenter"])})),64))])})),64))])],32))])})),ti=Object(j["defineComponent"])({name:"table-generator",setup:function(e,t){var n=t.emit,o=Object(j["ref"])([]),c=Object(j["ref"])(3),a=Object(j["ref"])(3),r=Object(j["ref"])(!1),l=function(){if(o.value.length){var e=Object(rn["a"])(o.value,2),t=e[0],c=e[1];n("insert",{row:t,col:c})}},i=function(){return c.value<1||c.value>20||a.value<1||a.value>20?le["a"].warning("行数/列数必须在0~20之间!"):(n("insert",{row:c.value,col:a.value}),void(r.value=!1))},u=function(){n("close"),r.value=!1};return{endCell:o,customRow:c,customCol:a,handleClickTable:l,insertCustomTable:i,isCustom:r,close:u}}});n("b61d");ti.render=ei,ti.__scopeId="data-v-576c614c";var ni=ti,oi=Object(j["defineComponent"])({name:"canvas-tool",components:{ShapePool:xl,LinePool:Ml,ChartPool:Hl,TableGenerator:ni},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.canvasScale})),n=Object(j["computed"])((function(){return e.getters.canUndo})),o=Object(j["computed"])((function(){return e.getters.canRedo})),c=Object(j["computed"])((function(){return parseInt(100*t.value+"")+"%"})),a=qe(),r=a.scaleCanvas,l=a.setCanvasPercentage,i=Ne(),u=i.redo,d=i.undo,s=we(),f=s.createImageElement,p=s.createChartElement,b=s.createTableElement,m=function(e){var t=e[0];t&&Te(t).then((function(e){return f(e)}))},v=Object(j["ref"])(!1),O=Object(j["ref"])(!1),h=Object(j["ref"])(!1),g=Object(j["ref"])(!1),k=function(){e.commit(y.SET_CREATING_ELEMENT,{type:"text",data:null})},E=function(t){e.commit(y.SET_CREATING_ELEMENT,{type:"shape",data:t}),v.value=!1},I=function(t){e.commit(y.SET_CREATING_ELEMENT,{type:"line",data:t}),O.value=!1};return{scaleCanvas:r,setCanvasPercentage:l,canvasScalePercentage:c,canUndo:n,canRedo:o,redo:u,undo:d,insertImageElement:m,shapePoolVisible:v,linePoolVisible:O,chartPoolVisible:h,tableGeneratorVisible:g,drawText:k,drawShape:E,drawLine:I,createChartElement:p,createTableElement:b}}});n("f91d");oi.render=gl,oi.__scopeId="data-v-59ae6536";var ci=oi,ai=Object(j["withScopeId"])("data-v-6596d0d5");Object(j["pushScopeId"])("data-v-6596d0d5");var ri=Object(j["createTextVNode"])("添加幻灯片"),li={class:"label"};Object(j["popScopeId"])();var ii=ai((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconPlus"),l=Object(j["resolveComponent"])("ThumbnailSlide"),i=Object(j["resolveComponent"])("Draggable"),u=Object(j["resolveDirective"])("contextmenu"),d=Object(j["resolveDirective"])("click-outside");return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"thumbnails",onMousedown:t[2]||(t[2]=function(){return e.setThumbnailsFocus(!0)})},[Object(j["createVNode"])("div",{class:"add-slide",onClick:t[1]||(t[1]=function(t){return e.createSlide()})},[Object(j["createVNode"])(r,{class:"icon"}),ri]),Object(j["createVNode"])(i,{class:"thumbnail-list",modelValue:e.slides,animation:300,scroll:!0,scrollSensitivity:50,onEnd:e.handleDragEnd,itemKey:"id"},{item:ai((function(t){var n=t.element,o=t.index;return[Object(j["withDirectives"])(Object(j["createVNode"])("div",{class:["thumbnail-item",{active:e.slideIndex===o,selected:e.selectedSlidesIndex.includes(o)}],onMousedown:function(t){return e.handleClickSlideThumbnail(o)}},[Object(j["createVNode"])("div",li,Object(j["toDisplayString"])(e.fillDigit(o+1,2)),1),Object(j["createVNode"])(l,{class:"thumbnail",slide:n,size:120},null,8,["slide"])],42,["onMousedown"]),[[u,e.contextmenusThumbnailItem]])]})),_:1},8,["modelValue","onEnd"])],544)),[[d,function(){return e.setThumbnailsFocus(!1)}],[u,e.contextmenusThumbnails]])})),ui=n("b76a"),di=n.n(ui),si=Object(j["defineComponent"])({name:"thumbnails",components:{Draggable:di.a,ThumbnailSlide:Eo},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.slides})),n=Object(j["computed"])((function(){return e.state.slideIndex})),o=Object(j["computed"])((function(){return e.state.ctrlKeyState})),c=Object(j["computed"])((function(){return e.state.shiftKeyState})),a=Object(j["computed"])((function(){return[].concat(Object(P["a"])(e.state.selectedSlidesIndex),[n.value])})),r=_e(),l=r.copySlide,i=r.pasteSlide,u=r.createSlide,d=r.copyAndPasteSlide,s=r.deleteSlide,f=r.cutSlide,p=r.selectAllSlide,b=function(t){e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),n.value!==t&&e.commit(y.UPDATE_SLIDE_INDEX,t)},m=function(t){var r=a.value.length>1;if(o.value)if(n.value===t){if(!r)return;var l=a.value.filter((function(e){return e!==t}));e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,l),b(a.value[0])}else if(a.value.includes(t)){var i=a.value.filter((function(e){return e!==t}));e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,i)}else{var u=[].concat(Object(P["a"])(a.value),[t]);e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,u),b(t)}else if(c.value){if(n.value===t&&!r)return;var d=Math.min.apply(Math,Object(P["a"])(a.value)),s=t;t1&&void 0!==arguments[1]?arguments[1]:0,c=u(),a=c.originClipRange,l=c.originWidth,d=c.originHeight,s=c.originLeft,f=c.originTop;if(o){var p,b=d/l,m=0,v=100;if(b>o){var O=(1-o/b)/2*100;p=[[m,O],[v,v-O]]}else{var h=(1-b/o)/2*100;p=[[h,m],[v-h,v]]}e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:{clip:Object(R["a"])(Object(R["a"])({},t.value.clip),{},{shape:n,range:p}),left:s+l*(p[0][0]/100),top:f+d*(p[0][1]/100),width:l*(p[1][0]-p[0][0])/100,height:d*(p[1][1]-p[0][1])/100}})}else e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:{clip:Object(R["a"])(Object(R["a"])({},t.value.clip),{},{shape:n,range:a})}});i(),r()},s=function(n){var o=n[0];o&&(Te(o).then((function(n){var o={src:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o})})),r())},f=function(){if(t.value.clip){var n=u(),o=n.originWidth,c=n.originHeight,a=n.originLeft,l=n.originTop;e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:{left:a,top:l,width:o,height:c}})}e.commit(y.REMOVE_ELEMENT_PROPS,{id:t.value.id,propName:["clip","outline","flip","shadow","filters"]}),r()},p=function(){var o=Object(R["a"])(Object(R["a"])({},n.value.background),{},{type:"image",image:t.value.src,imageSize:"cover"});e.commit(y.UPDATE_SLIDE,{background:o}),r()};return{clipPanelVisible:o,shapeClipPathOptions:Xu,ratioClipOptions:Wu,filterOptions:c,handleElement:t,updateFilter:l,clipImage:i,presetImageClip:d,replaceImage:s,resetImage:f,setBackgroundImage:p}}});n("83fa");Yu.render=Au,Yu.__scopeId="data-v-c1cc1cba";var Zu=Yu,Ju=Object(j["withScopeId"])("data-v-998a7a02");Object(j["pushScopeId"])("data-v-998a7a02");var Ku={class:"shape-style-panel"},Qu={class:"row"},$u=Object(j["createTextVNode"])("纯色填充"),ed=Object(j["createTextVNode"])("渐变填充"),td=Object(j["createVNode"])("div",{style:{flex:"1"}},null,-1),nd=Object(j["createTextVNode"])("线性渐变"),od=Object(j["createTextVNode"])("径向渐变"),cd={class:"row"},ad=Object(j["createVNode"])("div",{style:{flex:"2"}},"起点颜色:",-1),rd={class:"row"},ld=Object(j["createVNode"])("div",{style:{flex:"2"}},"终点颜色:",-1),id={key:0,class:"row"},ud=Object(j["createVNode"])("div",{style:{flex:"2"}},"渐变角度:",-1);Object(j["popScopeId"])();var dd=Ju((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SelectOption"),l=Object(j["resolveComponent"])("Select"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("Slider"),f=Object(j["resolveComponent"])("ElementFlip"),p=Object(j["resolveComponent"])("Divider"),b=Object(j["resolveComponent"])("ElementOutline"),m=Object(j["resolveComponent"])("ElementShadow"),v=Object(j["resolveComponent"])("ElementOpacity");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Ku,[Object(j["createVNode"])("div",Qu,[Object(j["createVNode"])(l,{style:{flex:"10"},value:e.fillType,onChange:t[1]||(t[1]=function(t){return e.updateFillType(t)})},{default:Ju((function(){return[Object(j["createVNode"])(r,{value:"fill"},{default:Ju((function(){return[$u]})),_:1}),Object(j["createVNode"])(r,{value:"gradient"},{default:Ju((function(){return[ed]})),_:1})]})),_:1},8,["value"]),td,"fill"===e.fillType?(Object(j["openBlock"])(),Object(j["createBlock"])(d,{key:0,trigger:"click"},{content:Ju((function(){return[Object(j["createVNode"])(i,{modelValue:e.fill,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:Ju((function(){return[Object(j["createVNode"])(u,{color:e.fill,style:{flex:"10"}},null,8,["color"])]})),_:1})):(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:1,style:{flex:"10"},value:e.gradient.type,onChange:t[3]||(t[3]=function(t){return e.updateGradient({type:t})})},{default:Ju((function(){return[Object(j["createVNode"])(r,{value:"linear"},{default:Ju((function(){return[nd]})),_:1}),Object(j["createVNode"])(r,{value:"radial"},{default:Ju((function(){return[od]})),_:1})]})),_:1},8,["value"]))]),"gradient"===e.fillType?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[Object(j["createVNode"])("div",cd,[ad,Object(j["createVNode"])(d,{trigger:"click"},{content:Ju((function(){return[Object(j["createVNode"])(i,{modelValue:e.gradient.color[0],"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.updateGradient({color:[t,e.gradient.color[1]]})})},null,8,["modelValue"])]})),default:Ju((function(){return[Object(j["createVNode"])(u,{color:e.gradient.color[0],style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",rd,[ld,Object(j["createVNode"])(d,{trigger:"click"},{content:Ju((function(){return[Object(j["createVNode"])(i,{modelValue:e.gradient.color[1],"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.updateGradient({color:[e.gradient.color[0],t]})})},null,8,["modelValue"])]})),default:Ju((function(){return[Object(j["createVNode"])(u,{color:e.gradient.color[1],style:{flex:"3"}},null,8,["color"])]})),_:1})]),"linear"===e.gradient.type?(Object(j["openBlock"])(),Object(j["createBlock"])("div",id,[ud,Object(j["createVNode"])(s,{min:0,max:360,step:15,value:e.gradient.rotate,style:{flex:"3"},onChange:t[6]||(t[6]=function(t){return e.updateGradient({rotate:t})})},null,8,["value"])])):Object(j["createCommentVNode"])("",!0)],64)):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(f),Object(j["createVNode"])(p),Object(j["createVNode"])(b),Object(j["createVNode"])(p),Object(j["createVNode"])(m),Object(j["createVNode"])(p),Object(j["createVNode"])(v)])})),sd=Object(j["defineComponent"])({name:"shape-style-panel",components:{ElementOpacity:Mi,ElementOutline:nu,ElementShadow:hu,ElementFlip:Gu,ColorButton:eu},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["ref"])(),o=Object(j["ref"])(),c=Object(j["ref"])("fill");Object(j["watch"])(t,(function(){t.value&&"shape"===t.value.type&&(n.value=t.value.fill||"#000",o.value=t.value.gradient||{type:"linear",rotate:0,color:[n.value,"#fff"]},c.value=t.value.gradient?"gradient":"fill")}),{deep:!0,immediate:!0});var a=Ne(),r=a.addHistorySnapshot,l=function(n){if("fill"===n)e.commit(y.REMOVE_ELEMENT_PROPS,{id:t.value.id,propName:"gradient"});else{var c={gradient:o.value};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:c})}r()},i=function(n){var c={gradient:Object(R["a"])(Object(R["a"])({},o.value),n)};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:c}),r()},u=function(n){var o={fill:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),r()};return{fill:n,gradient:o,fillType:c,updateFillType:l,updateFill:u,updateGradient:i}}});n("6f16");sd.render=dd,sd.__scopeId="data-v-998a7a02";var fd=sd,pd=Object(j["withScopeId"])("data-v-65b24fb3");Object(j["pushScopeId"])("data-v-65b24fb3");var bd={class:"line-style-panel"},md={class:"row"},vd=Object(j["createVNode"])("div",{style:{flex:"2"}},"线条样式:",-1),Od=Object(j["createTextVNode"])("实线"),hd=Object(j["createTextVNode"])("虚线"),jd={class:"row"},gd=Object(j["createVNode"])("div",{style:{flex:"2"}},"线条颜色:",-1),yd={class:"row"},kd=Object(j["createVNode"])("div",{style:{flex:"2"}},"线条宽度:",-1),Ed={class:"row"},Id=Object(j["createVNode"])("div",{style:{flex:"2"}},"起点样式:",-1),Sd=Object(j["createTextVNode"])("无"),Cd=Object(j["createTextVNode"])("箭头"),Nd=Object(j["createTextVNode"])("圆点"),xd={class:"row"},Td=Object(j["createVNode"])("div",{style:{flex:"2"}},"终点样式:",-1),Ld=Object(j["createTextVNode"])("无"),wd=Object(j["createTextVNode"])("箭头"),Vd=Object(j["createTextVNode"])("圆点");Object(j["popScopeId"])();var _d=pd((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SelectOption"),l=Object(j["resolveComponent"])("Select"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("InputNumber"),f=Object(j["resolveComponent"])("Divider"),p=Object(j["resolveComponent"])("ElementShadow");return Object(j["openBlock"])(),Object(j["createBlock"])("div",bd,[Object(j["createVNode"])("div",md,[vd,Object(j["createVNode"])(l,{style:{flex:"3"},value:e.handleElement.style,onChange:t[1]||(t[1]=function(t){return e.updateLine({style:t})})},{default:pd((function(){return[Object(j["createVNode"])(r,{value:"solid"},{default:pd((function(){return[Od]})),_:1}),Object(j["createVNode"])(r,{value:"dashed"},{default:pd((function(){return[hd]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])("div",jd,[gd,Object(j["createVNode"])(d,{trigger:"click"},{content:pd((function(){return[Object(j["createVNode"])(i,{modelValue:e.handleElement.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.updateLine({color:t})})},null,8,["modelValue"])]})),default:pd((function(){return[Object(j["createVNode"])(u,{color:e.handleElement.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",yd,[kd,Object(j["createVNode"])(s,{value:e.handleElement.width,onChange:t[3]||(t[3]=function(t){return e.updateLine({width:t})}),style:{flex:"3"}},null,8,["value"])]),Object(j["createVNode"])("div",Ed,[Id,Object(j["createVNode"])(l,{style:{flex:"3"},value:e.handleElement.points[0],onChange:t[4]||(t[4]=function(t){return e.updateLine({points:[t,e.handleElement.points[1]]})})},{default:pd((function(){return[Object(j["createVNode"])(r,{value:""},{default:pd((function(){return[Sd]})),_:1}),Object(j["createVNode"])(r,{value:"arrow"},{default:pd((function(){return[Cd]})),_:1}),Object(j["createVNode"])(r,{value:"dot"},{default:pd((function(){return[Nd]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])("div",xd,[Td,Object(j["createVNode"])(l,{style:{flex:"3"},value:e.handleElement.points[1],onChange:t[5]||(t[5]=function(t){return e.updateLine({points:[e.handleElement.points[0],t]})})},{default:pd((function(){return[Object(j["createVNode"])(r,{value:""},{default:pd((function(){return[Ld]})),_:1}),Object(j["createVNode"])(r,{value:"arrow"},{default:pd((function(){return[wd]})),_:1}),Object(j["createVNode"])(r,{value:"dot"},{default:pd((function(){return[Vd]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])(f),Object(j["createVNode"])(p)])})),Bd=Object(j["defineComponent"])({name:"line-style-panel",components:{ElementShadow:hu,ColorButton:eu},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Ne(),o=n.addHistorySnapshot,c=function(n){e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:n}),o()};return{handleElement:t,updateLine:c}}});n("8df8e");Bd.render=_d,Bd.__scopeId="data-v-65b24fb3";var Dd=Bd,Md=Object(j["withScopeId"])("data-v-4dd87e36");Object(j["pushScopeId"])("data-v-4dd87e36");var Ad={class:"chart-style-panel"},Pd=Object(j["createTextVNode"])(" 编辑图表数据 "),Rd={class:"row"},Fd=Object(j["createTextVNode"])("面积图样式"),Hd=Object(j["createTextVNode"])("散点图样式"),zd={class:"row"},Ud=Object(j["createTextVNode"])("使用平滑曲线"),Gd={key:1,class:"row"},qd=Object(j["createTextVNode"])("条形图样式"),Xd={key:2,class:"row"},Wd=Object(j["createTextVNode"])("环形图样式"),Yd={class:"row"},Zd=Object(j["createVNode"])("div",{style:{flex:"2"}},"背景填充:",-1),Jd={class:"row"},Kd=Object(j["createVNode"])("div",{style:{flex:"2"}},"主题配色:",-1),Qd={class:"row"},$d=Object(j["createVNode"])("div",{style:{flex:"2"}},"网格颜色:",-1);Object(j["popScopeId"])();var es=Md((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconEdit"),l=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("Divider"),u=Object(j["resolveComponent"])("Checkbox"),d=Object(j["resolveComponent"])("ColorPicker"),s=Object(j["resolveComponent"])("ColorButton"),f=Object(j["resolveComponent"])("Popover"),p=Object(j["resolveComponent"])("ElementOutline"),b=Object(j["resolveComponent"])("ChartDataEditor"),m=Object(j["resolveComponent"])("Modal");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Ad,[Object(j["createVNode"])(l,{class:"full-width-btn",onClick:t[1]||(t[1]=function(t){return e.chartDataEditorVisible=!0})},{default:Md((function(){return[Object(j["createVNode"])(r,{class:"btn-icon"}),Pd]})),_:1}),Object(j["createVNode"])(i),"line"===e.handleElement.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[Object(j["createVNode"])("div",Rd,[Object(j["createVNode"])(u,{onChange:t[2]||(t[2]=function(t){return e.updateOptions({showArea:t.target.checked})}),checked:e.showArea,style:{flex:"1"}},{default:Md((function(){return[Fd]})),_:1},8,["checked"]),Object(j["createVNode"])(u,{onChange:t[3]||(t[3]=function(t){return e.updateOptions({showLine:!t.target.checked})}),checked:!e.showLine,style:{flex:"1"}},{default:Md((function(){return[Hd]})),_:1},8,["checked"])]),Object(j["createVNode"])("div",zd,[Object(j["createVNode"])(u,{onChange:t[4]||(t[4]=function(t){return e.updateOptions({lineSmooth:t.target.checked})}),checked:e.lineSmooth},{default:Md((function(){return[Ud]})),_:1},8,["checked"])])],64)):Object(j["createCommentVNode"])("",!0),"bar"===e.handleElement.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Gd,[Object(j["createVNode"])(u,{onChange:t[5]||(t[5]=function(t){return e.updateOptions({horizontalBars:t.target.checked})}),checked:e.horizontalBars},{default:Md((function(){return[qd]})),_:1},8,["checked"])])):Object(j["createCommentVNode"])("",!0),"pie"===e.handleElement.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Xd,[Object(j["createVNode"])(u,{onChange:t[6]||(t[6]=function(t){return e.updateOptions({donut:t.target.checked})}),checked:e.donut},{default:Md((function(){return[Wd]})),_:1},8,["checked"])])):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(i),Object(j["createVNode"])("div",Yd,[Zd,Object(j["createVNode"])(f,{trigger:"click"},{content:Md((function(){return[Object(j["createVNode"])(d,{modelValue:e.fill,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:Md((function(){return[Object(j["createVNode"])(s,{color:e.fill,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",Jd,[Kd,Object(j["createVNode"])(f,{trigger:"click"},{content:Md((function(){return[Object(j["createVNode"])(d,{modelValue:e.themeColor,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.updateTheme(t)})},null,8,["modelValue"])]})),default:Md((function(){return[Object(j["createVNode"])(s,{color:e.themeColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",Qd,[$d,Object(j["createVNode"])(f,{trigger:"click"},{content:Md((function(){return[Object(j["createVNode"])(d,{modelValue:e.gridColor,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.updateGridColor(t)})},null,8,["modelValue"])]})),default:Md((function(){return[Object(j["createVNode"])(s,{color:e.gridColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])(i),Object(j["createVNode"])(p),Object(j["createVNode"])(m,{visible:e.chartDataEditorVisible,"onUpdate:visible":t[12]||(t[12]=function(t){return e.chartDataEditorVisible=t}),footer:null,centered:"",closable:!1,width:648,destroyOnClose:""},{default:Md((function(){return[Object(j["createVNode"])(b,{data:e.handleElement.data,onClose:t[10]||(t[10]=function(t){return e.chartDataEditorVisible=!1}),onSave:t[11]||(t[11]=function(t){return e.updateData(t)})},null,8,["data"])]})),_:1},8,["visible"])])})),ts=Object(j["withScopeId"])("data-v-42e69ec4");Object(j["pushScopeId"])("data-v-42e69ec4");var ns={class:"chart-data-editor"},os={class:"editor-content"},cs={class:"range-box"},as={class:"btns"},rs=Object(j["createTextVNode"])("取消"),ls=Object(j["createTextVNode"])("确认");Object(j["popScopeId"])();var is=ts((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createBlock"])("div",ns,[Object(j["createVNode"])("div",os,[Object(j["createVNode"])("div",cs,[Object(j["createVNode"])("div",{class:"temp-range",style:{width:e.tempRangeSize.width+"px",height:e.tempRangeSize.height+"px"}},null,4),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.rangeLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["range-line",e.type],key:e.type,style:e.style},null,6)})),128)),Object(j["createVNode"])("div",{class:"resizable",style:e.resizablePointStyle,onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.changeSelectRange(t)}),["stop"]))},null,36)]),Object(j["createVNode"])("table",null,[Object(j["createVNode"])("tbody",null,[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(30,(function(t){return Object(j["createVNode"])("tr",{key:t},[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(7,(function(n){return Object(j["createVNode"])("td",{key:n,class:{head:1===n&&t<=e.selectedRange[1]}},[Object(j["createVNode"])("input",{class:["item",{selected:t<=e.selectedRange[1]&&n<=e.selectedRange[0]}],id:"cell-".concat(t-1,"-").concat(n-1),autocomplete:"off"},null,10,["id"])],2)})),64))])})),64))])])]),Object(j["createVNode"])("div",as,[Object(j["createVNode"])(r,{class:"btn",onClick:t[2]||(t[2]=function(t){return e.closeEditor()})},{default:ts((function(){return[rs]})),_:1}),Object(j["createVNode"])(r,{type:"primary",class:"btn",onClick:t[3]||(t[3]=function(t){return e.getTableData()})},{default:ts((function(){return[ls]})),_:1})])])})),us=100,ds=32,ss=Object(j["defineComponent"])({name:"chart-data-editor",props:{data:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])([0,0]),c=Object(j["ref"])({width:0,height:0}),a=Object(j["computed"])((function(){var e=o.value[0]*us,t=o.value[1]*ds;return[{type:"t",style:{width:e+"px"}},{type:"b",style:{top:t+"px",width:e+"px"}},{type:"l",style:{height:t+"px"}},{type:"r",style:{left:e+"px",height:t+"px"}}]})),r=Object(j["computed"])((function(){var e=o.value[0]*us,t=o.value[1]*ds;return{left:e+"px",top:t+"px"}})),l=function(){for(var t=[],n=e.data,c=n.labels,a=n.series,r=c.length,l=a.length,i=0;i.5*us&&(i+=us-i%us),u%ds>.5*ds&&(u+=ds-u%ds);var d=Math.round(u/ds),s=Math.round(i/us);d<3&&(d=3),s<2&&(s=2),o.value=[s,d],c.value={width:0,height:0}}}};return{tempRangeSize:c,rangeLines:a,resizablePointStyle:r,changeSelectRange:d,selectedRange:o,getTableData:i,closeEditor:u}}});n("f14f");ss.render=is,ss.__scopeId="data-v-42e69ec4";var fs=ss,ps=Object(j["defineComponent"])({name:"chart-style-panel",components:{ElementOutline:nu,ChartDataEditor:fs,ColorButton:eu},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["ref"])(!1),o=Ne(),c=o.addHistorySnapshot,a=Object(j["ref"])(),r=Object(j["ref"])(""),l=Object(j["ref"])(""),i=Object(j["ref"])(!0),u=Object(j["ref"])(!0),d=Object(j["ref"])(!1),s=Object(j["ref"])(!1),f=Object(j["ref"])(!1);Object(j["watch"])(t,(function(){if(t.value&&"chart"===t.value.type){if(a.value=t.value.fill||"#000",t.value.options){var e=t.value.options,n=e.lineSmooth,o=e.showLine,c=e.showArea,p=e.horizontalBars,b=e.donut;void 0!==n&&(i.value=n),void 0!==o&&(u.value=o),void 0!==c&&(d.value=c),void 0!==p&&(s.value=p),void 0!==b&&(f.value=b)}r.value=t.value.themeColor,l.value=t.value.gridColor||"rgba(0, 0, 0, 0.4)"}}),{deep:!0,immediate:!0});var p=function(o){n.value=!1;var a={data:o};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:a}),c()},b=function(n){var o={fill:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),c()},m=function(n){var o=t.value.options||{},a=Object(R["a"])(Object(R["a"])({},o),n),r={options:a};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:r}),c()},v=function(n){var o={themeColor:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),c()},O=function(n){var o={gridColor:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),c()};return{chartDataEditorVisible:n,handleElement:t,updateData:p,fill:a,updateFill:b,lineSmooth:i,showLine:u,showArea:d,horizontalBars:s,donut:f,updateOptions:m,themeColor:r,gridColor:l,updateTheme:v,updateGridColor:O}}});n("167e");ps.render=es,ps.__scopeId="data-v-4dd87e36";var bs=ps,ms=Object(j["withScopeId"])("data-v-2db32cac");Object(j["pushScopeId"])("data-v-2db32cac");var vs={class:"table-style-panel"},Os={class:"row"},hs=Object(j["createVNode"])("div",{style:{flex:"2"}},"行数:",-1),js={class:"row"},gs=Object(j["createVNode"])("div",{style:{flex:"2"}},"列数:",-1),ys={class:"row theme-switch"},ks=Object(j["createVNode"])("div",{style:{flex:"2"}},"启用主题表格:",-1),Es={class:"switch-wrapper",style:{flex:"3"}},Is={class:"row"},Ss=Object(j["createTextVNode"])("标题行"),Cs=Object(j["createTextVNode"])("汇总行"),Ns={class:"row"},xs=Object(j["createTextVNode"])("第一列"),Ts=Object(j["createTextVNode"])("最后一列"),Ls={class:"row"},ws=Object(j["createVNode"])("div",{style:{flex:"2"}},"主题颜色:",-1);Object(j["popScopeId"])();var Vs=ms((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconFontSize"),l=Object(j["resolveComponent"])("SelectOption"),i=Object(j["resolveComponent"])("SelectOptGroup"),u=Object(j["resolveComponent"])("Select"),d=Object(j["resolveComponent"])("IconAddText"),s=Object(j["resolveComponent"])("InputGroup"),f=Object(j["resolveComponent"])("ColorPicker"),p=Object(j["resolveComponent"])("IconText"),b=Object(j["resolveComponent"])("Button"),m=Object(j["resolveComponent"])("Tooltip"),v=Object(j["resolveComponent"])("Popover"),O=Object(j["resolveComponent"])("IconFill"),h=Object(j["resolveComponent"])("ButtonGroup"),g=Object(j["resolveComponent"])("IconTextBold"),y=Object(j["resolveComponent"])("CheckboxButton"),k=Object(j["resolveComponent"])("IconTextItalic"),E=Object(j["resolveComponent"])("IconTextUnderline"),I=Object(j["resolveComponent"])("IconStrikethrough"),S=Object(j["resolveComponent"])("CheckboxButtonGroup"),C=Object(j["resolveComponent"])("IconAlignTextLeft"),N=Object(j["resolveComponent"])("RadioButton"),x=Object(j["resolveComponent"])("IconAlignTextCenter"),T=Object(j["resolveComponent"])("IconAlignTextRight"),L=Object(j["resolveComponent"])("RadioGroup"),w=Object(j["resolveComponent"])("Divider"),V=Object(j["resolveComponent"])("ElementOutline"),_=Object(j["resolveComponent"])("InputNumber"),B=Object(j["resolveComponent"])("Switch"),D=Object(j["resolveComponent"])("Checkbox"),M=Object(j["resolveComponent"])("ColorButton");return Object(j["openBlock"])(),Object(j["createBlock"])("div",vs,[Object(j["createVNode"])(s,{compact:"",class:"row"},{default:ms((function(){return[Object(j["createVNode"])(u,{style:{flex:"3"},value:e.textAttrs.fontname,onChange:t[1]||(t[1]=function(t){return e.updateTextAttrs({fontname:t})})},{suffixIcon:ms((function(){return[Object(j["createVNode"])(r)]})),default:ms((function(){return[Object(j["createVNode"])(i,{label:"系统字体"},{default:ms((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.availableFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:e.value,value:e.value},{default:ms((function(){return[Object(j["createVNode"])("span",{style:{fontFamily:e.value}},Object(j["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(j["createVNode"])(i,{label:"在线字体"},{default:ms((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.webFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:e.value,value:e.value},{default:ms((function(){return[Object(j["createVNode"])("span",null,Object(j["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"]),Object(j["createVNode"])(u,{style:{flex:"2"},value:e.textAttrs.fontsize,onChange:t[2]||(t[2]=function(t){return e.updateTextAttrs({fontsize:t})})},{suffixIcon:ms((function(){return[Object(j["createVNode"])(d)]})),default:ms((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.fontSizeOptions,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:e,value:e},{default:ms((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]})),_:1}),Object(j["createVNode"])(h,{class:"row"},{default:ms((function(){return[Object(j["createVNode"])(v,{trigger:"click"},{content:ms((function(){return[Object(j["createVNode"])(f,{modelValue:e.textAttrs.color,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.updateTextAttrs({color:t})})},null,8,["modelValue"])]})),default:ms((function(){return[Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字颜色"},{default:ms((function(){return[Object(j["createVNode"])(b,{class:"text-color-btn",style:{flex:"1"}},{default:ms((function(){return[Object(j["createVNode"])(p),Object(j["createVNode"])("div",{class:"text-color-block",style:{backgroundColor:e.textAttrs.color}},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(v,{trigger:"click"},{content:ms((function(){return[Object(j["createVNode"])(f,{modelValue:e.textAttrs.backcolor,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.updateTextAttrs({backcolor:t})})},null,8,["modelValue"])]})),default:ms((function(){return[Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"单元格填充"},{default:ms((function(){return[Object(j["createVNode"])(b,{class:"text-color-btn",style:{flex:"1"}},{default:ms((function(){return[Object(j["createVNode"])(O),Object(j["createVNode"])("div",{class:"text-color-block",style:{backgroundColor:e.textAttrs.backcolor}},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1})]})),_:1}),Object(j["createVNode"])(S,{class:"row"},{default:ms((function(){return[Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"加粗"},{default:ms((function(){return[Object(j["createVNode"])(y,{style:{flex:"1"},checked:e.textAttrs.bold,onClick:t[5]||(t[5]=function(t){return e.updateTextAttrs({bold:!e.textAttrs.bold})})},{default:ms((function(){return[Object(j["createVNode"])(g)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"斜体"},{default:ms((function(){return[Object(j["createVNode"])(y,{style:{flex:"1"},checked:e.textAttrs.em,onClick:t[6]||(t[6]=function(t){return e.updateTextAttrs({em:!e.textAttrs.em})})},{default:ms((function(){return[Object(j["createVNode"])(k)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下划线"},{default:ms((function(){return[Object(j["createVNode"])(y,{style:{flex:"1"},checked:e.textAttrs.underline,onClick:t[7]||(t[7]=function(t){return e.updateTextAttrs({underline:!e.textAttrs.underline})})},{default:ms((function(){return[Object(j["createVNode"])(E)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除线"},{default:ms((function(){return[Object(j["createVNode"])(y,{style:{flex:"1"},checked:e.textAttrs.strikethrough,onClick:t[8]||(t[8]=function(t){return e.updateTextAttrs({strikethrough:!e.textAttrs.strikethrough})})},{default:ms((function(){return[Object(j["createVNode"])(I)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(L,{class:"row","button-style":"solid",value:e.textAttrs.align,onChange:t[9]||(t[9]=function(t){return e.updateTextAttrs({align:t.target.value})})},{default:ms((function(){return[Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:ms((function(){return[Object(j["createVNode"])(N,{value:"left",style:{flex:"1"}},{default:ms((function(){return[Object(j["createVNode"])(C)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:ms((function(){return[Object(j["createVNode"])(N,{value:"center",style:{flex:"1"}},{default:ms((function(){return[Object(j["createVNode"])(x)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:ms((function(){return[Object(j["createVNode"])(N,{value:"right",style:{flex:"1"}},{default:ms((function(){return[Object(j["createVNode"])(T)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(j["createVNode"])(w),Object(j["createVNode"])(V,{fixed:!0}),Object(j["createVNode"])(w),Object(j["createVNode"])("div",Os,[hs,Object(j["createVNode"])(_,{min:e.minRowCount,max:20,value:e.rowCount,"onUpdate:value":t[10]||(t[10]=function(t){return e.rowCount=t}),onPressEnter:t[11]||(t[11]=function(t){return e.setTableRow(t)}),onBlur:t[12]||(t[12]=function(t){return e.setTableRow(t)}),style:{flex:"3"}},null,8,["min","value"])]),Object(j["createVNode"])("div",js,[gs,Object(j["createVNode"])(_,{min:e.minColCount,max:20,value:e.colCount,"onUpdate:value":t[13]||(t[13]=function(t){return e.colCount=t}),onPressEnter:t[14]||(t[14]=function(t){return e.setTableCol(t)}),onBlur:t[15]||(t[15]=function(t){return e.setTableCol(t)}),style:{flex:"3"}},null,8,["min","value"])]),Object(j["createVNode"])(w),Object(j["createVNode"])("div",ys,[ks,Object(j["createVNode"])("div",Es,[Object(j["createVNode"])(B,{checked:e.hasTheme,onChange:t[16]||(t[16]=function(t){return e.toggleTheme(t)})},null,8,["checked"])])]),e.hasTheme?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[Object(j["createVNode"])("div",Is,[Object(j["createVNode"])(D,{onChange:t[17]||(t[17]=function(t){return e.updateTheme({rowHeader:t.target.checked})}),checked:e.theme.rowHeader,style:{flex:"1"}},{default:ms((function(){return[Ss]})),_:1},8,["checked"]),Object(j["createVNode"])(D,{onChange:t[18]||(t[18]=function(t){return e.updateTheme({rowFooter:t.target.checked})}),checked:e.theme.rowFooter,style:{flex:"1"}},{default:ms((function(){return[Cs]})),_:1},8,["checked"])]),Object(j["createVNode"])("div",Ns,[Object(j["createVNode"])(D,{onChange:t[19]||(t[19]=function(t){return e.updateTheme({colHeader:t.target.checked})}),checked:e.theme.colHeader,style:{flex:"1"}},{default:ms((function(){return[xs]})),_:1},8,["checked"]),Object(j["createVNode"])(D,{onChange:t[20]||(t[20]=function(t){return e.updateTheme({colFooter:t.target.checked})}),checked:e.theme.colFooter,style:{flex:"1"}},{default:ms((function(){return[Ts]})),_:1},8,["checked"])]),Object(j["createVNode"])("div",Ls,[ws,Object(j["createVNode"])(v,{trigger:"click"},{content:ms((function(){return[Object(j["createVNode"])(f,{modelValue:e.theme.color,"onUpdate:modelValue":t[21]||(t[21]=function(t){return e.updateTheme({color:t})})},null,8,["modelValue"])]})),default:ms((function(){return[Object(j["createVNode"])(M,{color:e.theme.color,style:{flex:"3"}},null,8,["color"])]})),_:1})])],64)):Object(j["createCommentVNode"])("",!0)])})),_s=U,Bs=Object(j["defineComponent"])({name:"table-style-panel",components:{ElementOutline:nu,ColorButton:eu},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["computed"])((function(){return e.state.availableFonts})),o=["12px","14px","16px","18px","20px","22px","24px","28px","32px"],c=Object(j["ref"])({bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"#000",fontsize:"12px",fontname:"微软雅黑",align:"left"}),a=Object(j["ref"])(),r=Object(j["ref"])(!1),l=Object(j["ref"])(0),i=Object(j["ref"])(0),u=Object(j["ref"])(0),d=Object(j["ref"])(0);Object(j["watch"])(t,(function(){t.value&&"table"===t.value.type&&(a.value=t.value.theme,r.value=!!a.value,l.value=t.value.data.length,i.value=t.value.data[0].length,u.value=t.value.data.length,d.value=t.value.data[0].length)}),{deep:!0,immediate:!0});var s=Ne(),f=s.addHistorySnapshot,p=Object(j["ref"])([]),b=function(){if(t.value){var e=0,n=0;if(p.value.length){var o=p.value[0];e=+o.split("_")[0],n=+o.split("_")[1]}var a=t.value.data[e][n].style;c.value=a?{bold:!!a.bold,em:!!a.em,underline:!!a.underline,strikethrough:!!a.strikethrough,color:a.color||"#000",backcolor:a.backcolor||"#000",fontsize:a.fontsize||"12px",fontname:a.fontname||"微软雅黑",align:a.align||"left"}:{bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"#000",fontsize:"12px",fontname:"微软雅黑",align:"left"}}},m=function(e){p.value=e,b()};qo.on(Lo.UPDATE_TABLE_SELECTED_CELL,(function(e){return m(e)})),Object(j["onUnmounted"])((function(){qo.off(Lo.UPDATE_TABLE_SELECTED_CELL,(function(e){return m(e)}))}));var v=function(n){for(var o=JSON.parse(JSON.stringify(t.value.data)),c=0;cX
Y
',1),Gs={class:"row"},qs=Object(j["createVNode"])("div",{style:{flex:"3"}},"大小:",-1),Xs={key:1,style:{flex:"1"}},Ws=Object(j["createStaticVNode"])('',1),Ys={class:"row"},Zs=Object(j["createVNode"])("div",{style:{flex:"3"}},"旋转:",-1),Js=Object(j["createVNode"])("div",{style:{flex:"1"}},null,-1);Object(j["popScopeId"])();var Ks=Ps((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconSendToBack"),l=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("Tooltip"),u=Object(j["resolveComponent"])("IconBringToFrontOne"),d=Object(j["resolveComponent"])("IconBringToFront"),s=Object(j["resolveComponent"])("IconSentToBack"),f=Object(j["resolveComponent"])("ButtonGroup"),p=Object(j["resolveComponent"])("IconAlignLeft"),b=Object(j["resolveComponent"])("IconAlignVertically"),m=Object(j["resolveComponent"])("IconAlignRight"),v=Object(j["resolveComponent"])("IconAlignTop"),O=Object(j["resolveComponent"])("IconAlignHorizontally"),h=Object(j["resolveComponent"])("IconAlignBottom"),g=Object(j["resolveComponent"])("Divider"),y=Object(j["resolveComponent"])("InputNumber"),k=Object(j["resolveComponent"])("IconLock"),E=Object(j["resolveComponent"])("IconUnlock"),I=Object(j["resolveComponent"])("IconRotate");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Rs,[Object(j["createVNode"])(f,{class:"row"},{default:Ps((function(){return[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"置顶层"},{default:Ps((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[1]||(t[1]=function(t){return e.orderElement(e.handleElement,"top")})},{default:Ps((function(){return[Object(j["createVNode"])(r)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"置底层"},{default:Ps((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[2]||(t[2]=function(t){return e.orderElement(e.handleElement,"bottom")})},{default:Ps((function(){return[Object(j["createVNode"])(u)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上移一层"},{default:Ps((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[3]||(t[3]=function(t){return e.orderElement(e.handleElement,"up")})},{default:Ps((function(){return[Object(j["createVNode"])(d)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下移一层"},{default:Ps((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[4]||(t[4]=function(t){return e.orderElement(e.handleElement,"down")})},{default:Ps((function(){return[Object(j["createVNode"])(s)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(f,{class:"row"},{default:Ps((function(){return[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Ps((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[5]||(t[5]=function(t){return e.alignElementToCanvas("left")})},{default:Ps((function(){return[Object(j["createVNode"])(p)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"水平居中"},{default:Ps((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[6]||(t[6]=function(t){return e.alignElementToCanvas("horizontal")})},{default:Ps((function(){return[Object(j["createVNode"])(b)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Ps((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[7]||(t[7]=function(t){return e.alignElementToCanvas("right")})},{default:Ps((function(){return[Object(j["createVNode"])(m)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(f,{class:"row"},{default:Ps((function(){return[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上对齐"},{default:Ps((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[8]||(t[8]=function(t){return e.alignElementToCanvas("top")})},{default:Ps((function(){return[Object(j["createVNode"])(v)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"垂直居中"},{default:Ps((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[9]||(t[9]=function(t){return e.alignElementToCanvas("vertical")})},{default:Ps((function(){return[Object(j["createVNode"])(O)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下对齐"},{default:Ps((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[10]||(t[10]=function(t){return e.alignElementToCanvas("bottom")})},{default:Ps((function(){return[Object(j["createVNode"])(h)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(g),Object(j["createVNode"])("div",Fs,[Hs,Object(j["createVNode"])(y,{step:5,value:e.left,onChange:t[11]||(t[11]=function(t){return e.updateLeft(t)}),style:{flex:"4"}},null,8,["value"]),zs,Object(j["createVNode"])(y,{step:5,value:e.top,onChange:t[12]||(t[12]=function(t){return e.updateTop(t)}),style:{flex:"4"}},null,8,["value"])]),Us,"line"!==e.handleElement.type?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[Object(j["createVNode"])("div",Gs,[qs,Object(j["createVNode"])(y,{min:e.minSize,max:1500,step:5,value:e.width,onChange:t[13]||(t[13]=function(t){return e.updateWidth(t)}),style:{flex:"4"}},null,8,["min","value"]),["image","shape"].includes(e.handleElement.type)?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[e.fixedRatio?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0,mouseLeaveDelay:0,mouseEnterDelay:.5,title:"解除宽高比锁定"},{default:Ps((function(){return[Object(j["createVNode"])(k,{style:{flex:"1"},class:"icon-btn",onClick:t[14]||(t[14]=function(t){return e.updateFixedRatio(!1)})})]})),_:1},8,["mouseEnterDelay"])):(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:1,mouseLeaveDelay:0,mouseEnterDelay:.5,title:"宽高比锁定"},{default:Ps((function(){return[Object(j["createVNode"])(E,{style:{flex:"1"},class:"icon-btn",onClick:t[15]||(t[15]=function(t){return e.updateFixedRatio(!0)})})]})),_:1},8,["mouseEnterDelay"]))],64)):(Object(j["openBlock"])(),Object(j["createBlock"])("div",Xs)),Object(j["createVNode"])(y,{min:e.minSize,max:800,step:5,disabled:"text"===e.handleElement.type,value:e.height,onChange:t[16]||(t[16]=function(t){return e.updateHeight(t)}),style:{flex:"4"}},null,8,["min","disabled","value"])]),Ws],64)):Object(j["createCommentVNode"])("",!0),["text","image","shape"].includes(e.handleElement.type)?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:1},[Object(j["createVNode"])(g),Object(j["createVNode"])("div",Ys,[Zs,Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"逆时针旋转"},{default:Ps((function(){return[Object(j["createVNode"])(I,{class:"icon-btn",onClick:t[17]||(t[17]=function(t){return e.updateRotate45("-")}),style:{flex:"2"}})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"顺时针旋转"},{default:Ps((function(){return[Object(j["createVNode"])(I,{class:"icon-btn",onClick:t[18]||(t[18]=function(t){return e.updateRotate45("+")}),style:{flex:2,transform:"rotateY(180deg)"}},null,8,["style"])]})),_:1},8,["mouseEnterDelay"]),Js,Object(j["createVNode"])(y,{min:-180,max:180,step:5,value:e.rotate,onChange:t[19]||(t[19]=function(t){return e.updateRotate(t)}),style:{flex:"4"}},null,8,["value"])])],64)):Object(j["createCommentVNode"])("",!0)])})),Qs=n("b69c"),$s=n.n(Qs),ef=Object(j["defineComponent"])({name:"element-positopn-panel",setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["ref"])(0),o=Object(j["ref"])(0),c=Object(j["ref"])(0),a=Object(j["ref"])(0),r=Object(j["ref"])(0),l=Object(j["ref"])(!1),i=Object(j["computed"])((function(){return t.value&&Wo[t.value.type]||20}));Object(j["watch"])(t,(function(){t.value&&(n.value=$s()(t.value.left,1),o.value=$s()(t.value.top,1),l.value="fixedRatio"in t.value&&!!t.value.fixedRatio,"line"!==t.value.type&&(c.value=$s()(t.value.width,1),a.value=$s()(t.value.height,1),r.value="rotate"in t.value&&void 0!==t.value.rotate?$s()(t.value.rotate,1):0))}),{deep:!0,immediate:!0});var u=Fe(),d=u.orderElement,s=cc(),f=s.alignElementToCanvas,p=Ne(),b=p.addHistorySnapshot,m=function(n){var o={left:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},v=function(n){var o={top:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},O=function(n){var o={width:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},h=function(n){var o={height:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},g=function(n){var o={rotate:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},k=function(n){var o={fixedRatio:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},E=function(n){var o=45*Math.floor(r.value/45);"+"===n?o+=45:"-"===n&&(o-=45),o<-180&&(o=-180),o>180&&(o=180);var c={rotate:o};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:c}),b()};return{handleElement:t,orderElement:d,alignElementToCanvas:f,left:n,top:o,width:c,height:a,rotate:r,fixedRatio:l,minSize:i,updateLeft:m,updateTop:v,updateWidth:O,updateHeight:h,updateRotate:g,updateFixedRatio:k,updateRotate45:E}}});n("b7a1");ef.render=Ks,ef.__scopeId="data-v-15c9ddcc";var tf=ef,nf=Object(j["withScopeId"])("data-v-2a95eecd");Object(j["pushScopeId"])("data-v-2a95eecd");var of={class:"element-animation-panel"},cf={key:0,class:"element-animation"},af={class:"animation-pool"},rf={class:"type-title"},lf={class:"pool-item-wrapper"},uf=Object(j["createTextVNode"])(" 图表元素暂不支持动画 "),df={key:1,class:"tip"},sf=Object(j["createTextVNode"])(" 选中画布中的元素添加动画"),ff={class:"index"},pf={class:"text"},bf={class:"handler"};Object(j["popScopeId"])();var mf,vf=nf((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconEffects"),l=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("Popover"),u=Object(j["resolveComponent"])("IconClick"),d=Object(j["resolveComponent"])("Divider"),s=Object(j["resolveComponent"])("IconPlayOne"),f=Object(j["resolveComponent"])("Tooltip"),p=Object(j["resolveComponent"])("IconCloseSmall"),b=Object(j["resolveComponent"])("Draggable");return Object(j["openBlock"])(),Object(j["createBlock"])("div",of,[e.handleElement?(Object(j["openBlock"])(),Object(j["createBlock"])("div",cf,["chart"!==e.handleElement.type?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0,trigger:"click",visible:e.animationPoolVisible,"onUpdate:visible":t[2]||(t[2]=function(t){return e.animationPoolVisible=t})},{content:nf((function(){return[Object(j["createVNode"])("div",af,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.animations,(function(n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"pool-type",key:n.name},[Object(j["createVNode"])("div",rf,Object(j["toDisplayString"])(n.name)+":",1),Object(j["createVNode"])("div",lf,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(n.children,(function(n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"pool-item",key:n.name,onMouseenter:function(t){return e.hoverPreviewAnimation=n.value},onMouseleave:t[1]||(t[1]=function(t){return e.hoverPreviewAnimation=""}),onClick:function(t){return e.addAnimation(n.value)}},[Object(j["createVNode"])("div",{class:["animation-box",["animate__animated","animate__faster",e.hoverPreviewAnimation===n.value&&"animate__".concat(n.value)]]},Object(j["toDisplayString"])(n.name),3)],40,["onMouseenter","onClick"])})),128))])])})),128))])]})),default:nf((function(){return[Object(j["createVNode"])(l,{class:"element-animation-btn"},{default:nf((function(){return[Object(j["createVNode"])(r,{style:{"margin-right":"5px"}}),Object(j["createTextVNode"])(" "+Object(j["toDisplayString"])(e.handleElementAnimation||"点击选择动画"),1)]})),_:1})]})),_:1},8,["visible"])):(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:1,class:"element-animation-btn",disabled:""},{default:nf((function(){return[Object(j["createVNode"])(r,{style:{"margin-right":"5px"}}),uf]})),_:1}))])):(Object(j["openBlock"])(),Object(j["createBlock"])("div",df,[Object(j["createVNode"])(u),sf])),Object(j["createVNode"])(d),Object(j["createVNode"])(b,{class:"animation-sequence",modelValue:e.animationSequence,animation:300,scroll:!0,scrollSensitivity:50,onEnd:e.handleDragEnd,itemKey:"id"},{item:nf((function(t){var n,o=t.element,c=t.index;return[Object(j["createVNode"])("div",{class:["sequence-item",{active:(null===(n=e.handleElement)||void 0===n?void 0:n.id)===o.elId}]},[Object(j["createVNode"])("div",ff,Object(j["toDisplayString"])(c+1),1),Object(j["createVNode"])("div",pf,"【"+Object(j["toDisplayString"])(o.elType)+"】"+Object(j["toDisplayString"])(o.animationType),1),Object(j["createVNode"])("div",bf,[Object(j["createVNode"])(f,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"预览"},{default:nf((function(){return[Object(j["createVNode"])(s,{class:"handler-btn",onClick:function(t){return e.runAnimation(o.elId,o.type)}},null,8,["onClick"])]})),_:2},1032,["mouseEnterDelay"]),Object(j["createVNode"])(f,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除"},{default:nf((function(){return[Object(j["createVNode"])(p,{class:"handler-btn",onClick:function(t){return e.deleteAnimation(o.elId)}},null,8,["onClick"])]})),_:2},1032,["mouseEnterDelay"])])],2)]})),_:1},8,["modelValue","onEnd"])])})),Of=[{type:"bounce",name:"弹跳",children:[{name:"弹入",value:"bounceIn"},{name:"向右弹入",value:"bounceInLeft"},{name:"向左弹入",value:"bounceInRight"},{name:"向上弹入",value:"bounceInUp"},{name:"向下弹入",value:"bounceInDown"}]},{type:"fade",name:"浮现",children:[{name:"浮入",value:"fadeIn"},{name:"向下浮入",value:"fadeInDown"},{name:"向下长距浮入",value:"fadeInDownBig"},{name:"向右浮入",value:"fadeInLeft"},{name:"向右长距浮入",value:"fadeInLeftBig"},{name:"向左浮入",value:"fadeInRight"},{name:"向左长距浮入",value:"fadeInRightBig"},{name:"向上浮入",value:"fadeInUp"},{name:"向上长距浮入",value:"fadeInUpBig"},{name:"从左上浮入",value:"fadeInTopLeft"},{name:"从右上浮入",value:"fadeInTopRight"},{name:"从左下浮入",value:"fadeInBottomLeft"},{name:"从右下浮入",value:"fadeInBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转进入",value:"rotateIn"},{name:"绕左下旋转进入",value:"rotateInDownLeft"},{name:"绕右下旋转进入",value:"rotateInDownRight"},{name:"绕左上旋转进入",value:"rotateInUpLeft"},{name:"绕右上旋转进入",value:"rotateInUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"放大进入",value:"zoomIn"},{name:"向下放大进入",value:"zoomInDown"},{name:"从左放大进入",value:"zoomInLeft"},{name:"从右放大进入",value:"zoomInRight"},{name:"向上放大进入",value:"zoomInUp"}]},{type:"slide",name:"滑入",children:[{name:"向下滑入",value:"slideInDown"},{name:"从右滑入",value:"slideInLeft"},{name:"从左滑入",value:"slideInRight"},{name:"向上滑入",value:"slideInUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转进入",value:"flipInX"},{name:"Y轴翻转进入",value:"flipInY"}]},{type:"back",name:"放大滑入",children:[{name:"向下放大滑入",value:"backInDown"},{name:"从左放大滑入",value:"backInLeft"},{name:"从右放大滑入",value:"backInRight"},{name:"向上放大滑入",value:"backInUp"}]},{type:"lightSpeed",name:"飞入",children:[{name:"从右飞入",value:"lightSpeedInRight"},{name:"从左飞入",value:"lightSpeedInLeft"}]}],hf={},jf=Object(ke["a"])(Of);try{for(jf.s();!(mf=jf.n()).done;){var gf,yf=mf.value,kf=Object(ke["a"])(yf.children);try{for(kf.s();!(gf=kf.n()).done;){var Ef=gf.value;hf[Ef.value]=Ef.name}}catch(qO){kf.e(qO)}finally{kf.f()}}}catch(qO){jf.e(qO)}finally{jf.f()}var If=Object(j["defineComponent"])({name:"element-animation-panel",components:{Draggable:di.a},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["computed"])((function(){return e.getters.currentSlideAnimations})),o=Object(j["computed"])((function(){return e.getters.currentSlide})),c=Object(j["ref"])(""),a=Object(j["ref"])(!1),r=Ne(),l=r.addHistorySnapshot,i=Of,u=Object(j["computed"])((function(){if(!n.value)return[];var e,t=[],c=Object(ke["a"])(n.value);try{var a=function(){var n=e.value,c=o.value.elements.find((function(e){return e.id===n.elId}));if(!c)return"continue";var a=Xo[c.type],r=hf[n.type];t.push(Object(R["a"])(Object(R["a"])({},n),{},{elType:a,animationType:r}))};for(c.s();!(e=c.n()).done;)a()}catch(qO){c.e(qO)}finally{c.f()}return t})),d=Object(j["computed"])((function(){if(!t.value)return null;var e=n.value||[],o=e.find((function(e){return e.elId===t.value.id}));return o?hf[o.type]:null})),s=function(t){var o=n.value.filter((function(e){return e.elId!==t}));e.commit(y.UPDATE_SLIDE,{animations:o}),l()},f=function(t){var o=t.newIndex,c=t.oldIndex;if(c!==o){var a=JSON.parse(JSON.stringify(n.value)),r=a[c];a.splice(c,1),a.splice(o,0,r),e.commit(y.UPDATE_SLIDE,{animations:a}),l()}},p=function(e,t){var n="animate__",o=document.querySelector("#editable-element-".concat(e," [class^=editable-element-]"));if(o){var c="".concat(n).concat(t);o.classList.add("".concat(n,"animated"),c);var a=function(){o.classList.remove("".concat(n,"animated"),c)};o.addEventListener("animationend",a,{once:!0})}},b=function(o){var c=n.value.map((function(e){return e.elId===t.value.id?Object(R["a"])(Object(R["a"])({},e),{},{type:o}):e}));e.commit(y.UPDATE_SLIDE,{animations:c}),a.value=!1,l(),p(t.value.id,o)},m=function(o){if(d.value)b(o);else{var c=n.value?JSON.parse(JSON.stringify(n.value)):[];c.push({elId:t.value.id,type:o,duration:1e3}),e.commit(y.UPDATE_SLIDE,{animations:c}),a.value=!1,l(),p(t.value.id,o)}};return{handleElement:t,animationPoolVisible:a,animations:i,animationSequence:u,hoverPreviewAnimation:c,handleElementAnimation:d,addAnimation:m,deleteAnimation:s,handleDragEnd:f,runAnimation:p}}});n("967d");If.render=vf,If.__scopeId="data-v-2a95eecd";var Sf=If,Cf=Object(j["withScopeId"])("data-v-2e49fc42");Object(j["pushScopeId"])("data-v-2e49fc42");var Nf={class:"slide-style-panel"},xf=Object(j["createVNode"])("div",{class:"title"},"背景填充",-1),Tf={class:"row"},Lf=Object(j["createTextVNode"])("纯色填充"),wf=Object(j["createTextVNode"])("图片填充"),Vf=Object(j["createTextVNode"])("渐变填充"),_f=Object(j["createVNode"])("div",{style:{flex:"1"}},null,-1),Bf=Object(j["createTextVNode"])("原始大小"),Df=Object(j["createTextVNode"])("缩放"),Mf=Object(j["createTextVNode"])("拼贴"),Af=Object(j["createTextVNode"])("缩放铺满"),Pf=Object(j["createTextVNode"])("线性渐变"),Rf=Object(j["createTextVNode"])("径向渐变"),Ff={key:0,class:"background-image-wrapper"},Hf={class:"background-image"},zf={key:1,class:"background-gradient-wrapper"},Uf={class:"row"},Gf=Object(j["createVNode"])("div",{style:{flex:"2"}},"起点颜色:",-1),qf={class:"row"},Xf=Object(j["createVNode"])("div",{style:{flex:"2"}},"终点颜色:",-1),Wf={key:0,class:"row"},Yf=Object(j["createVNode"])("div",{style:{flex:"2"}},"渐变角度:",-1),Zf={class:"row"},Jf=Object(j["createTextVNode"])("应用背景到全部"),Kf={class:"row"},Qf=Object(j["createVNode"])("div",{style:{flex:"2"}},"画布尺寸:",-1),$f=Object(j["createTextVNode"])("宽屏 16 : 9"),ep=Object(j["createTextVNode"])("宽屏 16 :10"),tp=Object(j["createTextVNode"])("标准 4 :3"),np=Object(j["createVNode"])("div",{class:"title"},"全局主题",-1),op={class:"row"},cp=Object(j["createVNode"])("div",{style:{flex:"2"}},"字体:",-1),ap={class:"row"},rp=Object(j["createVNode"])("div",{style:{flex:"2"}},"字体颜色:",-1),lp={class:"row"},ip=Object(j["createVNode"])("div",{style:{flex:"2"}},"背景颜色:",-1),up={class:"row"},dp=Object(j["createVNode"])("div",{style:{flex:"2"}},"主题色:",-1),sp=Object(j["createVNode"])("div",{class:"title",style:{"margin-top":"20px"}},"预置主题:",-1),fp={class:"theme-list"},pp={class:"theme-item-content"},bp={class:"row"},mp=Object(j["createTextVNode"])("应用主题到全部");Object(j["popScopeId"])();var vp=Cf((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SelectOption"),l=Object(j["resolveComponent"])("Select"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("IconPlus"),f=Object(j["resolveComponent"])("FileInput"),p=Object(j["resolveComponent"])("Slider"),b=Object(j["resolveComponent"])("Button"),m=Object(j["resolveComponent"])("Divider"),v=Object(j["resolveComponent"])("SelectOptGroup");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Nf,[xf,Object(j["createVNode"])("div",Tf,[Object(j["createVNode"])(l,{style:{flex:"10"},value:e.background.type,onChange:t[1]||(t[1]=function(t){return e.updateBackgroundType(t)})},{default:Cf((function(){return[Object(j["createVNode"])(r,{value:"solid"},{default:Cf((function(){return[Lf]})),_:1}),Object(j["createVNode"])(r,{value:"image"},{default:Cf((function(){return[wf]})),_:1}),Object(j["createVNode"])(r,{value:"gradient"},{default:Cf((function(){return[Vf]})),_:1})]})),_:1},8,["value"]),_f,"solid"===e.background.type?(Object(j["openBlock"])(),Object(j["createBlock"])(d,{key:0,trigger:"click"},{content:Cf((function(){return[Object(j["createVNode"])(i,{modelValue:e.background.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.updateBackground({color:t})})},null,8,["modelValue"])]})),default:Cf((function(){return[Object(j["createVNode"])(u,{color:e.background.color||"#fff",style:{flex:"10"}},null,8,["color"])]})),_:1})):"image"===e.background.type?(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:1,style:{flex:"10"},value:e.background.size||"cover",onChange:t[3]||(t[3]=function(t){return e.updateBackground({imageSize:t})})},{default:Cf((function(){return[Object(j["createVNode"])(r,{value:"initial"},{default:Cf((function(){return[Bf]})),_:1}),Object(j["createVNode"])(r,{value:"contain"},{default:Cf((function(){return[Df]})),_:1}),Object(j["createVNode"])(r,{value:"repeat"},{default:Cf((function(){return[Mf]})),_:1}),Object(j["createVNode"])(r,{value:"cover"},{default:Cf((function(){return[Af]})),_:1})]})),_:1},8,["value"])):(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:2,style:{flex:"10"},value:e.background.gradientType,onChange:t[4]||(t[4]=function(t){return e.updateBackground({gradientType:t})})},{default:Cf((function(){return[Object(j["createVNode"])(r,{value:"linear"},{default:Cf((function(){return[Pf]})),_:1}),Object(j["createVNode"])(r,{value:"radial"},{default:Cf((function(){return[Rf]})),_:1})]})),_:1},8,["value"]))]),"image"===e.background.type?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Ff,[Object(j["createVNode"])(f,{onChange:t[5]||(t[5]=function(t){return e.uploadBackgroundImage(t)})},{default:Cf((function(){return[Object(j["createVNode"])("div",Hf,[Object(j["createVNode"])("div",{class:"content",style:{backgroundImage:"url(".concat(e.background.image,")")}},[Object(j["createVNode"])(s)],4)])]})),_:1})])):Object(j["createCommentVNode"])("",!0),"gradient"===e.background.type?(Object(j["openBlock"])(),Object(j["createBlock"])("div",zf,[Object(j["createVNode"])("div",Uf,[Gf,Object(j["createVNode"])(d,{trigger:"click"},{content:Cf((function(){return[Object(j["createVNode"])(i,{modelValue:e.background.gradientColor[0],"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.updateBackground({gradientColor:[t,e.background.gradientColor[1]]})})},null,8,["modelValue"])]})),default:Cf((function(){return[Object(j["createVNode"])(u,{color:e.background.gradientColor[0],style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",qf,[Xf,Object(j["createVNode"])(d,{trigger:"click"},{content:Cf((function(){return[Object(j["createVNode"])(i,{modelValue:e.background.gradientColor[1],"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.updateBackground({gradientColor:[e.background.gradientColor[0],t]})})},null,8,["modelValue"])]})),default:Cf((function(){return[Object(j["createVNode"])(u,{color:e.background.gradientColor[1],style:{flex:"3"}},null,8,["color"])]})),_:1})]),"linear"===e.background.gradientType?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Wf,[Yf,Object(j["createVNode"])(p,{min:0,max:360,step:15,value:e.background.gradientRotate,style:{flex:"3"},onChange:t[8]||(t[8]=function(t){return e.updateBackground({gradientRotate:t})})},null,8,["value"])])):Object(j["createCommentVNode"])("",!0)])):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("div",Zf,[Object(j["createVNode"])(b,{style:{flex:"1"},onClick:t[9]||(t[9]=function(t){return e.applyBackgroundAllSlide()})},{default:Cf((function(){return[Jf]})),_:1})]),Object(j["createVNode"])(m),Object(j["createVNode"])("div",Kf,[Qf,Object(j["createVNode"])(l,{style:{flex:"3"},value:e.viewportRatio,onChange:t[10]||(t[10]=function(t){return e.updateViewportRatio(t)})},{default:Cf((function(){return[Object(j["createVNode"])(r,{value:.5625},{default:Cf((function(){return[$f]})),_:1},8,["value"]),Object(j["createVNode"])(r,{value:.625},{default:Cf((function(){return[ep]})),_:1},8,["value"]),Object(j["createVNode"])(r,{value:.75},{default:Cf((function(){return[tp]})),_:1},8,["value"])]})),_:1},8,["value"])]),Object(j["createVNode"])(m),np,Object(j["createVNode"])("div",op,[cp,Object(j["createVNode"])(l,{style:{flex:"3"},value:e.theme.fontName,onChange:t[11]||(t[11]=function(t){return e.updateTheme({fontName:t})})},{default:Cf((function(){return[Object(j["createVNode"])(v,{label:"系统字体"},{default:Cf((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.availableFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.value,value:e.value},{default:Cf((function(){return[Object(j["createVNode"])("span",{style:{fontFamily:e.value}},Object(j["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(j["createVNode"])(v,{label:"在线字体"},{default:Cf((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.webFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.value,value:e.value},{default:Cf((function(){return[Object(j["createVNode"])("span",null,Object(j["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])("div",ap,[rp,Object(j["createVNode"])(d,{trigger:"click"},{content:Cf((function(){return[Object(j["createVNode"])(i,{modelValue:e.theme.fontColor,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.updateTheme({fontColor:t})})},null,8,["modelValue"])]})),default:Cf((function(){return[Object(j["createVNode"])(u,{color:e.theme.fontColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",lp,[ip,Object(j["createVNode"])(d,{trigger:"click"},{content:Cf((function(){return[Object(j["createVNode"])(i,{modelValue:e.theme.backgroundColor,"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.updateTheme({backgroundColor:t})})},null,8,["modelValue"])]})),default:Cf((function(){return[Object(j["createVNode"])(u,{color:e.theme.backgroundColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",up,[dp,Object(j["createVNode"])(d,{trigger:"click"},{content:Cf((function(){return[Object(j["createVNode"])(i,{modelValue:e.theme.themeColor,"onUpdate:modelValue":t[14]||(t[14]=function(t){return e.updateTheme({themeColor:t})})},null,8,["modelValue"])]})),default:Cf((function(){return[Object(j["createVNode"])(u,{color:e.theme.themeColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),sp,Object(j["createVNode"])("div",fp,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.themes,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"theme-item",key:n,style:{backgroundColor:t.background},onClick:function(n){return e.updateTheme({fontColor:t.text,backgroundColor:t.background,themeColor:t.color})}},[Object(j["createVNode"])("div",pp,[Object(j["createVNode"])("div",{class:"text",style:{color:t.text}},"Aa",4),Object(j["createVNode"])("div",{class:"color-block",style:{backgroundColor:t.color}},null,4)])],12,["onClick"])})),128))]),Object(j["createVNode"])("div",bp,[Object(j["createVNode"])(b,{style:{flex:"1"},onClick:t[15]||(t[15]=function(t){return e.applyThemeAllSlide()})},{default:Cf((function(){return[mp]})),_:1})])])})),Op=[{color:"#d14424",background:"#ffffff",text:"#333"},{color:"#42464b",background:"#ffffff",text:"#333"},{color:"#5d82ba",background:"#ffffff",text:"#333"},{color:"#005a6f",background:"#ffffff",text:"#333"},{color:"#d0614c",background:"#dfb044",text:"#333"},{color:"#86a1ad",background:"#dfdbd4",text:"#333"},{color:"#697586",background:"#d5c4a4",text:"#333"},{color:"#333333",background:"#7acfa6",text:"#333"},{color:"#42464b",background:"#415065",text:"#fff"},{color:"#0c5999",background:"#35a2cd",text:"#fff"},{color:"#c49a41",background:"#8c4357",text:"#fff"},{color:"#dfaa00",background:"#2e4e7d",text:"#fff"},{color:"#d1ad88",background:"#f99070",text:"#fff"},{color:"#464d52",background:"#657984",text:"#fff"},{color:"#ffcfb6",background:"#1e4c6f",text:"#fff"},{color:"#c3a043",background:"#43292a",text:"#fff"},{color:"#464d52",background:"#60546f",text:"#fff"},{color:"#df9636",background:"#5b89a0",text:"#fff"},{color:"#b898a4",background:"#93716b",text:"#fff"},{color:"#c47a11",background:"#187db1",text:"#fff"},{color:"#333333",background:"#759564",text:"#fff"},{color:"#355b5e",background:"#424b50",text:"#fff"},{color:"#d29090",background:"#942a32",text:"#fff"},{color:"#00cfdf",background:"#3b434d",text:"#fff"},{color:"#424246",background:"#c70042",text:"#fff"},{color:"#2e4155",background:"#b35d44",text:"#fff"},{color:"#11bfce",background:"#8f98aa",text:"#fff"},{color:"#333333",background:"#549688",text:"#fff"}],hp=Op,jp=U,gp=Object(j["defineComponent"])({name:"slide-style-panel",components:{ColorButton:eu},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.slides})),n=Object(j["computed"])((function(){return e.state.theme})),o=Object(j["computed"])((function(){return e.state.availableFonts})),c=Object(j["computed"])((function(){return e.state.viewportRatio})),a=Object(j["computed"])((function(){return e.getters.currentSlide})),r=Object(j["computed"])((function(){return a.value.background?a.value.background:{type:"solid",value:"#fff"}})),l=Ne(),i=l.addHistorySnapshot,u=function(t){if("solid"===t){var n=Object(R["a"])(Object(R["a"])({},r.value),{},{type:"solid",color:r.value.color||"#fff"});e.commit(y.UPDATE_SLIDE,{background:n})}else if("image"===t){var o=Object(R["a"])(Object(R["a"])({},r.value),{},{type:"image",image:r.value.image||"",imageSize:r.value.imageSize||"cover"});e.commit(y.UPDATE_SLIDE,{background:o})}else{var c=Object(R["a"])(Object(R["a"])({},r.value),{},{type:"gradient",gradientType:r.value.gradientType||"linear",gradientColor:r.value.gradientColor||["#fff","#fff"],gradientRotate:r.value.gradientRotate||0});e.commit(y.UPDATE_SLIDE,{background:c})}i()},d=function(t){e.commit(y.UPDATE_SLIDE,{background:Object(R["a"])(Object(R["a"])({},r.value),t)}),i()},s=function(e){var t=e[0];t&&Te(t).then((function(e){return d({image:e})}))},f=function(){var n=t.value.map((function(e){return Object(R["a"])(Object(R["a"])({},e),{},{background:a.value.background})}));e.commit(y.SET_SLIDES,n),i()},p=function(t){e.commit(y.SET_THEME,t)},b=function(){var o,c=JSON.parse(JSON.stringify(t.value)),a=n.value,r=a.themeColor,l=a.backgroundColor,u=a.fontColor,d=Object(ke["a"])(c);try{for(d.s();!(o=d.n()).done;){var s=o.value;s.background&&"image"===s.background.type||(s.background=Object(R["a"])(Object(R["a"])({},s.background),{},{type:"solid",color:l}));var f,p=s.elements,b=Object(ke["a"])(p);try{for(b.s();!(f=b.n()).done;){var m=f.value;"shape"===m.type?m.fill=r:"line"===m.type?m.color=r:"text"===m.type?m.fill&&(m.fill=r):"table"===m.type?m.theme&&(m.theme.color=r):"chart"===m.type&&(m.themeColor=r,m.gridColor=u)}}catch(qO){b.e(qO)}finally{b.f()}}}catch(qO){d.e(qO)}finally{d.f()}e.commit(y.SET_SLIDES,c),i()},m=function(t){e.commit(y.SET_VIEWPORT_RATIO,t)};return{availableFonts:o,background:r,updateBackgroundType:u,updateBackground:d,uploadBackgroundImage:s,applyBackgroundAllSlide:f,themes:hp,theme:n,webFonts:jp,updateTheme:p,applyThemeAllSlide:b,viewportRatio:c,updateViewportRatio:m}}});n("ef88");gp.render=vp,gp.__scopeId="data-v-2e49fc42";var yp=gp,kp=Object(j["withScopeId"])("data-v-6e3028f1");Object(j["pushScopeId"])("data-v-6e3028f1");var Ep={class:"slide-animation-panel"},Ip={class:"animation-pool"},Sp={class:"animation-text"},Cp=Object(j["createTextVNode"])("应用到全部");Object(j["popScopeId"])();var Np=kp((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Ep,[Object(j["createVNode"])("div",Ip,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.animations,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["animation-item",{active:e.currentTurningMode===t.value}],key:t.label,onClick:function(n){return e.updateTurningMode(t.value)}},[Object(j["createVNode"])("div",{class:["animation-block",t.value]},null,2),Object(j["createVNode"])("div",Sp,Object(j["toDisplayString"])(t.label),1)],10,["onClick"])})),128))]),Object(j["createVNode"])(r,{style:{width:"100%"},onClick:t[1]||(t[1]=function(t){return e.applyAllSlide()})},{default:kp((function(){return[Cp]})),_:1})])})),xp=Object(j["defineComponent"])({name:"slide-animation-panel",setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.slides})),n=Object(j["computed"])((function(){return e.getters.currentSlide})),o=Object(j["computed"])((function(){return n.value.turningMode||"slideY"})),c=[{label:"无",value:"no"},{label:"淡入淡出",value:"fade"},{label:"左右推移",value:"slideX"},{label:"上下推移",value:"slideY"}],a=Ne(),r=a.addHistorySnapshot,l=function(t){t!==o.value&&(e.commit(y.UPDATE_SLIDE,{turningMode:t}),r())},i=function(){var o=t.value.map((function(e){return Object(R["a"])(Object(R["a"])({},e),{},{turningMode:n.value.turningMode})}));e.commit(y.SET_SLIDES,o),r()};return{currentTurningMode:o,animations:c,updateTurningMode:l,applyAllSlide:i}}});n("5217");xp.render=Np,xp.__scopeId="data-v-6e3028f1";var Tp=xp,Lp=Object(j["withScopeId"])("data-v-aef45858");Object(j["pushScopeId"])("data-v-aef45858");var wp={class:"multi-position-panel"},Vp=Object(j["createTextVNode"])("水平均匀分布"),_p=Object(j["createTextVNode"])("垂直均匀分布"),Bp=Object(j["createTextVNode"])("组合"),Dp=Object(j["createTextVNode"])("取消组合");Object(j["popScopeId"])();var Mp=Lp((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconAlignLeft"),l=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("Tooltip"),u=Object(j["resolveComponent"])("IconAlignVertically"),d=Object(j["resolveComponent"])("IconAlignRight"),s=Object(j["resolveComponent"])("ButtonGroup"),f=Object(j["resolveComponent"])("IconAlignTop"),p=Object(j["resolveComponent"])("IconAlignHorizontally"),b=Object(j["resolveComponent"])("IconAlignBottom"),m=Object(j["resolveComponent"])("Divider"),v=Object(j["resolveComponent"])("IconGroup"),O=Object(j["resolveComponent"])("IconUngroup");return Object(j["openBlock"])(),Object(j["createBlock"])("div",wp,[Object(j["createVNode"])(s,{class:"row"},{default:Lp((function(){return[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Lp((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[1]||(t[1]=function(t){return e.alignElement("left")})},{default:Lp((function(){return[Object(j["createVNode"])(r)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"水平居中"},{default:Lp((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[2]||(t[2]=function(t){return e.alignElement("horizontal")})},{default:Lp((function(){return[Object(j["createVNode"])(u)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Lp((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[3]||(t[3]=function(t){return e.alignElement("right")})},{default:Lp((function(){return[Object(j["createVNode"])(d)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(s,{class:"row"},{default:Lp((function(){return[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上对齐"},{default:Lp((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[4]||(t[4]=function(t){return e.alignElement("top")})},{default:Lp((function(){return[Object(j["createVNode"])(f)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"垂直居中"},{default:Lp((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[5]||(t[5]=function(t){return e.alignElement("vertical")})},{default:Lp((function(){return[Object(j["createVNode"])(p)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下对齐"},{default:Lp((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[6]||(t[6]=function(t){return e.alignElement("bottom")})},{default:Lp((function(){return[Object(j["createVNode"])(b)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),e.activeElementList.length>2?(Object(j["openBlock"])(),Object(j["createBlock"])(s,{key:0,class:"row"},{default:Lp((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[7]||(t[7]=function(t){return e.uniformHorizontalDisplay()})},{default:Lp((function(){return[Vp]})),_:1}),Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[8]||(t[8]=function(t){return e.uniformVerticalDisplay()})},{default:Lp((function(){return[_p]})),_:1})]})),_:1})):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(m),Object(j["createVNode"])(s,{class:"row"},{default:Lp((function(){return[Object(j["createVNode"])(l,{disabled:!e.canCombine,onClick:t[9]||(t[9]=function(t){return e.combineElements()}),style:{flex:"1"}},{default:Lp((function(){return[Object(j["createVNode"])(v,{style:{"margin-right":"3px"}}),Bp]})),_:1},8,["disabled"]),Object(j["createVNode"])(l,{disabled:e.canCombine,onClick:t[10]||(t[10]=function(t){return e.uncombineElements()}),style:{flex:"1"}},{default:Lp((function(){return[Object(j["createVNode"])(O,{style:{"margin-right":"3px"}}),Dp]})),_:1},8,["disabled"])]})),_:1})])})),Ap=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.activeElementList})),o=Object(j["computed"])((function(){return e.getters.currentSlide})),c=Ne(),a=c.addHistorySnapshot,r=function(c){var r,l=Ao(n.value),i=l.minX,u=l.maxX,d=l.minY,s=l.maxY,f=JSON.parse(JSON.stringify(o.value.elements)),p={},b=Object(ke["a"])(n.value);try{var m=function(){var e=r.value;if(e.groupId&&!p[e.groupId]){var t=n.value.filter((function(t){return t.groupId===e.groupId}));p[e.groupId]=Ao(t)}};for(b.s();!(r=b.n()).done;)m()}catch(qO){b.e(qO)}finally{b.f()}if(c===ee.LEFT)f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=n.minX-i;e.left=e.left-o}else if("rotate"in e&&e.rotate){var c=Do({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),a=c.offsetX;e.left=i-a}else e.left=i}));else if(c===ee.RIGHT)f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=n.maxX-u;e.left=e.left-o}else{var c="line"===e.type?Math.max(e.start[0],e.end[0]):e.width;if("rotate"in e&&e.rotate){var a=Do({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),r=a.offsetX;e.left=u-c+r}else e.left=u-c}}));else if(c===ee.TOP)f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=n.minY-d;e.top=e.top-o}else if("rotate"in e&&e.rotate){var c=Do({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),a=c.offsetY;e.top=d-a}else e.top=d}));else if(c===ee.BOTTOM)f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=n.maxY-s;e.top=e.top-o}else{var c="line"===e.type?Math.max(e.start[1],e.end[1]):e.height;if("rotate"in e&&e.rotate){var a=Do({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),r=a.offsetY;e.top=s-c+r}else e.top=s-c}}));else if(c===ee.HORIZONTAL){var v=(i+u)/2;f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=(n.maxX+n.minX)/2,c=o-v;e.left=e.left-c}else{var a="line"===e.type?Math.max(e.start[0],e.end[0]):e.width;e.left=v-a/2}}))}else if(c===ee.VERTICAL){var O=(d+s)/2;f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=(n.maxY+n.minY)/2,c=o-O;e.top=e.top-c}else{var a="line"===e.type?Math.max(e.start[1],e.end[1]):e.height;e.top=O-a/2}}))}e.commit(y.UPDATE_SLIDE,{elements:f}),a()};return{alignActiveElement:r}},Pp=function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.activeElementList})),o=Object(j["computed"])((function(){return e.getters.currentSlide})),c=Ne(),a=c.addHistorySnapshot,r=function(){var c=Ao(n.value),r=c.minX,l=c.maxX,i=JSON.parse(JSON.stringify(n.value)),u=JSON.parse(JSON.stringify(o.value.elements));i.sort((function(e,t){var n=Mo(e),o=n.minX,c=Mo(t),a=c.minX;return o-a}));var d,s=0,f=Object(ke["a"])(n.value);try{for(f.s();!(d=f.n()).done;){var p=d.value,b=Mo(p),m=b.minX,v=b.maxX;s+=v-m}}catch(qO){f.e(qO)}finally{f.f()}var O,h=(l-r-s)/(n.value.length-1),j=[],g=Object(ke["a"])(i);try{for(g.s();!(O=g.n()).done;){var k=O.value;if(j.length){var E=j[j.length-1].el,I=j[j.length-1].pos,S=Mo(E),C=S.minX,N=S.maxX,x=N-C;j.push({el:k,pos:I+x+h})}else{var T=Mo(k),L=T.minX;j.push({el:k,pos:L})}}}catch(qO){g.e(qO)}finally{g.f()}var w,V=Object(ke["a"])(u);try{for(V.s();!(w=V.n()).done;){var _=w.value;if(t.value.includes(_.id)){var B,D=Object(ke["a"])(j);try{for(D.s();!(B=D.n()).done;){var M=B.value;if(M.el.id===_.id)if("rotate"in _&&_.rotate){var A=Do({left:_.left,top:_.top,width:_.width,height:_.height,rotate:_.rotate}),P=A.offsetX;_.left=M.pos-P}else _.left=M.pos}}catch(qO){D.e(qO)}finally{D.f()}}}}catch(qO){V.e(qO)}finally{V.f()}e.commit(y.UPDATE_SLIDE,{elements:u}),a()},l=function(){var c=Ao(n.value),r=c.minY,l=c.maxY,i=JSON.parse(JSON.stringify(n.value)),u=JSON.parse(JSON.stringify(o.value.elements));i.sort((function(e,t){var n=Mo(e),o=n.minY,c=Mo(t),a=c.minY;return o-a}));var d,s=0,f=Object(ke["a"])(n.value);try{for(f.s();!(d=f.n()).done;){var p=d.value,b=Mo(p),m=b.minY,v=b.maxY;s+=v-m}}catch(qO){f.e(qO)}finally{f.f()}var O,h=(l-r-s)/(n.value.length-1),j=[],g=Object(ke["a"])(i);try{for(g.s();!(O=g.n()).done;){var k=O.value;if(j.length){var E=j[j.length-1].el,I=j[j.length-1].pos,S=Mo(E),C=S.minY,N=S.maxY,x=N-C;j.push({el:k,pos:I+x+h})}else{var T=Mo(k),L=T.minY;j.push({el:k,pos:L})}}}catch(qO){g.e(qO)}finally{g.f()}var w,V=Object(ke["a"])(u);try{for(V.s();!(w=V.n()).done;){var _=w.value;if(t.value.includes(_.id)){var B,D=Object(ke["a"])(j);try{for(D.s();!(B=D.n()).done;){var M=B.value;if(M.el.id===_.id)if("rotate"in _&&_.rotate){var A=Do({left:_.left,top:_.top,width:_.width,height:_.height,rotate:_.rotate}),P=A.offsetY;_.top=M.pos-P}else _.top=M.pos}}catch(qO){D.e(qO)}finally{D.f()}}}}catch(qO){V.e(qO)}finally{V.f()}e.commit(y.UPDATE_SLIDE,{elements:u}),a()};return{uniformHorizontalDisplay:r,uniformVerticalDisplay:l}},Rp=Object(j["defineComponent"])({name:"multi-position-panel",setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.getters.activeElementList})),n=Me(),o=n.combineElements,c=n.uncombineElements,a=Ap(),r=a.alignActiveElement,l=cc(),i=l.alignElementToCanvas,u=Pp(),d=u.uniformHorizontalDisplay,s=u.uniformVerticalDisplay,f=Object(j["computed"])((function(){var e=t.value[0].groupId;if(!e)return!0;var n=t.value.every((function(t){return(t.groupId&&t.groupId)===e}));return!n})),p=function(e){f.value?r(e):i(e)};return{activeElementList:t,canCombine:f,combineElements:o,uncombineElements:c,uniformHorizontalDisplay:d,uniformVerticalDisplay:s,alignElement:p}}});n("2701");Rp.render=Mp,Rp.__scopeId="data-v-aef45858";var Fp=Rp,Hp=Object(j["defineComponent"])({name:"toolbar",setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.toolbarState})),n=[{label:"样式",value:hi.EL_STYLE},{label:"位置",value:hi.EL_POSITION},{label:"动画",value:hi.EL_ANIMATION}],o=[{label:"页面样式",value:hi.SLIDE_STYLE},{label:"切换",value:hi.SLIDE_ANIMATION},{label:"动画",value:hi.EL_ANIMATION}],c=[{label:"位置",value:hi.MULTI_POSITION},{label:"样式",value:hi.EL_STYLE}],a=function(t){e.commit(y.SET_TOOLBAR_STATE,t)},r=Object(j["computed"])((function(){return e.state.activeElementIdList})),l=Object(j["computed"])((function(){return r.value.length?r.value.length>1?c:n:o}));Object(j["watch"])(l,(function(){var n=l.value.map((function(e){return e.value}));n.includes(t.value)||e.commit(y.SET_TOOLBAR_STATE,n[0])}));var i=Object(j["computed"])((function(){var e,n=(e={},Object(N["a"])(e,hi.EL_STYLE,As),Object(N["a"])(e,hi.EL_POSITION,tf),Object(N["a"])(e,hi.EL_ANIMATION,Sf),Object(N["a"])(e,hi.SLIDE_STYLE,yp),Object(N["a"])(e,hi.SLIDE_ANIMATION,Tp),Object(N["a"])(e,hi.MULTI_POSITION,Fp),e);return n[t.value]||null}));return{toolbarState:t,currentTabs:l,setToolbarState:a,currentPanelComponent:i}}});n("a5b8");Hp.render=Oi,Hp.__scopeId="data-v-f790671e";var zp=Hp,Up=Object(j["withScopeId"])("data-v-89372f4a");Object(j["pushScopeId"])("data-v-89372f4a");var Gp={class:"remark"};Object(j["popScopeId"])();var qp=Up((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",Gp,[Object(j["createVNode"])("div",{class:"resize-handler",onMousedown:t[1]||(t[1]=function(t){return e.resize(t)})},null,32),Object(j["createVNode"])("textarea",{value:e.remark,placeholder:"点击输入演讲者备注",onInput:t[2]||(t[2]=function(t){return e.handleInput(t)})},null,40,["value"])])})),Xp=Object(j["defineComponent"])({name:"remark",props:{height:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Y(),c=Object(j["computed"])((function(){return o.getters.currentSlide})),a=Object(j["computed"])((function(){var e;return(null===(e=c.value)||void 0===e?void 0:e.remark)||""})),r=function(e){var t=e.target.value;o.commit(y.UPDATE_SLIDE,{remark:t})},l=function(t){var o=!0,c=t.pageY,a=e.height;document.onmousemove=function(e){if(o){var t=e.pageY,r=t-c,l=-r+a;l<40&&(l=40),l>120&&(l=120),n("update:height",l)}},document.onmouseup=function(){o=!1,document.onmousemove=null,document.onmouseup=null}};return{remark:a,handleInput:r,resize:l}}});n("4615");Xp.render=qp,Xp.__scopeId="data-v-89372f4a";var Wp=Xp,Yp=Object(j["defineComponent"])({name:"editor",components:{EditorHeader:No,Canvas:pl,CanvasTool:ci,Thumbnails:fi,Toolbar:zp,Remark:Wp},setup:function(){var e=Object(j["ref"])(40);return Xe(),We(),{remarkHeight:e}}});n("1fecb");Yp.render=ae,Yp.__scopeId="data-v-55178b6a";var Zp=Yp,Jp=Object(j["withScopeId"])("data-v-5e85dd68");Object(j["pushScopeId"])("data-v-5e85dd68");var Kp={class:"pptist-screen"},Qp={class:"tools"};Object(j["popScopeId"])();var $p=Jp((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ScreenSlide"),l=Object(j["resolveComponent"])("SlideThumbnails"),i=Object(j["resolveComponent"])("WritingBoardTool"),u=Object(j["resolveComponent"])("IconLeftTwo"),d=Object(j["resolveComponent"])("IconRightTwo"),s=Object(j["resolveComponent"])("IconWrite"),f=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Kp,[Object(j["withDirectives"])(Object(j["createVNode"])("div",{class:"slide-list",onMousewheel:t[1]||(t[1]=function(t){return e.mousewheelListener(t)})},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slides,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["slide-item","turning-mode-".concat(t.turningMode||"slideY"),{current:n===e.slideIndex,before:ne.slideIndex,hide:(n===e.slideIndex-1||n===e.slideIndex+1)&&t.turningMode!==e.currentSlide.turningMode}],key:t.id},[Object(j["createVNode"])("div",{class:"slide-content",style:{width:e.slideWidth+"px",height:e.slideHeight+"px"}},[Object(j["createVNode"])(r,{slide:t,scale:e.scale,animationIndex:e.animationIndex},null,8,["slide","scale","animationIndex"])],4)],2)})),128))],544),[[f,e.contextmenus]]),e.slideThumbnailModelVisible?(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:0,turnSlideToIndex:e.turnSlideToIndex,onClose:t[2]||(t[2]=function(t){return e.slideThumbnailModelVisible=!1})},null,8,["turnSlideToIndex"])):Object(j["createCommentVNode"])("",!0),e.writingBoardToolVisible?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:1,onClose:t[3]||(t[3]=function(t){return e.writingBoardToolVisible=!1})})):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("div",Qp,[Object(j["createVNode"])(u,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[4]||(t[4]=function(t){return e.execPrev()})}),Object(j["createVNode"])(d,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[5]||(t[5]=function(t){return e.execNext()})}),Object(j["createVNode"])(s,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[6]||(t[6]=function(t){return e.writingBoardToolVisible=!0})})]),e.showPageNumber?(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:2,class:"page-number",onClick:t[7]||(t[7]=function(t){return e.slideThumbnailModelVisible=!0})},Object(j["toDisplayString"])(e.slideIndex+1)+" / "+Object(j["toDisplayString"])(e.slides.length),1)):Object(j["createCommentVNode"])("",!0)])})),eb=Object(j["withScopeId"])("data-v-a094625a"),tb=eb((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ScreenElement");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"screen-slide",style:{width:e.VIEWPORT_SIZE+"px",height:e.VIEWPORT_SIZE*e.viewportRatio+"px",transform:"scale(".concat(e.scale,")")}},[Object(j["createVNode"])("div",{class:"background",style:Object(R["a"])({},e.backgroundStyle)},null,4),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slide.elements,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:t.id,elementInfo:t,elementIndex:n+1,animationIndex:e.animationIndex},null,8,["elementInfo","elementIndex","animationIndex"])})),128))],4)}));function nb(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"screen-element",id:"screen-element-".concat(e.elementInfo.id),style:{zIndex:e.elementIndex,color:e.theme.fontColor,fontFamily:e.theme.fontName,visibility:e.needWaitAnimation?"hidden":"visible"}},[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo},null,8,["elementInfo"]))],12,["id"])}var ob=Object(j["withScopeId"])("data-v-1423f8c2"),cb=ob((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ElementOutline"),l=Object(j["resolveComponent"])("Chart");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"screen-element-chart",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}},[Object(j["createVNode"])("div",{class:"element-content",style:{backgroundColor:e.elementInfo.fill}},[Object(j["createVNode"])(r,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(j["createVNode"])(l,{width:e.elementInfo.width,height:e.elementInfo.height,type:e.elementInfo.chartType,data:e.elementInfo.data,options:e.elementInfo.options,themeColor:e.elementInfo.themeColor,gridColor:e.elementInfo.gridColor},null,8,["width","height","type","data","options","themeColor","gridColor"])],4)],4)})),ab=Object(j["defineComponent"])({name:"screen-element-chart",components:{ElementOutline:Dn,Chart:Ba},props:{elementInfo:{type:Object,required:!0}}});n("1539");ab.render=cb,ab.__scopeId="data-v-1423f8c2";var rb=ab,lb=Object(j["defineComponent"])({name:"screen-element",props:{elementInfo:{type:Object,required:!0},elementIndex:{type:Number,required:!0},animationIndex:{type:Number,default:-1}},setup:function(e){var t=Object(j["computed"])((function(){var t,n=(t={},Object(N["a"])(t,Xt.IMAGE,Tn),Object(N["a"])(t,Xt.TEXT,An),Object(N["a"])(t,Xt.SHAPE,qn),Object(N["a"])(t,Xt.LINE,eo),Object(N["a"])(t,Xt.CHART,rb),Object(N["a"])(t,Xt.TABLE,jo),t);return n[e.elementInfo.type]||null})),n=Y(),o=Object(j["computed"])((function(){return n.state.theme})),c=Object(j["computed"])((function(){return n.getters.currentSlide})),a=Object(j["computed"])((function(){var t=c.value.animations||[],n=t.findIndex((function(t){return t.elId===e.elementInfo.id}));return-1!==n&&n>=e.animationIndex}));return{currentElementComponent:t,needWaitAnimation:a,theme:o}}});lb.render=nb;var ib=lb,ub=Object(j["defineComponent"])({name:"screen-slide",components:{ScreenElement:ib},props:{slide:{type:Object,required:!0},scale:{type:Number,required:!0},animationIndex:{type:Number,default:-1}},setup:function(e){var t=Y(),n=Object(j["computed"])((function(){return t.state.viewportRatio})),o=Object(j["computed"])((function(){return e.slide.background})),c=Qt(o),a=c.backgroundStyle;return{backgroundStyle:a,VIEWPORT_SIZE:Le,viewportRatio:n}}});n("7599");ub.render=tb,ub.__scopeId="data-v-a094625a";var db=ub,sb=Object(j["withScopeId"])("data-v-9174b3bc");Object(j["pushScopeId"])("data-v-9174b3bc");var fb={class:"slide-thumbnails"},pb={class:"return-button"},bb={class:"slide-thumbnails-content"};Object(j["popScopeId"])();var mb=sb((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconArrowCircleLeft"),l=Object(j["resolveComponent"])("ThumbnailSlide");return Object(j["openBlock"])(),Object(j["createBlock"])("div",fb,[Object(j["createVNode"])("div",pb,[Object(j["createVNode"])(r,{class:"icon",onClick:t[1]||(t[1]=function(t){return e.close()})})]),Object(j["createVNode"])("div",bb,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slides,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["thumbnail",{active:n===e.slideIndex}],key:t.id,onClick:function(t){return e.turnSlideToIndex(n)}},[Object(j["createVNode"])(l,{slide:t,size:150},null,8,["slide"])],10,["onClick"])})),128))])])})),vb=Object(j["defineComponent"])({name:"slide-thumbnails",components:{ThumbnailSlide:Eo},props:{turnSlideToIndex:{type:Function}},setup:function(e,t){var n=t.emit,o=Y(),c=Object(j["computed"])((function(){return o.state.slides})),a=Object(j["computed"])((function(){return o.state.slideIndex})),r=function(){return n("close")};return{slides:c,slideIndex:a,close:r}}});n("fe34");vb.render=mb,vb.__scopeId="data-v-9174b3bc";var Ob=vb,hb=Object(j["withScopeId"])("data-v-f34025bc");Object(j["pushScopeId"])("data-v-f34025bc");var jb={class:"writing-board-tool"},gb={class:"tools"},yb={class:"colors"};Object(j["popScopeId"])();var kb=hb((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("WritingBoard"),l=Object(j["resolveComponent"])("IconWrite"),i=Object(j["resolveComponent"])("Tooltip"),u=Object(j["resolveComponent"])("IconErase"),d=Object(j["resolveComponent"])("IconClear"),s=Object(j["resolveComponent"])("IconClose");return Object(j["openBlock"])(),Object(j["createBlock"])("div",jb,[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Teleport"],{to:"body"},[Object(j["createVNode"])(r,{ref:"writingBoardRef",color:e.writingBoardColor,model:e.writingBoardModel},null,8,["color","model"])])),Object(j["createVNode"])("div",gb,[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"画笔"},{default:hb((function(){return[Object(j["createVNode"])("div",{class:["btn",{active:"pen"===e.writingBoardModel}],onClick:t[1]||(t[1]=function(t){return e.changePen()})},[Object(j["createVNode"])(l,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"橡皮擦"},{default:hb((function(){return[Object(j["createVNode"])("div",{class:["btn",{active:"eraser"===e.writingBoardModel}],onClick:t[2]||(t[2]=function(t){return e.changeEraser()})},[Object(j["createVNode"])(u,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"清除墨迹"},{default:hb((function(){return[Object(j["createVNode"])("div",{class:"btn",onClick:t[3]||(t[3]=function(t){return e.clearCanvas()})},[Object(j["createVNode"])(d,{class:"icon"})])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])("div",yb,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.writingBoardColors,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["color",{active:t===e.writingBoardColor}],key:t,style:{backgroundColor:t},onClick:function(n){return e.changeColor(t)}},null,14,["onClick"])})),128))]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"关闭画笔"},{default:hb((function(){return[Object(j["createVNode"])("div",{class:"btn",onClick:t[4]||(t[4]=function(t){return e.closeWritingBoard()})},[Object(j["createVNode"])(s,{class:"icon"})])]})),_:1},8,["mouseEnterDelay"])])])})),Eb=Object(j["withScopeId"])("data-v-4ddc4b2c");Object(j["pushScopeId"])("data-v-4ddc4b2c");var Ib={class:"writing-board",ref:"writingBoardRef"};Object(j["popScopeId"])();var Sb=Eb((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconWrite");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Ib,[Object(j["createVNode"])("canvas",{class:"canvas",ref:"canvasRef",onMousedown:t[1]||(t[1]=function(t){return e.handleMousedown(t)}),onMousemove:t[2]||(t[2]=function(t){return e.handleMousemove(t)}),onMouseup:t[3]||(t[3]=function(t){return e.handleMouseup()}),onMouseleave:t[4]||(t[4]=function(t){e.handleMouseup(),e.mouseInCanvas=!1}),onMouseenter:t[5]||(t[5]=function(t){return e.mouseInCanvas=!0})},null,544),e.mouseInCanvas&&"pen"===e.model?(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:0,class:"pen",style:{left:e.mouse.x-e.penSize/2+"px",top:e.mouse.y-36+e.penSize/2+"px",color:e.color}},[Object(j["createVNode"])(r,{class:"icon",size:"36"})],4)):Object(j["createCommentVNode"])("",!0),e.mouseInCanvas&&"eraser"===e.model?(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:1,class:"eraser",style:{left:e.mouse.x-e.rubberSize/2+"px",top:e.mouse.y-e.rubberSize/2+"px",width:e.rubberSize+"px",height:e.rubberSize+"px"}},null,4)):Object(j["createCommentVNode"])("",!0)],512)})),Cb=6,Nb=80,xb=Object(j["defineComponent"])({name:"writing-board",props:{color:{type:String,default:"#ffcc00"},model:{type:String,default:"pen"}},setup:function(e){var t=null,n=Object(j["ref"])(),o=Object(j["ref"])(),c={x:0,y:0},a=!1,r=0,l=-1,i=Object(j["reactive"])({x:0,y:0}),u=function(e){i.x=e.pageX,i.y=e.pageY},d=Object(j["ref"])(!1),s=function(){o.value&&n.value&&(t=o.value.getContext("2d"),t&&(o.value.width=n.value.clientWidth,o.value.height=n.value.clientHeight,o.value.style.width=n.value.clientWidth+"px",o.value.style.height=n.value.clientHeight+"px",t.lineCap="round",t.lineJoin="round"))};Object(j["onMounted"])(s);var f=function(n,o,a){if(t){var r=c.x,l=c.y;t.lineWidth=a,t.strokeStyle=e.color,t.beginPath(),t.moveTo(r,l),t.lineTo(n,o),t.stroke(),t.closePath()}},p=function(e,n){var a,r,l,i;if(t&&o.value){var u=c.x,d=c.y,s=Nb/2,f=s*Math.sin(Math.atan((n-d)/(e-u))),p=s*Math.cos(Math.atan((n-d)/(e-u))),b=[u+f,d-p],m=[u-f,d+p],v=[e+f,n-p],O=[e-f,n+p];t.save(),t.beginPath(),t.arc(e,n,s,0,2*Math.PI),t.clip(),t.clearRect(0,0,o.value.width,o.value.height),t.restore(),t.save(),t.beginPath(),(a=t).moveTo.apply(a,b),(r=t).lineTo.apply(r,v),(l=t).lineTo.apply(l,O),(i=t).lineTo.apply(i,m),t.closePath(),t.clip(),t.clearRect(0,0,o.value.width,o.value.height),t.restore()}},b=function(e){a=!0,c={x:e.offsetX,y:e.offsetY},r=(new Date).getTime()},m=function(e,t){var n=c.x,o=c.y;return Math.sqrt((e-n)*(e-n)+(t-o)*(t-o))},v=function(e,t){var n,o=10,c=.1,a=Cb,r=3,i=e/t;return n=i<=c?a:i>=o?r:a-i/o*a,-1===l?n:1*n/3+2*l/3},O=function(t){if(u(t),a){var n=(new Date).getTime();if("pen"===e.model){var o=m(t.offsetX,t.offsetY),i=n-r,d=v(o,i);f(t.offsetX,t.offsetY,d),l=d}else p(t.offsetX,t.offsetY);c={x:t.offsetX,y:t.offsetY},r=(new Date).getTime()}},h=function(){a&&(a=!1)},g=function(){t&&o.value&&t.clearRect(0,0,o.value.width,o.value.height)};return{mouse:i,mouseInCanvas:d,penSize:Cb,rubberSize:Nb,writingBoardRef:n,canvasRef:o,handleMousedown:b,handleMousemove:O,handleMouseup:h,clearCanvas:g}}});n("6c26");xb.render=Sb,xb.__scopeId="data-v-4ddc4b2c";var Tb=xb,Lb=["#000000","#ffffff","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],wb=Object(j["defineComponent"])({name:"writing-board-tool",components:{WritingBoard:Tb},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(),c=Object(j["ref"])("#e2534d"),a=Object(j["ref"])("pen"),r=function(){a.value="pen"},l=function(){a.value="eraser"},i=function(){o.value.clearCanvas()},u=function(e){"pen"!==a.value&&(a.value="pen"),c.value=e},d=function(){n("close")};return{writingBoardRef:o,writingBoardColors:Lb,writingBoardColor:c,writingBoardModel:a,changePen:r,changeEraser:l,clearCanvas:i,changeColor:u,closeWritingBoard:d}}});n("5f39");wb.render=kb,wb.__scopeId="data-v-f34025bc";var Vb=wb,_b=Object(j["defineComponent"])({name:"screen",components:{ScreenSlide:db,SlideThumbnails:Ob,WritingBoardTool:Vb},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.slides})),n=Object(j["computed"])((function(){return e.state.slideIndex})),o=Object(j["computed"])((function(){return e.state.viewportRatio})),c=Object(j["computed"])((function(){return e.getters.currentSlide})),a=Object(j["ref"])(0),r=Object(j["ref"])(0),l=Object(j["computed"])((function(){return a.value/Le})),i=Object(j["ref"])(!1),u=Object(j["ref"])(!1),d=Object(j["ref"])(!1),s=function(){var e,t,n=document.body.clientWidth,c=document.body.clientHeight;c/n===o.value?(e=n,t=c):c/n>o.value?(e=n,t=n*o.value):(e=c/o.value,t=c),a.value=e,r.value=t},f=Ge(),p=f.exitScreening,b=function(){s(),Ue()||p()};Object(j["onMounted"])((function(){window.addEventListener("resize",b)})),Object(j["onUnmounted"])((function(){window.removeEventListener("resize",b)}));var m=Object(j["computed"])((function(){return c.value.animations||[]})),v=Object(j["ref"])(0),O=function(){var e="animate__",t=m.value[v.value];v.value+=1;var n=document.querySelector("#screen-element-".concat(t.elId," [class^=base-element-]"));if(n){var o="".concat(e).concat(t.type);n.classList.add("".concat(e,"animated"),o);var c=function(){n.classList.remove("".concat(e,"animated"),o)};n.addEventListener("animationend",c,{once:!0})}},h=Object(j["ref"])(0),g=function(){h.value&&(clearInterval(h.value),h.value=0)};Object(j["onUnmounted"])(g);var k=function(){if(m.value.length&&v.value>0)v.value-=1;else if(n.value>0){e.commit(y.UPDATE_SLIDE_INDEX,n.value-1);var t=m.value?m.value.length:0;v.value=t}else le["a"].success("已经是第一页了")},E=function(){m.value.length&&v.value0&&E()}),500,{leading:!0,trailing:!1}),C=function(e){var t=e.key.toUpperCase();t===ce.UP||t===ce.LEFT?k():t!==ce.DOWN&&t!==ce.RIGHT&&t!==ce.SPACE&&t!==ce.ENTER||E()};Object(j["onMounted"])((function(){document.addEventListener("keydown",C)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",C)}));var N=function(){e.commit(y.UPDATE_SLIDE_INDEX,n.value-1),v.value=0},x=function(){e.commit(y.UPDATE_SLIDE_INDEX,n.value+1),v.value=0},T=function(t){u.value=!1,e.commit(y.UPDATE_SLIDE_INDEX,t),v.value=0},L=function(){return[{text:"上一页",subText:"↑ ←",disable:n.value<=0,handler:function(){return N()}},{text:"下一页",subText:"↓ →",disable:n.value>=t.value.length-1,handler:function(){return x()}},{text:"第一页",disable:0===n.value,handler:function(){return T(0)}},{text:"最后一页",disable:n.value===t.value.length-1,handler:function(){return T(t.value.length-1)}},{divider:!0},{text:"显示页码",subText:i.value?"√":"",handler:function(){return i.value=!i.value}},{text:"查看所有幻灯片",handler:function(){return u.value=!0}},{text:"画笔",handler:function(){return d.value=!0}},{divider:!0},{text:h.value?"取消自动放映":"自动放映",handler:h.value?g:I},{text:"结束放映",subText:"ESC",handler:p}]};return Object(j["provide"])("slideScale",l),{slides:t,slideIndex:n,currentSlide:c,slideWidth:a,slideHeight:r,scale:l,mousewheelListener:S,animationIndex:v,contextmenus:L,execPrev:k,execNext:E,slideThumbnailModelVisible:u,turnSlideToIndex:T,writingBoardToolVisible:d,showPageNumber:i}}});n("9b75");_b.render=$p,_b.__scopeId="data-v-5e85dd68";var Bb=_b,Db=Object(j["defineComponent"])({name:"app",components:{Editor:Zp,Screen:Bb},setup:function(){var e=Y(),t=Object(j["computed"])((function(){return e.state.screening}));return window.onbeforeunload=function(){return!1},Object(j["onMounted"])((function(){e.commit(y.SET_AVAILABLE_FONTS),e.dispatch(k.INIT_SNAPSHOT_DATABASE)})),{screening:t}}});n("0679");Db.render=g;var Mb=Db;n("793f"),n("41ed"),n("5952"),n("c860"),n("ae3f"),n("8c56"),n("77ed");function Ab(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("MenuContent");return Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,[Object(j["createVNode"])("div",{class:"mask",onContextmenu:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.removeContextmenu()}),["prevent"])),onMousedown:t[2]||(t[2]=function(t){return e.removeContextmenu()})},null,32),Object(j["createVNode"])("div",{class:"contextmenu",style:{left:e.style.left+"px",top:e.style.top+"px"},onContextmenu:t[3]||(t[3]=Object(j["withModifiers"])((function(){}),["prevent"]))},[Object(j["createVNode"])(r,{menus:e.menus,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])],36)],64)}var Pb=Object(j["withScopeId"])("data-v-5490894e");Object(j["pushScopeId"])("data-v-5490894e");var Rb={class:"menu-content"},Fb={class:"text"},Hb={key:0,class:"sub-text"};Object(j["popScopeId"])();var zb=Pb((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("menu-content",!0);return Object(j["openBlock"])(),Object(j["createBlock"])("ul",Rb,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.menus,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:t.text||n},[t.hide?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])("li",{key:0,class:["menu-item",{divider:t.divider,disable:t.disable}],onClick:Object(j["withModifiers"])((function(n){return e.handleClickMenuItem(t)}),["stop"])},[t.divider?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:0,class:["menu-item-content",{"has-children":t.children,"has-handler":t.handler}]},[Object(j["createVNode"])("span",Fb,Object(j["toDisplayString"])(t.text),1),t.subText&&!t.children?(Object(j["openBlock"])(),Object(j["createBlock"])("span",Hb,Object(j["toDisplayString"])(t.subText),1)):Object(j["createCommentVNode"])("",!0),t.children&&t.children.length?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,class:"sub-menu",menus:t.children,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])):Object(j["createCommentVNode"])("",!0)],2))],10,["onClick"]))],64)})),128))])})),Ub=Object(j["defineComponent"])({name:"menu-content",props:{menus:{type:Array,required:!0},handleClickMenuItem:{type:Function,required:!0}}});n("823f");Ub.render=zb,Ub.__scopeId="data-v-5490894e";var Gb=Ub,qb=Object(j["defineComponent"])({name:"contextmenu",components:{MenuContent:Gb},props:{axis:{type:Object,required:!0},el:{type:Object,required:!0},menus:{type:Array,required:!0},removeContextmenu:{type:Function,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){var t=170,n=30,o=11,c=5,a=e.axis,r=a.x,l=a.y,i=e.menus.filter((function(e){return!(e.divider||e.hide)})).length,u=e.menus.filter((function(e){return e.divider})).length,d=t,s=i*n+u*o+2*c,f=document.body.clientWidth,p=document.body.clientHeight;return{left:f<=r+d?r-d:r,top:p<=l+s?l-s:l}})),n=function(t){t.disable||t.children&&!t.handler||(t.handler&&t.handler(e.el),e.removeContextmenu())};return{style:t,handleClickMenuItem:n}}});n("b8378");qb.render=Ab;var Xb=qb,Wb="CTX_CONTEXTMENU_HANDLER",Yb=function(e,t,n){t.stopPropagation(),t.preventDefault();var o=n.value(e);if(o){var c=null,a=function t(){c&&(document.body.removeChild(c),c=null),e.classList.remove("contextmenu-active"),document.body.removeEventListener("scroll",t),window.removeEventListener("resize",t)},r={axis:{x:t.x,y:t.y},el:e,menus:o,removeContextmenu:a};c=document.createElement("div");var l=Object(j["createVNode"])(Xb,r,null);Object(j["render"])(l,c),document.body.appendChild(c),e.classList.add("contextmenu-active"),document.body.addEventListener("scroll",a),window.addEventListener("resize",a)}},Zb={mounted:function(e,t){e[Wb]=function(n){return Yb(e,n,t)},e.addEventListener("contextmenu",e[Wb])},unmounted:function(e){e&&e[Wb]&&(e.removeEventListener("contextmenu",e[Wb]),delete e[Wb])}},Jb=Zb,Kb="CTX_CLICK_OUTSIDE_HANDLER",Qb=function(e,t,n){var o=n.value,c=t.composedPath(),a=c?c.indexOf(e)<0:!e.contains(t.target);a&&o(t)},$b={mounted:function(e,t){e[Kb]=function(n){return Qb(e,n,t)},setTimeout((function(){document.addEventListener("click",e[Kb])}),0)},unmounted:function(e){e[Kb]&&(document.removeEventListener("click",e[Kb]),delete e[Kb])}},em=$b,tm=n("84e7b"),nm=n("1e27"),om=n("8845"),cm=n("a3ef"),am=n("8331"),rm=n("4040"),lm=n("f745"),im=n("2e2d"),um=n("6010"),dm=n("1fcb"),sm=n("500e"),fm=n("0996"),pm=n("1646"),bm=n("fbe7"),mm=n("b8af"),vm=n("bf2c"),Om=n("fd52"),hm=n("f259"),jm=n("1b1c"),gm=n("bde2"),ym=n("23fa"),km=n("5a28"),Em=n("c53e"),Im=n("8377"),Sm=n("246f"),Cm=n("33a2"),Nm=n("fdbcb"),xm=n("ccc7"),Tm=n("e3b9"),Lm=n("3a3e"),wm=n("eac59"),Vm=n("694b"),_m=n("e9ec"),Bm=n("ea01"),Dm=n("74f3"),Mm=n("4bad"),Am=n("e7f4"),Pm=n("eb50"),Rm=n("0be2"),Fm=n("a90c"),Hm=n("c90a"),zm=n("d41d6"),Um=n("2c06"),Gm=n("a5dc"),qm=n("8678"),Xm=n("d7fb"),Wm=n("ce42"),Ym=n("7abc"),Zm=n("5b20"),Jm=n("69de"),Km=n("d0c6"),Qm=n("dcc2"),$m=n("f1d2"),ev=n("d16b"),tv=n("a5f1"),nv=n("df0d"),ov=n("70f2"),cv=n("b7c8"),av=n("f99d"),rv=n("40bb"),lv=n("ae33"),iv=n("8c1a"),uv=n("b7b3"),dv=n("96be"),sv=n("5a69"),fv=n("f9e5"),pv=n("bbce"),bv=n("77ad"),mv=n("46cd"),vv=n("3ee3"),Ov=n("dde4"),hv=n("cead"),jv=n("fa00"),gv=n("e970"),yv=n("f3c2"),kv=n("7312"),Ev=n("5294b"),Iv=n("9fbc"),Sv={install:function(e){e.component("IconFontSize",Iv["a"]),e.component("IconPicture",Ev["a"]),e.component("IconGraphicDesign",kv["a"]),e.component("IconConnection",yv["a"]),e.component("IconChartProportion",gv["a"]),e.component("IconInsertTable",jv["a"]),e.component("IconLock",hv["a"]),e.component("IconUnlock",Ov["a"]),e.component("IconFullScreen",vv["a"]),e.component("IconBack",mv["a"]),e.component("IconNext",bv["a"]),e.component("IconAlignTop",pv["a"]),e.component("IconAlignLeft",fv["a"]),e.component("IconAlignRight",sv["a"]),e.component("IconAlignBottom",dv["a"]),e.component("IconAlignVertically",uv["a"]),e.component("IconAlignHorizontally",iv["a"]),e.component("IconBringToFront",lv["a"]),e.component("IconSentToBack",rv["a"]),e.component("IconBringToFrontOne",av["a"]),e.component("IconSendToBack",cv["a"]),e.component("IconGroup",ov["a"]),e.component("IconUngroup",nv["a"]),e.component("IconFill",tv["a"]),e.component("IconBackgroundColor",ev["a"]),e.component("IconPlatte",$m["a"]),e.component("IconTailoring",Qm["a"]),e.component("IconColorFilter",Km["a"]),e.component("IconFlipVertically",Jm["a"]),e.component("IconFlipHorizontally",Zm["a"]),e.component("IconText",Ym["a"]),e.component("IconAddText",Wm["a"]),e.component("IconAlignTextLeft",Xm["a"]),e.component("IconAlignTextRight",qm["a"]),e.component("IconAlignTextCenter",Gm["a"]),e.component("IconRowHeight",Um["a"]),e.component("IconFullwidth",zm["a"]),e.component("IconCode",Hm["a"]),e.component("IconTextBold",Fm["a"]),e.component("IconTextItalic",Rm["a"]),e.component("IconTextUnderline",Pm["a"]),e.component("IconStrikethrough",Am["a"]),e.component("IconQuote",Mm["a"]),e.component("IconList",Dm["a"]),e.component("IconOrderedList",Bm["a"]),e.component("IconUpOne",_m["a"]),e.component("IconDownOne",Vm["a"]),e.component("IconFormat",wm["a"]),e.component("IconDown",Lm["a"]),e.component("IconLeftTwo",Tm["a"]),e.component("IconRightTwo",xm["a"]),e.component("IconPlus",Nm["a"]),e.component("IconMinus",Cm["a"]),e.component("IconClose",Sm["a"]),e.component("IconCloseSmall",Im["a"]),e.component("IconChartHistogram",Em["a"]),e.component("IconChartHistogramOne",km["a"]),e.component("IconChartLine",ym["a"]),e.component("IconChartLineArea",gm["a"]),e.component("IconChartScatter",jm["a"]),e.component("IconChartPie",hm["a"]),e.component("IconChartRing",Om["a"]),e.component("IconPlayOne",vm["a"]),e.component("IconPpt",mm["a"]),e.component("IconHelpcenter",bm["a"]),e.component("IconGithub",pm["a"]),e.component("IconWrite",fm["a"]),e.component("IconErase",sm["a"]),e.component("IconEffects",dm["a"]),e.component("IconRotate",um["a"]),e.component("IconEdit",im["a"]),e.component("IconUndo",lm["a"]),e.component("IconTransform",rm["a"]),e.component("IconClick",am["a"]),e.component("IconTheme",cm["a"]),e.component("IconArrowCircleLeft",om["a"]),e.component("IconLogout",nm["a"]),e.component("IconClear",tm["a"])}},Cv=Object(j["withScopeId"])("data-v-bf80565c"),Nv=Cv((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"file-input",onClick:t[2]||(t[2]=function(t){return e.handleClick()})},[Object(j["renderSlot"])(e.$slots,"default",{},void 0,!0),Object(j["createVNode"])("input",{class:"input",type:"file",name:"upload",ref:"inputRef",accept:e.accept,onChange:t[1]||(t[1]=function(t){return e.handleChange(t)})},null,40,["accept"])])})),xv=Object(j["defineComponent"])({name:"file-input",props:{accept:{type:String,default:"image/*"}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(),c=function(){o.value&&(o.value.value="",o.value.click())},a=function(e){var t=e.target.files;t&&n("change",t)};return{handleClick:c,handleChange:a,inputRef:o}}});n("e3f5");xv.render=Nv,xv.__scopeId="data-v-bf80565c";var Tv=xv,Lv={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1"};function wv(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("svg",Lv,[Object(j["renderSlot"])(e.$slots,"default")])}var Vv={name:"svg-wrapper"};Vv.render=wv;var _v=Vv,Bv=Object(j["withScopeId"])("data-v-7cae2b90"),Dv=Bv((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("button",{class:["checkbox-button",{checked:n.checked}]},[Object(j["renderSlot"])(e.$slots,"default",{},void 0,!0)],2)})),Mv={name:"checkbox-button",props:{checked:{type:Boolean,default:!1}}};n("782e");Mv.render=Dv,Mv.__scopeId="data-v-7cae2b90";var Av=Mv,Pv=Object(j["withScopeId"])("data-v-7dafd0a9");Object(j["pushScopeId"])("data-v-7dafd0a9");var Rv={class:"checkbox-button-group"};Object(j["popScopeId"])();var Fv=Pv((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",Rv,[Object(j["renderSlot"])(e.$slots,"default",{},void 0,!0)])})),Hv={name:"checkbox-button-group"};n("69d58");Hv.render=Fv,Hv.__scopeId="data-v-7dafd0a9";var zv=Hv,Uv=Object(j["withScopeId"])("data-v-20575236");Object(j["pushScopeId"])("data-v-20575236");var Gv={class:"color-picker"},qv={class:"picker-saturation-wrap"},Xv={class:"picker-controls"},Wv={class:"picker-color-wrap"},Yv={class:"picker-sliders"},Zv={class:"picker-hue-wrap"},Jv={class:"picker-alpha-wrap"},Kv={class:"picker-field"},Qv={class:"picker-presets"},$v={class:"picker-gradient-presets"},eO={class:"picker-presets"},tO={key:0,class:"recent-colors-title"},nO={class:"recent-colors"};Object(j["popScopeId"])();var oO=Uv((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Saturation"),l=Object(j["resolveComponent"])("Checkboard"),i=Object(j["resolveComponent"])("Hue"),u=Object(j["resolveComponent"])("Alpha"),d=Object(j["resolveComponent"])("EditableInput");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Gv,[Object(j["createVNode"])("div",qv,[Object(j["createVNode"])(r,{value:e.color,hue:e.hue,onColorChange:t[1]||(t[1]=function(t){return e.changeColor(t)})},null,8,["value","hue"])]),Object(j["createVNode"])("div",Xv,[Object(j["createVNode"])("div",Wv,[Object(j["createVNode"])("div",{class:"picker-current-color",style:{background:e.currentColor}},null,4),Object(j["createVNode"])(l)]),Object(j["createVNode"])("div",Yv,[Object(j["createVNode"])("div",Zv,[Object(j["createVNode"])(i,{value:e.color,hue:e.hue,onColorChange:t[2]||(t[2]=function(t){return e.changeColor(t)})},null,8,["value","hue"])]),Object(j["createVNode"])("div",Jv,[Object(j["createVNode"])(u,{value:e.color,onColorChange:t[3]||(t[3]=function(t){return e.changeColor(t)})},null,8,["value"])])])]),Object(j["createVNode"])("div",Kv,[Object(j["createVNode"])(d,{value:e.color,onColorChange:t[4]||(t[4]=function(t){return e.changeColor(t)})},null,8,["value"])]),Object(j["createVNode"])("div",Qv,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.themeColors,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"picker-presets-color",key:t,style:{background:t},onClick:function(n){return e.selectPresetColor(t)}},null,12,["onClick"])})),128))]),Object(j["createVNode"])("div",$v,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.presetColors,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"picker-gradient-col",key:n},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(t,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"picker-gradient-color",key:t,style:{background:t},onClick:function(n){return e.selectPresetColor(t)}},null,12,["onClick"])})),128))])})),128))]),Object(j["createVNode"])("div",eO,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.standardColors,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:t,class:"picker-presets-color",style:{background:t},onClick:function(n){return e.selectPresetColor(t)}},null,12,["onClick"])})),128))]),e.recentColors.length?(Object(j["openBlock"])(),Object(j["createBlock"])("div",tO,"最近使用:")):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("div",nO,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.recentColors,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:t,class:"picker-presets-color",style:{background:t},onClick:function(n){return e.selectPresetColor(t)}},null,12,["onClick"])})),128))])])})),cO=Object(j["withScopeId"])("data-v-ecf7d10e");Object(j["pushScopeId"])("data-v-ecf7d10e");var aO={class:"alpha"},rO={class:"alpha-checkboard-wrap"},lO=Object(j["createVNode"])("div",{class:"alpha-picker"},null,-1);Object(j["popScopeId"])();var iO=cO((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Checkboard");return Object(j["openBlock"])(),Object(j["createBlock"])("div",aO,[Object(j["createVNode"])("div",rO,[Object(j["createVNode"])(r)]),Object(j["createVNode"])("div",{class:"alpha-gradient",style:{background:e.gradientColor}},null,4),Object(j["createVNode"])("div",{class:"alpha-container",ref:"alphaRef",onMousedown:t[1]||(t[1]=function(t){return e.handleMouseDown(t)})},[Object(j["createVNode"])("div",{class:"alpha-pointer",style:{left:100*e.color.a+"%"}},[lO],4)],544)])})),uO=Object(j["withScopeId"])("data-v-e9a0ac98"),dO=uO((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"checkerboard",style:e.bgStyle},null,4)})),sO={},fO=function(e,t,n){var o=document.createElement("canvas");o.width=o.height=2*n;var c=o.getContext("2d");return c?(c.fillStyle=e,c.fillRect(0,0,o.width,o.height),c.fillStyle=t,c.fillRect(0,0,n,n),c.translate(n,n),c.fillRect(0,0,n,n),o.toDataURL()):null},pO=function(e,t,n){var o=e+","+t+","+n;if(sO[o])return sO[o];var c=fO(e,t,n);return sO[o]=c,c},bO=Object(j["defineComponent"])({name:"checkboard",props:{size:{type:Number,default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},setup:function(e){var t=Object(j["computed"])((function(){var t=pO(e.white,e.grey,e.size);return{backgroundImage:"url(".concat(t,")")}}));return{bgStyle:t}}});n("62d8");bO.render=dO,bO.__scopeId="data-v-e9a0ac98";var mO=bO,vO=Object(j["defineComponent"])({name:"alpha",components:{Checkboard:mO},props:{value:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["computed"])((function(){return e.value})),c=Object(j["computed"])((function(){var e=[o.value.r,o.value.g,o.value.b].join(",");return"linear-gradient(to right, rgba(".concat(e,", 0) 0%, rgba(").concat(e,", 1) 100%)")})),a=Object(j["ref"])(),r=function(e){if(e.preventDefault(),a.value){var t,c=a.value.clientWidth,r=a.value.getBoundingClientRect().left+window.pageXOffset,l=e.pageX-r;t=l<0?0:l>c?1:Math.round(100*l/c)/100,o.value.a!==t&&n("colorChange",{r:o.value.r,g:o.value.g,b:o.value.b,a:t})}},l=function e(){window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",e)},i=function(e){r(e),window.addEventListener("mousemove",r),window.addEventListener("mouseup",l)};return Object(j["onUnmounted"])(l),{alphaRef:a,gradientColor:c,handleMouseDown:i,color:o}}});n("5c5e");vO.render=iO,vO.__scopeId="data-v-ecf7d10e";var OO=vO,hO=Object(j["withScopeId"])("data-v-7b983451");Object(j["pushScopeId"])("data-v-7b983451");var jO={class:"hue"},gO=Object(j["createVNode"])("div",{class:"hue-picker"},null,-1);Object(j["popScopeId"])();var yO=hO((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",jO,[Object(j["createVNode"])("div",{class:"hue-container",ref:"hueRef",onMousedown:t[1]||(t[1]=function(t){return e.handleMouseDown(t)})},[Object(j["createVNode"])("div",{class:"hue-pointer",style:{left:e.pointerLeft}},[gO],4)],544)])})),kO=Object(j["defineComponent"])({name:"hue",props:{value:{type:Object,required:!0},hue:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(0),c=Object(j["ref"])(""),a=Object(j["computed"])((function(){var t=bo()(e.value).toHsl();return 0===t.s&&(t.h=e.hue),t})),r=Object(j["computed"])((function(){return 0===a.value.h&&"right"===c.value?"100%":100*a.value.h/360+"%"}));Object(j["watch"])((function(){return e.value}),(function(){var t=bo()(e.value).toHsl(),n=0===t.s?e.hue:t.h;0!==n&&n-o.value>0&&(c.value="right"),0!==n&&n-o.value<0&&(c.value="left"),o.value=n}));var l=Object(j["ref"])(),i=function(e){if(e.preventDefault(),l.value){var t,o,c=l.value.clientWidth,r=l.value.getBoundingClientRect().left+window.pageXOffset,i=e.pageX-r;i<0?t=0:i>c?t=360:(o=100*i/c,t=360*o/100),a.value.h!==t&&n("colorChange",{h:t,l:a.value.l,s:a.value.s,a:a.value.a})}},u=function e(){window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",e)},d=function(e){i(e),window.addEventListener("mousemove",i),window.addEventListener("mouseup",u)};return Object(j["onUnmounted"])(u),{hueRef:l,handleMouseDown:d,pointerLeft:r}}});n("a025");kO.render=yO,kO.__scopeId="data-v-7b983451";var EO=kO,IO=Object(j["withScopeId"])("data-v-5310dbb4");Object(j["pushScopeId"])("data-v-5310dbb4");var SO=Object(j["createVNode"])("div",{class:"saturation-white"},null,-1),CO=Object(j["createVNode"])("div",{class:"saturation-black"},null,-1),NO=Object(j["createVNode"])("div",{class:"saturation-circle"},null,-1);Object(j["popScopeId"])();var xO=IO((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"saturation",ref:"saturationRef",style:{background:e.bgColor},onMousedown:t[1]||(t[1]=function(t){return e.handleMouseDown(t)})},[SO,CO,Object(j["createVNode"])("div",{class:"saturation-pointer",style:{top:e.pointerTop,left:e.pointerLeft}},[NO],4)],36)})),TO=n("f678"),LO=n.n(TO),wO=Object(j["defineComponent"])({name:"saturation",props:{value:{type:Object,required:!0},hue:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["computed"])((function(){var t=bo()(e.value).toHsv();return 0===t.s&&(t.h=e.hue),t})),c=Object(j["computed"])((function(){return"hsl(".concat(o.value.h,", 100%, 50%)")})),a=Object(j["computed"])((function(){return-100*o.value.v+1+100+"%"})),r=Object(j["computed"])((function(){return 100*o.value.s+"%"})),l=Ce()((function(e){n("colorChange",e)}),20,{leading:!0,trailing:!1}),i=Object(j["ref"])(),u=function(e){if(e.preventDefault(),i.value){var t=i.value.clientWidth,n=i.value.clientHeight,c=i.value.getBoundingClientRect().left+window.pageXOffset,a=i.value.getBoundingClientRect().top+window.pageYOffset,r=LO()(e.pageX-c,0,t),u=LO()(e.pageY-a,0,n),d=r/t,s=LO()(-u/n+1,0,1);l({h:o.value.h,s:d,v:s,a:o.value.a})}},d=function e(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",e)},s=function(e){u(e),window.addEventListener("mousemove",u),window.addEventListener("mouseup",d)};return Object(j["onUnmounted"])(d),{saturationRef:i,bgColor:c,handleMouseDown:s,pointerTop:a,pointerLeft:r}}});n("5070");wO.render=xO,wO.__scopeId="data-v-5310dbb4";var VO=wO,_O=Object(j["withScopeId"])("data-v-0311fdee");Object(j["pushScopeId"])("data-v-0311fdee");var BO={class:"editable-input"};Object(j["popScopeId"])();var DO=_O((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",BO,[Object(j["createVNode"])("input",{class:"input-content",value:e.val,onInput:t[1]||(t[1]=function(t){return e.handleInput(t)})},null,40,["value"])])})),MO=Object(j["defineComponent"])({name:"editable-input",props:{value:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["computed"])((function(){var t="";return t=e.value.a<1?bo()(e.value).toHex8String().toUpperCase():bo()(e.value).toHexString().toUpperCase(),t.replace("#","")})),c=function(e){var t=e.target.value;t.length>=6&&n("colorChange",bo()(t).toRgb())};return{val:o,handleInput:c}}});n("3706");MO.render=DO,MO.__scopeId="data-v-0311fdee";var AO=MO,PO="RECENT_COLORS",RO=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],FO=function(e,t,n){for(var o=bo()(e).toRgb(),c=bo()(t).toRgb(),a=(c.r-o.r)/n,r=(c.g-o.g)/n,l=(c.b-o.b)/n,i=[],u=0;ut&&(c.value=c.value.slice(0,t))}}),300,{trailing:!0});Object(j["onMounted"])((function(){var e=localStorage.getItem(PO);e&&(c.value=JSON.parse(e))})),Object(j["watch"])(c,(function(){var e=JSON.stringify(c.value);localStorage.setItem(PO,e)}));var f=function(e){"h"in e?(o.value=e.h,a.value=bo()(e).toRgb()):a.value=e,s()};return{themeColors:r,standardColors:l,presetColors:i,color:a,hue:o,currentColor:u,changeColor:f,selectPresetColor:d,recentColors:c}}});n("90e5");zO.render=oO,zO.__scopeId="data-v-20575236";var UO=zO,GO=Object(j["createApp"])(Mb);GO.directive("contextmenu",Jb),GO.directive("click-outside",em),GO.use(Sv),GO.component("FileInput",Tv),GO.component("SvgWrapper",_v),GO.component("CheckboxButton",Av),GO.component("CheckboxButtonGroup",zv),GO.component("ColorPicker",UO),GO.component("InputNumber",h["a"]),GO.component("Divider",O["a"]),GO.component("Button",v["a"]),GO.component("ButtonGroup",v["a"].Group),GO.component("Tooltip",m["a"]),GO.component("Popover",b["a"]),GO.component("Slider",p["a"]),GO.component("Select",f["a"]),GO.component("SelectOption",f["a"].Option),GO.component("SelectOptGroup",f["a"].OptGroup),GO.component("Switch",s["a"]),GO.component("Radio",d["a"]),GO.component("RadioGroup",d["a"].Group),GO.component("RadioButton",d["a"].Button),GO.component("Input",u["a"]),GO.component("InputGroup",u["a"].Group),GO.component("Modal",i["a"]),GO.component("Dropdown",l["a"]),GO.component("Menu",r["a"]),GO.component("MenuItem",r["a"].Item),GO.component("Checkbox",a["a"]),GO.component("Drawer",c["a"]),GO.component("Spin",o["a"]),GO.use(W,X),GO.mount("#app")},ce7d:function(e,t,n){},cff1:function(e,t,n){},d08b:function(e,t,n){},d201:function(e,t,n){},d251:function(e,t,n){},d32e:function(e,t,n){"use strict";n("26b5")},d572:function(e,t,n){},d905:function(e,t,n){},d9a3:function(e,t,n){"use strict";n("0eae")},de7c:function(e,t,n){"use strict";n("fad2")},e3f5:function(e,t,n){"use strict";n("13b2")},e584:function(e,t,n){},ec3f:function(e,t,n){},ee08:function(e,t,n){},ee21:function(e,t,n){"use strict";n("745f")},ef0f:function(e,t,n){"use strict";n("930c")},ef88:function(e,t,n){"use strict";n("6868")},f0b6:function(e,t,n){},f14f:function(e,t,n){"use strict";n("d905")},f2d4:function(e,t,n){},f558:function(e,t,n){"use strict";n("ac99")},f802:function(e,t,n){"use strict";n("84e7")},f8f9:function(e,t,n){},f91d:function(e,t,n){"use strict";n("4c37")},fad2:function(e,t,n){},fb1d:function(e,t,n){"use strict";n("d572")},fb76:function(e,t,n){},fe34:function(e,t,n){"use strict";n("a6ef")},fe41:function(e,t,n){"use strict";n("403b")},fff2:function(e,t,n){}});
//# sourceMappingURL=app.369ee068.js.map