(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["views","page"],{"02d7":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("basic-container",[n("jl-go-back"),n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.formOption,rules:t.rules,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"内容标题",prop:"title"}},[n("el-input",{model:{value:t.formOption.title,callback:function(e){t.$set(t.formOption,"title",e)},expression:"formOption.title"}})],1),n("el-form-item",{attrs:{label:"一级分类",prop:"firstId"}},[n("el-select",{attrs:{placeholder:"请选择一级分类"},on:{change:t.secondList},model:{value:t.formOption.firstId,callback:function(e){t.$set(t.formOption,"firstId",e)},expression:"formOption.firstId"}},t._l(t.first,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),n("el-form-item",{attrs:{label:"二级分类",prop:"secondId"}},[t.formOption.firstId?n("el-select",{attrs:{placeholder:"请选择二级分类"},model:{value:t.formOption.secondId,callback:function(e){t.$set(t.formOption,"secondId",e)},expression:"formOption.secondId"}},t._l(t.second,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1):n("el-select",{attrs:{disabled:"",placeholder:"请选择二级分类"},model:{value:t.formOption.secondId,callback:function(e){t.$set(t.formOption,"secondId",e)},expression:"formOption.secondId"}})],1),n("el-form-item",{attrs:{label:"编辑内容",prop:"content"}},[n("Tinymce",{ref:"tinymce",model:{value:t.formOption.content,callback:function(e){t.$set(t.formOption,"content",e)},expression:"formOption.content"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",loading:t.btnLoading},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("保存")]),n("el-button",{on:{click:function(e){return t.resetForm("ruleForm")}}},[t._v("取消")])],1)],1)],1)},o=[],i=(n("c5f6"),n("8256")),a=n("040b"),l=n("d902"),s={name:"addContent",props:{id:Number,type:String},components:{Tinymce:i["default"]},data:function(){return{btnLoading:!1,formOption:{firstId:"",secondId:""},rules:{title:[{required:!0,message:"请输入内容标题",trigger:"blur"}],firstId:[{required:!0,message:"请选择一级分类",trigger:"blur"}],secondId:[{required:!0,message:"请选择二级分类",trigger:"blur"}],content:[{required:!0,message:"请输入内容",trigger:"blur"}]},first:[],second:[]}},mounted:function(){this.firstList()},methods:{firstList:function(){var t=this;this.id&&"edit"==this.type&&(this.formOption=JSON.parse(this.id),this.searchSecondList(this.formOption.firstId)),Object(a["b"])().then((function(e){t.first=e.data.data}))},secondList:function(t){var e=this;Object(a["c"])(t).then((function(t){e.formOption.secondId="",e.second=t.data.data}))},searchSecondList:function(t){var e=this;Object(a["c"])(t).then((function(t){e.second=t.data.data}))},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.btnLoading=!0,"add"===e.type?Object(l["c"])(JSON.stringify(e.formOption)).then((function(t){e.$message.success("添加成功"),e.btnLoading=!1,e.$router.go(-1)})):"edit"===e.type&&Object(l["b"])(JSON.stringify(e.formOption)).then((function(t){e.$message.success("修改成功"),e.btnLoading=!1,e.$router.go(-1)})))}))},resetForm:function(t){this.viewDrawer=!1,this.$refs[t].resetFields()}}},u=s,c=(n("09fd"),n("2877")),f=Object(c["a"])(u,r,o,!1,null,"4af297f4",null);e["default"]=f.exports},"02e6":function(t,e,n){"use strict";var r=n("42c3"),o=n.n(r);o.a},"040b":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a}));var r=n("b5c6"),o=function(){return"/api/jobslink-api/desk/contentCategoryFirst/getAllContentCategoryFirst"},i=function(){return Object(r["a"])({url:"/api/jobslink-api/desk/contentCategoryFirst/getAllContentCategoryFirst",method:"get"})},a=function(t){return Object(r["a"])({url:"/api/jobslink-api/desk/contentCategorySecond/getAllContentCategorySecond",method:"get",params:{firstId:t}})}},"05f3":function(t,e,n){},"0747":function(t,e,n){},"095a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("basic-container",[n("avue-tabs",{attrs:{option:t.option},on:{change:t.handleChange,submit:t.handleSubmit},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}})],1)],1)},o=[],i=(n("7f7f"),{column:[{label:"个人信息",prop:"info",option:{submitText:"修改",column:[{label:"头像",type:"upload",listType:"picture-img",propsHttp:{res:"data",url:"link"},canvasOption:{text:" ",ratio:.1},action:"/api/jobslink-api/resource/oss/endpoint/put-file",tip:"只能上传jpg/png用户头像,且不超过500kb",span:12,row:!0,prop:"avatar"},{label:"姓名",span:12,row:!0,prop:"name"},{label:"用户名",span:12,row:!0,prop:"realName"},{label:"手机号",span:12,row:!0,prop:"phone"},{label:"邮箱",prop:"email",span:12,row:!0}]}},{label:"修改密码",prop:"password",option:{submitText:"修改",column:[{label:"原密码",span:12,row:!0,type:"password",prop:"oldPassword"},{label:"新密码",span:12,row:!0,type:"password",prop:"newPassword"},{label:"确认密码",span:12,row:!0,type:"password",prop:"newPassword1"}]}}]}),a=n("c0c7"),l=n("8237"),s=n.n(l),u={name:"userinfo",data:function(){return{type:"info",option:i,form:{}}},created:function(){this.handleWitch()},methods:{handleSubmit:function(){var t=this;"info"===this.type?Object(a["k"])(this.form).then((function(e){e.data.success?t.$message({type:"success",message:"修改信息成功!"}):t.$message({type:"error",message:e.data.msg})})):Object(a["l"])(s()(this.form.oldPassword),s()(this.form.newPassword),s()(this.form.newPassword1)).then((function(e){e.data.success?t.$message({type:"success",message:"修改密码成功!"}):t.$message({type:"error",message:e.data.msg})}))},handleWitch:function(){var t=this;"info"===this.type&&Object(a["f"])().then((function(e){var n=e.data.data;t.form={id:n.id,avatar:n.avatar,name:n.name,realName:n.realName,phone:n.phone,email:n.email}}))},handleChange:function(t){this.type=t.prop,this.handleWitch()}}},c=u,f=n("2877"),d=Object(f["a"])(c,r,o,!1,null,null,null);e["default"]=d.exports},"09fd":function(t,e,n){"use strict";var r=n("d8ac"),o=n.n(r);o.a},1234:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return s}));var r=n("b5c6"),o=function(){return"/api/jobslink-api/desk/articleCategory/getAllArticleCategory"},i=function(t){return Object(r["a"])({url:"/api/jobslink-api/desk/articleCategory/getArticleCategoryList",method:"get",params:t})},a=function(t){return Object(r["a"])({url:"/api/jobslink-api/desk/articleCategory/add",method:"post",data:t})},l=function(t){return Object(r["a"])({url:"/api/jobslink-api/desk/articleCategory/edit",method:"post",data:t})},s=function(t){return Object(r["a"])({url:"/api/jobslink-api/desk/articleCategory/delete",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t})}},"14e1":function(t,e,n){},"1a69":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"registerContainer"},[n("div",{staticClass:"login-title"},[t._v(t._s(t.$t("login.userRegister")))]),n("el-form",{ref:"registerForm",staticClass:"login-form",attrs:{model:t.registerForm,rules:t.rules}},[n("el-form-item",{attrs:{prop:"inviteCode"}},[n("el-input",{attrs:{"auto-complete":t.off,placeholder:"请输入邀请码:JL10000000"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleRegister(e)}},model:{value:t.registerForm.inviteCode,callback:function(e){t.$set(t.registerForm,"inviteCode",e)},expression:"registerForm.inviteCode"}})],1),n("el-form-item",{attrs:{prop:"companyName"}},[n("el-input",{attrs:{"auto-complete":t.off,placeholder:"请输入您的企业名"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleRegister(e)}},model:{value:t.registerForm.companyName,callback:function(e){t.$set(t.registerForm,"companyName",e)},expression:"registerForm.companyName"}})],1),n("el-form-item",{attrs:{prop:"companyTid"}},[n("el-input",{attrs:{"auto-complete":t.off,placeholder:"统一社会信用代码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleRegister(e)}},model:{value:t.registerForm.companyTid,callback:function(e){t.$set(t.registerForm,"companyTid",e)},expression:"registerForm.companyTid"}})],1),n("el-form-item",{attrs:{prop:"account"}},[n("el-input",{attrs:{"auto-complete":t.off,placeholder:"请输入您的手机号"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleRegister(e)}},model:{value:t.registerForm.account,callback:function(e){t.$set(t.registerForm,"account","string"===typeof e?e.trim():e)},expression:"registerForm.account"}})],1),n("el-form-item",{attrs:{prop:"code"}},[n("el-input",{staticClass:"code-input",attrs:{"auto-complete":"off",placeholder:"请输入验证码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleRegister(e)}},model:{value:t.registerForm.code,callback:function(e){t.$set(t.registerForm,"code","string"===typeof e?e.trim():e)},expression:"registerForm.code"}}),n("div",{staticClass:"login-code"},[n("el-button",{staticClass:"msg-text",attrs:{disabled:t.msgKey,type:"text"},on:{click:t.handleSend}},[t._v(t._s(t.msgText))])],1)],1),n("el-form-item",{attrs:{prop:"password"}},[n("el-input",{attrs:{type:"password","auto-complete":t.off,placeholder:"请输入6-20位包含数字和字母的新密码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleRegister(e)}},model:{value:t.registerForm.password,callback:function(e){t.$set(t.registerForm,"password","string"===typeof e?e.trim():e)},expression:"registerForm.password"}})],1),n("div",[n("el-button",{staticClass:"register-submit",attrs:{size:"small",type:"primary"},on:{click:t.handleRegister}},[t._v(t._s(t.$t("login.registerSubmit"))+"\n ")])],1)],1),n("div",{staticClass:"reg-bottom"},[n("div",[n("el-checkbox",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}}),n("span",{staticClass:"reg-agreement",on:{click:function(e){t.checked=!t.checked}}},[t._v("\n 同意宜昌市智慧就业服务平台用工\n "),n("a",{attrs:{href:"/blackboard/account/companyagreement.html",target:"blank"},on:{click:function(t){t.stopPropagation()}}},[t._v("用户协议及隐私政策")])])],1),n("div",[n("a",{on:{click:function(e){return t.$emit("change","login")}}},[t._v(t._s(t.$t("login.directLogin")))])])])],1)},o=[],i=(n("8e6e"),n("456d"),n("ac6a"),n("5df3"),n("bd86")),a=(n("4917"),n("5880")),l=n("c7cc"),s=n("c54a"),u=n("b5c6"),c=function(t,e,n,r,o,i){return Object(u["a"])({url:"/api/jobslink-api/tenant/front/company/account/registerNew",method:"post",headers:{"SCaptcha-Key":o,"SCaptcha-Code":r},params:{inviteCode:t,companyName:e,companyTid:n,code:r,account:o,password:i}})},f=function(t,e){return Object(u["a"])({url:"/api/jobslink-api/system/front/account/reg/sendValidate",method:"get",params:{account:t,authType:e}})},d=function(t){return Object(u["a"])({url:"/api/jobslink-api/tenant/front/tenant/check/identity",method:"get",params:{identity:t}})},p=n("8237"),h=n.n(p);function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e20||!o?n(new Error("密码格式不正确")):n()},n=function(t,e,n){e?d(e).then((function(){n()})).catch((function(t){n(t)})):n(new Error("请输入社会统一信用代码"))},r=function(t,e,n){e?n():n(new Error("请阅读并同意《服务及隐私协议》"))};return{msgText:"获取验证码",msgTime:120,msgKey:!1,checked:!1,registerForm:{inviteCode:"",account:"",password:"",code:"",checked:!1},rules:{companyName:[{required:!0,trigger:"blur",message:"请输入用工单位"}],companyTid:[{required:!0,whitespace:!0,message:"请输入统一社会信用代码",trigger:"blur"},{validator:n,trigger:"blur"}],account:[{required:!0,trigger:"blur",validator:t}],inviteCode:[{required:!0,message:"请输入邀请码",trigger:"blur"},{min:10,message:"长度不少于10个字符",trigger:"blur"}],code:[{required:!0,message:"请输入短信验证码",trigger:"blur"}],password:[{required:!0,message:"请输入密码"},{trigger:"blur",validator:e}],checked:[{validator:r,trigger:"blur"}]},passwordType:"password"}},watch:{},mounted:function(){},computed:b({},Object(a["mapGetters"])(["website","tagWel"])),props:[],methods:{showPassword:function(){""===this.passwordType?this.passwordType="password":this.passwordType=""},handleSend:function(){var t=this,e=new Promise((function(e){t.$refs.registerForm.validateField("inviteCode",e)})),n=new Promise((function(e){t.$refs.registerForm.validateField("account",e)}));Promise.all([e,n]).then((function(e){e[0]||e[1]||(t.msgKey=!0,t.msgText="发送中...",f(t.registerForm.account,0).then((function(){t.msgText="剩余120s",t.msgKey=!0;var e=setInterval((function(){t.msgTime--,t.msgText="剩余"+t.msgTime+"s",0===t.msgTime&&(t.msgTime=120,t.msgText="重新获取",t.msgKey=!1,clearInterval(e))}),1e3)})).catch((function(){t.msgText="重新获取",t.msgKey=!1})))}))},handleRegister:function(){var t=this;this.$refs.registerForm.validate((function(e){if(e)if(t.checked){var n=t.$loading({lock:!0,text:"注册中,请稍后。。。",spinner:"el-icon-loading"});c(t.registerForm.inviteCode,t.registerForm.companyName,t.registerForm.companyTid,t.registerForm.code,t.registerForm.account,h()(t.registerForm.password)).then((function(){t.$message({message:"注册成功",type:"success"}),n.close(),setTimeout((function(){t.$emit("change","login")}),1e3)}),(function(){n.close()}))}else t.$message.error("请阅读并同意宜昌市智慧就业服务平台用工用户协议及隐私政策")}))}}},m=g,v=(n("dfda"),n("2877")),O=Object(v["a"])(m,r,o,!1,null,null,null);e["default"]=O.exports},2262:function(t,e,n){"use strict";var r=n("e4a5"),o=n.n(r);o.a},2713:function(t,e,n){},"28a8":function(t,e,n){},"2cd1":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));n("8e6e"),n("ac6a"),n("456d");var r=n("bd86"),o=n("b5c6");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};if(this.id){this.loading=!0;var r="default"===this.wxStatus||"fangzhen"===this.wxStatus?3:4;Object(s["a"])(this.id,this.type,r,t.currentPage,t.pageSize,Object.assign(this.query,n)).then((function(t){e.data=t.data.data.records,e.page.total=t.data.data.total,e.loading=!1}))}else{this.loading=!0;var o="default"===this.wxStatus||"fangzhen"===this.wxStatus?1:2;Object(s["a"])("",o,o,t.currentPage,t.pageSize,Object.assign(this.query,n)).then((function(t){e.data=t.data.data.records,e.page.total=t.data.data.total,e.loading=!1}))}},modifyChange:function(t){this.closeChange()},closeChange:function(t){this.viewDrawer=!1},add:function(){this.viewDrawerAdd=!0},closeAdd:function(){this.viewDrawerAdd=!1},modify:function(t){this.formOption=JSON.parse(JSON.stringify(t)),this.formOption.type=JSON.parse(JSON.stringify(t.firstName)),this.formOption.tag=JSON.parse(JSON.stringify(t.secondName)),this.formOption.note=JSON.parse(JSON.stringify(t.content)),this.viewDrawer=!0},del:function(t){var e=this;this.$confirm("是否移除此数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){if(e.id){var n="default"===e.wxStatus||"fangzhen"===e.wxStatus?3:4;Object(s["b"])(e.id,e.type,n,t.id).then((function(t){e.$message({type:"success",message:"删除成功!"}),e.onLoad(e.page)}))}else{var r="default"===e.wxStatus||"fangzhen"===e.wxStatus?1:2;Object(s["b"])("",r,r,t.id).then((function(t){e.$message({type:"success",message:"删除成功!"}),e.onLoad(e.page)}))}})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},searchChange:function(t,e){this.query=t,this.page.currentPage=1,this.onLoad(this.page,t),e()},currentChange:function(t){this.page.currentPage=t,this.onLoad(this.page)},sizeChange:function(t){this.page.currentPage=1,this.page.pageSize=t,this.onLoad(this.page)},refreshChange:function(){this.page.currentPage=1,this.onLoad(this.page)},searchReset:function(){this.query={},this.onLoad(this.page)}}},f=c,d=n("2877"),p=Object(d["a"])(f,r,o,!1,null,"526f2e11",null);e["default"]=p.exports},"368f":function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"a",(function(){return f})),n.d(e,"h",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return y}));n("8e6e"),n("ac6a"),n("456d");var r=n("bd86"),o=n("b5c6"),i=n("0a5a");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.loading=!0,Object(a["g"])(t.currentPage,t.pageSize,Object.assign(n,this.query)).then((function(t){var n=t.data.data;e.pageParent.total=n.total,e.dataParent=n.records,e.loading=!1,e.selectionClear()}))},onLoadChild:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.loading=!0,Object(a["b"])(t.currentPage,t.pageSize,this.parentId,Object.assign(n,this.query)).then((function(t){var n=t.data.data;e.pageChild.total=n.total,e.dataChild=n.records,e.loading=!1,e.selectionClear()}))}}},f=c,d=n("2877"),p=Object(d["a"])(f,r,o,!1,null,null,null);e["default"]=p.exports},"6f66":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("basic-container",[n("jl-go-back"),n("el-row",[n("el-col",{attrs:{span:8}},[n("avue-form",{ref:"form",attrs:{option:t.formOption},on:{submit:t.handleSubmit},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}})],1),n("el-col",{attrs:{span:16}},[n("Tinymce",{ref:"tinymce",model:{value:t.form.note,callback:function(e){t.$set(t.form,"note",e)},expression:"form.note"}})],1)],1)],1)},o=[],i=(n("b54a"),n("c5f6"),n("a753"),n("8096"),n("14e1"),n("953d")),a=n("e159"),l=n("368f"),s=n("8256"),u=[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["image"]],c={components:{quillEditor:i["quillEditor"],Tinymce:s["default"]},props:{id:Number,type:String},mounted:function(){this.onload()},data:function(){return{putFile:l["e"],imageUrl:"",ruleForm:{content:null},form:{note:""},description:"",formOption:{column:[{label:"文章名称",prop:"articleTitle",span:24,row:!0,maxlength:50,showWordLimit:!0,rules:[{required:!0,message:"请输入文章名称"}]},{label:"摘要",prop:"description",rows:3,type:"textarea",span:24,row:!0,rules:[{required:!0,message:"请输入文章作者"}],maxlength:200,showWordLimit:!0},{label:"文章来源",prop:"articleSrc",span:24,row:!0,maxlength:50,showWordLimit:!0},{label:"文章源地址",prop:"articleSrcUrl",span:24,row:!0,maxlength:100,showWordLimit:!0},{label:"作者",prop:"author",span:24,row:!0,rules:[{required:!0,message:"请输入文章作者"}],maxlength:50,showWordLimit:!0},{label:"首页图",prop:"headPic",type:"upload",action:Object(l["e"])(),span:12,showFileList:!1,listType:"picture-img",multiple:!1,canvasOption:{},headers:[],data:[],propsHttp:{res:"data",url:"link"},rules:[{required:!0,message:"请上传首页图"}]}]},editorOption:{modules:{toolbar:{container:u,handlers:{image:function(t){t?document.querySelector(".avatar-uploader input").click():this.quill.format("image",!1)}}}},placeholder:"请在这里编写文章内容",readyOnly:!1,theme:"snow",syntax:!0}}},methods:{onEditorChange:function(t){this.content=t.html},handleSubmit:function(t,e){var n=this;this.form.note.length>32768?(this.$message.error("文章内容不能超过64KB!"),e()):"add"==this.type?Object(a["a"])(this.form.articleTitle,this.form.headPic,this.form.articleSrc,this.form.articleSrcUrl,this.form.author,this.form.description,this.form.note).then((function(){n.$message.success("添加成功"),n.$router.go(-1)})):"edit"==this.type&&Object(a["c"])(this.id,this.form.articleTitle,this.form.headPic,this.form.articleSrc,this.form.articleSrcUrl,this.form.author,this.form.description,this.form.note).then((function(){n.$message.success("修改成功"),e()}))},handleAvatarSuccess:function(t){var e=this.$refs.QuillEditor.quill,n=e.getSelection().index;e.insertEmbed(n,"image",t.data.link),e.setSelection(n+1)},beforeAvatarUpload:function(t){var e=-1!=["image/png","image/jpeg","image/svg+xml","image/gif"].indexOf(t.type),n=t.size/1024/1024<2;return e||this.$message.error("上传图片格式不正确"),n||this.$message.error("上传图片大小不能超过 2MB!"),e&&n},onload:function(){var t=this;this.id&&"edit"==this.type&&Object(a["e"])(this.id).then((function(e){t.form=e.data.data,t.description=t.form.description}))}}},f=c,d=(n("02e6"),n("2877")),p=Object(d["a"])(f,r,o,!1,null,null,null);e["default"]=p.exports},8096:function(t,e,n){},8256:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tinymce-container editor-container"},[n("textarea",{ref:"text",staticClass:"tinymce-textarea",attrs:{id:t.tinymceId}})])},o=[],i=(n("c5f6"),"print preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template code codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount imagetools textpattern help emoticons autosave indent2em autoresize axupimgs"),a=i,l="code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | indent2em",s=l,u=n("368f"),c=0;function f(){return"tinymce".concat(c++)}var d={name:"Tinymce",props:{height:{type:Number,required:!1,default:360},value:{type:String,default:""},visibleToolbar:{type:Boolean,required:!1,default:!0},visibleMenubar:{type:Boolean,required:!1,default:!0}},data:function(){return{ed:null,hasInit:!1,tinymceId:f()}},mounted:function(){this.initTinymce()},deactivated:function(){this.destroyTinymce()},destroyed:function(){this.ed.off("blur"),this.destroyTinymce()},methods:{initTinymce:function(){var t=this;window.tinymce.init({selector:"#".concat(this.tinymceId),language:"zh_CN",plugins:a,toolbar:!!this.visibleToolbar&&s,menubar:!!this.visibleMenubar,height:this.height,min_height:400,fontsize_formats:"12px 14px 16px 18px 24px 36px 48px 56px 72px",font_formats:"微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;苹果苹方=PingFang SC,Microsoft YaHei,sans-serif;宋体=simsun,serif;仿宋体=FangSong,serif;黑体=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats;知乎配置=BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;小米配置=Helvetica Neue,Helvetica,Arial,Microsoft Yahei,Hiragino Sans GB,Heiti SC,WenQuanYi Micro Hei,sans-serif",extended_valid_elements:"script[src]",template_cdate_format:"[CDATE: %m/%d/%Y : %H:%M:%S]",template_mdate_format:"[MDATE: %m/%d/%Y : %H:%M:%S]",autosave_ask_before_unload:!1,toolbar_mode:"wrap",images_upload_base_path:"",images_upload_handler:function(t,e){var n=t.file?t.file:t.blob();Object(u["f"])(n).then((function(t){e(t.data.msg)}))},setup:function(e){t.ed=e,e.on("blur",(function(){t.$emit("input",t.getContent())}))}}).then((function(){t.hasInit=!0,t.setContent(t.value)}))},destroyTinymce:function(){window.tinymce.get(this.tinymceId)&&window.tinymce.get(this.tinymceId).destroy()},setContent:function(t){this.hasInit&&window.tinyMCE.get(this.tinymceId).setContent(t)},getContent:function(){return window.tinymce.get(this.tinymceId).getContent()}},watch:{value:function(t){this.setContent(t)}}},p=d,h=(n("4991"),n("2877")),y=Object(h["a"])(p,r,o,!1,null,"ff24bfde",null);e["default"]=y.exports},"827a":function(t,e,n){},"8a5d":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("basic-container",[n("jl-go-back"),n("el-row",[n("el-col",{attrs:{span:12}},[n("avue-form",{ref:"form",attrs:{option:t.formOption},on:{submit:t.handleSubmit},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}},[n("template",{slot:"policyFileUrl"},[n("div",{staticClass:"policyFileUrlWrapper"},[n("div",{staticClass:"uploadWrapperAb"},[n("el-upload",{ref:"upload",attrs:{action:"#","show-file-list":!1,"http-request":t.allUpload,multiple:!1}},[n("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1)],1),n("avue-input",{attrs:{disabled:"",placeholder:"点击上传文件"},model:{value:t.policyFileUrl,callback:function(e){t.policyFileUrl=e},expression:"policyFileUrl"}})],1)])],2)],1),n("el-col",{attrs:{span:12}},[n("Tinymce",{ref:"tinymce",staticStyle:{height:"100%"},model:{value:t.form.note,callback:function(e){t.$set(t.form,"note",e)},expression:"form.note"}})],1)],1)],1)},o=[],i=(n("b54a"),n("c5f6"),n("a753"),n("8096"),n("14e1"),n("953d")),a=n("e159"),l=n("368f"),s=n("8256"),u=(n("1234"),[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["image"]]),c={components:{quillEditor:i["quillEditor"],Tinymce:s["default"]},props:{id:Number,type:String},mounted:function(){this.onload()},data:function(){return{policyFileUrl:"",putFile:l["e"],imageUrl:"",ruleForm:{content:null},form:{note:""},description:"",formOption:{column:[{label:"服务时间",span:24,labelWidth:100,prop:"createTime",rules:[{required:!0,message:"请输入服务时间"}]},{label:"服务发起人",span:24,labelWidth:100,prop:"fromName",rules:[{required:!0,message:"请输入服务发起人"}]},{label:"服务对象",span:24,labelWidth:100,prop:"toName",rules:[{required:!0,message:"请输入服务对象"}]},{label:"服务主题",span:24,labelWidth:100,prop:"serveTheme",rules:[{required:!0,message:"请输入服务主题"}]},{label:"服务内容",span:24,labelWidth:100,prop:"serveContent",rules:[{required:!0,message:"请输入服务内容"}]},{label:"备注1",span:24,labelWidth:100,prop:"bak1",rules:[{required:!0,message:"请输入备注1"}]},{label:"政策文件地址",prop:"policyFileUrl",span:24,labelWidth:120,hide:!0,slot:!0,formslot:!0,showWordLimit:!0}]},editorOption:{modules:{toolbar:{container:u,handlers:{image:function(t){t?document.querySelector(".avatar-uploader input").click():this.quill.format("image",!1)}}}},placeholder:"请在这里编写文章内容",readyOnly:!1,theme:"snow",syntax:!0}}},methods:{onEditorChange:function(t){this.content=t.html},handleSubmit:function(t,e){var n=this;this.form.note.length>32768?(this.$message.error("文章内容不能超过64KB!"),e()):"add"==this.type?Object(a["a"])(this.form.articleTitle,this.form.headPic,this.form.articleSrc,this.form.articleSrcUrl,this.form.author,this.form.description,this.form.note,this.form.type).then((function(){n.$message.success("添加成功"),n.$router.go(-1)})):"edit"==this.type&&Object(a["c"])(this.id,this.form.articleTitle,this.form.headPic,this.form.articleSrc,this.form.articleSrcUrl,this.form.author,this.form.description,this.form.note,this.form.type).then((function(){n.$message.success("修改成功"),e()}))},handleAvatarSuccess:function(t){var e=this.$refs.QuillEditor.quill,n=e.getSelection().index;e.insertEmbed(n,"image",t.data.link),e.setSelection(n+1)},beforeAvatarUpload:function(t){var e=-1!=["image/png","image/jpeg","image/svg+xml","image/gif"].indexOf(t.type),n=t.size/1024/1024<2;return e||this.$message.error("上传图片格式不正确"),n||this.$message.error("上传图片大小不能超过 2MB!"),e&&n},onload:function(){var t=this;this.id&&"edit"==this.type&&Object(a["e"])(this.id).then((function(e){t.form=e.data.data,t.description=t.form.description}))}}},f=c,d=(n("2262"),n("2877")),p=Object(d["a"])(f,r,o,!1,null,null,null);e["default"]=p.exports},"8ba5":function(t,e,n){"use strict";var r=n("ffbc"),o=n.n(r);o.a},9339:function(t,e,n){(function(e){
/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/
(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),l=n(46),s=n(47),u=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),y=n(1),b={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};e.default=b},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return r(e,t),e}(Error);e.ParchmentError=o;var i,a={},l={},s={},u={};function c(t,e){var n=d(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t["nodeType"]===Node.TEXT_NODE?t:r.create(e);return new r(i,e)}function f(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?f(t.parentNode,n):null}function d(t,e){var n;if(void 0===e&&(e=i.ANY),"string"===typeof t)n=u[t]||a[t];else if(t instanceof Text||t["nodeType"]===Node.TEXT_NODE)n=u["text"];else if("number"===typeof t)t&i.LEVEL&i.BLOCK?n=u["block"]:t&i.LEVEL&i.INLINE&&(n=u["inline"]);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=l[r[o]],n)break;n=n||s[t.tagName]}return null==n?null:e&i.LEVEL&n.scope&&e&i.TYPE&n.scope?n:null}function p(){for(var t=[],e=0;e1)return t.map((function(t){return p(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new o("Invalid definition");if("abstract"===n.blotName)throw new o("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(l[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(t){null!=s[t]&&null!=n.className||(s[t]=n)}))}return n}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(i=e.Scope||(e.Scope={})),e.create=c,e.find=f,e.query=d,e.register=p},function(t,e,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},s.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},s.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"===typeof n){if("number"===typeof t["delete"]&&"number"===typeof n["delete"])return this.ops[e-1]={delete:n["delete"]+t["delete"]},this;if("number"===typeof n["delete"]&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!==typeof n))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){var o=t(r)?e:n;o.push(r)})),[e,n]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},s.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},s.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var n=[],r=a.iterator(this.ops),o=0;while(o0&&n.next(i.retain-l)}var u=new s(r);while(e.hasNext()||n.hasNext())if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),d=n.next(c);if("number"===typeof d.retain){var p={};"number"===typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"===typeof f.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&o(u.ops[u.ops.length-1],p)){var y=new s(e.rest());return u.concat(y).chop()}}else"number"===typeof d["delete"]&&"number"===typeof f.retain&&u.push(d)}return u.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:l;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),i=new s,u=r(n[0],n[1],e),c=a.iterator(this.ops),f=a.iterator(t.ops);return u.forEach((function(t){var e=t[1].length;while(e>0){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var l=c.next(n),s=f.next(n);o(l.insert,s.insert)?i.retain(n,a.attributes.diff(l.attributes,s.attributes)):i.push(s)["delete"](n);break}e-=n}})),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";var n=a.iterator(this.ops),r=new s,o=0;while(n.hasNext()){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),u="string"===typeof i.insert?i.insert.indexOf(e,l)-l:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&t(r,{},o)},s.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var n=a.iterator(this.ops),r=a.iterator(t.ops),o=new s;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),u=r.next(i);if(l["delete"])continue;u["delete"]?o.push(u):o.retain(i,a.attributes.transform(l.attributes,u.attributes,e))}else o.retain(a.length(n.next()));return o.chop()},s.prototype.transformPosition=function(t,e){e=!!e;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=t){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-_)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},i}}]),e}(c.default.Block);function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,a.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:j(t.parent,e))}k.blotName="block",k.tagName="P",k.defaultChild="break",k.allowedChildren=[h.default,c.default.Embed,b.default],e.bubbleFormats=j,e.BlockEmbed=w,e.default=k},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){o=!0,i=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(E(this,t),this.options=P(e,r),this.container=this.options.container,null==this.container)return C.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=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 f.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.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(f.default.events.EDITOR_CHANGE,(function(t){t===f.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;N.call(n,(function(){return n.editor.update(null,e,o)}),t)}));var i=this.clipboard.convert("");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),_.default.level(t)}},{key:"find",value:function(t){return t.__quill||y.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&C.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var o=t.attrName||t.blotName;"string"===typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||C.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?y.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),i(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,i=q(t,e,n),a=o(i,4);return t=a[0],e=a[1],n=a[3],N.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return N.call(this,(function(){var r=n.getSelection(!0),o=new l.default;if(null==r)return o;if(y.default.query(t,y.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,x({},t,e));else{if(0===r.length)return n.selection.format(t,e),o;o=n.editor.formatText(r.index,r.length,x({},t,e))}return n.setSelection(r,f.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(t,e,n,r,i){var a=this,l=void 0,s=q(t,e,n,r,i),u=o(s,4);return t=u[0],e=u[1],l=u[2],i=u[3],N.call(this,(function(){return a.editor.formatLine(t,e,l)}),i,t,0)}},{key:"formatText",value:function(t,e,n,r,i){var a=this,l=void 0,s=q(t,e,n,r,i),u=o(s,4);return t=u[0],e=u[1],l=u[2],i=u[3],N.call(this,(function(){return a.editor.formatText(t,e,l)}),i,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=q(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=q(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return N.call(this,(function(){return o.editor.insertEmbed(e,n,r)}),i,e)}},{key:"insertText",value:function(t,e,n,r,i){var a=this,l=void 0,s=q(t,0,n,r,i),u=o(s,4);return t=u[0],l=u[2],i=u[3],N.call(this,(function(){return a.editor.insertText(t,e,l)}),i,t,e.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(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,i=q(t,e,n),a=o(i,4);return t=a[0],e=a[1],n=a[3],N.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return N.call(this,(function(){t=new l.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];null!=i&&"string"===typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1));var a=r.compose(o);return a}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var i=q(e,n,r),a=o(i,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new b.Range(e,n),r),r!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,n=(new l.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return N.call(this,(function(){return t=new l.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function P(t,e){if(e=(0,v.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==S.DEFAULTS.theme){if(e.theme=S.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=k.default;var n=(0,v.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)),o=r.reduce((function(t,e){var n=S.import("modules/"+e);return null==n?C.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,v.default)(!0,{},S.DEFAULTS,{modules:o},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function N(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===f.default.sources.USER)return new l.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=t();if(null!=o&&(!0===n&&(n=o.index),null==r?o=T(o,a,e):0!==r&&(o=T(o,n,r,e)),this.setSelection(o,f.default.sources.SILENT)),a.length()>0){var s,u,c=[f.default.events.TEXT_CHANGE,a,i,e];if((s=this.emitter).emit.apply(s,[f.default.events.EDITOR_CHANGE].concat(c)),e!==f.default.sources.SILENT)(u=this.emitter).emit.apply(u,c)}return a}function q(t,e,n,o,i){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(i=o,o=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(i=o,o=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,i=o):"string"===typeof n&&(null!=o?a[n]=o:i=n),i=i||f.default.sources.API,[t,e,a,i]}function T(t,e,n,r){if(null==t)return null;var i=void 0,a=void 0;if(e instanceof l.default){var s=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==f.default.sources.USER)})),u=o(s,2);i=u[0],a=u[1]}else{var c=[t.index,t.index+t.length].map((function(t){return t=0?t+n:Math.max(e,t+n)})),d=o(c,2);i=d[0],a=d[1]}return new b.Range(i,a-i)}S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=f.default.events,S.sources=f.default.sources,S.version="1.3.7",S.imports={delta:l.default,parchment:y.default,"core/module":p.default,"core/theme":k.default},e.expandConfig=P,e.overload=q,e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(t){if(r.indexOf(t)<=r.indexOf(o)){for(var e,n=arguments.length,i=Array(n>1?n-1:0),a=1;a0&&"number"!==typeof t[0]))}function u(t,e,n){var u,c;if(l(t)||l(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t))return!!i(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(s(t)){if(!s(e))return!1;if(t.length!==e.length)return!1;for(u=0;u=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!a(t[c],e[c],n))return!1;return typeof t===typeof e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var n=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){o=!0,i=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n=t+n)){var a=this.newlineIndex(t,!0)+1,l=i-a+1,s=this.isolate(a,l),c=s.next;s.format(r,o),c instanceof e&&c.formatAt(0,t-a+n-l,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var o=this.descendant(y.default,t),i=r(o,2),a=i[0],l=i[1];a.insertAt(l,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);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(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=u.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof u.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(f.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",e.Code=O,e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){o=!0,i=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n=i&&!c.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,c);var d=e.scroll.line(t),p=o(d,2),h=p[0],y=p[1],m=(0,x.default)({},(0,b.bubbleFormats)(h));if(h instanceof g.default){var v=h.descendant(f.default.Leaf,y),O=o(v,1),_=O[0];m=(0,x.default)(m,(0,b.bubbleFormats)(_))}s=u.default.attributes.diff(m,s)||{}}else if("object"===r(a.insert)){var w=Object.keys(a.insert)[0];if(null==w)return t;e.scroll.insertAt(t,w,a.insert[w])}i+=l}return Object.keys(s).forEach((function(n){e.scroll.formatAt(t,l,n,s[n])})),t+l}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new l.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),a=e;i.forEach((function(e){var i=e.length();if(e instanceof p.default){var l=t-e.offset(n.scroll),s=e.newlineIndex(l+a)-l+1;e.formatAt(l,s,o,r[o])}else e.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(t).retain(e,(0,_.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e,o,r[o])})),this.update((new l.default).retain(t).retain(e,(0,_.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new l.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=o(t,1),i=e[0];i instanceof g.default?n.push(i):i instanceof f.default.Leaf&&r.push(i)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(f.default.Leaf,t,e));var i=[n,r].map((function(t){if(0===t.length)return{};var e=(0,b.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var n=t.shift();if(null==n)return e;e=q((0,b.bubbleFormats)(n),e)}return e}));return x.default.apply(x.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new l.default).retain(t).insert(C({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e.length,o,r[o])})),this.update((new l.default).retain(t).insert(e,(0,_.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===g.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof v.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),i=o(r,2),a=i[0],s=i[1],u=0,c=new l.default;null!=a&&(u=a instanceof p.default?a.newlineIndex(s)-s+1:a.length()-s,c=a.delta().slice(s,s+u-1).insert("\n"));var f=this.getContents(t,e+u),d=f.diff((new l.default).insert(n).concat(c)),h=(new l.default).retain(t).concat(d);return this.applyDelta(h)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(P)&&f.default.find(e[0].target)){var o=f.default.find(e[0].target),i=(0,b.bubbleFormats)(o),a=o.offset(this.scroll),s=e[0].oldValue.replace(y.default.CONTENTS,""),u=(new l.default).insert(s),c=(new l.default).insert(o.value()),d=(new l.default).retain(a).concat(u.diff(c,n));t=d.reduce((function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)}),new l.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,k.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function q(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}function T(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,_.default)(e.attributes);return delete n["image"],t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,_.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new l.default)}e.default=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){o=!0,i=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;g(this,t),this.index=e,this.length=n},O=function(){function t(e,n){var r=this;g(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new v(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,d.default.sources.USER),1)})),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(t,e){t===d.default.events.TEXT_CHANGE&&e.length()>0&&r.update(d.default.sources.SILENT)})),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(d.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}})),this.update(d.default.sources.SILENT)}return o(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(d.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var o=void 0,i=this.scroll.leaf(t),a=r(i,2),l=a[0],s=a[1];if(null==l)return null;var u=l.position(s,!0),c=r(u,2);o=c[0],s=c[1];var f=document.createRange();if(e>0){f.setStart(o,s);var d=this.scroll.leaf(t+e),p=r(d,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),y=r(h,2);return o=y[0],s=y[1],f.setEnd(o,s),f.getBoundingClientRect()}var b="left",g=void 0;return o instanceof Text?(s0&&(b="right")),{bottom:g.top+g.height,height:g.height,left:g[b],right:g[b],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return m.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var o=n.map((function(t){var n=r(t,2),o=n[0],i=n[1],l=a.default.find(o,!0),s=l.offset(e.scroll);return 0===i?s:l instanceof a.default.Container?s+l.length():s+l.index(o,i)})),i=Math.min(Math.max.apply(Math,b(o)),this.scroll.length()-1),l=Math.min.apply(Math,[i].concat(b(o)));return new v(l,i-l)}},{key:"normalizeNative",value:function(t){if(!_(this.root,t.startContainer)||!t.collapsed&&!_(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,n=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],o=[],i=this.scroll.length();return n.forEach((function(t,n){t=Math.min(i-1,t);var a=void 0,l=e.scroll.leaf(t),s=r(l,2),u=s[0],c=s[1],f=u.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,o)),a=r(i,1),l=a[0],s=l;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,o)),c=r(u,1);s=c[0]}if(null!=l&&null!=s){var f=t.getBoundingClientRect();n.topf.bottom&&(t.scrollTop+=n.bottom-f.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(t,e),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof e&&(n=e,e=!1),m.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,b(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,e=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],a=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(e,this.lastRange)){var l;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,f=[d.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(e),t];if((l=this.emitter).emit.apply(l,[d.default.events.EDITOR_CHANGE].concat(f)),t!==d.default.sources.SILENT)(u=this.emitter).emit.apply(u,f)}}}]),t}();function _(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=v,e.default=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){var r=n(11),o=n(3),i={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var r=o(!0,{},e);for(var i in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,o){return r(t[o],e[o])||(n[o]=void 0===e[o]?null:e[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=i.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"===typeof e.retain?o.retain=t:"string"===typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.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"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=i},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,o;try{n=Map}catch(f){n=function(){}}try{r=Set}catch(f){r=function(){}}try{o=Promise}catch(f){o=function(){}}function i(a,l,s,u,f){"object"===typeof l&&(s=l.depth,u=l.prototype,f=l.includeNonEnumerable,l=l.circular);var d=[],p=[],h="undefined"!=typeof e;function y(a,s){if(null===a)return null;if(0===s)return a;var b,g;if("object"!=typeof a)return a;if(t(a,n))b=new n;else if(t(a,r))b=new r;else if(t(a,o))b=new o((function(t,e){a.then((function(e){t(y(e,s-1))}),(function(t){e(y(t,s-1))}))}));else if(i.__isArray(a))b=[];else if(i.__isRegExp(a))b=new RegExp(a.source,c(a)),a.lastIndex&&(b.lastIndex=a.lastIndex);else if(i.__isDate(a))b=new Date(a.getTime());else{if(h&&e.isBuffer(a))return b=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(b),b;t(a,Error)?b=Object.create(a):"undefined"==typeof u?(g=Object.getPrototypeOf(a),b=Object.create(g)):(b=Object.create(u),g=u)}if(l){var m=d.indexOf(a);if(-1!=m)return p[m];d.push(a),p.push(b)}for(var v in t(a,n)&&a.forEach((function(t,e){var n=y(e,s-1),r=y(t,s-1);b.set(n,r)})),t(a,r)&&a.forEach((function(t){var e=y(t,s-1);b.add(e)})),a){var O;g&&(O=Object.getOwnPropertyDescriptor(g,v)),O&&null==O.set||(b[v]=y(a[v],s-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(v=0;v<_.length;v++){var w=_[v],k=Object.getOwnPropertyDescriptor(a,w);(!k||k.enumerable||f)&&(b[w]=y(a[w],s-1),k.enumerable||Object.defineProperty(b,w,{enumerable:!1}))}}if(f){var j=Object.getOwnPropertyNames(a);for(v=0;v0){if(l instanceof c.BlockEmbed||d instanceof c.BlockEmbed)return void this.optimize();if(l instanceof y.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1),l===d))return void this.optimize()}else if(d instanceof y.default){var b=d.newlineIndex(0);b>-1&&d.split(b+1)}var g=d.children.head instanceof p.default?null:d.children.head;l.moveChildren(d,g),l.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==l.default.query(n,l.default.Scope.BLOCK)){var o=l.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var a=l.default.create(n,r);this.appendChild(a)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===l.default.Scope.INLINE_BLOT){var r=l.default.create(this.statics.defaultChild);r.appendChild(t),t=r}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(w,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,(function(e,n,r){w(e)?o.push(e):e instanceof l.default.Container&&(o=o.concat(t(e,n,i))),i-=r})),o};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,t),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,t)}}}]),e}(l.default.Scroll);k.blotName="scroll",k.className="ql-editor",k.tagName="DIV",k.defaultChild="block",k.allowedChildren=[f.default,c.BlockEmbed,g.default],e.default=k},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){o=!0,i=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B(t);if(null==r||null==r.key)return P.warn("Attempted to add invalid keyboard binding",r);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),r=(0,f.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(t.bindings[i]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var l=t.quill.getSelection();if(null!=l&&t.quill.hasFocus()){var s=t.quill.getLine(l.index),c=o(s,2),f=c[0],d=c[1],p=t.quill.getLeaf(l.index),h=o(p,2),y=h[0],b=h[1],m=0===l.length?[y,b]:t.quill.getLeaf(l.index+l.length),v=o(m,2),O=v[0],_=v[1],w=y instanceof g.default.Text?y.value().slice(0,b):"",k=O instanceof g.default.Text?O.value().slice(_):"",j={collapsed:0===l.length,empty:0===l.length&&f.length()<=1,format:t.quill.getFormat(l),offset:d,prefix:w,suffix:k},x=a.some((function(e){if(null!=e.collapsed&&e.collapsed!==j.collapsed)return!1;if(null!=e.empty&&e.empty!==j.empty)return!1;if(null!=e.offset&&e.offset!==j.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==j.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=j.format[t]:!1===e.format[t]?null==j.format[t]:(0,u.default)(e.format[t],j.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(j.prefix))&&(!(null!=e.suffix&&!e.suffix.test(j.suffix))&&!0!==e.handler.call(t,l,j))}));x&&n.preventDefault()}}}}))}}]),e}(k.default);function T(t,e){var n,r=t===q.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},x(n,r,/^$/),x(n,"handler",(function(n){var r=n.index;t===q.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r),a=o(i,1),l=a[0];return!(l instanceof g.default.Embed)||(t===q.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,v.default.sources.USER):this.quill.setSelection(n.index-1,v.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,v.default.sources.USER):this.quill.setSelection(n.index+n.length+1,v.default.sources.USER),!1)})),n}function A(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=o(n,1),i=r[0],a={};if(0===e.offset){var l=this.quill.getLine(t.index-1),s=o(l,1),u=s[0];if(null!=u&&u.length()>1){var c=i.formats(),f=this.quill.getFormat(t.index-1,1);a=y.default.attributes.diff(c,f)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-d,d,v.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(t.index-d,d,a,v.default.sources.USER),this.quill.focus()}}function L(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(t.index),l=o(a,1),s=l[0];if(e.offset>=s.length()-1){var u=this.quill.getLine(t.index+1),c=o(u,1),f=c[0];if(f){var d=s.formats(),p=this.quill.getFormat(t.index,1);r=y.default.attributes.diff(d,p)||{},i=f.length()}}this.quill.deleteText(t.index,n,v.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+i-1,n,r,v.default.sources.USER)}}function M(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=y.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,v.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,v.default.sources.USER),this.quill.setSelection(t.index,v.default.sources.SILENT),this.quill.focus()}function I(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return g.default.query(n,g.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,v.default.sources.USER),this.quill.setSelection(t.index+1,v.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],v.default.sources.USER))}))}function D(t){return{key:q.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=g.default.query("code-block"),r=e.index,i=e.length,a=this.quill.scroll.descendant(n,r),l=o(a,2),s=l[0],u=l[1];if(null!=s){var c=this.quill.getIndex(s),f=s.newlineIndex(u,!0)+1,d=s.newlineIndex(c+u+i),p=s.domNode.textContent.slice(f,d).split("\n");u=0,p.forEach((function(e,o){t?(s.insertAt(f+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):e.startsWith(n.TAB)&&(s.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=e.length+1})),this.quill.update(v.default.sources.USER),this.quill.setSelection(r,i,v.default.sources.SILENT)}}}}function R(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],v.default.sources.USER)}}}function B(t){if("string"===typeof t||"number"===typeof t)return B({key:t});if("object"===("undefined"===typeof t?"undefined":r(t))&&(t=(0,l.default)(t,!1)),"string"===typeof t.key)if(null!=q.keys[t.key.toUpperCase()])t.key=q.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[N]=t.shortKey,delete t.shortKey),t}q.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},q.DEFAULTS={bindings:{bold:R("bold"),italic:R("italic"),underline:R("underline"),indent:{key:q.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",v.default.sources.USER)}},outdent:{key:q.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",v.default.sources.USER)}},"outdent backspace":{key:q.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",v.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,v.default.sources.USER)}},"indent code-block":D(!0),"outdent code-block":D(!1),"remove tab":{key:q.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,v.default.sources.USER)}},tab:{key:q.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new p.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,v.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,v.default.sources.SILENT)}},"list empty enter":{key:q.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,v.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,v.default.sources.USER)}},"checklist enter":{key:q.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],a=(0,f.default)({},r.formats(),{list:"checked"}),l=(new p.default).retain(t.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,v.default.sources.USER),this.quill.setSelection(t.index+1,v.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:q.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=o(n,2),i=r[0],a=r[1],l=(new p.default).retain(t.index).insert("\n",e.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,v.default.sources.USER),this.quill.setSelection(t.index+1,v.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),i=o(r,2),a=i[0],l=i[1];if(l>n)return!0;var s=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(t.index," ",v.default.sources.USER),this.quill.history.cutoff();var u=(new p.default).retain(t.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(u,v.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,v.default.sources.SILENT)}},"code exit":{key:q.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],a=(new p.default).retain(t.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,v.default.sources.USER)}},"embed left":T(q.keys.LEFT,!1),"embed left shift":T(q.keys.LEFT,!0),"embed right":T(q.keys.RIGHT,!1),"embed right shift":T(q.keys.RIGHT,!0)}},e.default=q,e.SHORTKEY=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){o=!0,i=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n-1}f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=P(r),i=n(5),a=P(i),l=n(4),s=P(l),u=n(16),c=P(u),f=n(25),d=P(f),p=n(24),h=P(p),y=n(35),b=P(y),g=n(6),m=P(g),v=n(22),O=P(v),_=n(7),w=P(_),k=n(55),j=P(k),x=n(42),E=P(x),C=n(23),S=P(C);function P(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":s.default,"blots/block/embed":l.BlockEmbed,"blots/break":c.default,"blots/container":d.default,"blots/cursor":h.default,"blots/embed":b.default,"blots/inline":m.default,"blots/scroll":O.default,"blots/text":w.default,"modules/clipboard":j.default,"modules/history":E.default,"modules/keyboard":S.default}),o.default.register(s.default,c.default,h.default,m.default,O.default,w.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){var n=this.isolate(t,e);n.remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=i.default.keys(this.domNode);e.concat(n).concat(l).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12);function i(t,e){var n=t.getAttribute("class")||"";return n.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=i(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=i(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(o.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12);function i(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(o.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;nr&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,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(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(u.default);function y(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}function b(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),n=t.length()-e;return y(t)&&(n-=1),n}h.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=h,e.getLastChangeIndex=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==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-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,c.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=L(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",c.default.sources.USER),this.quill.setSelection(r+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(w.default);function L(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function M(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=A,e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,n=this.iterator();while(e=n())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,n=this.head;while(null!=n){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var n,r=this.iterator();while(n=r()){var o=n.length();if(tl?n(r,t-l,Math.min(e,l+u-t)):n(r,0,Math.min(u,t+e-l)),l+=u}}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){var n,r=this.iterator();while(n=r())e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),i=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=100,s=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)e.push(a.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(u),t.optimize(n))},c=e,f=0;c.length>0;f+=1){if(f>=l)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=i.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),a=c.slice();while(a.length>0)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)})),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1);function a(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){if(null!=this.formats()[r]||i.query(r,i.Scope.ATTRIBUTE)){var a=this.isolate(e,n);a.format(r,o)}else t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&a(r,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=i.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=i.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),a=i.create(n,r);o.parent.insertBefore(a,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;ie.length?t:e,u=t.length>e.length?e:t,c=s.indexOf(u);if(-1!=c)return a=[[r,s.substring(0,c)],[o,u],[r,s.substring(c+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,t],[r,e]];var d=f(t,e);if(d){var p=d[0],h=d[1],y=d[2],b=d[3],g=d[4],m=i(p,y),v=i(h,b);return m.concat([[o,g]],v)}return l(t,e)}function l(t,e){for(var o=t.length,i=e.length,a=Math.ceil((o+i)/2),l=a,u=2*a,c=new Array(u),f=new Array(u),d=0;do)b+=2;else if(w>i)y+=2;else if(h){var k=l+p-O;if(k>=0&&k=j)return s(t,e,C,w)}}}for(var x=-v+g;x<=v-m;x+=2){k=l+x;j=x==-v||x!=v&&f[k-1]o)m+=2;else if(E>i)g+=2;else if(!h){_=l+p-x;if(_>=0&&_=j)return s(t,e,C,w)}}}}return[[n,t],[r,e]]}function s(t,e,n,r){var o=t.substring(0,n),a=e.substring(0,r),l=t.substring(n),s=e.substring(r),u=i(o,a),c=i(l,s);return u.concat(c)}function u(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var n=0,r=Math.min(t.length,e.length),o=r,i=0;while(ne.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length=t.length?[r,o,i,a,f]:null}var i,a,l,s,f,d=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;i=p?d&&d[4].length>p[4].length?d:p:d,t.length>e.length?(a=i[0],l=i[1],s=i[2],f=i[3]):(s=i[0],f=i[1],a=i[2],l=i[3]);var h=i[4];return[a,l,s,f,h]}function d(t){t.push([o,""]);var e,i=0,a=0,l=0,s="",f="";while(i1?(0!==a&&0!==l&&(e=u(f,s),0!==e&&(i-a-l>0&&t[i-a-l-1][0]==o?t[i-a-l-1][1]+=f.substring(0,e):(t.splice(0,0,[o,f.substring(0,e)]),i++),f=f.substring(e),s=s.substring(e)),e=c(f,s),0!==e&&(t[i][1]=f.substring(f.length-e)+t[i][1],f=f.substring(0,f.length-e),s=s.substring(0,s.length-e))),0===a?t.splice(i-l,a+l,[r,f]):0===l?t.splice(i-a,a+l,[n,s]):t.splice(i-a-l,a+l,[n,s],[r,f]),i=i-a-l+(a?1:0)+(l?1:0)+1):0!==i&&t[i-1][0]==o?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,l=0,a=0,s="",f="";break}""===t[t.length-1][1]&&t.pop();var p=!1;i=1;while(i0&&r.splice(i+2,0,[l[0],s]),g(r,i,3)}return t}function b(t){for(var e=!1,i=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},l=2;l0&&s.push(t[l]);return s}function g(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1\r?\n +\<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[_.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,C({},_.default.blotName,e[_.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],l=i[1],s=z(this.container,a,l);return B(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new u.default).retain(s.length()-1).delete(1))),q.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,p.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new u.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),p.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new u.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(p.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,p.default.sources.USER),e.quill.setSelection(r.length()-n.length,p.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:e.push(l);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[T]=t[T]||[],t[T].push(l)}));break}})),[e,n]}}]),e}(g.default);function D(t,e,n){return"object"===("undefined"===typeof e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return D(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,l.default)({},C({},e,n),r.attributes))}),new u.default)}function R(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function B(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length-1}function z(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new u.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,o){var i=z(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce((function(t,e){return e(o,t)}),i),i=(o[T]||[]).reduce((function(t,e){return e(o,t)}),i)),r.concat(i)}),new u.default):new u.default}function U(t,e,n){return D(n,t,!0)}function $(t,e){var n=f.default.Attributor.Attribute.keys(t),r=f.default.Attributor.Class.keys(t),o=f.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach((function(e){var n=f.default.query(e,f.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=L[e],null==n||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),n=M[e],null==n||n.attrName!==e&&n.keyName!==e||(n=M[e],i[n.attrName]=n.value(t)||void 0))})),Object.keys(i).length>0&&(e=D(e,i)),e}function H(t,e){var n=f.default.query(t);if(null==n)return e;if(n.prototype instanceof f.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new u.default).insert(r,n.formats(t)))}else"function"===typeof n.formats&&(e=D(e,n.blotName,n.formats(t)));return e}function K(t,e){return B(e,"\n")||e.insert("\n"),e}function W(){return new u.default}function V(t,e){var n=f.default.query(t);if(null==n||"list-item"!==n.blotName||!B(e,"\n"))return e;var r=-1,o=t.parentNode;while(!o.classList.contains("ql-clipboard"))"list"===(f.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new u.default).retain(e.length()-1).retain(1,{indent:r}))}function Z(t,e){return B(e,"\n")||(F(t)||e.length()>0&&t.nextSibling&&F(t.nextSibling))&&e.insert("\n"),e}function G(t,e){if(F(t)&&null!=t.nextElementSibling&&!B(e,"\n\n")){var n=t.offsetHeight+parseFloat(R(t).marginTop)+parseFloat(R(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function Y(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===R(t).fontStyle&&(n.italic=!0),r.fontWeight&&(R(t).fontWeight.startsWith("bold")||parseInt(R(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=D(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new u.default).insert("\t").concat(e)),e}function J(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!R(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&F(t.parentNode)||null!=t.previousSibling&&F(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&F(t.parentNode)||null!=t.nextSibling&&F(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}I.DEFAULTS={matchers:[],matchVisual:!0},e.default=I,e.matchAttributor=$,e.matchBlot=H,e.matchNewline=Z,e.matchSpacing=G,e.matchText=J},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;nr.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.leftr.bottom){var a=o.bottom-o.top,l=t.bottom-t.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){o=!0,i=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n','','',''].join(""),e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29),o=nt(r),i=n(36),a=n(38),l=n(64),s=n(65),u=nt(s),c=n(66),f=nt(c),d=n(67),p=nt(d),h=n(37),y=n(26),b=n(39),g=n(40),m=n(56),v=nt(m),O=n(68),_=nt(O),w=n(27),k=nt(w),j=n(69),x=nt(j),E=n(70),C=nt(E),S=n(71),P=nt(S),N=n(72),q=nt(N),T=n(73),A=nt(T),L=n(13),M=nt(L),I=n(74),D=nt(I),R=n(75),B=nt(R),F=n(57),z=nt(F),U=n(41),$=nt(U),H=n(28),K=nt(H),W=n(59),V=nt(W),Z=n(60),G=nt(Z),Y=n(61),J=nt(Y),Q=n(108),X=nt(Q),tt=n(62),et=nt(tt);function nt(t){return t&&t.__esModule?t:{default:t}}o.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":h.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":h.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":g.SizeStyle},!0),o.default.register({"formats/align":i.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":l.IndentClass,"formats/background":h.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":b.FontClass,"formats/size":g.SizeClass,"formats/blockquote":u.default,"formats/code-block":M.default,"formats/header":f.default,"formats/list":p.default,"formats/bold":v.default,"formats/code":L.Code,"formats/italic":_.default,"formats/link":k.default,"formats/script":x.default,"formats/strike":C.default,"formats/underline":P.default,"formats/image":q.default,"formats/video":A.default,"formats/list/item":d.ListItem,"modules/formula":D.default,"modules/syntax":B.default,"modules/toolbar":z.default,"themes/bubble":X.default,"themes/snow":et.default,"ui/icons":$.default,"ui/picker":K.default,"ui/icon-picker":G.default,"ui/color-picker":V.default,"ui/tooltip":J.default},!0),e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof b)o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);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(t){if(t.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(c.default);g.blotName="list",g.scope=a.default.Scope.BLOCK_BLOT,g.tagName=["OL","UL"],g.defaultChild="list-item",g.allowedChildren=[b],e.ListItem=b,e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(56),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return d.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,l.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);p.blotName="image",p.tagName="IMG",e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return d.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return l.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(i.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(d.default);g.className="ql-syntax";var m=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),v=function(t){function e(t,n){h(this,e);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return b(e,t),r(e,null,[{key:"register",value:function(){s.default.register(m,!0),s.default.register(g,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(g).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(s.default.sources.SILENT),null!=e&&this.quill.setSelection(e,s.default.sources.SILENT)}}}]),e}(c.default);v.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=g,e.CodeToken=m,e.default=v},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n0&&o===s.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var a=i[i.length-1],l=r.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-l),c=r.quill.getBounds(new f.Range(l,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return g(e,t),o(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),e}(u.BaseTooltip);O.TEMPLATE=['','"].join(""),e.BubbleTooltip=O,e.default=v},function(t,e,n){t.exports=n(63)}])["default"]}))}).call(this,n("b639").Buffer)},"93b4":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{staticStyle:{"padding-left":"10px","padding-right":"10px"},attrs:{size:"small","label-position":"right",inline:!0}},[n("el-row",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"一级分类",prop:"firstId"}},[n("el-select",{attrs:{placeholder:"请选择分类"},on:{change:t.secondList},model:{value:t.query.firstId,callback:function(e){t.$set(t.query,"firstId",e)},expression:"query.firstId"}},t._l(t.first,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),n("el-form-item",{attrs:{label:"二级分类",prop:"secondId"}},[t.query.firstId?n("el-select",{attrs:{placeholder:"请选择标签"},model:{value:t.query.secondId,callback:function(e){t.$set(t.query,"secondId",e)},expression:"query.secondId"}},t._l(t.second,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1):n("el-select",{attrs:{disabled:"",placeholder:"请选择标签"},model:{value:t.query.secondId,callback:function(e){t.$set(t.query,"secondId",e)},expression:"query.secondId"}})],1),n("div",{staticClass:"searchBtn"},[n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-search"},on:{click:t.searchChange1}},[t._v("搜 索")]),n("el-button",{attrs:{size:"small",icon:"el-icon-delete"},on:{click:t.searchReset1}},[t._v("清 空")])],1)],1)],1),n("avue-crud",{ref:"crud",attrs:{option:t.option,"table-loading":t.loading,data:t.data,page:t.page},on:{"update:page":function(e){t.page=e},"search-change":t.searchChange,"current-change":t.currentChange,"size-change":t.sizeChange,"refresh-change":t.refreshChange,"selection-change":t.selectionChange,"on-load":t.onLoad},scopedSlots:t._u([{key:"menu",fn:function(e){var r=e.row;return[n("el-button",{attrs:{size:"small",type:"text"},on:{click:function(e){return t.look(r)}}},[t._v("查看")])]}}])},[n("template",{slot:"menuLeft"},[n("el-button",{attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.submit}},[t._v("保存")])],1)],2),n("el-drawer",{attrs:{title:"查看",visible:t.viewDrawer,size:"60%"},on:{"update:visible":function(e){t.viewDrawer=e}}},[t.viewDrawer?n("modify-dialog",{attrs:{formOption:t.formOption,disabled:""}}):t._e()],1)],1)},o=[],i=(n("ac6a"),n("f765")),a=n("040b"),l=n("d902"),s=n("2cd1"),u="default",c={name:"addDialog",inject:["contentManage","recommend"],components:{modifyDialog:i["default"]},props:{viewDrawerAdd:{type:Boolean,default:!1}},created:function(){this.firstList()},data:function(){return{wxStatus:u,btnLoading:!1,loading:!1,viewDrawer:!1,formOption:{secondId:""},query:{secondId:""},option:{height:"auto",tip:!1,searchShow:!0,searchMenuSpan:4,border:!0,index:!1,indexLabel:"序号",selection:!0,viewBtn:!1,addBtn:!1,editBtn:!1,delBtn:!1,columnBtn:!1,menuWidth:300,labelWidth:151,dialogClickModal:!1,dialogType:"drawer",dialogFullscreen:!0,column:[{label:"内容标题",prop:"title",display:!1,search:!1},{label:"一级分类",prop:"firstId",display:!1,type:"tree",dicUrl:Object(a["a"])(),props:{label:"name",value:"id"}},{label:"二级分类",prop:"secondName",display:!1}]},first:[],second:[],data:[],submitList:[],page:{pageSize:10,currentPage:1,total:100}}},methods:{firstList:function(){var t=this;Object(a["b"])().then((function(e){t.first=e.data.data}))},secondList:function(t){var e=this;Object(a["c"])(t).then((function(t){e.formOption.secondId="",e.second=t.data.data}))},searchChange1:function(){this.page.currentPage=1,this.onLoad(this.page,this.query)},searchReset1:function(){this.query={secondId:""},this.onLoad(this.page,this.query)},submit:function(){this.recommend&&this.recommend.titleList[1].select?this.wxSubmit():this.pcSubmit()},wxSubmit:function(){var t=this;if(0!==this.submitList.length){this.btnLoading=!0;var e="";this.submitList.forEach((function(t){0===e.length?e+=t.id:e=e+","+t.id}));var n="default"===this.wxStatus||"fangzhen"===this.wxStatus?1:2,r={sidebarId:"",type:n,contentIds:e,source:n};Object(s["c"])(r).then((function(e){t.$message({type:"success",message:"保存成功!"}),t.btnLoading=!1,t.contentManage.closeAdd()})).catch((function(){t.btnLoading=!1}))}},pcSubmit:function(){var t=this;if(0!==this.submitList.length){this.btnLoading=!0;var e="";this.submitList.forEach((function(t){0===e.length?e+=t.id:e=e+","+t.id}));var n="default"===this.wxStatus||"fangzhen"===this.wxStatus?3:4,r={sidebarId:this.$route.params.id,type:this.$route.params.type,contentIds:e,source:n};Object(s["c"])(r).then((function(e){t.$message({type:"success",message:"保存成功!"}),t.btnLoading=!1,t.contentManage.closeAdd()})).catch((function(){t.btnLoading=!1}))}},look:function(t){this.formOption=JSON.parse(JSON.stringify(t)),this.formOption.type=JSON.parse(JSON.stringify(t.firstName)),this.formOption.tag=JSON.parse(JSON.stringify(t.secondName)),this.formOption.note=JSON.parse(JSON.stringify(t.content)),this.viewDrawer=!0},onLoad:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.loading=!0,Object(l["d"])(t.currentPage,t.pageSize,Object.assign(this.query,n)).then((function(t){e.data=t.data.data.records,e.page.total=t.data.data.total,e.loading=!1}))},selectionChange:function(t){this.submitList=JSON.parse(JSON.stringify(t))},currentChange:function(t){this.page.currentPage=t},sizeChange:function(t){this.page.currentPage=1,this.page.pageSize=t},refreshChange:function(){this.page.currentPage=1,this.onLoad(this.page)}}},f=c,d=(n("b463"),n("2877")),p=Object(d["a"])(f,r,o,!1,null,"078a740c",null);e["default"]=p.exports},"953d":function(t,e,n){!function(e,r){t.exports=r(n("9339"))}(0,(function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n.n(r),i=n(6),a=n(5),l=a(o.a,i.a,!1,null,null,null);e.default=l.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var o=n(0),i=r(o),a=n(1),l=r(a),s=window.Quill||i.default,u=function(t,e){e&&(l.default.props.globalOptions.default=function(){return e}),t.component(l.default.name,l.default)},c={Quill:s,quillEditor:l.default,install:u};e.default=c,e.Quill=s,e.quillEditor=l.default,e.install=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(3),l=r(a),s=window.Quill||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r
"===o&&(o=""),t._content=o,t.$emit("input",t._content),t.$emit("change",{html:o,text:a,quill:i})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,n,r,o,i){var a,l=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(a=t,l=t.default);var u,c="function"==typeof l?l.options:l;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o),i?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=u):r&&(u=r),u){var f=c.functional,d=f?c.render:c.beforeCreate;f?(c._injectStyles=u,c.render=function(t,e){return u.call(e),d(t,e)}):c.beforeCreate=d?[].concat(d,u):[u]}return{esModule:a,exports:l,options:c}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),n("div",{ref:"editor"})],2)},o=[],i={render:r,staticRenderFns:o};e.a=i}])}))},9925:function(t,e,n){"use strict";var r=n("827a"),o=n.n(r);o.a},"9e55":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("basic-container",[n("el-form",{staticStyle:{"padding-left":"10px","padding-right":"10px"},attrs:{size:"small","label-position":"right",inline:!0}},[n("el-row",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"消息标题:"}},[n("el-input",{attrs:{placeholder:"消息标题",clearable:""},model:{value:t.query.title,callback:function(e){t.$set(t.query,"title",e)},expression:"query.title"}})],1),n("el-form-item",{attrs:{label:"消息类型:"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"消息类型",clearable:""},model:{value:t.query.category,callback:function(e){t.$set(t.query,"category",e)},expression:"query.category"}},t._l(t.newsType,(function(t,e,r){return n("el-option",{key:r,attrs:{label:t.dictValue,value:t.dictKey}})})),1)],1),n("div",{staticClass:"searchBtn"},[n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-search"},on:{click:t.searchChange1}},[t._v("搜 索")]),n("el-button",{attrs:{size:"small",icon:"el-icon-delete"},on:{click:t.searchReset1}},[t._v("清 空")])],1)],1)],1),n("avue-crud",{ref:"crud",attrs:{option:t.option,"table-loading":t.loading,data:t.data,permission:t.permissionList,page:t.page,"before-open":t.beforeOpen},on:{"row-del":t.rowDel,"update:page":function(e){t.page=e},"search-change":t.searchChange,"search-reset":t.searchReset,"selection-change":t.selectionChange,"current-change":t.currentChange,"size-change":t.sizeChange,"refresh-change":t.refreshChange,"on-load":t.onLoad},scopedSlots:t._u([{key:"category",fn:function(e){var r=e.row;return[n("el-tag",[t._v(t._s(r.categoryName))])]}},{key:"contentLabel",fn:function(){return[n("div")]},proxy:!0},{key:"contentForm",fn:function(){return[n("div",{domProps:{innerHTML:t._s(t.form.content)}})]},proxy:!0}]),model:{value:t.form,callback:function(e){t.form=e},expression:"form"}},[n("template",{slot:"menuLeft"},[n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-view"},on:{click:t.handleRemarkRead}},[t._v("标记已读")]),n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("批量删除")])],1)],2)],1)},o=[],i=(n("8e6e"),n("456d"),n("6762"),n("2fdb"),n("ac6a"),n("bd86")),a=n("2905"),l=n("b5c6");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.loading=!0;var r=3;"Type-T"===this.loginType?r=1:"Type-S"===this.loginType&&(r=3),c(t.currentPage,t.pageSize,Object.assign(n,this.query),r).then((function(t){var n=t.data.data;e.page.total=n.total,e.data=n.records,e.loading=!1,e.selectionClear()}))}}},g=b,m=(n("b4a1"),n("2877")),v=Object(m["a"])(g,r,o,!1,null,"599b08b7",null);e["default"]=v.exports},a753:function(t,e,n){},a769:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-drawer",{attrs:{title:"招聘情况",visible:t.visible,size:"60%","append-to-body":""},on:{"update:visible":function(e){t.visible=e}}},[n("avue-crud",{ref:"crud",attrs:{option:t.option,"table-loading":t.loading,data:t.data,permission:t.permissionList,page:t.page},on:{"update:page":function(e){t.page=e},"search-change":t.searchChange,"search-reset":t.searchReset,"selection-change":t.selectionChange,"current-change":t.currentChange,"size-change":t.sizeChange,"refresh-change":t.refreshChange,"on-load":t.onLoad},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}})],1)},o=[],i=(n("8e6e"),n("456d"),n("ac6a"),n("bd86")),a=n("ba63"),l=n("5880");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.loading=!0,Object(a["e"])(t.currentPage,t.pageSize,this.missionNo,Object.assign(this.query,n)).then((function(t){var n=t.data.data;e.page.total=n.total,e.data=n.records,e.loading=!1}))}}},f=c,d=n("2877"),p=Object(d["a"])(f,r,o,!1,null,null,null);e["default"]=p.exports},ab5c:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("basic-container",[t._v("测试页")])],1)},o=[],i={name:"wel",data:function(){return{}},computed:{},created:function(){},methods:{}},a=i,l=n("2877"),s=Object(l["a"])(a,r,o,!1,null,"1f96fafa",null);e["default"]=s.exports},aed47:function(t,e,n){"use strict";var r=n("0747"),o=n.n(r);o.a},b463:function(t,e,n){"use strict";var r=n("e8d2"),o=n.n(r);o.a},b4a1:function(t,e,n){"use strict";var r=n("2713"),o=n.n(r);o.a},ba63:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return f}));n("8e6e"),n("ac6a"),n("456d"),n("a481");var r=n("bd86"),o=n("b5c6");n("0a5a");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e32768?(this.$message.error("文章内容不能超过64KB!"),e()):"add"==this.type?Object(a["a"])(this.form.articleTitle,this.form.headPic,this.form.articleSrc,this.form.articleSrcUrl,this.form.author,this.form.description,this.form.note,this.form.type).then((function(){n.$message.success("添加成功"),n.$router.go(-1)})):"edit"==this.type&&Object(a["c"])(this.id,this.form.articleTitle,this.form.headPic,this.form.articleSrc,this.form.articleSrcUrl,this.form.author,this.form.description,this.form.note,this.form.type).then((function(){n.$message.success("修改成功"),e()}))},handleAvatarSuccess:function(t){var e=this.$refs.QuillEditor.quill,n=e.getSelection().index;e.insertEmbed(n,"image",t.data.link),e.setSelection(n+1)},beforeAvatarUpload:function(t){var e=-1!=["image/png","image/jpeg","image/svg+xml","image/gif"].indexOf(t.type),n=t.size/1024/1024<2;return e||this.$message.error("上传图片格式不正确"),n||this.$message.error("上传图片大小不能超过 2MB!"),e&&n},onload:function(){var t=this;this.id&&"edit"==this.type&&Object(a["e"])(this.id).then((function(e){t.form=e.data.data,t.description=t.form.description}))}}},d=f,p=(n("8ba5"),n("2877")),h=Object(p["a"])(d,r,o,!1,null,null,null);e["default"]=h.exports},d8ac:function(t,e,n){},d902:function(t,e,n){"use strict";n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return c}));n("8e6e"),n("ac6a"),n("456d");var r=n("bd86"),o=n("b5c6");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.loading=!0,Object(a["g"])(t.currentPage,t.pageSize,Object.assign(n,this.query)).then((function(t){var n=t.data.data;e.pageParent.total=n.total,e.dataParent=n.records,e.loading=!1,e.selectionClear()}))},onLoadChild:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.loading=!0,Object(a["b"])(t.currentPage,t.pageSize,this.parentId,Object.assign(n,this.query)).then((function(t){var n=t.data.data;e.pageChild.total=n.total,e.dataChild=n.records,e.loading=!1,e.selectionClear()}))}}},f=c,d=n("2877"),p=Object(d["a"])(f,r,o,!1,null,null,null);e["default"]=p.exports},dfda:function(t,e,n){"use strict";var r=n("05f3"),o=n.n(r);o.a},e159:function(t,e,n){"use strict";n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return s})),n.d(e,"e",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return f})),n.d(e,"f",(function(){return d})),n.d(e,"g",(function(){return p}));n("8e6e"),n("ac6a"),n("456d");var r=n("bd86"),o=n("b5c6");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e