(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59a8d4d2","chunk-09f23c09","chunk-722e9a88","chunk-7dd028a3","chunk-3f93175c","chunk-6e89bd4a","chunk-aef2ddc0","chunk-d19c1a98","chunk-2d0a2db2","chunk-2d0f012d"],{"0028":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"30px"}},[n("div",{staticClass:"search"},[n("el-form",{attrs:{inline:!0}},[n("el-form-item",{staticStyle:{"margin-right":"50px"},attrs:{label:"用户昵称:"}},[n("el-input",{attrs:{clearable:"",placeholder:"请输入剧本标题"},model:{value:e.queryParams.query.nickName,callback:function(t){e.$set(e.queryParams.query,"nickName",t)},expression:"queryParams.query.nickName"}})],1),n("el-form-item",{staticStyle:{"margin-right":"50px"},attrs:{label:"用户编号:"}},[n("el-input",{attrs:{clearable:"",placeholder:"请输入工作室"},model:{value:e.queryParams.query.code,callback:function(t){e.$set(e.queryParams.query,"code",t)},expression:"queryParams.query.code"}})],1),n("el-form-item",{staticStyle:{"margin-right":"50px"},attrs:{label:"联系电话:"}},[n("el-input",{attrs:{clearable:"",placeholder:"请输入标签"},model:{value:e.queryParams.query.phonenumber,callback:function(t){e.$set(e.queryParams.query,"phonenumber",t)},expression:"queryParams.query.phonenumber"}})],1),n("el-form-item",{staticStyle:{"margin-right":"50px"},attrs:{label:"注册时间:"}},[n("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1),n("div",{staticClass:"search-button"},[n("el-button",{staticStyle:{height:"36px",width:"100px"},attrs:{size:"medium",type:"primary"},on:{click:e.search}},[e._v("搜索")]),n("el-button",{staticStyle:{"margin-left":"20px",height:"36px",width:"100px"},attrs:{size:"medium"},on:{click:e.refresh}},[e._v("重置")])],1)],1),n("div",{staticClass:"content"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"singleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[n("el-table-column",{attrs:{align:"center",type:"index",label:"序号",width:"50"}}),n("el-table-column",{attrs:{align:"center",property:"avatar",label:"头像"},scopedSlots:e._u([{key:"default",fn:function(e){return[n("div",[n("img",{staticStyle:{width:"50px",height:"50px"},attrs:{src:e.row.avatar,alt:""}})])]}}])}),n("el-table-column",{attrs:{align:"center",property:"nickName",label:"昵称"}}),n("el-table-column",{attrs:{align:"center",property:"code",label:"编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("span",[e._v(e._s(t.row.code))]),n("i",{staticClass:"el-icon-edit-outline",staticStyle:{float:"right","font-size":"14px"},on:{click:function(n){return e.handleEditCode(t.row)}}})])]}}])}),n("el-table-column",{attrs:{align:"center",property:"phonenumber",label:"联系电话"}}),n("el-table-column",{attrs:{align:"center",property:"createTime",label:"注册时间"}}),n("el-table-column",{attrs:{align:"center",property:"level",label:"用户等级"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.levelormat(t.row))+" ")]}}])}),n("el-table-column",{attrs:{align:"center",property:"remark",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("span",[e._v(e._s(t.row.remark))]),n("i",{staticClass:"el-icon-edit-outline",staticStyle:{float:"right","font-size":"14px"},on:{click:function(n){return e.handleEditRemark(t.row)}}})])]}}])}),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(n){return e.handleEdit(t.row)}}},[e._v("修改等级")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.queryUserInfo}})],1),n("el-dialog",{attrs:{title:e.dialog.title,visible:e.dialog.Visible,center:"",width:"350px"},on:{"update:visible":function(t){return e.$set(e.dialog,"Visible",t)}}},[n("el-form",{attrs:{model:e.form,inline:!0}},["level"==e.type?n("div",[n("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"客户昵称:"}},[n("span",[e._v(e._s(e.data.nickName))])]),n("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"客户等级:"}},[n("span",[e._v(e._s(e.levelormat(e.data)))])]),n("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"修改为:"}},[n("el-select",{attrs:{placeholder:"请选择客户等级"},model:{value:e.form.level,callback:function(t){e.$set(e.form,"level",t)},expression:"form.level"}},e._l(e.level,(function(e){return n("el-option",{key:e,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1)],1):e._e(),"code"==e.type?n("div",[n("el-form-item",{attrs:{label:"客户编号"}},[n("el-input",{attrs:{clearable:"",placeholder:"请输入客户编号"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}})],1)],1):e._e(),"remark"==e.type?n("div",[n("el-form-item",{attrs:{label:"备注"}},[n("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:5,placeholder:"请输入备注"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1):e._e()]),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialog.Visible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.subMit}},[e._v("确 定")])],1)],1)],1)},r=[],a=n("e9ff"),o=(n("e186"),n("2d8e")),s={data:function(){return{loading:!0,queryParams:{pageNum:1,pageSize:15,query:{nickName:void 0,code:void 0,phonenumber:void 0,params:{beginTime:void 0,endTime:void 0}}},time:[],total:0,tableData:[],form:{userId:""},dialog:{Visible:!1,title:""},level:[],data:{},type:"level"}},created:function(){var e=this;this.getDicts("jbs_user_level").then((function(t){e.level=t.data}))},mounted:function(){this.queryUserInfo()},methods:{queryUserInfo:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,Object(o["a"])(e.queryParams);case 4:n=t.sent,200==n.code&&(e.loading=!1,e.tableData=n.rows,e.total=n.total),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](1);case 10:case"end":return t.stop()}}),t,null,[[1,8]])})))()},search:function(){null!=this.time?this.time.length>0&&(this.queryParams.query.params.beginTime=this.time[0],this.queryParams.query.params.endTime=this.time[1]):(this.time=[],this.queryParams.query.params.beginTime=void 0,this.queryParams.query.params.endTime=void 0),this.queryUserInfo()},refresh:function(){this.time=[],this.queryParams={pageNum:1,pageSize:15,query:{nickName:void 0,code:void 0,phonenumber:void 0},params:{beginTime:void 0,endTime:void 0}},this.queryUserInfo()},levelormat:function(e,t){return this.selectDictLabel(this.level,e.level)},handleEdit:function(e){this.form={},this.dialog.Visible=!0,this.dialog.title="修改用户等级",this.type="level",this.form.userId=e.userId,this.data=e},handleEditCode:function(e){this.form={},this.dialog.Visible=!0,this.dialog.title="修改用户编号",this.form.userId=e.userId,this.type="code",this.data=e},handleEditRemark:function(e){this.form={},this.dialog.Visible=!0,this.dialog.title="修改用户备注",this.form.userId=e.userId,this.type="remark",this.data=e},subMit:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("level"!=e.type){t.next=4;break}if(void 0!=e.form.level&&""!=e.form.level){t.next=4;break}return e.$message({message:"请选择用户等级",type:"error"}),t.abrupt("return",!1);case 4:if("code"!=e.type){t.next=8;break}if(void 0!=e.form.code&&""!=e.form.code){t.next=8;break}return e.$message({message:"请输入用户编号",type:"error"}),t.abrupt("return",!1);case 8:if("remark"!=e.type){t.next=12;break}if(void 0!=e.form.remark&&""!=e.form.remark){t.next=12;break}return e.$message({message:"请输入用户备注",type:"error"}),t.abrupt("return",!1);case 12:return t.prev=12,t.next=15,Object(o["b"])(e.form);case 15:n=t.sent,200==n.code&&(e.$message.success("修改成功"),e.dialog.Visible=!1,e.queryUserInfo()),t.next=21;break;case 19:t.prev=19,t.t0=t["catch"](12);case 21:case"end":return t.stop()}}),t,null,[[12,19]])})))()}}},l=s,c=(n("67f7"),n("cba8")),u=Object(c["a"])(l,i,r,!1,null,"5cff2ee3",null);t["default"]=u.exports},"0062":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"任务名称",prop:"jobName"}},[n("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入任务名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.jobName,callback:function(t){e.$set(e.queryParams,"jobName",t)},expression:"queryParams.jobName"}})],1),n("el-form-item",{attrs:{label:"任务组名",prop:"jobGroup"}},[n("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请任务组名",clearable:"",size:"small"},model:{value:e.queryParams.jobGroup,callback:function(t){e.$set(e.queryParams,"jobGroup",t)},expression:"queryParams.jobGroup"}},e._l(e.jobGroupOptions,(function(e){return n("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),n("el-form-item",{attrs:{label:"执行状态",prop:"status"}},[n("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择执行状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return n("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),n("el-form-item",{attrs:{label:"执行时间"}},[n("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini"},on:{click:e.handleClean}},[e._v("清空")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:export"],expression:"['monitor:job:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),n("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.jobLogList},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),n("el-table-column",{attrs:{label:"日志编号",width:"80",align:"center",prop:"jobLogId"}}),n("el-table-column",{attrs:{label:"任务名称",align:"center",prop:"jobName","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"任务组名",align:"center",prop:"jobGroup",formatter:e.jobGroupFormat,"show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"调用目标字符串",align:"center",prop:"invokeTarget","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"日志信息",align:"center",prop:"jobMessage","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"执行状态",align:"center",prop:"status",formatter:e.statusFormat}}),n("el-table-column",{attrs:{label:"执行时间",align:"center",prop:"createTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),n("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:query"],expression:"['monitor:job:query']"}],attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(n){return e.handleView(t.row)}}},[e._v("详细")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),n("el-dialog",{attrs:{title:"调度日志详细",visible:e.open,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",size:"mini"}},[n("el-row",[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"日志序号:"}},[e._v(e._s(e.form.jobLogId))]),n("el-form-item",{attrs:{label:"任务名称:"}},[e._v(e._s(e.form.jobName))])],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"任务分组:"}},[e._v(e._s(e.form.jobGroup))]),n("el-form-item",{attrs:{label:"执行时间:"}},[e._v(e._s(e.form.createTime))])],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"调用方法:"}},[e._v(e._s(e.form.invokeTarget))])],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"日志信息:"}},[e._v(e._s(e.form.jobMessage))])],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"执行状态:"}},[0==e.form.status?n("div",[e._v("正常")]):1==e.form.status?n("div",[e._v("失败")]):e._e()])],1),n("el-col",{attrs:{span:24}},[1==e.form.status?n("el-form-item",{attrs:{label:"异常信息:"}},[e._v(e._s(e.form.exceptionInfo))]):e._e()],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.open=!1}}},[e._v("关 闭")])],1)],1)],1)},r=[],a=(n("6540"),n("b775"));function o(e){return Object(a["a"])({url:"/monitor/jobLog/list",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/monitor/jobLog/"+e,method:"delete"})}function l(){return Object(a["a"])({url:"/monitor/jobLog/clean",method:"delete"})}function c(e){return Object(a["a"])({url:"/monitor/jobLog/export",method:"get",params:e})}var u={name:"JobLog",data:function(){return{loading:!0,ids:[],multiple:!0,showSearch:!0,total:0,jobLogList:[],open:!1,dateRange:[],form:{},statusOptions:[],jobGroupOptions:[],queryParams:{pageNum:1,pageSize:10,jobName:void 0,jobGroup:void 0,status:void 0}}},created:function(){var e=this;this.getList(),this.getDicts("sys_job_status").then((function(t){e.statusOptions=t.data})),this.getDicts("sys_job_group").then((function(t){e.jobGroupOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,o(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.jobLogList=t.rows,e.total=t.total,e.loading=!1}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},jobGroupFormat:function(e,t){return this.selectDictLabel(this.jobGroupOptions,e.jobGroup)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.jobLogId})),this.multiple=!e.length},handleView:function(e){this.open=!0,this.form=e},handleDelete:function(e){var t=this,n=this.ids;this.$confirm('是否确认删除调度日志编号为"'+n+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return s(n)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleClean:function(){var e=this;this.$confirm("是否确认清空所有调度日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return l()})).then((function(){e.getList(),e.msgSuccess("清空成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有调度日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return c(t)})).then((function(t){e.download(t.data)}))}}},d=u,p=n("cba8"),f=Object(p["a"])(d,i,r,!1,null,null,null);t["default"]=f.exports},"0126":function(e,t,n){(function(t){ /*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */ (function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),r=n(18),a=n(19),o=n(45),s=n(46),l=n(47),c=n(48),u=n(49),d=n(12),p=n(32),f=n(33),h=n(31),m=n(1),_={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:i.default,Format:r.default,Leaf:a.default,Embed:c.default,Scroll:o.default,Block:l.default,Inline:s.default,Text:u.default,Attributor:{Attribute:d.default,Class:p.default,Style:f.default,Store:h.default}};t.default=_},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){var n=this;return t="[Parchment] "+t,n=e.call(this,t)||this,n.message=t,n.name=n.constructor.name,n}return i(t,e),t}(Error);t.ParchmentError=r;var a,o={},s={},l={},c={};function u(e,t){var n=p(e);if(null==n)throw new r("Unable to create "+e+" blot");var i=n,a=e instanceof Node||e["nodeType"]===Node.TEXT_NODE?e:i.create(t);return new i(a,t)}function d(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?d(e.parentNode,n):null}function p(e,t){var n;if(void 0===t&&(t=a.ANY),"string"===typeof e)n=c[e]||o[e];else if(e instanceof Text||e["nodeType"]===Node.TEXT_NODE)n=c["text"];else if("number"===typeof e)e&a.LEVEL&a.BLOCK?n=c["block"]:e&a.LEVEL&a.INLINE&&(n=c["inline"]);else if(e instanceof HTMLElement){var i=(e.getAttribute("class")||"").split(/\s+/);for(var r in i)if(n=s[i[r]],n)break;n=n||l[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}function f(){for(var e=[],t=0;t1)return e.map((function(e){return f(e)}));var n=e[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new r("Invalid definition");if("abstract"===n.blotName)throw new r("Cannot register abstract class");if(c[n.blotName||n.attrName]=n,"string"===typeof n.keyName)o[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var i=Array.isArray(n.tagName)?n.tagName:[n.tagName];i.forEach((function(e){null!=l[e]&&null!=n.className||(l[e]=n)}))}return n}t.DATA_KEY="__blot",function(e){e[e["TYPE"]=3]="TYPE",e[e["LEVEL"]=12]="LEVEL",e[e["ATTRIBUTE"]=13]="ATTRIBUTE",e[e["BLOT"]=14]="BLOT",e[e["INLINE"]=7]="INLINE",e[e["BLOCK"]=11]="BLOCK",e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT",e[e["INLINE_BLOT"]=6]="INLINE_BLOT",e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",e[e["ANY"]=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=u,t.find=d,t.query=p,t.register=f},function(e,t,n){var i=n(51),r=n(11),a=n(3),o=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=a(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(i){var r=e(i)?t:n;r.push(i)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+o.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+o.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],i=o.iterator(this.ops),r=0;while(r0&&n.next(a.retain-s)}var c=new l(i);while(t.hasNext()||n.hasNext())if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),p=n.next(u);if("number"===typeof p.retain){var f={};"number"===typeof d.retain?f.retain=u:f.insert=d.insert;var h=o.attributes.compose(d.attributes,p.attributes,"number"===typeof d.retain);if(h&&(f.attributes=h),c.push(f),!n.hasNext()&&r(c.ops[c.ops.length-1],f)){var m=new l(t.rest());return c.concat(m).chop()}}else"number"===typeof p["delete"]&&"number"===typeof d.retain&&c.push(p)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var i=t===e?"on":"with";throw new Error("diff() called "+i+" non-document")})).join("")})),a=new l,c=i(n[0],n[1],t),u=o.iterator(this.ops),d=o.iterator(e.ops);return c.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case i.INSERT:n=Math.min(d.peekLength(),t),a.push(d.next(n));break;case i.DELETE:n=Math.min(t,u.peekLength()),u.next(n),a["delete"](n);break;case i.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var s=u.next(n),l=d.next(n);r(s.insert,l.insert)?a.retain(n,o.attributes.diff(s.attributes,l.attributes)):a.push(l)["delete"](n);break}t-=n}})),a.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";var n=o.iterator(this.ops),i=new l,r=0;while(n.hasNext()){if("insert"!==n.peekType())return;var a=n.peek(),s=o.length(a)-n.peekLength(),c="string"===typeof a.insert?a.insert.indexOf(t,s)-s:-1;if(c<0)i.push(n.next());else if(c>0)i.push(n.next(c));else{if(!1===e(i,n.next(1).attributes||{},r))return;r+=1,i=new l}}i.length()>0&&e(i,{},r)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=o.iterator(this.ops),i=o.iterator(e.ops),r=new l;while(n.hasNext()||i.hasNext())if("insert"!==n.peekType()||!t&&"insert"===i.peekType())if("insert"===i.peekType())r.push(i.next());else{var a=Math.min(n.peekLength(),i.peekLength()),s=n.next(a),c=i.next(a);if(s["delete"])continue;c["delete"]?r.push(c):r.retain(a,o.attributes.transform(s.attributes,c.attributes,t))}else r.retain(o.length(n.next()));return r.chop()},l.prototype.transformPosition=function(e,t){t=!!t;var n=o.iterator(this.ops),i=0;while(n.hasNext()&&i<=e){var r=n.peekLength(),a=n.peekType();n.next(),"delete"!==a?("insert"===a&&(i0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-w)){var i=this.clone();return 0===e?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}var a=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},a}}]),t}(u.default.Block);function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,o.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:O(e.parent,t))}k.blotName="block",k.tagName="P",k.defaultChild="break",k.allowedChildren=[h.default,u.default.Embed,_.default],t.bubbleFormats=O,t.BlockEmbed=x,t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(E(this,e),this.options=j(t,i),this.container=this.options.container,null==this.container)return T.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new d.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new g.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(e){e===d.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(d.default.events.SCROLL_UPDATE,(function(e,t){var i=n.selection.lastRange,r=i&&0===i.length?i.index:void 0;C.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var a=this.clipboard.convert("
"+r+"


");this.setContents(a),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return a(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),w.default.level(e)}},{key:"find",value:function(e){return e.__quill||m.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&T.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var r=e.attrName||e.blotName;"string"===typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(i){n.register(i,e[i],t)}))}else null==this.imports[e]||i||T.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?m.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),a(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var i=this,a=P(e,t,n),o=r(a,4);return e=o[0],t=o[1],n=o[3],C.call(this,(function(){return i.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;return C.call(this,(function(){var i=n.getSelection(!0),r=new s.default;if(null==i)return r;if(m.default.query(e,m.default.Scope.BLOCK))r=n.editor.formatLine(i.index,i.length,S({},e,t));else{if(0===i.length)return n.selection.format(e,t),r;r=n.editor.formatText(i.index,i.length,S({},e,t))}return n.setSelection(i,d.default.sources.SILENT),r}),i)}},{key:"formatLine",value:function(e,t,n,i,a){var o=this,s=void 0,l=P(e,t,n,i,a),c=r(l,4);return e=c[0],t=c[1],s=c[2],a=c[3],C.call(this,(function(){return o.editor.formatLine(e,t,s)}),a,e,0)}},{key:"formatText",value:function(e,t,n,i,a){var o=this,s=void 0,l=P(e,t,n,i,a),c=r(l,4);return e=c[0],t=c[1],s=c[2],a=c[3],C.call(this,(function(){return o.editor.formatText(e,t,s)}),a,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=P(e,t),i=r(n,2);return e=i[0],t=i[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=P(e,t),i=r(n,2);return e=i[0],t=i[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return C.call(this,(function(){return r.editor.insertEmbed(t,n,i)}),a,t)}},{key:"insertText",value:function(e,t,n,i,a){var o=this,s=void 0,l=P(e,0,n,i,a),c=r(l,4);return e=c[0],s=c[2],a=c[3],C.call(this,(function(){return o.editor.insertText(e,t,s)}),a,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var i=this,a=P(e,t,n),o=r(a,4);return e=o[0],t=o[1],n=o[3],C.call(this,(function(){return i.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API;return C.call(this,(function(){e=new s.default(e);var n=t.getLength(),i=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),a=r.ops[r.ops.length-1];null!=a&&"string"===typeof a.insert&&"\n"===a.insert[a.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1));var o=i.compose(r);return o}),n)}},{key:"setSelection",value:function(t,n,i){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var a=P(t,n,i),o=r(a,4);t=o[0],n=o[1],i=o[3],this.selection.setRange(new _.Range(t,n),i),i!==d.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API;return C.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function j(e,t){if(t=(0,b.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==N.DEFAULTS.theme){if(t.theme=N.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=k.default;var n=(0,b.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var i=Object.keys(n.modules).concat(Object.keys(t.modules)),r=i.reduce((function(e,t){var n=N.import("modules/"+t);return null==n?T.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,b.default)(!0,{},N.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function C(e,t,n,i){if(this.options.strict&&!this.isEnabled()&&t===d.default.sources.USER)return new s.default;var r=null==n?null:this.getSelection(),a=this.editor.delta,o=e();if(null!=r&&(!0===n&&(n=r.index),null==i?r=L(r,o,t):0!==i&&(r=L(r,n,i,t)),this.setSelection(r,d.default.sources.SILENT)),o.length()>0){var l,c,u=[d.default.events.TEXT_CHANGE,o,a,t];if((l=this.emitter).emit.apply(l,[d.default.events.EDITOR_CHANGE].concat(u)),t!==d.default.sources.SILENT)(c=this.emitter).emit.apply(c,u)}return o}function P(e,t,n,r,a){var o={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(a=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(a=r,r=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":i(n))?(o=n,a=r):"string"===typeof n&&(null!=r?o[n]=r:a=n),a=a||d.default.sources.API,[e,t,o,a]}function L(e,t,n,i){if(null==e)return null;var a=void 0,o=void 0;if(t instanceof s.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,i!==d.default.sources.USER)})),c=r(l,2);a=c[0],o=c[1]}else{var u=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),p=r(u,2);a=p[0],o=p[1]}return new _.Range(a,o-a)}N.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},N.events=d.default.events,N.sources=d.default.sources,N.version="1.3.7",N.imports={delta:s.default,parchment:m.default,"core/module":f.default,"core/theme":k.default},t.expandConfig=j,t.overload=P,t.default=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var i=t.order.indexOf(e),r=t.order.indexOf(n);return i>=0||r>=0?i-r:e===n?0:e1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],r="warn";function a(e){if(i.indexOf(e)<=i.indexOf(r)){for(var t,n=arguments.length,a=Array(n>1?n-1:0),o=1;o0&&"number"!==typeof e[0]))}function c(e,t,n){var c,u;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e))return!!a(t)&&(e=i.call(e),t=i.call(t),o(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c=0;c--)if(d[c]!=p[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!o(e[u],t[u],n))return!1;return typeof e===typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=i.Scope.TYPE&i.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&i.Scope.LEVEL|r:this.scope=i.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){var n=i.query(e,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n=e+n)){var o=this.newlineIndex(e,!0)+1,s=a-o+1,l=this.isolate(o,s),u=l.next;l.format(i,r),u instanceof t&&u.formatAt(0,e-o+n-s,i,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(m.default,e),a=i(r,2),o=a[0],s=a[1];o.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(c.default.create("text","\n")),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=c.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof c.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(d.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",t.Code=y,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n=a&&!u.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,u);var p=t.scroll.line(e),f=r(p,2),h=f[0],m=f[1],v=(0,S.default)({},(0,_.bubbleFormats)(h));if(h instanceof g.default){var b=h.descendant(d.default.Leaf,m),y=r(b,1),w=y[0];v=(0,S.default)(v,(0,_.bubbleFormats)(w))}l=c.default.attributes.diff(v,l)||{}}else if("object"===i(o.insert)){var x=Object.keys(o.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,o.insert[x])}a+=s}return Object.keys(l).forEach((function(n){t.scroll.formatAt(e,s,n,l[n])})),e+s}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(i).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var a=n.scroll.lines(e,Math.max(t,1)),o=t;a.forEach((function(t){var a=t.length();if(t instanceof f.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+o)-s+1;t.formatAt(s,l,r,i[r])}else t.format(r,i[r]);o-=a}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,w.default)(i)))}},{key:"formatText",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach((function(r){n.scroll.formatAt(e,t,r,i[r])})),this.update((new s.default).retain(e).retain(t,(0,w.default)(i)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1),a=t[0];a instanceof g.default?n.push(a):a instanceof d.default.Leaf&&i.push(a)})):(n=this.scroll.lines(e,t),i=this.scroll.descendants(d.default.Leaf,e,t));var a=[n,i].map((function(e){if(0===e.length)return{};var t=(0,_.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var n=e.shift();if(null==n)return t;t=P((0,_.bubbleFormats)(n),t)}return t}));return S.default.apply(S.default,a)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(T({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(i).forEach((function(r){n.scroll.formatAt(e,t.length,r,i[r])})),this.update((new s.default).retain(e).insert(t,(0,w.default)(i)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===g.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof b.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),i=this.scroll.line(e+t),a=r(i,2),o=a[0],l=a[1],c=0,u=new s.default;null!=o&&(c=o instanceof f.default?o.newlineIndex(l)-l+1:o.length()-l,u=o.delta().slice(l,l+c-1).insert("\n"));var d=this.getContents(e,t+c),p=d.diff((new s.default).insert(n).concat(u)),h=(new s.default).retain(e).concat(p);return this.applyDelta(h)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(j)&&d.default.find(t[0].target)){var r=d.default.find(t[0].target),a=(0,_.bubbleFormats)(r),o=r.offset(this.scroll),l=t[0].oldValue.replace(m.default.CONTENTS,""),c=(new s.default).insert(l),u=(new s.default).insert(r.value()),p=(new s.default).retain(o).concat(c.diff(u,n));e=p.reduce((function(e,t){return t.insert?e.insert(t.insert,a):e.push(t)}),new s.default),this.delta=i.compose(e)}else this.delta=this.getDelta(),e&&(0,k.default)(i.compose(e),this.delta)||(e=i.diff(this.delta,n));return e}}]),e}();function P(e,t){return Object.keys(t).reduce((function(n,i){return null==e[i]||(t[i]===e[i]?n[i]=t[i]:Array.isArray(t[i])?t[i].indexOf(e[i])<0&&(n[i]=t[i].concat([e[i]])):n[i]=[t[i],e[i]]),n}),{})}function L(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,w.default)(t.attributes);return delete n["image"],e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=(0,w.default)(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var i=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(i,t.attributes)}return e.push(t)}),new s.default)}t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;g(this,e),this.index=t,this.length=n},y=function(){function e(t,n){var i=this;g(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){i.mouseDown||setTimeout(i.update.bind(i,p.default.sources.USER),1)})),this.emitter.on(p.default.events.EDITOR_CHANGE,(function(e,t){e===p.default.events.TEXT_CHANGE&&t.length()>0&&i.update(p.default.sources.SILENT)})),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,(function(){if(i.hasFocus()){var e=i.getNativeRange();null!=e&&e.start.node!==i.cursor.textNode&&i.emitter.once(p.default.events.SCROLL_UPDATE,(function(){try{i.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,a=n.startOffset,o=n.endNode,s=n.endOffset;i.setNativeRange(r,a,o,s)}})),this.update(p.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(p.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i=o.default.find(n.start.node,!1);if(null==i)return;if(i instanceof o.default.Leaf){var r=i.split(n.start.offset);i.parent.insertBefore(this.cursor,r)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,a=this.scroll.leaf(e),o=i(a,2),s=o[0],l=o[1];if(null==s)return null;var c=s.position(l,!0),u=i(c,2);r=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(r,l);var p=this.scroll.leaf(e+t),f=i(p,2);if(s=f[0],l=f[1],null==s)return null;var h=s.position(l,!0),m=i(h,2);return r=m[0],l=m[1],d.setEnd(r,l),d.getBoundingClientRect()}var _="left",g=void 0;return r instanceof Text?(l0&&(_="right")),{bottom:g.top+g.height,height:g.height,left:g[_],right:g[_],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return v.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();if(null==e)return[null,null];var t=this.normalizedToRange(e);return[t,e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=i(e,2),r=n[0],a=n[1],s=o.default.find(r,!0),l=s.offset(t.scroll);return 0===a?l:s instanceof o.default.Container?l+s.length():l+s.index(r,a)})),a=Math.min(Math.max.apply(Math,_(r)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(_(r)));return new b(s,a-s)}},{key:"normalizeNative",value:function(e){if(!w(this.root,e.startContainer)||!e.collapsed&&!w(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){var t=e.node,n=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],a=this.scroll.length();return n.forEach((function(e,n){e=Math.min(a-1,e);var o=void 0,s=t.scroll.leaf(e),l=i(s,2),c=l[0],u=l[1],d=c.position(u,0!==n),p=i(d,2);o=p[0],u=p[1],r.push(o,u)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,a=this.scroll.line(Math.min(t.index,r)),o=i(a,1),s=o[0],l=s;if(t.length>0){var c=this.scroll.line(Math.min(t.index+t.length,r)),u=i(c,1);l=u[0]}if(null!=s&&null!=l){var d=e.getBoundingClientRect();n.topd.bottom&&(e.scrollTop+=n.bottom-d.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(v.info("setNativeRange",e,t,n,i),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var a=document.getSelection();if(null!=a)if(null!=e){this.hasFocus()||this.root.focus();var o=(this.getNativeRange()||{}).native;if(null==o||r||e!==o.startContainer||t!==o.startOffset||n!==o.endContainer||i!==o.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(i=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,i),a.removeAllRanges(),a.addRange(s)}}else a.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.sources.API;if("string"===typeof t&&(n=t,t=!1),v.info("setRange",e),null!=e){var i=this.rangeToNative(e);this.setNativeRange.apply(this,_(i).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.default.sources.USER,t=this.lastRange,n=this.getRange(),r=i(n,2),a=r[0],o=r[1];if(this.lastRange=a,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(t,this.lastRange)){var s;!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode&&this.cursor.restore();var c,d=[p.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];if((s=this.emitter).emit.apply(s,[p.default.events.EDITOR_CHANGE].concat(d)),e!==p.default.sources.SILENT)(c=this.emitter).emit.apply(c,d)}}}]),e}();function w(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=b,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(r.default);t.default=o},function(e,t,n){var i=n(11),r=n(3),a={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var i=r(!0,{},t);for(var a in n||(i=Object.keys(i).reduce((function(e,t){return null!=i[t]&&(e[t]=i[t]),e}),{})),e)void 0!==e[a]&&void 0===t[a]&&(i[a]=e[a]);return Object.keys(i).length>0?i:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return i(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var i=Object.keys(t).reduce((function(n,i){return void 0===e[i]&&(n[i]=t[i]),n}),{});return Object.keys(i).length>0?i:void 0}}},iterator:function(e){return new o(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function o(e){this.ops=e,this.index=0,this.offset=0}o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,i=a.length(t);if(e>=i-n?(e=i-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"===typeof t.retain?r.retain=e:"string"===typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},o.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(i)}return[]},e.exports=a},function(e,n){var i=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,i,r;try{n=Map}catch(d){n=function(){}}try{i=Set}catch(d){i=function(){}}try{r=Promise}catch(d){r=function(){}}function a(o,s,l,c,d){"object"===typeof s&&(l=s.depth,c=s.prototype,d=s.includeNonEnumerable,s=s.circular);var p=[],f=[],h="undefined"!=typeof t;function m(o,l){if(null===o)return null;if(0===l)return o;var _,g;if("object"!=typeof o)return o;if(e(o,n))_=new n;else if(e(o,i))_=new i;else if(e(o,r))_=new r((function(e,t){o.then((function(t){e(m(t,l-1))}),(function(e){t(m(e,l-1))}))}));else if(a.__isArray(o))_=[];else if(a.__isRegExp(o))_=new RegExp(o.source,u(o)),o.lastIndex&&(_.lastIndex=o.lastIndex);else if(a.__isDate(o))_=new Date(o.getTime());else{if(h&&t.isBuffer(o))return _=t.allocUnsafe?t.allocUnsafe(o.length):new t(o.length),o.copy(_),_;e(o,Error)?_=Object.create(o):"undefined"==typeof c?(g=Object.getPrototypeOf(o),_=Object.create(g)):(_=Object.create(c),g=c)}if(s){var v=p.indexOf(o);if(-1!=v)return f[v];p.push(o),f.push(_)}for(var b in e(o,n)&&o.forEach((function(e,t){var n=m(t,l-1),i=m(e,l-1);_.set(n,i)})),e(o,i)&&o.forEach((function(e){var t=m(e,l-1);_.add(t)})),o){var y;g&&(y=Object.getOwnPropertyDescriptor(g,b)),y&&null==y.set||(_[b]=m(o[b],l-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(o);for(b=0;b0){if(s instanceof u.BlockEmbed||p instanceof u.BlockEmbed)return void this.optimize();if(s instanceof m.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1),s===p))return void this.optimize()}else if(p instanceof m.default){var _=p.newlineIndex(0);_>-1&&p.split(_+1)}var g=p.children.head instanceof f.default?null:p.children.head;s.moveChildren(p,g),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,i,r){(null==this.whitelist||this.whitelist[i])&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,i,r),this.optimize())}},{key:"insertAt",value:function(e,n,i){if(null==i||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==i||null==s.default.query(n,s.default.Scope.BLOCK)){var r=s.default.create(this.statics.defaultChild);this.appendChild(r),null==i&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,i)}else{var o=s.default.create(n,i);this.appendChild(o)}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var i=s.default.create(this.statics.defaultChild);i.appendChild(e),e=i}a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(x,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,i){var r=[],a=i;return t.children.forEachAt(n,i,(function(t,n,i){x(t)?r.push(t):t instanceof s.default.Container&&(r=r.concat(e(t,n,a))),a-=i})),r};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=c.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,n,e),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);k.blotName="scroll",k.className="ql-editor",k.tagName="DIV",k.defaultChild="block",k.allowedChildren=[d.default,u.BlockEmbed,g.default],t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=$(e);if(null==i||null==i.key)return j.warn("Attempted to add invalid keyboard binding",i);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),i=(0,d.default)(i,t,n),this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var a=n.which||n.keyCode,o=(e.bindings[a]||[]).filter((function(e){return t.match(n,e)}));if(0!==o.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var l=e.quill.getLine(s.index),u=r(l,2),d=u[0],p=u[1],f=e.quill.getLeaf(s.index),h=r(f,2),m=h[0],_=h[1],v=0===s.length?[m,_]:e.quill.getLeaf(s.index+s.length),b=r(v,2),y=b[0],w=b[1],x=m instanceof g.default.Text?m.value().slice(0,_):"",k=y instanceof g.default.Text?y.value().slice(w):"",O={collapsed:0===s.length,empty:0===s.length&&d.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:x,suffix:k},S=o.some((function(t){if(null!=t.collapsed&&t.collapsed!==O.collapsed)return!1;if(null!=t.empty&&t.empty!==O.empty)return!1;if(null!=t.offset&&t.offset!==O.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==O.format[e]})))return!1}else if("object"===i(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=O.format[e]:!1===t.format[e]?null==O.format[e]:(0,c.default)(t.format[e],O.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(O.prefix))&&(!(null!=t.suffix&&!t.suffix.test(O.suffix))&&!0!==t.handler.call(e,s,O))}));S&&n.preventDefault()}}}}))}}]),t}(k.default);function L(e,t){var n,i=e===P.keys.LEFT?"prefix":"suffix";return n={key:e,shiftKey:t,altKey:null},S(n,i,/^$/),S(n,"handler",(function(n){var i=n.index;e===P.keys.RIGHT&&(i+=n.length+1);var a=this.quill.getLeaf(i),o=r(a,1),s=o[0];return!(s instanceof g.default.Embed)||(e===P.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index-1,b.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index+n.length+1,b.default.sources.USER),!1)})),n}function q(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),i=r(n,1),a=i[0],o={};if(0===t.offset){var s=this.quill.getLine(e.index-1),l=r(s,1),c=l[0];if(null!=c&&c.length()>1){var u=a.formats(),d=this.quill.getFormat(e.index-1,1);o=m.default.attributes.diff(u,d)||{}}}var p=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-p,p,b.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-p,p,o,b.default.sources.USER),this.quill.focus()}}function I(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var i={},a=0,o=this.quill.getLine(e.index),s=r(o,1),l=s[0];if(t.offset>=l.length()-1){var c=this.quill.getLine(e.index+1),u=r(c,1),d=u[0];if(d){var p=l.formats(),f=this.quill.getFormat(e.index,1);i=m.default.attributes.diff(p,f)||{},a=d.length()}}this.quill.deleteText(e.index,n,b.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index+a-1,n,i,b.default.sources.USER)}}function D(e){var t=this.quill.getLines(e),n={};if(t.length>1){var i=t[0].formats(),r=t[t.length-1].formats();n=m.default.attributes.diff(r,i)||{}}this.quill.deleteText(e,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,b.default.sources.USER),this.quill.setSelection(e.index,b.default.sources.SILENT),this.quill.focus()}function A(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var i=Object.keys(t.format).reduce((function(e,n){return g.default.query(n,g.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",i,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==i[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],b.default.sources.USER))}))}function R(e){return{key:P.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=g.default.query("code-block"),i=t.index,a=t.length,o=this.quill.scroll.descendant(n,i),s=r(o,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),d=l.newlineIndex(c,!0)+1,p=l.newlineIndex(u+c+a),f=l.domNode.textContent.slice(d,p).split("\n");c=0,f.forEach((function(t,r){e?(l.insertAt(d+c,n.TAB),c+=n.TAB.length,0===r?i+=n.TAB.length:a+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(d+c,n.TAB.length),c-=n.TAB.length,0===r?i-=n.TAB.length:a-=n.TAB.length),c+=t.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(i,a,b.default.sources.SILENT)}}}}function M(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],b.default.sources.USER)}}}function $(e){if("string"===typeof e||"number"===typeof e)return $({key:e});if("object"===("undefined"===typeof e?"undefined":i(e))&&(e=(0,s.default)(e,!1)),"string"===typeof e.key)if(null!=P.keys[e.key.toUpperCase()])e.key=P.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[C]=e.shortKey,delete e.shortKey),e}P.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},P.DEFAULTS={bindings:{bold:M("bold"),italic:M("italic"),underline:M("underline"),indent:{key:P.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:P.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:P.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":R(!0),"outdent code-block":R(!1),"remove tab":{key:P.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,b.default.sources.USER)}},tab:{key:P.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new f.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,b.default.sources.SILENT)}},"list empty enter":{key:P.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,b.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:P.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),i=n[0],a=n[1],o=(0,d.default)({},i.formats(),{list:"checked"}),s=(new f.default).retain(e.index).insert("\n",o).retain(i.length()-a-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:P.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),i=r(n,2),a=i[0],o=i[1],s=(new f.default).retain(e.index).insert("\n",t.format).retain(a.length()-o-1).retain(1,{header:null});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,i=this.quill.getLine(e.index),a=r(i,2),o=a[0],s=a[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",b.default.sources.USER),this.quill.history.cutoff();var c=(new f.default).retain(e.index-s).delete(n+1).retain(o.length()-2-s).retain(1,{list:l});this.quill.updateContents(c,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,b.default.sources.SILENT)}},"code exit":{key:P.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),i=n[0],a=n[1],o=(new f.default).retain(e.index+i.length()-a-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,b.default.sources.USER)}},"embed left":L(P.keys.LEFT,!1),"embed left shift":L(P.keys.LEFT,!0),"embed right":L(P.keys.RIGHT,!1),"embed right shift":L(P.keys.RIGHT,!0)}},t.default=P,t.SHORTKEY=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=function(){function e(e,t){for(var n=0;n-1}d.blotName="link",d.tagName="A",d.SANITIZED_URL="about:blank",d.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=d,t.sanitize=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=j(i),a=n(5),o=j(a),s=n(4),l=j(s),c=n(16),u=j(c),d=n(25),p=j(d),f=n(24),h=j(f),m=n(35),_=j(m),g=n(6),v=j(g),b=n(22),y=j(b),w=n(7),x=j(w),k=n(55),O=j(k),S=n(42),E=j(S),T=n(23),N=j(T);function j(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":u.default,"blots/container":p.default,"blots/cursor":h.default,"blots/embed":_.default,"blots/inline":v.default,"blots/scroll":y.default,"blots/text":x.default,"modules/clipboard":O.default,"modules/history":E.default,"modules/keyboard":N.default}),r.default.register(l.default,u.default,h.default,v.default,y.default,x.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e){this.domNode=e,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return i.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},e.prototype.deleteAt=function(e,t){var n=this.isolate(e,t);n.remove()},e.prototype.formatAt=function(e,t,n,r){var a=this.isolate(e,t);if(null!=i.query(n,i.Scope.BLOT)&&r)a.wrap(n,r);else if(null!=i.query(n,i.Scope.ATTRIBUTE)){var o=i.create(this.statics.scope);a.wrap(o),o.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?i.create("text",t):i.create(t,n),a=this.split(e);this.parent.insertBefore(r,a)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?i.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?i.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(32),a=n(33),o=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=i.default.keys(this.domNode),n=r.default.keys(this.domNode),s=a.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=o.query(t,o.Scope.ATTRIBUTE);n instanceof i.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var i=t.attributes[n].value(t.domNode);e.format(n,i)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);function a(e,t){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){var t=a(e,this.keyName);t.forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=a(e,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(e,n)?n:""},t}(r.default);t.default=o},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);function a(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){var t=e.split(":");return t[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[a(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[a(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[a(this.keyName)];return this.canAdd(e,t)?t:""},t}(r.default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ni&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=i;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(c.default);function m(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=a.default.query(e,a.default.Scope.BLOCK)})))}function _(e){var t=e.reduce((function(e,t){return e+=t.delete||0,e}),0),n=e.length()-t;return m(e)&&(n-=1),n}h.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=h,t.getLastChangeIndex=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,u.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=I(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var i=n.index+n.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),e,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",u.default.sources.USER),this.quill.setSelection(i+2,u.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),t}(x.default);function I(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var i=document.createElement("option");t===n?i.setAttribute("selected","selected"):i.setAttribute("value",t),e.appendChild(i)}))}t.BaseTooltip=q,t.default=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){var t,n=this.iterator();while(t=n())if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){var t=0,n=this.head;while(null!=n){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);var n,i=this.iterator();while(n=i()){var r=n.length();if(es?n(i,e-s,Math.min(t,s+c-e)):n(i,0,Math.min(c,e+t-s)),s+=c}}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){var n,i=this.iterator();while(n=i())t=e(t,n);return t},e}();t.default=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),a=n(1),o={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,o),n.attach(),n}return i(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,i,r){this.update(),e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.insertAt=function(t,n,i){this.update(),e.prototype.insertAt.call(this,t,n,i)},t.prototype.optimize=function(t,n){var i=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);var o=[].slice.call(this.observer.takeRecords());while(o.length>0)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==i&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},c=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof r.default&&e.children.forEach(c),e.optimize(n))},u=t,d=0;u.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");u.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof r.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(c),u=[].slice.call(this.observer.takeRecords()),o=u.slice();while(o.length>0)t.push(o.pop())}},t.prototype.update=function(t,n){var i=this;void 0===n&&(n={}),t=t||this.observer.takeRecords(),t.map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==i&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(r.default);t.default=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),a=n(1);function o(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,i){var a=this;n!==this.statics.blotName||i?e.prototype.format.call(this,n,i):(this.children.forEach((function(e){e instanceof r.default||(e=e.wrap(t.blotName,!0)),a.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,i,r){if(null!=this.formats()[i]||a.query(i,a.Scope.ATTRIBUTE)){var o=this.isolate(t,n);o.format(i,r)}else e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&o(i,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(r.default);t.default=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),a=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){var i=a.query(t.blotName).tagName;if(n.tagName!==i)return e.formats.call(this,n)},t.prototype.format=function(n,i){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||i?e.prototype.format.call(this,n,i):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,i,r){null!=a.query(i,a.Scope.BLOCK)?this.format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.insertAt=function(t,n,i){if(null==i||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,i);else{var r=this.split(t),o=a.create(n,i);r.parent.insertBefore(o,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(r.default);t.default=o},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,i,r){0===t&&n===this.length()?this.format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(r.default);t.default=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),a=n(1),o=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return i(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t["normalize"]&&(t=t["normalize"]()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,i){null==i?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,i)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(r.default);t.default=o},function(e,t,n){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return-1!==i&&i===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),i=n.length>>>0,r=arguments[1],a=0;at.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return o=[[i,l.substring(0,u)],[r,c],[i,l.substring(u+c.length)]],e.length>t.length&&(o[0][0]=o[2][0]=n),o;if(1==c.length)return[[n,e],[i,t]];var p=d(e,t);if(p){var f=p[0],h=p[1],m=p[2],_=p[3],g=p[4],v=a(f,m),b=a(h,_);return v.concat([[r,g]],b)}return s(e,t)}function s(e,t){for(var r=e.length,a=t.length,o=Math.ceil((r+a)/2),s=o,c=2*o,u=new Array(c),d=new Array(c),p=0;pr)_+=2;else if(x>a)m+=2;else if(h){var k=s+f-y;if(k>=0&&k=O)return l(e,t,T,x)}}}for(var S=-b+g;S<=b-v;S+=2){k=s+S;O=S==-b||S!=b&&d[k-1]r)v+=2;else if(E>a)g+=2;else if(!h){w=s+f-S;if(w>=0&&w=O)return l(e,t,T,x)}}}}return[[n,e],[i,t]]}function l(e,t,n,i){var r=e.substring(0,n),o=t.substring(0,i),s=e.substring(n),l=t.substring(i),c=a(r,o),u=a(s,l);return c.concat(u)}function c(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,i=Math.min(e.length,t.length),r=i,a=0;while(nt.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length=e.length?[i,r,a,o,d]:null}var a,o,s,l,d,p=r(n,i,Math.ceil(n.length/4)),f=r(n,i,Math.ceil(n.length/2));if(!p&&!f)return null;a=f?p&&p[4].length>f[4].length?p:f:p,e.length>t.length?(o=a[0],s=a[1],l=a[2],d=a[3]):(l=a[0],d=a[1],o=a[2],s=a[3]);var h=a[4];return[o,s,l,d,h]}function p(e){e.push([r,""]);var t,a=0,o=0,s=0,l="",d="";while(a1?(0!==o&&0!==s&&(t=c(d,l),0!==t&&(a-o-s>0&&e[a-o-s-1][0]==r?e[a-o-s-1][1]+=d.substring(0,t):(e.splice(0,0,[r,d.substring(0,t)]),a++),d=d.substring(t),l=l.substring(t)),t=u(d,l),0!==t&&(e[a][1]=d.substring(d.length-t)+e[a][1],d=d.substring(0,d.length-t),l=l.substring(0,l.length-t))),0===o?e.splice(a-s,o+s,[i,d]):0===s?e.splice(a-o,o+s,[n,l]):e.splice(a-o-s,o+s,[n,l],[i,d]),a=a-o-s+(o?1:0)+(s?1:0)+1):0!==a&&e[a-1][0]==r?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,s=0,o=0,l="",d="";break}""===e[e.length-1][1]&&e.pop();var f=!1;a=1;while(a0&&i.splice(a+2,0,[s[0],l]),g(i,a,3)}return e}function _(e){for(var t=!1,a=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s0&&l.push(e[s]);return l}function g(e,t,n){for(var i=t+n-1;i>=0&&i>=t-1;i--)if(i+1\r?\n +\<"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[w.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new c.default).insert(n,T({},w.default.blotName,t[w.default.blotName]))}var i=this.prepareMatching(),a=r(i,2),o=a[0],s=a[1],l=z(this.container,o,s);return $(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new c.default).retain(l.length()-1).delete(1))),P.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,f.default.sources.SILENT);else{var i=this.convert(t);this.quill.updateContents((new c.default).retain(e).concat(i),n),this.quill.setSelection(e+i.length(),f.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),i=(new c.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(f.default.sources.SILENT),setTimeout((function(){i=i.concat(t.convert()).delete(n.length),t.quill.updateContents(i,f.default.sources.USER),t.quill.setSelection(i.length()-n.length,f.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(i){var a=r(i,2),o=a[0],s=a[1];switch(o){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(o),(function(e){e[L]=e[L]||[],e[L].push(s)}));break}})),[t,n]}}]),t}(g.default);function R(e,t,n){return"object"===("undefined"===typeof t?"undefined":i(t))?Object.keys(t).reduce((function(e,n){return R(e,n,t[n])}),e):e.reduce((function(e,i){return i.attributes&&i.attributes[t]?e.push(i):e.insert(i.insert,(0,s.default)({},T({},t,n),i.attributes))}),new c.default)}function M(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function $(e,t){for(var n="",i=e.ops.length-1;i>=0&&n.length-1}function z(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new c.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,r){var a=z(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(a=t.reduce((function(e,t){return t(r,e)}),a),a=(r[L]||[]).reduce((function(e,t){return t(r,e)}),a)),i.concat(a)}),new c.default):new c.default}function B(e,t,n){return R(n,e,!0)}function U(e,t){var n=d.default.Attributor.Attribute.keys(e),i=d.default.Attributor.Class.keys(e),r=d.default.Attributor.Style.keys(e),a={};return n.concat(i).concat(r).forEach((function(t){var n=d.default.query(t,d.default.Scope.ATTRIBUTE);null!=n&&(a[n.attrName]=n.value(e),a[n.attrName])||(n=I[t],null==n||n.attrName!==t&&n.keyName!==t||(a[n.attrName]=n.value(e)||void 0),n=D[t],null==n||n.attrName!==t&&n.keyName!==t||(n=D[t],a[n.attrName]=n.value(e)||void 0))})),Object.keys(a).length>0&&(t=R(t,a)),t}function V(e,t){var n=d.default.query(e);if(null==n)return t;if(n.prototype instanceof d.default.Embed){var i={},r=n.value(e);null!=r&&(i[n.blotName]=r,t=(new c.default).insert(i,n.formats(e)))}else"function"===typeof n.formats&&(t=R(t,n.blotName,n.formats(e)));return t}function K(e,t){return $(t,"\n")||t.insert("\n"),t}function H(){return new c.default}function W(e,t){var n=d.default.query(e);if(null==n||"list-item"!==n.blotName||!$(t,"\n"))return t;var i=-1,r=e.parentNode;while(!r.classList.contains("ql-clipboard"))"list"===(d.default.query(r)||{}).blotName&&(i+=1),r=r.parentNode;return i<=0?t:t.compose((new c.default).retain(t.length()-1).retain(1,{indent:i}))}function G(e,t){return $(t,"\n")||(F(e)||t.length()>0&&e.nextSibling&&F(e.nextSibling))&&t.insert("\n"),t}function Q(e,t){if(F(e)&&null!=e.nextElementSibling&&!$(t,"\n\n")){var n=e.offsetHeight+parseFloat(M(e).marginTop)+parseFloat(M(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function Y(e,t){var n={},i=e.style||{};return i.fontStyle&&"italic"===M(e).fontStyle&&(n.italic=!0),i.fontWeight&&(M(e).fontWeight.startsWith("bold")||parseInt(M(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=R(t,n)),parseFloat(i.textIndent||0)>0&&(t=(new c.default).insert("\t").concat(t)),t}function X(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!M(e.parentNode).whiteSpace.startsWith("pre")){var i=function(e,t){return t=t.replace(/[^\u00a0]/g,""),t.length<1&&e?" ":t};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,i.bind(i,!0)),(null==e.previousSibling&&F(e.parentNode)||null!=e.previousSibling&&F(e.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(null==e.nextSibling&&F(e.parentNode)||null!=e.nextSibling&&F(e.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return t.insert(n)}A.DEFAULTS={matchers:[],matchVisual:!0},t.default=A,t.matchAttributor=U,t.matchBlot=V,t.matchNewline=G,t.matchSpacing=Q,t.matchText=X},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ni.right&&(a=i.right-r.right,this.root.style.left=t+a+"px"),r.lefti.bottom){var o=r.bottom-r.top,s=e.bottom-e.top+o;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=function(){function e(e,t){for(var n=0;n','','',''].join(""),t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(29),r=ne(i),a=n(36),o=n(38),s=n(64),l=n(65),c=ne(l),u=n(66),d=ne(u),p=n(67),f=ne(p),h=n(37),m=n(26),_=n(39),g=n(40),v=n(56),b=ne(v),y=n(68),w=ne(y),x=n(27),k=ne(x),O=n(69),S=ne(O),E=n(70),T=ne(E),N=n(71),j=ne(N),C=n(72),P=ne(C),L=n(73),q=ne(L),I=n(13),D=ne(I),A=n(74),R=ne(A),M=n(75),$=ne(M),F=n(57),z=ne(F),B=n(41),U=ne(B),V=n(28),K=ne(V),H=n(59),W=ne(H),G=n(60),Q=ne(G),Y=n(61),X=ne(Y),Z=n(108),J=ne(Z),ee=n(62),te=ne(ee);function ne(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":h.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":_.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":h.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":_.FontStyle,"attributors/style/size":g.SizeStyle},!0),r.default.register({"formats/align":a.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":s.IndentClass,"formats/background":h.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":_.FontClass,"formats/size":g.SizeClass,"formats/blockquote":c.default,"formats/code-block":D.default,"formats/header":d.default,"formats/list":f.default,"formats/bold":b.default,"formats/code":I.Code,"formats/italic":w.default,"formats/link":k.default,"formats/script":S.default,"formats/strike":T.default,"formats/underline":j.default,"formats/image":P.default,"formats/video":q.default,"formats/list/item":p.ListItem,"modules/formula":R.default,"modules/syntax":$.default,"modules/toolbar":z.default,"themes/bubble":J.default,"themes/snow":te.default,"ui/icons":U.default,"ui/picker":K.default,"ui/icon-picker":Q.default,"ui/color-picker":W.default,"ui/tooltip":X.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function e(e,t){for(var n=0;n0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof _)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var i=null==n?this.length():n.offset(this),a=this.split(i);a.parent.insertBefore(e,a)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(u.default);g.blotName="list",g.scope=o.default.Scope.BLOCK_BLOT,g.tagName=["OL","UL"],g.defaultChild="list-item",g.allowedChildren=[_],t.ListItem=_,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(56),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(r.default);c.blotName="italic",c.tagName=["EM","I"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return p.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return p.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function e(e,t){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(p.default);g.className="ql-syntax";var v=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),b=function(e){function t(e,n){h(this,t);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof i.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){i.highlight(),r=null}),i.options.interval)})),i.highlight(),i}return _(t,e),i(t,null,[{key:"register",value:function(){l.default.register(v,!0),l.default.register(g,!0)}}]),i(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(g).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(u.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(e){var t=window.hljs.highlightAuto(e);return t.value}}(),interval:1e3},t.CodeBlock=g,t.CodeToken=v,t.default=b},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},r=function(){function e(e,t){for(var n=0;n0&&r===l.default.sources.USER){i.show(),i.root.style.left="0px",i.root.style.width="",i.root.style.width=i.root.offsetWidth+"px";var a=i.quill.getLines(t.index,t.length);if(1===a.length)i.position(i.quill.getBounds(t));else{var o=a[a.length-1],s=i.quill.getIndex(o),c=Math.min(o.length()-1,t.index+t.length-s),u=i.quill.getBounds(new d.Range(s,c));i.position(u)}}else document.activeElement!==i.textbox&&i.quill.hasFocus()&&i.hide()})),i}return g(t,e),r(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(c.BaseTooltip);y.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=y,t.default=b},function(e,t,n){e.exports=n(63)}])["default"]}))}).call(this,n("fd40").Buffer)},"0249":function(e,t,n){"use strict";n("d033")},"024b":function(e,t,n){},"02f2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"系统模块",prop:"title"}},[n("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入系统模块",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.query.title,callback:function(t){e.$set(e.queryParams.query,"title",t)},expression:"queryParams.query.title"}})],1),n("el-form-item",{attrs:{label:"操作人员",prop:"operName"}},[n("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入操作人员",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.query.operName,callback:function(t){e.$set(e.queryParams.query,"operName",t)},expression:"queryParams.query.operName"}})],1),n("el-form-item",{attrs:{label:"类型",prop:"businessType"}},[n("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"操作类型",clearable:"",size:"small"},model:{value:e.queryParams.query.businessType,callback:function(t){e.$set(e.queryParams.query,"businessType",t)},expression:"queryParams.query.businessType"}},e._l(e.typeOptions,(function(e){return n("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),n("el-form-item",{attrs:{label:"状态",prop:"status"}},[n("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"操作状态",clearable:"",size:"small"},model:{value:e.queryParams.query.status,callback:function(t){e.$set(e.queryParams.query,"status",t)},expression:"queryParams.query.status"}},e._l(e.statusOptions,(function(e){return n("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),n("el-form-item",{attrs:{label:"操作时间"}},[n("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini"},on:{click:e.handleClean}},[e._v("清空")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:export"],expression:"['system:config:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),n("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),n("el-table-column",{attrs:{label:"日志编号",align:"center",prop:"operId"}}),n("el-table-column",{attrs:{label:"系统模块",align:"center",prop:"title"}}),n("el-table-column",{attrs:{label:"操作类型",align:"center",prop:"businessType",formatter:e.typeFormat}}),n("el-table-column",{attrs:{label:"请求方式",align:"center",prop:"requestMethod"}}),n("el-table-column",{attrs:{label:"操作人员",align:"center",prop:"operName"}}),n("el-table-column",{attrs:{label:"主机",align:"center",prop:"operIp",width:"130","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"操作地点",align:"center",prop:"operLocation","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"操作状态",align:"center",prop:"status",formatter:e.statusFormat}}),n("el-table-column",{attrs:{label:"操作日期",align:"center",prop:"operTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.parseTime(t.row.operTime)))])]}}])}),n("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:query"],expression:"['monitor:operlog:query']"}],attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(n){return e.handleView(t.row,t.index)}}},[e._v("详细")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),n("el-dialog",{attrs:{title:"操作日志详细",visible:e.open,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",size:"mini"}},[n("el-row",[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"操作模块:"}},[e._v(e._s(e.form.title)+" / "+e._s(e.typeFormat(e.form)))]),n("el-form-item",{attrs:{label:"登录信息:"}},[e._v(e._s(e.form.operName)+" / "+e._s(e.form.operIp)+" / "+e._s(e.form.operLocation))])],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"请求地址:"}},[e._v(e._s(e.form.operUrl))]),n("el-form-item",{attrs:{label:"请求方式:"}},[e._v(e._s(e.form.requestMethod))])],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"操作方法:"}},[e._v(e._s(e.form.method))])],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"请求参数:"}},[e._v(e._s(e.form.operParam))])],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"返回参数:"}},[e._v(e._s(e.form.jsonResult))])],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"操作状态:"}},[0===e.form.status?n("div",[e._v("正常")]):1===e.form.status?n("div",[e._v("失败")]):e._e()])],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"操作时间:"}},[e._v(e._s(e.parseTime(e.form.operTime)))])],1),n("el-col",{attrs:{span:24}},[1===e.form.status?n("el-form-item",{attrs:{label:"异常信息:"}},[e._v(e._s(e.form.errorMsg))]):e._e()],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.open=!1}}},[e._v("关 闭")])],1)],1)],1)},r=[],a=(n("6540"),n("b775"));function o(e){return Object(a["a"])({url:"/monitor/operlog/list",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/monitor/operlog/"+e,method:"delete"})}function l(){return Object(a["a"])({url:"/monitor/operlog/clean",method:"delete"})}function c(e){return Object(a["a"])({url:"/monitor/operlog/export",method:"get",params:e})}var u={name:"Operlog",data:function(){return{loading:!0,ids:[],multiple:!0,showSearch:!0,total:0,list:[],open:!1,typeOptions:[],statusOptions:[],dateRange:[],form:{},queryParams:{pageNum:1,pageSize:10,query:{title:void 0,operName:void 0,businessType:void 0,status:void 0}}}},created:function(){var e=this;this.getList(),this.getDicts("sys_oper_type").then((function(t){e.typeOptions=t.data})),this.getDicts("sys_common_status").then((function(t){e.statusOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,o(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.list=t.rows,e.total=t.total,e.loading=!1}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},typeFormat:function(e,t){return this.selectDictLabel(this.typeOptions,e.businessType)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.operId})),this.multiple=!e.length},handleView:function(e){this.open=!0,this.form=e},handleDelete:function(e){var t=this,n=e.operId||this.ids;this.$confirm('是否确认删除日志编号为"'+n+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return s(n)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleClean:function(){var e=this;this.$confirm("是否确认清空所有操作日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return l()})).then((function(){e.getList(),e.msgSuccess("清空成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有操作日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return c(t)})).then((function(t){e.download(t.data)}))}}},d=u,p=n("cba8"),f=Object(p["a"])(d,i,r,!1,null,null,null);t["default"]=f.exports},"046a":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"字典名称",prop:"dictName"}},[n("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入字典名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.query.dictName,callback:function(t){e.$set(e.queryParams.query,"dictName",t)},expression:"queryParams.query.dictName"}})],1),n("el-form-item",{attrs:{label:"字典类型",prop:"dictType"}},[n("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入字典类型",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.query.dictType,callback:function(t){e.$set(e.queryParams.query,"dictType",t)},expression:"queryParams.query.dictType"}})],1),n("el-form-item",{attrs:{label:"状态",prop:"status"}},[n("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"字典状态",clearable:"",size:"small"},model:{value:e.queryParams.query.status,callback:function(t){e.$set(e.queryParams.query,"status",t)},expression:"queryParams.query.status"}},e._l(e.statusOptions,(function(e){return n("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),n("el-form-item",{attrs:{label:"创建时间"}},[n("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:add"],expression:"['system:dict:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:edit"],expression:"['system:dict:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:remove"],expression:"['system:dict:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:export"],expression:"['system:dict:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:remove"],expression:"['system:dict:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-refresh",size:"mini"},on:{click:e.handleClearCache}},[e._v("清理缓存")])],1),n("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.typeList},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),n("el-table-column",{attrs:{label:"字典编号",align:"center",prop:"dictId"}}),n("el-table-column",{attrs:{label:"字典名称",align:"center",prop:"dictName","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"字典类型",align:"center","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[n("router-link",{staticClass:"link-type",attrs:{to:"/dict/type/data/"+t.row.dictId}},[n("span",[e._v(e._s(t.row.dictType))])])]}}])}),n("el-table-column",{attrs:{label:"状态",align:"center",prop:"status",formatter:e.statusFormat}}),n("el-table-column",{attrs:{label:"备注",align:"center",prop:"remark","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),n("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:edit"],expression:"['system:dict:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(n){return e.handleUpdate(t.row)}}},[e._v("修改")]),n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:remove"],expression:"['system:dict:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(n){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),n("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"字典名称",prop:"dictName"}},[n("el-input",{attrs:{placeholder:"请输入字典名称"},model:{value:e.form.dictName,callback:function(t){e.$set(e.form,"dictName",t)},expression:"form.dictName"}})],1),n("el-form-item",{attrs:{label:"字典类型",prop:"dictType"}},[n("el-input",{attrs:{placeholder:"请输入字典类型"},model:{value:e.form.dictType,callback:function(t){e.$set(e.form,"dictType",t)},expression:"form.dictType"}})],1),n("el-form-item",{attrs:{label:"状态",prop:"status"}},[n("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(t){return n("el-radio",{key:t.dictValue,attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1),n("el-form-item",{attrs:{label:"备注",prop:"remark"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),n("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},r=[],a=(n("6540"),n("ed45")),o={name:"Dict",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,typeList:[],title:"",open:!1,statusOptions:[],dateRange:[],queryParams:{pageNum:1,pageSize:10,query:{dictName:void 0,dictType:void 0,status:void 0}},form:{},rules:{dictName:[{required:!0,message:"字典名称不能为空",trigger:"blur"}],dictType:[{required:!0,message:"字典类型不能为空",trigger:"blur"}]}}},created:function(){var e=this;this.getList(),this.getDicts("sys_normal_disable").then((function(t){e.statusOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,Object(a["f"])(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.typeList=t.rows,e.total=t.total,e.loading=!1}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={dictId:void 0,dictName:void 0,dictType:void 0,status:"0",remark:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleAdd:function(){this.reset(),this.open=!0,this.title="添加字典类型"},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.dictId})),this.single=1!==e.length,this.multiple=!e.length},handleUpdate:function(e){var t=this;this.reset();var n=e.dictId||this.ids;Object(a["e"])(n).then((function(e){t.form=e.data,t.open=!0,t.title="修改字典类型"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(void 0!=e.form.dictId?Object(a["h"])(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(a["a"])(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,n=e.dictId||this.ids;this.$confirm('是否确认删除字典编号为"'+n+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(a["c"])(n)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有类型数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(a["d"])(t)})).then((function(t){e.download(t.data)}))},handleClearCache:function(){var e=this;Object(a["b"])().then((function(t){e.msgSuccess("清理成功")}))}}},s=o,l=n("cba8"),c=Object(l["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},"0a5c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.className,style:{height:e.height,width:e.width}})},r=[],a=n("4d28"),o=n.n(a),s=n("feb2");n("d8ac");var l=3e3,c={mixins:[s["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=o.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},radar:{radius:"66%",center:["50%","42%"],splitNumber:8,splitArea:{areaStyle:{color:"rgba(127,95,132,.3)",opacity:1,shadowBlur:45,shadowColor:"rgba(0,0,0,.5)",shadowOffsetX:0,shadowOffsetY:15}},indicator:[{name:"Sales",max:1e4},{name:"Administration",max:2e4},{name:"Information Techology",max:2e4},{name:"Customer Support",max:2e4},{name:"Development",max:2e4},{name:"Marketing",max:2e4}]},legend:{left:"center",bottom:"10",data:["Allocated Budget","Expected Spending","Actual Spending"]},series:[{type:"radar",symbolSize:0,areaStyle:{normal:{shadowBlur:13,shadowColor:"rgba(0,0,0,.2)",shadowOffsetX:0,shadowOffsetY:10,opacity:1}},data:[{value:[5e3,7e3,12e3,11e3,15e3,14e3],name:"Allocated Budget"},{value:[4e3,9e3,15e3,15e3,13e3,11e3],name:"Expected Spending"},{value:[5500,11e3,12e3,15e3,12e3,12e3],name:"Actual Spending"}],animationDuration:l}]})}}},u=c,d=n("cba8"),p=Object(d["a"])(u,i,r,!1,null,null,null);t["default"]=p.exports},"0d42":function(e,t,n){},"121a":function(e,t,n){},"13cf":function(e,t,n){"use strict";var i=n("a09b"),r=n("bfc3").find,a=n("c119"),o=n("c1e5"),s="find",l=!0,c=o(s);s in[]&&Array(1)[s]((function(){l=!1})),i({target:"Array",proto:!0,forced:l||!c},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},"15cc1":function(e,t,n){"use strict";n("1680")},1680:function(e,t,n){},1720:function(e,t,n){"use strict";n("3a6f")},"172d":function(e,t,n){},1959:function(e,t,n){},"1a2c":function(e,t,n){"use strict";n("e7a2")},"1d7f":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container home"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{sm:24,lg:24}},[n("blockquote",{staticClass:"text-warning",staticStyle:{"font-size":"14px"}},[e._v(" 领取阿里云通用云产品1888优惠券 "),n("br"),n("el-link",{attrs:{href:"https://www.aliyun.com/minisite/goods?userCode=brki8iof",type:"primary",target:"_blank"}},[e._v("https://www.aliyun.com/minisite/goods?userCode=brki8iof")]),n("br"),e._v(" 领取腾讯云通用云产品2860优惠券 "),n("br"),n("el-link",{attrs:{href:"https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console",type:"primary",target:"_blank"}},[e._v("https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console")]),n("br"),e._v(" 阿里云服务器折扣区 "),n("el-link",{attrs:{href:"http://aly.ruoyi.vip",type:"primary",target:"_blank"}},[e._v(">☛☛点我进入☚☚")]),e._v(" 腾讯云服务器秒杀区 "),n("el-link",{attrs:{href:"http://txy.ruoyi.vip",type:"primary",target:"_blank"}},[e._v(">☛☛点我进入☚☚")]),n("br"),n("h4",{staticClass:"text-danger"},[e._v(" 云产品通用红包,可叠加官网常规优惠使用。(仅限新用户) ")])],1),n("hr")])],1),n("el-row",{attrs:{gutter:20}},[n("el-col",{staticStyle:{"padding-left":"20px"},attrs:{sm:24,lg:12}},[n("h2",[e._v("若依后台管理框架")]),n("p",[e._v(" 一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了若依管理系统。,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。 ")]),n("p",[n("b",[e._v("当前版本:")]),e._v(" "),n("span",[e._v("v"+e._s(e.version))])]),n("p",[n("el-tag",{attrs:{type:"danger"}},[e._v("¥免费开源")])],1),n("p",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-cloudy",plain:""},on:{click:function(t){return e.goTarget("https://gitee.com/y_project/RuoYi-Vue")}}},[e._v("访问码云")]),n("el-button",{attrs:{size:"mini",icon:"el-icon-s-home",plain:""},on:{click:function(t){return e.goTarget("http://ruoyi.vip")}}},[e._v("访问主页")])],1)]),n("el-col",{staticStyle:{"padding-left":"50px"},attrs:{sm:24,lg:12}},[n("el-row",[n("el-col",{attrs:{span:12}},[n("h2",[e._v("技术选型")])])],1),n("el-row",[n("el-col",{attrs:{span:6}},[n("h4",[e._v("后端技术")]),n("ul",[n("li",[e._v("SpringBoot")]),n("li",[e._v("Spring Security")]),n("li",[e._v("JWT")]),n("li",[e._v("MyBatis")]),n("li",[e._v("Druid")]),n("li",[e._v("Fastjson")]),n("li",[e._v("...")])])]),n("el-col",{attrs:{span:6}},[n("h4",[e._v("前端技术")]),n("ul",[n("li",[e._v("Vue")]),n("li",[e._v("Vuex")]),n("li",[e._v("Element-ui")]),n("li",[e._v("Axios")]),n("li",[e._v("Sass")]),n("li",[e._v("Quill")]),n("li",[e._v("...")])])])],1)],1)],1),n("el-divider"),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{xs:24,sm:24,md:12,lg:8}},[n("el-card",{staticClass:"update-log"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("联系信息")])]),n("div",{staticClass:"body"},[n("p",[n("i",{staticClass:"el-icon-s-promotion"}),e._v(" 官网:"),n("el-link",{attrs:{href:"http://www.ruoyi.vip",target:"_blank"}},[e._v("http://www.ruoyi.vip")])],1),n("p",[n("i",{staticClass:"el-icon-user-solid"}),e._v(" QQ群:"),n("s",[e._v("满937441")]),n("s",[e._v("满887144332")]),e._v(" "),n("s",[e._v("满180251782")]),n("a",{attrs:{href:"https://jq.qq.com/?_wv=1027&k=4WWwqNxN",target:"_blank"}},[e._v(" 104180207")])]),n("p",[n("i",{staticClass:"el-icon-chat-dot-round"}),e._v(" 微信:"),n("a",{attrs:{href:"javascript:;"}},[e._v("/ *若依")])]),n("p",[n("i",{staticClass:"el-icon-money"}),e._v(" 支付宝:"),n("a",{staticClass:"支付宝信息",attrs:{href:"javascript:;"}},[e._v("/ *若依")])])])])],1),n("el-col",{attrs:{xs:24,sm:24,md:12,lg:8}},[n("el-card",{staticClass:"update-log"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("更新日志")])]),n("el-collapse",{attrs:{accordion:""}},[n("el-collapse-item",{attrs:{title:"v3.3.0 - 2020-12-14"}},[n("ol",[n("li",[e._v("新增缓存监控功能")]),n("li",[e._v("支持主题风格配置")]),n("li",[e._v("修复多级菜单之间切换无法缓存的问题")]),n("li",[e._v("多级菜单自动配置组件")]),n("li",[e._v("代码生成预览支持高亮显示")]),n("li",[e._v("支持Get请求映射Params参数")]),n("li",[e._v("删除用户和角色解绑关联")]),n("li",[e._v("去除用户手机邮箱部门必填验证")]),n("li",[e._v("Excel支持注解align对齐方式")]),n("li",[e._v("Excel支持导入Boolean型数据")]),n("li",[e._v("优化头像样式,鼠标移入悬停遮罩")]),n("li",[e._v("代码生成预览提供滚动机制")]),n("li",[e._v("代码生成删除多余的数字float类型")]),n("li",[e._v("修正转换字符串的目标字符集属性")]),n("li",[e._v("回显数据字典防止空值报错")]),n("li",[e._v("日志记录增加过滤多文件场景")]),n("li",[e._v("修改缓存Set方法可能导致嵌套的问题")]),n("li",[e._v("移除前端一些多余的依赖")]),n("li",[e._v("防止安全扫描YUI出现的风险提示")]),n("li",[e._v("修改node-sass为dart-sass")]),n("li",[e._v("升级SpringBoot到最新版本2.1.18")]),n("li",[e._v("升级poi到最新版本4.1.2")]),n("li",[e._v("升级oshi到最新版本v5.3.6")]),n("li",[e._v("升级bitwalker到最新版本1.21")]),n("li",[e._v("升级axios到最新版本0.21.0")]),n("li",[e._v("升级element-ui到最新版本2.14.1")]),n("li",[e._v("升级vue到最新版本2.6.12")]),n("li",[e._v("升级vuex到最新版本3.6.0")]),n("li",[e._v("升级vue-cli到版本4.5.9")]),n("li",[e._v("升级vue-router到最新版本3.4.9")]),n("li",[e._v("升级vue-cli到最新版本4.4.6")]),n("li",[e._v("升级vue-cropper到最新版本0.5.5")]),n("li",[e._v("升级clipboard到最新版本2.0.6")]),n("li",[e._v("升级core-js到最新版本3.8.1")]),n("li",[e._v("升级echarts到最新版本4.9.0")]),n("li",[e._v("升级file-saver到最新版本2.0.4")]),n("li",[e._v("升级fuse.js到最新版本6.4.3")]),n("li",[e._v("升级js-beautify到最新版本1.13.0")]),n("li",[e._v("升级js-cookie到最新版本2.2.1")]),n("li",[e._v("升级path-to-regexp到最新版本6.2.0")]),n("li",[e._v("升级quill到最新版本1.3.7")]),n("li",[e._v("升级screenfull到最新版本5.0.2")]),n("li",[e._v("升级sortablejs到最新版本1.10.2")]),n("li",[e._v("升级vuedraggable到最新版本2.24.3")]),n("li",[e._v("升级chalk到最新版本4.1.0")]),n("li",[e._v("升级eslint到最新版本7.15.0")]),n("li",[e._v("升级eslint-plugin-vue到最新版本7.2.0")]),n("li",[e._v("升级lint-staged到最新版本10.5.3")]),n("li",[e._v("升级runjs到最新版本4.4.2")]),n("li",[e._v("升级sass-loader到最新版本10.1.0")]),n("li",[e._v("升级script-ext-html-webpack-plugin到最新版本2.1.5")]),n("li",[e._v("升级svg-sprite-loader到最新版本5.1.1")]),n("li",[e._v("升级vue-template-compiler到最新版本2.6.12")]),n("li",[e._v("其他细节优化")])])]),n("el-collapse-item",{attrs:{title:"v3.2.1 - 2020-11-18"}},[n("ol",[n("li",[e._v("阻止任意文件下载漏洞")]),n("li",[e._v("代码生成支持上传控件")]),n("li",[e._v("新增图片上传组件")]),n("li",[e._v("调整默认首页")]),n("li",[e._v("升级druid到最新版本v1.2.2")]),n("li",[e._v("mapperLocations配置支持分隔符")]),n("li",[e._v("权限信息调整")]),n("li",[e._v("调整sql默认时间")]),n("li",[e._v("解决代码生成没有bit类型的问题")]),n("li",[e._v("升级pagehelper到最新版1.3.0")])])]),n("el-collapse-item",{attrs:{title:"v3.2.0 - 2020-10-10"}},[n("ol",[n("li",[e._v("升级springboot版本到2.1.17 提升安全性")]),n("li",[e._v("升级oshi到最新版本v5.2.5")]),n("li",[e._v("升级druid到最新版本v1.2.1")]),n("li",[e._v("升级jjwt到版本0.9.1")]),n("li",[e._v("升级fastjson到最新版1.2.74")]),n("li",[e._v("修改sass为node-sass,避免el-icon图标乱码")]),n("li",[e._v("代码生成支持同步数据库")]),n("li",[e._v("代码生成支持富文本控件")]),n("li",[e._v("代码生成页面时不忽略remark属性")]),n("li",[e._v("代码生成添加select必填选项")]),n("li",[e._v("Excel导出类型NUMERIC支持精度浮点类型")]),n("li",[e._v("Excel导出targetAttr优化获取值,防止get方法不规范")]),n("li",[e._v("Excel注解支持自动统计数据总和")]),n("li",[e._v("Excel注解支持设置BigDecimal精度&舍入规则")]),n("li",[e._v("菜单&数据权限新增(展开/折叠 全选/全不选 父子联动)")]),n("li",[e._v("允许用户分配到部门父节点")]),n("li",[e._v("菜单新增是否缓存keep-alive")]),n("li",[e._v("表格操作列间距调整")]),n("li",[e._v("限制系统内置参数不允许删除")]),n("li",[e._v("富文本组件优化,支持自定义高度&图片冲突问题")]),n("li",[e._v("富文本工具栏样式对齐")]),n("li",[e._v("导入excel整形值校验优化")]),n("li",[e._v("修复页签关闭所有时固定标签路由不刷新问题")]),n("li",[e._v("表单构建布局型组件新增按钮")]),n("li",[e._v("左侧菜单文字过长显示省略号")]),n("li",[e._v("修正根节点为子部门时,树状结构显示问题")]),n("li",[e._v("修正调用目标字符串最大长度")]),n("li",[e._v("修正菜单提示信息错误")]),n("li",[e._v("修正定时任务执行一次权限标识")]),n("li",[e._v("修正数据库字符串类型nvarchar")]),n("li",[e._v("优化递归子节点")]),n("li",[e._v("优化数据权限判断")]),n("li",[e._v("其他细节优化")])])]),n("el-collapse-item",{attrs:{title:"v3.1.0 - 2020-08-13"}},[n("ol",[n("li",[e._v("表格工具栏右侧添加刷新&显隐查询组件")]),n("li",[e._v("后端支持CORS跨域请求")]),n("li",[e._v("代码生成支持选择上级菜单")]),n("li",[e._v("代码生成支持自定义路径")]),n("li",[e._v("代码生成支持复选框")]),n("li",[e._v("Excel导出导入支持dictType字典类型")]),n("li",[e._v("Excel支持分割字符串组内容")]),n("li",[e._v("验证码类型支持(数组计算、字符验证)")]),n("li",[e._v("升级vue-cli版本到4.4.4")]),n("li",[e._v("修改 node-sass 为 dart-sass")]),n("li",[e._v("表单类型为Integer/Long设置整形默认值")]),n("li",[e._v("代码生成器默认mapper路径与默认mapperScan路径不一致")]),n("li",[e._v("优化防重复提交拦截器")]),n("li",[e._v("优化上级菜单不能选择自己")]),n("li",[e._v("修复角色的权限分配后,未实时生效问题")]),n("li",[e._v("修复在线用户日志记录类型")]),n("li",[e._v("修复富文本空格和缩进保存后不生效问题")]),n("li",[e._v("修复在线用户判断逻辑")]),n("li",[e._v("唯一限制条件只返回单条数据")]),n("li",[e._v("添加获取当前的环境配置方法")]),n("li",[e._v("超时登录后页面跳转到首页")]),n("li",[e._v("全局异常状态汉化拦截处理")]),n("li",[e._v("HTML过滤器改为将html转义")]),n("li",[e._v("检查字符支持小数点&降级改成异常提醒")]),n("li",[e._v("其他细节优化")])])]),n("el-collapse-item",{attrs:{title:"v3.0.0 - 2020-07-20"}},[n("ol",[n("li",[e._v("单应用调整为多模块项目")]),n("li",[e._v("升级element-ui版本到2.13.2")]),n("li",[e._v("删除babel,提高编译速度。")]),n("li",[e._v("新增菜单默认主类目")]),n("li",[e._v("编码文件名修改为uuid方式")]),n("li",[e._v("定时任务cron表达式验证")]),n("li",[e._v("角色权限修改时已有权限未自动勾选异常修复")]),n("li",[e._v("防止切换权限用户后登录出现404")]),n("li",[e._v("Excel支持sort导出排序")]),n("li",[e._v("创建用户不允许选择超级管理员角色")]),n("li",[e._v("修复代码生成导入表结构出现异常页面不提醒问题")]),n("li",[e._v("修复代码生成点击多次表修改数据不变化的问题")]),n("li",[e._v("修复头像上传成功二次打开无法改变裁剪框大小和位置问题")]),n("li",[e._v("修复布局为small者mini用户表单显示错位问题")]),n("li",[e._v("修复热部署导致的强换异常问题")]),n("li",[e._v("修改用户管理复选框宽度,防止部分浏览器出现省略号")]),n("li",[e._v("IpUtils工具,清除Xss特殊字符,防止Xff注入攻击")]),n("li",[e._v("生成domain 如果是浮点型 统一用BigDecimal")]),n("li",[e._v("定时任务调整label-width,防止部署出现错位")]),n("li",[e._v("调整表头固定列默认样式")]),n("li",[e._v("代码生成模板调整,字段为String并且必填则加空串条件")]),n("li",[e._v("代码生成字典Integer/Long使用parseInt")]),n("li",[e._v(" 修复dict_sort不可update为0的问题&查询返回增加dict_sort升序排序 ")]),n("li",[e._v("修正岗位导出权限注解")]),n("li",[e._v("禁止加密密文返回前端")]),n("li",[e._v("修复代码生成页面中的查询条件创建时间未生效的问题")]),n("li",[e._v("修复首页搜索菜单外链无法点击跳转问题")]),n("li",[e._v("修复菜单管理选择图标,backspace删除时不过滤数据")]),n("li",[e._v("用户管理部门分支节点不可检查&显示计数")]),n("li",[e._v("数据范围过滤属性调整")]),n("li",[e._v("其他细节优化")])])]),n("el-collapse-item",{attrs:{title:"v2.3.0 - 2020-06-01"}},[n("ol",[n("li",[e._v("升级fastjson到最新版1.2.70 修复高危安全漏洞")]),n("li",[e._v("dev启动默认打开浏览器")]),n("li",[e._v("vue-cli使用默认source-map")]),n("li",[e._v("slidebar eslint报错优化")]),n("li",[e._v("当tags-view滚动关闭右键菜单")]),n("li",[e._v("字典管理添加缓存读取")]),n("li",[e._v("参数管理支持缓存操作")]),n("li",[e._v("支持一级菜单(和主页同级)在main区域显示")]),n("li",[e._v("限制外链地址必须以http(s)开头")]),n("li",[e._v("tagview & sidebar 主题颜色与element ui(全局)同步")]),n("li",[e._v("修改数据源类型优先级,先根据方法,再根据类")]),n("li",[e._v("支持是否需要设置token属性,自定义返回码消息。")]),n("li",[e._v("swagger请求前缀加入配置。")]),n("li",[e._v("登录地点设置内容过长则隐藏显示")]),n("li",[e._v("修复定时任务执行一次按钮后不提示消息问题")]),n("li",[e._v("修改上级部门(选择项排除本身和下级)")]),n("li",[e._v("通用http发送方法增加参数 contentType 编码类型")]),n("li",[e._v("更换IP地址查询接口")]),n("li",[e._v("修复页签变量undefined")]),n("li",[e._v("添加校验部门包含未停用的子部门")]),n("li",[e._v("修改定时任务详情下次执行时间日期显示错误")]),n("li",[e._v("角色管理查询设置默认排序字段")]),n("li",[e._v("swagger添加enable参数控制是否启用")]),n("li",[e._v("只对json类型请求构建可重复读取inputStream的request")]),n("li",[e._v("修改代码生成字典字段int类型没有自动选中问题")]),n("li",[e._v("vuex用户名取值修正")]),n("li",[e._v("表格树模板去掉多余的)")]),n("li",[e._v("代码生成序号修正")]),n("li",[e._v("全屏情况下不调整上外边距")]),n("li",[e._v("代码生成Date字段添加默认格式")]),n("li",[e._v("用户管理角色选择权限控制")]),n("li",[e._v("修复路由懒加载报错问题")]),n("li",[e._v("模板sql.vm添加菜单状态")]),n("li",[e._v("设置用户名称不能修改")]),n("li",[e._v("dialog添加append-to-body属性,防止ie遮罩")]),n("li",[e._v("菜单区分状态和显示隐藏功能")]),n("li",[e._v("升级fastjson到最新版1.2.68 修复安全加固")]),n("li",[e._v("修复代码生成如果选择字典类型缺失逗号问题")]),n("li",[e._v("登录请求params更换为data,防止暴露url")]),n("li",[e._v("日志返回时间格式处理")]),n("li",[e._v("添加handle控制允许拖动的元素")]),n("li",[e._v("布局设置点击扩大范围")]),n("li",[e._v("代码生成列属性排序查询")]),n("li",[e._v("代码生成列支持拖动排序")]),n("li",[e._v("修复时间格式不支持ios问题")]),n("li",[e._v("表单构建添加父级class,防止冲突")]),n("li",[e._v("定时任务并发属性修正")]),n("li",[e._v("角色禁用&菜单隐藏不查询权限")]),n("li",[e._v("其他细节优化")])])]),n("el-collapse-item",{attrs:{title:"v2.2.0 - 2020-03-18"}},[n("ol",[n("li",[e._v("系统监控新增定时任务功能")]),n("li",[e._v("添加一个打包Web工程bat")]),n("li",[e._v("修复页签鼠标滚轮按下的时候,可以关闭不可关闭的tag")]),n("li",[e._v("修复点击退出登录有时会无提示问题")]),n("li",[e._v("修复防重复提交注解无效问题")]),n("li",[e._v("修复通知公告批量删除异常问题")]),n("li",[e._v("添加菜单时路由地址必填限制")]),n("li",[e._v("代码生成字段描述可编辑")]),n("li",[e._v("修复用户修改个人信息导致缓存不过期问题")]),n("li",[e._v("个人信息创建时间获取正确属性值")]),n("li",[e._v("操作日志详细显示正确类型")]),n("li",[e._v("导入表单击行数据时选中对应的复选框")]),n("li",[e._v("批量替换表前缀逻辑调整")]),n("li",[e._v("固定重定向路径表达式")]),n("li",[e._v("升级element-ui版本到2.13.0")]),n("li",[e._v("操作日志排序调整")]),n("li",[e._v("修复charts切换侧边栏或者缩放窗口显示bug")]),n("li",[e._v("其他细节优化")])])]),n("el-collapse-item",{attrs:{title:"v2.1.0 - 2020-02-24"}},[n("ol",[n("li",[e._v("新增表单构建")]),n("li",[e._v("代码生成支持树表结构")]),n("li",[e._v("新增用户导入")]),n("li",[e._v("修复动态加载路由页面刷新问题")]),n("li",[e._v("修复地址开关无效问题")]),n("li",[e._v("汉化错误提示页面")]),n("li",[e._v("代码生成已知问题修改")]),n("li",[e._v("修复多数据源下配置关闭出现异常处理")]),n("li",[e._v("添加HTML过滤器,用于去除XSS漏洞隐患")]),n("li",[e._v("修复上传头像控制台出现异常")]),n("li",[e._v("修改用户管理分页不正确的问题")]),n("li",[e._v("修复验证码记录提示错误")]),n("li",[e._v("修复request.js缺少Message引用")]),n("li",[e._v("修复表格时间为空出现的异常")]),n("li",[e._v("添加Jackson日期反序列化时区配置")]),n("li",[e._v("调整根据用户权限加载菜单数据树形结构")]),n("li",[e._v("调整成功登陆不恢复按钮,防止多次点击")]),n("li",[e._v("修改用户个人资料同步缓存信息")]),n("li",[e._v("修复页面同时出现el-upload和Editor不显示处理")]),n("li",[e._v("修复在角色管理页修改菜单权限偶尔未选中问题")]),n("li",[e._v("配置文件新增redis密码属性")]),n("li",[e._v("设置mybatis全局的配置文件")]),n("li",[e._v("其他细节优化")])])]),n("el-collapse-item",{attrs:{title:"v2.0.0 - 2019-12-02"}},[n("ol",[n("li",[e._v("新增代码生成")]),n("li",[e._v("新增@RepeatSubmit注解,防止重复提交")]),n("li",[e._v("新增菜单主目录添加/删除操作")]),n("li",[e._v("日志记录过滤特殊对象,防止转换异常")]),n("li",[e._v("修改代码生成路由脚本错误")]),n("li",[e._v("用户上传头像实时同步缓存,无需重新登录")]),n("li",[e._v("调整切换页签后不重新加载数据")]),n("li",[e._v("添加jsencrypt实现参数的前端加密")]),n("li",[e._v("系统退出删除用户缓存记录")]),n("li",[e._v("其他细节优化")])])]),n("el-collapse-item",{attrs:{title:"v1.1.0 - 2019-11-11"}},[n("ol",[n("li",[e._v("新增在线用户管理")]),n("li",[e._v("新增按钮组功能实现(批量删除、导出、清空)")]),n("li",[e._v("新增查询条件重置按钮")]),n("li",[e._v("新增Swagger全局Token配置")]),n("li",[e._v("新增后端参数校验")]),n("li",[e._v("修复字典管理页面的日期查询异常")]),n("li",[e._v("修改时间函数命名防止冲突")]),n("li",[e._v("去除菜单上级校验,默认为顶级")]),n("li",[e._v("修复用户密码无法修改问题")]),n("li",[e._v("修复菜单类型为按钮时不显示权限标识")]),n("li",[e._v("其他细节优化")])])]),n("el-collapse-item",{attrs:{title:"v1.0.0 - 2019-10-08"}},[n("ol",[n("li",[e._v("若依前后端分离系统正式发布")])])])],1)],1)],1),n("el-col",{attrs:{xs:24,sm:24,md:12,lg:8}},[n("el-card",{staticClass:"update-log"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("捐赠支持")])]),n("div",{staticClass:"body"},[n("img",{attrs:{src:"https://oscimg.oschina.net/oscnet/up-d6695f82666e5018f715c41cb7ee60d3b73.png",alt:"donate",width:"100%"}}),n("span",{staticStyle:{display:"inline-block",height:"30px","line-height":"30px"}},[e._v("你可以请作者喝杯咖啡表示鼓励")])])])],1)],1)],1)},r=[],a={name:"index",data:function(){return{version:"3.3.0"}},methods:{goTarget:function(e){window.open(e,"_blank")}}},o=a,s=(n("8bc5"),n("cba8")),l=Object(s["a"])(o,i,r,!1,null,"d3b54a20",null);t["default"]=l.exports},"1e4b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dashboard-editor-container"},[n("panel-group",{on:{handleSetLineChartData:e.handleSetLineChartData}}),n("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[n("line-chart",{attrs:{"chart-data":e.lineChartData}})],1),n("el-row",{attrs:{gutter:32}},[n("el-col",{attrs:{xs:24,sm:24,lg:8}},[n("div",{staticClass:"chart-wrapper"},[n("raddar-chart")],1)]),n("el-col",{attrs:{xs:24,sm:24,lg:8}},[n("div",{staticClass:"chart-wrapper"},[n("pie-chart")],1)]),n("el-col",{attrs:{xs:24,sm:24,lg:8}},[n("div",{staticClass:"chart-wrapper"},[n("bar-chart")],1)])],1)],1)},r=[],a=n("fbc4"),o=n("eab4"),s=n("0a5c"),l=n("d153"),c=n("9488"),u={newVisitis:{expectedData:[100,120,161,134,105,160,165],actualData:[120,82,91,154,162,140,145]},messages:{expectedData:[200,192,120,144,160,130,140],actualData:[180,160,151,106,145,150,130]},purchases:{expectedData:[80,100,121,104,105,90,100],actualData:[120,90,100,138,142,130,130]},shoppings:{expectedData:[130,140,141,142,145,150,160],actualData:[120,82,91,154,162,140,130]}},d={name:"Index",components:{PanelGroup:a["default"],LineChart:o["default"],RaddarChart:s["default"],PieChart:l["default"],BarChart:c["default"]},data:function(){return{lineChartData:u.newVisitis}},methods:{handleSetLineChartData:function(e){this.lineChartData=u[e]}}},p=d,f=(n("f2d7"),n("cba8")),h=Object(f["a"])(p,i,r,!1,null,"2f65a1b7",null);t["default"]=h.exports},"1e8b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form",{ref:"form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"用户昵称",prop:"nickName"}},[n("el-input",{model:{value:e.user.nickName,callback:function(t){e.$set(e.user,"nickName",t)},expression:"user.nickName"}})],1),n("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[n("el-input",{attrs:{maxlength:"11"},model:{value:e.user.phonenumber,callback:function(t){e.$set(e.user,"phonenumber",t)},expression:"user.phonenumber"}})],1),n("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[n("el-input",{attrs:{maxlength:"50"},model:{value:e.user.email,callback:function(t){e.$set(e.user,"email",t)},expression:"user.email"}})],1),n("el-form-item",{attrs:{label:"性别"}},[n("el-radio-group",{model:{value:e.user.sex,callback:function(t){e.$set(e.user,"sex",t)},expression:"user.sex"}},[n("el-radio",{attrs:{label:"0"}},[e._v("男")]),n("el-radio",{attrs:{label:"1"}},[e._v("女")])],1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("保存")]),n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.close}},[e._v("关闭")])],1)],1)},r=[],a=n("c0c7"),o={props:{user:{type:Object}},data:function(){return{rules:{nickName:[{required:!0,message:"用户昵称不能为空",trigger:"blur"}],email:[{required:!0,message:"邮箱地址不能为空",trigger:"blur"},{type:"email",message:"'请输入正确的邮箱地址",trigger:["blur","change"]}],phonenumber:[{required:!0,message:"手机号码不能为空",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(t){t&&Object(a["k"])(e.user).then((function(t){e.msgSuccess("修改成功")}))}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/index"})}}},s=o,l=n("cba8"),c=Object(l["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},"1f34":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:4,xs:24}},[n("div",{staticClass:"head-container"},[n("el-input",{staticStyle:{"margin-bottom":"20px"},attrs:{placeholder:"请输入部门名称",clearable:"",size:"small","prefix-icon":"el-icon-search"},model:{value:e.deptName,callback:function(t){e.deptName=t},expression:"deptName"}})],1),n("div",{staticClass:"head-container"},[n("el-tree",{ref:"tree",attrs:{data:e.deptOptions,props:e.defaultProps,"expand-on-click-node":!1,"filter-node-method":e.filterNode,"default-expand-all":""},on:{"node-click":e.handleNodeClick}})],1)]),n("el-col",{attrs:{span:20,xs:24}},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"用户名称",prop:"userName"}},[n("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入用户名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.query.userName,callback:function(t){e.$set(e.queryParams.query,"userName",t)},expression:"queryParams.query.userName"}})],1),n("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[n("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入手机号码",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.query.phonenumber,callback:function(t){e.$set(e.queryParams.query,"phonenumber",t)},expression:"queryParams.query.phonenumber"}})],1),n("el-form-item",{attrs:{label:"状态",prop:"status"}},[n("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"用户状态",clearable:"",size:"small"},model:{value:e.queryParams.query.status,callback:function(t){e.$set(e.queryParams.query,"status",t)},expression:"queryParams.query.status"}},e._l(e.statusOptions,(function(e){return n("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),n("el-form-item",{attrs:{label:"创建时间"}},[n("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:add"],expression:"['system:user:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增 ")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:edit"],expression:"['system:user:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改 ")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:remove"],expression:"['system:user:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除 ")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:import"],expression:"['system:user:import']"}],attrs:{type:"info",plain:"",icon:"el-icon-upload2",size:"mini"},on:{click:e.handleImport}},[e._v("导入 ")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:export"],expression:"['system:user:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出 ")])],1),n("right-toolbar",{attrs:{showSearch:e.showSearch,columns:e.columns},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e.columns[0].visible?n("el-table-column",{key:"userId",attrs:{label:"用户编号",align:"center",prop:"userId"}}):e._e(),e.columns[1].visible?n("el-table-column",{key:"userName",attrs:{label:"用户名称",align:"center",prop:"userName","show-overflow-tooltip":!0}}):e._e(),e.columns[2].visible?n("el-table-column",{key:"nickName",attrs:{label:"用户昵称",align:"center",prop:"nickName","show-overflow-tooltip":!0}}):e._e(),e.columns[3].visible?n("el-table-column",{key:"deptName",attrs:{label:"部门",align:"center",prop:"dept.deptName","show-overflow-tooltip":!0}}):e._e(),e.columns[4].visible?n("el-table-column",{key:"phonenumber",attrs:{label:"手机号码",align:"center",prop:"phonenumber",width:"120"}}):e._e(),e.columns[5].visible?n("el-table-column",{key:"status",attrs:{label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-value":"0","inactive-value":"1"},on:{change:function(n){return e.handleStatusChange(t.row)}},model:{value:t.row.status,callback:function(n){e.$set(t.row,"status",n)},expression:"scope.row.status"}})]}}],null,!1,3955094654)}):e._e(),e.columns[6].visible?n("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}],null,!1,3078210614)}):e._e(),n("el-table-column",{attrs:{label:"操作",align:"center",width:"160","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:edit"],expression:"['system:user:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(n){return e.handleUpdate(t.row)}}},[e._v("修改 ")]),1!==t.row.userId?n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:remove"],expression:"['system:user:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(n){return e.handleDelete(t.row)}}},[e._v("删除 ")]):e._e(),n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:resetPwd"],expression:"['system:user:resetPwd']"}],attrs:{size:"mini",type:"text",icon:"el-icon-key"},on:{click:function(n){return e.handleResetPwd(t.row)}}},[e._v("重置 ")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1)],1),n("el-dialog",{attrs:{title:e.title,visible:e.open,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[n("el-row",[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"用户昵称",prop:"nickName"}},[n("el-input",{attrs:{placeholder:"请输入用户昵称"},model:{value:e.form.nickName,callback:function(t){e.$set(e.form,"nickName",t)},expression:"form.nickName"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"归属部门",prop:"deptId"}},[n("treeselect",{attrs:{options:e.deptOptions,"show-count":!0,placeholder:"请选择归属部门"},model:{value:e.form.deptId,callback:function(t){e.$set(e.form,"deptId",t)},expression:"form.deptId"}})],1)],1)],1),n("el-row",[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[n("el-input",{attrs:{placeholder:"请输入手机号码",maxlength:"11"},model:{value:e.form.phonenumber,callback:function(t){e.$set(e.form,"phonenumber",t)},expression:"form.phonenumber"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[n("el-input",{attrs:{placeholder:"请输入邮箱",maxlength:"50"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1)],1)],1),n("el-row",[n("el-col",{attrs:{span:12}},[void 0==e.form.userId?n("el-form-item",{attrs:{label:"用户名称",prop:"userName"}},[n("el-input",{attrs:{placeholder:"请输入用户名称"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1):e._e()],1),n("el-col",{attrs:{span:12}},[void 0==e.form.userId?n("el-form-item",{attrs:{label:"用户密码",prop:"password"}},[n("el-input",{attrs:{placeholder:"请输入用户密码",type:"password"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1):e._e()],1)],1),n("el-row",[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"用户性别"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},e._l(e.sexOptions,(function(e){return n("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"状态"}},[n("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(t){return n("el-radio",{key:t.dictValue,attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel)+" ")])})),1)],1)],1)],1),n("el-row",[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"岗位"}},[n("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.form.postIds,callback:function(t){e.$set(e.form,"postIds",t)},expression:"form.postIds"}},e._l(e.postOptions,(function(e){return n("el-option",{key:e.postId,attrs:{label:e.postName,value:e.postId,disabled:1==e.status}})})),1)],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"角色"}},[n("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.form.roleIds,callback:function(t){e.$set(e.form,"roleIds",t)},expression:"form.roleIds"}},e._l(e.roleOptions,(function(e){return n("el-option",{key:e.roleId,attrs:{label:e.roleName,value:e.roleId,disabled:1==e.status}})})),1)],1)],1)],1),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"备注"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),n("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1),n("el-dialog",{attrs:{title:e.upload.title,visible:e.upload.open,width:"400px","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.upload,"open",t)}}},[n("el-upload",{ref:"upload",attrs:{limit:1,accept:".xlsx, .xls",headers:e.upload.headers,action:e.upload.url+"?updateSupport="+e.upload.updateSupport,disabled:e.upload.isUploading,"on-progress":e.handleFileUploadProgress,"on-success":e.handleFileSuccess,"auto-upload":!1,drag:""}},[n("i",{staticClass:"el-icon-upload"}),n("div",{staticClass:"el-upload__text"},[e._v(" 将文件拖到此处,或 "),n("em",[e._v("点击上传")])]),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[n("el-checkbox",{model:{value:e.upload.updateSupport,callback:function(t){e.$set(e.upload,"updateSupport",t)},expression:"upload.updateSupport"}}),e._v(" 是否更新已经存在的用户数据 "),n("el-link",{staticStyle:{"font-size":"12px"},attrs:{type:"info"},on:{click:e.importTemplate}},[e._v("下载模板")])],1),n("div",{staticClass:"el-upload__tip",staticStyle:{color:"red"},attrs:{slot:"tip"},slot:"tip"},[e._v("提示:仅允许导入“xls”或“xlsx”格式文件!")])]),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.submitFileForm}},[e._v("确 定")]),n("el-button",{on:{click:function(t){e.upload.open=!1}}},[e._v("取 消")])],1)],1)],1)},r=[],a=(n("cb3c"),n("6540"),n("c0c7")),o=n("5f87"),s=n("fcb7"),l=n("7d66"),c=n.n(l),u=(n("5166"),{name:"User",components:{Treeselect:c.a},data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,userList:null,title:"",deptOptions:void 0,open:!1,deptName:void 0,initPassword:void 0,dateRange:[],statusOptions:[],sexOptions:[],postOptions:[],roleOptions:[],form:{},defaultProps:{children:"children",label:"label"},upload:{open:!1,title:"",isUploading:!1,updateSupport:0,headers:{Authorization:"Bearer "+Object(o["a"])()},url:"/stage-api/system/user/importData"},queryParams:{pageNum:1,pageSize:10,query:{userName:void 0,phonenumber:void 0,status:void 0,deptId:void 0}},columns:[{key:0,label:"用户编号",visible:!0},{key:1,label:"用户名称",visible:!0},{key:2,label:"用户昵称",visible:!0},{key:3,label:"部门",visible:!0},{key:4,label:"手机号码",visible:!0},{key:5,label:"状态",visible:!0},{key:6,label:"创建时间",visible:!0}],rules:{userName:[{required:!0,message:"用户名称不能为空",trigger:"blur"}],nickName:[{required:!0,message:"用户昵称不能为空",trigger:"blur"}],password:[{required:!0,message:"用户密码不能为空",trigger:"blur"}],email:[{type:"email",message:"'请输入正确的邮箱地址",trigger:["blur","change"]}],phonenumber:[{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},watch:{deptName:function(e){this.$refs.tree.filter(e)}},created:function(){var e=this;this.getList(),this.getTreeselect(),this.getDicts("sys_normal_disable").then((function(t){e.statusOptions=t.data})),this.getDicts("sys_user_sex").then((function(t){e.sexOptions=t.data})),this.getConfigKey("sys.user.initPassword").then((function(t){e.initPassword=t.msg}))},methods:{getList:function(){var e=this;this.loading=!0,Object(a["h"])(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.userList=t.rows,e.total=t.total,e.loading=!1}))},getTreeselect:function(){var e=this;Object(s["g"])().then((function(t){e.deptOptions=t.data}))},filterNode:function(e,t){return!e||-1!==t.label.indexOf(e)},handleNodeClick:function(e){this.queryParams.deptId=e.id,this.getList()},handleStatusChange:function(e){var t=this,n="0"===e.status?"启用":"停用";this.$confirm('确认要"'+n+'""'+e.userName+'"用户吗?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(a["b"])(e.userId,e.status)})).then((function(){t.msgSuccess(n+"成功")})).catch((function(){e.status="0"===e.status?"1":"0"}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={userId:void 0,deptId:void 0,userName:void 0,nickName:void 0,password:void 0,phonenumber:void 0,email:void 0,sex:void 0,status:"0",remark:void 0,postIds:[],roleIds:[]},this.resetForm("form")},handleQuery:function(){this.queryParams.page=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.userId})),this.single=1!=e.length,this.multiple=!e.length},handleAdd:function(){var e=this;this.reset(),this.getTreeselect(),Object(a["e"])().then((function(t){e.postOptions=t.posts,e.roleOptions=t.roles,e.open=!0,e.title="添加用户",e.form.password=e.initPassword}))},handleUpdate:function(e){var t=this;this.reset(),this.getTreeselect();var n=e.userId||this.ids;Object(a["e"])(n).then((function(e){t.form=e.data,t.postOptions=e.posts,t.roleOptions=e.roles,t.form.postIds=e.postIds,t.form.roleIds=e.roleIds,t.open=!0,t.title="修改用户",t.form.password=""}))},handleResetPwd:function(e){var t=this;this.$prompt('请输入"'+e.userName+'"的新密码',"提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(n){var i=n.value;Object(a["i"])(e.userId,i).then((function(e){t.msgSuccess("修改成功,新密码是:"+i)}))})).catch((function(){}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(void 0!=e.form.userId?Object(a["j"])(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(a["a"])(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,n=e.userId||this.ids;this.$confirm('是否确认删除用户编号为"'+n+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(a["c"])(n)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有用户数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(a["d"])(t)})).then((function(t){e.download(t.data)}))},handleImport:function(){this.upload.title="用户导入",this.upload.open=!0},importTemplate:function(){var e=this;Object(a["g"])().then((function(t){e.download(t.data)}))},handleFileUploadProgress:function(e,t,n){this.upload.isUploading=!0},handleFileSuccess:function(e,t,n){this.upload.open=!1,this.upload.isUploading=!1,this.$refs.upload.clearFiles(),this.$alert(e.msg,"导入结果",{dangerouslyUseHTMLString:!0}),this.getList()},submitFileForm:function(){this.$refs.upload.submit()}}}),d=u,p=n("cba8"),f=Object(p["a"])(d,i,r,!1,null,null,null);t["default"]=f.exports},"202d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"公告标题",prop:"noticeTitle"}},[n("el-input",{attrs:{placeholder:"请输入公告标题",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.query.noticeTitle,callback:function(t){e.$set(e.queryParams.query,"noticeTitle",t)},expression:"queryParams.query.noticeTitle"}})],1),n("el-form-item",{attrs:{label:"操作人员",prop:"createBy"}},[n("el-input",{attrs:{placeholder:"请输入操作人员",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.query.createBy,callback:function(t){e.$set(e.queryParams.query,"createBy",t)},expression:"queryParams.query.createBy"}})],1),n("el-form-item",{attrs:{label:"类型",prop:"noticeType"}},[n("el-select",{attrs:{placeholder:"公告类型",clearable:"",size:"small"},model:{value:e.queryParams.query.noticeType,callback:function(t){e.$set(e.queryParams.query,"noticeType",t)},expression:"queryParams.query.noticeType"}},e._l(e.typeOptions,(function(e){return n("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:add"],expression:"['system:notice:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:edit"],expression:"['system:notice:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:remove"],expression:"['system:notice:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),n("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.noticeList},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),n("el-table-column",{attrs:{label:"序号",align:"center",prop:"noticeId",width:"100"}}),n("el-table-column",{attrs:{label:"公告标题",align:"center",prop:"noticeTitle","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"公告类型",align:"center",prop:"noticeType",formatter:e.typeFormat,width:"100"}}),n("el-table-column",{attrs:{label:"状态",align:"center",prop:"status",formatter:e.statusFormat,width:"100"}}),n("el-table-column",{attrs:{label:"创建者",align:"center",prop:"createBy",width:"100"}}),n("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.parseTime(t.row.createTime,"{y}-{m}-{d}")))])]}}])}),n("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:edit"],expression:"['system:notice:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(n){return e.handleUpdate(t.row)}}},[e._v("修改")]),n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:remove"],expression:"['system:notice:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(n){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),n("el-dialog",{attrs:{title:e.title,visible:e.open,width:"780px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[n("el-row",[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"公告标题",prop:"noticeTitle"}},[n("el-input",{attrs:{placeholder:"请输入公告标题"},model:{value:e.form.noticeTitle,callback:function(t){e.$set(e.form,"noticeTitle",t)},expression:"form.noticeTitle"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"公告类型",prop:"noticeType"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.noticeType,callback:function(t){e.$set(e.form,"noticeType",t)},expression:"form.noticeType"}},e._l(e.typeOptions,(function(e){return n("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1)],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"状态"}},[n("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(t){return n("el-radio",{key:t.dictValue,attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1)],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"内容"}},[n("editor",{attrs:{"min-height":192},model:{value:e.form.noticeContent,callback:function(t){e.$set(e.form,"noticeContent",t)},expression:"form.noticeContent"}})],1)],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),n("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},r=[],a=(n("6540"),n("b775"));function o(e){return Object(a["a"])({url:"/system/notice/list",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/system/notice/"+e,method:"get"})}function l(e){return Object(a["a"])({url:"/system/notice",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/system/notice",method:"put",data:e})}function u(e){return Object(a["a"])({url:"/system/notice/"+e,method:"delete"})}var d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"editor",staticClass:"editor",style:e.styles})},p=[],f=(n("d0bf"),n("445a"),n("0126")),h=n.n(f),m=(n("121a"),n("7e41"),n("96be"),{name:"Editor",props:{value:{type:String,default:""},height:{type:Number,default:null},minHeight:{type:Number,default:null}},data:function(){return{Quill:null,currentValue:"",options:{theme:"snow",bounds:document.body,debug:"warn",modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"请输入内容",readOnly:!1}}},computed:{styles:function(){var e={};return this.minHeight&&(e.minHeight="".concat(this.minHeight,"px")),this.height&&(e.height="".concat(this.height,"px")),e}},watch:{value:{handler:function(e){e!==this.currentValue&&(this.currentValue=null===e?"":e,this.Quill&&this.Quill.pasteHTML(this.currentValue))},immediate:!0}},mounted:function(){this.init()},beforeDestroy:function(){this.Quill=null},methods:{init:function(){var e=this,t=this.$refs.editor;this.Quill=new h.a(t,this.options),this.Quill.pasteHTML(this.currentValue),this.Quill.on("text-change",(function(t,n,i){var r=e.$refs.editor.children[0].innerHTML,a=e.Quill.getText(),o=e.Quill;e.currentValue=r,e.$emit("input",r),e.$emit("on-change",{html:r,text:a,quill:o})})),this.Quill.on("text-change",(function(t,n,i){e.$emit("on-text-change",t,n,i)})),this.Quill.on("selection-change",(function(t,n,i){e.$emit("on-selection-change",t,n,i)})),this.Quill.on("editor-change",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r0?g+_:""}},"25a8":function(e,t,n){"use strict";n("4b07")},"26ab7":function(e,t,n){"use strict";n("be04")},"26fc":function(e,t,n){e.exports=n.p+"static/img/404_cloud.0f4bc32b.png"},2754:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wscn-http404-container"},[n("div",{staticClass:"wscn-http404"},[e._m(0),n("div",{staticClass:"bullshit"},[n("div",{staticClass:"bullshit__oops"},[e._v(" 404错误! ")]),n("div",{staticClass:"bullshit__headline"},[e._v(" "+e._s(e.message)+" ")]),n("div",{staticClass:"bullshit__info"},[e._v(" 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 ")]),n("router-link",{staticClass:"bullshit__return-home",attrs:{to:"/"}},[e._v(" 返回首页 ")])],1)])])},r=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"pic-404"},[i("img",{staticClass:"pic-404__parent",attrs:{src:n("a36b"),alt:"404"}}),i("img",{staticClass:"pic-404__child left",attrs:{src:n("26fc"),alt:"404"}}),i("img",{staticClass:"pic-404__child mid",attrs:{src:n("26fc"),alt:"404"}}),i("img",{staticClass:"pic-404__child right",attrs:{src:n("26fc"),alt:"404"}})])}],a={name:"Page404",computed:{message:function(){return"找不到网页!"}}},o=a,s=(n("61b6"),n("cba8")),l=Object(s["a"])(o,i,r,!1,null,"279ea4b2",null);t["default"]=l.exports},2855:function(e,t,n){"use strict";n.r(t);var i,r,a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("div",{staticClass:"left-board"},[n("div",{staticClass:"logo-wrapper"},[n("div",{staticClass:"logo"},[n("img",{attrs:{src:e.logo,alt:"logo"}}),e._v(" Form Generator ")])]),n("el-scrollbar",{staticClass:"left-scrollbar"},[n("div",{staticClass:"components-list"},[n("div",{staticClass:"components-title"},[n("svg-icon",{attrs:{"icon-class":"component"}}),e._v("输入型组件 ")],1),n("draggable",{staticClass:"components-draggable",attrs:{list:e.inputComponents,group:{name:"componentsGroup",pull:"clone",put:!1},clone:e.cloneComponent,draggable:".components-item",sort:!1},on:{end:e.onEnd}},e._l(e.inputComponents,(function(t,i){return n("div",{key:i,staticClass:"components-item",on:{click:function(n){return e.addComponent(t)}}},[n("div",{staticClass:"components-body"},[n("svg-icon",{attrs:{"icon-class":t.tagIcon}}),e._v(" "+e._s(t.label)+" ")],1)])})),0),n("div",{staticClass:"components-title"},[n("svg-icon",{attrs:{"icon-class":"component"}}),e._v("选择型组件 ")],1),n("draggable",{staticClass:"components-draggable",attrs:{list:e.selectComponents,group:{name:"componentsGroup",pull:"clone",put:!1},clone:e.cloneComponent,draggable:".components-item",sort:!1},on:{end:e.onEnd}},e._l(e.selectComponents,(function(t,i){return n("div",{key:i,staticClass:"components-item",on:{click:function(n){return e.addComponent(t)}}},[n("div",{staticClass:"components-body"},[n("svg-icon",{attrs:{"icon-class":t.tagIcon}}),e._v(" "+e._s(t.label)+" ")],1)])})),0),n("div",{staticClass:"components-title"},[n("svg-icon",{attrs:{"icon-class":"component"}}),e._v(" 布局型组件 ")],1),n("draggable",{staticClass:"components-draggable",attrs:{list:e.layoutComponents,group:{name:"componentsGroup",pull:"clone",put:!1},clone:e.cloneComponent,draggable:".components-item",sort:!1},on:{end:e.onEnd}},e._l(e.layoutComponents,(function(t,i){return n("div",{key:i,staticClass:"components-item",on:{click:function(n){return e.addComponent(t)}}},[n("div",{staticClass:"components-body"},[n("svg-icon",{attrs:{"icon-class":t.tagIcon}}),e._v(" "+e._s(t.label)+" ")],1)])})),0)],1)])],1),n("div",{staticClass:"center-board"},[n("div",{staticClass:"action-bar"},[n("el-button",{attrs:{icon:"el-icon-download",type:"text"},on:{click:e.download}},[e._v(" 导出vue文件 ")]),n("el-button",{staticClass:"copy-btn-main",attrs:{icon:"el-icon-document-copy",type:"text"},on:{click:e.copy}},[e._v(" 复制代码 ")]),n("el-button",{staticClass:"delete-btn",attrs:{icon:"el-icon-delete",type:"text"},on:{click:e.empty}},[e._v(" 清空 ")])],1),n("el-scrollbar",{staticClass:"center-scrollbar"},[n("el-row",{staticClass:"center-board-row",attrs:{gutter:e.formConf.gutter}},[n("el-form",{attrs:{size:e.formConf.size,"label-position":e.formConf.labelPosition,disabled:e.formConf.disabled,"label-width":e.formConf.labelWidth+"px"}},[n("draggable",{staticClass:"drawing-board",attrs:{list:e.drawingList,animation:340,group:"componentsGroup"}},e._l(e.drawingList,(function(t,i){return n("draggable-item",{key:t.renderKey,attrs:{"drawing-list":e.drawingList,element:t,index:i,"active-id":e.activeId,"form-conf":e.formConf},on:{activeItem:e.activeFormItem,copyItem:e.drawingItemCopy,deleteItem:e.drawingItemDelete}})})),1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.drawingList.length,expression:"!drawingList.length"}],staticClass:"empty-info"},[e._v(" 从左侧拖入或点选组件进行表单设计 ")])],1)],1)],1)],1),n("right-panel",{attrs:{"active-data":e.activeData,"form-conf":e.formConf,"show-field":!!e.drawingList.length},on:{"tag-change":e.tagChange}}),n("code-type-dialog",{attrs:{visible:e.dialogVisible,title:"选择生成类型","show-file-name":e.showFileName},on:{"update:visible":function(t){e.dialogVisible=t},confirm:e.generate}}),n("input",{attrs:{id:"copyNode",type:"hidden"}})],1)},o=[],s=n("83a7"),l=n("06c4"),c=(n("0bd5"),n("9b42"),n("6540"),n("989e"),n("270f"),n("fae2"),n("1f70"),n("3335")),u=n.n(c),d=n("31bf"),p=n("4c63"),f=n.n(p),h=n("f348"),m=n.n(h),_=n("a85b"),g=n("766b"),v=n("2e2a"),b=n("ed08");n("445a"),n("cca2"),n("1d7a");function y(e){return'\n '.concat(e,'\n
\n 取消\n 确定\n
\n
')}function w(e){return"")}function x(e){return"