diff --git a/CHANGELOG.md b/CHANGELOG.md index c47d9a402e..f7ca6d4ad7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # CHANGELOG +# 1.5.0-alpha.3 + +## Breaking changes + +- Content API 的评论列表接口不再返回 `ipAddress` 和 `email` 字段。 halo-dev/halo#1729 @guqing + +## Features + +- 后台文章设置弹框支持创建新分类。 halo-dev/halo-admin#489 @ruibaby + +## Improvements + +- 优化后台折叠菜单的体验,解决折叠时 Logo 和 菜单动画不同步的问题。 halo-dev/halo-admin#493 @ruibaby +- 缓存后台折叠菜单的状态,刷新页面不再会恢复到初始状态。 halo-dev/halo-admin#493 @ruibaby +- 优化后台判断是否初始化的逻辑,修改为每次页面加载只请求一次,切换路由不再请求。 halo-dev/halo-admin#495 @ruibaby + +## Bug Fixes + +- 修复当前版本如果为 `alpha` 版本,安装主题无法通过版本验证的问题。 halo-dev/halo#1705 @JohnNiang +- 修复 alpha.2 版本中当文章内容为空时,删除文章报错的问题。 halo-dev/halo#1715 @guqing +- 修复评论部分因为没有添加事务,导致批量删除评论等操作时报错的问题。 halo-dev/halo#1716 @guqing +- 修改后台全局的 Local Storage 的前缀,修复 alpha.2 中因为后台布局配置变化导致升级后布局混乱的问题。 halo-dev/halo-admin#490 @ruibaby +- 修复后台点击后台 Halo Logo 进入开发者选项过快可能会导致计数为负的问题。 halo-dev/halo-admin#492 @ruibaby +- 修复后台附件列表分页之后,可能会导致无法正常更新图片 dom 导致图片显示为上一页图片的问题。 halo-dev/halo-admin#496 @ruibaby + # 1.5.0-alpha.2 ## Features diff --git a/src/main/resources/admin/css/249.982db2ca.css b/src/main/resources/admin/css/249.982db2ca.css new file mode 100644 index 0000000000..a8f5cc3539 --- /dev/null +++ b/src/main/resources/admin/css/249.982db2ca.css @@ -0,0 +1 @@ +[data-v-6a3000be] .installationForm .ant-divider .ant-divider-inner-text{padding-left:0}[data-v-6a3000be] .installationForm .ant-divider:before{width:0} \ No newline at end of file diff --git a/src/main/resources/admin/css/641.40c88391.css b/src/main/resources/admin/css/641.40c88391.css deleted file mode 100644 index 43dcfa22df..0000000000 --- a/src/main/resources/admin/css/641.40c88391.css +++ /dev/null @@ -1 +0,0 @@ -[data-v-33a5f3d0] .installationForm .ant-divider .ant-divider-inner-text{padding-left:0}[data-v-33a5f3d0] .installationForm .ant-divider:before{width:0} \ No newline at end of file diff --git a/src/main/resources/admin/css/477.f14bd7a4.css b/src/main/resources/admin/css/814.f14bd7a4.css similarity index 100% rename from src/main/resources/admin/css/477.f14bd7a4.css rename to src/main/resources/admin/css/814.f14bd7a4.css diff --git a/src/main/resources/admin/css/app.fefc29f9.css b/src/main/resources/admin/css/app.2771c76a.css similarity index 97% rename from src/main/resources/admin/css/app.fefc29f9.css rename to src/main/resources/admin/css/app.2771c76a.css index dd70b6d2cd..cbc87d4b0b 100644 --- a/src/main/resources/admin/css/app.fefc29f9.css +++ b/src/main/resources/admin/css/app.2771c76a.css @@ -1,4 +1,4 @@ -.header-animat{position:relative;z-index:999}.showHeader-enter-active{transition:all .25s ease}.showHeader-leave-active{transition:all .5s ease}.showHeader-enter,.showHeader-leave-to{opacity:0}.setting-drawer-index-content .setting-drawer-index-blockChecbox[data-v-fabaa384]{display:flex}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item[data-v-fabaa384]{margin-right:16px;position:relative;border-radius:4px;cursor:pointer}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item img[data-v-fabaa384]{width:48px}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item .setting-drawer-index-selectIcon[data-v-fabaa384]{position:absolute;top:0;right:0;width:100%;padding-top:15px;padding-left:24px;height:100%;color:#1890ff;font-size:14px;font-weight:700}.setting-drawer-index-content .setting-drawer-theme-color-colorBlock[data-v-fabaa384]{width:20px;height:20px;border-radius:2px;float:left;cursor:pointer;margin-right:8px;padding-left:0;padding-right:0;text-align:center;color:#fff;font-weight:700}.setting-drawer-index-content .setting-drawer-theme-color-colorBlock i[data-v-fabaa384]{font-size:14px}.setting-drawer-index-handle[data-v-fabaa384]{position:absolute;top:240px;background:#1890ff;width:48px;height:48px;right:300px;display:flex;justify-content:center;align-items:center;cursor:pointer;pointer-events:auto;z-index:1001;text-align:center;font-size:16px;border-radius:4px 0 0 4px}.setting-drawer-index-handle i[data-v-fabaa384]{color:#fff;font-size:20px} +.showHeader-enter-active{transition:all .25s ease}.showHeader-leave-active{transition:all .5s ease}.showHeader-enter,.showHeader-leave-to{opacity:0}.setting-drawer-index-content .setting-drawer-index-blockChecbox[data-v-fb6bf264]{display:flex}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item[data-v-fb6bf264]{margin-right:16px;position:relative;border-radius:4px;cursor:pointer}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item img[data-v-fb6bf264]{width:48px}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item .setting-drawer-index-selectIcon[data-v-fb6bf264]{position:absolute;top:0;right:0;width:100%;padding-top:15px;padding-left:24px;height:100%;color:#1890ff;font-size:14px;font-weight:700}.setting-drawer-index-content .setting-drawer-theme-color-colorBlock[data-v-fb6bf264]{width:20px;height:20px;border-radius:2px;float:left;cursor:pointer;margin-right:8px;padding-left:0;padding-right:0;text-align:center;color:#fff;font-weight:700}.setting-drawer-index-content .setting-drawer-theme-color-colorBlock i[data-v-fb6bf264]{font-size:14px}.setting-drawer-index-handle[data-v-fb6bf264]{position:absolute;top:240px;background:#1890ff;width:48px;height:48px;right:300px;display:flex;justify-content:center;align-items:center;cursor:pointer;pointer-events:auto;z-index:1001;text-align:center;font-size:16px;border-radius:4px 0 0 4px}.setting-drawer-index-handle i[data-v-fb6bf264]{color:#fff;font-size:20px} /*! * animate.css -https://daneden.github.io/animate.css/ * Version - 3.7.2 diff --git a/src/main/resources/admin/index.html b/src/main/resources/admin/index.html index 37017ad784..fd88130eed 100644 --- a/src/main/resources/admin/index.html +++ b/src/main/resources/admin/index.html @@ -1 +1 @@ -Halo
\ No newline at end of file +Halo
\ No newline at end of file diff --git a/src/main/resources/admin/js/122.1c33b80f.js b/src/main/resources/admin/js/122.1c33b80f.js deleted file mode 100644 index 54fe88e9cd..0000000000 --- a/src/main/resources/admin/js/122.1c33b80f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[122],{43122:function(e,t,a){a.d(t,{Z:function(){return V}});var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{afterClose:e.onClosed,bodyStyle:{padding:0},maskClosable:!1,width:680,destroyOnClose:""},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.modalTitle)+" "),e.loading?a("a-icon",{attrs:{type:"loading"}}):e._e()]},proxy:!0},{key:"footer",fn:function(){return[e._t("extraFooter"),e.draftSaveVisible?a("ReactiveButton",{attrs:{errored:e.form.draftSaveErrored,loading:e.form.draftSaving,text:(e.hasId?"转为":"保存")+"草稿",erroredText:"保存失败",loadedText:"保存成功",type:"danger"},on:{callback:function(t){return e.handleSavedCallback()},click:function(t){return e.handleSaveDraft()}}}):e._e(),e.publishVisible?a("ReactiveButton",{attrs:{errored:e.form.publishErrored,loading:e.form.publishing,erroredText:"发布失败",loadedText:"发布成功",text:"转为发布"},on:{callback:function(t){return e.handleSavedCallback()},click:function(t){return e.handlePublish()}}}):e._e(),a("ReactiveButton",{attrs:{errored:e.form.saveErrored,erroredText:(e.hasId?"保存":"发布")+"失败",loadedText:(e.hasId?"保存":"发布")+"成功",loading:e.form.saving,text:e.hasId?"保存":"发布"},on:{callback:function(t){return e.handleSavedCallback()},click:function(t){return e.handleSave()}}}),a("a-button",{attrs:{disabled:e.loading},on:{click:function(t){e.modalVisible=!1}}},[e._v("关闭")])]},proxy:!0}],null,!0),model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[a("div",{staticClass:"card-container"},[a("a-tabs",{attrs:{type:"card"}},[a("a-tab-pane",{key:"normal",attrs:{tab:"常规"}},[a("a-form",{attrs:{"label-col":{span:4},"wrapper-col":{span:20},labelAlign:"left"}},[a("a-form-item",{attrs:{label:"文章标题"}},[a("a-input",{model:{value:e.form.model.title,callback:function(t){e.$set(e.form.model,"title",t)},expression:"form.model.title"}})],1),a("a-form-item",{attrs:{help:e.fullPath,label:"文章别名"}},[a("a-input",{scopedSlots:e._u([{key:"addonAfter",fn:function(){return[a("a-popconfirm",{attrs:{"cancel-text":"取消","ok-text":"确定",placement:"left",title:"是否确定根据标题重新生成别名?"},on:{confirm:e.handleGenerateSlug}},[a("a-icon",{staticClass:"cursor-pointer",attrs:{type:"sync"}})],1)]},proxy:!0}]),model:{value:e.form.model.slug,callback:function(t){e.$set(e.form.model,"slug",t)},expression:"form.model.slug"}})],1),a("a-form-item",{attrs:{label:"分类目录"}},[a("category-tree",{model:{value:e.form.model.categoryIds,callback:function(t){e.$set(e.form.model,"categoryIds",t)},expression:"form.model.categoryIds"}})],1),a("a-form-item",{attrs:{label:"标签"}},[a("TagSelect",{model:{value:e.form.model.tagIds,callback:function(t){e.$set(e.form.model,"tagIds",t)},expression:"form.model.tagIds"}})],1),a("a-form-item",{attrs:{label:"摘要"}},[a("a-input",{attrs:{autoSize:{minRows:5},placeholder:"如不填写,会从文章中自动截取",type:"textarea"},model:{value:e.form.model.summary,callback:function(t){e.$set(e.form.model,"summary",t)},expression:"form.model.summary"}})],1)],1)],1),a("a-tab-pane",{key:"advanced",attrs:{tab:"高级"}},[a("a-form",{attrs:{"label-col":{span:4},"wrapper-col":{span:20},labelAlign:"left"}},[a("a-form-item",{attrs:{label:"禁止评论"}},[a("a-switch",{model:{value:e.form.model.disallowComment,callback:function(t){e.$set(e.form.model,"disallowComment",t)},expression:"form.model.disallowComment"}})],1),a("a-form-item",{attrs:{label:"是否置顶"}},[a("a-switch",{model:{value:e.topPriority,callback:function(t){e.topPriority=t},expression:"topPriority"}})],1),a("a-form-item",{attrs:{label:"发表时间:"}},[a("a-date-picker",{attrs:{defaultValue:e.createTimeDefaultValue,format:"YYYY-MM-DD HH:mm:ss",placeholder:"选择文章发表时间",showTime:""},on:{change:e.onCreateTimeSelect,ok:e.onCreateTimeSelect}})],1),a("a-form-item",{attrs:{label:"自定义模板:"}},[a("a-select",{model:{value:e.form.model.template,callback:function(t){e.$set(e.form.model,"template",t)},expression:"form.model.template"}},[a("a-select-option",{key:"",attrs:{value:""}},[e._v("无")]),e._l(e.templates,(function(t){return a("a-select-option",{key:t,attrs:{value:t}},[e._v(" "+e._s(t)+" ")])}))],2)],1),a("a-form-item",{attrs:{label:"访问密码:"}},[a("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.form.model.password,callback:function(t){e.$set(e.form.model,"password",t)},expression:"form.model.password"}})],1),a("a-form-item",{attrs:{label:"封面图:"}},[a("a-space",{attrs:{direction:"vertical"}},[a("img",{staticClass:"w-1/2 cursor-pointer",staticStyle:{"border-radius":"4px"},attrs:{src:e.form.model.thumbnail||"/images/placeholder.jpg",alt:"Post cover thumbnail"},on:{click:function(t){e.attachmentSelectVisible=!0}}}),a("a-input",{attrs:{"allow-clear":"",placeholder:"点击封面图选择图片,或者输入外部链接"},model:{value:e.form.model.thumbnail,callback:function(t){e.$set(e.form.model,"thumbnail",t)},expression:"form.model.thumbnail"}})],1)],1)],1)],1),a("a-tab-pane",{key:"seo",attrs:{tab:"SEO"}},[a("a-form",{attrs:{"label-col":{span:4},"wrapper-col":{span:20},labelAlign:"left"}},[a("a-form-item",{attrs:{label:"自定义关键词"}},[a("a-input",{attrs:{autoSize:{minRows:5},placeholder:"多个关键词以英文逗号隔开,如不填写,将自动使用标签作为关键词",type:"textarea"},model:{value:e.form.model.metaKeywords,callback:function(t){e.$set(e.form.model,"metaKeywords",t)},expression:"form.model.metaKeywords"}})],1),a("a-form-item",{attrs:{label:"自定义描述"}},[a("a-input",{attrs:{autoSize:{minRows:5},placeholder:"如不填写,会从文章中自动截取",type:"textarea"},model:{value:e.form.model.metaDescription,callback:function(t){e.$set(e.form.model,"metaDescription",t)},expression:"form.model.metaDescription"}})],1)],1)],1),a("a-tab-pane",{key:"meta",attrs:{tab:"元数据"}},[a("MetaEditor",{attrs:{metas:e.form.model.metas,targetId:e.form.model.id,target:"post"},on:{"update:metas":function(t){return e.$set(e.form.model,"metas",t)}}})],1)],1)],1),a("AttachmentSelectModal",{attrs:{multiSelect:!1,visible:e.attachmentSelectVisible},on:{"update:visible":function(t){e.attachmentSelectVisible=t},confirm:e.handleSelectPostThumbnail}})],1)},o=[],n=a(47458),s=a(86475),l=(a(70315),a(41479),a(87591),a(30535),a(85018),a(31875),a(18482),a(86381),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-tree",{attrs:{checkedKeys:e.categoryIds,treeData:e.categoryTree,checkStrictly:"",checkable:"",defaultExpandAll:"",showLine:""},on:{check:e.onCheck}})}),i=[],c=(a(21082),a(17132));function m(e,t){t.forEach((function(t){e.key===t.parentId&&(e.children||(e.children=[]),e.children.push({key:t.id,title:t.name,isLeaf:!1}))})),e.children?e.children.forEach((function(e){return m(e,t)})):e.isLeaf=!0}function d(e){var t={key:0,title:"top",children:[]};return m(t,e),t.children}var u={name:"CategoryTree",model:{prop:"categoryIds",event:"check"},props:{categoryIds:{type:Array,required:!1,default:function(){return[]}}},data:function(){return{categories:{data:[],loading:!1}}},computed:{categoryTree:function(){return this.categories.data.length?d(this.categories.data):[]}},created:function(){this.handleListCategories()},methods:{handleListCategories:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.categories.loading=!0,t.next=4,c.Z.category.list({sort:[],more:!1});case 4:a=t.sent,r=a.data,e.categories.data=r,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$log.error(t.t0);case 12:return t.prev=12,e.categories.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[0,9,12,15]])})))()},onCheck:function(e,t){this.$log.debug("Chekced keys",e),this.$log.debug("e",t),this.$emit("check",e.checked)}}},f=u,h=a(42177),p=(0,h.Z)(f,l,i,!1,null,null,null),g=p.exports,v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-select",{staticClass:"w-full",attrs:{"token-separators":[",","|"],allowClear:"",mode:"tags",placeholder:"选择或输入标签"},on:{change:e.handleChange},model:{value:e.selectedTagNames,callback:function(t){e.selectedTagNames=t},expression:"selectedTagNames"}},e._l(e.tags,(function(t){return a("a-select-option",{key:t.id,attrs:{value:t.name}},[e._v(e._s(t.name))])})),1)},b=[],k=(a(82395),a(90195),a(10299)),y=a.n(k),x={name:"TagSelect",model:{prop:"tagIds",event:"change"},props:{tagIds:{type:Array,required:!1,default:function(){return[]}}},data:function(){return{tags:[],selectedTagNames:[]}},created:function(){this.handleListTags()},watch:{tags:function(e){var t=this;e&&(this.selectedTagNames=this.tagIds.map((function(e){return t.tagIdMap[e].name})))},tagIds:{handler:function(e){var t=this;this.tags.length&&(this.selectedTagNames=e.map((function(e){return t.tagIdMap[e].name})))},deep:!0}},computed:{tagIdMap:function(){var e={};return this.tags.forEach((function(t){e[t.id]=t})),e},tagNameMap:function(){var e={};return this.tags.forEach((function(t){e[t.name]=t})),e}},methods:{handleListTags:function(e){var t=this;c.Z.tag.list({sort:"name,asc",more:!0}).then((function(a){t.tags=a.data,e&&e()}))},handleChange:function(){var e=this,t=this.selectedTagNames.filter((function(t){return!e.tagNameMap[t]}));if(this.$log.debug("Tag names to create",t),t.length){var a=t.map((function(e){return c.Z.tag.create({name:e})}));y().all(a).then(y().spread((function(){e.handleListTags((function(){e.$log.debug("Tag name map",e.tagNameMap);var t=e.selectedTagNames.map((function(t){return e.tagNameMap[t].id}));e.$emit("change",t)}))})))}else{var r=this.selectedTagNames.map((function(t){return e.tagNameMap[t].id}));this.$emit("change",r)}}}},w=x,S=(0,h.Z)(w,v,b,!1,null,null,null),T=S.exports,C=a(99421),_=a(91411),E=a(38487),$=a(73511),I=a.n($),D=a(98906),Y=a(94671),R={name:"PostSettingModal",mixins:[_.jB,_.KT],components:{CategoryTree:g,TagSelect:T,MetaEditor:C.Z},props:{visible:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},post:{type:Object,default:function(){return{}}},savedCallback:{type:Function,default:null}},data:function(){return{postStatuses:Y.JQ,form:{model:{},saving:!1,saveErrored:!1,draftSaving:!1,draftSaveErrored:!1,publishing:!1,publishErrored:!1},templates:[],attachmentSelectVisible:!1}},computed:(0,s.Z)((0,s.Z)({},(0,D.Se)(["options"])),{},{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},modalTitle:function(){return this.form.model.id?"文章设置":"文章发布"},createTimeDefaultValue:function(){if(this.form.model.createTime){var e=new Date(this.form.model.createTime);return(0,E._)(e,"YYYY-MM-DD HH:mm:ss")}return(0,E._)(new Date,"YYYY-MM-DD HH:mm:ss")},topPriority:{get:function(){return 0!==this.form.model.topPriority},set:function(e){this.form.model.topPriority=e?1:0}},fullPath:function(){var e=this.options,t=e.post_permalink_type,a=e.archives_prefix,r=e.blog_url,o=e.path_suffix,n=void 0===o?"":o,s=this.form.model,l=s.slug,i=void 0===l?"{slug}":l,c=s.createTime,m=void 0===c?new Date:c,d=s.id,u=void 0===d?"{id}":d;switch(t){case"DEFAULT":return"".concat(r,"/").concat(a,"/").concat(i).concat(n);case"YEAR":return"".concat(r).concat((0,E._)(m,"/YYYY/")).concat(i).concat(n);case"DATE":return"".concat(r).concat((0,E._)(m,"/YYYY/MM/")).concat(i).concat(n);case"DAY":return"".concat(r).concat((0,E._)(m,"/YYYY/MM/DD/")).concat(i).concat(n);case"ID":return"".concat(r,"/?p=").concat(u);case"ID_SLUG":return"".concat(r,"/").concat(a,"/").concat(u).concat(n);default:return""}},hasId:function(){return!!this.form.model.id},draftSaveVisible:function(){var e=this.form,t=e.draftSaving,a=e.publishing;return(this.form.model.status!==Y.JQ.DRAFT.value||!this.hasId||t)&&!a},publishVisible:function(){var e=this.form,t=e.draftSaving,a=e.publishing;return(this.form.model.status===Y.JQ.DRAFT.value&&this.hasId||a)&&!t}}),watch:{modalVisible:function(e){e&&(this.form.model=Object.assign({},this.post),this.form.model.slug||this.form.model.id||this.handleGenerateSlug())},post:{deep:!0,handler:function(e){this.form.model=Object.assign({},e)}}},created:function(){this.handleListCustomTemplates()},methods:{handleCreateOrUpdate:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.form.model.title){t.next=3;break}throw e.$notification["error"]({message:"提示",description:"文章标题不能为空!"}),new Error("文章标题不能为空!");case 3:if(e.form.model.keepRaw=!0,t.prev=4,!e.hasId){t.next=10;break}return t.next=8,c.Z.post.update(e.form.model.id,e.form.model);case 8:t.next=12;break;case 10:return t.next=12,c.Z.post.create(e.form.model);case 12:t.next=18;break;case 14:throw t.prev=14,t.t0=t["catch"](4),e.$log.error(t.t0),new Error(t.t0);case 18:case"end":return t.stop()}}),t,null,[[4,14]])})))()},handleSave:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.form.saving=!0,a=e.form.model.status,a||(e.form.model.status=e.postStatuses.PUBLISHED.value),t.next=6,e.handleCreateOrUpdate();case 6:t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](0),e.form.saveErrored=!0,e.$log.error("Failed to save post",t.t0);case 12:return t.prev=12,setTimeout((function(){e.form.saving=!1}),400),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[0,8,12,15]])})))()},handlePublish:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.form.publishing=!0,e.form.model.status=e.postStatuses.PUBLISHED.value,t.next=5,e.handleCreateOrUpdate();case 5:t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),e.form.publishErrored=!0,e.$log.error("Failed to publish post",t.t0);case 11:return t.prev=11,setTimeout((function(){e.form.publishing=!1}),400),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,7,11,14]])})))()},handleSaveDraft:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.form.draftSaving=!0,e.form.model.status=e.postStatuses.DRAFT.value,t.next=5,e.handleCreateOrUpdate();case 5:t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),e.form.draftSaveErrored=!0,e.$log.error("Failed to save draft post",t.t0);case 11:return t.prev=11,setTimeout((function(){e.form.draftSaving=!1}),400),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,7,11,14]])})))()},handleSavedCallback:function(){this.form.saveErrored||this.form.draftSaveErrored||this.form.publishErrored?(this.form.saveErrored=!1,this.form.draftSaveErrored=!1,this.form.publishErrored=!1):this.savedCallback&&this.savedCallback()},handleListCustomTemplates:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c.Z.theme.listCustomPostTemplates();case 3:a=t.sent,e.templates=a.data,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$log.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},onCreateTimeSelect:function(e){this.form.model.createTime=e.valueOf()},handleGenerateSlug:function(){if(this.form.model.title&&I().isSupported()){var e,t="",a=I().parse(this.form.model.title.replace(/\s+/g,"").toLowerCase());a.forEach((function(a){if(2===a.type){var r=a.target?a.target.toLowerCase():"";t+=t&&!/\n|\s/.test(e.target)?"-"+r:r}else t+=(e&&2===e.type?"-":"")+a.target;e=a})),this.$set(this.form.model,"slug",t)}},handleSelectPostThumbnail:function(e){var t=e.raw;t.length&&(this.form.model.thumbnail=encodeURI(t[0].path)),this.attachmentSelectVisible=!1},onClosed:function(){this.$emit("onClose"),this.$emit("onUpdate",this.form.model)}}},M=R,Z=(0,h.Z)(M,r,o,!1,null,null,null),V=Z.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/13.85ee54e3.js b/src/main/resources/admin/js/13.85ee54e3.js deleted file mode 100644 index 668fc53811..0000000000 --- a/src/main/resources/admin/js/13.85ee54e3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[13],{75013:function(t,e,a){a.r(e),a.d(e,{default:function(){return g}});var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("page-view",[a("a-row",{attrs:{gutter:12,align:"middle",type:"flex"}},[a("a-col",{staticClass:"pb-3",attrs:{span:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline"}},[a("a-row",{attrs:{gutter:48}},[a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"关键词:"}},[a("a-input",{on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery()}},model:{value:t.list.params.keyword,callback:function(e){t.$set(t.list.params,"keyword",e)},expression:"list.params.keyword"}})],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"存储位置:"}},[a("a-select",{attrs:{loading:t.types.loading,allowClear:""},on:{change:function(e){return t.handleQuery()}},model:{value:t.list.params.attachmentType,callback:function(e){t.$set(t.list.params,"attachmentType",e)},expression:"list.params.attachmentType"}},t._l(t.types.data,(function(e){return a("a-select-option",{key:e,attrs:{value:e}},[t._v(" "+t._s(t._f("typeText")(e))+" ")])})),1)],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"文件类型:"}},[a("a-select",{attrs:{loading:t.mediaTypes.loading,allowClear:""},on:{change:function(e){return t.handleQuery()}},model:{value:t.list.params.mediaType,callback:function(e){t.$set(t.list.params,"mediaType",e)},expression:"list.params.mediaType"}},t._l(t.mediaTypes.data,(function(e,n){return a("a-select-option",{key:n,attrs:{value:e}},[t._v(t._s(e)+" ")])})),1)],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("span",{staticClass:"table-page-search-submitButtons"},[a("a-space",[a("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleQuery()}}},[t._v("查询")]),a("a-button",{on:{click:function(e){return t.handleResetParam()}}},[t._v("重置")])],1)],1)])],1)],1)],1),a("div",{staticClass:"mb-0 table-operator"},[a("a-button",{attrs:{icon:"cloud-upload",type:"primary"},on:{click:function(e){t.upload.visible=!0}}},[t._v("上传")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:t.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"check-circle",type:"primary"},on:{click:t.handleSelectAll}},[t._v(" 全选 ")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:t.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"delete",type:"danger"},on:{click:t.handleDeleteAttachmentInBatch}},[t._v(" 删除 ")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:t.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"close"},on:{click:function(e){t.list.selected=[]}}},[t._v(" 取消")])],1)])],1),a("a-col",{attrs:{span:24}},[a("a-list",{staticClass:"attachments-group",attrs:{dataSource:t.list.data,grid:{gutter:6,xs:2,sm:2,md:4,lg:6,xl:6,xxl:6},loading:t.list.loading},scopedSlots:t._u([{key:"renderItem",fn:function(e,n){return[a("a-list-item",{key:n,on:{mouseenter:function(a){return t.$set(e,"hover",!0)},mouseleave:function(a){return t.$set(e,"hover",!1)},click:function(a){return t.handleItemClick(e)},contextmenu:function(a){return a.preventDefault(),t.handleContextMenu(a,e)}}},[a("div",{staticClass:"border border-solid",class:t.isItemSelect(e)?"border-blue-600":"border-slate-200"},[a("div",{staticClass:"attach-thumb attachments-group-item"},[t.isImage(e)?a("span",{staticClass:"attachments-group-item-img",style:"background-image:url("+encodeURI(e.thumbPath)+")",attrs:{loading:"lazy"}}):a("span",{staticClass:"attachments-group-item-type"},[t._v(t._s(e.suffix))])]),a("a-card-meta",{staticClass:"p-2 cursor-pointer",scopedSlots:t._u([{key:"description",fn:function(){return[a("a-tooltip",{attrs:{title:e.name}},[a("div",{staticClass:"truncate"},[t._v(t._s(e.name))])])]},proxy:!0}],null,!0)}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:!t.isItemSelect(e)&&e.hover,expression:"!isItemSelect(item) && item.hover"}],staticClass:"absolute top-1 right-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px",color:"rgb(37 99 235)"},attrs:{type:"plus-circle",theme:"twoTone"},on:{click:function(a){return a.stopPropagation(),t.handleSelect(e)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.isItemSelect(e),expression:"isItemSelect(item)"}],staticClass:"absolute top-1 right-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px",color:"rgb(37 99 235)"},attrs:{type:"check-circle",theme:"twoTone"}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:e.hover&&t.list.selected.length>0,expression:"item.hover && list.selected.length > 0"}],staticClass:"absolute top-1 left-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px"},attrs:{type:"profile",theme:"twoTone"},on:{click:function(a){return a.stopPropagation(),t.handleOpenDetail(e)}}})],1)])]}}])})],1)],1),a("div",{staticClass:"page-wrapper"},[a("a-pagination",{staticClass:"pagination",attrs:{current:t.pagination.page,defaultPageSize:t.pagination.size,pageSizeOptions:["18","36","54","72","90","108"],total:t.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:t.handlePageChange,showSizeChange:t.handlePageSizeChange}})],1),a("AttachmentUploadModal",{attrs:{visible:t.upload.visible},on:{"update:visible":function(e){return t.$set(t.upload,"visible",e)},close:t.onUploadClose}}),a("AttachmentDetailModal",{attrs:{addToPhoto:!0,attachment:t.list.current,visible:t.detailVisible},on:{"update:visible":function(e){t.detailVisible=e},delete:function(e){return t.handleListAttachments()}},scopedSlots:t._u([{key:"extraFooter",fn:function(){return[a("a-button",{attrs:{disabled:t.selectPreviousButtonDisabled},on:{click:t.handleSelectPrevious}},[t._v("上一项")]),a("a-button",{attrs:{disabled:t.selectNextButtonDisabled},on:{click:t.handleSelectNext}},[t._v("下一项")])]},proxy:!0}])})],1)},s=[],i=a(75725),r=a(47458),l=(a(70315),a(3662),a(15928),a(41479),a(90195),a(31875),a(21082),a(82395),a(91411)),o=a(26278),c=a(17132),u=a(94671),d={components:{PageView:o.B4},mixins:[l.jB,l.KT],filters:{typeText:function(t){return u.k[t].text}},data:function(){return{list:{data:[],loading:!1,total:0,hasNext:!1,hasPrevious:!1,params:{page:0,size:18,keyword:void 0,mediaType:void 0,attachmentType:void 0},selected:[],current:{}},mediaTypes:{data:[],loading:!1},types:{data:[],loading:!1},upload:{visible:!1},detailVisible:!1}},computed:{isImage:function(){return function(t){return!(!t||!t.mediaType)&&t.mediaType.startsWith("image")}},isItemSelect:function(){return function(t){return this.list.selected.findIndex((function(e){return e.id===t.id}))>-1}},pagination:function(){return{page:this.list.params.page+1,size:this.list.params.size,total:this.list.total}},selectPreviousButtonDisabled:function(){var t=this,e=this.list.data.findIndex((function(e){return e.id===t.list.current.id}));return 0===e&&!this.list.hasPrevious},selectNextButtonDisabled:function(){var t=this,e=this.list.data.findIndex((function(e){return e.id===t.list.current.id}));return e===this.list.data.length-1&&!this.list.hasNext}},created:function(){this.handleListAttachments(),this.handleListMediaTypes(),this.handleListTypes()},methods:{handleListAttachments:function(){var t=this;return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.list.loading=!0,e.next=4,c.Z.attachment.list(t.list.params);case 4:a=e.sent,t.list.data=a.data.content,t.list.total=a.data.total,t.list.hasNext=a.data.hasNext,t.list.hasPrevious=a.data.hasPrevious,e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),t.$log.error(e.t0);case 14:return e.prev=14,t.list.loading=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})))()},handleListMediaTypes:function(){var t=this;return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.mediaTypes.loading=!0,e.next=4,c.Z.attachment.listMediaTypes();case 4:a=e.sent,t.mediaTypes.data=a.data,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error(e.t0);case 11:return e.prev=11,t.mediaTypes.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()},handleListTypes:function(){var t=this;return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.types.loading=!0,e.next=4,c.Z.attachment.listTypes();case 4:a=e.sent,t.types.data=a.data,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error(e.t0);case 11:return e.prev=11,t.types.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()},handleOpenDetail:function(t){this.list.current=t,this.detailVisible=!0},handleItemClick:function(t){this.list.selected.length<=0?this.handleOpenDetail(t):this.isItemSelect(t)?this.handleUnselect(t):this.handleSelect(t)},handleSelect:function(t){this.list.selected=[].concat((0,i.Z)(this.list.selected),[t])},handleUnselect:function(t){this.list.selected=this.list.selected.filter((function(e){return e.id!==t.id}))},handleSelectAll:function(){this.list.selected=this.list.data},handleContextMenu:function(t,e){var a=this;return this.$contextmenu({items:[{label:"复制".concat(this.isImage(e)?"图片":"文件","链接"),onClick:function(){var t="".concat(encodeURI(e.path));a.$copyText(t).then((function(t){a.$log.debug("copy",t),a.$message.success("复制成功!")})).catch((function(t){a.$log.debug("copy.err",t),a.$message.error("复制失败!")}))},divided:!0},{disabled:!this.isImage(e),label:"复制 Markdown 格式链接",onClick:function(){var t="![".concat(e.name,"](").concat(encodeURI(e.path),")");a.$copyText(t).then((function(t){a.$log.debug("copy",t),a.$message.success("复制成功!")})).catch((function(t){a.$log.debug("copy.err",t),a.$message.error("复制失败!")}))},divided:!0},{label:"删除",onClick:function(){a.$confirm({title:"提示",content:"确定删除该附件?",okText:"确定",cancelText:"取消",onOk:function(){var t=(0,r.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c.Z.attachment["delete"](e.id);case 2:return t.next=4,a.handleListAttachments();case 4:a.handleUnselect(e);case 5:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()})}}],event:t,minWidth:210}),!1},handlePageChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListAttachments()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListAttachments()},handleResetParam:function(){this.list.params.keyword=void 0,this.list.params.mediaType=void 0,this.list.params.attachmentType=void 0,this.handlePageChange(),this.handleListMediaTypes(),this.handleListTypes()},handleQuery:function(){this.handlePageChange()},onUploadClose:function(){this.handlePageChange(),this.handleListMediaTypes(),this.handleListTypes()},handleDeleteAttachmentInBatch:function(){var t=this;this.list.selected.length<=0?this.$message.warn("你还未选择任何附件,请至少选择一个!"):this.$confirm({title:"确定要批量删除选中的附件吗?",content:"一旦删除不可恢复,请谨慎操作",onOk:function(){return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,a=t.list.selected.map((function(t){return t.id})),e.next=4,c.Z.attachment.deleteInBatch(a);case 4:t.list.selected=[],t.$message.success("删除成功"),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error("Failed to delete selected attachments",e.t0);case 11:return e.prev=11,e.next=14,t.handleListAttachments();case 14:return e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[0,8,11,15]])})))()}})},handleSelectPrevious:function(){var t=this;return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.list.data.findIndex((function(e){return e.id===t.list.current.id})),!(a>0)){e.next=4;break}return t.list.current=t.list.data[a-1],e.abrupt("return");case 4:if(0!==a||!t.list.hasPrevious){e.next=9;break}return t.list.params.page--,e.next=8,t.handleListAttachments();case 8:t.list.current=t.list.data[t.list.data.length-1];case 9:case"end":return e.stop()}}),e)})))()},handleSelectNext:function(){var t=this;return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.list.data.findIndex((function(e){return e.id===t.list.current.id})),!(a0)e[a]=e[--a];a!==i++&&(e[a]=l)}return e},o=function(e,t,l,a){var n=t.length,i=l.length,r=0,o=0;while(r3)){if(m)return!0;if(p)return p<603;var e,t,l,a,n="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:l=3;break;case 68:case 71:l=4;break;default:l=2}for(a=0;a<47;a++)v.push({k:t+a,v:l})}for(v.sort((function(e,t){return t.v-e.v})),a=0;as(l)?1:-1}};a({target:"Array",proto:!0,forced:C},{sort:function(e){void 0!==e&&i(e);var t=r(this);if(T)return void 0===e?g(t):g(t,e);var l,a,n=[],s=o(t);for(a=0;a仅支持 ZIP 格式的文件",name:"file"},on:{success:e.onUploadSucceed}}),l("div",{staticClass:"mt-5"},[l("a-alert",{attrs:{closable:"",type:"info"}},[l("template",{slot:"message"},[e._v(" 更多主题请访问: "),l("a",{attrs:{href:"https://halo.run/themes.html",target:"_blank"}},[e._v("https://halo.run/themes")])])],2)],1)],1),l("a-tab-pane",{key:"2",attrs:{tab:"远程下载"}},[l("a-form-model",{ref:"remoteInstallForm",attrs:{model:e.remote,rules:e.remote.rules,layout:"vertical"}},[l("a-form-model-item",{attrs:{help:"* 支持 Git 仓库地址,ZIP 链接。",label:"远程地址:",prop:"url"}},[l("a-input",{model:{value:e.remote.url,callback:function(t){e.$set(e.remote,"url",t)},expression:"remote.url"}})],1),l("a-form-model-item",[l("ReactiveButton",{attrs:{errored:e.remote.fetchErrored,loading:e.remote.fetching,erroredText:"下载失败",loadedText:"下载成功",text:"下载",type:"primary"},on:{callback:e.handleRemoteFetchCallback,click:e.handleRemoteFetching}})],1)],1),l("div",{staticClass:"mt-5"},[l("a-alert",{attrs:{closable:"",type:"info"}},[l("template",{slot:"message"},[e._v(" 目前仅支持远程 Git 仓库和 ZIP 下载链接。更多主题请访问: "),l("a",{attrs:{href:"https://halo.run/themes.html",target:"_blank"}},[e._v("https://halo.run/themes")])])],2)],1)],1)],1)],1)])},c=[],d=l(17132),u={name:"ThemeInstallModal",props:{visible:{type:Boolean,default:!1}},data:function(){return{local:{uploadHandler:function(e,t){return d.Z.theme.upload(e,t)}},remote:{url:null,fetching:!1,fetchErrored:!1,rules:{url:[{required:!0,message:"* 远程地址不能为空",trigger:["change"]}]}}}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{onModalClose:function(){this.$refs.upload.handleClearFileList(),this.remote.url=null,this.$emit("onAfterClose")},onUploadSucceed:function(){this.modalVisible=!1,this.$emit("upload-succeed")},handleRemoteFetching:function(){var e=this;this.$refs.remoteInstallForm.validate(function(){var t=(0,i.Z)(regeneratorRuntime.mark((function t(l){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!l){t.next=14;break}return t.prev=1,e.remote.fetching=!0,t.next=5,d.Z.theme.fetchTheme(e.remote.url);case 5:t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](1),e.remote.fetchErrored=!0,e.$log.error("Fetch remote theme failed: ",t.t0);case 11:return t.prev=11,setTimeout((function(){e.remote.fetching=!1}),400),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[1,7,11,14]])})));return function(e){return t.apply(this,arguments)}}())},handleRemoteFetchCallback:function(){this.remote.fetchErrored?this.remote.fetchErrored=!1:this.modalVisible=!1}}},h=u,m=l(42177),f=(0,m.Z)(h,s,c,!1,null,null,null),p=f.exports,v=l(26278),g={components:{PageView:v.B4,ThemeDeleteConfirmModal:r.Z,ThemeLocalUpgradeModal:o.Z,ThemeInstallModal:p},data:function(){return{list:{loading:!1,data:[]},installModal:{visible:!1},localUpgradeModel:{visible:!1,selected:{}},themeDeleteModal:{visible:!1,selected:{}}}},computed:{sortedThemes:function(){var e=this.list.data.slice(0);return e.sort((function(e,t){return t.activated-e.activated}))},activatedTheme:function(){return this.sortedThemes.length>0?this.sortedThemes[0]:null}},beforeMount:function(){this.handleListThemes()},methods:{handleListThemes:function(){var e=this;this.list.loading=!0,d.Z.theme.list().then((function(t){e.list.data=t.data})).finally((function(){e.list.loading=!1}))},handleRefreshThemesCache:function(){var e=this;d.Z.theme.reload().finally((function(){e.handleListThemes()}))},handleActiveTheme:function(e){var t=this;d.Z.theme.active(e.id).finally((function(){t.handleListThemes()}))},handleOpenLocalUpdateModal:function(e){this.localUpgradeModel.selected=e,this.localUpgradeModel.visible=!0},handleRouteToThemeSetting:function(e){this.$router.push({name:"ThemeSetting",query:{themeId:e.id}})},handleOpenThemeDeleteModal:function(e){this.themeDeleteModal.visible=!0,this.themeDeleteModal.selected=e},handleConfirmRemoteUpdate:function(e){var t=this;t.$confirm({title:"提示",maskClosable:!0,content:"确定更新【"+e.name+"】主题?",onOk:function(){return(0,i.Z)(regeneratorRuntime.mark((function l(){var a;return regeneratorRuntime.wrap((function(l){while(1)switch(l.prev=l.next){case 0:return a=t.$message.loading("更新中...",0),l.prev=1,l.next=4,d.Z.theme.updateThemeByFetching(e.id);case 4:t.$message.success("更新成功!"),l.next=10;break;case 7:l.prev=7,l.t0=l["catch"](1),t.$log.error("Failed to update theme: ",l.t0);case 10:return l.prev=10,a(),t.handleListThemes(),l.finish(10);case 14:case"end":return l.stop()}}),l,null,[[1,7,10,14]])})))()}})}}},b=g,y=(0,m.Z)(b,a,n,!1,null,null,null),k=y.exports},53093:function(e,t,l){"use strict";l.d(t,{Z:function(){return u}});var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("a-modal",{attrs:{afterClose:e.onAfterClose,closable:!1,width:416,destroyOnClose:"",title:"提示"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[l("template",{slot:"footer"},[l("a-button",{on:{click:function(t){e.modalVisible=!1}}},[e._v(" 取消 ")]),l("ReactiveButton",{attrs:{errored:e.deleteErrored,loading:e.deleting,erroredText:"删除失败",loadedText:"删除成功",text:"确定"},on:{callback:e.handleDeleteCallback,click:function(t){return e.handleDelete()}}})],1),l("p",[e._v("确定删除【"+e._s(e.theme.name)+"】主题?")]),l("a-checkbox",{model:{value:e.deleteSettings,callback:function(t){e.deleteSettings=t},expression:"deleteSettings"}},[e._v(" 同时删除主题配置 ")])],2)},n=[],i=l(47458),r=(l(70315),l(17132)),o={name:"ThemeDeleteConfirmModal",props:{visible:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{}}}},data:function(){return{deleteErrored:!1,deleting:!1,deleteSettings:!1}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{handleDelete:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.deleting=!0,t.next=4,r.Z.theme["delete"](e.theme.id,e.deleteSettings);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](0),e.deleteErrored=!1,e.$log.error("Delete theme failed",t.t0);case 10:return t.prev=10,setTimeout((function(){e.deleting=!1}),400),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[0,6,10,13]])})))()},handleDeleteCallback:function(){this.deleteErrored?this.deleteErrored=!1:(this.modalVisible=!1,this.$emit("success"))},onAfterClose:function(){this.deleteErrored=!1,this.deleting=!1,this.deleteSettings=!1,this.$emit("onAfterClose")}}},s=o,c=l(42177),d=(0,c.Z)(s,a,n,!1,null,null,null),u=d.exports},51712:function(e,t,l){"use strict";l.d(t,{Z:function(){return d}});var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("a-modal",{attrs:{afterClose:e.onModalClose,footer:null,destroyOnClose:"",title:"更新主题"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[l("FilePondUpload",{ref:"updateByFile",attrs:{accepts:["application/x-zip","application/x-zip-compressed","application/zip"],field:e.theme.id,multiple:!1,uploadHandler:e.uploadHandler,label:"点击选择主题更新包或将主题更新包拖拽到此处
仅支持 ZIP 格式的文件",name:"file"},on:{success:e.onThemeUploadSuccess}})],1)},n=[],i=l(17132),r={name:"ThemeLocalUpgradeModal",props:{visible:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{}}}},data:function(){return{uploadHandler:function(e,t,l){return i.Z.theme.updateByUpload(e,t,l)}}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{onModalClose:function(){this.$refs.updateByFile.handleClearFileList(),this.$emit("onAfterClose")},onThemeUploadSuccess:function(){this.modalVisible=!1,this.$emit("success")}}},o=r,s=l(42177),c=(0,s.Z)(o,a,n,!1,null,null,null),d=c.exports}}]); \ No newline at end of file +(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[149],{53303:function(e,t,l){var a=l(15820),n=Math.floor,i=function(e,t){var l=e.length,s=n(l/2);return l<8?r(e,t):o(e,i(a(e,0,s),t),i(a(e,s),t),t)},r=function(e,t){var l,a,n=e.length,i=1;while(i0)e[a]=e[--a];a!==i++&&(e[a]=l)}return e},o=function(e,t,l,a){var n=t.length,i=l.length,r=0,o=0;while(r3)){if(m)return!0;if(p)return p<603;var e,t,l,a,n="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:l=3;break;case 68:case 71:l=4;break;default:l=2}for(a=0;a<47;a++)v.push({k:t+a,v:l})}for(v.sort((function(e,t){return t.v-e.v})),a=0;as(l)?1:-1}};a({target:"Array",proto:!0,forced:C},{sort:function(e){void 0!==e&&i(e);var t=r(this);if(T)return void 0===e?g(t):g(t,e);var l,a,n=[],s=o(t);for(a=0;a仅支持 ZIP 格式的文件",name:"file"},on:{success:e.onUploadSucceed}}),l("div",{staticClass:"mt-5"},[l("a-alert",{attrs:{closable:"",type:"info"}},[l("template",{slot:"message"},[e._v(" 更多主题请访问: "),l("a",{attrs:{href:"https://halo.run/themes.html",target:"_blank"}},[e._v("https://halo.run/themes")])])],2)],1)],1),l("a-tab-pane",{key:"2",attrs:{tab:"远程下载"}},[l("a-form-model",{ref:"remoteInstallForm",attrs:{model:e.remote,rules:e.remote.rules,layout:"vertical"}},[l("a-form-model-item",{attrs:{help:"* 支持 Git 仓库地址,ZIP 链接。",label:"远程地址:",prop:"url"}},[l("a-input",{model:{value:e.remote.url,callback:function(t){e.$set(e.remote,"url",t)},expression:"remote.url"}})],1),l("a-form-model-item",[l("ReactiveButton",{attrs:{errored:e.remote.fetchErrored,loading:e.remote.fetching,erroredText:"下载失败",loadedText:"下载成功",text:"下载",type:"primary"},on:{callback:e.handleRemoteFetchCallback,click:e.handleRemoteFetching}})],1)],1),l("div",{staticClass:"mt-5"},[l("a-alert",{attrs:{closable:"",type:"info"}},[l("template",{slot:"message"},[e._v(" 目前仅支持远程 Git 仓库和 ZIP 下载链接。更多主题请访问: "),l("a",{attrs:{href:"https://halo.run/themes.html",target:"_blank"}},[e._v("https://halo.run/themes")])])],2)],1)],1)],1)],1)])},c=[],d=l(17132),u={name:"ThemeInstallModal",props:{visible:{type:Boolean,default:!1}},data:function(){return{local:{uploadHandler:function(e,t){return d.Z.theme.upload(e,t)}},remote:{url:null,fetching:!1,fetchErrored:!1,rules:{url:[{required:!0,message:"* 远程地址不能为空",trigger:["change"]}]}}}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{onModalClose:function(){this.$refs.upload.handleClearFileList(),this.remote.url=null,this.$emit("onAfterClose")},onUploadSucceed:function(){this.modalVisible=!1,this.$emit("upload-succeed")},handleRemoteFetching:function(){var e=this;this.$refs.remoteInstallForm.validate(function(){var t=(0,i.Z)(regeneratorRuntime.mark((function t(l){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!l){t.next=14;break}return t.prev=1,e.remote.fetching=!0,t.next=5,d.Z.theme.fetchTheme(e.remote.url);case 5:t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](1),e.remote.fetchErrored=!0,e.$log.error("Fetch remote theme failed: ",t.t0);case 11:return t.prev=11,setTimeout((function(){e.remote.fetching=!1}),400),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[1,7,11,14]])})));return function(e){return t.apply(this,arguments)}}())},handleRemoteFetchCallback:function(){this.remote.fetchErrored?this.remote.fetchErrored=!1:this.modalVisible=!1}}},h=u,m=l(42177),f=(0,m.Z)(h,s,c,!1,null,null,null),p=f.exports,v=l(27474),g={components:{PageView:v.B4,ThemeDeleteConfirmModal:r.Z,ThemeLocalUpgradeModal:o.Z,ThemeInstallModal:p},data:function(){return{list:{loading:!1,data:[]},installModal:{visible:!1},localUpgradeModel:{visible:!1,selected:{}},themeDeleteModal:{visible:!1,selected:{}}}},computed:{sortedThemes:function(){var e=this.list.data.slice(0);return e.sort((function(e,t){return t.activated-e.activated}))},activatedTheme:function(){return this.sortedThemes.length>0?this.sortedThemes[0]:null}},beforeMount:function(){this.handleListThemes()},methods:{handleListThemes:function(){var e=this;this.list.loading=!0,d.Z.theme.list().then((function(t){e.list.data=t.data})).finally((function(){e.list.loading=!1}))},handleRefreshThemesCache:function(){var e=this;d.Z.theme.reload().finally((function(){e.handleListThemes()}))},handleActiveTheme:function(e){var t=this;d.Z.theme.active(e.id).finally((function(){t.handleListThemes()}))},handleOpenLocalUpdateModal:function(e){this.localUpgradeModel.selected=e,this.localUpgradeModel.visible=!0},handleRouteToThemeSetting:function(e){this.$router.push({name:"ThemeSetting",query:{themeId:e.id}})},handleOpenThemeDeleteModal:function(e){this.themeDeleteModal.visible=!0,this.themeDeleteModal.selected=e},handleConfirmRemoteUpdate:function(e){var t=this;t.$confirm({title:"提示",maskClosable:!0,content:"确定更新【"+e.name+"】主题?",onOk:function(){return(0,i.Z)(regeneratorRuntime.mark((function l(){var a;return regeneratorRuntime.wrap((function(l){while(1)switch(l.prev=l.next){case 0:return a=t.$message.loading("更新中...",0),l.prev=1,l.next=4,d.Z.theme.updateThemeByFetching(e.id);case 4:t.$message.success("更新成功!"),l.next=10;break;case 7:l.prev=7,l.t0=l["catch"](1),t.$log.error("Failed to update theme: ",l.t0);case 10:return l.prev=10,a(),t.handleListThemes(),l.finish(10);case 14:case"end":return l.stop()}}),l,null,[[1,7,10,14]])})))()}})}}},b=g,y=(0,m.Z)(b,a,n,!1,null,null,null),k=y.exports},53093:function(e,t,l){"use strict";l.d(t,{Z:function(){return u}});var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("a-modal",{attrs:{afterClose:e.onAfterClose,closable:!1,width:416,destroyOnClose:"",title:"提示"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[l("template",{slot:"footer"},[l("a-button",{on:{click:function(t){e.modalVisible=!1}}},[e._v(" 取消 ")]),l("ReactiveButton",{attrs:{errored:e.deleteErrored,loading:e.deleting,erroredText:"删除失败",loadedText:"删除成功",text:"确定"},on:{callback:e.handleDeleteCallback,click:function(t){return e.handleDelete()}}})],1),l("p",[e._v("确定删除【"+e._s(e.theme.name)+"】主题?")]),l("a-checkbox",{model:{value:e.deleteSettings,callback:function(t){e.deleteSettings=t},expression:"deleteSettings"}},[e._v(" 同时删除主题配置 ")])],2)},n=[],i=l(47458),r=(l(70315),l(17132)),o={name:"ThemeDeleteConfirmModal",props:{visible:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{}}}},data:function(){return{deleteErrored:!1,deleting:!1,deleteSettings:!1}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{handleDelete:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.deleting=!0,t.next=4,r.Z.theme["delete"](e.theme.id,e.deleteSettings);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](0),e.deleteErrored=!1,e.$log.error("Delete theme failed",t.t0);case 10:return t.prev=10,setTimeout((function(){e.deleting=!1}),400),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[0,6,10,13]])})))()},handleDeleteCallback:function(){this.deleteErrored?this.deleteErrored=!1:(this.modalVisible=!1,this.$emit("success"))},onAfterClose:function(){this.deleteErrored=!1,this.deleting=!1,this.deleteSettings=!1,this.$emit("onAfterClose")}}},s=o,c=l(42177),d=(0,c.Z)(s,a,n,!1,null,null,null),u=d.exports},51712:function(e,t,l){"use strict";l.d(t,{Z:function(){return d}});var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("a-modal",{attrs:{afterClose:e.onModalClose,footer:null,destroyOnClose:"",title:"更新主题"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[l("FilePondUpload",{ref:"updateByFile",attrs:{accepts:["application/x-zip","application/x-zip-compressed","application/zip"],field:e.theme.id,multiple:!1,uploadHandler:e.uploadHandler,label:"点击选择主题更新包或将主题更新包拖拽到此处
仅支持 ZIP 格式的文件",name:"file"},on:{success:e.onThemeUploadSuccess}})],1)},n=[],i=l(17132),r={name:"ThemeLocalUpgradeModal",props:{visible:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{}}}},data:function(){return{uploadHandler:function(e,t,l){return i.Z.theme.updateByUpload(e,t,l)}}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{onModalClose:function(){this.$refs.updateByFile.handleClearFileList(),this.$emit("onAfterClose")},onThemeUploadSuccess:function(){this.modalVisible=!1,this.$emit("success")}}},o=r,s=l(42177),c=(0,s.Z)(o,a,n,!1,null,null,null),d=c.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/191.37399613.js b/src/main/resources/admin/js/191.9b06be83.js similarity index 99% rename from src/main/resources/admin/js/191.37399613.js rename to src/main/resources/admin/js/191.9b06be83.js index af3c25c55d..4789e737c1 100644 --- a/src/main/resources/admin/js/191.37399613.js +++ b/src/main/resources/admin/js/191.9b06be83.js @@ -1 +1 @@ -(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[191],{79244:function(t){!function(a,e){t.exports=e()}(0,(function(){return function(t){function a(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}var e={};return a.m=t,a.c=e,a.i=function(t){return t},a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},a.p="/dist/",a(a.s=2)}([function(t,a,e){var n=e(4)(e(1),e(5),null,null);t.exports=n.exports},function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e(3);a.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,a,e,n){return e*(1-Math.pow(2,-10*t/n))*1024/1023+a}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,n.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,n.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,n.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,n.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var a=t-this.startTime;this.remaining=this.localDuration-a,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(a,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(a,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(a/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(a/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),a1?this.decimal+a[1]:"",i=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;i.test(e);)e=e.replace(i,"$1"+this.separator+"$2");return this.prefix+e+n+this.suffix}},destroyed:function(){(0,n.cancelAnimationFrame)(this.rAF)}}},function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n);a.default=i.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",i.default)},function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=0,i="webkit moz ms o".split(" "),s=void 0,r=void 0;if("undefined"==typeof window)a.requestAnimationFrame=s=function(){},a.cancelAnimationFrame=r=function(){};else{a.requestAnimationFrame=s=window.requestAnimationFrame,a.cancelAnimationFrame=r=window.cancelAnimationFrame;for(var o=void 0,l=0;l=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,a,e,n){return e*(1-Math.pow(2,-10*t/n))*1024/1023+a}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,n.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,n.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,n.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,n.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var a=t-this.startTime;this.remaining=this.localDuration-a,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(a,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(a,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(a/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(a/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),a1?this.decimal+a[1]:"",i=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;i.test(e);)e=e.replace(i,"$1"+this.separator+"$2");return this.prefix+e+n+this.suffix}},destroyed:function(){(0,n.cancelAnimationFrame)(this.rAF)}}},function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n);a.default=i.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",i.default)},function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=0,i="webkit moz ms o".split(" "),s=void 0,r=void 0;if("undefined"==typeof window)a.requestAnimationFrame=s=function(){},a.cancelAnimationFrame=r=function(){};else{a.requestAnimationFrame=s=window.requestAnimationFrame,a.cancelAnimationFrame=r=window.cancelAnimationFrame;for(var o=void 0,l=0;l-1}},selectPreviousButtonDisabled:function(){var e=this,t=this.list.data.findIndex((function(t){return t.id===e.list.current.id}));return 0===t&&!this.list.hasPrevious},selectNextButtonDisabled:function(){var e=this,t=this.list.data.findIndex((function(t){return t.id===e.list.current.id}));return t===this.list.data.length-1&&!this.list.hasNext}},methods:(0,s.Z)((0,s.Z)({},(0,g.nv)(["refreshOptionsCache"])),{},{handleListPhotos:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.list.loading=!0,t.next=4,d.Z.photo.list(e.list.params);case 4:a=t.sent,e.list.data=a.data.content,e.list.total=a.data.total,e.list.hasPrevious=a.data.hasPrevious,e.list.hasNext=a.data.hasNext,t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),e.$log.error("Failed to get photos",t.t0);case 14:return t.prev=14,e.list.loading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,11,14,17]])})))()},handleListPhotoTeams:function(){var e=this;d.Z.photo.listTeams().then((function(t){e.teams=t.data}))},handlePageChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=e-1,this.handleListPhotos()},handlePageSizeChange:function(e,t){this.$log.debug("Current: ".concat(e,", PageSize: ").concat(t)),this.list.params.page=0,this.list.params.size=t,this.handleListPhotos()},handleQuery:function(){this.handlePageChange(1)},handleResetParam:function(){this.list.params.keyword=void 0,this.list.params.team=void 0,this.handlePageChange(1),this.handleListPhotoTeams()},handleItemClick:function(e){this.list.selected.length<=0?this.handleOpenForm(e):this.isItemSelect(e)?this.handleUnselect(e):this.handleSelect(e)},handleOpenForm:function(e){this.list.current=e,this.formVisible=!0},handleSelect:function(e){this.list.selected=[].concat((0,o.Z)(this.list.selected),[e])},handleUnselect:function(e){this.list.selected=this.list.selected.filter((function(t){return t.id!==e.id}))},handleSelectAll:function(){this.list.selected=this.list.data},handleAttachmentSelected:function(e){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function a(){var n,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=e.raw,n.length){a.next=3;break}return a.abrupt("return");case 3:return r=n.map((function(e){return{name:e.name,url:e.path,thumbnail:e.thumbPath}})),a.prev=4,a.next=7,d.Z.photo.createInBatch(r);case 7:t.$message.success("添加成功"),a.next=13;break;case 10:a.prev=10,a.t0=a["catch"](4),t.$log.error("Failed to create photos in batch",a.t0);case 13:return a.prev=13,a.next=16,t.handleListPhotos();case 16:return t.handleListPhotoTeams(),a.finish(13);case 18:case"end":return a.stop()}}),a,null,[[4,10,13,18]])})))()},handleDeletePhotoInBatch:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.list.selected.length<=0)){t.next=3;break}return e.$message.warn("你还未选择任何图片,请至少选择一个!"),t.abrupt("return");case 3:a=e,e.$confirm({title:"确定要批量删除选中的图片吗?",content:"一旦删除不可恢复,请谨慎操作",onOk:function(){return(0,i.Z)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=a.list.selected.map((function(e){return e.id})),e.next=4,d.Z.photo.deleteInBatch(t);case 4:a.list.selected=[],a.$message.success("删除成功"),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),a.$log.error("Failed to delete selected photos",e.t0);case 11:return e.prev=11,e.next=14,a.handleListPhotos();case 14:return a.handleListPhotoTeams(),e.finish(11);case 16:case"end":return e.stop()}}),e,null,[[0,8,11,16]])})))()}});case 5:case"end":return t.stop()}}),t)})))()},handleUpdateTeamInBatch:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.list.selected.map((function(t){return(0,s.Z)((0,s.Z)({},t),{},{team:e.updateTeamForm.team})})),t.prev=1,e.updateTeamForm.saving=!0,t.next=5,d.Z.photo.updateInBatch(a);case 5:e.$message.success("更改成功"),t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](1),e.updateTeamForm.saveErrored=!0,e.$log.error("Failed to change team in batch",t.t0);case 12:return t.prev=12,setTimeout((function(){e.updateTeamForm.saving=!1}),400),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[1,8,12,15]])})))()},handleUpdateTeamInBatchCallback:function(){this.updateTeamForm.saveErrored?this.updateTeamForm.saveErrored=!1:(this.updateTeamForm.visible=!1,this.updateTeamForm.team=void 0,this.list.selected=[],this.handleListPhotos())},handleOpenUpdateTeamForm:function(){var e=this;this.updateTeamForm.visible=!0,this.$nextTick((function(){e.$refs.teamInput.focus()}))},onSaveSucceed:function(e){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,t.handleListPhotos();case 2:t.list.current=e,t.handleListPhotoTeams();case 4:case"end":return a.stop()}}),a)})))()},handleListOptions:function(){var e=this;d.Z.option.list().then((function(t){e.options=t.data}))},handleSaveOptions:function(){var e=this;d.Z.option.save(this.options).then((function(){e.$message.success("保存成功!"),e.optionFormVisible=!1})).finally((function(){e.handleListOptions(),e.refreshOptionsCache()}))},handleSelectPrevious:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.list.data.findIndex((function(t){return t.id===e.list.current.id})),!(a>0)){t.next=4;break}return e.list.current=e.list.data[a-1],t.abrupt("return");case 4:if(0!==a||!e.list.hasPrevious){t.next=9;break}return e.list.params.page--,t.next=8,e.handleListPhotos();case 8:e.list.current=e.list.data[e.list.data.length-1];case 9:case"end":return t.stop()}}),t)})))()},handleSelectNext:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.list.data.findIndex((function(t){return t.id===e.list.current.id})),!(a0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListJournals()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListJournals()},onJournalCommentsDrawerClose:function(){this.form.model={},this.journalCommentDrawer.visible=!1,this.handleListJournals()},handleSaveOptions:function(){var t=this;d.Z.option.save(this.optionModal.options).then((function(){t.$message.success("保存成功!"),t.optionModal.visible=!1})).finally((function(){t.handleListOptions(),t.refreshOptionsCache()}))},handleSelectAttachment:function(t){var e=t.markdown;this.$set(this.form.model,"sourceContent",(this.form.model.sourceContent||"")+"\n"+e.join("\n"))},handleSelectPrevious:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(a>0)){e.next=4;break}return t.list.selected=t.list.data[a-1],e.abrupt("return");case 4:if(0!==a||!t.list.hasPrevious){e.next=9;break}return t.list.params.page--,e.next=8,t.handleListJournals();case 8:t.list.selected=t.list.data[t.list.data.length-1];case 9:case"end":return e.stop()}}),e)})))()},handleSelectNext:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(a0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListJournals()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListJournals()},onJournalCommentsDrawerClose:function(){this.form.model={},this.journalCommentDrawer.visible=!1,this.handleListJournals()},handleSaveOptions:function(){var t=this;d.Z.option.save(this.optionModal.options).then((function(){t.$message.success("保存成功!"),t.optionModal.visible=!1})).finally((function(){t.handleListOptions(),t.refreshOptionsCache()}))},handleSelectAttachment:function(t){var e=t.markdown;this.$set(this.form.model,"sourceContent",(this.form.model.sourceContent||"")+"\n"+e.join("\n"))},handleSelectPrevious:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(a>0)){e.next=4;break}return t.list.selected=t.list.data[a-1],e.abrupt("return");case 4:if(0!==a||!t.list.hasPrevious){e.next=9;break}return t.list.params.page--,e.next=8,t.handleListJournals();case 8:t.list.selected=t.list.data[t.list.data.length-1];case 9:case"end":return e.stop()}}),e)})))()},handleSelectNext:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(a请确认是否为 Halo 后台导出的文件。",name:"file"}})],1),i("div",{staticClass:"mt-8"},[t.isInstallMode?i("ReactiveButton",{attrs:{errored:t.form.installErrored,loading:t.form.installing,block:"",erroredText:"安装失败",icon:"check",loadedText:"安装成功",size:"large",text:"安装",type:"primary"},on:{callback:t.handleInstallCallback,click:t.handleInstall}}):t._e(),t.isImportMode?i("ReactiveButton",{attrs:{errored:t.form.importErrored,loading:t.form.importing,block:"",erroredText:"导入失败",icon:"import",loadedText:"导入成功",size:"large",text:"导入",type:"primary"},on:{callback:t.handleImportCallback,click:t.handleImport}}):t._e()],1)],1)],1)])],1)},s=[],l=i(86475),a=(i(87591),i(31875),i(30535),i(85018),i(17132)),o=i(98906),r={data:function(){var t=this,M=function(M,i,e){i!==t.form.model.password?e(new Error("确认密码与所输入的密码不一致")):e()};return{installationMode:"new",form:{model:{},rules:{username:[{required:!0,message:"* 用户名不能为空",trigger:["change"]},{max:50,message:"* 用户名的字符长度不能超过 50",trigger:["change"]}],nickname:[{required:!0,message:"* 用户昵称不能为空",trigger:["change"]},{max:255,message:"* 用户昵称的字符长度不能超过 255",trigger:["change"]}],email:[{required:!0,message:"* 电子邮件地址不能为空",trigger:["change"]},{max:127,message:"* 电子邮件地址的字符长度不能超过 127",trigger:["change"]},{pattern:/\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/g,message:"* 电子邮件地址的格式不正确",trigger:["change"]}],password:[{required:!0,message:"* 密码不能为空",trigger:["change"]},{min:8,max:100,message:"* 密码的字符长度必须在 8 - 100 之间",trigger:["change"]}],confirmPassword:[{required:!0,message:"* 确认密码不能为空",trigger:["change"]},{validator:M,trigger:["change"]}],url:[{required:!0,message:"* 博客地址不能为空",trigger:["change"]}],title:[{required:!0,message:"* 博客标题不能为空",trigger:["change"]}]},installing:!1,installErrored:!1,importing:!1,importErrored:!1,importData:null}}},beforeMount:function(){this.$set(this.form.model,"url",window.location.protocol+"//"+window.location.host)},computed:{isInstallMode:function(){return"new"===this.installationMode},isImportMode:function(){return"import"===this.installationMode}},methods:(0,l.Z)((0,l.Z)({},(0,o.nv)(["installCleanToken","fetchIsInstalled"])),{},{handleInstall:function(){var t=this;this.$refs.installationForm.validate((function(M){M&&(t.form.installing=!0,t.installCleanToken(t.form.model).then((function(M){t.$log.debug("Installation response",M)})).catch((function(){t.form.installErrored=!0})).finally((function(){setTimeout((function(){t.form.installing=!1}),400),t.fetchIsInstalled()})))}))},handleInstallCallback:function(){this.form.installErrored?this.form.installErrored=!1:(this.$message.success("安装成功!"),this.$router.push({name:"Login"}))},onImportUpload:function(t){var M=this;return this.$log.debug("Selected data",t),this.form.importData=t,new Promise((function(t){M.$log.debug("Handle uploading"),t()}))},handleImport:function(){var t=this;this.form.importData?(this.form.importing=!0,a.Z.migration.migrate(this.form.importData).then((function(){t.$log.debug("Migrated successfully")})).catch((function(){t.form.importErrored=!0})).finally((function(){setTimeout((function(){t.form.importing=!1}),400),t.fetchIsInstalled()}))):this.$message.warning("请先上传数据文件!")},handleImportCallback:function(){this.form.importErrored?this.form.importErrored=!1:(this.$message.success("导入成功!"),this.$router.replace({name:"Login"}))}})},L=r,j=i(42177),N=(0,j.Z)(L,e,s,!1,null,"6a3000be",null),I=N.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/253.ab92cea3.js b/src/main/resources/admin/js/253.7382de0e.js similarity index 99% rename from src/main/resources/admin/js/253.ab92cea3.js rename to src/main/resources/admin/js/253.7382de0e.js index 2280293a5c..27d46d678d 100644 --- a/src/main/resources/admin/js/253.ab92cea3.js +++ b/src/main/resources/admin/js/253.7382de0e.js @@ -1 +1 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[253],{22253:function(e,t,a){a.r(t),a.d(t,{default:function(){return T}});var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("page-view",[a("a-row",{attrs:{gutter:12}},[e.options.developer_mode?a("a-col",{staticClass:"pb-3",attrs:{lg:6,md:12,sm:24,xl:6,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("a-icon",{attrs:{type:"experiment"}}),e._v(" 开发者选项 ")],1),a("p",{staticStyle:{"min-height":"50px"}},[e._v("点击进入开发者选项页面")]),a("a-button",{staticClass:"float-right",attrs:{type:"primary"},on:{click:function(t){return e.handleToDeveloperOptions()}}},[e._v("进入")])],1)],1):e._e(),a("a-col",{staticClass:"mb-3",attrs:{lg:6,md:12,sm:24,xl:6,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("a-icon",{attrs:{type:"hdd"}}),e._v(" 博客备份 ")],1),a("p",{staticStyle:{"min-height":"50px"}},[e._v("支持备份全站数据和数据导出,支持下载到本地")]),a("a-dropdown",{staticClass:"float-right"},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",{key:"1",on:{click:function(t){e.backupWorkDirDrawerVisible=!0}}},[e._v(" 整站备份 ")]),a("a-menu-item",{key:"2",on:{click:function(t){e.exportDataDrawerVisible=!0}}},[e._v(" 数据导出 ")]),a("a-menu-item",{key:"3",on:{click:function(t){e.exportMarkdownDrawerVisible=!0}}},[e._v(" 导出文章为 Markdown 文档 ")])],1),a("a-button",{staticClass:"ml-2"},[e._v(" 备份 "),a("a-icon",{attrs:{type:"down"}})],1)],1)],1)],1),a("a-col",{staticClass:"pb-3",attrs:{lg:6,md:12,sm:24,xl:6,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("a-icon",{attrs:{type:"file-markdown"}}),e._v(" Markdown 文章导入 ")],1),a("p",{staticStyle:{"min-height":"50px"}},[e._v("支持 Hexo/Jekyll 文章导入并解析元数据")]),a("a-button",{staticClass:"float-right",attrs:{type:"primary"},on:{click:function(t){e.markdownUpload=!0}}},[e._v("导入")])],1)],1)],1),a("a-modal",{attrs:{afterClose:e.onUploadClose,footer:null,destroyOnClose:"",title:"Markdown 文章导入"},model:{value:e.markdownUpload,callback:function(t){e.markdownUpload=t},expression:"markdownUpload"}},[a("FilePondUpload",{ref:"upload",attrs:{uploadHandler:e.uploadHandler,label:"拖拽或点击选择 Markdown 文件到此处",name:"file"}})],1),a("BackupWorkDirDrawer",{model:{value:e.backupWorkDirDrawerVisible,callback:function(t){e.backupWorkDirDrawerVisible=t},expression:"backupWorkDirDrawerVisible"}}),a("ExportDataDrawer",{model:{value:e.exportDataDrawerVisible,callback:function(t){e.exportDataDrawerVisible=t},expression:"exportDataDrawerVisible"}}),a("ExportMarkdownDrawer",{model:{value:e.exportMarkdownDrawerVisible,callback:function(t){e.exportMarkdownDrawerVisible=t},expression:"exportMarkdownDrawerVisible"}})],1)},o=[],n=a(86475),l=(a(21082),a(26278)),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-drawer",{attrs:{afterVisibleChange:e.handleAfterVisibleChanged,visible:e.visible,width:e.isMobile()?"100%":"480",closable:"",destroyOnClose:"",title:"整站备份"},on:{close:e.onClose}},[a("a-row",{attrs:{align:"middle",type:"flex"}},[a("a-col",{attrs:{span:24}},[a("a-alert",{attrs:{banner:"",closable:"",message:"注意:备份后生成的压缩文件存储在临时文件中,重启服务器会造成备份文件的丢失,所以请尽快下载。"}}),a("a-divider",[e._v("历史备份")]),a("a-list",{attrs:{dataSource:e.backups,loading:e.loading,itemLayout:"vertical",size:"small"},scopedSlots:e._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("a-button",{staticStyle:{color:"red"},attrs:{slot:"extra",loading:t.deleting,icon:"delete",type:"link"},on:{click:function(a){return e.handleBackupDeleteClick(t)}},slot:"extra"},[e._v("删除 ")]),a("a-list-item-meta",[a("a",{attrs:{slot:"title",href:"javascript:void(0)"},on:{click:function(a){return e.handleDownloadBackupPackage(t)}},slot:"title"},[a("a-icon",{staticStyle:{color:"#52c41a"},attrs:{type:"schedule"}}),e._v(" "+e._s(t.filename)+" ")],1),a("p",{attrs:{slot:"description"},slot:"description"},[e._v(e._s(e._f("timeAgo")(t.updateTime))+"/"+e._s(e._f("fileSizeFormat")(t.fileSize)))])])],1)}}])})],1)],1),a("a-divider",{staticClass:"divider-transparent"}),a("div",{staticClass:"bottom-control"},[a("a-space",[a("a-button",{attrs:{icon:"download",type:"primary"},on:{click:e.handleBackupClick}},[e._v("备份")]),a("a-button",{attrs:{loading:e.loading,icon:"reload",type:"dashed"},on:{click:e.handleListBackups}},[e._v("刷新")])],1)],1),a("a-modal",{attrs:{title:"备份选项"},model:{value:e.optionsModal.visible,callback:function(t){e.$set(e.optionsModal,"visible",t)},expression:"optionsModal.visible"}},[a("template",{slot:"footer"},[a("a-button",{on:{click:function(){return e.optionsModal.visible=!1}}},[e._v("取消")]),a("ReactiveButton",{attrs:{errored:e.backupErrored,loading:e.backuping,erroredText:"备份失败",loadedText:"备份成功",text:"确认",type:"primary"},on:{callback:e.handleBackupedCallback,click:e.handleBackupConfirmed}})],1),a("a-checkbox-group",{staticStyle:{width:"100%"},model:{value:e.optionsModal.selected,callback:function(t){e.$set(e.optionsModal,"selected",t)},expression:"optionsModal.selected"}},[a("a-row",e._l(e.optionsModal.options,(function(t){return a("a-col",{key:t,attrs:{span:8}},[a("a-checkbox",{attrs:{value:t}},[e._v(" "+e._s(t)+" ")])],1)})),1)],1)],2)],1)},s=[],c=(a(31875),a(29888),a(45107),a(42164),a(20838),a(91411)),d=a(17132),u={name:"BackupWorkDirDrawer",mixins:[c.jB,c.KT],data:function(){return{backuping:!1,loading:!1,backupErrored:!1,backups:[],optionsModal:{options:[],visible:!1,selected:[]}}},model:{prop:"visible",event:"close"},props:{visible:{type:Boolean,required:!1,default:!0}},methods:{handleAfterVisibleChanged:function(e){e&&this.handleListBackups()},handleListBackups:function(){var e=this;this.loading=!0,d.Z.backup.listWorkdirBackups().then((function(t){e.backups=t.data})).finally((function(){e.loading=!1}))},handleBackupClick:function(){var e=this;d.Z.backup.getWorkdirBackupOptions().then((function(t){e.optionsModal={visible:!0,options:t.data,selected:t.data}}))},handleBackupConfirmed:function(){var e=this;this.backuping=!0,d.Z.backup.backupWorkdir(this.optionsModal.selected).catch((function(){e.backupErrored=!0})).finally((function(){setTimeout((function(){e.backuping=!1}),400)}))},handleBackupedCallback:function(){this.backupErrored?this.backupErrored=!1:(this.optionsModal.visible=!1,this.handleListBackups())},handleBackupDeleteClick:function(e){var t=this;e.deleting=!0,d.Z.backup.deleteWorkdirBackup(e.filename).finally((function(){setTimeout((function(){e.deleting=!1}),400),t.handleListBackups()}))},handleDownloadBackupPackage:function(e){var t=this;d.Z.backup.getWorkdirBackup(e.filename).then((function(e){var t=document.createElement("a"),a=new window.URL(e.data.downloadLink);t.href=a,t.download=e.data.filename,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(a)})).catch((function(e){t.$message.error(e.data.message)}))},onClose:function(){this.$emit("close",!1)}}},p=u,k=a(42177),f=(0,k.Z)(p,r,s,!1,null,null,null),h=f.exports,b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-drawer",{attrs:{afterVisibleChange:e.handleAfterVisibleChanged,visible:e.visible,width:e.isMobile()?"100%":"480",closable:"",destroyOnClose:"",title:"数据导出"},on:{close:e.onClose}},[a("a-row",{attrs:{align:"middle",type:"flex"}},[a("a-col",{attrs:{span:24}},[a("a-alert",{attrs:{banner:"",closable:"",message:"注意:导出后的数据文件存储在临时文件中,重启服务器会造成备份文件的丢失,所以请尽快下载。"}}),a("a-divider",[e._v("历史文件")]),a("a-list",{attrs:{dataSource:e.files,loading:e.loading,itemLayout:"vertical",size:"small"},scopedSlots:e._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("a-button",{staticStyle:{color:"red"},attrs:{slot:"extra",loading:t.deleting,icon:"delete",type:"link"},on:{click:function(a){return e.handleFileDeleteClick(t)}},slot:"extra"},[e._v("删除 ")]),a("a-list-item-meta",[a("a",{attrs:{slot:"title",href:"javascript:void(0)"},on:{click:function(a){return e.handleDownloadBackupFile(t)}},slot:"title"},[a("a-icon",{staticStyle:{color:"#52c41a"},attrs:{type:"schedule"}}),e._v(" "+e._s(t.filename)+" ")],1),a("p",{attrs:{slot:"description"},slot:"description"},[e._v(e._s(e._f("timeAgo")(t.updateTime))+"/"+e._s(e._f("fileSizeFormat")(t.fileSize)))])])],1)}}])})],1)],1),a("a-divider",{staticClass:"divider-transparent"}),a("div",{staticClass:"bottom-control"},[a("a-space",[a("ReactiveButton",{attrs:{errored:e.backupErrored,loading:e.backuping,erroredText:"备份失败",icon:"download",loadedText:"备份成功",text:"备份",type:"primary"},on:{callback:e.handleBackupedCallback,click:e.handleExportClick}}),a("a-button",{attrs:{loading:e.loading,icon:"reload",type:"dashed"},on:{click:e.handleListBackups}},[e._v("刷新")])],1)],1)],1)},m=[],v={name:"ExportDataDrawer",mixins:[c.jB,c.KT],data:function(){return{backuping:!1,loading:!1,backupErrored:!1,files:[]}},model:{prop:"visible",event:"close"},props:{visible:{type:Boolean,required:!1,default:!0}},methods:{handleAfterVisibleChanged:function(e){e&&this.handleListBackups()},handleListBackups:function(){var e=this;this.loading=!0,d.Z.backup.listDataBackups().then((function(t){e.files=t.data})).finally((function(){e.loading=!1}))},handleExportClick:function(){var e=this;this.backuping=!0,d.Z.backup.backupData().catch((function(){e.backupErrored=!0})).finally((function(){setTimeout((function(){e.backuping=!1}),400)}))},handleBackupedCallback:function(){this.backupErrored?this.backupErrored=!1:this.handleListBackups()},handleFileDeleteClick:function(e){var t=this;e.deleting=!0,d.Z.backup.deleteDataBackup(e.filename).finally((function(){setTimeout((function(){e.deleting=!1}),400),t.handleListBackups()}))},handleDownloadBackupFile:function(e){var t=this;d.Z.backup.getDataBackup(e.filename).then((function(e){var t=document.createElement("a"),a=new window.URL(e.data.downloadLink);t.href=a,t.download=e.data.filename,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(a)})).catch((function(){t.$message.error("下载失败!")}))},onClose:function(){this.$emit("close",!1)}}},g=v,w=(0,k.Z)(g,b,m,!1,null,null,null),y=w.exports,x=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-drawer",{attrs:{afterVisibleChange:e.handleAfterVisibleChanged,visible:e.visible,width:e.isMobile()?"100%":"480",closable:"",destroyOnClose:"",title:"导出文章为 Markdown 文档"},on:{close:e.onClose}},[a("a-row",{attrs:{align:"middle",type:"flex"}},[a("a-col",{attrs:{span:24}},[a("a-alert",{attrs:{banner:"",closable:"",message:"注意:导出后的数据文件存储在临时文件中,重启服务器会造成备份文件的丢失,所以请尽快下载。"}}),a("a-divider",[e._v("历史文件")]),a("a-list",{attrs:{dataSource:e.files,loading:e.loading,itemLayout:"vertical",size:"small"},scopedSlots:e._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("a-button",{staticStyle:{color:"red"},attrs:{slot:"extra",loading:t.deleting,icon:"delete",type:"link"},on:{click:function(a){return e.handleFileDeleteClick(t)}},slot:"extra"},[e._v("删除 ")]),a("a-list-item-meta",[a("a",{attrs:{slot:"title",href:"javascript:void(0)"},on:{click:function(a){return e.handleDownloadMarkdownPackage(t)}},slot:"title"},[a("a-icon",{staticStyle:{color:"#52c41a"},attrs:{type:"schedule"}}),e._v(" "+e._s(t.filename)+" ")],1),a("p",{attrs:{slot:"description"},slot:"description"},[e._v(e._s(e._f("timeAgo")(t.updateTime))+"/"+e._s(e._f("fileSizeFormat")(t.fileSize)))])])],1)}}])})],1)],1),a("a-divider",{staticClass:"divider-transparent"}),a("div",{staticClass:"bottom-control"},[a("a-space",[a("a-popconfirm",{attrs:{cancelText:"否",okText:"是",title:"是否同时为 Markdown 文档生成 Front Matter?"},on:{cancel:function(t){return e.handleExportClick(!1)},confirm:function(t){return e.handleExportClick(!0)}}},[a("ReactiveButton",{attrs:{errored:e.backupErrored,loading:e.backuping,erroredText:"备份失败",icon:"download",loadedText:"备份成功",text:"备份",type:"primary"},on:{callback:e.handleBackupedCallback}})],1),a("a-button",{attrs:{loading:e.loading,icon:"reload",type:"dashed"},on:{click:e.handleListBackups}},[e._v("刷新")])],1)],1)],1)},C=[],_={name:"ExportDataDrawer",mixins:[c.jB,c.KT],data:function(){return{backuping:!1,loading:!1,backupErrored:!1,files:[]}},model:{prop:"visible",event:"close"},props:{visible:{type:Boolean,required:!1,default:!0}},methods:{handleAfterVisibleChanged:function(e){e&&this.handleListBackups()},handleListBackups:function(){var e=this;this.loading=!0,d.Z.backup.listMarkdownBackups().then((function(t){e.files=t.data})).finally((function(){e.loading=!1}))},handleExportClick:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.backuping=!0,d.Z.backup.backupMarkdown({needFrontMatter:t}).catch((function(){e.backupErrored=!0})).finally((function(){setTimeout((function(){e.backuping=!1}),400)}))},handleBackupedCallback:function(){this.backupErrored?this.backupErrored=!1:this.handleListBackups()},handleFileDeleteClick:function(e){var t=this;e.deleting=!0,d.Z.backup.deleteMarkdownBackup(e.filename).finally((function(){setTimeout((function(){e.deleting=!1}),400),t.handleListBackups()}))},handleDownloadMarkdownPackage:function(e){var t=this;d.Z.backup.getMarkdownBackup(e.filename).then((function(e){var t=document.createElement("a"),a=new window.URL(e.data.downloadLink);t.href=a,t.download=e.data.filename,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(a)})).catch((function(){t.$message.error("下载失败!")}))},onClose:function(){this.$emit("close",!1)}}},D=_,B=(0,k.Z)(D,x,C,!1,null,null,null),M=B.exports,E=a(98906),L={components:{PageView:l.B4,BackupWorkDirDrawer:h,ExportDataDrawer:y,ExportMarkdownDrawer:M},data:function(){return{backupWorkDirDrawerVisible:!1,exportDataDrawerVisible:!1,exportMarkdownDrawerVisible:!1,markdownUpload:!1,uploadHandler:function(e,t){return d.Z.backup.importMarkdown(e,t)}}},computed:(0,n.Z)({},(0,E.Se)(["options"])),methods:{handleChange:function(e){var t=e.file.status;"uploading"!==t&&this.$log.debug(e.file,e.fileList),"done"===t?this.$message.success("".concat(e.file.name," 导入成功!")):"error"===t&&this.$message.error("".concat(e.file.name," 导入失败!"))},handleToDeveloperOptions:function(){this.$router.push({name:"DeveloperOptions"})},onUploadClose:function(){this.$refs.upload.handleClearFileList()}}},S=L,V=(0,k.Z)(S,i,o,!1,null,null,null),T=V.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[253],{22253:function(e,t,a){a.r(t),a.d(t,{default:function(){return T}});var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("page-view",[a("a-row",{attrs:{gutter:12}},[e.options.developer_mode?a("a-col",{staticClass:"pb-3",attrs:{lg:6,md:12,sm:24,xl:6,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("a-icon",{attrs:{type:"experiment"}}),e._v(" 开发者选项 ")],1),a("p",{staticStyle:{"min-height":"50px"}},[e._v("点击进入开发者选项页面")]),a("a-button",{staticClass:"float-right",attrs:{type:"primary"},on:{click:function(t){return e.handleToDeveloperOptions()}}},[e._v("进入")])],1)],1):e._e(),a("a-col",{staticClass:"mb-3",attrs:{lg:6,md:12,sm:24,xl:6,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("a-icon",{attrs:{type:"hdd"}}),e._v(" 博客备份 ")],1),a("p",{staticStyle:{"min-height":"50px"}},[e._v("支持备份全站数据和数据导出,支持下载到本地")]),a("a-dropdown",{staticClass:"float-right"},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",{key:"1",on:{click:function(t){e.backupWorkDirDrawerVisible=!0}}},[e._v(" 整站备份 ")]),a("a-menu-item",{key:"2",on:{click:function(t){e.exportDataDrawerVisible=!0}}},[e._v(" 数据导出 ")]),a("a-menu-item",{key:"3",on:{click:function(t){e.exportMarkdownDrawerVisible=!0}}},[e._v(" 导出文章为 Markdown 文档 ")])],1),a("a-button",{staticClass:"ml-2"},[e._v(" 备份 "),a("a-icon",{attrs:{type:"down"}})],1)],1)],1)],1),a("a-col",{staticClass:"pb-3",attrs:{lg:6,md:12,sm:24,xl:6,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("a-icon",{attrs:{type:"file-markdown"}}),e._v(" Markdown 文章导入 ")],1),a("p",{staticStyle:{"min-height":"50px"}},[e._v("支持 Hexo/Jekyll 文章导入并解析元数据")]),a("a-button",{staticClass:"float-right",attrs:{type:"primary"},on:{click:function(t){e.markdownUpload=!0}}},[e._v("导入")])],1)],1)],1),a("a-modal",{attrs:{afterClose:e.onUploadClose,footer:null,destroyOnClose:"",title:"Markdown 文章导入"},model:{value:e.markdownUpload,callback:function(t){e.markdownUpload=t},expression:"markdownUpload"}},[a("FilePondUpload",{ref:"upload",attrs:{uploadHandler:e.uploadHandler,label:"拖拽或点击选择 Markdown 文件到此处",name:"file"}})],1),a("BackupWorkDirDrawer",{model:{value:e.backupWorkDirDrawerVisible,callback:function(t){e.backupWorkDirDrawerVisible=t},expression:"backupWorkDirDrawerVisible"}}),a("ExportDataDrawer",{model:{value:e.exportDataDrawerVisible,callback:function(t){e.exportDataDrawerVisible=t},expression:"exportDataDrawerVisible"}}),a("ExportMarkdownDrawer",{model:{value:e.exportMarkdownDrawerVisible,callback:function(t){e.exportMarkdownDrawerVisible=t},expression:"exportMarkdownDrawerVisible"}})],1)},o=[],n=a(86475),l=(a(21082),a(27474)),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-drawer",{attrs:{afterVisibleChange:e.handleAfterVisibleChanged,visible:e.visible,width:e.isMobile()?"100%":"480",closable:"",destroyOnClose:"",title:"整站备份"},on:{close:e.onClose}},[a("a-row",{attrs:{align:"middle",type:"flex"}},[a("a-col",{attrs:{span:24}},[a("a-alert",{attrs:{banner:"",closable:"",message:"注意:备份后生成的压缩文件存储在临时文件中,重启服务器会造成备份文件的丢失,所以请尽快下载。"}}),a("a-divider",[e._v("历史备份")]),a("a-list",{attrs:{dataSource:e.backups,loading:e.loading,itemLayout:"vertical",size:"small"},scopedSlots:e._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("a-button",{staticStyle:{color:"red"},attrs:{slot:"extra",loading:t.deleting,icon:"delete",type:"link"},on:{click:function(a){return e.handleBackupDeleteClick(t)}},slot:"extra"},[e._v("删除 ")]),a("a-list-item-meta",[a("a",{attrs:{slot:"title",href:"javascript:void(0)"},on:{click:function(a){return e.handleDownloadBackupPackage(t)}},slot:"title"},[a("a-icon",{staticStyle:{color:"#52c41a"},attrs:{type:"schedule"}}),e._v(" "+e._s(t.filename)+" ")],1),a("p",{attrs:{slot:"description"},slot:"description"},[e._v(e._s(e._f("timeAgo")(t.updateTime))+"/"+e._s(e._f("fileSizeFormat")(t.fileSize)))])])],1)}}])})],1)],1),a("a-divider",{staticClass:"divider-transparent"}),a("div",{staticClass:"bottom-control"},[a("a-space",[a("a-button",{attrs:{icon:"download",type:"primary"},on:{click:e.handleBackupClick}},[e._v("备份")]),a("a-button",{attrs:{loading:e.loading,icon:"reload",type:"dashed"},on:{click:e.handleListBackups}},[e._v("刷新")])],1)],1),a("a-modal",{attrs:{title:"备份选项"},model:{value:e.optionsModal.visible,callback:function(t){e.$set(e.optionsModal,"visible",t)},expression:"optionsModal.visible"}},[a("template",{slot:"footer"},[a("a-button",{on:{click:function(){return e.optionsModal.visible=!1}}},[e._v("取消")]),a("ReactiveButton",{attrs:{errored:e.backupErrored,loading:e.backuping,erroredText:"备份失败",loadedText:"备份成功",text:"确认",type:"primary"},on:{callback:e.handleBackupedCallback,click:e.handleBackupConfirmed}})],1),a("a-checkbox-group",{staticStyle:{width:"100%"},model:{value:e.optionsModal.selected,callback:function(t){e.$set(e.optionsModal,"selected",t)},expression:"optionsModal.selected"}},[a("a-row",e._l(e.optionsModal.options,(function(t){return a("a-col",{key:t,attrs:{span:8}},[a("a-checkbox",{attrs:{value:t}},[e._v(" "+e._s(t)+" ")])],1)})),1)],1)],2)],1)},s=[],c=(a(31875),a(29888),a(45107),a(42164),a(20838),a(91411)),d=a(17132),u={name:"BackupWorkDirDrawer",mixins:[c.jB,c.KT],data:function(){return{backuping:!1,loading:!1,backupErrored:!1,backups:[],optionsModal:{options:[],visible:!1,selected:[]}}},model:{prop:"visible",event:"close"},props:{visible:{type:Boolean,required:!1,default:!0}},methods:{handleAfterVisibleChanged:function(e){e&&this.handleListBackups()},handleListBackups:function(){var e=this;this.loading=!0,d.Z.backup.listWorkdirBackups().then((function(t){e.backups=t.data})).finally((function(){e.loading=!1}))},handleBackupClick:function(){var e=this;d.Z.backup.getWorkdirBackupOptions().then((function(t){e.optionsModal={visible:!0,options:t.data,selected:t.data}}))},handleBackupConfirmed:function(){var e=this;this.backuping=!0,d.Z.backup.backupWorkdir(this.optionsModal.selected).catch((function(){e.backupErrored=!0})).finally((function(){setTimeout((function(){e.backuping=!1}),400)}))},handleBackupedCallback:function(){this.backupErrored?this.backupErrored=!1:(this.optionsModal.visible=!1,this.handleListBackups())},handleBackupDeleteClick:function(e){var t=this;e.deleting=!0,d.Z.backup.deleteWorkdirBackup(e.filename).finally((function(){setTimeout((function(){e.deleting=!1}),400),t.handleListBackups()}))},handleDownloadBackupPackage:function(e){var t=this;d.Z.backup.getWorkdirBackup(e.filename).then((function(e){var t=document.createElement("a"),a=new window.URL(e.data.downloadLink);t.href=a,t.download=e.data.filename,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(a)})).catch((function(e){t.$message.error(e.data.message)}))},onClose:function(){this.$emit("close",!1)}}},p=u,k=a(42177),f=(0,k.Z)(p,r,s,!1,null,null,null),h=f.exports,b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-drawer",{attrs:{afterVisibleChange:e.handleAfterVisibleChanged,visible:e.visible,width:e.isMobile()?"100%":"480",closable:"",destroyOnClose:"",title:"数据导出"},on:{close:e.onClose}},[a("a-row",{attrs:{align:"middle",type:"flex"}},[a("a-col",{attrs:{span:24}},[a("a-alert",{attrs:{banner:"",closable:"",message:"注意:导出后的数据文件存储在临时文件中,重启服务器会造成备份文件的丢失,所以请尽快下载。"}}),a("a-divider",[e._v("历史文件")]),a("a-list",{attrs:{dataSource:e.files,loading:e.loading,itemLayout:"vertical",size:"small"},scopedSlots:e._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("a-button",{staticStyle:{color:"red"},attrs:{slot:"extra",loading:t.deleting,icon:"delete",type:"link"},on:{click:function(a){return e.handleFileDeleteClick(t)}},slot:"extra"},[e._v("删除 ")]),a("a-list-item-meta",[a("a",{attrs:{slot:"title",href:"javascript:void(0)"},on:{click:function(a){return e.handleDownloadBackupFile(t)}},slot:"title"},[a("a-icon",{staticStyle:{color:"#52c41a"},attrs:{type:"schedule"}}),e._v(" "+e._s(t.filename)+" ")],1),a("p",{attrs:{slot:"description"},slot:"description"},[e._v(e._s(e._f("timeAgo")(t.updateTime))+"/"+e._s(e._f("fileSizeFormat")(t.fileSize)))])])],1)}}])})],1)],1),a("a-divider",{staticClass:"divider-transparent"}),a("div",{staticClass:"bottom-control"},[a("a-space",[a("ReactiveButton",{attrs:{errored:e.backupErrored,loading:e.backuping,erroredText:"备份失败",icon:"download",loadedText:"备份成功",text:"备份",type:"primary"},on:{callback:e.handleBackupedCallback,click:e.handleExportClick}}),a("a-button",{attrs:{loading:e.loading,icon:"reload",type:"dashed"},on:{click:e.handleListBackups}},[e._v("刷新")])],1)],1)],1)},m=[],v={name:"ExportDataDrawer",mixins:[c.jB,c.KT],data:function(){return{backuping:!1,loading:!1,backupErrored:!1,files:[]}},model:{prop:"visible",event:"close"},props:{visible:{type:Boolean,required:!1,default:!0}},methods:{handleAfterVisibleChanged:function(e){e&&this.handleListBackups()},handleListBackups:function(){var e=this;this.loading=!0,d.Z.backup.listDataBackups().then((function(t){e.files=t.data})).finally((function(){e.loading=!1}))},handleExportClick:function(){var e=this;this.backuping=!0,d.Z.backup.backupData().catch((function(){e.backupErrored=!0})).finally((function(){setTimeout((function(){e.backuping=!1}),400)}))},handleBackupedCallback:function(){this.backupErrored?this.backupErrored=!1:this.handleListBackups()},handleFileDeleteClick:function(e){var t=this;e.deleting=!0,d.Z.backup.deleteDataBackup(e.filename).finally((function(){setTimeout((function(){e.deleting=!1}),400),t.handleListBackups()}))},handleDownloadBackupFile:function(e){var t=this;d.Z.backup.getDataBackup(e.filename).then((function(e){var t=document.createElement("a"),a=new window.URL(e.data.downloadLink);t.href=a,t.download=e.data.filename,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(a)})).catch((function(){t.$message.error("下载失败!")}))},onClose:function(){this.$emit("close",!1)}}},g=v,w=(0,k.Z)(g,b,m,!1,null,null,null),y=w.exports,x=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-drawer",{attrs:{afterVisibleChange:e.handleAfterVisibleChanged,visible:e.visible,width:e.isMobile()?"100%":"480",closable:"",destroyOnClose:"",title:"导出文章为 Markdown 文档"},on:{close:e.onClose}},[a("a-row",{attrs:{align:"middle",type:"flex"}},[a("a-col",{attrs:{span:24}},[a("a-alert",{attrs:{banner:"",closable:"",message:"注意:导出后的数据文件存储在临时文件中,重启服务器会造成备份文件的丢失,所以请尽快下载。"}}),a("a-divider",[e._v("历史文件")]),a("a-list",{attrs:{dataSource:e.files,loading:e.loading,itemLayout:"vertical",size:"small"},scopedSlots:e._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("a-button",{staticStyle:{color:"red"},attrs:{slot:"extra",loading:t.deleting,icon:"delete",type:"link"},on:{click:function(a){return e.handleFileDeleteClick(t)}},slot:"extra"},[e._v("删除 ")]),a("a-list-item-meta",[a("a",{attrs:{slot:"title",href:"javascript:void(0)"},on:{click:function(a){return e.handleDownloadMarkdownPackage(t)}},slot:"title"},[a("a-icon",{staticStyle:{color:"#52c41a"},attrs:{type:"schedule"}}),e._v(" "+e._s(t.filename)+" ")],1),a("p",{attrs:{slot:"description"},slot:"description"},[e._v(e._s(e._f("timeAgo")(t.updateTime))+"/"+e._s(e._f("fileSizeFormat")(t.fileSize)))])])],1)}}])})],1)],1),a("a-divider",{staticClass:"divider-transparent"}),a("div",{staticClass:"bottom-control"},[a("a-space",[a("a-popconfirm",{attrs:{cancelText:"否",okText:"是",title:"是否同时为 Markdown 文档生成 Front Matter?"},on:{cancel:function(t){return e.handleExportClick(!1)},confirm:function(t){return e.handleExportClick(!0)}}},[a("ReactiveButton",{attrs:{errored:e.backupErrored,loading:e.backuping,erroredText:"备份失败",icon:"download",loadedText:"备份成功",text:"备份",type:"primary"},on:{callback:e.handleBackupedCallback}})],1),a("a-button",{attrs:{loading:e.loading,icon:"reload",type:"dashed"},on:{click:e.handleListBackups}},[e._v("刷新")])],1)],1)],1)},C=[],_={name:"ExportDataDrawer",mixins:[c.jB,c.KT],data:function(){return{backuping:!1,loading:!1,backupErrored:!1,files:[]}},model:{prop:"visible",event:"close"},props:{visible:{type:Boolean,required:!1,default:!0}},methods:{handleAfterVisibleChanged:function(e){e&&this.handleListBackups()},handleListBackups:function(){var e=this;this.loading=!0,d.Z.backup.listMarkdownBackups().then((function(t){e.files=t.data})).finally((function(){e.loading=!1}))},handleExportClick:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.backuping=!0,d.Z.backup.backupMarkdown({needFrontMatter:t}).catch((function(){e.backupErrored=!0})).finally((function(){setTimeout((function(){e.backuping=!1}),400)}))},handleBackupedCallback:function(){this.backupErrored?this.backupErrored=!1:this.handleListBackups()},handleFileDeleteClick:function(e){var t=this;e.deleting=!0,d.Z.backup.deleteMarkdownBackup(e.filename).finally((function(){setTimeout((function(){e.deleting=!1}),400),t.handleListBackups()}))},handleDownloadMarkdownPackage:function(e){var t=this;d.Z.backup.getMarkdownBackup(e.filename).then((function(e){var t=document.createElement("a"),a=new window.URL(e.data.downloadLink);t.href=a,t.download=e.data.filename,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(a)})).catch((function(){t.$message.error("下载失败!")}))},onClose:function(){this.$emit("close",!1)}}},D=_,B=(0,k.Z)(D,x,C,!1,null,null,null),M=B.exports,E=a(98906),L={components:{PageView:l.B4,BackupWorkDirDrawer:h,ExportDataDrawer:y,ExportMarkdownDrawer:M},data:function(){return{backupWorkDirDrawerVisible:!1,exportDataDrawerVisible:!1,exportMarkdownDrawerVisible:!1,markdownUpload:!1,uploadHandler:function(e,t){return d.Z.backup.importMarkdown(e,t)}}},computed:(0,n.Z)({},(0,E.Se)(["options"])),methods:{handleChange:function(e){var t=e.file.status;"uploading"!==t&&this.$log.debug(e.file,e.fileList),"done"===t?this.$message.success("".concat(e.file.name," 导入成功!")):"error"===t&&this.$message.error("".concat(e.file.name," 导入失败!"))},handleToDeveloperOptions:function(){this.$router.push({name:"DeveloperOptions"})},onUploadClose:function(){this.$refs.upload.handleClearFileList()}}},S=L,V=(0,k.Z)(S,i,o,!1,null,null,null),T=V.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/290.7e291a6c.js b/src/main/resources/admin/js/290.acdc6e30.js similarity index 99% rename from src/main/resources/admin/js/290.7e291a6c.js rename to src/main/resources/admin/js/290.acdc6e30.js index 90f0bcb111..8834b3f2a1 100644 --- a/src/main/resources/admin/js/290.7e291a6c.js +++ b/src/main/resources/admin/js/290.acdc6e30.js @@ -1 +1 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[290],{72290:function(O,e,a){a.r(e),a.d(e,{default:function(){return ca}});var t,Q,i=function(){var O=this,e=O.$createElement,a=O._self._c||e;return a("page-view",[a("a-row",{attrs:{gutter:12}},[a("a-col",{staticClass:"pb-3",attrs:{lg:6,md:6,sm:24,xl:6,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"}}},[a("template",{slot:"title"},[a("a-select",{staticClass:"w-full",attrs:{loading:O.themes.loading},on:{change:O.onSelectTheme},model:{value:O.themes.selectedId,callback:function(e){O.$set(O.themes,"selectedId",e)},expression:"themes.selectedId"}},O._l(O.themes.data,(function(e,t){return a("a-select-option",{key:t,attrs:{value:e.id}},[O._v(" "+O._s(e.name)+O._s(e.activated?"(当前启用)":"")+" ")])})),1)],1),a("a-spin",{attrs:{spinning:O.files.loading}},[O.files.data?a("theme-file",{attrs:{files:O.files.data},on:{listenToSelect:O.handleSelectFile}}):O._e()],1)],2)],1),a("a-col",{staticClass:"pb-3",attrs:{lg:18,md:18,sm:24,xl:18,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"}}},[a("a-form",{attrs:{layout:"vertical"}},[a("a-form-item",[a("Codemirror",{ref:"editor",attrs:{extensions:O.editor.extensions,height:"700px"},model:{value:O.files.content,callback:function(e){O.$set(O.files,"content",e)},expression:"files.content"}})],1),a("a-form-item",[a("ReactiveButton",{attrs:{disabled:!O.files.content,errored:O.files.saveErrored,loading:O.files.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存"},on:{callback:function(e){O.files.saveErrored=!1},click:O.handlerSaveContent}})],1)],1)],1)],1)],1)],1)},r=[],n=(a(31875),a(62888),a(2923),a(21082),a(17132)),o=(a(82395),{name:"ThemeFile",props:{files:{type:Array,required:!1,default:function(){return[]}}},methods:{handleSelectFile:function(O){this.$emit("listenToSelect",O)},renderNode:function(O,e){var a=this,t=this;return e.node&&e.node.length?O("a-tree-node",{props:{key:e.path,title:e.name,isLeaf:e.isFile}},e.node.map((function(e){return a.renderNode(O,e)}))):O("a-tree-node",{props:{key:e.path,title:e.name,isLeaf:e.isFile},nativeOn:{click:function(){t.handleSelectFile(e)}}})}},render:function(O){var e=this;return this.files.length?O("a-directory-tree",this.files.map((function(a){return e.renderNode(O,a)}))):O("p","没有文件")}}),l=o,$=a(42177),s=(0,$.Z)(l,t,Q,!1,null,null,null),p=s.exports,c=a(26278),u=a(7961),d=a(8192),P=a(17918);const f=53,W=1,m=54,T=2,X=55,S=3,g=4,y=5,b=6,R=7,Y=8,x=9,k=10,Z=56,h=11,v=12,V=57,_=18,w=27,q=30,j=33,G=35,z=0,U={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},L={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},E={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function J(O){return 45==O||46==O||58==O||O>=65&&O<=90||95==O||O>=97&&O<=122||O>=161}function C(O){return 9==O||10==O||13==O||32==O}let D=null,N=null,A=0;function I(O,e){let a=O.pos+e;if(A==a&&N==O)return D;let t=O.peek(e);while(C(t))t=O.peek(++e);let Q="";for(;;){if(!J(t))break;Q+=String.fromCharCode(t),t=O.peek(++e)}return N=O,A=a,D=Q||(t==B||t==M?void 0:null)}const F=60,H=62,K=47,B=63,M=33;function OO(O,e){this.name=O,this.parent=e,this.hash=e?e.hash:0;for(let a=0;a-1?new OO(I(t,1)||"",O):O},reduce(O,e){return e==_&&O?O.parent:O},reuse(O,e,a,t){let Q=e.type.id;return Q==g||Q==G?new OO(I(t,1)||"",O):O},hash(O){return O?O.hash:0},strict:!1}),tO=new d.Jq(((O,e)=>{if(O.next!=F)return void(O.next<0&&e.context&&O.acceptToken(Z));O.advance();let a=O.next==K;a&&O.advance();let t=I(O,0);if(void 0===t)return;if(!t)return O.acceptToken(a?h:g);let Q=e.context?e.context.name:null;if(a){if(t==Q)return O.acceptToken(Y);if(Q&&L[Q])return O.acceptToken(Z,-2);if(e.dialectEnabled(z))return O.acceptToken(x);for(let O=e.context;O;O=O.parent)if(O.name==t)return;O.acceptToken(k)}else{if("script"==t)return O.acceptToken(y);if("style"==t)return O.acceptToken(b);if("textarea"==t)return O.acceptToken(R);Q&&E[Q]&&E[Q][t]?O.acceptToken(Z,-1):O.acceptToken(g)}}),{contextual:!0}),QO=new d.Jq(((O,e)=>{let a=1;if(O.next==K){if(O.peek(1)!=H)return;a=2}else if(O.next!=H)return;e.context&&U[e.context.name]&&O.acceptToken(v,a)})),iO=new d.Jq((O=>{for(let e=0,a=0;;a++){if(O.next<0){a&&O.acceptToken(V);break}if(O.next=="--\x3e".charCodeAt(e)){if(e++,3==e){a>3&&O.acceptToken(V,-2);break}}else e=0;O.advance()}}));function rO(O,e,a){let t=2+O.length;return new d.Jq((Q=>{for(let i=0,r=0,n=0;;n++){if(Q.next<0){n&&Q.acceptToken(e);break}if(0==i&&Q.next==F||1==i&&Q.next==K||i>=2&&ir?Q.acceptToken(e,-r):Q.acceptToken(a,-(r-2));break}if((10==Q.next||13==Q.next)&&n){Q.acceptToken(e,1);break}i=r=0}else r++;Q.advance()}}))}const nO=rO("script",f,W),oO=rO("style",m,T),lO=rO("textarea",X,S),$O=d.WQ.deserialize({version:13,states:",fOVO!jOOO!TQ#tO'#CoO!YQ#tO'#CyO!_Q#tO'#C|O!dQ#tO'#DPO!iOXO'#CnO!tOYO'#CnO#PO[O'#CnO$YO!jO'#CnOOOW'#Cn'#CnO$aO$fO'#DSO$iQ#tO'#DUO$nQ#tO'#DVOOOW'#Dj'#DjOOOW'#DX'#DXQVO!jOOO$sQ&jO,59ZO${Q&jO,59eO%TQ&jO,59hO%]Q&zO,59kOOOX'#D]'#D]O%hOXO'#CwO%sOXO,59YOOOY'#D^'#D^O%{O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UO~O!XjORqX!YqX~OR!YO!Y!UO~O!Y!UO~P#[Od![O~O!ZqO!d!^O~Oj!_O~Oj!`O~Og!aOfeXjeX[eX~OfwOj!cO~OfwOj!dO~OfwOj!eO~O[!gOfwOj!fO~Od!hO~Od!iO~Od!jO~Oj!kO~Oi!nO!_!lO!a!mO~Oj!oO~Oj!pO~Oj!qO~O_!rO`!rO!_!tO!`!rO~O_!uO`!uO!a!tO!b!uO~O_!rO`!rO!_!xO!`!rO~O_!uO`!uO!a!xO!b!uO~O`_a!cwz!c~",goto:"%i!_PPPPPPPPPPPPPPPPPP!`!fP!lPP!vPP!y!|#P#V#Y#]#c#f#i#o#u!`P!`!`P#{$R$e$k$q$w$}%T%ZPPPPPPPP%aX]OW_nXTOW_nax`abcy{}!PR!n!aRfTR!UfXUOW_nRiUR!UiXVOW_nRlVR!UlXWOW_nQpWR!UnXXOW_nQ_ORv_Qy`Q{aQ}bQ!PcX!by{}!PQ!s!lR!w!sQ!v!mR!y!vQeTR!SeQhUR!VhQkVR!XkQnWR!ZnQrYR!]rS^O_TmWn",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag SelfCloseEndTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:66,context:aO,nodeProps:[[P.md.closedBy,-9,1,2,3,5,6,7,8,9,10,"EndTag",4,"EndTag SelfCloseEndTag",-4,19,29,32,35,"CloseTag"],[P.md.group,-9,11,15,16,17,18,38,39,40,41,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],[P.md.openedBy,12,"StartTag",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag"]],skippedNodes:[0],repeatNode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WIU#W~(k!RI]V!``!bpOr(krs'gsv(kwx(]x#h(k#h#iIr#i~(k!RIyV!``!bpOr(krs'gsv(kwx(]x#m(k#m#nJ`#n~(k!RJgV!``!bpOr(krs'gsv(kwx(]x#d(k#d#eJ|#e~(k!RKTV!``!bpOr(krs'gsv(kwx(]x#X(k#X#YDq#Y~(k!RKqW!``!bpOrKjrsLZsvKjvwLowxNPx!aKj!a!b! g!b~KjqL`T!bpOvLZvxLox!aLZ!a!bM^!b~LZPLrRO!aLo!a!bL{!b~LoPMORO!`Lo!`!aMX!a~LoPM^OwPqMcT!bpOvLZvxLox!`LZ!`!aMr!a~LZqMyQ!bpwPOv'gx~'gaNUV!``OrNPrsLosvNPvwLow!aNP!a!bNk!b~NPaNpV!``OrNPrsLosvNPvwLow!`NP!`!a! V!a~NPa! ^R!``wPOr(]sv(]w~(]!R! nW!``!bpOrKjrsLZsvKjvwLowxNPx!`Kj!`!a!!W!a~Kj!R!!aT!``!bpwPOr(krs'gsv(kwx(]x~(k!V!!{VgS^P!``!bpOr&Rrs&qsv&Rwx'rx!^&R!^!_(k!_~&R",tokenizers:[nO,oO,lO,tO,QO,iO,0,1,2,3,4,5],topRules:{Document:[0,13]},dialects:{noMatch:0},tokenPrec:446});function sO(O,e){let a=Object.create(null);for(let t of O.firstChild.getChildren("Attribute")){let O=t.getChild("AttributeName"),Q=t.getChild("AttributeValue")||t.getChild("UnquotedAttributeValue");O&&(a[e.read(O.from,O.to)]=Q?"AttributeValue"==Q.name?e.read(Q.from+1,Q.to-1):e.read(Q.from,Q.to):"")}return a}function pO(O,e,a){let t;for(let Q of a)if(!Q.attrs||Q.attrs(t||(t=sO(O.node.parent,e))))return{parser:Q.parser};return null}function cO(O){let e=[],a=[],t=[];for(let Q of O){let O="script"==Q.tag?e:"style"==Q.tag?a:"textarea"==Q.tag?t:null;if(!O)throw new RangeError("Only script, style, and textarea tags can host nested parsers");O.push(Q)}return(0,P.FE)(((O,Q)=>{let i=O.type.id;return i==w?pO(O,Q,e):i==q?pO(O,Q,a):i==j?pO(O,Q,t):null}))}const uO=93,dO=1,PO=94,fO=95,WO=2,mO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],TO=58,XO=40,SO=95,gO=91,yO=45,bO=46,RO=35,YO=37;function xO(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function kO(O){return O>=48&&O<=57}const ZO=new d.Jq(((O,e)=>{for(let a=!1,t=0,Q=0;;Q++){let{next:i}=O;if(!(xO(i)||i==yO||i==SO||a&&kO(i))){a&&O.acceptToken(i==XO?PO:2==t&&e.canShift(WO)?WO:fO);break}!a&&(i!=yO||Q>0)&&(a=!0),t===Q&&i==yO&&t++,O.advance()}})),hO=new d.Jq((O=>{if(mO.includes(O.peek(-1))){let{next:e}=O;(xO(e)||e==SO||e==RO||e==bO||e==gO||e==TO||e==yO)&&O.acceptToken(uO)}})),vO=new d.Jq((O=>{if(!mO.includes(O.peek(-1))){let{next:e}=O;if(e==YO&&(O.advance(),O.acceptToken(dO)),xO(e)){do{O.advance()}while(xO(O.next));O.acceptToken(dO)}}})),VO={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,dir:32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},_O={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},wO={__proto__:null,not:128,only:128,from:158,to:160},qO=d.WQ.deserialize({version:13,states:"7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO#UQ[O'#ChO#aQ[O'#DPO#fQ[O'#DTOOQP'#Ec'#EcO#kQdO'#DeO$VQ[O'#DrO#kQdO'#DtO$hQ[O'#DvO$sQ[O'#DyO$xQ[O'#EPO%WQ[O'#EROOQS'#Eb'#EbOOQS'#ES'#ESQYQ[OOOOQP'#Cg'#CgOOQP,59Q,59QO!ZQ[O,59QO%_Q[O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g!h5z!h#X%Q#X#Y5z#Y~%Q_8ZQpVOy%Qz~%Q^8fUjSOy%Qz!O%Q!O!P4x!P!Q%Q!Q![7_![~%Q_8}S#WPOy%Qz!Q%Q!Q![5Z![~%Q~9`RjSOy%Qz{9i{~%Q~9nSoWOy9iyz9zz{:o{~9i~9}ROz9zz{:W{~9z~:ZTOz9zz{:W{!P9z!P!Q:j!Q~9z~:oOR~~:tUoWOy9iyz9zz{:o{!P9i!P!Q;W!Q~9i~;_QR~oWOy%Qz~%Q^;jY#ZUOy%Qz!O%Q!O!P5Z!P!Q%Q!Q![7_![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%QX<_S]POy%Qz![%Q![!]RUOy%Qz!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX>lY!YPoWOy%Qz}%Q}!O>e!O!Q%Q!Q![>e![!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX?aQxPOy%Qz~%Q^?lQvUOy%Qz~%QX?uSOy%Qz#b%Q#b#c@R#c~%QX@WSoWOy%Qz#W%Q#W#X@d#X~%QX@kQ!`PoWOy%Qz~%QX@tSOy%Qz#f%Q#f#g@d#g~%QXAVQ!RPOy%Qz~%Q_AbQ!QVOy%Qz~%QZAmS!PPOy%Qz!_%Q!_!`2e!`~%Q",tokenizers:[hO,vO,ZO,0,1,2,3],topRules:{StyleSheet:[0,4]},specialized:[{term:94,get:O=>VO[O]||-1},{term:56,get:O=>_O[O]||-1},{term:95,get:O=>wO[O]||-1}],tokenPrec:1078});var jO=a(40405),GO=a(97428);let zO=null;function UO(){if(!zO&&"object"==typeof document&&document.body){let O=[];for(let e in document.body.style)/[A-Z]|^-|^(item|length)$/.test(e)||O.push(e);zO=O.sort().map((O=>({type:"property",label:O})))}return zO||[]}const LO=["active","after","before","checked","default","disabled","empty","enabled","first-child","first-letter","first-line","first-of-type","focus","hover","in-range","indeterminate","invalid","lang","last-child","last-of-type","link","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-of-type","only-child","optional","out-of-range","placeholder","read-only","read-write","required","root","selection","target","valid","visited"].map((O=>({type:"class",label:O}))),EO=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((O=>({type:"keyword",label:O}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((O=>({type:"constant",label:O})))),JO=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((O=>({type:"type",label:O}))),CO=/^[\w-]*/,DO=O=>{let{state:e,pos:a}=O,t=(0,jO.qz)(e).resolveInner(a,-1);if("PropertyName"==t.name)return{from:t.from,options:UO(),span:CO};if("ValueName"==t.name)return{from:t.from,options:EO,span:CO};if("PseudoClassName"==t.name)return{from:t.from,options:LO,span:CO};if("TagName"==t.name){for(let{parent:O}=t;O;O=O.parent)if("Block"==O.name)return{from:t.from,options:UO(),span:CO};return{from:t.from,options:JO,span:CO}}if(!O.explicit)return null;let Q=t.resolve(a),i=Q.childBefore(a);return i&&":"==i.name&&"PseudoClassSelector"==Q.name?{from:a,options:LO,span:CO}:i&&":"==i.name&&"Declaration"==Q.name||"ArgList"==Q.name?{from:a,options:EO,span:CO}:"Block"==Q.name?{from:a,options:UO(),span:CO}:null},NO=jO.qp.define({parser:qO.configure({props:[jO.uj.add({Declaration:(0,jO.tC)()}),jO.x0.add({Block:jO.Dv}),(0,GO.Gv)({"import charset namespace keyframes":GO.pJ.definitionKeyword,"media supports":GO.pJ.controlKeyword,"from to selector":GO.pJ.keyword,NamespaceName:GO.pJ.namespace,KeyframeName:GO.pJ.labelName,TagName:GO.pJ.tagName,ClassName:GO.pJ.className,PseudoClassName:GO.pJ.constant(GO.pJ.className),IdName:GO.pJ.labelName,"FeatureName PropertyName":GO.pJ.propertyName,AttributeName:GO.pJ.attributeName,NumberLiteral:GO.pJ.number,KeywordQuery:GO.pJ.keyword,UnaryQueryOp:GO.pJ.operatorKeyword,"CallTag ValueName":GO.pJ.atom,VariableName:GO.pJ.variableName,Callee:GO.pJ.operatorKeyword,Unit:GO.pJ.unit,"UniversalSelector NestingSelector":GO.pJ.definitionOperator,AtKeyword:GO.pJ.keyword,MatchOp:GO.pJ.compareOperator,"ChildOp SiblingOp, LogicOp":GO.pJ.logicOperator,BinOp:GO.pJ.arithmeticOperator,Important:GO.pJ.modifier,Comment:GO.pJ.blockComment,ParenthesizedContent:GO.pJ.special(GO.pJ.name),ColorLiteral:GO.pJ.color,StringLiteral:GO.pJ.string,":":GO.pJ.punctuation,"PseudoOp #":GO.pJ.derefOperator,"; ,":GO.pJ.separator,"( )":GO.pJ.paren,"[ ]":GO.pJ.squareBracket,"{ }":GO.pJ.brace})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}}),AO=NO.data.of({autocomplete:DO});function IO(){return new jO.ri(NO,AO)}const FO=275,HO=1,KO=2,BO=276,MO=277,Oe=278,ee=279,ae=3,te=281,Qe=282,ie=4,re=5,ne=1,oe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],le=125,$e=123,se=59,pe=47,ce=42,ue=43,de=45,Pe=36,fe=96,We=92,me=new d.IK({start:!1,shift(O,e){return e==ie||e==re||e==te?O:e==Qe},strict:!1}),Te=new d.Jq(((O,e)=>{let{next:a}=O;(a==le||-1==a||e.context)&&e.canShift(ee)&&O.acceptToken(ee)}),{contextual:!0,fallback:!0}),Xe=new d.Jq(((O,e)=>{let a,{next:t}=O;oe.indexOf(t)>-1||(t!=pe||(a=O.peek(1))!=pe&&a!=ce)&&t!=le&&t!=se&&-1!=t&&!e.context&&e.canShift(FO)&&O.acceptToken(FO)}),{contextual:!0}),Se=new d.Jq(((O,e)=>{let{next:a}=O;if((a==ue||a==de)&&(O.advance(),a==O.next)){O.advance();let a=!e.context&&e.canShift(HO);O.acceptToken(a?HO:KO)}}),{contextual:!0}),ge=new d.Jq((O=>{for(let e=!1,a=0;;a++){let{next:t}=O;if(t<0){a&&O.acceptToken(BO);break}if(t==fe){a?O.acceptToken(BO):O.acceptToken(Oe,1);break}if(t==$e&&e){1==a?O.acceptToken(MO,1):O.acceptToken(BO,-1);break}if(10==t&&a){O.advance(),O.acceptToken(BO);break}t==We&&O.advance(),e=t==Pe,O.advance()}}));function ye(O,e){return"extends"==O&&e.dialectEnabled(ne)?ae:-1}const be={__proto__:null,export:16,as:21,from:25,default:30,async:35,function:36,this:46,true:54,false:54,void:60,typeof:64,null:78,super:80,new:114,await:131,yield:133,delete:134,class:144,extends:146,public:189,private:189,protected:189,readonly:191,instanceof:212,in:214,const:216,import:248,keyof:299,unique:303,infer:309,is:343,abstract:363,implements:365,type:367,let:370,var:372,interface:379,enum:383,namespace:389,module:391,declare:395,global:399,for:420,of:429,while:432,with:436,do:440,if:444,else:446,switch:450,case:456,try:462,catch:464,finally:466,return:470,throw:474,break:478,continue:482,debugger:486},Re={__proto__:null,async:101,get:103,set:105,public:153,private:153,protected:153,static:155,abstract:157,override:159,readonly:165,new:347},Ye={__proto__:null,"<":121},xe=d.WQ.deserialize({version:13,states:"$1WO`QYOOO'QQ!LdO'#CgO'XOSO'#DSO)dQYO'#DXO)tQYO'#DdO){QYO'#DnO-xQYO'#DtOOQO'#EX'#EXO.]QWO'#EWO.bQWO'#EWOOQ!LS'#Eb'#EbO0aQ!LdO'#IqO2wQ!LdO'#IrO3eQWO'#EvO3jQpO'#F]OOQ!LS'#FO'#FOO3rO!bO'#FOO4QQWO'#FdO5_QWO'#FcOOQ!LS'#Ir'#IrOOQ!LQ'#Iq'#IqOOQQ'#J['#J[O5dQWO'#HjO5iQ!LYO'#HkOOQQ'#Ic'#IcOOQQ'#Hl'#HlQ`QYOOO){QYO'#DfO5qQWO'#GWO5vQ#tO'#ClO6UQWO'#EVO6aQWO'#EcO6fQ#tO'#E}O7QQWO'#GWO7VQWO'#G[O7bQWO'#G[O7pQWO'#G_O7pQWO'#G`O7pQWO'#GbO5qQWO'#GeO8aQWO'#GhO9oQWO'#CcO:PQWO'#GuO:XQWO'#G{O:XQWO'#G}O`QYO'#HPO:XQWO'#HRO:XQWO'#HUO:^QWO'#H[O:cQ!LZO'#H`O){QYO'#HbO:nQ!LZO'#HdO:yQ!LZO'#HfO5iQ!LYO'#HhO){QYO'#IsOOOS'#Hn'#HnO;UOSO,59nOOQ!LS,59n,59nO=gQbO'#CgO=qQYO'#HoO>OQWO'#ItO?}QbO'#ItO'dQYO'#ItO@UQWO,59sO@lQ&jO'#D^OAeQWO'#EXOArQWO'#JPOA}QWO'#JOOBVQWO,5:uOB[QWO'#I}O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Y$I_$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`,T!CO_$QW'U+{#vS'W%k'dpOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`",tokenizers:[Xe,Se,ge,0,1,2,3,4,5,6,7,8,Te],topRules:{Script:[0,6]},dialects:{jsx:11282,ts:11284},dynamicPrecedences:{145:1,172:1},specialized:[{term:284,get:(O,e)=>ye(O,e)<<1},{term:284,get:O=>be[O]||-1},{term:296,get:O=>Re[O]||-1},{term:59,get:O=>Ye[O]||-1}],tokenPrec:11305});var ke=a(26115);const Ze=[(0,ke.Gn)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,ke.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,ke.Gn)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,ke.Gn)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"block",type:"keyword"}),(0,ke.Gn)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,ke.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,ke.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],he=jO.qp.define({parser:xe.configure({props:[jO.uj.add({IfStatement:(0,jO.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,jO.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:jO.ze,SwitchBody:O=>{let e=O.textAfter,a=/^\s*\}/.test(e),t=/^\s*(case|default)\b/.test(e);return O.baseIndent+(a?0:t?1:2)*O.unit},Block:(0,jO.vw)({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"TemplateString BlockComment":()=>-1,"Statement Property":(0,jO.tC)({except:/^{/}),JSXElement(O){let e=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(e?0:O.unit)},JSXEscape(O){let e=/\s*\}/.test(O.textAfter);return O.lineIndent(O.node.from)+(e?0:O.unit)},"JSXOpenTag JSXSelfClosingTag"(O){return O.column(O.node.from)+O.unit}}),jO.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":jO.Dv,BlockComment(O){return{from:O.from+2,to:O.to-2}}}),(0,GO.Gv)({"get set async static":GO.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":GO.pJ.controlKeyword,"in of await yield void typeof delete instanceof":GO.pJ.operatorKeyword,"let var const function class extends":GO.pJ.definitionKeyword,"import export from":GO.pJ.moduleKeyword,"with debugger as new":GO.pJ.keyword,TemplateString:GO.pJ.special(GO.pJ.string),Super:GO.pJ.atom,BooleanLiteral:GO.pJ.bool,this:GO.pJ.self,null:GO.pJ["null"],Star:GO.pJ.modifier,VariableName:GO.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":GO.pJ["function"](GO.pJ.variableName),VariableDefinition:GO.pJ.definition(GO.pJ.variableName),Label:GO.pJ.labelName,PropertyName:GO.pJ.propertyName,PrivatePropertyName:GO.pJ.special(GO.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":GO.pJ["function"](GO.pJ.propertyName),"FunctionDeclaration/VariableDefinition":GO.pJ["function"](GO.pJ.definition(GO.pJ.variableName)),"ClassDeclaration/VariableDefinition":GO.pJ.definition(GO.pJ.className),PropertyDefinition:GO.pJ.definition(GO.pJ.propertyName),PrivatePropertyDefinition:GO.pJ.definition(GO.pJ.special(GO.pJ.propertyName)),UpdateOp:GO.pJ.updateOperator,LineComment:GO.pJ.lineComment,BlockComment:GO.pJ.blockComment,Number:GO.pJ.number,String:GO.pJ.string,ArithOp:GO.pJ.arithmeticOperator,LogicOp:GO.pJ.logicOperator,BitOp:GO.pJ.bitwiseOperator,CompareOp:GO.pJ.compareOperator,RegExp:GO.pJ.regexp,Equals:GO.pJ.definitionOperator,"Arrow : Spread":GO.pJ.punctuation,"( )":GO.pJ.paren,"[ ]":GO.pJ.squareBracket,"{ }":GO.pJ.brace,".":GO.pJ.derefOperator,", ;":GO.pJ.separator,TypeName:GO.pJ.typeName,TypeDefinition:GO.pJ.definition(GO.pJ.typeName),"type enum interface implements namespace module declare":GO.pJ.definitionKeyword,"abstract global Privacy readonly override":GO.pJ.modifier,"is keyof unique infer":GO.pJ.operatorKeyword,JSXAttributeValue:GO.pJ.attributeValue,JSXText:GO.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":GO.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":GO.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":GO.pJ.attributeName})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),ve=he.configure({dialect:"ts"}),Ve=he.configure({dialect:"jsx"}),_e=he.configure({dialect:"jsx ts"});function we(O={}){let e=O.jsx?O.typescript?_e:Ve:O.typescript?ve:he;return new jO.ri(e,he.data.of({autocomplete:(0,ke.eC)(["LineComment","BlockComment","String"],(0,ke.Mb)(Ze))}))}var qe=a(58583),je=a(46941);const Ge=["_blank","_self","_top","_parent"],ze=["ascii","utf-8","utf-16","latin1","latin1"],Ue=["get","post","put","delete"],Le=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Ee=["true","false"],Je={},Ce={a:{attrs:{href:null,ping:null,type:null,media:null,target:Ge,hreflang:null}},abbr:Je,acronym:Je,address:Je,applet:Je,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Je,aside:Je,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Je,base:{attrs:{href:null,target:Ge}},basefont:Je,bdi:Je,bdo:Je,big:Je,blockquote:{attrs:{cite:null}},body:Je,br:Je,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Le,formmethod:Ue,formnovalidate:["novalidate"],formtarget:Ge,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Je,center:Je,cite:Je,code:Je,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Je,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Je,dir:Je,div:Je,dl:Je,dt:Je,em:Je,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Je,figure:Je,font:Je,footer:Je,form:{attrs:{action:null,name:null,"accept-charset":ze,autocomplete:["on","off"],enctype:Le,method:Ue,novalidate:["novalidate"],target:Ge}},frame:Je,frameset:Je,h1:Je,h2:Je,h3:Je,h4:Je,h5:Je,h6:Je,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Je,hgroup:Je,hr:Je,html:{attrs:{manifest:null}},i:Je,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Le,formmethod:Ue,formnovalidate:["novalidate"],formtarget:Ge,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Je,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Je,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Je,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:ze,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Je,noframes:Je,noscript:Je,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Je,param:{attrs:{name:null,value:null}},pre:Je,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Je,rt:Je,ruby:Je,s:Je,samp:Je,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:ze}},section:Je,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},small:Je,source:{attrs:{src:null,type:null,media:null}},span:Je,strike:Je,strong:Je,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Je,summary:Je,sup:Je,table:Je,tbody:Je,td:{attrs:{colspan:null,rowspan:null,headers:null}},textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Je,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Je,time:{attrs:{datetime:null}},title:Je,tr:Je,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},tt:Je,u:Je,ul:{children:["li","script","template","ul","ol"]},var:Je,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Je},De={accesskey:null,class:null,contenteditable:Ee,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Ee,autocorrect:Ee,autocapitalize:Ee,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Ee,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Ee,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Ee,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Ee,"aria-hidden":Ee,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Ee,"aria-multiselectable":Ee,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Ee,"aria-relevant":null,"aria-required":Ee,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Ne=Object.keys(Ce),Ae=Object.keys(De);function Ie(O,e,a=O.length){if(!e)return"";let t=e.firstChild,Q=t&&t.getChild("TagName");return Q?O.sliceString(Q.from,Math.min(Q.to,a)):""}function Fe(O,e=!1){for(let a=O.parent;a;a=a.parent)if("Element"==a.name){if(!e)return a;e=!1}return null}function He(O,e){let a=Ce[Ie(O,Fe(e,!0))];return(null===a||void 0===a?void 0:a.children)||Ne}function Ke(O,e){let a=[];for(let t=e;t=Fe(t);){let Q=Ie(O,t);if(Q&&"CloseTag"==t.lastChild.name)break;Q&&a.indexOf(Q)<0&&("EndTag"==e.name||e.from>=t.firstChild.to)&&a.push(Q)}return a}const Be=/^[:\-\.\w\u00b7-\uffff]+$/;function Me(O,e,a,t){let Q=/\s*>/.test(O.sliceDoc(t,t+5))?"":">";return{from:a,to:t,options:He(O.doc,e).map((O=>({label:O,type:"type"}))).concat(Ke(O.doc,e).map(((O,e)=>({label:"/"+O,apply:"/"+O+Q,type:"type",boost:99-e})))),span:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Oa(O,e,a,t){let Q=/\s*>/.test(O.sliceDoc(t,t+5))?"":">";return{from:a,to:t,options:Ke(O.doc,e).map(((O,e)=>({label:O,apply:O+Q,type:"type",boost:99-e}))),span:Be}}function ea(O,e,a){let t=[],Q=0;for(let i of He(O.doc,e))t.push({label:"<"+i,type:"type"});for(let i of Ke(O.doc,e))t.push({label:"",type:"type",boost:99-Q++});return{from:a,to:a,options:t,span:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function aa(O,e,a,t){let Q=Fe(e),i=Q?Ce[Ie(O.doc,Q)]:null,r=i&&i.attrs?Object.keys(i.attrs).concat(Ae):Ae;return{from:a,to:t,options:r.map((O=>({label:O,type:"property"}))),span:Be}}function ta(O,e,a,t){var Q;let i,r=null===(Q=e.parent)||void 0===Q?void 0:Q.getChild("AttributeName"),n=[];if(r){let Q=O.sliceDoc(r.from,r.to),o=De[Q];if(!o){let a=Fe(e),t=a?Ce[Ie(O.doc,a)]:null;o=(null===t||void 0===t?void 0:t.attrs)&&t.attrs[Q]}if(o){let e=O.sliceDoc(a,t).toLowerCase(),Q='"',r='"';/^['"]/.test(e)?(i='"'==e[0]?/^[^"]*$/:/^[^']*$/,Q="",r=O.sliceDoc(t,t+1)==e[0]?"":e[0],e=e.slice(1),a++):i=/^[^\s<>='"]*$/;for(let O of o)n.push({label:O,apply:Q+O+r,type:"constant"})}}return{from:a,to:t,options:n,span:i}}function Qa(O){let{state:e,pos:a}=O,t=(0,jO.qz)(e).resolveInner(a),Q=t.resolve(a,-1);for(let i,r=a;t==Q&&(i=Q.childBefore(r));){let O=i.lastChild;if(!O||!O.type.isError||O.from{if(O.composing||O.state.readOnly||e!=a||">"!=t&&"/"!=t||!ia.isActiveAt(O.state,e,-1))return!1;let{state:Q}=O,i=Q.changeByRange((O=>{var e,a,i;let r,{head:n}=O,o=(0,jO.qz)(Q).resolveInner(n,-1);if("TagName"!=o.name&&"StartTag"!=o.name||(o=o.parent),">"==t&&"OpenTag"==o.name){if("CloseTag"!=(null===(a=null===(e=o.parent)||void 0===e?void 0:e.lastChild)||void 0===a?void 0:a.name)&&(r=Ie(Q.doc,o.parent,n)))return{range:je.jT.cursor(n+1),changes:{from:n,insert:`>`}}}else if("/"==t&&"OpenTag"==o.name){let O=o.parent,e=null===O||void 0===O?void 0:O.parent;if(O.from==n-1&&"CloseTag"!=(null===(i=e.lastChild)||void 0===i?void 0:i.name)&&(r=Ie(Q.doc,e,n))){let O=`/${r}>`;return{range:je.jT.cursor(n+O.length),changes:{from:n,insert:O}}}}return{range:O}}));return!i.changes.empty&&(O.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)}));var la={ftl:na(),css:IO(),js:we()},$a={components:{Codemirror:u.Z,ThemeFile:p,PageView:c.B4},data:function(){return{themes:{data:[],loading:!1,selectedId:null},files:{data:[],loading:!1,selected:{},content:"",saving:!1,saveErrored:!1},editor:{languageExtensionsMap:la,extensions:[]}}},created:function(){this.handleListThemes()},methods:{handleListThemes:function(){var O=this;this.themes.loading=!0,n.Z.theme.list().then((function(e){O.themes.data=e.data;var a=O.themes.data.find((function(O){return O.activated}));a&&(O.themes.selectedId=a.id,O.onSelectTheme(a.id))})).finally((function(){O.themes.loading=!1}))},onSelectTheme:function(O){var e=this;this.files.data=[],this.files.loading=!0,n.Z.theme.listFiles(O).then((function(O){e.files.data=O.data,e.files.content="",e.files.selected={}})).finally((function(){e.files.loading=!1}))},handleSelectFile:function(O){var e=this,a=this;if(!O.editable)return this.$message.info("该文件不支持修改!"),this.files.content="",this.files.selected={},void this.handleInitEditor();["settings.yaml","settings.yml","theme.yaml","theme.yml"].includes(O.name)&&this.$confirm({title:"警告:请谨慎修改该配置文件",content:"修改之后可能会产生不可预料的问题!",onCancel:function(){a.files.content="",a.files.selected={},a.handleInitEditor()}}),n.Z.theme.getTemplateContent(this.themes.selectedId,O.path).then((function(a){e.files.content=a.data,e.files.selected=O,e.handleInitEditor()}))},handlerSaveContent:function(){var O=this;this.files.saving=!0,n.Z.theme.updateTemplateContent(this.themes.selectedId,{path:this.files.selected.path,content:this.files.content}).catch((function(){O.files.saveErrored=!0})).finally((function(){setTimeout((function(){O.files.saving=!1}),400)}))},handleInitEditor:function(){var O=this;this.$nextTick((function(){var e=O.files.selected.name;if(e){var a=e.substring(e.lastIndexOf(".")+1);O.editor.extensions=[O.editor.languageExtensionsMap[a]]}O.$refs.editor.handleInitCodemirror()}))}}},sa=$a,pa=(0,$.Z)(sa,i,r,!1,null,null,null),ca=pa.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[290],{72290:function(O,e,a){a.r(e),a.d(e,{default:function(){return ca}});var t,Q,i=function(){var O=this,e=O.$createElement,a=O._self._c||e;return a("page-view",[a("a-row",{attrs:{gutter:12}},[a("a-col",{staticClass:"pb-3",attrs:{lg:6,md:6,sm:24,xl:6,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"}}},[a("template",{slot:"title"},[a("a-select",{staticClass:"w-full",attrs:{loading:O.themes.loading},on:{change:O.onSelectTheme},model:{value:O.themes.selectedId,callback:function(e){O.$set(O.themes,"selectedId",e)},expression:"themes.selectedId"}},O._l(O.themes.data,(function(e,t){return a("a-select-option",{key:t,attrs:{value:e.id}},[O._v(" "+O._s(e.name)+O._s(e.activated?"(当前启用)":"")+" ")])})),1)],1),a("a-spin",{attrs:{spinning:O.files.loading}},[O.files.data?a("theme-file",{attrs:{files:O.files.data},on:{listenToSelect:O.handleSelectFile}}):O._e()],1)],2)],1),a("a-col",{staticClass:"pb-3",attrs:{lg:18,md:18,sm:24,xl:18,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"}}},[a("a-form",{attrs:{layout:"vertical"}},[a("a-form-item",[a("Codemirror",{ref:"editor",attrs:{extensions:O.editor.extensions,height:"700px"},model:{value:O.files.content,callback:function(e){O.$set(O.files,"content",e)},expression:"files.content"}})],1),a("a-form-item",[a("ReactiveButton",{attrs:{disabled:!O.files.content,errored:O.files.saveErrored,loading:O.files.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存"},on:{callback:function(e){O.files.saveErrored=!1},click:O.handlerSaveContent}})],1)],1)],1)],1)],1)],1)},r=[],n=(a(31875),a(62888),a(2923),a(21082),a(17132)),o=(a(82395),{name:"ThemeFile",props:{files:{type:Array,required:!1,default:function(){return[]}}},methods:{handleSelectFile:function(O){this.$emit("listenToSelect",O)},renderNode:function(O,e){var a=this,t=this;return e.node&&e.node.length?O("a-tree-node",{props:{key:e.path,title:e.name,isLeaf:e.isFile}},e.node.map((function(e){return a.renderNode(O,e)}))):O("a-tree-node",{props:{key:e.path,title:e.name,isLeaf:e.isFile},nativeOn:{click:function(){t.handleSelectFile(e)}}})}},render:function(O){var e=this;return this.files.length?O("a-directory-tree",this.files.map((function(a){return e.renderNode(O,a)}))):O("p","没有文件")}}),l=o,$=a(42177),s=(0,$.Z)(l,t,Q,!1,null,null,null),p=s.exports,c=a(27474),u=a(7961),d=a(8192),P=a(17918);const f=53,W=1,m=54,T=2,X=55,S=3,g=4,y=5,b=6,R=7,Y=8,x=9,k=10,Z=56,h=11,v=12,V=57,_=18,w=27,q=30,j=33,G=35,z=0,U={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},L={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},E={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function J(O){return 45==O||46==O||58==O||O>=65&&O<=90||95==O||O>=97&&O<=122||O>=161}function C(O){return 9==O||10==O||13==O||32==O}let D=null,N=null,A=0;function I(O,e){let a=O.pos+e;if(A==a&&N==O)return D;let t=O.peek(e);while(C(t))t=O.peek(++e);let Q="";for(;;){if(!J(t))break;Q+=String.fromCharCode(t),t=O.peek(++e)}return N=O,A=a,D=Q||(t==B||t==M?void 0:null)}const F=60,H=62,K=47,B=63,M=33;function OO(O,e){this.name=O,this.parent=e,this.hash=e?e.hash:0;for(let a=0;a-1?new OO(I(t,1)||"",O):O},reduce(O,e){return e==_&&O?O.parent:O},reuse(O,e,a,t){let Q=e.type.id;return Q==g||Q==G?new OO(I(t,1)||"",O):O},hash(O){return O?O.hash:0},strict:!1}),tO=new d.Jq(((O,e)=>{if(O.next!=F)return void(O.next<0&&e.context&&O.acceptToken(Z));O.advance();let a=O.next==K;a&&O.advance();let t=I(O,0);if(void 0===t)return;if(!t)return O.acceptToken(a?h:g);let Q=e.context?e.context.name:null;if(a){if(t==Q)return O.acceptToken(Y);if(Q&&L[Q])return O.acceptToken(Z,-2);if(e.dialectEnabled(z))return O.acceptToken(x);for(let O=e.context;O;O=O.parent)if(O.name==t)return;O.acceptToken(k)}else{if("script"==t)return O.acceptToken(y);if("style"==t)return O.acceptToken(b);if("textarea"==t)return O.acceptToken(R);Q&&E[Q]&&E[Q][t]?O.acceptToken(Z,-1):O.acceptToken(g)}}),{contextual:!0}),QO=new d.Jq(((O,e)=>{let a=1;if(O.next==K){if(O.peek(1)!=H)return;a=2}else if(O.next!=H)return;e.context&&U[e.context.name]&&O.acceptToken(v,a)})),iO=new d.Jq((O=>{for(let e=0,a=0;;a++){if(O.next<0){a&&O.acceptToken(V);break}if(O.next=="--\x3e".charCodeAt(e)){if(e++,3==e){a>3&&O.acceptToken(V,-2);break}}else e=0;O.advance()}}));function rO(O,e,a){let t=2+O.length;return new d.Jq((Q=>{for(let i=0,r=0,n=0;;n++){if(Q.next<0){n&&Q.acceptToken(e);break}if(0==i&&Q.next==F||1==i&&Q.next==K||i>=2&&ir?Q.acceptToken(e,-r):Q.acceptToken(a,-(r-2));break}if((10==Q.next||13==Q.next)&&n){Q.acceptToken(e,1);break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,59`,59`OOOO'#D['#D[O*bOMhO,59`OOOO-E7X-E7XOOQ`1G.z1G.zOOOO-E7Y-E7Y",stateData:"*x~O!]OS~OSSOTPOUQOVROX[OYZOZ]O^]O_]O`]Oa]Ow]Oz^O!cYO~Od`O~OdaO~OdbO~OdcO~O!VdOPkP!YkP~O!WgOQnP!YnP~O!XjORqP!YqP~OSSOTPOUQOVROWoOX[OYZOZ]O^]O_]O`]Oa]Ow]O!cYO~O!YpO~P#[O!ZqO!dsO~OdtO~OduO~OfwOjzO~OfwOj|O~OfwOj!OO~O[!ROfwOj!QO~O!VdOPkX!YkX~OP!TO!Y!UO~O!WgOQnX!YnX~OQ!WO!Y!UO~O!XjORqX!YqX~OR!YO!Y!UO~O!Y!UO~P#[Od![O~O!ZqO!d!^O~Oj!_O~Oj!`O~Og!aOfeXjeX[eX~OfwOj!cO~OfwOj!dO~OfwOj!eO~O[!gOfwOj!fO~Od!hO~Od!iO~Od!jO~Oj!kO~Oi!nO!_!lO!a!mO~Oj!oO~Oj!pO~Oj!qO~O_!rO`!rO!_!tO!`!rO~O_!uO`!uO!a!tO!b!uO~O_!rO`!rO!_!xO!`!rO~O_!uO`!uO!a!xO!b!uO~O`_a!cwz!c~",goto:"%i!_PPPPPPPPPPPPPPPPPP!`!fP!lPP!vPP!y!|#P#V#Y#]#c#f#i#o#u!`P!`!`P#{$R$e$k$q$w$}%T%ZPPPPPPPP%aX]OW_nXTOW_nax`abcy{}!PR!n!aRfTR!UfXUOW_nRiUR!UiXVOW_nRlVR!UlXWOW_nQpWR!UnXXOW_nQ_ORv_Qy`Q{aQ}bQ!PcX!by{}!PQ!s!lR!w!sQ!v!mR!y!vQeTR!SeQhUR!VhQkVR!XkQnWR!ZnQrYR!]rS^O_TmWn",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag SelfCloseEndTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:66,context:aO,nodeProps:[[P.md.closedBy,-9,1,2,3,5,6,7,8,9,10,"EndTag",4,"EndTag SelfCloseEndTag",-4,19,29,32,35,"CloseTag"],[P.md.group,-9,11,15,16,17,18,38,39,40,41,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],[P.md.openedBy,12,"StartTag",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag"]],skippedNodes:[0],repeatNodeCount:9,tokenData:"!#b!aR!WOX$kXY)sYZ)sZ]$k]^)s^p$kpq)sqr$krs*zsv$kvw+dwx2yx}$k}!O3f!O!P$k!P!Q7_!Q![$k![!]8u!]!^$k!^!_>b!_!`!!p!`!a8T!a!c$k!c!}8u!}#R$k#R#S8u#S#T$k#T#o8u#o$f$k$f$g&R$g%W$k%W%o8u%o%p$k%p&a8u&a&b$k&b1p8u1p4U$k4U4d8u4d4e$k4e$IS8u$IS$I`$k$I`$Ib8u$Ib$Kh$k$Kh%#t8u%#t&/x$k&/x&Et8u&Et&FV$k&FV;'S8u;'S;:jiW!``!bpOq(kqr?Rrs'gsv(kwx(]x!a(k!a!bKj!b~(k!R?YZ!``!bpOr(krs'gsv(kwx(]x}(k}!O?{!O!f(k!f!gAR!g#W(k#W#XGz#X~(k!R@SV!``!bpOr(krs'gsv(kwx(]x}(k}!O@i!O~(k!R@rT!``!bp!cPOr(krs'gsv(kwx(]x~(k!RAYV!``!bpOr(krs'gsv(kwx(]x!q(k!q!rAo!r~(k!RAvV!``!bpOr(krs'gsv(kwx(]x!e(k!e!fB]!f~(k!RBdV!``!bpOr(krs'gsv(kwx(]x!v(k!v!wBy!w~(k!RCQV!``!bpOr(krs'gsv(kwx(]x!{(k!{!|Cg!|~(k!RCnV!``!bpOr(krs'gsv(kwx(]x!r(k!r!sDT!s~(k!RD[V!``!bpOr(krs'gsv(kwx(]x!g(k!g!hDq!h~(k!RDxW!``!bpOrDqrsEbsvDqvwEvwxFfx!`Dq!`!aGb!a~DqqEgT!bpOvEbvxEvx!`Eb!`!aFX!a~EbPEyRO!`Ev!`!aFS!a~EvPFXOzPqF`Q!bpzPOv'gx~'gaFkV!``OrFfrsEvsvFfvwEvw!`Ff!`!aGQ!a~FfaGXR!``zPOr(]sv(]w~(]!RGkT!``!bpzPOr(krs'gsv(kwx(]x~(k!RHRV!``!bpOr(krs'gsv(kwx(]x#c(k#c#dHh#d~(k!RHoV!``!bpOr(krs'gsv(kwx(]x#V(k#V#WIU#W~(k!RI]V!``!bpOr(krs'gsv(kwx(]x#h(k#h#iIr#i~(k!RIyV!``!bpOr(krs'gsv(kwx(]x#m(k#m#nJ`#n~(k!RJgV!``!bpOr(krs'gsv(kwx(]x#d(k#d#eJ|#e~(k!RKTV!``!bpOr(krs'gsv(kwx(]x#X(k#X#YDq#Y~(k!RKqW!``!bpOrKjrsLZsvKjvwLowxNPx!aKj!a!b! g!b~KjqL`T!bpOvLZvxLox!aLZ!a!bM^!b~LZPLrRO!aLo!a!bL{!b~LoPMORO!`Lo!`!aMX!a~LoPM^OwPqMcT!bpOvLZvxLox!`LZ!`!aMr!a~LZqMyQ!bpwPOv'gx~'gaNUV!``OrNPrsLosvNPvwLow!aNP!a!bNk!b~NPaNpV!``OrNPrsLosvNPvwLow!`NP!`!a! V!a~NPa! ^R!``wPOr(]sv(]w~(]!R! nW!``!bpOrKjrsLZsvKjvwLowxNPx!`Kj!`!a!!W!a~Kj!R!!aT!``!bpwPOr(krs'gsv(kwx(]x~(k!V!!{VgS^P!``!bpOr&Rrs&qsv&Rwx'rx!^&R!^!_(k!_~&R",tokenizers:[nO,oO,lO,tO,QO,iO,0,1,2,3,4,5],topRules:{Document:[0,13]},dialects:{noMatch:0},tokenPrec:446});function sO(O,e){let a=Object.create(null);for(let t of O.firstChild.getChildren("Attribute")){let O=t.getChild("AttributeName"),Q=t.getChild("AttributeValue")||t.getChild("UnquotedAttributeValue");O&&(a[e.read(O.from,O.to)]=Q?"AttributeValue"==Q.name?e.read(Q.from+1,Q.to-1):e.read(Q.from,Q.to):"")}return a}function pO(O,e,a){let t;for(let Q of a)if(!Q.attrs||Q.attrs(t||(t=sO(O.node.parent,e))))return{parser:Q.parser};return null}function cO(O){let e=[],a=[],t=[];for(let Q of O){let O="script"==Q.tag?e:"style"==Q.tag?a:"textarea"==Q.tag?t:null;if(!O)throw new RangeError("Only script, style, and textarea tags can host nested parsers");O.push(Q)}return(0,P.FE)(((O,Q)=>{let i=O.type.id;return i==w?pO(O,Q,e):i==q?pO(O,Q,a):i==j?pO(O,Q,t):null}))}const uO=93,dO=1,PO=94,fO=95,WO=2,mO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],TO=58,XO=40,SO=95,gO=91,yO=45,bO=46,RO=35,YO=37;function xO(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function kO(O){return O>=48&&O<=57}const ZO=new d.Jq(((O,e)=>{for(let a=!1,t=0,Q=0;;Q++){let{next:i}=O;if(!(xO(i)||i==yO||i==SO||a&&kO(i))){a&&O.acceptToken(i==XO?PO:2==t&&e.canShift(WO)?WO:fO);break}!a&&(i!=yO||Q>0)&&(a=!0),t===Q&&i==yO&&t++,O.advance()}})),hO=new d.Jq((O=>{if(mO.includes(O.peek(-1))){let{next:e}=O;(xO(e)||e==SO||e==RO||e==bO||e==gO||e==TO||e==yO)&&O.acceptToken(uO)}})),vO=new d.Jq((O=>{if(!mO.includes(O.peek(-1))){let{next:e}=O;if(e==YO&&(O.advance(),O.acceptToken(dO)),xO(e)){do{O.advance()}while(xO(O.next));O.acceptToken(dO)}}})),VO={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,dir:32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},_O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1,2,3],topRules:{StyleSheet:[0,4]},specialized:[{term:94,get:O=>VO[O]||-1},{term:56,get:O=>_O[O]||-1},{term:95,get:O=>wO[O]||-1}],tokenPrec:1078});var jO=a(40405),GO=a(97428);let zO=null;function UO(){if(!zO&&"object"==typeof document&&document.body){let O=[];for(let e in document.body.style)/[A-Z]|^-|^(item|length)$/.test(e)||O.push(e);zO=O.sort().map((O=>({type:"property",label:O})))}return zO||[]}const LO=["active","after","before","checked","default","disabled","empty","enabled","first-child","first-letter","first-line","first-of-type","focus","hover","in-range","indeterminate","invalid","lang","last-child","last-of-type","link","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-of-type","only-child","optional","out-of-range","placeholder","read-only","read-write","required","root","selection","target","valid","visited"].map((O=>({type:"class",label:O}))),EO=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((O=>({type:"keyword",label:O}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((O=>({type:"constant",label:O})))),JO=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((O=>({type:"type",label:O}))),CO=/^[\w-]*/,DO=O=>{let{state:e,pos:a}=O,t=(0,jO.qz)(e).resolveInner(a,-1);if("PropertyName"==t.name)return{from:t.from,options:UO(),span:CO};if("ValueName"==t.name)return{from:t.from,options:EO,span:CO};if("PseudoClassName"==t.name)return{from:t.from,options:LO,span:CO};if("TagName"==t.name){for(let{parent:O}=t;O;O=O.parent)if("Block"==O.name)return{from:t.from,options:UO(),span:CO};return{from:t.from,options:JO,span:CO}}if(!O.explicit)return null;let Q=t.resolve(a),i=Q.childBefore(a);return i&&":"==i.name&&"PseudoClassSelector"==Q.name?{from:a,options:LO,span:CO}:i&&":"==i.name&&"Declaration"==Q.name||"ArgList"==Q.name?{from:a,options:EO,span:CO}:"Block"==Q.name?{from:a,options:UO(),span:CO}:null},NO=jO.qp.define({parser:qO.configure({props:[jO.uj.add({Declaration:(0,jO.tC)()}),jO.x0.add({Block:jO.Dv}),(0,GO.Gv)({"import charset namespace keyframes":GO.pJ.definitionKeyword,"media supports":GO.pJ.controlKeyword,"from to selector":GO.pJ.keyword,NamespaceName:GO.pJ.namespace,KeyframeName:GO.pJ.labelName,TagName:GO.pJ.tagName,ClassName:GO.pJ.className,PseudoClassName:GO.pJ.constant(GO.pJ.className),IdName:GO.pJ.labelName,"FeatureName PropertyName":GO.pJ.propertyName,AttributeName:GO.pJ.attributeName,NumberLiteral:GO.pJ.number,KeywordQuery:GO.pJ.keyword,UnaryQueryOp:GO.pJ.operatorKeyword,"CallTag ValueName":GO.pJ.atom,VariableName:GO.pJ.variableName,Callee:GO.pJ.operatorKeyword,Unit:GO.pJ.unit,"UniversalSelector NestingSelector":GO.pJ.definitionOperator,AtKeyword:GO.pJ.keyword,MatchOp:GO.pJ.compareOperator,"ChildOp SiblingOp, LogicOp":GO.pJ.logicOperator,BinOp:GO.pJ.arithmeticOperator,Important:GO.pJ.modifier,Comment:GO.pJ.blockComment,ParenthesizedContent:GO.pJ.special(GO.pJ.name),ColorLiteral:GO.pJ.color,StringLiteral:GO.pJ.string,":":GO.pJ.punctuation,"PseudoOp #":GO.pJ.derefOperator,"; ,":GO.pJ.separator,"( )":GO.pJ.paren,"[ ]":GO.pJ.squareBracket,"{ }":GO.pJ.brace})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}}),AO=NO.data.of({autocomplete:DO});function IO(){return new jO.ri(NO,AO)}const FO=275,HO=1,KO=2,BO=276,MO=277,Oe=278,ee=279,ae=3,te=281,Qe=282,ie=4,re=5,ne=1,oe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],le=125,$e=123,se=59,pe=47,ce=42,ue=43,de=45,Pe=36,fe=96,We=92,me=new d.IK({start:!1,shift(O,e){return e==ie||e==re||e==te?O:e==Qe},strict:!1}),Te=new d.Jq(((O,e)=>{let{next:a}=O;(a==le||-1==a||e.context)&&e.canShift(ee)&&O.acceptToken(ee)}),{contextual:!0,fallback:!0}),Xe=new d.Jq(((O,e)=>{let a,{next:t}=O;oe.indexOf(t)>-1||(t!=pe||(a=O.peek(1))!=pe&&a!=ce)&&t!=le&&t!=se&&-1!=t&&!e.context&&e.canShift(FO)&&O.acceptToken(FO)}),{contextual:!0}),Se=new d.Jq(((O,e)=>{let{next:a}=O;if((a==ue||a==de)&&(O.advance(),a==O.next)){O.advance();let a=!e.context&&e.canShift(HO);O.acceptToken(a?HO:KO)}}),{contextual:!0}),ge=new d.Jq((O=>{for(let e=!1,a=0;;a++){let{next:t}=O;if(t<0){a&&O.acceptToken(BO);break}if(t==fe){a?O.acceptToken(BO):O.acceptToken(Oe,1);break}if(t==$e&&e){1==a?O.acceptToken(MO,1):O.acceptToken(BO,-1);break}if(10==t&&a){O.advance(),O.acceptToken(BO);break}t==We&&O.advance(),e=t==Pe,O.advance()}}));function ye(O,e){return"extends"==O&&e.dialectEnabled(ne)?ae:-1}const be={__proto__:null,export:16,as:21,from:25,default:30,async:35,function:36,this:46,true:54,false:54,void:60,typeof:64,null:78,super:80,new:114,await:131,yield:133,delete:134,class:144,extends:146,public:189,private:189,protected:189,readonly:191,instanceof:212,in:214,const:216,import:248,keyof:299,unique:303,infer:309,is:343,abstract:363,implements:365,type:367,let:370,var:372,interface:379,enum:383,namespace:389,module:391,declare:395,global:399,for:420,of:429,while:432,with:436,do:440,if:444,else:446,switch:450,case:456,try:462,catch:464,finally:466,return:470,throw:474,break:478,continue:482,debugger:486},Re={__proto__:null,async:101,get:103,set:105,public:153,private:153,protected:153,static:155,abstract:157,override:159,readonly:165,new:347},Ye={__proto__:null,"<":121},xe=d.WQ.deserialize({version:13,states:"$1WO`QYOOO'QQ!LdO'#CgO'XOSO'#DSO)dQYO'#DXO)tQYO'#DdO){QYO'#DnO-xQYO'#DtOOQO'#EX'#EXO.]QWO'#EWO.bQWO'#EWOOQ!LS'#Eb'#EbO0aQ!LdO'#IqO2wQ!LdO'#IrO3eQWO'#EvO3jQpO'#F]OOQ!LS'#FO'#FOO3rO!bO'#FOO4QQWO'#FdO5_QWO'#FcOOQ!LS'#Ir'#IrOOQ!LQ'#Iq'#IqOOQQ'#J['#J[O5dQWO'#HjO5iQ!LYO'#HkOOQQ'#Ic'#IcOOQQ'#Hl'#HlQ`QYOOO){QYO'#DfO5qQWO'#GWO5vQ#tO'#ClO6UQWO'#EVO6aQWO'#EcO6fQ#tO'#E}O7QQWO'#GWO7VQWO'#G[O7bQWO'#G[O7pQWO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o%T#p~%T%w!]S#c#v$QWO!^%T!_!`5T!`#o%T#p~%T$P!>pR$QW'a#wO!^%T!_#o%T#p~%T~!?OO!P~%r!?VT'u%j$QWO!^%T!_!`5T!`#o%T#p#q!=P#q~%T$u!?oR!O$k$QW'cQO!^%T!_#o%T#p~%TX!@PR!gP$QWO!^%T!_#o%T#p~%T,T!@gr$QW'T+{#vS'W%k'dpOX%TXY%cYZ%TZ[%c[p%Tpq%cqt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`,T!CO_$QW'U+{#vS'W%k'dpOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`",tokenizers:[Xe,Se,ge,0,1,2,3,4,5,6,7,8,Te],topRules:{Script:[0,6]},dialects:{jsx:11282,ts:11284},dynamicPrecedences:{145:1,172:1},specialized:[{term:284,get:(O,e)=>ye(O,e)<<1},{term:284,get:O=>be[O]||-1},{term:296,get:O=>Re[O]||-1},{term:59,get:O=>Ye[O]||-1}],tokenPrec:11305});var ke=a(26115);const Ze=[(0,ke.Gn)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,ke.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,ke.Gn)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,ke.Gn)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"block",type:"keyword"}),(0,ke.Gn)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,ke.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,ke.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],he=jO.qp.define({parser:xe.configure({props:[jO.uj.add({IfStatement:(0,jO.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,jO.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:jO.ze,SwitchBody:O=>{let e=O.textAfter,a=/^\s*\}/.test(e),t=/^\s*(case|default)\b/.test(e);return O.baseIndent+(a?0:t?1:2)*O.unit},Block:(0,jO.vw)({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"TemplateString BlockComment":()=>-1,"Statement Property":(0,jO.tC)({except:/^{/}),JSXElement(O){let e=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(e?0:O.unit)},JSXEscape(O){let e=/\s*\}/.test(O.textAfter);return O.lineIndent(O.node.from)+(e?0:O.unit)},"JSXOpenTag JSXSelfClosingTag"(O){return O.column(O.node.from)+O.unit}}),jO.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":jO.Dv,BlockComment(O){return{from:O.from+2,to:O.to-2}}}),(0,GO.Gv)({"get set async static":GO.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":GO.pJ.controlKeyword,"in of await yield void typeof delete instanceof":GO.pJ.operatorKeyword,"let var const function class extends":GO.pJ.definitionKeyword,"import export from":GO.pJ.moduleKeyword,"with debugger as new":GO.pJ.keyword,TemplateString:GO.pJ.special(GO.pJ.string),Super:GO.pJ.atom,BooleanLiteral:GO.pJ.bool,this:GO.pJ.self,null:GO.pJ["null"],Star:GO.pJ.modifier,VariableName:GO.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":GO.pJ["function"](GO.pJ.variableName),VariableDefinition:GO.pJ.definition(GO.pJ.variableName),Label:GO.pJ.labelName,PropertyName:GO.pJ.propertyName,PrivatePropertyName:GO.pJ.special(GO.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":GO.pJ["function"](GO.pJ.propertyName),"FunctionDeclaration/VariableDefinition":GO.pJ["function"](GO.pJ.definition(GO.pJ.variableName)),"ClassDeclaration/VariableDefinition":GO.pJ.definition(GO.pJ.className),PropertyDefinition:GO.pJ.definition(GO.pJ.propertyName),PrivatePropertyDefinition:GO.pJ.definition(GO.pJ.special(GO.pJ.propertyName)),UpdateOp:GO.pJ.updateOperator,LineComment:GO.pJ.lineComment,BlockComment:GO.pJ.blockComment,Number:GO.pJ.number,String:GO.pJ.string,ArithOp:GO.pJ.arithmeticOperator,LogicOp:GO.pJ.logicOperator,BitOp:GO.pJ.bitwiseOperator,CompareOp:GO.pJ.compareOperator,RegExp:GO.pJ.regexp,Equals:GO.pJ.definitionOperator,"Arrow : Spread":GO.pJ.punctuation,"( )":GO.pJ.paren,"[ ]":GO.pJ.squareBracket,"{ }":GO.pJ.brace,".":GO.pJ.derefOperator,", ;":GO.pJ.separator,TypeName:GO.pJ.typeName,TypeDefinition:GO.pJ.definition(GO.pJ.typeName),"type enum interface implements namespace module declare":GO.pJ.definitionKeyword,"abstract global Privacy readonly override":GO.pJ.modifier,"is keyof unique infer":GO.pJ.operatorKeyword,JSXAttributeValue:GO.pJ.attributeValue,JSXText:GO.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":GO.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":GO.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":GO.pJ.attributeName})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),ve=he.configure({dialect:"ts"}),Ve=he.configure({dialect:"jsx"}),_e=he.configure({dialect:"jsx ts"});function we(O={}){let e=O.jsx?O.typescript?_e:Ve:O.typescript?ve:he;return new jO.ri(e,he.data.of({autocomplete:(0,ke.eC)(["LineComment","BlockComment","String"],(0,ke.Mb)(Ze))}))}var qe=a(58583),je=a(46941);const Ge=["_blank","_self","_top","_parent"],ze=["ascii","utf-8","utf-16","latin1","latin1"],Ue=["get","post","put","delete"],Le=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Ee=["true","false"],Je={},Ce={a:{attrs:{href:null,ping:null,type:null,media:null,target:Ge,hreflang:null}},abbr:Je,acronym:Je,address:Je,applet:Je,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Je,aside:Je,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Je,base:{attrs:{href:null,target:Ge}},basefont:Je,bdi:Je,bdo:Je,big:Je,blockquote:{attrs:{cite:null}},body:Je,br:Je,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Le,formmethod:Ue,formnovalidate:["novalidate"],formtarget:Ge,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Je,center:Je,cite:Je,code:Je,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Je,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Je,dir:Je,div:Je,dl:Je,dt:Je,em:Je,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Je,figure:Je,font:Je,footer:Je,form:{attrs:{action:null,name:null,"accept-charset":ze,autocomplete:["on","off"],enctype:Le,method:Ue,novalidate:["novalidate"],target:Ge}},frame:Je,frameset:Je,h1:Je,h2:Je,h3:Je,h4:Je,h5:Je,h6:Je,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Je,hgroup:Je,hr:Je,html:{attrs:{manifest:null}},i:Je,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Le,formmethod:Ue,formnovalidate:["novalidate"],formtarget:Ge,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Je,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Je,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Je,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:ze,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Je,noframes:Je,noscript:Je,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Je,param:{attrs:{name:null,value:null}},pre:Je,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Je,rt:Je,ruby:Je,s:Je,samp:Je,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:ze}},section:Je,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},small:Je,source:{attrs:{src:null,type:null,media:null}},span:Je,strike:Je,strong:Je,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Je,summary:Je,sup:Je,table:Je,tbody:Je,td:{attrs:{colspan:null,rowspan:null,headers:null}},textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Je,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Je,time:{attrs:{datetime:null}},title:Je,tr:Je,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},tt:Je,u:Je,ul:{children:["li","script","template","ul","ol"]},var:Je,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Je},De={accesskey:null,class:null,contenteditable:Ee,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Ee,autocorrect:Ee,autocapitalize:Ee,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Ee,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Ee,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Ee,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Ee,"aria-hidden":Ee,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Ee,"aria-multiselectable":Ee,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Ee,"aria-relevant":null,"aria-required":Ee,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Ne=Object.keys(Ce),Ae=Object.keys(De);function Ie(O,e,a=O.length){if(!e)return"";let t=e.firstChild,Q=t&&t.getChild("TagName");return Q?O.sliceString(Q.from,Math.min(Q.to,a)):""}function Fe(O,e=!1){for(let a=O.parent;a;a=a.parent)if("Element"==a.name){if(!e)return a;e=!1}return null}function He(O,e){let a=Ce[Ie(O,Fe(e,!0))];return(null===a||void 0===a?void 0:a.children)||Ne}function Ke(O,e){let a=[];for(let t=e;t=Fe(t);){let Q=Ie(O,t);if(Q&&"CloseTag"==t.lastChild.name)break;Q&&a.indexOf(Q)<0&&("EndTag"==e.name||e.from>=t.firstChild.to)&&a.push(Q)}return a}const Be=/^[:\-\.\w\u00b7-\uffff]+$/;function Me(O,e,a,t){let Q=/\s*>/.test(O.sliceDoc(t,t+5))?"":">";return{from:a,to:t,options:He(O.doc,e).map((O=>({label:O,type:"type"}))).concat(Ke(O.doc,e).map(((O,e)=>({label:"/"+O,apply:"/"+O+Q,type:"type",boost:99-e})))),span:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Oa(O,e,a,t){let Q=/\s*>/.test(O.sliceDoc(t,t+5))?"":">";return{from:a,to:t,options:Ke(O.doc,e).map(((O,e)=>({label:O,apply:O+Q,type:"type",boost:99-e}))),span:Be}}function ea(O,e,a){let t=[],Q=0;for(let i of He(O.doc,e))t.push({label:"<"+i,type:"type"});for(let i of Ke(O.doc,e))t.push({label:"",type:"type",boost:99-Q++});return{from:a,to:a,options:t,span:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function aa(O,e,a,t){let Q=Fe(e),i=Q?Ce[Ie(O.doc,Q)]:null,r=i&&i.attrs?Object.keys(i.attrs).concat(Ae):Ae;return{from:a,to:t,options:r.map((O=>({label:O,type:"property"}))),span:Be}}function ta(O,e,a,t){var Q;let i,r=null===(Q=e.parent)||void 0===Q?void 0:Q.getChild("AttributeName"),n=[];if(r){let Q=O.sliceDoc(r.from,r.to),o=De[Q];if(!o){let a=Fe(e),t=a?Ce[Ie(O.doc,a)]:null;o=(null===t||void 0===t?void 0:t.attrs)&&t.attrs[Q]}if(o){let e=O.sliceDoc(a,t).toLowerCase(),Q='"',r='"';/^['"]/.test(e)?(i='"'==e[0]?/^[^"]*$/:/^[^']*$/,Q="",r=O.sliceDoc(t,t+1)==e[0]?"":e[0],e=e.slice(1),a++):i=/^[^\s<>='"]*$/;for(let O of o)n.push({label:O,apply:Q+O+r,type:"constant"})}}return{from:a,to:t,options:n,span:i}}function Qa(O){let{state:e,pos:a}=O,t=(0,jO.qz)(e).resolveInner(a),Q=t.resolve(a,-1);for(let i,r=a;t==Q&&(i=Q.childBefore(r));){let O=i.lastChild;if(!O||!O.type.isError||O.from{if(O.composing||O.state.readOnly||e!=a||">"!=t&&"/"!=t||!ia.isActiveAt(O.state,e,-1))return!1;let{state:Q}=O,i=Q.changeByRange((O=>{var e,a,i;let r,{head:n}=O,o=(0,jO.qz)(Q).resolveInner(n,-1);if("TagName"!=o.name&&"StartTag"!=o.name||(o=o.parent),">"==t&&"OpenTag"==o.name){if("CloseTag"!=(null===(a=null===(e=o.parent)||void 0===e?void 0:e.lastChild)||void 0===a?void 0:a.name)&&(r=Ie(Q.doc,o.parent,n)))return{range:je.jT.cursor(n+1),changes:{from:n,insert:`>`}}}else if("/"==t&&"OpenTag"==o.name){let O=o.parent,e=null===O||void 0===O?void 0:O.parent;if(O.from==n-1&&"CloseTag"!=(null===(i=e.lastChild)||void 0===i?void 0:i.name)&&(r=Ie(Q.doc,e,n))){let O=`/${r}>`;return{range:je.jT.cursor(n+O.length),changes:{from:n,insert:O}}}}return{range:O}}));return!i.changes.empty&&(O.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)}));var la={ftl:na(),css:IO(),js:we()},$a={components:{Codemirror:u.Z,ThemeFile:p,PageView:c.B4},data:function(){return{themes:{data:[],loading:!1,selectedId:null},files:{data:[],loading:!1,selected:{},content:"",saving:!1,saveErrored:!1},editor:{languageExtensionsMap:la,extensions:[]}}},created:function(){this.handleListThemes()},methods:{handleListThemes:function(){var O=this;this.themes.loading=!0,n.Z.theme.list().then((function(e){O.themes.data=e.data;var a=O.themes.data.find((function(O){return O.activated}));a&&(O.themes.selectedId=a.id,O.onSelectTheme(a.id))})).finally((function(){O.themes.loading=!1}))},onSelectTheme:function(O){var e=this;this.files.data=[],this.files.loading=!0,n.Z.theme.listFiles(O).then((function(O){e.files.data=O.data,e.files.content="",e.files.selected={}})).finally((function(){e.files.loading=!1}))},handleSelectFile:function(O){var e=this,a=this;if(!O.editable)return this.$message.info("该文件不支持修改!"),this.files.content="",this.files.selected={},void this.handleInitEditor();["settings.yaml","settings.yml","theme.yaml","theme.yml"].includes(O.name)&&this.$confirm({title:"警告:请谨慎修改该配置文件",content:"修改之后可能会产生不可预料的问题!",onCancel:function(){a.files.content="",a.files.selected={},a.handleInitEditor()}}),n.Z.theme.getTemplateContent(this.themes.selectedId,O.path).then((function(a){e.files.content=a.data,e.files.selected=O,e.handleInitEditor()}))},handlerSaveContent:function(){var O=this;this.files.saving=!0,n.Z.theme.updateTemplateContent(this.themes.selectedId,{path:this.files.selected.path,content:this.files.content}).catch((function(){O.files.saveErrored=!0})).finally((function(){setTimeout((function(){O.files.saving=!1}),400)}))},handleInitEditor:function(){var O=this;this.$nextTick((function(){var e=O.files.selected.name;if(e){var a=e.substring(e.lastIndexOf(".")+1);O.editor.extensions=[O.editor.languageExtensionsMap[a]]}O.$refs.editor.handleInitCodemirror()}))}}},sa=$a,pa=(0,$.Z)(sa,i,r,!1,null,null,null),ca=pa.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/362.bfe69ef1.js b/src/main/resources/admin/js/362.bfe69ef1.js new file mode 100644 index 0000000000..b1f0fdaa29 --- /dev/null +++ b/src/main/resources/admin/js/362.bfe69ef1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[362],{77794:function(e,t,a){a.d(t,{Z:function(){return m}});var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-tree-select",{attrs:{allowClear:!0,treeData:e.categoryTreeData,treeDataSimpleMode:!0,placeholder:"请选择上级目录,默认为顶级目录",treeDefaultExpandAll:""},model:{value:e.categoryIdString,callback:function(t){e.categoryIdString=t},expression:"categoryIdString"}})},o=[],n=a(75725),l=(a(12566),a(41479),a(82395),a(21082),a(31875),a(11074),{name:"CategorySelectTree",props:{categoryId:{type:Number,required:!0,default:0},categories:{type:Array,required:!1,default:function(){return[]}}},computed:{categoryTreeData:function(){return[{id:0,title:"根目录",value:"0",pId:-1}].concat((0,n.Z)(this.categories.map((function(e){return{id:e.id,title:e.name,value:e.id.toString(),pId:e.parentId}}))))},categoryIdString:{get:function(){return this.categoryId.toString()},set:function(e){this.$emit("update:categoryId",e?parseInt(e):0)}}}}),i=l,s=a(42177),c=(0,s.Z)(i,r,o,!1,null,null,null),m=c.exports},55362:function(e,t,a){a.d(t,{Z:function(){return B}});var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{afterClose:e.onClosed,bodyStyle:{padding:0},maskClosable:!1,width:680,destroyOnClose:""},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.modalTitle)+" "),e.loading?a("a-icon",{attrs:{type:"loading"}}):e._e()]},proxy:!0},{key:"footer",fn:function(){return[e._t("extraFooter"),e.draftSaveVisible?a("ReactiveButton",{attrs:{errored:e.form.draftSaveErrored,loading:e.form.draftSaving,text:(e.hasId?"转为":"保存")+"草稿",erroredText:"保存失败",loadedText:"保存成功",type:"danger"},on:{callback:function(t){return e.handleSavedCallback()},click:function(t){return e.handleSaveDraft()}}}):e._e(),e.publishVisible?a("ReactiveButton",{attrs:{errored:e.form.publishErrored,loading:e.form.publishing,erroredText:"发布失败",loadedText:"发布成功",text:"转为发布"},on:{callback:function(t){return e.handleSavedCallback()},click:function(t){return e.handlePublish()}}}):e._e(),a("ReactiveButton",{attrs:{errored:e.form.saveErrored,erroredText:(e.hasId?"保存":"发布")+"失败",loadedText:(e.hasId?"保存":"发布")+"成功",loading:e.form.saving,text:e.hasId?"保存":"发布"},on:{callback:function(t){return e.handleSavedCallback()},click:function(t){return e.handleSave()}}}),a("a-button",{attrs:{disabled:e.loading},on:{click:function(t){e.modalVisible=!1}}},[e._v("关闭")])]},proxy:!0}],null,!0),model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[a("div",{staticClass:"card-container"},[a("a-tabs",{attrs:{type:"card"}},[a("a-tab-pane",{key:"normal",attrs:{tab:"常规"}},[a("a-form",{attrs:{"label-col":{span:4},"wrapper-col":{span:20},labelAlign:"left"}},[a("a-form-item",{attrs:{label:"文章标题"}},[a("a-input",{model:{value:e.form.model.title,callback:function(t){e.$set(e.form.model,"title",t)},expression:"form.model.title"}})],1),a("a-form-item",{attrs:{help:e.fullPath,label:"文章别名"}},[a("a-input",{scopedSlots:e._u([{key:"addonAfter",fn:function(){return[a("a-popconfirm",{attrs:{"cancel-text":"取消","ok-text":"确定",placement:"left",title:"是否确定根据标题重新生成别名?"},on:{confirm:e.handleGenerateSlug}},[a("a-icon",{staticClass:"cursor-pointer",attrs:{type:"sync"}})],1)]},proxy:!0}]),model:{value:e.form.model.slug,callback:function(t){e.$set(e.form.model,"slug",t)},expression:"form.model.slug"}})],1),a("a-form-item",{attrs:{label:"分类目录"}},[a("a-space",{attrs:{direction:"vertical"}},[a("category-tree",{ref:"categoryTree",model:{value:e.form.model.categoryIds,callback:function(t){e.$set(e.form.model,"categoryIds",t)},expression:"form.model.categoryIds"}}),a("a-button",{attrs:{type:"dashed"},on:{click:function(t){e.categoryCreateModalVisible=!0}}},[e._v("新增")])],1)],1),a("a-form-item",{attrs:{label:"标签"}},[a("TagSelect",{model:{value:e.form.model.tagIds,callback:function(t){e.$set(e.form.model,"tagIds",t)},expression:"form.model.tagIds"}})],1),a("a-form-item",{attrs:{label:"摘要"}},[a("a-input",{attrs:{autoSize:{minRows:5},placeholder:"如不填写,会从文章中自动截取",type:"textarea"},model:{value:e.form.model.summary,callback:function(t){e.$set(e.form.model,"summary",t)},expression:"form.model.summary"}})],1)],1)],1),a("a-tab-pane",{key:"advanced",attrs:{tab:"高级"}},[a("a-form",{attrs:{"label-col":{span:4},"wrapper-col":{span:20},labelAlign:"left"}},[a("a-form-item",{attrs:{label:"禁止评论"}},[a("a-switch",{model:{value:e.form.model.disallowComment,callback:function(t){e.$set(e.form.model,"disallowComment",t)},expression:"form.model.disallowComment"}})],1),a("a-form-item",{attrs:{label:"是否置顶"}},[a("a-switch",{model:{value:e.topPriority,callback:function(t){e.topPriority=t},expression:"topPriority"}})],1),a("a-form-item",{attrs:{label:"发表时间:"}},[a("a-date-picker",{attrs:{defaultValue:e.createTimeDefaultValue,format:"YYYY-MM-DD HH:mm:ss",placeholder:"选择文章发表时间",showTime:""},on:{change:e.onCreateTimeSelect,ok:e.onCreateTimeSelect}})],1),a("a-form-item",{attrs:{label:"自定义模板:"}},[a("a-select",{model:{value:e.form.model.template,callback:function(t){e.$set(e.form.model,"template",t)},expression:"form.model.template"}},[a("a-select-option",{key:"",attrs:{value:""}},[e._v("无")]),e._l(e.templates,(function(t){return a("a-select-option",{key:t,attrs:{value:t}},[e._v(" "+e._s(t)+" ")])}))],2)],1),a("a-form-item",{attrs:{label:"访问密码:"}},[a("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.form.model.password,callback:function(t){e.$set(e.form.model,"password",t)},expression:"form.model.password"}})],1),a("a-form-item",{attrs:{label:"封面图:"}},[a("a-space",{attrs:{direction:"vertical"}},[a("img",{staticClass:"w-1/2 cursor-pointer",staticStyle:{"border-radius":"4px"},attrs:{src:e.form.model.thumbnail||"/images/placeholder.jpg",alt:"Post cover thumbnail"},on:{click:function(t){e.attachmentSelectVisible=!0}}}),a("a-input",{attrs:{"allow-clear":"",placeholder:"点击封面图选择图片,或者输入外部链接"},model:{value:e.form.model.thumbnail,callback:function(t){e.$set(e.form.model,"thumbnail",t)},expression:"form.model.thumbnail"}})],1)],1)],1)],1),a("a-tab-pane",{key:"seo",attrs:{tab:"SEO"}},[a("a-form",{attrs:{"label-col":{span:4},"wrapper-col":{span:20},labelAlign:"left"}},[a("a-form-item",{attrs:{label:"自定义关键词"}},[a("a-input",{attrs:{autoSize:{minRows:5},placeholder:"多个关键词以英文逗号隔开,如不填写,将自动使用标签作为关键词",type:"textarea"},model:{value:e.form.model.metaKeywords,callback:function(t){e.$set(e.form.model,"metaKeywords",t)},expression:"form.model.metaKeywords"}})],1),a("a-form-item",{attrs:{label:"自定义描述"}},[a("a-input",{attrs:{autoSize:{minRows:5},placeholder:"如不填写,会从文章中自动截取",type:"textarea"},model:{value:e.form.model.metaDescription,callback:function(t){e.$set(e.form.model,"metaDescription",t)},expression:"form.model.metaDescription"}})],1)],1)],1),a("a-tab-pane",{key:"meta",attrs:{tab:"元数据"}},[a("MetaEditor",{attrs:{metas:e.form.model.metas,targetId:e.form.model.id,target:"post"},on:{"update:metas":function(t){return e.$set(e.form.model,"metas",t)}}})],1)],1)],1),a("AttachmentSelectModal",{attrs:{multiSelect:!1,visible:e.attachmentSelectVisible},on:{"update:visible":function(t){e.attachmentSelectVisible=t},confirm:e.handleSelectPostThumbnail}}),a("CategoryCreateModal",{attrs:{visible:e.categoryCreateModalVisible},on:{"update:visible":function(t){e.categoryCreateModalVisible=t},close:e.onCategoryCreateModalClose}})],1)},o=[],n=a(47458),l=a(86475),i=(a(70315),a(41479),a(87591),a(30535),a(85018),a(31875),a(18482),a(86381),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-tree",{attrs:{checkedKeys:e.categoryIds,treeData:e.categoryTree,checkStrictly:"",checkable:"",defaultExpandAll:"",showLine:""},on:{check:e.onCheck}})}),s=[],c=(a(21082),a(17132));function m(e,t){t.forEach((function(t){e.key===t.parentId&&(e.children||(e.children=[]),e.children.push({key:t.id,title:t.name,isLeaf:!1}))})),e.children?e.children.forEach((function(e){return m(e,t)})):e.isLeaf=!0}function d(e){var t={key:0,title:"top",children:[]};return m(t,e),t.children}var u={name:"CategoryTree",model:{prop:"categoryIds",event:"check"},props:{categoryIds:{type:Array,required:!1,default:function(){return[]}}},data:function(){return{categories:{data:[],loading:!1}}},computed:{categoryTree:function(){return this.categories.data.length?d(this.categories.data):[]}},created:function(){this.handleListCategories()},methods:{handleListCategories:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.categories.loading=!0,t.next=4,c.Z.category.list({sort:[],more:!1});case 4:a=t.sent,r=a.data,e.categories.data=r,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$log.error(t.t0);case 12:return t.prev=12,e.categories.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[0,9,12,15]])})))()},onCheck:function(e,t){this.$log.debug("Chekced keys",e),this.$log.debug("e",t),this.$emit("check",e.checked)}}},f=u,p=a(42177),h=(0,p.Z)(f,i,s,!1,null,null,null),g=h.exports,v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-select",{staticClass:"w-full",attrs:{"token-separators":[",","|"],allowClear:"",mode:"tags",placeholder:"选择或输入标签"},on:{change:e.handleChange},model:{value:e.selectedTagNames,callback:function(t){e.selectedTagNames=t},expression:"selectedTagNames"}},e._l(e.tags,(function(t){return a("a-select-option",{key:t.id,attrs:{value:t.name}},[e._v(e._s(t.name))])})),1)},b=[],y=(a(82395),a(90195),a(10299)),k=a.n(y),x={name:"TagSelect",model:{prop:"tagIds",event:"change"},props:{tagIds:{type:Array,required:!1,default:function(){return[]}}},data:function(){return{tags:[],selectedTagNames:[]}},created:function(){this.handleListTags()},watch:{tags:function(e){var t=this;e&&(this.selectedTagNames=this.tagIds.map((function(e){return t.tagIdMap[e].name})))},tagIds:{handler:function(e){var t=this;this.tags.length&&(this.selectedTagNames=e.map((function(e){return t.tagIdMap[e].name})))},deep:!0}},computed:{tagIdMap:function(){var e={};return this.tags.forEach((function(t){e[t.id]=t})),e},tagNameMap:function(){var e={};return this.tags.forEach((function(t){e[t.name]=t})),e}},methods:{handleListTags:function(e){var t=this;c.Z.tag.list({sort:"name,asc",more:!0}).then((function(a){t.tags=a.data,e&&e()}))},handleChange:function(){var e=this,t=this.selectedTagNames.filter((function(t){return!e.tagNameMap[t]}));if(this.$log.debug("Tag names to create",t),t.length){var a=t.map((function(e){return c.Z.tag.create({name:e})}));k().all(a).then(k().spread((function(){e.handleListTags((function(){e.$log.debug("Tag name map",e.tagNameMap);var t=e.selectedTagNames.map((function(t){return e.tagNameMap[t].id}));e.$emit("change",t)}))})))}else{var r=this.selectedTagNames.map((function(t){return e.tagNameMap[t].id}));this.$emit("change",r)}}}},w=x,C=(0,p.Z)(w,v,b,!1,null,null,null),S=C.exports,T=a(99421),$=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{afterClose:e.onClose,width:512,destroyOnClose:"",title:"新建分类"},scopedSlots:e._u([{key:"footer",fn:function(){return[a("ReactiveButton",{attrs:{errored:e.form.errored,loading:e.form.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:e.handleSavedCallback,click:e.handleCreate}}),a("a-button",{on:{click:function(t){e.modalVisible=!1}}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[a("a-form-model",{ref:"categoryForm",attrs:{"label-col":{span:4},model:e.form.model,rules:e.form.rules,"wrapper-col":{span:20},labelAlign:"left"}},[a("a-form-model-item",{attrs:{help:"* 页面上所显示的名称",label:"名称:",prop:"name"}},[a("a-input",{ref:"nameInput",model:{value:e.form.model.name,callback:function(t){e.$set(e.form.model,"name",t)},expression:"form.model.name"}})],1),a("a-form-model-item",{attrs:{help:"* 一般为单个分类页面的标识,最好为英文",label:"别名:",prop:"slug"}},[a("a-input",{model:{value:e.form.model.slug,callback:function(t){e.$set(e.form.model,"slug",t)},expression:"form.model.slug"}})],1),a("a-form-model-item",{attrs:{label:"上级目录:",prop:"parentId"}},[a("category-select-tree",{attrs:{categories:e.list.data,"category-id":e.form.model.parentId},on:{"update:categoryId":function(t){return e.$set(e.form.model,"parentId",t)},"update:category-id":function(t){return e.$set(e.form.model,"parentId",t)}}})],1),a("a-form-model-item",{attrs:{help:"* 在分类页面可展示,需要主题支持",label:"封面图:",prop:"thumbnail"}},[a("AttachmentInput",{attrs:{title:"选择封面图"},model:{value:e.form.model.thumbnail,callback:function(t){e.$set(e.form.model,"thumbnail",t)},expression:"form.model.thumbnail"}})],1),a("a-form-model-item",{attrs:{help:"* 分类密码",label:"密码:",prop:"password"}},[a("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.form.model.password,callback:function(t){e.$set(e.form.model,"password",t)},expression:"form.model.password"}})],1),a("a-form-model-item",{attrs:{help:"* 分类描述,需要主题支持",label:"描述:",prop:"description"}},[a("a-input",{attrs:{autoSize:{minRows:3},type:"textarea"},model:{value:e.form.model.description,callback:function(t){e.$set(e.form.model,"description",t)},expression:"form.model.description"}})],1)],1)],1)},I=[],_=a(77794),E={name:"CategoryCreateModal",components:{CategorySelectTree:_.Z},props:{visible:{type:Boolean,default:!1}},data:function(){return{list:{data:[],loading:!1},form:{model:{},saving:!1,errored:!1,rules:{name:[{required:!0,message:"* 分类名称不能为空",trigger:["change"]},{max:255,message:"* 分类名称的字符长度不能超过 255",trigger:["change"]}],slug:[{max:255,message:"* 分类别名的字符长度不能超过 255",trigger:["change"]}],thumbnail:[{max:1023,message:"* 封面图链接的字符长度不能超过 1023",trigger:["change"]}],description:[{max:100,message:"* 分类描述的字符长度不能超过 100",trigger:["change"]}]}}}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},created:function(){this.handleListCategories()},watch:{modalVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.nameInput.focus()}))}},methods:{handleListCategories:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.list.loading=!0,t.next=4,c.Z.category.list({});case 4:a=t.sent,r=a.data,e.list.data=r,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$log.error("Failed to get categories",t.t0);case 12:return t.prev=12,e.list.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[0,9,12,15]])})))()},handleCreate:function(){var e=this;this.$refs.categoryForm.validate(function(){var t=(0,n.Z)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=14;break}return t.prev=1,e.form.saving=!0,t.next=5,c.Z.category.create(e.form.model);case 5:t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](1),e.form.errored=!0,e.$log.error("Failed to create category",t.t0);case 11:return t.prev=11,setTimeout((function(){e.form.saving=!1}),400),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[1,7,11,14]])})));return function(e){return t.apply(this,arguments)}}())},handleSavedCallback:function(){this.form.errored?this.form.errored=!1:(this.form.model={},this.handleListCategories())},onClose:function(){this.$emit("close")}}},D=E,M=(0,p.Z)(D,$,I,!1,null,null,null),R=M.exports,V=a(91411),Z=a(38487),Y=a(73511),L=a.n(Y),A=a(98906),P=a(94671),N={name:"PostSettingModal",mixins:[V.jB,V.KT],components:{CategoryTree:g,TagSelect:S,MetaEditor:T.Z,CategoryCreateModal:R},props:{visible:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},post:{type:Object,default:function(){return{}}},savedCallback:{type:Function,default:null}},data:function(){return{postStatuses:P.JQ,form:{model:{},saving:!1,saveErrored:!1,draftSaving:!1,draftSaveErrored:!1,publishing:!1,publishErrored:!1},templates:[],attachmentSelectVisible:!1,categoryCreateModalVisible:!1}},computed:(0,l.Z)((0,l.Z)({},(0,A.Se)(["options"])),{},{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},modalTitle:function(){return this.form.model.id?"文章设置":"文章发布"},createTimeDefaultValue:function(){if(this.form.model.createTime){var e=new Date(this.form.model.createTime);return(0,Z._)(e,"YYYY-MM-DD HH:mm:ss")}return(0,Z._)(new Date,"YYYY-MM-DD HH:mm:ss")},topPriority:{get:function(){return 0!==this.form.model.topPriority},set:function(e){this.form.model.topPriority=e?1:0}},fullPath:function(){var e=this.options,t=e.post_permalink_type,a=e.archives_prefix,r=e.blog_url,o=e.path_suffix,n=void 0===o?"":o,l=this.form.model,i=l.slug,s=void 0===i?"{slug}":i,c=l.createTime,m=void 0===c?new Date:c,d=l.id,u=void 0===d?"{id}":d;switch(t){case"DEFAULT":return"".concat(r,"/").concat(a,"/").concat(s).concat(n);case"YEAR":return"".concat(r).concat((0,Z._)(m,"/YYYY/")).concat(s).concat(n);case"DATE":return"".concat(r).concat((0,Z._)(m,"/YYYY/MM/")).concat(s).concat(n);case"DAY":return"".concat(r).concat((0,Z._)(m,"/YYYY/MM/DD/")).concat(s).concat(n);case"ID":return"".concat(r,"/?p=").concat(u);case"ID_SLUG":return"".concat(r,"/").concat(a,"/").concat(u).concat(n);default:return""}},hasId:function(){return!!this.form.model.id},draftSaveVisible:function(){var e=this.form,t=e.draftSaving,a=e.publishing;return(this.form.model.status!==P.JQ.DRAFT.value||!this.hasId||t)&&!a},publishVisible:function(){var e=this.form,t=e.draftSaving,a=e.publishing;return(this.form.model.status===P.JQ.DRAFT.value&&this.hasId||a)&&!t}}),watch:{modalVisible:function(e){e&&(this.form.model=Object.assign({},this.post),this.form.model.slug||this.form.model.id||this.handleGenerateSlug())},post:{deep:!0,handler:function(e){this.form.model=Object.assign({},e)}}},created:function(){this.handleListCustomTemplates()},methods:{handleCreateOrUpdate:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.form.model.title){t.next=3;break}throw e.$notification["error"]({message:"提示",description:"文章标题不能为空!"}),new Error("文章标题不能为空!");case 3:if(e.form.model.keepRaw=!0,t.prev=4,!e.hasId){t.next=10;break}return t.next=8,c.Z.post.update(e.form.model.id,e.form.model);case 8:t.next=12;break;case 10:return t.next=12,c.Z.post.create(e.form.model);case 12:t.next=18;break;case 14:throw t.prev=14,t.t0=t["catch"](4),e.$log.error(t.t0),new Error(t.t0);case 18:case"end":return t.stop()}}),t,null,[[4,14]])})))()},handleSave:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.form.saving=!0,a=e.form.model.status,a||(e.form.model.status=e.postStatuses.PUBLISHED.value),t.next=6,e.handleCreateOrUpdate();case 6:t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](0),e.form.saveErrored=!0,e.$log.error("Failed to save post",t.t0);case 12:return t.prev=12,setTimeout((function(){e.form.saving=!1}),400),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[0,8,12,15]])})))()},handlePublish:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.form.publishing=!0,e.form.model.status=e.postStatuses.PUBLISHED.value,t.next=5,e.handleCreateOrUpdate();case 5:t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),e.form.publishErrored=!0,e.$log.error("Failed to publish post",t.t0);case 11:return t.prev=11,setTimeout((function(){e.form.publishing=!1}),400),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,7,11,14]])})))()},handleSaveDraft:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.form.draftSaving=!0,e.form.model.status=e.postStatuses.DRAFT.value,t.next=5,e.handleCreateOrUpdate();case 5:t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),e.form.draftSaveErrored=!0,e.$log.error("Failed to save draft post",t.t0);case 11:return t.prev=11,setTimeout((function(){e.form.draftSaving=!1}),400),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,7,11,14]])})))()},handleSavedCallback:function(){this.form.saveErrored||this.form.draftSaveErrored||this.form.publishErrored?(this.form.saveErrored=!1,this.form.draftSaveErrored=!1,this.form.publishErrored=!1):this.savedCallback&&this.savedCallback()},handleListCustomTemplates:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c.Z.theme.listCustomPostTemplates();case 3:a=t.sent,e.templates=a.data,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$log.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},onCreateTimeSelect:function(e){this.form.model.createTime=e.valueOf()},handleGenerateSlug:function(){if(this.form.model.title&&L().isSupported()){var e,t="",a=L().parse(this.form.model.title.replace(/\s+/g,"").toLowerCase());a.forEach((function(a){if(2===a.type){var r=a.target?a.target.toLowerCase():"";t+=t&&!/\n|\s/.test(e.target)?"-"+r:r}else t+=(e&&2===e.type?"-":"")+a.target;e=a})),this.$set(this.form.model,"slug",t)}},handleSelectPostThumbnail:function(e){var t=e.raw;t.length&&(this.form.model.thumbnail=encodeURI(t[0].path)),this.attachmentSelectVisible=!1},onClosed:function(){this.$emit("onClose"),this.$emit("onUpdate",this.form.model)},onCategoryCreateModalClose:function(){this.$refs.categoryTree.handleListCategories()}}},F=N,O=(0,p.Z)(F,r,o,!1,null,null,null),B=O.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/432.f5f5f326.js b/src/main/resources/admin/js/432.137887ed.js similarity index 97% rename from src/main/resources/admin/js/432.f5f5f326.js rename to src/main/resources/admin/js/432.137887ed.js index 485caed977..feca3451d7 100644 --- a/src/main/resources/admin/js/432.f5f5f326.js +++ b/src/main/resources/admin/js/432.137887ed.js @@ -1 +1 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[432],{91432:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page-view",{attrs:{"sub-title":t.postToStage.inProgress?"当前内容已保存,但还未发布。":"",title:t.postToStage.title?t.postToStage.title:"新文章",affix:""}},[n("template",{slot:"extra"},[n("a-space",[n("a-button",{attrs:{loading:t.previewSaving},on:{click:t.handlePreviewClick}},[t._v("预览")]),n("a-button",{attrs:{type:"primary"},on:{click:function(e){t.postSettingVisible=!0}}},[t._v("发布")])],1)],1),n("a-row",{attrs:{gutter:12}},[n("a-col",{attrs:{span:24}},[n("div",{staticClass:"mb-4"},[n("a-input",{attrs:{placeholder:"请输入文章标题",size:"large"},model:{value:t.postToStage.title,callback:function(e){t.$set(t.postToStage,"title",e)},expression:"postToStage.title"}})],1),n("div",{style:{height:t.editorHeight},attrs:{id:"editor"}},[n("MarkdownEditor",{attrs:{originalContent:t.postToStage.originalContent},on:{"update:originalContent":function(e){return t.$set(t.postToStage,"originalContent",e)},"update:original-content":function(e){return t.$set(t.postToStage,"originalContent",e)},change:t.onContentChange,save:function(e){return t.handleSaveDraft()}}})],1)])],1),n("PostSettingModal",{attrs:{post:t.postToStage,savedCallback:t.onPostSavedCallback,visible:t.postSettingVisible},on:{"update:visible":function(e){t.postSettingVisible=e},onUpdate:t.onUpdateFromSetting}})],2)},r=[],a=n(47458),i=(n(70315),n(12566),n(43122)),s=n(24922),u=n(26278),c=n(91411),l=n(38487),p=n(17132),g=n(86763),d=n.n(g),h={mixins:[c.jB,c.KT,c.g3],components:{PostSettingModal:i.Z,MarkdownEditor:s.Z,PageView:u.B4},data:function(){return{postSettingVisible:!1,postToStage:{},contentChanges:0,previewSaving:!1}},beforeRouteEnter:function(t,e,n){var o=t.query.postId;n(function(){var t=(0,a.Z)(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!o){t.next=6;break}return t.next=3,p.Z.post.get(Number(o));case 3:n=t.sent,r=n.data,e.postToStage=r;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},destroyed:function(){window.onbeforeunload&&(window.onbeforeunload=null)},beforeRouteLeave:function(t,e,n){var o=this.$createElement;this.contentChanges<=1?n():this.$confirm({title:"当前页面数据未保存,确定要离开吗?",content:function(){return o("div",{style:"color:red;"},["如果离开当面页面,你的数据很可能会丢失!"])},onOk:function(){n()},onCancel:function(){n(!1)}})},mounted:function(){window.onbeforeunload=function(t){return t=t||window.event,t&&(t.returnValue="当前页面数据未保存,确定要离开吗?"),"当前页面数据未保存,确定要离开吗?"}},beforeMount:function(){document.addEventListener("keydown",this.onRegisterSaveShortcut)},beforeDestroy:function(){document.removeEventListener("keydown",this.onRegisterSaveShortcut)},methods:{onRegisterSaveShortcut:function(t){!t.ctrlKey&&!t.metaKey||t.altKey||t.shiftKey||83!==t.keyCode||(t.preventDefault(),t.stopPropagation(),this.handleSaveDraft())},handleSaveDraft:d()((0,a.Z)(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.postToStage.id){t.next=16;break}return t.prev=1,t.next=4,p.Z.post.updateDraftById(this.postToStage.id,this.postToStage.originalContent,this.postToStage.content,!0);case 4:e=t.sent,n=e.data,this.postToStage.inProgress=n.inProgress,this.handleRestoreSavedStatus(),this.$message.success({content:"内容已保存",duration:.5}),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](1),this.$log.error("Failed to update post content",t.t0);case 14:t.next=18;break;case 16:return t.next=18,this.handleCreatePost();case 18:case"end":return t.stop()}}),t,this,[[1,11]])}))),300),handleCreatePost:function(){var t=this;return(0,a.Z)(regeneratorRuntime.mark((function e(){var n,o,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.postToStage.title||(t.postToStage.title=(0,l._)(new Date,"YYYY-MM-DD-HH-mm-ss")),e.prev=1,t.postToStage.keepRaw=!0,e.next=5,p.Z.post.create(t.postToStage);case 5:n=e.sent,o=n.data,t.postToStage=o,t.handleRestoreSavedStatus(),r=t.$router.history.current.path,t.$router.push({path:r,query:{postId:t.postToStage.id}}).catch((function(t){return t})),t.$message.success({content:"文章已创建",duration:.5}),e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](1),t.$log.error("Failed to create post",e.t0);case 17:case"end":return e.stop()}}),e,null,[[1,14]])})))()},handlePreviewClick:function(){var t=this;return(0,a.Z)(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.previewSaving=!0,!t.postToStage.id){e.next=9;break}return e.next=4,p.Z.post.updateDraftById(t.postToStage.id,t.postToStage.originalContent,t.postToStage.content,!0);case 4:n=e.sent,o=n.data,t.postToStage.inProgress=o.inProgress,e.next=11;break;case 9:return e.next=11,t.handleCreatePost();case 11:return e.next=13,t.handleOpenPreview();case 13:case"end":return e.stop()}}),e)})))()},handleOpenPreview:function(){var t=this;return(0,a.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.Z.post.getPreviewLinkById(t.postToStage.id);case 3:n=e.sent,window.open(n,"_blank"),t.handleRestoreSavedStatus(),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error("Failed to get preview link",e.t0);case 11:return e.prev=11,setTimeout((function(){t.previewSaving=!1}),400),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()},handleRestoreSavedStatus:function(){this.contentChanges=0},onContentChange:function(t){var e=t.originalContent,n=t.renderContent;this.contentChanges++,this.postToStage.originalContent=e,this.postToStage.content=n},onPostSavedCallback:function(){this.contentChanges=0,this.$router.push({name:"PostList"})},onUpdateFromSetting:function(t){this.postToStage=t}}},v=h,f=n(42177),S=(0,f.Z)(v,o,r,!1,null,null,null),w=S.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[432],{91432:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page-view",{attrs:{"sub-title":t.postToStage.inProgress?"当前内容已保存,但还未发布。":"",title:t.postToStage.title?t.postToStage.title:"新文章",affix:""}},[n("template",{slot:"extra"},[n("a-space",[n("a-button",{attrs:{loading:t.previewSaving},on:{click:t.handlePreviewClick}},[t._v("预览")]),n("a-button",{attrs:{type:"primary"},on:{click:function(e){t.postSettingVisible=!0}}},[t._v("发布")])],1)],1),n("a-row",{attrs:{gutter:12}},[n("a-col",{attrs:{span:24}},[n("div",{staticClass:"mb-4"},[n("a-input",{attrs:{placeholder:"请输入文章标题",size:"large"},model:{value:t.postToStage.title,callback:function(e){t.$set(t.postToStage,"title",e)},expression:"postToStage.title"}})],1),n("div",{style:{height:t.editorHeight},attrs:{id:"editor"}},[n("MarkdownEditor",{attrs:{originalContent:t.postToStage.originalContent},on:{"update:originalContent":function(e){return t.$set(t.postToStage,"originalContent",e)},"update:original-content":function(e){return t.$set(t.postToStage,"originalContent",e)},change:t.onContentChange,save:function(e){return t.handleSaveDraft()}}})],1)])],1),n("PostSettingModal",{attrs:{post:t.postToStage,savedCallback:t.onPostSavedCallback,visible:t.postSettingVisible},on:{"update:visible":function(e){t.postSettingVisible=e},onUpdate:t.onUpdateFromSetting}})],2)},r=[],a=n(47458),i=(n(70315),n(12566),n(55362)),s=n(24922),u=n(27474),c=n(91411),l=n(38487),p=n(17132),g=n(86763),d=n.n(g),h={mixins:[c.jB,c.KT,c.g3],components:{PostSettingModal:i.Z,MarkdownEditor:s.Z,PageView:u.B4},data:function(){return{postSettingVisible:!1,postToStage:{},contentChanges:0,previewSaving:!1}},beforeRouteEnter:function(t,e,n){var o=t.query.postId;n(function(){var t=(0,a.Z)(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!o){t.next=6;break}return t.next=3,p.Z.post.get(Number(o));case 3:n=t.sent,r=n.data,e.postToStage=r;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},destroyed:function(){window.onbeforeunload&&(window.onbeforeunload=null)},beforeRouteLeave:function(t,e,n){var o=this.$createElement;this.contentChanges<=1?n():this.$confirm({title:"当前页面数据未保存,确定要离开吗?",content:function(){return o("div",{style:"color:red;"},["如果离开当面页面,你的数据很可能会丢失!"])},onOk:function(){n()},onCancel:function(){n(!1)}})},mounted:function(){window.onbeforeunload=function(t){return t=t||window.event,t&&(t.returnValue="当前页面数据未保存,确定要离开吗?"),"当前页面数据未保存,确定要离开吗?"}},beforeMount:function(){document.addEventListener("keydown",this.onRegisterSaveShortcut)},beforeDestroy:function(){document.removeEventListener("keydown",this.onRegisterSaveShortcut)},methods:{onRegisterSaveShortcut:function(t){!t.ctrlKey&&!t.metaKey||t.altKey||t.shiftKey||83!==t.keyCode||(t.preventDefault(),t.stopPropagation(),this.handleSaveDraft())},handleSaveDraft:d()((0,a.Z)(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.postToStage.id){t.next=16;break}return t.prev=1,t.next=4,p.Z.post.updateDraftById(this.postToStage.id,this.postToStage.originalContent,this.postToStage.content,!0);case 4:e=t.sent,n=e.data,this.postToStage.inProgress=n.inProgress,this.handleRestoreSavedStatus(),this.$message.success({content:"内容已保存",duration:.5}),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](1),this.$log.error("Failed to update post content",t.t0);case 14:t.next=18;break;case 16:return t.next=18,this.handleCreatePost();case 18:case"end":return t.stop()}}),t,this,[[1,11]])}))),300),handleCreatePost:function(){var t=this;return(0,a.Z)(regeneratorRuntime.mark((function e(){var n,o,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.postToStage.title||(t.postToStage.title=(0,l._)(new Date,"YYYY-MM-DD-HH-mm-ss")),e.prev=1,t.postToStage.keepRaw=!0,e.next=5,p.Z.post.create(t.postToStage);case 5:n=e.sent,o=n.data,t.postToStage=o,t.handleRestoreSavedStatus(),r=t.$router.history.current.path,t.$router.push({path:r,query:{postId:t.postToStage.id}}).catch((function(t){return t})),t.$message.success({content:"文章已创建",duration:.5}),e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](1),t.$log.error("Failed to create post",e.t0);case 17:case"end":return e.stop()}}),e,null,[[1,14]])})))()},handlePreviewClick:function(){var t=this;return(0,a.Z)(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.previewSaving=!0,!t.postToStage.id){e.next=9;break}return e.next=4,p.Z.post.updateDraftById(t.postToStage.id,t.postToStage.originalContent,t.postToStage.content,!0);case 4:n=e.sent,o=n.data,t.postToStage.inProgress=o.inProgress,e.next=11;break;case 9:return e.next=11,t.handleCreatePost();case 11:return e.next=13,t.handleOpenPreview();case 13:case"end":return e.stop()}}),e)})))()},handleOpenPreview:function(){var t=this;return(0,a.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.Z.post.getPreviewLinkById(t.postToStage.id);case 3:n=e.sent,window.open(n,"_blank"),t.handleRestoreSavedStatus(),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error("Failed to get preview link",e.t0);case 11:return e.prev=11,setTimeout((function(){t.previewSaving=!1}),400),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()},handleRestoreSavedStatus:function(){this.contentChanges=0},onContentChange:function(t){var e=t.originalContent,n=t.renderContent;this.contentChanges++,this.postToStage.originalContent=e,this.postToStage.content=n},onPostSavedCallback:function(){this.contentChanges=0,this.$router.push({name:"PostList"})},onUpdateFromSetting:function(t){this.postToStage=t}}},v=h,f=n(42177),S=(0,f.Z)(v,o,r,!1,null,null,null),w=S.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/462.ca187799.js b/src/main/resources/admin/js/462.7fbb691e.js similarity index 99% rename from src/main/resources/admin/js/462.ca187799.js rename to src/main/resources/admin/js/462.7fbb691e.js index 31d2bff823..e57a7bce19 100644 --- a/src/main/resources/admin/js/462.ca187799.js +++ b/src/main/resources/admin/js/462.7fbb691e.js @@ -1 +1 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[462],{36462:function(e,t,o){o.r(t),o.d(t,{default:function(){return $e}});var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("page-view",{attrs:{title:e.title}},[o("template",{slot:"extra"},[o("a-button",{staticStyle:{padding:"0"},attrs:{type:"link"},on:{click:function(t){e.advancedOptions=!e.advancedOptions}}},[e._v(" 切换到"+e._s(e.advancedOptions?"基础选项":"高级选项")+" ")])],1),o("a-row",[o("a-col",{attrs:{span:24}},[o("div",{staticClass:"card-container"},[e.advancedOptions?o("a-tabs",{staticClass:"advanced",attrs:{type:"card"}},[o("a-tab-pane",{key:"permalink"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"link"}}),e._v("固定链接 ")],1),o("PermalinkTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"api"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"api"}}),e._v("API 设置 ")],1),o("ApiTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"advanced-other"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"align-left"}}),e._v("其他设置 ")],1),o("AdvancedOtherTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1)],1):o("a-tabs",{staticClass:"general",attrs:{type:"card"}},[o("a-tab-pane",{key:"general"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"tool"}}),e._v("常规设置 ")],1),o("GeneralTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"seo"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"global"}}),e._v("SEO 设置 ")],1),o("SeoTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"post"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"form"}}),e._v("文章设置 ")],1),o("PostTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"comment"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"message"}}),e._v("评论设置 ")],1),o("CommentTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"attachment"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"picture"}}),e._v("附件设置 ")],1),o("AttachmentTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"smtp"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"mail"}}),e._v("SMTP 服务 ")],1),o("SmtpTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"other"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"align-left"}}),e._v("其他设置 ")],1),o("OtherTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1)],1)],1)])],1)],2)},a=[],n=o(47458),i=o(86475),r=(o(70315),o(26278)),l=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"generalOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"博客标题:",prop:"blog_title"}},[o("a-input",{model:{value:e.options.blog_title,callback:function(t){e.$set(e.options,"blog_title",t)},expression:"options.blog_title"}})],1),o("a-form-model-item",{attrs:{label:"博客地址:",prop:"blog_url"}},[o("a-input",{attrs:{placeholder:"如:https://halo.run"},model:{value:e.options.blog_url,callback:function(t){e.$set(e.options,"blog_url",t)},expression:"options.blog_url"}})],1),o("a-form-model-item",{attrs:{label:"Logo:",prop:"blog_logo"}},[o("AttachmentInput",{attrs:{title:"选择 Logo"},model:{value:e.options.blog_logo,callback:function(t){e.$set(e.options,"blog_logo",t)},expression:"options.blog_logo"}})],1),o("a-form-model-item",{attrs:{label:"Favicon:",prop:"blog_favicon"}},[o("AttachmentInput",{attrs:{title:"选择 Favicon"},model:{value:e.options.blog_favicon,callback:function(t){e.$set(e.options,"blog_favicon",t)},expression:"options.blog_favicon"}})],1),o("a-form-model-item",{attrs:{label:"页脚信息:",prop:"blog_footer_info"}},[o("a-input",{attrs:{autoSize:{minRows:5},placeholder:"支持 HTML 格式的文本",type:"textarea"},model:{value:e.options.blog_footer_info,callback:function(t){e.$set(e.options,"blog_footer_info",t)},expression:"options.blog_footer_info"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},p=[],c={name:"GeneralTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{blog_title:[{required:!0,message:"* 博客标题不能为空",trigger:["change"]},{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}],blog_url:[{required:!0,message:"* 博客地址不能为空",trigger:["change"]},{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}],blog_logo:[{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}],blog_favicon:[{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}],blog_footer_info:[{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}]}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.generalOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},m=c,u=o(42177),_=(0,u.Z)(m,l,p,!1,null,null,null),d=_.exports,b=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"seoOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"屏蔽搜索引擎:",prop:"seo_spider_disabled"}},[o("a-switch",{model:{value:e.options.seo_spider_disabled,callback:function(t){e.$set(e.options,"seo_spider_disabled",t)},expression:"options.seo_spider_disabled"}})],1),o("a-form-model-item",{attrs:{label:"关键词:",prop:"seo_keywords"}},[o("a-input",{attrs:{placeholder:"多个关键词以英文状态下的逗号隔开"},model:{value:e.options.seo_keywords,callback:function(t){e.$set(e.options,"seo_keywords",t)},expression:"options.seo_keywords"}})],1),o("a-form-model-item",{attrs:{label:"博客描述:",prop:"seo_description"}},[o("a-input",{attrs:{autoSize:{minRows:5},type:"textarea"},model:{value:e.options.seo_description,callback:function(t){e.$set(e.options,"seo_description",t)},expression:"options.seo_description"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},f=[],h={name:"SeoTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{seo_keywords:[{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}],seo_description:[{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}]}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.seoOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},v=h,g=(0,u.Z)(v,b,f,!1,null,null,null),k=g.exports,y=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"postOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"首页文章排序:"}},[o("a-select",{model:{value:e.options.post_index_sort,callback:function(t){e.$set(e.options,"post_index_sort",t)},expression:"options.post_index_sort"}},[o("a-select-option",{attrs:{value:"createTime"}},[e._v("创建时间")]),o("a-select-option",{attrs:{value:"editTime"}},[e._v("最后编辑时间")]),o("a-select-option",{attrs:{value:"visits"}},[e._v("点击量")])],1)],1),o("a-form-model-item",{attrs:{label:"首页每页文章条数:"}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.post_index_page_size,callback:function(t){e.$set(e.options,"post_index_page_size",t)},expression:"options.post_index_page_size"}})],1),o("a-form-model-item",{attrs:{help:"* 包括标签所属文章页面、分类所属文章页面",label:"归档页面每页文章条数:"}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.post_archives_page_size,callback:function(t){e.$set(e.options,"post_archives_page_size",t)},expression:"options.post_archives_page_size"}})],1),o("a-form-model-item",{attrs:{label:"RSS 内容类型:"}},[o("a-select",{model:{value:e.options.rss_content_type,callback:function(t){e.$set(e.options,"rss_content_type",t)},expression:"options.rss_content_type"}},[o("a-select-option",{attrs:{value:"full"}},[e._v("全文")]),o("a-select-option",{attrs:{value:"summary"}},[e._v("摘要")])],1)],1),o("a-form-model-item",{attrs:{label:"RSS 内容条数:"}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.rss_page_size,callback:function(t){e.$set(e.options,"rss_page_size",t)},expression:"options.rss_page_size"}})],1),o("a-form-model-item",{attrs:{label:"文章摘要字数:"}},[o("a-input-number",{staticStyle:{width:"100%"},model:{value:e.options.post_summary_length,callback:function(t){e.$set(e.options,"post_summary_length",t)},expression:"options.post_summary_length"}})],1),o("a-form-model-item",{attrs:{label:"自动清理回收站文章:"}},[o("a-switch",{model:{value:e.options.recycled_post_cleaning_enabled,callback:function(t){e.$set(e.options,"recycled_post_cleaning_enabled",t)},expression:"options.recycled_post_cleaning_enabled"}})],1),o("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:e.options.recycled_post_cleaning_enabled,expression:"options.recycled_post_cleaning_enabled"}],attrs:{label:"回收站文章保留时长:"}},[o("a-input-group",{attrs:{compact:""}},[o("a-input-number",{staticStyle:{width:"70%"},attrs:{min:1,precision:0},model:{value:e.options.recycled_post_retention_time,callback:function(t){e.$set(e.options,"recycled_post_retention_time",t)},expression:"options.recycled_post_retention_time"}}),o("a-select",{staticStyle:{width:"30%"},model:{value:e.options.recycled_post_retention_timeunit,callback:function(t){e.$set(e.options,"recycled_post_retention_timeunit",t)},expression:"options.recycled_post_retention_timeunit"}},[o("a-select-option",{attrs:{value:"DAY"}},[e._v("天")]),o("a-select-option",{attrs:{value:"HOUR"}},[e._v("小时")])],1)],1)],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},x=[],w={name:"PostTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.postOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},$=w,S=(0,u.Z)($,y,x,!1,null,null,null),O=S.exports,T=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"commentOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"评论者头像:"}},[o("a-select",{model:{value:e.options.comment_gravatar_default,callback:function(t){e.$set(e.options,"comment_gravatar_default",t)},expression:"options.comment_gravatar_default"}},e._l(e.avatarTypes,(function(t,s){return o("a-select-option",{key:s,attrs:{value:t.value}},[o("a-avatar",{staticClass:"comment_select_gravatar",attrs:{size:18,src:e.options.gravatar_source+"?s=256&d="+t.value}}),e._v(" "+e._s(t.text)+" ")],1)})),1)],1),o("a-form-model-item",{attrs:{label:"评论审核后才显示:"}},[o("a-switch",{model:{value:e.options.comment_new_need_check,callback:function(t){e.$set(e.options,"comment_new_need_check",t)},expression:"options.comment_new_need_check"}})],1),o("a-form-model-item",{attrs:{label:"新评论通知:"}},[o("a-switch",{model:{value:e.options.comment_new_notice,callback:function(t){e.$set(e.options,"comment_new_notice",t)},expression:"options.comment_new_notice"}})],1),o("a-form-model-item",{attrs:{label:"评论回复通知对方:"}},[o("a-switch",{model:{value:e.options.comment_reply_notice,callback:function(t){e.$set(e.options,"comment_reply_notice",t)},expression:"options.comment_reply_notice"}})],1),o("a-form-model-item",{attrs:{help:"* 关闭之后将无法进行评论",label:"API 评论开关:"}},[o("a-switch",{model:{value:e.options.comment_api_enabled,callback:function(t){e.$set(e.options,"comment_api_enabled",t)},expression:"options.comment_api_enabled"}})],1),o("a-form-model-item",{attrs:{help:"* 该设置需要主题支持",label:"评论模块 JS:"}},[o("a-input",{attrs:{autoSize:{minRows:2},type:"textarea"},model:{value:e.options.comment_internal_plugin_js,callback:function(t){e.$set(e.options,"comment_internal_plugin_js",t)},expression:"options.comment_internal_plugin_js"}})],1),o("a-form-model-item",{attrs:{help:"* 例如://gravatar.com/avatar/",label:"Gravatar 镜像源:"}},[o("a-input",{model:{value:e.options.gravatar_source,callback:function(t){e.$set(e.options,"gravatar_source",t)},expression:"options.gravatar_source"}})],1),o("a-form-model-item",{attrs:{label:"每页显示条数: "}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.comment_page_size,callback:function(t){e.$set(e.options,"comment_page_size",t)},expression:"options.comment_page_size"}})],1),o("a-form-model-item",{attrs:{label:"占位提示:"}},[o("a-input",{model:{value:e.options.comment_content_placeholder,callback:function(t){e.$set(e.options,"comment_content_placeholder",t)},expression:"options.comment_content_placeholder"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},C=[],A=[{text:"默认",value:""},{text:"匿名者",value:"mm"},{text:"抽象几何图形",value:"identicon"},{text:"小怪物",value:"monsterid"},{text:"Wavatar",value:"wavatar"},{text:"复古",value:"retro"},{text:"机器人",value:"robohash"},{text:"不显示头像",value:"blank"}],B={name:"CommentTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{},avatarTypes:A}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this;if(!this.options.comment_new_notice&&!this.options.comment_reply_notice||this.options.email_enabled){var t=this;t.$refs.commentOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}else this.$notification["error"]({message:"提示",description:"新评论通知或回复通知需要打开和配置 SMTP 服务!"})}}},P=B,q=(0,u.Z)(P,T,C,!1,null,"5cb11a90",null),E=q.exports,R=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"attachmentOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"上传图片时预览:"}},[o("a-switch",{model:{value:e.options.attachment_upload_image_preview_enable,callback:function(t){e.$set(e.options,"attachment_upload_image_preview_enable",t)},expression:"options.attachment_upload_image_preview_enable"}})],1),o("a-form-model-item",{attrs:{label:"最大上传文件数:"}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.attachment_upload_max_files,callback:function(t){e.$set(e.options,"attachment_upload_max_files",t)},expression:"options.attachment_upload_max_files"}})],1),o("a-form-model-item",{attrs:{label:"同时上传文件数:"}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.attachment_upload_max_parallel_uploads,callback:function(t){e.$set(e.options,"attachment_upload_max_parallel_uploads",t)},expression:"options.attachment_upload_max_parallel_uploads"}})],1),o("a-form-model-item",{attrs:{label:"存储位置:"}},[o("a-select",{model:{value:e.options.attachment_type,callback:function(t){e.$set(e.options,"attachment_type",t)},expression:"options.attachment_type"}},e._l(Object.keys(e.attachmentTypes),(function(t){return o("a-select-option",{key:t,attrs:{value:t}},[e._v(" "+e._s(e.attachmentTypes[t].text)+" ")])})),1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"SMMS"===e.options.attachment_type,expression:"options.attachment_type === 'SMMS'"}],attrs:{id:"smmsForm"}},[o("a-form-model-item",{attrs:{label:"Secret Token:"}},[o("a-input-password",{attrs:{autocomplete:"new-password",placeholder:"需要到 sm.ms 官网注册后获取"},model:{value:e.options.smms_api_secret_token,callback:function(t){e.$set(e.options,"smms_api_secret_token",t)},expression:"options.smms_api_secret_token"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"UPOSS"===e.options.attachment_type,expression:"options.attachment_type === 'UPOSS'"}],attrs:{id:"upOssForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.oss_upyun_domain_protocol,callback:function(t){e.$set(e.options,"oss_upyun_domain_protocol",t)},expression:"options.oss_upyun_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"无需再加上 http:// 或者 https://"},model:{value:e.options.oss_upyun_domain,callback:function(t){e.$set(e.options,"oss_upyun_domain",t)},expression:"options.oss_upyun_domain"}})],1),o("a-form-model-item",{attrs:{label:"空间名称:"}},[o("a-input",{model:{value:e.options.oss_upyun_bucket,callback:function(t){e.$set(e.options,"oss_upyun_bucket",t)},expression:"options.oss_upyun_bucket"}})],1),o("a-form-model-item",{attrs:{label:"操作员名称:"}},[o("a-input",{model:{value:e.options.oss_upyun_operator,callback:function(t){e.$set(e.options,"oss_upyun_operator",t)},expression:"options.oss_upyun_operator"}})],1),o("a-form-model-item",{attrs:{label:"操作员密码:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.oss_upyun_password,callback:function(t){e.$set(e.options,"oss_upyun_password",t)},expression:"options.oss_upyun_password"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{model:{value:e.options.oss_upyun_source,callback:function(t){e.$set(e.options,"oss_upyun_source",t)},expression:"options.oss_upyun_source"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"间隔标识符+图片处理版本名称"},model:{value:e.options.oss_upyun_style_rule,callback:function(t){e.$set(e.options,"oss_upyun_style_rule",t)},expression:"options.oss_upyun_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"间隔标识符+图片处理版本名称,一般为后台展示所用"},model:{value:e.options.oss_upyun_thumbnail_style_rule,callback:function(t){e.$set(e.options,"oss_upyun_thumbnail_style_rule",t)},expression:"options.oss_upyun_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"QINIUOSS"===e.options.attachment_type,expression:"options.attachment_type === 'QINIUOSS'"}],attrs:{id:"qiniuOssForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.oss_qiniu_domain_protocol,callback:function(t){e.$set(e.options,"oss_qiniu_domain_protocol",t)},expression:"options.oss_qiniu_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"无需再加上 http:// 或者 https://"},model:{value:e.options.oss_qiniu_domain,callback:function(t){e.$set(e.options,"oss_qiniu_domain",t)},expression:"options.oss_qiniu_domain"}})],1),o("a-form-model-item",{attrs:{label:"区域:"}},[o("a-auto-complete",{attrs:{dataSource:e.qiniuOssZones,allowClear:""},model:{value:e.options.oss_qiniu_zone,callback:function(t){e.$set(e.options,"oss_qiniu_zone",t)},expression:"options.oss_qiniu_zone"}})],1),o("a-form-model-item",{attrs:{label:"Access Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.oss_qiniu_access_key,callback:function(t){e.$set(e.options,"oss_qiniu_access_key",t)},expression:"options.oss_qiniu_access_key"}})],1),o("a-form-model-item",{attrs:{label:"Secret Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.oss_qiniu_secret_key,callback:function(t){e.$set(e.options,"oss_qiniu_secret_key",t)},expression:"options.oss_qiniu_secret_key"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{attrs:{placeholder:"不填写则上传到根目录"},model:{value:e.options.oss_qiniu_source,callback:function(t){e.$set(e.options,"oss_qiniu_source",t)},expression:"options.oss_qiniu_source"}})],1),o("a-form-model-item",{attrs:{label:"Bucket:"}},[o("a-input",{attrs:{placeholder:"存储空间名称"},model:{value:e.options.oss_qiniu_bucket,callback:function(t){e.$set(e.options,"oss_qiniu_bucket",t)},expression:"options.oss_qiniu_bucket"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"样式分隔符+图片处理样式名称"},model:{value:e.options.oss_qiniu_style_rule,callback:function(t){e.$set(e.options,"oss_qiniu_style_rule",t)},expression:"options.oss_qiniu_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"样式分隔符+图片处理样式名称,一般为后台展示所用"},model:{value:e.options.oss_qiniu_thumbnail_style_rule,callback:function(t){e.$set(e.options,"oss_qiniu_thumbnail_style_rule",t)},expression:"options.oss_qiniu_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"ALIOSS"===e.options.attachment_type,expression:"options.attachment_type === 'ALIOSS'"}],attrs:{id:"aliOssForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.oss_ali_domain_protocol,callback:function(t){e.$set(e.options,"oss_ali_domain_protocol",t)},expression:"options.oss_ali_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"如不填写,路径根域名将为 Bucket + EndPoint"},model:{value:e.options.oss_ali_domain,callback:function(t){e.$set(e.options,"oss_ali_domain",t)},expression:"options.oss_ali_domain"}})],1),o("a-form-model-item",{attrs:{label:"Bucket:"}},[o("a-input",{attrs:{placeholder:"存储空间名称"},model:{value:e.options.oss_ali_bucket_name,callback:function(t){e.$set(e.options,"oss_ali_bucket_name",t)},expression:"options.oss_ali_bucket_name"}})],1),o("a-form-model-item",{attrs:{label:"EndPoint(地域节点):"}},[o("a-input",{model:{value:e.options.oss_ali_endpoint,callback:function(t){e.$set(e.options,"oss_ali_endpoint",t)},expression:"options.oss_ali_endpoint"}})],1),o("a-form-model-item",{attrs:{label:"Access Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.oss_ali_access_key,callback:function(t){e.$set(e.options,"oss_ali_access_key",t)},expression:"options.oss_ali_access_key"}})],1),o("a-form-model-item",{attrs:{label:"Access Secret:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.oss_ali_access_secret,callback:function(t){e.$set(e.options,"oss_ali_access_secret",t)},expression:"options.oss_ali_access_secret"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{attrs:{placeholder:"不填写则上传到根目录"},model:{value:e.options.oss_ali_source,callback:function(t){e.$set(e.options,"oss_ali_source",t)},expression:"options.oss_ali_source"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"请到阿里云控制台的图片处理获取"},model:{value:e.options.oss_ali_style_rule,callback:function(t){e.$set(e.options,"oss_ali_style_rule",t)},expression:"options.oss_ali_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"请到阿里云控制台的图片处理获取,一般为后台展示所用"},model:{value:e.options.oss_ali_thumbnail_style_rule,callback:function(t){e.$set(e.options,"oss_ali_thumbnail_style_rule",t)},expression:"options.oss_ali_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"BAIDUBOS"===e.options.attachment_type,expression:"options.attachment_type === 'BAIDUBOS'"}],attrs:{id:"baiduBosForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.bos_baidu_domain_protocol,callback:function(t){e.$set(e.options,"bos_baidu_domain_protocol",t)},expression:"options.bos_baidu_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"如不填写,路径根域名将为 Bucket + EndPoint"},model:{value:e.options.bos_baidu_domain,callback:function(t){e.$set(e.options,"bos_baidu_domain",t)},expression:"options.bos_baidu_domain"}})],1),o("a-form-model-item",{attrs:{label:"Bucket:"}},[o("a-input",{attrs:{placeholder:"存储空间名称"},model:{value:e.options.bos_baidu_bucket_name,callback:function(t){e.$set(e.options,"bos_baidu_bucket_name",t)},expression:"options.bos_baidu_bucket_name"}})],1),o("a-form-model-item",{attrs:{label:"EndPoint(地域节点):"}},[o("a-input",{model:{value:e.options.bos_baidu_endpoint,callback:function(t){e.$set(e.options,"bos_baidu_endpoint",t)},expression:"options.bos_baidu_endpoint"}})],1),o("a-form-model-item",{attrs:{label:"Access Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.bos_baidu_access_key,callback:function(t){e.$set(e.options,"bos_baidu_access_key",t)},expression:"options.bos_baidu_access_key"}})],1),o("a-form-model-item",{attrs:{label:"Secret Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.bos_baidu_secret_key,callback:function(t){e.$set(e.options,"bos_baidu_secret_key",t)},expression:"options.bos_baidu_secret_key"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"请到百度云控制台的图片处理获取"},model:{value:e.options.bos_baidu_style_rule,callback:function(t){e.$set(e.options,"bos_baidu_style_rule",t)},expression:"options.bos_baidu_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"请到百度云控制台的图片处理获取,一般为后台展示所用"},model:{value:e.options.bos_baidu_thumbnail_style_rule,callback:function(t){e.$set(e.options,"bos_baidu_thumbnail_style_rule",t)},expression:"options.bos_baidu_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"TENCENTCOS"===e.options.attachment_type,expression:"options.attachment_type === 'TENCENTCOS'"}],attrs:{id:"tencentCosForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.cos_tencent_domain_protocol,callback:function(t){e.$set(e.options,"cos_tencent_domain_protocol",t)},expression:"options.cos_tencent_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"如不填写,路径根域名将为 Bucket + 区域地址"},model:{value:e.options.cos_tencent_domain,callback:function(t){e.$set(e.options,"cos_tencent_domain",t)},expression:"options.cos_tencent_domain"}})],1),o("a-form-model-item",{attrs:{label:"Bucket:"}},[o("a-input",{attrs:{placeholder:"存储桶名称"},model:{value:e.options.cos_tencent_bucket_name,callback:function(t){e.$set(e.options,"cos_tencent_bucket_name",t)},expression:"options.cos_tencent_bucket_name"}})],1),o("a-form-model-item",{attrs:{label:"区域:"}},[o("a-auto-complete",{attrs:{dataSource:e.tencentCosRegions,allowClear:""},model:{value:e.options.cos_tencent_region,callback:function(t){e.$set(e.options,"cos_tencent_region",t)},expression:"options.cos_tencent_region"}})],1),o("a-form-model-item",{attrs:{label:"Secret Id:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.cos_tencent_secret_id,callback:function(t){e.$set(e.options,"cos_tencent_secret_id",t)},expression:"options.cos_tencent_secret_id"}})],1),o("a-form-model-item",{attrs:{label:"Secret Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.cos_tencent_secret_key,callback:function(t){e.$set(e.options,"cos_tencent_secret_key",t)},expression:"options.cos_tencent_secret_key"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{attrs:{placeholder:"不填写则上传到根目录"},model:{value:e.options.cos_tencent_source,callback:function(t){e.$set(e.options,"cos_tencent_source",t)},expression:"options.cos_tencent_source"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"请到腾讯云控制台的图片处理获取"},model:{value:e.options.cos_tencent_style_rule,callback:function(t){e.$set(e.options,"cos_tencent_style_rule",t)},expression:"options.cos_tencent_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"请到腾讯云控制台的图片处理获取,一般为后台展示所用"},model:{value:e.options.cos_tencent_thumbnail_style_rule,callback:function(t){e.$set(e.options,"cos_tencent_thumbnail_style_rule",t)},expression:"options.cos_tencent_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"HUAWEIOBS"===e.options.attachment_type,expression:"options.attachment_type === 'HUAWEIOBS'"}],attrs:{id:"huaweiObsForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.obs_huawei_domain_protocol,callback:function(t){e.$set(e.options,"obs_huawei_domain_protocol",t)},expression:"options.obs_huawei_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"如不填写,路径根域名将为 Bucket + EndPoint"},model:{value:e.options.obs_huawei_domain,callback:function(t){e.$set(e.options,"obs_huawei_domain",t)},expression:"options.obs_huawei_domain"}})],1),o("a-form-model-item",{attrs:{label:"Bucket(桶名称):"}},[o("a-input",{attrs:{placeholder:"桶名称"},model:{value:e.options.obs_huawei_bucket_name,callback:function(t){e.$set(e.options,"obs_huawei_bucket_name",t)},expression:"options.obs_huawei_bucket_name"}})],1),o("a-form-model-item",{attrs:{label:"EndPoint(终端节点):"}},[o("a-input",{attrs:{placeholder:"Endpoint"},model:{value:e.options.obs_huawei_endpoint,callback:function(t){e.$set(e.options,"obs_huawei_endpoint",t)},expression:"options.obs_huawei_endpoint"}})],1),o("a-form-model-item",{attrs:{label:"Access Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.obs_huawei_access_key,callback:function(t){e.$set(e.options,"obs_huawei_access_key",t)},expression:"options.obs_huawei_access_key"}})],1),o("a-form-model-item",{attrs:{label:"Access Secret:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.obs_huawei_access_secret,callback:function(t){e.$set(e.options,"obs_huawei_access_secret",t)},expression:"options.obs_huawei_access_secret"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{attrs:{placeholder:"不填写则上传到根目录"},model:{value:e.options.obs_huawei_source,callback:function(t){e.$set(e.options,"obs_huawei_source",t)},expression:"options.obs_huawei_source"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"请到华为云控制台的图片处理创建"},model:{value:e.options.obs_huawei_style_rule,callback:function(t){e.$set(e.options,"obs_huawei_style_rule",t)},expression:"options.obs_huawei_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"请到华为云控制台的图片处理获取,一般为后台展示所用"},model:{value:e.options.obs_huawei_thumbnail_style_rule,callback:function(t){e.$set(e.options,"obs_huawei_thumbnail_style_rule",t)},expression:"options.obs_huawei_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"MINIO"===e.options.attachment_type,expression:"options.attachment_type === 'MINIO'"}],attrs:{id:"minioForm"}},[o("a-form-model-item",{attrs:{label:"EndPoint(终端节点):"}},[o("a-input",{attrs:{placeholder:"Endpoint"},model:{value:e.options.minio_endpoint,callback:function(t){e.$set(e.options,"minio_endpoint",t)},expression:"options.minio_endpoint"}})],1),o("a-form-model-item",{attrs:{label:"Bucket(桶名称):"}},[o("a-input",{attrs:{placeholder:"桶名称"},model:{value:e.options.minio_bucket_name,callback:function(t){e.$set(e.options,"minio_bucket_name",t)},expression:"options.minio_bucket_name"}})],1),o("a-form-model-item",{attrs:{label:"Region(区域):"}},[o("a-input",{attrs:{placeholder:"区域"},model:{value:e.options.minio_region,callback:function(t){e.$set(e.options,"minio_region",t)},expression:"options.minio_region"}})],1),o("a-form-model-item",{attrs:{label:"Access Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.minio_access_key,callback:function(t){e.$set(e.options,"minio_access_key",t)},expression:"options.minio_access_key"}})],1),o("a-form-model-item",{attrs:{label:"Access Secret:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.minio_access_secret,callback:function(t){e.$set(e.options,"minio_access_secret",t)},expression:"options.minio_access_secret"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{attrs:{placeholder:"不填写则上传到根目录"},model:{value:e.options.minio_source,callback:function(t){e.$set(e.options,"minio_source",t)},expression:"options.minio_source"}})],1)],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},I=[],F=o(94671),D=[{text:"北京一区",value:"ap-beijing-1"},{text:"北京",value:"ap-beijing"},{text:"上海(华东)",value:"ap-shanghai"},{text:"广州(华南)",value:"ap-guangzhou"},{text:"成都(西南)",value:"ap-chengdu"},{text:"重庆",value:"ap-chongqing"}],N=[{text:"自动选择",value:"auto"},{text:"华东",value:"z0"},{text:"华北",value:"z1"},{text:"华南",value:"z2"},{text:"北美",value:"na0"},{text:"东南亚",value:"as0"}],j={name:"AttachmentTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},tencentCosRegions:D,qiniuOssZones:N,attachmentTypes:F.k,rules:{}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this;switch(this.options.attachment_type){case"SMMS":if(!this.options.smms_api_secret_token)return void this.$notification["error"]({message:"提示",description:"Secret Token 不能为空!"});break;case"UPOSS":if(!this.options.oss_upyun_domain)return void this.$notification["error"]({message:"提示",description:"绑定域名不能为空!"});if(!this.options.oss_upyun_bucket)return void this.$notification["error"]({message:"提示",description:"空间名称不能为空!"});if(!this.options.oss_upyun_operator)return void this.$notification["error"]({message:"提示",description:"操作员名称不能为空!"});if(!this.options.oss_upyun_password)return void this.$notification["error"]({message:"提示",description:"操作员密码不能为空!"});if(!this.options.oss_upyun_source)return void this.$notification["error"]({message:"提示",description:"文件目录不能为空!"});break;case"QINIUOSS":if(!this.options.oss_qiniu_domain)return void this.$notification["error"]({message:"提示",description:"绑定域名不能为空!"});if(!this.options.oss_qiniu_access_key)return void this.$notification["error"]({message:"提示",description:"Access Key 不能为空!"});if(!this.options.oss_qiniu_secret_key)return void this.$notification["error"]({message:"提示",description:"Secret Key 不能为空!"});if(!this.options.oss_qiniu_bucket)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});break;case"ALIOSS":if(!this.options.oss_ali_bucket_name)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});if(!this.options.oss_ali_endpoint)return void this.$notification["error"]({message:"提示",description:"EndPoint(地域节点) 不能为空!"});if(!this.options.oss_ali_access_key)return void this.$notification["error"]({message:"提示",description:"Access Key 不能为空!"});if(!this.options.oss_ali_access_secret)return void this.$notification["error"]({message:"提示",description:"Access Secret 不能为空!"});break;case"BAIDUBOS":if(!this.options.bos_baidu_bucket_name)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});if(!this.options.bos_baidu_endpoint)return void this.$notification["error"]({message:"提示",description:"EndPoint(地域节点) 不能为空!"});if(!this.options.bos_baidu_access_key)return void this.$notification["error"]({message:"提示",description:"Access Key 不能为空!"});if(!this.options.bos_baidu_secret_key)return void this.$notification["error"]({message:"提示",description:"Secret Key 不能为空!"});break;case"TENCENTCOS":if(!this.options.cos_tencent_bucket_name)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});if(!this.options.cos_tencent_region)return void this.$notification["error"]({message:"提示",description:"区域不能为空!"});if(!this.options.cos_tencent_secret_id)return void this.$notification["error"]({message:"提示",description:"Secret Id 不能为空!"});if(!this.options.cos_tencent_secret_key)return void this.$notification["error"]({message:"提示",description:"Secret Key 不能为空!"});break;case"HUAWEIOBS":if(!this.options.obs_huawei_bucket_name)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});if(!this.options.obs_huawei_endpoint)return void this.$notification["error"]({message:"提示",description:"EndPoint(终端节点) 不能为空!"});if(!this.options.obs_huawei_access_key)return void this.$notification["error"]({message:"提示",description:"Access Key 不能为空!"});if(!this.options.obs_huawei_access_secret)return void this.$notification["error"]({message:"提示",description:"Access Secret 不能为空!"});break;case"MINIO":if(!this.options.minio_endpoint)return void this.$notification["error"]({message:"提示",description:"EndPoint(终端节点)不能为空!"});if(!this.options.minio_bucket_name)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});if(!this.options.minio_access_key)return void this.$notification["error"]({message:"提示",description:"Access Key 不能为空!"});if(!this.options.minio_access_secret)return void this.$notification["error"]({message:"提示",description:"Access Secret 不能为空!"});break}var t=this;t.$refs.attachmentOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},z=j,Z=(0,u.Z)(z,R,I,!1,null,null,null),U=Z.exports,M=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"custom-tab-wrapper"},[o("a-tabs",{attrs:{animated:{inkBar:!0,tabPane:!1}}},[o("a-tab-pane",{key:"smtpoptions",attrs:{tab:"发信设置"}},[o("a-form-model",{ref:"smtpOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"是否启用:"}},[o("a-switch",{model:{value:e.options.email_enabled,callback:function(t){e.$set(e.options,"email_enabled",t)},expression:"options.email_enabled"}})],1),o("a-form-model-item",{attrs:{label:"SMTP 地址:",prop:"email_host"}},[o("a-input",{model:{value:e.options.email_host,callback:function(t){e.$set(e.options,"email_host",t)},expression:"options.email_host"}})],1),o("a-form-model-item",{attrs:{label:"发送协议:",prop:"email_protocol"}},[o("a-input",{model:{value:e.options.email_protocol,callback:function(t){e.$set(e.options,"email_protocol",t)},expression:"options.email_protocol"}})],1),o("a-form-model-item",{attrs:{label:"SSL 端口:",prop:"email_ssl_port"}},[o("a-input",{model:{value:e.options.email_ssl_port,callback:function(t){e.$set(e.options,"email_ssl_port",t)},expression:"options.email_ssl_port"}})],1),o("a-form-model-item",{attrs:{label:"邮箱账号:",prop:"email_username"}},[o("a-input",{model:{value:e.options.email_username,callback:function(t){e.$set(e.options,"email_username",t)},expression:"options.email_username"}})],1),o("a-form-model-item",{attrs:{label:"邮箱密码:",prop:"email_password"}},[o("a-input-password",{attrs:{autocomplete:"new-password",placeholder:"部分邮箱可能是授权码"},model:{value:e.options.email_password,callback:function(t){e.$set(e.options,"email_password",t)},expression:"options.email_password"}})],1),o("a-form-model-item",{attrs:{label:"发件人:",prop:"email_from_name"}},[o("a-input",{model:{value:e.options.email_from_name,callback:function(t){e.$set(e.options,"email_from_name",t)},expression:"options.email_from_name"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1),o("a-tab-pane",{key:"smtptest",attrs:{tab:"发送测试"}},[o("a-form-model",{ref:"smtpTestForm",attrs:{model:e.mailParam,rules:e.testRules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"收件人地址:",prop:"to"}},[o("a-input",{model:{value:e.mailParam.to,callback:function(t){e.$set(e.mailParam,"to",t)},expression:"mailParam.to"}})],1),o("a-form-model-item",{attrs:{label:"主题:",prop:"subject"}},[o("a-input",{model:{value:e.mailParam.subject,callback:function(t){e.$set(e.mailParam,"subject",t)},expression:"mailParam.subject"}})],1),o("a-form-model-item",{attrs:{label:"内容:",prop:"content"}},[o("a-input",{attrs:{autoSize:{minRows:5},type:"textarea"},model:{value:e.mailParam.content,callback:function(t){e.$set(e.mailParam,"content",t)},expression:"mailParam.content"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.sendErrored,loading:e.sending,erroredText:"发送失败",loadedText:"发送成功",text:"发送",type:"primary"},on:{callback:function(t){e.sendErrored=!1},click:e.handleTestMailClick}})],1)],1)],1)],1)],1)},H=[],L=(o(31875),o(17132)),K={name:"SmtpTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},mailParam:{},sending:!1,sendErrored:!1,testRules:{to:[{required:!0,message:"* 收件人地址不能为空",trigger:["change"]}],subject:[{required:!0,message:"* 主题不能为空",trigger:["change"]}],content:[{required:!0,message:"* 内容不能为空",trigger:["change"]}]}}},watch:{options:function(e){this.$emit("onChange",e)}},computed:{rules:function(){var e=this.options.email_enabled;return{email_host:[{required:e,message:"* SMTP 地址不能为空",trigger:["change"]}],email_protocol:[{required:e,message:"* 发送协议不能为空",trigger:["change"]}],email_ssl_port:[{required:e,message:"* SSL 端口不能为空",trigger:["change"]}],email_username:[{required:e,message:"* 邮箱账号不能为空",trigger:["change"]},{type:"email",message:"* 邮箱账号格式不正确",trigger:["change"]}],email_password:[{required:e,message:"* 邮箱密码不能为空",trigger:["change"]}],email_from_name:[{required:e,message:"* 发件人不能为空",trigger:["change"]}]}}},methods:{handleSaveOptions:function(){var e=this;e.$refs.smtpOptionsForm.validate((function(t){t&&e.$emit("onSave")}))},handleTestMailClick:function(){var e=this,t=this;t.$refs.smtpTestForm.validate((function(t){t&&(e.sending=!0,L.Z.mail.testSmtpService(e.mailParam).then((function(t){e.$message.info(t.data)})).catch((function(){e.sendErrored=!0})).finally((function(){setTimeout((function(){e.sending=!1}),400)})))}))}}},Y=K,G=(0,u.Z)(Y,M,H,!1,null,null,null),W=G.exports,Q=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"otherOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"自定义全局 head:"}},[o("a-input",{attrs:{autoSize:{minRows:5},placeholder:"放置于每个页面的 标签中",type:"textarea"},model:{value:e.options.blog_custom_head,callback:function(t){e.$set(e.options,"blog_custom_head",t)},expression:"options.blog_custom_head"}})],1),o("a-form-model-item",{attrs:{label:"自定义内容页 head:"}},[o("a-input",{attrs:{autoSize:{minRows:5},placeholder:"仅放置于内容页面的 标签中",type:"textarea"},model:{value:e.options.blog_custom_content_head,callback:function(t){e.$set(e.options,"blog_custom_content_head",t)},expression:"options.blog_custom_content_head"}})],1),o("a-form-model-item",{attrs:{label:"统计代码:"}},[o("a-input",{attrs:{autoSize:{minRows:5},placeholder:"第三方网站统计的代码,如:Google Analytics、百度统计、CNZZ 等",type:"textarea"},model:{value:e.options.blog_statistics_code,callback:function(t){e.$set(e.options,"blog_statistics_code",t)},expression:"options.blog_statistics_code"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},V=[],J={name:"OtherTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.otherOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},X=J,ee=(0,u.Z)(X,Q,V,!1,null,null,null),te=ee.exports,oe=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"permalinkOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"文章固定链接类型:"}},[o("template",{slot:"help"},["DEFAULT"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.archives_prefix)+"/{slug}"+e._s(e.options.path_suffix))]):"YEAR"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+e._s(e._f("moment_post_year")(new Date))+"{slug}"+e._s(e.options.path_suffix))]):"DATE"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+e._s(e._f("moment_post_date")(new Date))+"{slug}"+e._s(e.options.path_suffix))]):"DAY"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+e._s(e._f("moment_post_day")(new Date))+"{slug}"+e._s(e.options.path_suffix))]):"ID"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+"/?p={id}")]):"ID_SLUG"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.archives_prefix)+"/{id}"+e._s(e.options.path_suffix))]):e._e()]),o("a-select",{model:{value:e.options.post_permalink_type,callback:function(t){e.$set(e.options,"post_permalink_type",t)},expression:"options.post_permalink_type"}},e._l(Object.keys(e.postPermalinkType),(function(t){return o("a-select-option",{key:t,attrs:{value:t}},[e._v(e._s(e.postPermalinkType[t].text)+" ")])})),1)],2),o("a-form-model-item",{attrs:{label:"归档前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.archives_prefix)+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.archives_prefix,callback:function(t){e.$set(e.options,"archives_prefix",t)},expression:"options.archives_prefix"}})],2),o("a-form-model-item",{attrs:{label:"分类前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.categories_prefix)+"/{slug}"+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.categories_prefix,callback:function(t){e.$set(e.options,"categories_prefix",t)},expression:"options.categories_prefix"}})],2),o("a-form-model-item",{attrs:{label:"标签前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.tags_prefix)+"/{slug}"+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.tags_prefix,callback:function(t){e.$set(e.options,"tags_prefix",t)},expression:"options.tags_prefix"}})],2),o("a-form-model-item",{attrs:{label:"自定义页面固定链接类型:"}},[o("template",{slot:"help"},["SECONDARY"===e.options.sheet_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.sheet_prefix)+"/{slug}"+e._s(e.options.path_suffix))]):"ROOT"===e.options.sheet_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+"/{slug}"+e._s(e.options.path_suffix))]):e._e()]),o("a-select",{model:{value:e.options.sheet_permalink_type,callback:function(t){e.$set(e.options,"sheet_permalink_type",t)},expression:"options.sheet_permalink_type"}},e._l(Object.keys(e.sheetPermalinkType),(function(t){return o("a-select-option",{key:t,attrs:{value:t}},[e._v(e._s(e.sheetPermalinkType[t].text)+" ")])})),1)],2),o("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:"SECONDARY"===e.options.sheet_permalink_type,expression:"options.sheet_permalink_type === 'SECONDARY'"}],attrs:{label:"自定义页面前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.sheet_prefix)+"/{slug}"+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.sheet_prefix,callback:function(t){e.$set(e.options,"sheet_prefix",t)},expression:"options.sheet_prefix"}})],2),o("a-form-model-item",{attrs:{label:"友情链接页面前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.links_prefix)+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.links_prefix,callback:function(t){e.$set(e.options,"links_prefix",t)},expression:"options.links_prefix"}})],2),o("a-form-model-item",{attrs:{label:"图库页面前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.photos_prefix)+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.photos_prefix,callback:function(t){e.$set(e.options,"photos_prefix",t)},expression:"options.photos_prefix"}})],2),o("a-form-model-item",{attrs:{label:"日志页面前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.journals_prefix)+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.journals_prefix,callback:function(t){e.$set(e.options,"journals_prefix",t)},expression:"options.journals_prefix"}})],2),o("a-form-model-item",{attrs:{label:"路径后缀:"}},[o("template",{slot:"help"},[o("span",[e._v("* 格式为:"),o("code",[e._v(".{suffix}")]),e._v(",仅对内建路径有效")])]),o("a-input",{model:{value:e.options.path_suffix,callback:function(t){e.$set(e.options,"path_suffix",t)},expression:"options.path_suffix"}})],2),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},se=[],ae={name:"PermalinkTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{postPermalinkType:{DEFAULT:{type:"DEFAULT",text:"默认"},YEAR:{type:"YEAR",text:"年份型"},DATE:{type:"DATE",text:"年月型"},DAY:{type:"DAY",text:"年月日型"},ID:{type:"ID",text:"ID 型"},ID_SLUG:{type:"ID_SLUG",text:"ID 别名型"}},sheetPermalinkType:{SECONDARY:{type:"SECONDARY",text:"二级路径"},ROOT:{type:"ROOT",text:"根路径"}},wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.permalinkOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},ne=ae,ie=(0,u.Z)(ne,oe,se,!1,null,null,null),re=ie.exports,le=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"apiOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"API 服务:"}},[o("a-switch",{model:{value:e.options.api_enabled,callback:function(t){e.$set(e.options,"api_enabled",t)},expression:"options.api_enabled"}})],1),o("a-form-model-item",{attrs:{label:"Access key:",prop:"api_access_key"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.api_access_key,callback:function(t){e.$set(e.options,"api_access_key",t)},expression:"options.api_access_key"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},pe=[],ce={name:"ApiTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}}}},watch:{options:function(e){this.$emit("onChange",e)}},computed:{rules:function(){var e=this.options.api_enabled;return{api_access_key:[{required:e,message:"* Access key 不能为空",trigger:["change"]}]}}},methods:{handleSaveOptions:function(){var e=this;e.$refs.apiOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},me=ce,ue=(0,u.Z)(me,le,pe,!1,null,null,null),_e=ue.exports,de=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"advancedOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{help:"* 对网站上面的所有页面路径、本地附件路径、以及主题中的静态资源路径有效。",label:"全局绝对路径:"}},[o("a-switch",{model:{value:e.options.global_absolute_path_enabled,callback:function(t){e.$set(e.options,"global_absolute_path_enabled",t)},expression:"options.global_absolute_path_enabled"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},be=[],fe={name:"AdvancedOtherTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.advancedOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},he=fe,ve=(0,u.Z)(he,de,be,!1,null,null,null),ge=ve.exports,ke=o(98906),ye={components:{PageView:r.B4,GeneralTab:d,SeoTab:k,PostTab:O,CommentTab:E,AttachmentTab:U,SmtpTab:W,OtherTab:te,PermalinkTab:re,ApiTab:_e,AdvancedOtherTab:ge},data:function(){return{options:{},advancedOptions:!1,saving:!1,errored:!1}},computed:{title:function(){return this.advancedOptions?"高级选项":"基础选项"}},created:function(){this.handleListOptions()},methods:(0,i.Z)((0,i.Z)({},(0,ke.nv)(["refreshUserCache","refreshOptionsCache"])),{},{handleListOptions:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){var o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,L.Z.option.listAsMapView();case 3:o=t.sent,e.options=o.data,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$log.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},onOptionsChange:function(e){this.options=e},onSaveOptions:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.saving=!0,t.next=4,L.Z.option.saveMapView(e.options);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](0),e.errored=!0,e.$log.error(t.t0);case 10:return t.prev=10,setTimeout((function(){e.saving=!1}),400),t.next=14,e.handleListOptions();case 14:return t.next=16,e.refreshOptionsCache();case 16:return t.next=18,e.refreshUserCache();case 18:return t.finish(10);case 19:case"end":return t.stop()}}),t,null,[[0,6,10,19]])})))()}})},xe=ye,we=(0,u.Z)(xe,s,a,!1,null,null,null),$e=we.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[462],{36462:function(e,t,o){o.r(t),o.d(t,{default:function(){return $e}});var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("page-view",{attrs:{title:e.title}},[o("template",{slot:"extra"},[o("a-button",{staticStyle:{padding:"0"},attrs:{type:"link"},on:{click:function(t){e.advancedOptions=!e.advancedOptions}}},[e._v(" 切换到"+e._s(e.advancedOptions?"基础选项":"高级选项")+" ")])],1),o("a-row",[o("a-col",{attrs:{span:24}},[o("div",{staticClass:"card-container"},[e.advancedOptions?o("a-tabs",{staticClass:"advanced",attrs:{type:"card"}},[o("a-tab-pane",{key:"permalink"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"link"}}),e._v("固定链接 ")],1),o("PermalinkTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"api"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"api"}}),e._v("API 设置 ")],1),o("ApiTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"advanced-other"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"align-left"}}),e._v("其他设置 ")],1),o("AdvancedOtherTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1)],1):o("a-tabs",{staticClass:"general",attrs:{type:"card"}},[o("a-tab-pane",{key:"general"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"tool"}}),e._v("常规设置 ")],1),o("GeneralTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"seo"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"global"}}),e._v("SEO 设置 ")],1),o("SeoTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"post"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"form"}}),e._v("文章设置 ")],1),o("PostTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"comment"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"message"}}),e._v("评论设置 ")],1),o("CommentTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"attachment"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"picture"}}),e._v("附件设置 ")],1),o("AttachmentTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"smtp"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"mail"}}),e._v("SMTP 服务 ")],1),o("SmtpTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1),o("a-tab-pane",{key:"other"},[o("span",{attrs:{slot:"tab"},slot:"tab"},[o("a-icon",{attrs:{type:"align-left"}}),e._v("其他设置 ")],1),o("OtherTab",{attrs:{errored:e.errored,options:e.options,saving:e.saving},on:{callback:function(t){e.errored=!1},onChange:e.onOptionsChange,onSave:e.onSaveOptions}})],1)],1)],1)])],1)],2)},a=[],n=o(47458),i=o(86475),r=(o(70315),o(27474)),l=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"generalOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"博客标题:",prop:"blog_title"}},[o("a-input",{model:{value:e.options.blog_title,callback:function(t){e.$set(e.options,"blog_title",t)},expression:"options.blog_title"}})],1),o("a-form-model-item",{attrs:{label:"博客地址:",prop:"blog_url"}},[o("a-input",{attrs:{placeholder:"如:https://halo.run"},model:{value:e.options.blog_url,callback:function(t){e.$set(e.options,"blog_url",t)},expression:"options.blog_url"}})],1),o("a-form-model-item",{attrs:{label:"Logo:",prop:"blog_logo"}},[o("AttachmentInput",{attrs:{title:"选择 Logo"},model:{value:e.options.blog_logo,callback:function(t){e.$set(e.options,"blog_logo",t)},expression:"options.blog_logo"}})],1),o("a-form-model-item",{attrs:{label:"Favicon:",prop:"blog_favicon"}},[o("AttachmentInput",{attrs:{title:"选择 Favicon"},model:{value:e.options.blog_favicon,callback:function(t){e.$set(e.options,"blog_favicon",t)},expression:"options.blog_favicon"}})],1),o("a-form-model-item",{attrs:{label:"页脚信息:",prop:"blog_footer_info"}},[o("a-input",{attrs:{autoSize:{minRows:5},placeholder:"支持 HTML 格式的文本",type:"textarea"},model:{value:e.options.blog_footer_info,callback:function(t){e.$set(e.options,"blog_footer_info",t)},expression:"options.blog_footer_info"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},p=[],c={name:"GeneralTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{blog_title:[{required:!0,message:"* 博客标题不能为空",trigger:["change"]},{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}],blog_url:[{required:!0,message:"* 博客地址不能为空",trigger:["change"]},{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}],blog_logo:[{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}],blog_favicon:[{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}],blog_footer_info:[{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}]}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.generalOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},m=c,u=o(42177),_=(0,u.Z)(m,l,p,!1,null,null,null),d=_.exports,b=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"seoOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"屏蔽搜索引擎:",prop:"seo_spider_disabled"}},[o("a-switch",{model:{value:e.options.seo_spider_disabled,callback:function(t){e.$set(e.options,"seo_spider_disabled",t)},expression:"options.seo_spider_disabled"}})],1),o("a-form-model-item",{attrs:{label:"关键词:",prop:"seo_keywords"}},[o("a-input",{attrs:{placeholder:"多个关键词以英文状态下的逗号隔开"},model:{value:e.options.seo_keywords,callback:function(t){e.$set(e.options,"seo_keywords",t)},expression:"options.seo_keywords"}})],1),o("a-form-model-item",{attrs:{label:"博客描述:",prop:"seo_description"}},[o("a-input",{attrs:{autoSize:{minRows:5},type:"textarea"},model:{value:e.options.seo_description,callback:function(t){e.$set(e.options,"seo_description",t)},expression:"options.seo_description"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},f=[],h={name:"SeoTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{seo_keywords:[{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}],seo_description:[{max:1023,message:"* 字符数不能超过 1023",trigger:["change"]}]}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.seoOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},v=h,g=(0,u.Z)(v,b,f,!1,null,null,null),k=g.exports,y=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"postOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"首页文章排序:"}},[o("a-select",{model:{value:e.options.post_index_sort,callback:function(t){e.$set(e.options,"post_index_sort",t)},expression:"options.post_index_sort"}},[o("a-select-option",{attrs:{value:"createTime"}},[e._v("创建时间")]),o("a-select-option",{attrs:{value:"editTime"}},[e._v("最后编辑时间")]),o("a-select-option",{attrs:{value:"visits"}},[e._v("点击量")])],1)],1),o("a-form-model-item",{attrs:{label:"首页每页文章条数:"}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.post_index_page_size,callback:function(t){e.$set(e.options,"post_index_page_size",t)},expression:"options.post_index_page_size"}})],1),o("a-form-model-item",{attrs:{help:"* 包括标签所属文章页面、分类所属文章页面",label:"归档页面每页文章条数:"}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.post_archives_page_size,callback:function(t){e.$set(e.options,"post_archives_page_size",t)},expression:"options.post_archives_page_size"}})],1),o("a-form-model-item",{attrs:{label:"RSS 内容类型:"}},[o("a-select",{model:{value:e.options.rss_content_type,callback:function(t){e.$set(e.options,"rss_content_type",t)},expression:"options.rss_content_type"}},[o("a-select-option",{attrs:{value:"full"}},[e._v("全文")]),o("a-select-option",{attrs:{value:"summary"}},[e._v("摘要")])],1)],1),o("a-form-model-item",{attrs:{label:"RSS 内容条数:"}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.rss_page_size,callback:function(t){e.$set(e.options,"rss_page_size",t)},expression:"options.rss_page_size"}})],1),o("a-form-model-item",{attrs:{label:"文章摘要字数:"}},[o("a-input-number",{staticStyle:{width:"100%"},model:{value:e.options.post_summary_length,callback:function(t){e.$set(e.options,"post_summary_length",t)},expression:"options.post_summary_length"}})],1),o("a-form-model-item",{attrs:{label:"自动清理回收站文章:"}},[o("a-switch",{model:{value:e.options.recycled_post_cleaning_enabled,callback:function(t){e.$set(e.options,"recycled_post_cleaning_enabled",t)},expression:"options.recycled_post_cleaning_enabled"}})],1),o("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:e.options.recycled_post_cleaning_enabled,expression:"options.recycled_post_cleaning_enabled"}],attrs:{label:"回收站文章保留时长:"}},[o("a-input-group",{attrs:{compact:""}},[o("a-input-number",{staticStyle:{width:"70%"},attrs:{min:1,precision:0},model:{value:e.options.recycled_post_retention_time,callback:function(t){e.$set(e.options,"recycled_post_retention_time",t)},expression:"options.recycled_post_retention_time"}}),o("a-select",{staticStyle:{width:"30%"},model:{value:e.options.recycled_post_retention_timeunit,callback:function(t){e.$set(e.options,"recycled_post_retention_timeunit",t)},expression:"options.recycled_post_retention_timeunit"}},[o("a-select-option",{attrs:{value:"DAY"}},[e._v("天")]),o("a-select-option",{attrs:{value:"HOUR"}},[e._v("小时")])],1)],1)],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},x=[],w={name:"PostTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.postOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},$=w,S=(0,u.Z)($,y,x,!1,null,null,null),O=S.exports,T=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"commentOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"评论者头像:"}},[o("a-select",{model:{value:e.options.comment_gravatar_default,callback:function(t){e.$set(e.options,"comment_gravatar_default",t)},expression:"options.comment_gravatar_default"}},e._l(e.avatarTypes,(function(t,s){return o("a-select-option",{key:s,attrs:{value:t.value}},[o("a-avatar",{staticClass:"comment_select_gravatar",attrs:{size:18,src:e.options.gravatar_source+"?s=256&d="+t.value}}),e._v(" "+e._s(t.text)+" ")],1)})),1)],1),o("a-form-model-item",{attrs:{label:"评论审核后才显示:"}},[o("a-switch",{model:{value:e.options.comment_new_need_check,callback:function(t){e.$set(e.options,"comment_new_need_check",t)},expression:"options.comment_new_need_check"}})],1),o("a-form-model-item",{attrs:{label:"新评论通知:"}},[o("a-switch",{model:{value:e.options.comment_new_notice,callback:function(t){e.$set(e.options,"comment_new_notice",t)},expression:"options.comment_new_notice"}})],1),o("a-form-model-item",{attrs:{label:"评论回复通知对方:"}},[o("a-switch",{model:{value:e.options.comment_reply_notice,callback:function(t){e.$set(e.options,"comment_reply_notice",t)},expression:"options.comment_reply_notice"}})],1),o("a-form-model-item",{attrs:{help:"* 关闭之后将无法进行评论",label:"API 评论开关:"}},[o("a-switch",{model:{value:e.options.comment_api_enabled,callback:function(t){e.$set(e.options,"comment_api_enabled",t)},expression:"options.comment_api_enabled"}})],1),o("a-form-model-item",{attrs:{help:"* 该设置需要主题支持",label:"评论模块 JS:"}},[o("a-input",{attrs:{autoSize:{minRows:2},type:"textarea"},model:{value:e.options.comment_internal_plugin_js,callback:function(t){e.$set(e.options,"comment_internal_plugin_js",t)},expression:"options.comment_internal_plugin_js"}})],1),o("a-form-model-item",{attrs:{help:"* 例如://gravatar.com/avatar/",label:"Gravatar 镜像源:"}},[o("a-input",{model:{value:e.options.gravatar_source,callback:function(t){e.$set(e.options,"gravatar_source",t)},expression:"options.gravatar_source"}})],1),o("a-form-model-item",{attrs:{label:"每页显示条数: "}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.comment_page_size,callback:function(t){e.$set(e.options,"comment_page_size",t)},expression:"options.comment_page_size"}})],1),o("a-form-model-item",{attrs:{label:"占位提示:"}},[o("a-input",{model:{value:e.options.comment_content_placeholder,callback:function(t){e.$set(e.options,"comment_content_placeholder",t)},expression:"options.comment_content_placeholder"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},C=[],A=[{text:"默认",value:""},{text:"匿名者",value:"mm"},{text:"抽象几何图形",value:"identicon"},{text:"小怪物",value:"monsterid"},{text:"Wavatar",value:"wavatar"},{text:"复古",value:"retro"},{text:"机器人",value:"robohash"},{text:"不显示头像",value:"blank"}],B={name:"CommentTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{},avatarTypes:A}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this;if(!this.options.comment_new_notice&&!this.options.comment_reply_notice||this.options.email_enabled){var t=this;t.$refs.commentOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}else this.$notification["error"]({message:"提示",description:"新评论通知或回复通知需要打开和配置 SMTP 服务!"})}}},P=B,q=(0,u.Z)(P,T,C,!1,null,"5cb11a90",null),E=q.exports,R=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"attachmentOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"上传图片时预览:"}},[o("a-switch",{model:{value:e.options.attachment_upload_image_preview_enable,callback:function(t){e.$set(e.options,"attachment_upload_image_preview_enable",t)},expression:"options.attachment_upload_image_preview_enable"}})],1),o("a-form-model-item",{attrs:{label:"最大上传文件数:"}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.attachment_upload_max_files,callback:function(t){e.$set(e.options,"attachment_upload_max_files",t)},expression:"options.attachment_upload_max_files"}})],1),o("a-form-model-item",{attrs:{label:"同时上传文件数:"}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.options.attachment_upload_max_parallel_uploads,callback:function(t){e.$set(e.options,"attachment_upload_max_parallel_uploads",t)},expression:"options.attachment_upload_max_parallel_uploads"}})],1),o("a-form-model-item",{attrs:{label:"存储位置:"}},[o("a-select",{model:{value:e.options.attachment_type,callback:function(t){e.$set(e.options,"attachment_type",t)},expression:"options.attachment_type"}},e._l(Object.keys(e.attachmentTypes),(function(t){return o("a-select-option",{key:t,attrs:{value:t}},[e._v(" "+e._s(e.attachmentTypes[t].text)+" ")])})),1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"SMMS"===e.options.attachment_type,expression:"options.attachment_type === 'SMMS'"}],attrs:{id:"smmsForm"}},[o("a-form-model-item",{attrs:{label:"Secret Token:"}},[o("a-input-password",{attrs:{autocomplete:"new-password",placeholder:"需要到 sm.ms 官网注册后获取"},model:{value:e.options.smms_api_secret_token,callback:function(t){e.$set(e.options,"smms_api_secret_token",t)},expression:"options.smms_api_secret_token"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"UPOSS"===e.options.attachment_type,expression:"options.attachment_type === 'UPOSS'"}],attrs:{id:"upOssForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.oss_upyun_domain_protocol,callback:function(t){e.$set(e.options,"oss_upyun_domain_protocol",t)},expression:"options.oss_upyun_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"无需再加上 http:// 或者 https://"},model:{value:e.options.oss_upyun_domain,callback:function(t){e.$set(e.options,"oss_upyun_domain",t)},expression:"options.oss_upyun_domain"}})],1),o("a-form-model-item",{attrs:{label:"空间名称:"}},[o("a-input",{model:{value:e.options.oss_upyun_bucket,callback:function(t){e.$set(e.options,"oss_upyun_bucket",t)},expression:"options.oss_upyun_bucket"}})],1),o("a-form-model-item",{attrs:{label:"操作员名称:"}},[o("a-input",{model:{value:e.options.oss_upyun_operator,callback:function(t){e.$set(e.options,"oss_upyun_operator",t)},expression:"options.oss_upyun_operator"}})],1),o("a-form-model-item",{attrs:{label:"操作员密码:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.oss_upyun_password,callback:function(t){e.$set(e.options,"oss_upyun_password",t)},expression:"options.oss_upyun_password"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{model:{value:e.options.oss_upyun_source,callback:function(t){e.$set(e.options,"oss_upyun_source",t)},expression:"options.oss_upyun_source"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"间隔标识符+图片处理版本名称"},model:{value:e.options.oss_upyun_style_rule,callback:function(t){e.$set(e.options,"oss_upyun_style_rule",t)},expression:"options.oss_upyun_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"间隔标识符+图片处理版本名称,一般为后台展示所用"},model:{value:e.options.oss_upyun_thumbnail_style_rule,callback:function(t){e.$set(e.options,"oss_upyun_thumbnail_style_rule",t)},expression:"options.oss_upyun_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"QINIUOSS"===e.options.attachment_type,expression:"options.attachment_type === 'QINIUOSS'"}],attrs:{id:"qiniuOssForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.oss_qiniu_domain_protocol,callback:function(t){e.$set(e.options,"oss_qiniu_domain_protocol",t)},expression:"options.oss_qiniu_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"无需再加上 http:// 或者 https://"},model:{value:e.options.oss_qiniu_domain,callback:function(t){e.$set(e.options,"oss_qiniu_domain",t)},expression:"options.oss_qiniu_domain"}})],1),o("a-form-model-item",{attrs:{label:"区域:"}},[o("a-auto-complete",{attrs:{dataSource:e.qiniuOssZones,allowClear:""},model:{value:e.options.oss_qiniu_zone,callback:function(t){e.$set(e.options,"oss_qiniu_zone",t)},expression:"options.oss_qiniu_zone"}})],1),o("a-form-model-item",{attrs:{label:"Access Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.oss_qiniu_access_key,callback:function(t){e.$set(e.options,"oss_qiniu_access_key",t)},expression:"options.oss_qiniu_access_key"}})],1),o("a-form-model-item",{attrs:{label:"Secret Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.oss_qiniu_secret_key,callback:function(t){e.$set(e.options,"oss_qiniu_secret_key",t)},expression:"options.oss_qiniu_secret_key"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{attrs:{placeholder:"不填写则上传到根目录"},model:{value:e.options.oss_qiniu_source,callback:function(t){e.$set(e.options,"oss_qiniu_source",t)},expression:"options.oss_qiniu_source"}})],1),o("a-form-model-item",{attrs:{label:"Bucket:"}},[o("a-input",{attrs:{placeholder:"存储空间名称"},model:{value:e.options.oss_qiniu_bucket,callback:function(t){e.$set(e.options,"oss_qiniu_bucket",t)},expression:"options.oss_qiniu_bucket"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"样式分隔符+图片处理样式名称"},model:{value:e.options.oss_qiniu_style_rule,callback:function(t){e.$set(e.options,"oss_qiniu_style_rule",t)},expression:"options.oss_qiniu_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"样式分隔符+图片处理样式名称,一般为后台展示所用"},model:{value:e.options.oss_qiniu_thumbnail_style_rule,callback:function(t){e.$set(e.options,"oss_qiniu_thumbnail_style_rule",t)},expression:"options.oss_qiniu_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"ALIOSS"===e.options.attachment_type,expression:"options.attachment_type === 'ALIOSS'"}],attrs:{id:"aliOssForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.oss_ali_domain_protocol,callback:function(t){e.$set(e.options,"oss_ali_domain_protocol",t)},expression:"options.oss_ali_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"如不填写,路径根域名将为 Bucket + EndPoint"},model:{value:e.options.oss_ali_domain,callback:function(t){e.$set(e.options,"oss_ali_domain",t)},expression:"options.oss_ali_domain"}})],1),o("a-form-model-item",{attrs:{label:"Bucket:"}},[o("a-input",{attrs:{placeholder:"存储空间名称"},model:{value:e.options.oss_ali_bucket_name,callback:function(t){e.$set(e.options,"oss_ali_bucket_name",t)},expression:"options.oss_ali_bucket_name"}})],1),o("a-form-model-item",{attrs:{label:"EndPoint(地域节点):"}},[o("a-input",{model:{value:e.options.oss_ali_endpoint,callback:function(t){e.$set(e.options,"oss_ali_endpoint",t)},expression:"options.oss_ali_endpoint"}})],1),o("a-form-model-item",{attrs:{label:"Access Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.oss_ali_access_key,callback:function(t){e.$set(e.options,"oss_ali_access_key",t)},expression:"options.oss_ali_access_key"}})],1),o("a-form-model-item",{attrs:{label:"Access Secret:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.oss_ali_access_secret,callback:function(t){e.$set(e.options,"oss_ali_access_secret",t)},expression:"options.oss_ali_access_secret"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{attrs:{placeholder:"不填写则上传到根目录"},model:{value:e.options.oss_ali_source,callback:function(t){e.$set(e.options,"oss_ali_source",t)},expression:"options.oss_ali_source"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"请到阿里云控制台的图片处理获取"},model:{value:e.options.oss_ali_style_rule,callback:function(t){e.$set(e.options,"oss_ali_style_rule",t)},expression:"options.oss_ali_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"请到阿里云控制台的图片处理获取,一般为后台展示所用"},model:{value:e.options.oss_ali_thumbnail_style_rule,callback:function(t){e.$set(e.options,"oss_ali_thumbnail_style_rule",t)},expression:"options.oss_ali_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"BAIDUBOS"===e.options.attachment_type,expression:"options.attachment_type === 'BAIDUBOS'"}],attrs:{id:"baiduBosForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.bos_baidu_domain_protocol,callback:function(t){e.$set(e.options,"bos_baidu_domain_protocol",t)},expression:"options.bos_baidu_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"如不填写,路径根域名将为 Bucket + EndPoint"},model:{value:e.options.bos_baidu_domain,callback:function(t){e.$set(e.options,"bos_baidu_domain",t)},expression:"options.bos_baidu_domain"}})],1),o("a-form-model-item",{attrs:{label:"Bucket:"}},[o("a-input",{attrs:{placeholder:"存储空间名称"},model:{value:e.options.bos_baidu_bucket_name,callback:function(t){e.$set(e.options,"bos_baidu_bucket_name",t)},expression:"options.bos_baidu_bucket_name"}})],1),o("a-form-model-item",{attrs:{label:"EndPoint(地域节点):"}},[o("a-input",{model:{value:e.options.bos_baidu_endpoint,callback:function(t){e.$set(e.options,"bos_baidu_endpoint",t)},expression:"options.bos_baidu_endpoint"}})],1),o("a-form-model-item",{attrs:{label:"Access Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.bos_baidu_access_key,callback:function(t){e.$set(e.options,"bos_baidu_access_key",t)},expression:"options.bos_baidu_access_key"}})],1),o("a-form-model-item",{attrs:{label:"Secret Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.bos_baidu_secret_key,callback:function(t){e.$set(e.options,"bos_baidu_secret_key",t)},expression:"options.bos_baidu_secret_key"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"请到百度云控制台的图片处理获取"},model:{value:e.options.bos_baidu_style_rule,callback:function(t){e.$set(e.options,"bos_baidu_style_rule",t)},expression:"options.bos_baidu_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"请到百度云控制台的图片处理获取,一般为后台展示所用"},model:{value:e.options.bos_baidu_thumbnail_style_rule,callback:function(t){e.$set(e.options,"bos_baidu_thumbnail_style_rule",t)},expression:"options.bos_baidu_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"TENCENTCOS"===e.options.attachment_type,expression:"options.attachment_type === 'TENCENTCOS'"}],attrs:{id:"tencentCosForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.cos_tencent_domain_protocol,callback:function(t){e.$set(e.options,"cos_tencent_domain_protocol",t)},expression:"options.cos_tencent_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"如不填写,路径根域名将为 Bucket + 区域地址"},model:{value:e.options.cos_tencent_domain,callback:function(t){e.$set(e.options,"cos_tencent_domain",t)},expression:"options.cos_tencent_domain"}})],1),o("a-form-model-item",{attrs:{label:"Bucket:"}},[o("a-input",{attrs:{placeholder:"存储桶名称"},model:{value:e.options.cos_tencent_bucket_name,callback:function(t){e.$set(e.options,"cos_tencent_bucket_name",t)},expression:"options.cos_tencent_bucket_name"}})],1),o("a-form-model-item",{attrs:{label:"区域:"}},[o("a-auto-complete",{attrs:{dataSource:e.tencentCosRegions,allowClear:""},model:{value:e.options.cos_tencent_region,callback:function(t){e.$set(e.options,"cos_tencent_region",t)},expression:"options.cos_tencent_region"}})],1),o("a-form-model-item",{attrs:{label:"Secret Id:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.cos_tencent_secret_id,callback:function(t){e.$set(e.options,"cos_tencent_secret_id",t)},expression:"options.cos_tencent_secret_id"}})],1),o("a-form-model-item",{attrs:{label:"Secret Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.cos_tencent_secret_key,callback:function(t){e.$set(e.options,"cos_tencent_secret_key",t)},expression:"options.cos_tencent_secret_key"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{attrs:{placeholder:"不填写则上传到根目录"},model:{value:e.options.cos_tencent_source,callback:function(t){e.$set(e.options,"cos_tencent_source",t)},expression:"options.cos_tencent_source"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"请到腾讯云控制台的图片处理获取"},model:{value:e.options.cos_tencent_style_rule,callback:function(t){e.$set(e.options,"cos_tencent_style_rule",t)},expression:"options.cos_tencent_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"请到腾讯云控制台的图片处理获取,一般为后台展示所用"},model:{value:e.options.cos_tencent_thumbnail_style_rule,callback:function(t){e.$set(e.options,"cos_tencent_thumbnail_style_rule",t)},expression:"options.cos_tencent_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"HUAWEIOBS"===e.options.attachment_type,expression:"options.attachment_type === 'HUAWEIOBS'"}],attrs:{id:"huaweiObsForm"}},[o("a-form-model-item",{attrs:{label:"绑定域名协议:"}},[o("a-select",{model:{value:e.options.obs_huawei_domain_protocol,callback:function(t){e.$set(e.options,"obs_huawei_domain_protocol",t)},expression:"options.obs_huawei_domain_protocol"}},[o("a-select-option",{attrs:{value:"https://"}},[e._v("HTTPS")]),o("a-select-option",{attrs:{value:"http://"}},[e._v("HTTP")])],1)],1),o("a-form-model-item",{attrs:{label:"绑定域名:"}},[o("a-input",{attrs:{placeholder:"如不填写,路径根域名将为 Bucket + EndPoint"},model:{value:e.options.obs_huawei_domain,callback:function(t){e.$set(e.options,"obs_huawei_domain",t)},expression:"options.obs_huawei_domain"}})],1),o("a-form-model-item",{attrs:{label:"Bucket(桶名称):"}},[o("a-input",{attrs:{placeholder:"桶名称"},model:{value:e.options.obs_huawei_bucket_name,callback:function(t){e.$set(e.options,"obs_huawei_bucket_name",t)},expression:"options.obs_huawei_bucket_name"}})],1),o("a-form-model-item",{attrs:{label:"EndPoint(终端节点):"}},[o("a-input",{attrs:{placeholder:"Endpoint"},model:{value:e.options.obs_huawei_endpoint,callback:function(t){e.$set(e.options,"obs_huawei_endpoint",t)},expression:"options.obs_huawei_endpoint"}})],1),o("a-form-model-item",{attrs:{label:"Access Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.obs_huawei_access_key,callback:function(t){e.$set(e.options,"obs_huawei_access_key",t)},expression:"options.obs_huawei_access_key"}})],1),o("a-form-model-item",{attrs:{label:"Access Secret:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.obs_huawei_access_secret,callback:function(t){e.$set(e.options,"obs_huawei_access_secret",t)},expression:"options.obs_huawei_access_secret"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{attrs:{placeholder:"不填写则上传到根目录"},model:{value:e.options.obs_huawei_source,callback:function(t){e.$set(e.options,"obs_huawei_source",t)},expression:"options.obs_huawei_source"}})],1),o("a-form-model-item",{attrs:{label:"图片处理策略:"}},[o("a-input",{attrs:{placeholder:"请到华为云控制台的图片处理创建"},model:{value:e.options.obs_huawei_style_rule,callback:function(t){e.$set(e.options,"obs_huawei_style_rule",t)},expression:"options.obs_huawei_style_rule"}})],1),o("a-form-model-item",{attrs:{label:"缩略图处理策略:"}},[o("a-input",{attrs:{placeholder:"请到华为云控制台的图片处理获取,一般为后台展示所用"},model:{value:e.options.obs_huawei_thumbnail_style_rule,callback:function(t){e.$set(e.options,"obs_huawei_thumbnail_style_rule",t)},expression:"options.obs_huawei_thumbnail_style_rule"}})],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:"MINIO"===e.options.attachment_type,expression:"options.attachment_type === 'MINIO'"}],attrs:{id:"minioForm"}},[o("a-form-model-item",{attrs:{label:"EndPoint(终端节点):"}},[o("a-input",{attrs:{placeholder:"Endpoint"},model:{value:e.options.minio_endpoint,callback:function(t){e.$set(e.options,"minio_endpoint",t)},expression:"options.minio_endpoint"}})],1),o("a-form-model-item",{attrs:{label:"Bucket(桶名称):"}},[o("a-input",{attrs:{placeholder:"桶名称"},model:{value:e.options.minio_bucket_name,callback:function(t){e.$set(e.options,"minio_bucket_name",t)},expression:"options.minio_bucket_name"}})],1),o("a-form-model-item",{attrs:{label:"Region(区域):"}},[o("a-input",{attrs:{placeholder:"区域"},model:{value:e.options.minio_region,callback:function(t){e.$set(e.options,"minio_region",t)},expression:"options.minio_region"}})],1),o("a-form-model-item",{attrs:{label:"Access Key:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.minio_access_key,callback:function(t){e.$set(e.options,"minio_access_key",t)},expression:"options.minio_access_key"}})],1),o("a-form-model-item",{attrs:{label:"Access Secret:"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.minio_access_secret,callback:function(t){e.$set(e.options,"minio_access_secret",t)},expression:"options.minio_access_secret"}})],1),o("a-form-model-item",{attrs:{label:"文件目录:"}},[o("a-input",{attrs:{placeholder:"不填写则上传到根目录"},model:{value:e.options.minio_source,callback:function(t){e.$set(e.options,"minio_source",t)},expression:"options.minio_source"}})],1)],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},I=[],F=o(94671),D=[{text:"北京一区",value:"ap-beijing-1"},{text:"北京",value:"ap-beijing"},{text:"上海(华东)",value:"ap-shanghai"},{text:"广州(华南)",value:"ap-guangzhou"},{text:"成都(西南)",value:"ap-chengdu"},{text:"重庆",value:"ap-chongqing"}],N=[{text:"自动选择",value:"auto"},{text:"华东",value:"z0"},{text:"华北",value:"z1"},{text:"华南",value:"z2"},{text:"北美",value:"na0"},{text:"东南亚",value:"as0"}],j={name:"AttachmentTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},tencentCosRegions:D,qiniuOssZones:N,attachmentTypes:F.k,rules:{}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this;switch(this.options.attachment_type){case"SMMS":if(!this.options.smms_api_secret_token)return void this.$notification["error"]({message:"提示",description:"Secret Token 不能为空!"});break;case"UPOSS":if(!this.options.oss_upyun_domain)return void this.$notification["error"]({message:"提示",description:"绑定域名不能为空!"});if(!this.options.oss_upyun_bucket)return void this.$notification["error"]({message:"提示",description:"空间名称不能为空!"});if(!this.options.oss_upyun_operator)return void this.$notification["error"]({message:"提示",description:"操作员名称不能为空!"});if(!this.options.oss_upyun_password)return void this.$notification["error"]({message:"提示",description:"操作员密码不能为空!"});if(!this.options.oss_upyun_source)return void this.$notification["error"]({message:"提示",description:"文件目录不能为空!"});break;case"QINIUOSS":if(!this.options.oss_qiniu_domain)return void this.$notification["error"]({message:"提示",description:"绑定域名不能为空!"});if(!this.options.oss_qiniu_access_key)return void this.$notification["error"]({message:"提示",description:"Access Key 不能为空!"});if(!this.options.oss_qiniu_secret_key)return void this.$notification["error"]({message:"提示",description:"Secret Key 不能为空!"});if(!this.options.oss_qiniu_bucket)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});break;case"ALIOSS":if(!this.options.oss_ali_bucket_name)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});if(!this.options.oss_ali_endpoint)return void this.$notification["error"]({message:"提示",description:"EndPoint(地域节点) 不能为空!"});if(!this.options.oss_ali_access_key)return void this.$notification["error"]({message:"提示",description:"Access Key 不能为空!"});if(!this.options.oss_ali_access_secret)return void this.$notification["error"]({message:"提示",description:"Access Secret 不能为空!"});break;case"BAIDUBOS":if(!this.options.bos_baidu_bucket_name)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});if(!this.options.bos_baidu_endpoint)return void this.$notification["error"]({message:"提示",description:"EndPoint(地域节点) 不能为空!"});if(!this.options.bos_baidu_access_key)return void this.$notification["error"]({message:"提示",description:"Access Key 不能为空!"});if(!this.options.bos_baidu_secret_key)return void this.$notification["error"]({message:"提示",description:"Secret Key 不能为空!"});break;case"TENCENTCOS":if(!this.options.cos_tencent_bucket_name)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});if(!this.options.cos_tencent_region)return void this.$notification["error"]({message:"提示",description:"区域不能为空!"});if(!this.options.cos_tencent_secret_id)return void this.$notification["error"]({message:"提示",description:"Secret Id 不能为空!"});if(!this.options.cos_tencent_secret_key)return void this.$notification["error"]({message:"提示",description:"Secret Key 不能为空!"});break;case"HUAWEIOBS":if(!this.options.obs_huawei_bucket_name)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});if(!this.options.obs_huawei_endpoint)return void this.$notification["error"]({message:"提示",description:"EndPoint(终端节点) 不能为空!"});if(!this.options.obs_huawei_access_key)return void this.$notification["error"]({message:"提示",description:"Access Key 不能为空!"});if(!this.options.obs_huawei_access_secret)return void this.$notification["error"]({message:"提示",description:"Access Secret 不能为空!"});break;case"MINIO":if(!this.options.minio_endpoint)return void this.$notification["error"]({message:"提示",description:"EndPoint(终端节点)不能为空!"});if(!this.options.minio_bucket_name)return void this.$notification["error"]({message:"提示",description:"Bucket 不能为空!"});if(!this.options.minio_access_key)return void this.$notification["error"]({message:"提示",description:"Access Key 不能为空!"});if(!this.options.minio_access_secret)return void this.$notification["error"]({message:"提示",description:"Access Secret 不能为空!"});break}var t=this;t.$refs.attachmentOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},z=j,Z=(0,u.Z)(z,R,I,!1,null,null,null),U=Z.exports,M=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"custom-tab-wrapper"},[o("a-tabs",{attrs:{animated:{inkBar:!0,tabPane:!1}}},[o("a-tab-pane",{key:"smtpoptions",attrs:{tab:"发信设置"}},[o("a-form-model",{ref:"smtpOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"是否启用:"}},[o("a-switch",{model:{value:e.options.email_enabled,callback:function(t){e.$set(e.options,"email_enabled",t)},expression:"options.email_enabled"}})],1),o("a-form-model-item",{attrs:{label:"SMTP 地址:",prop:"email_host"}},[o("a-input",{model:{value:e.options.email_host,callback:function(t){e.$set(e.options,"email_host",t)},expression:"options.email_host"}})],1),o("a-form-model-item",{attrs:{label:"发送协议:",prop:"email_protocol"}},[o("a-input",{model:{value:e.options.email_protocol,callback:function(t){e.$set(e.options,"email_protocol",t)},expression:"options.email_protocol"}})],1),o("a-form-model-item",{attrs:{label:"SSL 端口:",prop:"email_ssl_port"}},[o("a-input",{model:{value:e.options.email_ssl_port,callback:function(t){e.$set(e.options,"email_ssl_port",t)},expression:"options.email_ssl_port"}})],1),o("a-form-model-item",{attrs:{label:"邮箱账号:",prop:"email_username"}},[o("a-input",{model:{value:e.options.email_username,callback:function(t){e.$set(e.options,"email_username",t)},expression:"options.email_username"}})],1),o("a-form-model-item",{attrs:{label:"邮箱密码:",prop:"email_password"}},[o("a-input-password",{attrs:{autocomplete:"new-password",placeholder:"部分邮箱可能是授权码"},model:{value:e.options.email_password,callback:function(t){e.$set(e.options,"email_password",t)},expression:"options.email_password"}})],1),o("a-form-model-item",{attrs:{label:"发件人:",prop:"email_from_name"}},[o("a-input",{model:{value:e.options.email_from_name,callback:function(t){e.$set(e.options,"email_from_name",t)},expression:"options.email_from_name"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1),o("a-tab-pane",{key:"smtptest",attrs:{tab:"发送测试"}},[o("a-form-model",{ref:"smtpTestForm",attrs:{model:e.mailParam,rules:e.testRules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"收件人地址:",prop:"to"}},[o("a-input",{model:{value:e.mailParam.to,callback:function(t){e.$set(e.mailParam,"to",t)},expression:"mailParam.to"}})],1),o("a-form-model-item",{attrs:{label:"主题:",prop:"subject"}},[o("a-input",{model:{value:e.mailParam.subject,callback:function(t){e.$set(e.mailParam,"subject",t)},expression:"mailParam.subject"}})],1),o("a-form-model-item",{attrs:{label:"内容:",prop:"content"}},[o("a-input",{attrs:{autoSize:{minRows:5},type:"textarea"},model:{value:e.mailParam.content,callback:function(t){e.$set(e.mailParam,"content",t)},expression:"mailParam.content"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.sendErrored,loading:e.sending,erroredText:"发送失败",loadedText:"发送成功",text:"发送",type:"primary"},on:{callback:function(t){e.sendErrored=!1},click:e.handleTestMailClick}})],1)],1)],1)],1)],1)},H=[],L=(o(31875),o(17132)),K={name:"SmtpTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},mailParam:{},sending:!1,sendErrored:!1,testRules:{to:[{required:!0,message:"* 收件人地址不能为空",trigger:["change"]}],subject:[{required:!0,message:"* 主题不能为空",trigger:["change"]}],content:[{required:!0,message:"* 内容不能为空",trigger:["change"]}]}}},watch:{options:function(e){this.$emit("onChange",e)}},computed:{rules:function(){var e=this.options.email_enabled;return{email_host:[{required:e,message:"* SMTP 地址不能为空",trigger:["change"]}],email_protocol:[{required:e,message:"* 发送协议不能为空",trigger:["change"]}],email_ssl_port:[{required:e,message:"* SSL 端口不能为空",trigger:["change"]}],email_username:[{required:e,message:"* 邮箱账号不能为空",trigger:["change"]},{type:"email",message:"* 邮箱账号格式不正确",trigger:["change"]}],email_password:[{required:e,message:"* 邮箱密码不能为空",trigger:["change"]}],email_from_name:[{required:e,message:"* 发件人不能为空",trigger:["change"]}]}}},methods:{handleSaveOptions:function(){var e=this;e.$refs.smtpOptionsForm.validate((function(t){t&&e.$emit("onSave")}))},handleTestMailClick:function(){var e=this,t=this;t.$refs.smtpTestForm.validate((function(t){t&&(e.sending=!0,L.Z.mail.testSmtpService(e.mailParam).then((function(t){e.$message.info(t.data)})).catch((function(){e.sendErrored=!0})).finally((function(){setTimeout((function(){e.sending=!1}),400)})))}))}}},Y=K,G=(0,u.Z)(Y,M,H,!1,null,null,null),W=G.exports,Q=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"otherOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"自定义全局 head:"}},[o("a-input",{attrs:{autoSize:{minRows:5},placeholder:"放置于每个页面的 标签中",type:"textarea"},model:{value:e.options.blog_custom_head,callback:function(t){e.$set(e.options,"blog_custom_head",t)},expression:"options.blog_custom_head"}})],1),o("a-form-model-item",{attrs:{label:"自定义内容页 head:"}},[o("a-input",{attrs:{autoSize:{minRows:5},placeholder:"仅放置于内容页面的 标签中",type:"textarea"},model:{value:e.options.blog_custom_content_head,callback:function(t){e.$set(e.options,"blog_custom_content_head",t)},expression:"options.blog_custom_content_head"}})],1),o("a-form-model-item",{attrs:{label:"统计代码:"}},[o("a-input",{attrs:{autoSize:{minRows:5},placeholder:"第三方网站统计的代码,如:Google Analytics、百度统计、CNZZ 等",type:"textarea"},model:{value:e.options.blog_statistics_code,callback:function(t){e.$set(e.options,"blog_statistics_code",t)},expression:"options.blog_statistics_code"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},V=[],J={name:"OtherTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.otherOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},X=J,ee=(0,u.Z)(X,Q,V,!1,null,null,null),te=ee.exports,oe=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"permalinkOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"文章固定链接类型:"}},[o("template",{slot:"help"},["DEFAULT"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.archives_prefix)+"/{slug}"+e._s(e.options.path_suffix))]):"YEAR"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+e._s(e._f("moment_post_year")(new Date))+"{slug}"+e._s(e.options.path_suffix))]):"DATE"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+e._s(e._f("moment_post_date")(new Date))+"{slug}"+e._s(e.options.path_suffix))]):"DAY"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+e._s(e._f("moment_post_day")(new Date))+"{slug}"+e._s(e.options.path_suffix))]):"ID"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+"/?p={id}")]):"ID_SLUG"===e.options.post_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.archives_prefix)+"/{id}"+e._s(e.options.path_suffix))]):e._e()]),o("a-select",{model:{value:e.options.post_permalink_type,callback:function(t){e.$set(e.options,"post_permalink_type",t)},expression:"options.post_permalink_type"}},e._l(Object.keys(e.postPermalinkType),(function(t){return o("a-select-option",{key:t,attrs:{value:t}},[e._v(e._s(e.postPermalinkType[t].text)+" ")])})),1)],2),o("a-form-model-item",{attrs:{label:"归档前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.archives_prefix)+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.archives_prefix,callback:function(t){e.$set(e.options,"archives_prefix",t)},expression:"options.archives_prefix"}})],2),o("a-form-model-item",{attrs:{label:"分类前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.categories_prefix)+"/{slug}"+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.categories_prefix,callback:function(t){e.$set(e.options,"categories_prefix",t)},expression:"options.categories_prefix"}})],2),o("a-form-model-item",{attrs:{label:"标签前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.tags_prefix)+"/{slug}"+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.tags_prefix,callback:function(t){e.$set(e.options,"tags_prefix",t)},expression:"options.tags_prefix"}})],2),o("a-form-model-item",{attrs:{label:"自定义页面固定链接类型:"}},[o("template",{slot:"help"},["SECONDARY"===e.options.sheet_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.sheet_prefix)+"/{slug}"+e._s(e.options.path_suffix))]):"ROOT"===e.options.sheet_permalink_type?o("span",[e._v(e._s(e.options.blog_url)+"/{slug}"+e._s(e.options.path_suffix))]):e._e()]),o("a-select",{model:{value:e.options.sheet_permalink_type,callback:function(t){e.$set(e.options,"sheet_permalink_type",t)},expression:"options.sheet_permalink_type"}},e._l(Object.keys(e.sheetPermalinkType),(function(t){return o("a-select-option",{key:t,attrs:{value:t}},[e._v(e._s(e.sheetPermalinkType[t].text)+" ")])})),1)],2),o("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:"SECONDARY"===e.options.sheet_permalink_type,expression:"options.sheet_permalink_type === 'SECONDARY'"}],attrs:{label:"自定义页面前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.sheet_prefix)+"/{slug}"+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.sheet_prefix,callback:function(t){e.$set(e.options,"sheet_prefix",t)},expression:"options.sheet_prefix"}})],2),o("a-form-model-item",{attrs:{label:"友情链接页面前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.links_prefix)+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.links_prefix,callback:function(t){e.$set(e.options,"links_prefix",t)},expression:"options.links_prefix"}})],2),o("a-form-model-item",{attrs:{label:"图库页面前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.photos_prefix)+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.photos_prefix,callback:function(t){e.$set(e.options,"photos_prefix",t)},expression:"options.photos_prefix"}})],2),o("a-form-model-item",{attrs:{label:"日志页面前缀:"}},[o("template",{slot:"help"},[o("span",[e._v(e._s(e.options.blog_url)+"/"+e._s(e.options.journals_prefix)+e._s(e.options.path_suffix))])]),o("a-input",{model:{value:e.options.journals_prefix,callback:function(t){e.$set(e.options,"journals_prefix",t)},expression:"options.journals_prefix"}})],2),o("a-form-model-item",{attrs:{label:"路径后缀:"}},[o("template",{slot:"help"},[o("span",[e._v("* 格式为:"),o("code",[e._v(".{suffix}")]),e._v(",仅对内建路径有效")])]),o("a-input",{model:{value:e.options.path_suffix,callback:function(t){e.$set(e.options,"path_suffix",t)},expression:"options.path_suffix"}})],2),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},se=[],ae={name:"PermalinkTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{postPermalinkType:{DEFAULT:{type:"DEFAULT",text:"默认"},YEAR:{type:"YEAR",text:"年份型"},DATE:{type:"DATE",text:"年月型"},DAY:{type:"DAY",text:"年月日型"},ID:{type:"ID",text:"ID 型"},ID_SLUG:{type:"ID_SLUG",text:"ID 别名型"}},sheetPermalinkType:{SECONDARY:{type:"SECONDARY",text:"二级路径"},ROOT:{type:"ROOT",text:"根路径"}},wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.permalinkOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},ne=ae,ie=(0,u.Z)(ne,oe,se,!1,null,null,null),re=ie.exports,le=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"apiOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{label:"API 服务:"}},[o("a-switch",{model:{value:e.options.api_enabled,callback:function(t){e.$set(e.options,"api_enabled",t)},expression:"options.api_enabled"}})],1),o("a-form-model-item",{attrs:{label:"Access key:",prop:"api_access_key"}},[o("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.options.api_access_key,callback:function(t){e.$set(e.options,"api_access_key",t)},expression:"options.api_access_key"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},pe=[],ce={name:"ApiTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}}}},watch:{options:function(e){this.$emit("onChange",e)}},computed:{rules:function(){var e=this.options.api_enabled;return{api_access_key:[{required:e,message:"* Access key 不能为空",trigger:["change"]}]}}},methods:{handleSaveOptions:function(){var e=this;e.$refs.apiOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},me=ce,ue=(0,u.Z)(me,le,pe,!1,null,null,null),_e=ue.exports,de=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("a-form-model",{ref:"advancedOptionsForm",attrs:{model:e.options,rules:e.rules,wrapperCol:e.wrapperCol,layout:"vertical"}},[o("a-form-model-item",{attrs:{help:"* 对网站上面的所有页面路径、本地附件路径、以及主题中的静态资源路径有效。",label:"全局绝对路径:"}},[o("a-switch",{model:{value:e.options.global_absolute_path_enabled,callback:function(t){e.$set(e.options,"global_absolute_path_enabled",t)},expression:"options.global_absolute_path_enabled"}})],1),o("a-form-model-item",[o("ReactiveButton",{attrs:{errored:e.errored,loading:e.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){return e.$emit("callback")},click:e.handleSaveOptions}})],1)],1)],1)},be=[],fe={name:"AdvancedOtherTab",props:{options:{type:Object,required:!0},saving:{type:Boolean,default:!1},errored:{type:Boolean,default:!1}},data:function(){return{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},rules:{}}},watch:{options:function(e){this.$emit("onChange",e)}},methods:{handleSaveOptions:function(){var e=this,t=this;t.$refs.advancedOptionsForm.validate((function(t){t&&e.$emit("onSave")}))}}},he=fe,ve=(0,u.Z)(he,de,be,!1,null,null,null),ge=ve.exports,ke=o(98906),ye={components:{PageView:r.B4,GeneralTab:d,SeoTab:k,PostTab:O,CommentTab:E,AttachmentTab:U,SmtpTab:W,OtherTab:te,PermalinkTab:re,ApiTab:_e,AdvancedOtherTab:ge},data:function(){return{options:{},advancedOptions:!1,saving:!1,errored:!1}},computed:{title:function(){return this.advancedOptions?"高级选项":"基础选项"}},created:function(){this.handleListOptions()},methods:(0,i.Z)((0,i.Z)({},(0,ke.nv)(["refreshUserCache","refreshOptionsCache"])),{},{handleListOptions:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){var o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,L.Z.option.listAsMapView();case 3:o=t.sent,e.options=o.data,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$log.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},onOptionsChange:function(e){this.options=e},onSaveOptions:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.saving=!0,t.next=4,L.Z.option.saveMapView(e.options);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](0),e.errored=!0,e.$log.error(t.t0);case 10:return t.prev=10,setTimeout((function(){e.saving=!1}),400),t.next=14,e.handleListOptions();case 14:return t.next=16,e.refreshOptionsCache();case 16:return t.next=18,e.refreshUserCache();case 18:return t.finish(10);case 19:case"end":return t.stop()}}),t,null,[[0,6,10,19]])})))()}})},xe=ye,we=(0,u.Z)(xe,s,a,!1,null,null,null),$e=we.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/477.71a87ac9.js b/src/main/resources/admin/js/477.71a87ac9.js deleted file mode 100644 index 8646016f62..0000000000 --- a/src/main/resources/admin/js/477.71a87ac9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[477],{67477:function(e,t,r){r.r(t),r.d(t,{default:function(){return D}});var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("page-view",[r("a-row",{attrs:{gutter:12}},[r("a-col",{staticClass:"pb-3",attrs:{lg:8,md:8,sm:24,xl:8,xs:24}},[r("a-card",{attrs:{bodyStyle:{padding:"16px"},"head-style":{padding:"8px 16px!important"},title:e.title}},[r("a-form-model",{ref:"categoryForm",attrs:{model:e.form.model,rules:e.form.rules,layout:"horizontal"}},[r("a-form-model-item",{attrs:{help:"* 页面上所显示的名称",label:"名称:",prop:"name"}},[r("a-input",{ref:"nameInput",model:{value:e.form.model.name,callback:function(t){e.$set(e.form.model,"name",t)},expression:"form.model.name"}})],1),r("a-form-model-item",{attrs:{help:"* 一般为单个分类页面的标识,最好为英文",label:"别名:",prop:"slug"}},[r("a-input",{model:{value:e.form.model.slug,callback:function(t){e.$set(e.form.model,"slug",t)},expression:"form.model.slug"}})],1),r("a-form-model-item",{attrs:{label:"上级目录:",prop:"parentId"}},[r("category-select-tree",{attrs:{categories:e.list.data,"category-id":e.form.model.parentId},on:{"update:categoryId":function(t){return e.$set(e.form.model,"parentId",t)},"update:category-id":function(t){return e.$set(e.form.model,"parentId",t)}}})],1),r("a-form-model-item",{attrs:{help:"* 在分类页面可展示,需要主题支持",label:"封面图:",prop:"thumbnail"}},[r("AttachmentInput",{attrs:{title:"选择封面图"},model:{value:e.form.model.thumbnail,callback:function(t){e.$set(e.form.model,"thumbnail",t)},expression:"form.model.thumbnail"}})],1),r("a-form-model-item",{attrs:{help:"* 分类密码",label:"密码:",prop:"password"}},[r("a-input-password",{attrs:{autocomplete:"new-password"},model:{value:e.form.model.password,callback:function(t){e.$set(e.form.model,"password",t)},expression:"form.model.password"}})],1),r("a-form-model-item",{attrs:{help:"* 分类描述,需要主题支持",label:"描述:",prop:"description"}},[r("a-input",{attrs:{autoSize:{minRows:3},type:"textarea"},model:{value:e.form.model.description,callback:function(t){e.$set(e.form.model,"description",t)},expression:"form.model.description"}})],1),r("a-form-model-item",[e.isUpdateMode?r("a-button-group",[r("ReactiveButton",{attrs:{errored:e.form.errored,loading:e.form.saving,erroredText:"更新失败",loadedText:"更新成功",text:"更新",type:"primary"},on:{callback:e.handleSavedCallback,click:e.handleCreateOrUpdateCategory}}),r("a-button",{attrs:{type:"dashed"},on:{click:function(t){e.form.model={}}}},[e._v("返回添加")])],1):r("ReactiveButton",{attrs:{errored:e.form.errored,loading:e.form.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:e.handleSavedCallback,click:e.handleCreateOrUpdateCategory}})],1)],1)],1)],1),r("a-col",{staticClass:"pb-3",attrs:{lg:16,md:16,sm:24,xl:16,xs:24}},[r("a-card",{attrs:{bodyStyle:{padding:"16px"},title:"分类列表"},scopedSlots:e._u([{key:"extra",fn:function(){return[r("ReactiveButton",{attrs:{disabled:e.list.data.length<=0,errored:e.formBatch.errored,loading:e.formBatch.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存"},on:{callback:function(t){e.formBatch.errored=!1},click:e.handleUpdateBatch}})]},proxy:!0}])},[r("a-spin",{attrs:{spinning:e.list.loading}},[r("CategoryTreeNode",{on:{edit:e.handleEdit,reload:e.handleListCategories,select:e.handleSelect},model:{value:e.list.treeData,callback:function(t){e.$set(e.list,"treeData",t)},expression:"list.treeData"}})],1)],1)],1)],1)],1)},n=[],o=r(75725),i=r(86475),l=r(47458),s=(r(31875),r(18482),r(41479),r(70315),r(26278)),c=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-tree-select",{attrs:{allowClear:!0,treeData:e.categoryTreeData,treeDataSimpleMode:!0,placeholder:"请选择上级目录,默认为顶级目录",treeDefaultExpandAll:""},model:{value:e.categoryIdString,callback:function(t){e.categoryIdString=t},expression:"categoryIdString"}})},d=[],u=(r(12566),r(82395),r(21082),r(11074),{name:"CategorySelectTree",props:{categoryId:{type:Number,required:!0,default:0},categories:{type:Array,required:!1,default:function(){return[]}}},computed:{categoryTreeData:function(){return[{id:0,title:"根目录",value:"0",pId:-1}].concat((0,o.Z)(this.categories.map((function(e){return{id:e.id,title:e.name,value:e.id.toString(),pId:e.parentId}}))))},categoryIdString:{get:function(){return this.categoryId.toString()},set:function(e){this.$emit("update:categoryId",e?parseInt(e):0)}}}}),m=u,p=r(42177),f=(0,p.Z)(m,c,d,!1,null,null,null),g=f.exports,h=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-list",{attrs:{"item-layout":"horizontal"}},[r("draggable",e._b({staticClass:"item-container",attrs:{list:e.list,value:e.value,handle:".mover",tag:"div"},on:{end:function(t){e.isDragging=!1},input:e.emitter,start:function(t){e.isDragging=!0}}},"draggable",{animation:300,group:"description",ghostClass:"ghost",chosenClass:"chosen",dragClass:"drag",emptyInsertThreshold:20},!1),[r("transition-group",e._l(e.realValue,(function(t){return r("div",{key:t.id},[r("a-list-item",{staticClass:"menu-item",scopedSlots:e._u([{key:"actions",fn:function(){return[r("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(r){return e.handleSelect(t)}}},[e._v("新增")]),r("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(r){return e.handleEdit(t)}}},[e._v("编辑")]),r("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(r){return e.handleDelete(t)}}},[e._v("删除")])]},proxy:!0}],null,!0)},[r("a-list-item-meta",[r("span",{staticClass:"inline-block font-bold title",attrs:{slot:"title"},slot:"title"},[r("a-icon",{staticClass:"cursor-move mover mr-1",attrs:{type:"bars"}}),e._v(" "+e._s(t.name)+e._s(t.hasPassword?"(加密)":"")+" ")],1),r("span",{staticClass:"inline-block",attrs:{slot:"description"},slot:"description"},[r("a",{staticClass:"ant-anchor-link-title",attrs:{href:t.fullPath,target:"_blank"}},[e._v(" "+e._s(t.fullPath)+" ")])])])],1),r("div",{staticClass:"a-list-nested",staticStyle:{"margin-left":"44px"}},[r("CategoryTreeNode",{attrs:{list:t.children},on:{edit:e.handleEdit,reload:function(t){return e.$emit("reload")},select:e.handleSelect}})],1)],1)})),0)],1)],1)},v=[],y=r(77513),b=r.n(y),x=r(17132),k={name:"CategoryTreeNode",components:{draggable:b()},props:{value:{required:!1,type:Array,default:null},list:{required:!1,type:Array,default:null}},computed:{realValue:function(){return this.value?this.value:this.list}},data:function(){return{isDragging:!1}},methods:{emitter:function(e){this.$emit("input",e)},handleDelete:function(e){var t=this;t.$confirm({title:"提示",content:"确定要删除名为".concat(e.name,"的分类?"),onOk:function(){return(0,l.Z)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,x.Z.category["delete"](e.id);case 3:t.$emit("reload"),r.next=9;break;case 6:r.prev=6,r.t0=r["catch"](0),t.$log.error("Fail to delete category",r.t0);case 9:case"end":return r.stop()}}),r,null,[[0,6]])})))()}})},handleEdit:function(e){this.$emit("edit",e)},handleSelect:function(e){this.$emit("select",e)}}},C=k,w=(0,p.Z)(C,h,v,!1,null,"93ae2cf2",null),I=w.exports,$=r(91411),S={components:{PageView:s.B4,CategorySelectTree:g,CategoryTreeNode:I},mixins:[$.jB,$.KT],data:function(){return{list:{data:[],treeData:[],loading:!1},form:{model:{},saving:!1,errored:!1,rules:{name:[{required:!0,message:"* 分类名称不能为空",trigger:["change"]},{max:255,message:"* 分类名称的字符长度不能超过 255",trigger:["change"]}],slug:[{max:255,message:"* 分类别名的字符长度不能超过 255",trigger:["change"]}],thumbnail:[{max:1023,message:"* 封面图链接的字符长度不能超过 1023",trigger:["change"]}],description:[{max:100,message:"* 分类描述的字符长度不能超过 100",trigger:["change"]}]}},formBatch:{saving:!1,errored:!1}}},computed:{title:function(){return this.isUpdateMode?"修改分类":"添加分类"},isUpdateMode:function(){return!!this.form.model.id}},created:function(){this.handleListCategories()},methods:{handleListCategories:function(){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.list.loading=!0,t.next=4,x.Z.category.list({});case 4:r=t.sent,a=r.data,e.list.data=a,e.list.treeData=e.convertDataToTree(a),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),e.$log.error("Failed to get categories",t.t0);case 13:return t.prev=13,e.list.loading=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[0,10,13,16]])})))()},convertDataToTree:function(e){var t={},r=[];return e.forEach((function(e){return t[e.id]=(0,i.Z)((0,i.Z)({},e),{},{children:[]})})),e.forEach((function(e){var a=t[e.id],n=t[e.parentId];a.password&&(a.hasPassword=!0),n&&(n.password||n.hasPassword)&&(a.hasPassword=!0),e.parentId?t[e.parentId].children.push(a):r.push(a)})),r},handleEdit:function(e){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,x.Z.category.get(e.id);case 3:a=r.sent,n=a.data,t.form.model=n,t.$refs.nameInput.focus(),r.next=12;break;case 9:r.prev=9,r.t0=r["catch"](0),t.$log.error("Failed to get category",r.t0);case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))()},handleSelect:function(e){this.form.model={parentId:e.id},this.$refs.nameInput.focus()},handleCreateOrUpdateCategory:function(){var e=this,t=this;t.$refs.categoryForm.validate((function(r){r&&(t.form.saving=!0,t.isUpdateMode?x.Z.category.update(t.form.model.id,t.form.model).catch((function(){e.form.errored=!0})).finally((function(){setTimeout((function(){t.form.saving=!1}),400)})):x.Z.category.create(e.form.model).catch((function(){e.form.errored=!0})).finally((function(){setTimeout((function(){t.form.saving=!1}),400)})))}))},handleUpdateBatch:function(){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t&&0!==t.length?t.reduce((function(t,a,n){a.priority=n+1,a.parentId=r;var i=a.children.length>0?e(a.children,a.id):[];return[].concat((0,o.Z)(t),[a],(0,o.Z)(i))}),[]):[]},a=r(e.list.treeData),t.prev=2,e.formBatch.saving=!0,t.next=6,x.Z.category.updateInBatch(a);case 6:t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](2),e.formBatch.errored=!0,e.$log.error("Failed to update categories",t.t0);case 12:return t.prev=12,setTimeout((function(){e.formBatch.saving=!1,e.handleListCategories()}),400),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,8,12,15]])})))()},handleSavedCallback:function(){if(this.form.errored)this.form.errored=!1;else{var e=this;e.form.model={},e.handleListCategories()}},handleQueryCategoryPosts:function(e){this.$router.push({name:"PostList",query:{categoryId:e.id}})}}},T=S,_=(0,p.Z)(T,a,n,!1,null,null,null),D=_.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/53.8d74dbe6.js b/src/main/resources/admin/js/53.3d0e82a1.js similarity index 99% rename from src/main/resources/admin/js/53.8d74dbe6.js rename to src/main/resources/admin/js/53.3d0e82a1.js index 994ec023b5..8e8f084f6f 100644 --- a/src/main/resources/admin/js/53.8d74dbe6.js +++ b/src/main/resources/admin/js/53.3d0e82a1.js @@ -1 +1 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[53],{83053:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("page-view",{attrs:{"sub-title":e.theme.current.version||"-",title:e.theme.current.name||"-",affix:""}},[n("template",{slot:"extra"},[n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.handleRemoteUpdate}},[n("a-icon",{attrs:{type:"cloud"}}),e._v(" 在线更新 ")],1),n("a-menu-item",{key:"2",on:{click:function(t){e.localUpgradeModel.visible=!0}}},[n("a-icon",{attrs:{type:"file"}}),e._v(" 本地更新 ")],1)],1),n("a-button",{attrs:{icon:"upload"}},[e._v(" 更新 "),n("a-icon",{attrs:{type:"down"}})],1)],1),n("a-button",{attrs:{disabled:e.theme.current.activated,icon:"delete",type:"danger"},on:{click:function(t){e.themeDeleteModal.visible=!0}}},[e._v(" 删除 ")])],1),n("a-spin",{attrs:{spinning:e.theme.loading}},[e.theme.current.id?n("div",{staticClass:"card-container"},[n("a-tabs",{attrs:{defaultActiveKey:"0",type:"card"}},[n("a-tab-pane",{key:0,attrs:{tab:"关于"}},[e.theme.current.logo?n("div",[n("a-avatar",{attrs:{alt:e.theme.current.name,size:72,src:e.theme.current.logo,shape:"square"}}),n("a-divider")],1):e._e(),n("a-descriptions",{attrs:{column:1,layout:"horizontal"}},[n("a-descriptions-item",{attrs:{label:"作者"}},[n("a",{staticClass:"text-inherit",attrs:{href:e.theme.current.author.website||"#",target:"_blank"}},[e._v(" "+e._s(e.theme.current.author.name)+" ")])]),n("a-descriptions-item",{attrs:{label:"介绍"}},[e._v(" "+e._s(e.theme.current.description||"-")+" ")]),n("a-descriptions-item",{attrs:{label:"官网"}},[n("a",{staticClass:"text-inherit",attrs:{href:e.theme.current.website||"#",target:"_blank"}},[e._v(" "+e._s(e.theme.current.website||"-")+" ")])]),n("a-descriptions-item",{attrs:{label:"Git 仓库"}},[n("a",{staticClass:"text-inherit",attrs:{href:e.theme.current.repo||"#",target:"_blank"}},[e._v(" "+e._s(e.theme.current.repo||"-")+" ")])]),n("a-descriptions-item",{attrs:{label:"主题标识"}},[e._v(" "+e._s(e.theme.current.id)+" ")]),n("a-descriptions-item",{attrs:{label:"当前版本"}},[e._v(" "+e._s(e.theme.current.version)+" ")]),n("a-descriptions-item",{attrs:{label:"存储位置"}},[e._v(" "+e._s(e.theme.current.themePath)+" ")])],1)],1),e._l(e.theme.configurations,(function(t,a){return n("a-tab-pane",{key:a+1,attrs:{tab:t.label}},[n("a-form",{attrs:{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},layout:"vertical"}},[e._l(t.items,(function(t,a){return n("a-form-item",{key:a,attrs:{label:t.label+":"}},[t.description&&""!==t.description?n("p",{attrs:{slot:"help"},domProps:{innerHTML:e._s(t.description)},slot:"help"}):e._e(),"TEXT"===t.type?n("a-input",{attrs:{defaultValue:t.defaultValue,placeholder:t.placeholder},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):"TEXTAREA"===t.type?n("a-input",{attrs:{autoSize:{minRows:5},placeholder:t.placeholder,type:"textarea"},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):"RADIO"===t.type?n("a-radio-group",{attrs:{defaultValue:t.defaultValue},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}},e._l(t.options,(function(t,a){return n("a-radio",{key:a,attrs:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1):"SELECT"===t.type?n("a-select",{attrs:{defaultValue:t.defaultValue},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}},e._l(t.options,(function(t){return n("a-select-option",{key:t.value,attrs:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1):"COLOR"===t.type?n("verte",{staticStyle:{display:"inline-block",height:"24px"},attrs:{defaultValue:t.defaultValue,model:"hex",picker:"square"},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):"ATTACHMENT"===t.type?n("AttachmentInput",{attrs:{defaultValue:t.defaultValue,placeholder:t.placeholder},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):"NUMBER"===t.type?n("a-input-number",{staticStyle:{width:"100%"},attrs:{defaultValue:t.defaultValue},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):"SWITCH"===t.type?n("a-switch",{attrs:{defaultChecked:t.defaultValue},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):n("a-input",{attrs:{defaultValue:t.defaultValue,placeholder:t.placeholder},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}})],1)})),n("a-form-item",[n("ReactiveButton",{attrs:{errored:e.theme.saveErrored,loading:e.theme.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){e.theme.saveErrored=!1},click:e.handleSaveSettings}})],1)],2)],1)}))],2)],1):e._e()]),n("ThemeDeleteConfirmModal",{attrs:{theme:e.theme.current,visible:e.themeDeleteModal.visible},on:{"update:visible":function(t){return e.$set(e.themeDeleteModal,"visible",t)},success:e.onThemeDeleteSucceed}}),n("ThemeLocalUpgradeModal",{attrs:{theme:e.theme.current,visible:e.localUpgradeModel.visible},on:{"update:visible":function(t){return e.$set(e.localUpgradeModel,"visible",t)},success:e.handleGetTheme}})],2)},r=[],i=n(47458),s=(n(30535),n(85018),n(21082),n(70315),n(43154)),l=n(26278),o=n(53093),u=n(51712),c=n(17132),m={name:"ThemeSetting",components:{PageView:l.B4,Verte:s.Z,ThemeDeleteConfirmModal:o.Z,ThemeLocalUpgradeModal:u.Z},data:function(){return{theme:{current:{},settings:[],configurations:[],loading:!1,saving:!1,saveErrored:!1},themeDeleteModal:{visible:!1},localUpgradeModel:{visible:!1}}},beforeRouteEnter:function(e,t,n){var a=e.query.themeId;n(function(){var e=(0,i.Z)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.handleGetTheme(a);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},methods:{handleGetTheme:function(e){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function n(){var a,r,i,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=0,t.theme.loading=!0,!e){n.next=10;break}return n.next=5,c.Z.theme.get(e);case 5:a=n.sent,r=a.data,t.theme.current=r,n.next=15;break;case 10:return n.next=12,c.Z.theme.getActivatedTheme();case 12:i=n.sent,s=i.data,t.theme.current=s;case 15:return n.next=17,t.handleGetConfigurations();case 17:return n.next=19,t.handleGetSettings();case 19:return n.prev=19,t.theme.loading=!1,n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[0,,19,22]])})))()},handleGetConfigurations:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c.Z.theme.listConfigurations(e.theme.current.id);case 3:n=t.sent,a=n.data,e.theme.configurations=a,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),e.$log.error(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},handleGetSettings:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c.Z.theme.listSettings(e.theme.current.id);case 3:n=t.sent,a=n.data,e.theme.settings=a,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),e.$log.error(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},handleSaveSettings:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.theme.saving=!0,t.next=4,c.Z.theme.saveSettings(e.theme.current.id,e.theme.settings);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](0),e.$log.error(t.t0),e.theme.saveErrored=!0;case 10:return t.prev=10,setTimeout((function(){e.theme.saving=!1}),400),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[0,6,10,13]])})))()},onThemeDeleteSucceed:function(){this.$router.replace({name:"ThemeList"})},handleRemoteUpdate:function(){var e=this;e.$confirm({title:"提示",maskClosable:!0,content:"确定更新【"+e.theme.current.name+"】主题?",onOk:function(){return(0,i.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$message.loading("更新中...",0),t.prev=1,t.next=4,c.Z.theme.updateThemeByFetching(e.theme.current.id);case 4:e.$message.success("更新成功!"),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),e.$log.error("Failed to update theme: ",t.t0);case 10:return t.prev=10,n(),t.next=14,e.handleGetTheme(e.theme.current.id);case 14:return t.finish(10);case 15:case"end":return t.stop()}}),t,null,[[1,7,10,15]])})))()}})}}},d=m,h=n(42177),p=(0,h.Z)(d,a,r,!1,null,null,null),f=p.exports},53093:function(e,t,n){n.d(t,{Z:function(){return m}});var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{afterClose:e.onAfterClose,closable:!1,width:416,destroyOnClose:"",title:"提示"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[n("template",{slot:"footer"},[n("a-button",{on:{click:function(t){e.modalVisible=!1}}},[e._v(" 取消 ")]),n("ReactiveButton",{attrs:{errored:e.deleteErrored,loading:e.deleting,erroredText:"删除失败",loadedText:"删除成功",text:"确定"},on:{callback:e.handleDeleteCallback,click:function(t){return e.handleDelete()}}})],1),n("p",[e._v("确定删除【"+e._s(e.theme.name)+"】主题?")]),n("a-checkbox",{model:{value:e.deleteSettings,callback:function(t){e.deleteSettings=t},expression:"deleteSettings"}},[e._v(" 同时删除主题配置 ")])],2)},r=[],i=n(47458),s=(n(70315),n(17132)),l={name:"ThemeDeleteConfirmModal",props:{visible:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{}}}},data:function(){return{deleteErrored:!1,deleting:!1,deleteSettings:!1}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{handleDelete:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.deleting=!0,t.next=4,s.Z.theme["delete"](e.theme.id,e.deleteSettings);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](0),e.deleteErrored=!1,e.$log.error("Delete theme failed",t.t0);case 10:return t.prev=10,setTimeout((function(){e.deleting=!1}),400),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[0,6,10,13]])})))()},handleDeleteCallback:function(){this.deleteErrored?this.deleteErrored=!1:(this.modalVisible=!1,this.$emit("success"))},onAfterClose:function(){this.deleteErrored=!1,this.deleting=!1,this.deleteSettings=!1,this.$emit("onAfterClose")}}},o=l,u=n(42177),c=(0,u.Z)(o,a,r,!1,null,null,null),m=c.exports},51712:function(e,t,n){n.d(t,{Z:function(){return c}});var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{afterClose:e.onModalClose,footer:null,destroyOnClose:"",title:"更新主题"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[n("FilePondUpload",{ref:"updateByFile",attrs:{accepts:["application/x-zip","application/x-zip-compressed","application/zip"],field:e.theme.id,multiple:!1,uploadHandler:e.uploadHandler,label:"点击选择主题更新包或将主题更新包拖拽到此处
仅支持 ZIP 格式的文件",name:"file"},on:{success:e.onThemeUploadSuccess}})],1)},r=[],i=n(17132),s={name:"ThemeLocalUpgradeModal",props:{visible:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{}}}},data:function(){return{uploadHandler:function(e,t,n){return i.Z.theme.updateByUpload(e,t,n)}}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{onModalClose:function(){this.$refs.updateByFile.handleClearFileList(),this.$emit("onAfterClose")},onThemeUploadSuccess:function(){this.modalVisible=!1,this.$emit("success")}}},l=s,o=n(42177),u=(0,o.Z)(l,a,r,!1,null,null,null),c=u.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[53],{83053:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("page-view",{attrs:{"sub-title":e.theme.current.version||"-",title:e.theme.current.name||"-",affix:""}},[n("template",{slot:"extra"},[n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.handleRemoteUpdate}},[n("a-icon",{attrs:{type:"cloud"}}),e._v(" 在线更新 ")],1),n("a-menu-item",{key:"2",on:{click:function(t){e.localUpgradeModel.visible=!0}}},[n("a-icon",{attrs:{type:"file"}}),e._v(" 本地更新 ")],1)],1),n("a-button",{attrs:{icon:"upload"}},[e._v(" 更新 "),n("a-icon",{attrs:{type:"down"}})],1)],1),n("a-button",{attrs:{disabled:e.theme.current.activated,icon:"delete",type:"danger"},on:{click:function(t){e.themeDeleteModal.visible=!0}}},[e._v(" 删除 ")])],1),n("a-spin",{attrs:{spinning:e.theme.loading}},[e.theme.current.id?n("div",{staticClass:"card-container"},[n("a-tabs",{attrs:{defaultActiveKey:"0",type:"card"}},[n("a-tab-pane",{key:0,attrs:{tab:"关于"}},[e.theme.current.logo?n("div",[n("a-avatar",{attrs:{alt:e.theme.current.name,size:72,src:e.theme.current.logo,shape:"square"}}),n("a-divider")],1):e._e(),n("a-descriptions",{attrs:{column:1,layout:"horizontal"}},[n("a-descriptions-item",{attrs:{label:"作者"}},[n("a",{staticClass:"text-inherit",attrs:{href:e.theme.current.author.website||"#",target:"_blank"}},[e._v(" "+e._s(e.theme.current.author.name)+" ")])]),n("a-descriptions-item",{attrs:{label:"介绍"}},[e._v(" "+e._s(e.theme.current.description||"-")+" ")]),n("a-descriptions-item",{attrs:{label:"官网"}},[n("a",{staticClass:"text-inherit",attrs:{href:e.theme.current.website||"#",target:"_blank"}},[e._v(" "+e._s(e.theme.current.website||"-")+" ")])]),n("a-descriptions-item",{attrs:{label:"Git 仓库"}},[n("a",{staticClass:"text-inherit",attrs:{href:e.theme.current.repo||"#",target:"_blank"}},[e._v(" "+e._s(e.theme.current.repo||"-")+" ")])]),n("a-descriptions-item",{attrs:{label:"主题标识"}},[e._v(" "+e._s(e.theme.current.id)+" ")]),n("a-descriptions-item",{attrs:{label:"当前版本"}},[e._v(" "+e._s(e.theme.current.version)+" ")]),n("a-descriptions-item",{attrs:{label:"存储位置"}},[e._v(" "+e._s(e.theme.current.themePath)+" ")])],1)],1),e._l(e.theme.configurations,(function(t,a){return n("a-tab-pane",{key:a+1,attrs:{tab:t.label}},[n("a-form",{attrs:{wrapperCol:{xl:{span:8},lg:{span:8},sm:{span:12},xs:{span:24}},layout:"vertical"}},[e._l(t.items,(function(t,a){return n("a-form-item",{key:a,attrs:{label:t.label+":"}},[t.description&&""!==t.description?n("p",{attrs:{slot:"help"},domProps:{innerHTML:e._s(t.description)},slot:"help"}):e._e(),"TEXT"===t.type?n("a-input",{attrs:{defaultValue:t.defaultValue,placeholder:t.placeholder},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):"TEXTAREA"===t.type?n("a-input",{attrs:{autoSize:{minRows:5},placeholder:t.placeholder,type:"textarea"},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):"RADIO"===t.type?n("a-radio-group",{attrs:{defaultValue:t.defaultValue},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}},e._l(t.options,(function(t,a){return n("a-radio",{key:a,attrs:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1):"SELECT"===t.type?n("a-select",{attrs:{defaultValue:t.defaultValue},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}},e._l(t.options,(function(t){return n("a-select-option",{key:t.value,attrs:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1):"COLOR"===t.type?n("verte",{staticStyle:{display:"inline-block",height:"24px"},attrs:{defaultValue:t.defaultValue,model:"hex",picker:"square"},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):"ATTACHMENT"===t.type?n("AttachmentInput",{attrs:{defaultValue:t.defaultValue,placeholder:t.placeholder},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):"NUMBER"===t.type?n("a-input-number",{staticStyle:{width:"100%"},attrs:{defaultValue:t.defaultValue},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):"SWITCH"===t.type?n("a-switch",{attrs:{defaultChecked:t.defaultValue},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}}):n("a-input",{attrs:{defaultValue:t.defaultValue,placeholder:t.placeholder},model:{value:e.theme.settings[t.name],callback:function(n){e.$set(e.theme.settings,t.name,n)},expression:"theme.settings[item.name]"}})],1)})),n("a-form-item",[n("ReactiveButton",{attrs:{errored:e.theme.saveErrored,loading:e.theme.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:function(t){e.theme.saveErrored=!1},click:e.handleSaveSettings}})],1)],2)],1)}))],2)],1):e._e()]),n("ThemeDeleteConfirmModal",{attrs:{theme:e.theme.current,visible:e.themeDeleteModal.visible},on:{"update:visible":function(t){return e.$set(e.themeDeleteModal,"visible",t)},success:e.onThemeDeleteSucceed}}),n("ThemeLocalUpgradeModal",{attrs:{theme:e.theme.current,visible:e.localUpgradeModel.visible},on:{"update:visible":function(t){return e.$set(e.localUpgradeModel,"visible",t)},success:e.handleGetTheme}})],2)},r=[],i=n(47458),s=(n(30535),n(85018),n(21082),n(70315),n(43154)),l=n(27474),o=n(53093),u=n(51712),c=n(17132),m={name:"ThemeSetting",components:{PageView:l.B4,Verte:s.Z,ThemeDeleteConfirmModal:o.Z,ThemeLocalUpgradeModal:u.Z},data:function(){return{theme:{current:{},settings:[],configurations:[],loading:!1,saving:!1,saveErrored:!1},themeDeleteModal:{visible:!1},localUpgradeModel:{visible:!1}}},beforeRouteEnter:function(e,t,n){var a=e.query.themeId;n(function(){var e=(0,i.Z)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.handleGetTheme(a);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},methods:{handleGetTheme:function(e){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function n(){var a,r,i,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=0,t.theme.loading=!0,!e){n.next=10;break}return n.next=5,c.Z.theme.get(e);case 5:a=n.sent,r=a.data,t.theme.current=r,n.next=15;break;case 10:return n.next=12,c.Z.theme.getActivatedTheme();case 12:i=n.sent,s=i.data,t.theme.current=s;case 15:return n.next=17,t.handleGetConfigurations();case 17:return n.next=19,t.handleGetSettings();case 19:return n.prev=19,t.theme.loading=!1,n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[0,,19,22]])})))()},handleGetConfigurations:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c.Z.theme.listConfigurations(e.theme.current.id);case 3:n=t.sent,a=n.data,e.theme.configurations=a,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),e.$log.error(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},handleGetSettings:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c.Z.theme.listSettings(e.theme.current.id);case 3:n=t.sent,a=n.data,e.theme.settings=a,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),e.$log.error(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},handleSaveSettings:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.theme.saving=!0,t.next=4,c.Z.theme.saveSettings(e.theme.current.id,e.theme.settings);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](0),e.$log.error(t.t0),e.theme.saveErrored=!0;case 10:return t.prev=10,setTimeout((function(){e.theme.saving=!1}),400),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[0,6,10,13]])})))()},onThemeDeleteSucceed:function(){this.$router.replace({name:"ThemeList"})},handleRemoteUpdate:function(){var e=this;e.$confirm({title:"提示",maskClosable:!0,content:"确定更新【"+e.theme.current.name+"】主题?",onOk:function(){return(0,i.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$message.loading("更新中...",0),t.prev=1,t.next=4,c.Z.theme.updateThemeByFetching(e.theme.current.id);case 4:e.$message.success("更新成功!"),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),e.$log.error("Failed to update theme: ",t.t0);case 10:return t.prev=10,n(),t.next=14,e.handleGetTheme(e.theme.current.id);case 14:return t.finish(10);case 15:case"end":return t.stop()}}),t,null,[[1,7,10,15]])})))()}})}}},d=m,h=n(42177),p=(0,h.Z)(d,a,r,!1,null,null,null),f=p.exports},53093:function(e,t,n){n.d(t,{Z:function(){return m}});var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{afterClose:e.onAfterClose,closable:!1,width:416,destroyOnClose:"",title:"提示"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[n("template",{slot:"footer"},[n("a-button",{on:{click:function(t){e.modalVisible=!1}}},[e._v(" 取消 ")]),n("ReactiveButton",{attrs:{errored:e.deleteErrored,loading:e.deleting,erroredText:"删除失败",loadedText:"删除成功",text:"确定"},on:{callback:e.handleDeleteCallback,click:function(t){return e.handleDelete()}}})],1),n("p",[e._v("确定删除【"+e._s(e.theme.name)+"】主题?")]),n("a-checkbox",{model:{value:e.deleteSettings,callback:function(t){e.deleteSettings=t},expression:"deleteSettings"}},[e._v(" 同时删除主题配置 ")])],2)},r=[],i=n(47458),s=(n(70315),n(17132)),l={name:"ThemeDeleteConfirmModal",props:{visible:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{}}}},data:function(){return{deleteErrored:!1,deleting:!1,deleteSettings:!1}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{handleDelete:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.deleting=!0,t.next=4,s.Z.theme["delete"](e.theme.id,e.deleteSettings);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](0),e.deleteErrored=!1,e.$log.error("Delete theme failed",t.t0);case 10:return t.prev=10,setTimeout((function(){e.deleting=!1}),400),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[0,6,10,13]])})))()},handleDeleteCallback:function(){this.deleteErrored?this.deleteErrored=!1:(this.modalVisible=!1,this.$emit("success"))},onAfterClose:function(){this.deleteErrored=!1,this.deleting=!1,this.deleteSettings=!1,this.$emit("onAfterClose")}}},o=l,u=n(42177),c=(0,u.Z)(o,a,r,!1,null,null,null),m=c.exports},51712:function(e,t,n){n.d(t,{Z:function(){return c}});var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{afterClose:e.onModalClose,footer:null,destroyOnClose:"",title:"更新主题"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[n("FilePondUpload",{ref:"updateByFile",attrs:{accepts:["application/x-zip","application/x-zip-compressed","application/zip"],field:e.theme.id,multiple:!1,uploadHandler:e.uploadHandler,label:"点击选择主题更新包或将主题更新包拖拽到此处
仅支持 ZIP 格式的文件",name:"file"},on:{success:e.onThemeUploadSuccess}})],1)},r=[],i=n(17132),s={name:"ThemeLocalUpgradeModal",props:{visible:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{}}}},data:function(){return{uploadHandler:function(e,t,n){return i.Z.theme.updateByUpload(e,t,n)}}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{onModalClose:function(){this.$refs.updateByFile.handleClearFileList(),this.$emit("onAfterClose")},onThemeUploadSuccess:function(){this.modalVisible=!1,this.$emit("success")}}},l=s,o=n(42177),u=(0,o.Z)(l,a,r,!1,null,null,null),c=u.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/565.18fa9ba1.js b/src/main/resources/admin/js/565.f21c714c.js similarity index 99% rename from src/main/resources/admin/js/565.18fa9ba1.js rename to src/main/resources/admin/js/565.f21c714c.js index a02578cf3e..d936db014e 100644 --- a/src/main/resources/admin/js/565.18fa9ba1.js +++ b/src/main/resources/admin/js/565.f21c714c.js @@ -1 +1 @@ -(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[565],{53303:function(e,t,a){var n=a(15820),i=Math.floor,l=function(e,t){var a=e.length,o=i(a/2);return a<8?s(e,t):r(e,l(n(e,0,o),t),l(n(e,o),t),t)},s=function(e,t){var a,n,i=e.length,l=1;while(l0)e[n]=e[--n];n!==l++&&(e[n]=a)}return e},r=function(e,t,a,n){var i=t.length,l=a.length,s=0,r=0;while(s3)){if(h)return!0;if(p)return p<603;var e,t,a,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(n=0;n<47;n++)g.push({k:t+n,v:a})}for(g.sort((function(e,t){return t.v-e.v})),n=0;no(a)?1:-1}};n({target:"Array",proto:!0,forced:x},{sort:function(e){void 0!==e&&l(e);var t=s(this);if(M)return void 0===e?v(t):v(t,e);var a,n,i=[],o=r(t);for(n=0;ng)throw h(v);for(i=u(k,n),m=0;my-n+a;m--)delete k[m-1]}else if(a>n)for(m=y-n;m>C;m--)d=m+n-1,b=m+a-1,d in k?k[b]=k[d]:delete k[b];for(m=0;m0?a("a-menu",{staticClass:"w-full",attrs:{mode:"inline"},on:{select:e.handleSelectedTeam},model:{value:e.selectedTeam,callback:function(t){e.selectedTeam=t},expression:"selectedTeam"}},e._l(e.teams.data,(function(t){return a("a-menu-item",{key:t},[e._v(" "+e._s(""===t?"未分组":t)+e._s(e.defaultMenuTeam===t?"(默认)":"")+" ")])})),1):e._e()],1)],1),a("a-popover",{attrs:{destroyTooltipOnHide:"",placement:"bottom",title:"新增分组",trigger:"click"},on:{visibleChange:e.handleTeamFormVisibleChange},model:{value:e.teams.form.visible,callback:function(t){e.$set(e.teams.form,"visible",t)},expression:"teams.form.visible"}},[a("template",{slot:"content"},[a("a-form-model",{ref:"teamForm",attrs:{model:e.teams.form.model,rules:e.teams.form.rules},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleCreateTeam.apply(null,arguments)}}},[a("a-form-model-item",{attrs:{prop:"team"}},[a("a-input",{attrs:{autoFocus:""},model:{value:e.teams.form.model.team,callback:function(t){e.$set(e.teams.form.model,"team",t)},expression:"teams.form.model.team"}})],1),a("a-form-model-item",{staticStyle:{"margin-bottom":"0"}},[a("a-button",{attrs:{type:"primary"},on:{click:e.handleCreateTeam}},[e._v(" 新增 ")])],1)],1)],1),a("a-button",{staticClass:"mt-3",attrs:{block:"",type:"primary"}},[e._v(" 新增分组 ")])],2)],2)],1),a("a-col",{staticClass:"pb-3",attrs:{lg:18,md:18,sm:24,xl:18,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"}}},[a("template",{slot:"title"},[a("span",[e._v(" "+e._s(e.menuListTitle)+" ")]),e.list.data.length<=0&&!e.list.loading?a("a-tooltip",{attrs:{slot:"action",title:"分组下的菜单为空时,该分组也不会保存"},slot:"action"},[a("a-icon",{staticClass:"cursor-pointer",attrs:{type:"info-circle-o"}})],1):e._e()],1),a("template",{slot:"extra"},[a("a-space",[a("ReactiveButton",{attrs:{disabled:e.list.data.length<=0,errored:e.formBatch.errored,loading:e.formBatch.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存"},on:{callback:function(t){e.formBatch.errored=!1},click:e.handleUpdateBatch}}),e.form.visible?a("a-button",{attrs:{type:"default"},on:{click:function(t){return e.handleCloseCreateMenuForm()}}},[e._v(" 取消新增 ")]):a("a-button",{attrs:{ghost:"",type:"primary"},on:{click:function(t){return e.handleOpenCreateMenuForm()}}},[e._v(" 新增 ")]),a("a-dropdown",{attrs:{trigger:["click"]}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",{on:{click:function(t){e.menuInternalLinkSelector.visible=!0}}},[e._v(" 从系统预设链接添加 ")]),a("a-menu-item",{on:{click:e.handleDeleteBatch}},[e._v(" 删除当前组 ")])],1),a("a-button",[e._v(" 其他 "),a("a-icon",{attrs:{type:"down"}})],1)],1)],1)],1),a("a-spin",{attrs:{spinning:e.list.loading}},[e.form.visible?a("MenuForm",{attrs:{menu:e.form.model},on:{cancel:function(t){return e.handleCloseCreateMenuForm()},succeed:function(t){return e.handleCreateMenuSucceed()}}}):e._e(),0!==e.list.data.length||e.list.loading||e.form.visible?e._e():a("a-empty"),a("MenuTreeNode",{attrs:{excludedTeams:e.excludedTeams},on:{reload:e.handleListMenus},model:{value:e.list.data,callback:function(t){e.$set(e.list,"data",t)},expression:"list.data"}})],1)],2)],1)],1),a("MenuInternalLinkSelector",{attrs:{team:e.teams.selected},on:{reload:e.handleListMenus},model:{value:e.menuInternalLinkSelector.visible,callback:function(t){e.$set(e.menuInternalLinkSelector,"visible",t)},expression:"menuInternalLinkSelector.visible"}})],1)},i=[],l=a(86475),s=(a(82395),a(90195),a(31875),a(2923),a(18329),a(26278)),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-list",{attrs:{"item-layout":"horizontal"}},[a("draggable",e._b({staticClass:"item-container",attrs:{list:e.list,value:e.value,handle:".mover",tag:"div"},on:{end:function(t){e.isDragging=!1},input:e.emitter,start:function(t){e.isDragging=!0}}},"draggable",e.dragOptions,!1),[a("transition-group",e._l(e.realValue,(function(t){return a("div",{key:t.id},[a("a-list-item",{staticClass:"menu-item"},[a("a-list-item-meta",[a("span",{staticClass:"inline-block font-bold title",attrs:{slot:"title"},slot:"title"},[a("a-icon",{staticClass:"cursor-pointer mover",attrs:{type:"bars"}}),e._v(" "+e._s(t.name)+" "),"_blank"===t.target?a("a-tooltip",{attrs:{title:"外部链接"}},[a("a-icon",{attrs:{type:"link"}})],1):e._e(),e._v(" "+e._s(t.formVisible?"(正在编辑)":"")+" ")],1),a("span",{staticClass:"inline-block",attrs:{slot:"description"},slot:"description"},[a("a",{staticClass:"ant-anchor-link-title",attrs:{href:t.url,target:"_blank"}},[e._v(" "+e._s(t.url)+" ")])])]),a("template",{slot:"actions"},[t.formVisible?a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleCloseCreateMenuForm(t)}}},[e._v("取消编辑")]):a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleOpenEditForm(t)}}},[e._v(" 编辑 ")])],1),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleDelete(t.id)}}},[e._v("删除")])],1),e.excludedTeams&&e.excludedTeams.length>0?a("template",{slot:"actions"},[a("a-dropdown",{attrs:{trigger:["click"]}},[a("a",{staticClass:"ant-dropdown-link",on:{click:function(e){return e.preventDefault()}}},[e._v(" 更多 "),a("a-icon",{attrs:{type:"down"}})],1),a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-sub-menu",{attrs:{title:"移动到分组"}},e._l(e.excludedTeams,(function(n,i){return a("a-menu-item",{key:i,on:{click:function(a){return e.handleMoveMenu(t,n)}}},[e._v(e._s(""===n?"未分组":n)+" ")])})),1)],1)],1)],1):e._e()],2),t.formVisible?a("MenuForm",{attrs:{menu:t},on:{cancel:function(a){return e.handleCloseCreateMenuForm(t)},succeed:function(a){return e.handleUpdateMenuSucceed(t)}}}):e._e(),a("div",{staticClass:"a-list-nested",staticStyle:{"margin-left":"44px"}},[a("MenuTreeNode",{attrs:{excludedTeams:e.excludedTeams,list:t.children},on:{reload:e.onReloadEmit}})],1)],1)})),0)],1)],1)},o=[],u=a(75725),c=a(47458),m=(a(70315),a(41479),a(77513)),d=a.n(m),h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-form-model",{ref:"menuForm",attrs:{model:e.menuModel,rules:e.form.rules,labelAlign:"left"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleCreateOrUpdateMenu.apply(null,arguments)}}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{lg:8,md:12,sm:12,xl:8,xs:12}},[a("a-form-model-item",{attrs:{help:"* 页面上所显示的名称",label:"名称",prop:"name"}},[a("a-input",{attrs:{autoFocus:""},model:{value:e.menuModel.name,callback:function(t){e.$set(e.menuModel,"name",t)},expression:"menuModel.name"}})],1)],1),a("a-col",{attrs:{lg:8,md:12,sm:12,xl:8,xs:12}},[a("a-form-model-item",{attrs:{help:"* 菜单的地址",label:"地址",prop:"url"}},[a("a-input",{model:{value:e.menuModel.url,callback:function(t){e.$set(e.menuModel,"url",t)},expression:"menuModel.url"}})],1)],1),a("a-col",{attrs:{lg:8,md:12,sm:12,xl:8,xs:12}},[a("a-form-model-item",{attrs:{help:"* 请根据主题的支持情况选填",label:"图标",prop:"icon"}},[a("a-input",{model:{value:e.menuModel.icon,callback:function(t){e.$set(e.menuModel,"icon",t)},expression:"menuModel.icon"}})],1)],1),a("a-col",{attrs:{lg:8,md:12,sm:12,xl:8,xs:12}},[a("a-form-model-item",{attrs:{label:"打开方式",prop:"target"}},[a("a-radio-group",{attrs:{options:e.targets},model:{value:e.menuModel.target,callback:function(t){e.$set(e.menuModel,"target",t)},expression:"menuModel.target"}})],1)],1),a("a-col",{attrs:{lg:8,md:12,sm:12,xl:8,xs:12}},[a("a-form-model-item",{attrs:{colon:!1,label:" "}},[a("a-space",[a("ReactiveButton",{attrs:{errored:e.form.errored,loading:e.form.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:e.handleSavedCallback,click:e.handleCreateOrUpdateMenu}}),a("a-button",{on:{click:e.handleCancel}},[e._v("取消")])],1)],1)],1)],1)],1)],1)},f=[],p=a(17132),g=[{value:"_self",label:"当前窗口"},{value:"_blank",label:"新窗口"}],v={name:"MenuForm",model:{prop:"menu",event:"input"},props:{menu:{type:Object,default:function(){return{}}}},computed:{menuModel:{get:function(){return this.menu},set:function(e){this.$emit("input",e)}},isUpdateMode:function(){return!!this.menuModel.id}},data:function(){return{targets:g,form:{rules:{name:[{required:!0,message:"* 菜单名称不能为空",trigger:["change"]},{max:50,message:"* 菜单名称的字符长度不能超过 50",trigger:["change"]}],url:[{required:!0,message:"* 菜单地址不能为空",trigger:["change"]},{max:1023,message:"* 菜单地址的字符长度不能超过 1023",trigger:["change"]}],icon:[{max:50,message:"* 菜单图标的字符长度不能超过 50",trigger:["change"]}]},saving:!1,errored:!1}}},methods:{handleCreateOrUpdateMenu:function(){var e=this;e.$refs.menuForm.validate((function(t){t&&(e.form.saving=!0,e.isUpdateMode?p.Z.menu.update(e.menuModel.id,e.menuModel).catch((function(){e.form.errored=!0})).finally((function(){setTimeout((function(){e.form.saving=!1}),400)})):p.Z.menu.create(e.menuModel).catch((function(){e.form.errored=!0})).finally((function(){setTimeout((function(){e.form.saving=!1}),400)})))}))},handleSavedCallback:function(){var e=this;e.form.errored?e.form.errored=!1:(e.menuModel={target:"_self"},e.$emit("succeed"))},handleCancel:function(){this.$emit("cancel")}}},b=v,k=a(42177),y=(0,k.Z)(b,h,f,!1,null,null,null),C=y.exports,M=a(13159),x={name:"MenuTreeNode",components:{draggable:d(),MenuForm:C},props:{value:{required:!1,type:Array,default:null},list:{required:!1,type:Array,default:null},excludedTeams:{required:!1,type:Array,default:null}},data:function(){return{isDragging:!1}},computed:{dragOptions:function(){return{animation:300,group:"description",ghostClass:"ghost",chosenClass:"chosen",dragClass:"drag",emptyInsertThreshold:20}},realValue:function(){return this.value?this.value:this.list}},methods:{emitter:function(e){this.$emit("input",e)},handleDelete:function(e){var t=this;t.$confirm({title:"提示",content:"确定要删除当前菜单?",onOk:function(){p.Z.menu["delete"](e).finally((function(){t.onReloadEmit()}))}})},handleOpenEditForm:function(e){this.$set(e,"formVisible",!0)},handleUpdateMenuSucceed:function(e){this.handleCloseCreateMenuForm(e)},handleCloseCreateMenuForm:function(e){this.$set(e,"formVisible",!1)},handleMoveMenu:function(e,t){var a=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){var i,l,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=(0,M.I8)(e),i.team=t,i.parentId=0,i.priority=0,l=function e(a){return a&&0!==a.length?a.reduce((function(a,n){var i=n.children.length>0?e(n.children):[];return n.team=t,[].concat((0,u.Z)(a),[n],(0,u.Z)(i))}),[]):[]},s=[i].concat((0,u.Z)(l(i.children))),a.$log.debug("menu list as flat list:",s),n.prev=7,n.next=10,p.Z.menu.updateInBatch(s);case 10:a.$emit("reload"),n.next=16;break;case 13:n.prev=13,n.t0=n["catch"](7),a.$log.error("Fail to update menu in batch",n.t0);case 16:case"end":return n.stop()}}),n,null,[[7,13]])})))()},onReloadEmit:function(){this.$emit("reload")}}},_=x,T=(0,k.Z)(_,r,o,!1,null,"bf844320",null),S=T.exports,w=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{bodyStyle:{padding:"0 24px 24px"},width:1024,title:"从系统预设链接添加菜单"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[a("template",{slot:"footer"},[a("a-button",{on:{click:e.handleCancel}},[e._v(" 取消")]),a("ReactiveButton",{attrs:{disabled:e.menus&&e.menus.length<=0,errored:e.saveErrored,loading:e.saving,erroredText:"添加失败",loadedText:"添加成功",text:"添加"},on:{callback:e.handleCreateBatchCallback,click:e.handleCreateBatch}})],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:12}},[a("a-spin",{attrs:{spinning:e.loading}},[a("div",{staticClass:"custom-tab-wrapper"},[a("a-tabs",{attrs:{animated:{inkBar:!0,tabPane:!1},"default-active-key":"1"}},[a("a-tab-pane",{key:"1",attrs:{"force-render":"",tab:"分类目录"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.categories,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.fullPath,title:t.name}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleInsertPre(t.name,t.fullPath)}}},[a("a-icon",{attrs:{type:"plus-circle"}})],1)],1)],2)})),1)],1),a("a-tab-pane",{key:"2",attrs:{tab:"标签"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.tags,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.fullPath,title:t.name}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleInsertPre(t.name,t.fullPath)}}},[a("a-icon",{attrs:{type:"plus-circle"}})],1)],1)],2)})),1)],1),a("a-tab-pane",{key:"3",attrs:{tab:"独立页面"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.sheet.independents,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.fullPath,title:t.title}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleInsertPre(t.name,t.fullPath)}}},[a("a-icon",{attrs:{type:"plus-circle"}})],1)],1)],2)})),1)],1),a("a-tab-pane",{key:"4",attrs:{tab:"自定义页面"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.sheet.customs.data,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.fullPath,title:t.title}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleInsertPre(t.name,t.fullPath)}}},[a("a-icon",{attrs:{type:"plus-circle"}})],1)],1)],2)})),1),a("div",{staticClass:"page-wrapper"},[a("a-pagination",{staticClass:"pagination",attrs:{current:e.sheet.customs.pagination.page,defaultPageSize:e.sheet.customs.pagination.size,pageSizeOptions:["10","20","50","100"],total:e.sheet.customs.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:e.handleSheetPaginationChange,showSizeChange:e.handleSheetPaginationChange}})],1)],1),a("a-tab-pane",{key:"5",attrs:{tab:"其他"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.otherInternalLinks,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.url,title:t.name}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleInsertPre(t.name,t.url)}}},[a("a-icon",{attrs:{type:"plus-circle"}})],1)],1)],2)})),1)],1)],1)],1)])],1),a("a-col",{attrs:{span:12}},[a("div",{staticClass:"custom-tab-wrapper"},[a("a-tabs",{attrs:{"default-active-key":"1"}},[a("a-tab-pane",{key:"1",attrs:{"force-render":"",tab:"备选"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.menus,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.url,title:t.name}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(t){return e.handleRemovePre(n)}}},[a("a-icon",{attrs:{type:"close-circle"}})],1)],1)],2)})),1)],1)],1)],1)])],1)],2)},L=[],I=(a(29888),a(45107),a(19003),a(55792),{name:"MenuInternalLinkSelector",props:{value:{type:Boolean,default:!1},team:{type:String,default:""}},data:function(){return{options:{},categories:[],tags:[],menus:[],sheet:{independents:[],customs:{data:[],pagination:{page:1,size:10,sort:null,total:1},queryParam:{page:0,size:10,sort:null}}},loading:!1,saving:!1,saveErrored:!1}},computed:{visible:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},otherInternalLinks:function(){var e=this.options,t=this.options.path_suffix?this.options.path_suffix:"";return[{name:"分类目录",url:"".concat(e.blog_url,"/").concat(e.categories_prefix).concat(t)},{name:"标签",url:"".concat(e.blog_url,"/").concat(e.tags_prefix).concat(t)},{name:"文章归档",url:"".concat(e.blog_url,"/").concat(e.archives_prefix).concat(t)},{name:"RSS",url:"".concat(e.blog_url,"/atom.xml")},{name:"网站地图",url:"".concat(e.blog_url,"/sitemap.xml")},{name:"网站地图",url:"".concat(e.blog_url,"/sitemap.html")}]}},watch:{visible:function(e){e&&(this.handleFetchAll(),this.handleListSheets())}},methods:{handleFetchAll:function(){var e=this;this.loading=!0,Promise.all([p.Z.option.listAsMapView(),p.Z.category.list({sort:[],more:!1}),p.Z.tag.list({more:!1}),p.Z.sheet.listIndependents()]).then((function(t){e.options=t[0].data,e.categories=t[1].data,e.tags=t[2].data,e.sheet.independents=t[3].data})).finally((function(){e.loading=!1}))},handleListSheets:function(){var e=this;this.sheet.customs.queryParam.page=this.sheet.customs.pagination.page-1,this.sheet.customs.queryParam.size=this.sheet.customs.pagination.size,this.sheet.customs.queryParam.sort=this.sheet.customs.pagination.sort,p.Z.sheet.list(this.sheet.customs.queryParam).then((function(t){e.sheet.customs.data=t.data.content,e.sheet.customs.pagination.total=t.data.total}))},handleSheetPaginationChange:function(e,t){this.sheet.customs.pagination.page=e,this.sheet.customs.pagination.size=t,this.handleListSheets()},handleInsertPre:function(e,t){this.menus.push({name:e,url:t,team:this.team})},handleRemovePre:function(e){this.menus.splice(e,1)},handleCancel:function(){this.menus=[],this.visible=!1,this.$emit("reload")},handleCreateBatch:function(){var e=this;this.saving=!0,p.Z.menu.createInBatch(this.menus).catch((function(){e.saveErrored=!1})).finally((function(){setTimeout((function(){e.saving=!1}),400)}))},handleCreateBatchCallback:function(){this.saveErrored?this.saveErrored=!1:this.handleCancel()}}}),F=I,B=(0,k.Z)(F,w,L,!1,null,null,null),P=B.exports,$=a(98906),Z={components:{PageView:s.B4,MenuTreeNode:S,MenuForm:C,MenuInternalLinkSelector:P},data:function(){return{list:{data:[],loading:!1},form:{visible:!1,model:{}},formBatch:{saving:!1,errored:!1},teams:{data:[],loading:!1,selected:null,form:{visible:!1,model:{team:null},rules:{team:[{required:!0,message:"分组名称不能为空",trigger:["change"]}]}},default:{saving:!1,errored:!1}},menuInternalLinkSelector:{visible:!1}}},computed:(0,l.Z)((0,l.Z)({},(0,$.Se)(["options"])),{},{computedMenusMoved:function(){var e=(0,M.I8)(this.list.data);return this.handleMenuMoved(0,e)},computedMenusWithoutLevel:function(){return this.handleGetMenusWithoutLevel(this.computedMenusMoved,[])},computedMenuIds:function(){return this.computedMenusWithoutLevel.map((function(e){return e.id}))},selectedTeam:{get:function(){return[this.teams.selected]},set:function(e){this.teams.selected=e[0]}},menuListTitle:function(){return""===this.teams.selected?"未分组":this.teams.selected},excludedTeams:function(){var e=this;return this.teams.data.filter((function(t){return t!==e.teams.selected}))},defaultMenuTeam:function(){return this.options.default_menu_team?this.options.default_menu_team:""}}),created:function(){this.handleListTeams()},methods:(0,l.Z)((0,l.Z)({},(0,$.nv)(["refreshOptionsCache"])),{},{handleListTeams:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.teams.loading=!0,p.Z.menu.listTeams().then((function(a){e.teams.data=a.data,e.teams.selected&&!t||(e.teams.selected=e.teams.data[0]),e.handleListMenus()})).finally((function(){e.teams.loading=!1}))},handleListMenus:function(){var e=this;this.list.data=[],this.list.loading=!0,p.Z.menu.listTreeViewByTeam(this.teams.selected).then((function(t){e.list.data=t.data})).finally((function(){e.list.loading=!1}))},handleMenuMoved:function(e,t){for(var a=0;a0&&this.handleMenuMoved(t[a].id,t[a].children);return t},handleGetMenusWithoutLevel:function(e,t){for(var a=0;a0&&this.handleGetMenusWithoutLevel(n,t)}return t},handleSelectedTeam:function(e){var t=e.key;this.teams.selected=t,this.handleCloseCreateMenuForm(),this.handleListMenus()},handleUpdateBatch:function(){var e=this;this.formBatch.saving=!0,p.Z.menu.updateInBatch(this.computedMenusWithoutLevel).catch((function(){e.formBatch.errored=!0})).finally((function(){setTimeout((function(){e.formBatch.saving=!1,e.handleListMenus()}),400)}))},handleDeleteBatch:function(){var e=this;e.$confirm({title:"提示",content:"确定要删除当前分组以及所有菜单?",onOk:function(){p.Z.menu.deleteInBatch(e.computedMenuIds).finally((function(){e.handleListTeams(!0)}))}})},handleTeamFormVisibleChange:function(e){e&&(this.teams.form.model.team=null)},handleCreateTeam:function(){var e=this;e.$refs.teamForm.validate((function(t){t&&(e.teams.data.includes(e.teams.form.model.team)||e.teams.data.push(e.teams.form.model.team),e.teams.selected=e.teams.form.model.team,e.teams.form.visible=!1,e.handleListMenus())}))},handleOpenCreateMenuForm:function(){this.form.visible=!0,this.form.model={team:this.teams.selected,target:"_self"}},handleCloseCreateMenuForm:function(){this.form.visible=!1,this.form.model={}},handleCreateMenuSucceed:function(){this.handleCloseCreateMenuForm(),this.handleListMenus()},handleSetDefaultTeam:function(){var e=this;this.teams.default.saving=!0,p.Z.option.saveMapView({default_menu_team:this.teams.selected}).catch((function(){e.teams.default.errored=!0})).finally((function(){setTimeout((function(){e.teams.default.saving=!1}),400)}))},handleSetDefaultTeamCallback:function(){this.teams.default.errored?this.teams.default.errored=!1:this.refreshOptionsCache()}})},O=Z,E=(0,k.Z)(O,n,i,!1,null,null,null),z=E.exports}}]); \ No newline at end of file +(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[565],{53303:function(e,t,a){var n=a(15820),i=Math.floor,l=function(e,t){var a=e.length,o=i(a/2);return a<8?s(e,t):r(e,l(n(e,0,o),t),l(n(e,o),t),t)},s=function(e,t){var a,n,i=e.length,l=1;while(l0)e[n]=e[--n];n!==l++&&(e[n]=a)}return e},r=function(e,t,a,n){var i=t.length,l=a.length,s=0,r=0;while(s3)){if(h)return!0;if(p)return p<603;var e,t,a,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(n=0;n<47;n++)g.push({k:t+n,v:a})}for(g.sort((function(e,t){return t.v-e.v})),n=0;no(a)?1:-1}};n({target:"Array",proto:!0,forced:x},{sort:function(e){void 0!==e&&l(e);var t=s(this);if(M)return void 0===e?v(t):v(t,e);var a,n,i=[],o=r(t);for(n=0;ng)throw h(v);for(i=u(k,n),m=0;my-n+a;m--)delete k[m-1]}else if(a>n)for(m=y-n;m>C;m--)d=m+n-1,b=m+a-1,d in k?k[b]=k[d]:delete k[b];for(m=0;m0?a("a-menu",{staticClass:"w-full",attrs:{mode:"inline"},on:{select:e.handleSelectedTeam},model:{value:e.selectedTeam,callback:function(t){e.selectedTeam=t},expression:"selectedTeam"}},e._l(e.teams.data,(function(t){return a("a-menu-item",{key:t},[e._v(" "+e._s(""===t?"未分组":t)+e._s(e.defaultMenuTeam===t?"(默认)":"")+" ")])})),1):e._e()],1)],1),a("a-popover",{attrs:{destroyTooltipOnHide:"",placement:"bottom",title:"新增分组",trigger:"click"},on:{visibleChange:e.handleTeamFormVisibleChange},model:{value:e.teams.form.visible,callback:function(t){e.$set(e.teams.form,"visible",t)},expression:"teams.form.visible"}},[a("template",{slot:"content"},[a("a-form-model",{ref:"teamForm",attrs:{model:e.teams.form.model,rules:e.teams.form.rules},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleCreateTeam.apply(null,arguments)}}},[a("a-form-model-item",{attrs:{prop:"team"}},[a("a-input",{attrs:{autoFocus:""},model:{value:e.teams.form.model.team,callback:function(t){e.$set(e.teams.form.model,"team",t)},expression:"teams.form.model.team"}})],1),a("a-form-model-item",{staticStyle:{"margin-bottom":"0"}},[a("a-button",{attrs:{type:"primary"},on:{click:e.handleCreateTeam}},[e._v(" 新增 ")])],1)],1)],1),a("a-button",{staticClass:"mt-3",attrs:{block:"",type:"primary"}},[e._v(" 新增分组 ")])],2)],2)],1),a("a-col",{staticClass:"pb-3",attrs:{lg:18,md:18,sm:24,xl:18,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"}}},[a("template",{slot:"title"},[a("span",[e._v(" "+e._s(e.menuListTitle)+" ")]),e.list.data.length<=0&&!e.list.loading?a("a-tooltip",{attrs:{slot:"action",title:"分组下的菜单为空时,该分组也不会保存"},slot:"action"},[a("a-icon",{staticClass:"cursor-pointer",attrs:{type:"info-circle-o"}})],1):e._e()],1),a("template",{slot:"extra"},[a("a-space",[a("ReactiveButton",{attrs:{disabled:e.list.data.length<=0,errored:e.formBatch.errored,loading:e.formBatch.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存"},on:{callback:function(t){e.formBatch.errored=!1},click:e.handleUpdateBatch}}),e.form.visible?a("a-button",{attrs:{type:"default"},on:{click:function(t){return e.handleCloseCreateMenuForm()}}},[e._v(" 取消新增 ")]):a("a-button",{attrs:{ghost:"",type:"primary"},on:{click:function(t){return e.handleOpenCreateMenuForm()}}},[e._v(" 新增 ")]),a("a-dropdown",{attrs:{trigger:["click"]}},[a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",{on:{click:function(t){e.menuInternalLinkSelector.visible=!0}}},[e._v(" 从系统预设链接添加 ")]),a("a-menu-item",{on:{click:e.handleDeleteBatch}},[e._v(" 删除当前组 ")])],1),a("a-button",[e._v(" 其他 "),a("a-icon",{attrs:{type:"down"}})],1)],1)],1)],1),a("a-spin",{attrs:{spinning:e.list.loading}},[e.form.visible?a("MenuForm",{attrs:{menu:e.form.model},on:{cancel:function(t){return e.handleCloseCreateMenuForm()},succeed:function(t){return e.handleCreateMenuSucceed()}}}):e._e(),0!==e.list.data.length||e.list.loading||e.form.visible?e._e():a("a-empty"),a("MenuTreeNode",{attrs:{excludedTeams:e.excludedTeams},on:{reload:e.handleListMenus},model:{value:e.list.data,callback:function(t){e.$set(e.list,"data",t)},expression:"list.data"}})],1)],2)],1)],1),a("MenuInternalLinkSelector",{attrs:{team:e.teams.selected},on:{reload:e.handleListMenus},model:{value:e.menuInternalLinkSelector.visible,callback:function(t){e.$set(e.menuInternalLinkSelector,"visible",t)},expression:"menuInternalLinkSelector.visible"}})],1)},i=[],l=a(86475),s=(a(82395),a(90195),a(31875),a(2923),a(18329),a(27474)),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-list",{attrs:{"item-layout":"horizontal"}},[a("draggable",e._b({staticClass:"item-container",attrs:{list:e.list,value:e.value,handle:".mover",tag:"div"},on:{end:function(t){e.isDragging=!1},input:e.emitter,start:function(t){e.isDragging=!0}}},"draggable",e.dragOptions,!1),[a("transition-group",e._l(e.realValue,(function(t){return a("div",{key:t.id},[a("a-list-item",{staticClass:"menu-item"},[a("a-list-item-meta",[a("span",{staticClass:"inline-block font-bold title",attrs:{slot:"title"},slot:"title"},[a("a-icon",{staticClass:"cursor-pointer mover",attrs:{type:"bars"}}),e._v(" "+e._s(t.name)+" "),"_blank"===t.target?a("a-tooltip",{attrs:{title:"外部链接"}},[a("a-icon",{attrs:{type:"link"}})],1):e._e(),e._v(" "+e._s(t.formVisible?"(正在编辑)":"")+" ")],1),a("span",{staticClass:"inline-block",attrs:{slot:"description"},slot:"description"},[a("a",{staticClass:"ant-anchor-link-title",attrs:{href:t.url,target:"_blank"}},[e._v(" "+e._s(t.url)+" ")])])]),a("template",{slot:"actions"},[t.formVisible?a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleCloseCreateMenuForm(t)}}},[e._v("取消编辑")]):a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleOpenEditForm(t)}}},[e._v(" 编辑 ")])],1),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleDelete(t.id)}}},[e._v("删除")])],1),e.excludedTeams&&e.excludedTeams.length>0?a("template",{slot:"actions"},[a("a-dropdown",{attrs:{trigger:["click"]}},[a("a",{staticClass:"ant-dropdown-link",on:{click:function(e){return e.preventDefault()}}},[e._v(" 更多 "),a("a-icon",{attrs:{type:"down"}})],1),a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-sub-menu",{attrs:{title:"移动到分组"}},e._l(e.excludedTeams,(function(n,i){return a("a-menu-item",{key:i,on:{click:function(a){return e.handleMoveMenu(t,n)}}},[e._v(e._s(""===n?"未分组":n)+" ")])})),1)],1)],1)],1):e._e()],2),t.formVisible?a("MenuForm",{attrs:{menu:t},on:{cancel:function(a){return e.handleCloseCreateMenuForm(t)},succeed:function(a){return e.handleUpdateMenuSucceed(t)}}}):e._e(),a("div",{staticClass:"a-list-nested",staticStyle:{"margin-left":"44px"}},[a("MenuTreeNode",{attrs:{excludedTeams:e.excludedTeams,list:t.children},on:{reload:e.onReloadEmit}})],1)],1)})),0)],1)],1)},o=[],u=a(75725),c=a(47458),m=(a(70315),a(41479),a(77513)),d=a.n(m),h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-form-model",{ref:"menuForm",attrs:{model:e.menuModel,rules:e.form.rules,labelAlign:"left"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleCreateOrUpdateMenu.apply(null,arguments)}}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{lg:8,md:12,sm:12,xl:8,xs:12}},[a("a-form-model-item",{attrs:{help:"* 页面上所显示的名称",label:"名称",prop:"name"}},[a("a-input",{attrs:{autoFocus:""},model:{value:e.menuModel.name,callback:function(t){e.$set(e.menuModel,"name",t)},expression:"menuModel.name"}})],1)],1),a("a-col",{attrs:{lg:8,md:12,sm:12,xl:8,xs:12}},[a("a-form-model-item",{attrs:{help:"* 菜单的地址",label:"地址",prop:"url"}},[a("a-input",{model:{value:e.menuModel.url,callback:function(t){e.$set(e.menuModel,"url",t)},expression:"menuModel.url"}})],1)],1),a("a-col",{attrs:{lg:8,md:12,sm:12,xl:8,xs:12}},[a("a-form-model-item",{attrs:{help:"* 请根据主题的支持情况选填",label:"图标",prop:"icon"}},[a("a-input",{model:{value:e.menuModel.icon,callback:function(t){e.$set(e.menuModel,"icon",t)},expression:"menuModel.icon"}})],1)],1),a("a-col",{attrs:{lg:8,md:12,sm:12,xl:8,xs:12}},[a("a-form-model-item",{attrs:{label:"打开方式",prop:"target"}},[a("a-radio-group",{attrs:{options:e.targets},model:{value:e.menuModel.target,callback:function(t){e.$set(e.menuModel,"target",t)},expression:"menuModel.target"}})],1)],1),a("a-col",{attrs:{lg:8,md:12,sm:12,xl:8,xs:12}},[a("a-form-model-item",{attrs:{colon:!1,label:" "}},[a("a-space",[a("ReactiveButton",{attrs:{errored:e.form.errored,loading:e.form.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:e.handleSavedCallback,click:e.handleCreateOrUpdateMenu}}),a("a-button",{on:{click:e.handleCancel}},[e._v("取消")])],1)],1)],1)],1)],1)],1)},f=[],p=a(17132),g=[{value:"_self",label:"当前窗口"},{value:"_blank",label:"新窗口"}],v={name:"MenuForm",model:{prop:"menu",event:"input"},props:{menu:{type:Object,default:function(){return{}}}},computed:{menuModel:{get:function(){return this.menu},set:function(e){this.$emit("input",e)}},isUpdateMode:function(){return!!this.menuModel.id}},data:function(){return{targets:g,form:{rules:{name:[{required:!0,message:"* 菜单名称不能为空",trigger:["change"]},{max:50,message:"* 菜单名称的字符长度不能超过 50",trigger:["change"]}],url:[{required:!0,message:"* 菜单地址不能为空",trigger:["change"]},{max:1023,message:"* 菜单地址的字符长度不能超过 1023",trigger:["change"]}],icon:[{max:50,message:"* 菜单图标的字符长度不能超过 50",trigger:["change"]}]},saving:!1,errored:!1}}},methods:{handleCreateOrUpdateMenu:function(){var e=this;e.$refs.menuForm.validate((function(t){t&&(e.form.saving=!0,e.isUpdateMode?p.Z.menu.update(e.menuModel.id,e.menuModel).catch((function(){e.form.errored=!0})).finally((function(){setTimeout((function(){e.form.saving=!1}),400)})):p.Z.menu.create(e.menuModel).catch((function(){e.form.errored=!0})).finally((function(){setTimeout((function(){e.form.saving=!1}),400)})))}))},handleSavedCallback:function(){var e=this;e.form.errored?e.form.errored=!1:(e.menuModel={target:"_self"},e.$emit("succeed"))},handleCancel:function(){this.$emit("cancel")}}},b=v,k=a(42177),y=(0,k.Z)(b,h,f,!1,null,null,null),C=y.exports,M=a(13159),x={name:"MenuTreeNode",components:{draggable:d(),MenuForm:C},props:{value:{required:!1,type:Array,default:null},list:{required:!1,type:Array,default:null},excludedTeams:{required:!1,type:Array,default:null}},data:function(){return{isDragging:!1}},computed:{dragOptions:function(){return{animation:300,group:"description",ghostClass:"ghost",chosenClass:"chosen",dragClass:"drag",emptyInsertThreshold:20}},realValue:function(){return this.value?this.value:this.list}},methods:{emitter:function(e){this.$emit("input",e)},handleDelete:function(e){var t=this;t.$confirm({title:"提示",content:"确定要删除当前菜单?",onOk:function(){p.Z.menu["delete"](e).finally((function(){t.onReloadEmit()}))}})},handleOpenEditForm:function(e){this.$set(e,"formVisible",!0)},handleUpdateMenuSucceed:function(e){this.handleCloseCreateMenuForm(e)},handleCloseCreateMenuForm:function(e){this.$set(e,"formVisible",!1)},handleMoveMenu:function(e,t){var a=this;return(0,c.Z)(regeneratorRuntime.mark((function n(){var i,l,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=(0,M.I8)(e),i.team=t,i.parentId=0,i.priority=0,l=function e(a){return a&&0!==a.length?a.reduce((function(a,n){var i=n.children.length>0?e(n.children):[];return n.team=t,[].concat((0,u.Z)(a),[n],(0,u.Z)(i))}),[]):[]},s=[i].concat((0,u.Z)(l(i.children))),a.$log.debug("menu list as flat list:",s),n.prev=7,n.next=10,p.Z.menu.updateInBatch(s);case 10:a.$emit("reload"),n.next=16;break;case 13:n.prev=13,n.t0=n["catch"](7),a.$log.error("Fail to update menu in batch",n.t0);case 16:case"end":return n.stop()}}),n,null,[[7,13]])})))()},onReloadEmit:function(){this.$emit("reload")}}},_=x,T=(0,k.Z)(_,r,o,!1,null,"bf844320",null),S=T.exports,w=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{bodyStyle:{padding:"0 24px 24px"},width:1024,title:"从系统预设链接添加菜单"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[a("template",{slot:"footer"},[a("a-button",{on:{click:e.handleCancel}},[e._v(" 取消")]),a("ReactiveButton",{attrs:{disabled:e.menus&&e.menus.length<=0,errored:e.saveErrored,loading:e.saving,erroredText:"添加失败",loadedText:"添加成功",text:"添加"},on:{callback:e.handleCreateBatchCallback,click:e.handleCreateBatch}})],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{span:12}},[a("a-spin",{attrs:{spinning:e.loading}},[a("div",{staticClass:"custom-tab-wrapper"},[a("a-tabs",{attrs:{animated:{inkBar:!0,tabPane:!1},"default-active-key":"1"}},[a("a-tab-pane",{key:"1",attrs:{"force-render":"",tab:"分类目录"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.categories,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.fullPath,title:t.name}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleInsertPre(t.name,t.fullPath)}}},[a("a-icon",{attrs:{type:"plus-circle"}})],1)],1)],2)})),1)],1),a("a-tab-pane",{key:"2",attrs:{tab:"标签"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.tags,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.fullPath,title:t.name}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleInsertPre(t.name,t.fullPath)}}},[a("a-icon",{attrs:{type:"plus-circle"}})],1)],1)],2)})),1)],1),a("a-tab-pane",{key:"3",attrs:{tab:"独立页面"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.sheet.independents,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.fullPath,title:t.title}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleInsertPre(t.name,t.fullPath)}}},[a("a-icon",{attrs:{type:"plus-circle"}})],1)],1)],2)})),1)],1),a("a-tab-pane",{key:"4",attrs:{tab:"自定义页面"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.sheet.customs.data,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.fullPath,title:t.title}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleInsertPre(t.name,t.fullPath)}}},[a("a-icon",{attrs:{type:"plus-circle"}})],1)],1)],2)})),1),a("div",{staticClass:"page-wrapper"},[a("a-pagination",{staticClass:"pagination",attrs:{current:e.sheet.customs.pagination.page,defaultPageSize:e.sheet.customs.pagination.size,pageSizeOptions:["10","20","50","100"],total:e.sheet.customs.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:e.handleSheetPaginationChange,showSizeChange:e.handleSheetPaginationChange}})],1)],1),a("a-tab-pane",{key:"5",attrs:{tab:"其他"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.otherInternalLinks,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.url,title:t.name}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return e.handleInsertPre(t.name,t.url)}}},[a("a-icon",{attrs:{type:"plus-circle"}})],1)],1)],2)})),1)],1)],1)],1)])],1),a("a-col",{attrs:{span:12}},[a("div",{staticClass:"custom-tab-wrapper"},[a("a-tabs",{attrs:{"default-active-key":"1"}},[a("a-tab-pane",{key:"1",attrs:{"force-render":"",tab:"备选"}},[a("a-list",{attrs:{"item-layout":"horizontal"}},e._l(e.menus,(function(t,n){return a("a-list-item",{key:n},[a("a-list-item-meta",{attrs:{description:t.url,title:t.name}}),a("template",{slot:"actions"},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(t){return e.handleRemovePre(n)}}},[a("a-icon",{attrs:{type:"close-circle"}})],1)],1)],2)})),1)],1)],1)],1)])],1)],2)},L=[],I=(a(29888),a(45107),a(19003),a(55792),{name:"MenuInternalLinkSelector",props:{value:{type:Boolean,default:!1},team:{type:String,default:""}},data:function(){return{options:{},categories:[],tags:[],menus:[],sheet:{independents:[],customs:{data:[],pagination:{page:1,size:10,sort:null,total:1},queryParam:{page:0,size:10,sort:null}}},loading:!1,saving:!1,saveErrored:!1}},computed:{visible:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},otherInternalLinks:function(){var e=this.options,t=this.options.path_suffix?this.options.path_suffix:"";return[{name:"分类目录",url:"".concat(e.blog_url,"/").concat(e.categories_prefix).concat(t)},{name:"标签",url:"".concat(e.blog_url,"/").concat(e.tags_prefix).concat(t)},{name:"文章归档",url:"".concat(e.blog_url,"/").concat(e.archives_prefix).concat(t)},{name:"RSS",url:"".concat(e.blog_url,"/atom.xml")},{name:"网站地图",url:"".concat(e.blog_url,"/sitemap.xml")},{name:"网站地图",url:"".concat(e.blog_url,"/sitemap.html")}]}},watch:{visible:function(e){e&&(this.handleFetchAll(),this.handleListSheets())}},methods:{handleFetchAll:function(){var e=this;this.loading=!0,Promise.all([p.Z.option.listAsMapView(),p.Z.category.list({sort:[],more:!1}),p.Z.tag.list({more:!1}),p.Z.sheet.listIndependents()]).then((function(t){e.options=t[0].data,e.categories=t[1].data,e.tags=t[2].data,e.sheet.independents=t[3].data})).finally((function(){e.loading=!1}))},handleListSheets:function(){var e=this;this.sheet.customs.queryParam.page=this.sheet.customs.pagination.page-1,this.sheet.customs.queryParam.size=this.sheet.customs.pagination.size,this.sheet.customs.queryParam.sort=this.sheet.customs.pagination.sort,p.Z.sheet.list(this.sheet.customs.queryParam).then((function(t){e.sheet.customs.data=t.data.content,e.sheet.customs.pagination.total=t.data.total}))},handleSheetPaginationChange:function(e,t){this.sheet.customs.pagination.page=e,this.sheet.customs.pagination.size=t,this.handleListSheets()},handleInsertPre:function(e,t){this.menus.push({name:e,url:t,team:this.team})},handleRemovePre:function(e){this.menus.splice(e,1)},handleCancel:function(){this.menus=[],this.visible=!1,this.$emit("reload")},handleCreateBatch:function(){var e=this;this.saving=!0,p.Z.menu.createInBatch(this.menus).catch((function(){e.saveErrored=!1})).finally((function(){setTimeout((function(){e.saving=!1}),400)}))},handleCreateBatchCallback:function(){this.saveErrored?this.saveErrored=!1:this.handleCancel()}}}),F=I,B=(0,k.Z)(F,w,L,!1,null,null,null),P=B.exports,$=a(98906),Z={components:{PageView:s.B4,MenuTreeNode:S,MenuForm:C,MenuInternalLinkSelector:P},data:function(){return{list:{data:[],loading:!1},form:{visible:!1,model:{}},formBatch:{saving:!1,errored:!1},teams:{data:[],loading:!1,selected:null,form:{visible:!1,model:{team:null},rules:{team:[{required:!0,message:"分组名称不能为空",trigger:["change"]}]}},default:{saving:!1,errored:!1}},menuInternalLinkSelector:{visible:!1}}},computed:(0,l.Z)((0,l.Z)({},(0,$.Se)(["options"])),{},{computedMenusMoved:function(){var e=(0,M.I8)(this.list.data);return this.handleMenuMoved(0,e)},computedMenusWithoutLevel:function(){return this.handleGetMenusWithoutLevel(this.computedMenusMoved,[])},computedMenuIds:function(){return this.computedMenusWithoutLevel.map((function(e){return e.id}))},selectedTeam:{get:function(){return[this.teams.selected]},set:function(e){this.teams.selected=e[0]}},menuListTitle:function(){return""===this.teams.selected?"未分组":this.teams.selected},excludedTeams:function(){var e=this;return this.teams.data.filter((function(t){return t!==e.teams.selected}))},defaultMenuTeam:function(){return this.options.default_menu_team?this.options.default_menu_team:""}}),created:function(){this.handleListTeams()},methods:(0,l.Z)((0,l.Z)({},(0,$.nv)(["refreshOptionsCache"])),{},{handleListTeams:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.teams.loading=!0,p.Z.menu.listTeams().then((function(a){e.teams.data=a.data,e.teams.selected&&!t||(e.teams.selected=e.teams.data[0]),e.handleListMenus()})).finally((function(){e.teams.loading=!1}))},handleListMenus:function(){var e=this;this.list.data=[],this.list.loading=!0,p.Z.menu.listTreeViewByTeam(this.teams.selected).then((function(t){e.list.data=t.data})).finally((function(){e.list.loading=!1}))},handleMenuMoved:function(e,t){for(var a=0;a0&&this.handleMenuMoved(t[a].id,t[a].children);return t},handleGetMenusWithoutLevel:function(e,t){for(var a=0;a0&&this.handleGetMenusWithoutLevel(n,t)}return t},handleSelectedTeam:function(e){var t=e.key;this.teams.selected=t,this.handleCloseCreateMenuForm(),this.handleListMenus()},handleUpdateBatch:function(){var e=this;this.formBatch.saving=!0,p.Z.menu.updateInBatch(this.computedMenusWithoutLevel).catch((function(){e.formBatch.errored=!0})).finally((function(){setTimeout((function(){e.formBatch.saving=!1,e.handleListMenus()}),400)}))},handleDeleteBatch:function(){var e=this;e.$confirm({title:"提示",content:"确定要删除当前分组以及所有菜单?",onOk:function(){p.Z.menu.deleteInBatch(e.computedMenuIds).finally((function(){e.handleListTeams(!0)}))}})},handleTeamFormVisibleChange:function(e){e&&(this.teams.form.model.team=null)},handleCreateTeam:function(){var e=this;e.$refs.teamForm.validate((function(t){t&&(e.teams.data.includes(e.teams.form.model.team)||e.teams.data.push(e.teams.form.model.team),e.teams.selected=e.teams.form.model.team,e.teams.form.visible=!1,e.handleListMenus())}))},handleOpenCreateMenuForm:function(){this.form.visible=!0,this.form.model={team:this.teams.selected,target:"_self"}},handleCloseCreateMenuForm:function(){this.form.visible=!1,this.form.model={}},handleCreateMenuSucceed:function(){this.handleCloseCreateMenuForm(),this.handleListMenus()},handleSetDefaultTeam:function(){var e=this;this.teams.default.saving=!0,p.Z.option.saveMapView({default_menu_team:this.teams.selected}).catch((function(){e.teams.default.errored=!0})).finally((function(){setTimeout((function(){e.teams.default.saving=!1}),400)}))},handleSetDefaultTeamCallback:function(){this.teams.default.errored?this.teams.default.errored=!1:this.refreshOptionsCache()}})},O=Z,E=(0,k.Z)(O,n,i,!1,null,null,null),z=E.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/598.79fca811.js b/src/main/resources/admin/js/598.7c59f56e.js similarity index 98% rename from src/main/resources/admin/js/598.79fca811.js rename to src/main/resources/admin/js/598.7c59f56e.js index a12682b6d8..5c53699606 100644 --- a/src/main/resources/admin/js/598.79fca811.js +++ b/src/main/resources/admin/js/598.7c59f56e.js @@ -1 +1 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[598],{30598:function(t,e,a){a.r(e),a.d(e,{default:function(){return h}});var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("page-view",[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{staticClass:"table-operator"},[a("a-button",{attrs:{type:"danger"},on:{click:t.handleClearActionLogs}},[t._v("清空操作日志")])],1),a("div",{staticClass:"mt-4"},[a("a-table",{attrs:{columns:t.list.columns,dataSource:t.list.data,loading:t.list.loading,pagination:!1,rowKey:function(t){return t.id},scrollToFirstRowOnChange:!0},scopedSlots:t._u([{key:"type",fn:function(e){return[t._v(" "+t._s(t._f("typeConvert")(e))+" ")]}},{key:"ipAddress",fn:function(e){return[a("div",{staticClass:"blur hover:blur-none transition-all"},[t._v(t._s(e))])]}},{key:"createTime",fn:function(e){return[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[t._v(" "+t._s(t._f("moment")(e))+" ")]),t._v(" "+t._s(t._f("timeAgo")(e))+" ")],2)]}}])}),a("div",{staticClass:"page-wrapper"},[a("a-pagination",{staticClass:"pagination",attrs:{current:t.pagination.page,defaultPageSize:t.pagination.size,pageSizeOptions:["10","20","50","100"],total:t.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:t.handlePageChange,showSizeChange:t.handlePageSizeChange}})],1)],1)])],1)},i=[],s=a(47458),r=(a(41479),a(70315),a(26278)),o=a(17132),l=a(94671),c=[{title:"ID",dataIndex:"id"},{title:"类型",dataIndex:"type",scopedSlots:{customRender:"type"}},{title:"关键值",dataIndex:"logKey"},{title:"内容",dataIndex:"content"},{title:"IP",dataIndex:"ipAddress",scopedSlots:{customRender:"ipAddress"}},{title:"操作时间",dataIndex:"createTime",scopedSlots:{customRender:"createTime"}}],d={name:"ActionLog",components:{PageView:r.B4},data:function(){return{list:{columns:c,data:[],total:0,loading:!1,params:{page:0,size:50}}}},computed:{pagination:function(){return{page:this.list.params.page+1,size:this.list.params.size,total:this.list.total}}},created:function(){this.handleListActionLogs()},methods:{handleListActionLogs:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.list.loading=!0,e.next=4,o.Z.log.list(t.list.params);case 4:a=e.sent,t.list.data=a.data.content,t.list.total=a.data.total,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),t.$log.error(e.t0);case 12:return e.prev=12,t.list.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})))()},handlePageChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListActionLogs()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListActionLogs()},handleClearActionLogs:function(){var t=this;t.$confirm({title:"提示",maskClosable:!0,content:"是否确定要清空所有操作日志?",onOk:function(){return(0,s.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.Z.log.clear();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e["catch"](0),t.$log.error("Failed to clear action logs.",e.t0);case 8:return e.prev=8,e.next=11,t.handleListActionLogs();case 11:return e.finish(8);case 12:case"end":return e.stop()}}),e,null,[[0,5,8,12]])})))()}})}},filters:{typeConvert:function(t){var e=l.Js[t];return e?e.text:t}}},u=d,p=a(42177),g=(0,p.Z)(u,n,i,!1,null,null,null),h=g.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[598],{30598:function(t,e,a){a.r(e),a.d(e,{default:function(){return h}});var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("page-view",[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{staticClass:"table-operator"},[a("a-button",{attrs:{type:"danger"},on:{click:t.handleClearActionLogs}},[t._v("清空操作日志")])],1),a("div",{staticClass:"mt-4"},[a("a-table",{attrs:{columns:t.list.columns,dataSource:t.list.data,loading:t.list.loading,pagination:!1,rowKey:function(t){return t.id},scrollToFirstRowOnChange:!0},scopedSlots:t._u([{key:"type",fn:function(e){return[t._v(" "+t._s(t._f("typeConvert")(e))+" ")]}},{key:"ipAddress",fn:function(e){return[a("div",{staticClass:"blur hover:blur-none transition-all"},[t._v(t._s(e))])]}},{key:"createTime",fn:function(e){return[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[t._v(" "+t._s(t._f("moment")(e))+" ")]),t._v(" "+t._s(t._f("timeAgo")(e))+" ")],2)]}}])}),a("div",{staticClass:"page-wrapper"},[a("a-pagination",{staticClass:"pagination",attrs:{current:t.pagination.page,defaultPageSize:t.pagination.size,pageSizeOptions:["10","20","50","100"],total:t.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:t.handlePageChange,showSizeChange:t.handlePageSizeChange}})],1)],1)])],1)},i=[],s=a(47458),r=(a(41479),a(70315),a(27474)),o=a(17132),l=a(94671),c=[{title:"ID",dataIndex:"id"},{title:"类型",dataIndex:"type",scopedSlots:{customRender:"type"}},{title:"关键值",dataIndex:"logKey"},{title:"内容",dataIndex:"content"},{title:"IP",dataIndex:"ipAddress",scopedSlots:{customRender:"ipAddress"}},{title:"操作时间",dataIndex:"createTime",scopedSlots:{customRender:"createTime"}}],d={name:"ActionLog",components:{PageView:r.B4},data:function(){return{list:{columns:c,data:[],total:0,loading:!1,params:{page:0,size:50}}}},computed:{pagination:function(){return{page:this.list.params.page+1,size:this.list.params.size,total:this.list.total}}},created:function(){this.handleListActionLogs()},methods:{handleListActionLogs:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.list.loading=!0,e.next=4,o.Z.log.list(t.list.params);case 4:a=e.sent,t.list.data=a.data.content,t.list.total=a.data.total,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),t.$log.error(e.t0);case 12:return e.prev=12,t.list.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})))()},handlePageChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListActionLogs()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListActionLogs()},handleClearActionLogs:function(){var t=this;t.$confirm({title:"提示",maskClosable:!0,content:"是否确定要清空所有操作日志?",onOk:function(){return(0,s.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.Z.log.clear();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e["catch"](0),t.$log.error("Failed to clear action logs.",e.t0);case 8:return e.prev=8,e.next=11,t.handleListActionLogs();case 11:return e.finish(8);case 12:case"end":return e.stop()}}),e,null,[[0,5,8,12]])})))()}})}},filters:{typeConvert:function(t){var e=l.Js[t];return e?e.text:t}}},u=d,p=a(42177),g=(0,p.Z)(u,n,i,!1,null,null,null),h=g.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/614.8a3d7245.js b/src/main/resources/admin/js/614.8a3d7245.js new file mode 100644 index 0000000000..2f788d6d13 --- /dev/null +++ b/src/main/resources/admin/js/614.8a3d7245.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[614],{75614:function(t,e,a){a.r(e),a.d(e,{default:function(){return g}});var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("page-view",[a("a-row",{attrs:{gutter:12,align:"middle",type:"flex"}},[a("a-col",{staticClass:"pb-3",attrs:{span:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline"}},[a("a-row",{attrs:{gutter:48}},[a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"关键词:"}},[a("a-input",{on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery()}},model:{value:t.list.params.keyword,callback:function(e){t.$set(t.list.params,"keyword",e)},expression:"list.params.keyword"}})],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"存储位置:"}},[a("a-select",{attrs:{loading:t.types.loading,allowClear:""},on:{change:function(e){return t.handleQuery()}},model:{value:t.list.params.attachmentType,callback:function(e){t.$set(t.list.params,"attachmentType",e)},expression:"list.params.attachmentType"}},t._l(t.types.data,(function(e){return a("a-select-option",{key:e,attrs:{value:e}},[t._v(" "+t._s(t._f("typeText")(e))+" ")])})),1)],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"文件类型:"}},[a("a-select",{attrs:{loading:t.mediaTypes.loading,allowClear:""},on:{change:function(e){return t.handleQuery()}},model:{value:t.list.params.mediaType,callback:function(e){t.$set(t.list.params,"mediaType",e)},expression:"list.params.mediaType"}},t._l(t.mediaTypes.data,(function(e,n){return a("a-select-option",{key:n,attrs:{value:e}},[t._v(t._s(e)+" ")])})),1)],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("span",{staticClass:"table-page-search-submitButtons"},[a("a-space",[a("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleQuery()}}},[t._v("查询")]),a("a-button",{on:{click:function(e){return t.handleResetParam()}}},[t._v("重置")])],1)],1)])],1)],1)],1),a("div",{staticClass:"mb-0 table-operator"},[a("a-button",{attrs:{icon:"cloud-upload",type:"primary"},on:{click:function(e){t.upload.visible=!0}}},[t._v("上传")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:t.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"check-circle",type:"primary"},on:{click:t.handleSelectAll}},[t._v(" 全选 ")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:t.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"delete",type:"danger"},on:{click:t.handleDeleteAttachmentInBatch}},[t._v(" 删除 ")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:t.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"close"},on:{click:function(e){t.list.selected=[]}}},[t._v(" 取消")])],1)])],1),a("a-col",{attrs:{span:24}},[a("a-list",{staticClass:"attachments-group",attrs:{dataSource:t.list.data,grid:{gutter:6,xs:2,sm:2,md:4,lg:6,xl:6,xxl:6},loading:t.list.loading},scopedSlots:t._u([{key:"renderItem",fn:function(e,n){return[a("a-list-item",{key:n,on:{click:function(a){return t.handleItemClick(e)},mouseenter:function(a){return t.$set(e,"hover",!0)},mouseleave:function(a){return t.$set(e,"hover",!1)},contextmenu:function(a){return a.preventDefault(),t.handleContextMenu(a,e)}}},[a("div",{staticClass:"border border-solid",class:t.isItemSelect(e)?"border-blue-600":"border-slate-200"},[a("div",{staticClass:"attach-thumb attachments-group-item"},[t.isImage(e)?a("span",{staticClass:"attachments-group-item-img",style:{backgroundImage:"url('"+encodeURI(e.thumbPath)+"')"},attrs:{loading:"lazy"}}):a("span",{staticClass:"attachments-group-item-type"},[t._v(t._s(e.suffix))])]),a("a-card-meta",{staticClass:"p-2 cursor-pointer",scopedSlots:t._u([{key:"description",fn:function(){return[a("a-tooltip",{attrs:{title:e.name}},[a("div",{staticClass:"truncate"},[t._v(t._s(e.name))])])]},proxy:!0}],null,!0)}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:!t.isItemSelect(e)&&e.hover,expression:"!isItemSelect(item) && item.hover"}],staticClass:"absolute top-1 right-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px",color:"rgb(37 99 235)"},attrs:{theme:"twoTone",type:"plus-circle"},on:{click:function(a){return a.stopPropagation(),t.handleSelect(e)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.isItemSelect(e),expression:"isItemSelect(item)"}],staticClass:"absolute top-1 right-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px",color:"rgb(37 99 235)"},attrs:{theme:"twoTone",type:"check-circle"}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:e.hover&&t.list.selected.length>0,expression:"item.hover && list.selected.length > 0"}],staticClass:"absolute top-1 left-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px"},attrs:{theme:"twoTone",type:"profile"},on:{click:function(a){return a.stopPropagation(),t.handleOpenDetail(e)}}})],1)])]}}])})],1)],1),a("div",{staticClass:"page-wrapper"},[a("a-pagination",{staticClass:"pagination",attrs:{current:t.pagination.page,defaultPageSize:t.pagination.size,pageSizeOptions:["18","36","54","72","90","108"],total:t.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:t.handlePageChange,showSizeChange:t.handlePageSizeChange}})],1),a("AttachmentUploadModal",{attrs:{visible:t.upload.visible},on:{"update:visible":function(e){return t.$set(t.upload,"visible",e)},close:t.onUploadClose}}),a("AttachmentDetailModal",{attrs:{addToPhoto:!0,attachment:t.list.current,visible:t.detailVisible},on:{"update:visible":function(e){t.detailVisible=e},delete:function(e){return t.handleListAttachments()}},scopedSlots:t._u([{key:"extraFooter",fn:function(){return[a("a-button",{attrs:{disabled:t.selectPreviousButtonDisabled},on:{click:t.handleSelectPrevious}},[t._v("上一项")]),a("a-button",{attrs:{disabled:t.selectNextButtonDisabled},on:{click:t.handleSelectNext}},[t._v("下一项")])]},proxy:!0}])})],1)},s=[],i=a(75725),r=a(47458),l=(a(70315),a(3662),a(15928),a(41479),a(90195),a(31875),a(21082),a(82395),a(91411)),o=a(27474),c=a(17132),u=a(94671),d={components:{PageView:o.B4},mixins:[l.jB,l.KT],filters:{typeText:function(t){return u.k[t].text}},data:function(){return{list:{data:[],loading:!1,total:0,hasNext:!1,hasPrevious:!1,params:{page:0,size:18,keyword:void 0,mediaType:void 0,attachmentType:void 0},selected:[],current:{}},mediaTypes:{data:[],loading:!1},types:{data:[],loading:!1},upload:{visible:!1},detailVisible:!1}},computed:{isImage:function(){return function(t){return!(!t||!t.mediaType)&&t.mediaType.startsWith("image")}},isItemSelect:function(){return function(t){return this.list.selected.findIndex((function(e){return e.id===t.id}))>-1}},pagination:function(){return{page:this.list.params.page+1,size:this.list.params.size,total:this.list.total}},selectPreviousButtonDisabled:function(){var t=this,e=this.list.data.findIndex((function(e){return e.id===t.list.current.id}));return 0===e&&!this.list.hasPrevious},selectNextButtonDisabled:function(){var t=this,e=this.list.data.findIndex((function(e){return e.id===t.list.current.id}));return e===this.list.data.length-1&&!this.list.hasNext}},created:function(){this.handleListAttachments(),this.handleListMediaTypes(),this.handleListTypes()},methods:{handleListAttachments:function(){var t=this;return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.list.loading=!0,e.next=4,c.Z.attachment.list(t.list.params);case 4:a=e.sent,t.list.data=a.data.content,t.list.total=a.data.total,t.list.hasNext=a.data.hasNext,t.list.hasPrevious=a.data.hasPrevious,e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),t.$log.error(e.t0);case 14:return e.prev=14,t.list.loading=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})))()},handleListMediaTypes:function(){var t=this;return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.mediaTypes.loading=!0,e.next=4,c.Z.attachment.listMediaTypes();case 4:a=e.sent,t.mediaTypes.data=a.data,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error(e.t0);case 11:return e.prev=11,t.mediaTypes.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()},handleListTypes:function(){var t=this;return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.types.loading=!0,e.next=4,c.Z.attachment.listTypes();case 4:a=e.sent,t.types.data=a.data,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error(e.t0);case 11:return e.prev=11,t.types.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()},handleOpenDetail:function(t){this.list.current=t,this.detailVisible=!0},handleItemClick:function(t){this.list.selected.length<=0?this.handleOpenDetail(t):this.isItemSelect(t)?this.handleUnselect(t):this.handleSelect(t)},handleSelect:function(t){this.list.selected=[].concat((0,i.Z)(this.list.selected),[t])},handleUnselect:function(t){this.list.selected=this.list.selected.filter((function(e){return e.id!==t.id}))},handleSelectAll:function(){this.list.selected=this.list.data},handleContextMenu:function(t,e){var a=this;return this.$contextmenu({items:[{label:"复制".concat(this.isImage(e)?"图片":"文件","链接"),onClick:function(){var t="".concat(encodeURI(e.path));a.$copyText(t).then((function(t){a.$log.debug("copy",t),a.$message.success("复制成功!")})).catch((function(t){a.$log.debug("copy.err",t),a.$message.error("复制失败!")}))},divided:!0},{disabled:!this.isImage(e),label:"复制 Markdown 格式链接",onClick:function(){var t="![".concat(e.name,"](").concat(encodeURI(e.path),")");a.$copyText(t).then((function(t){a.$log.debug("copy",t),a.$message.success("复制成功!")})).catch((function(t){a.$log.debug("copy.err",t),a.$message.error("复制失败!")}))},divided:!0},{label:"删除",onClick:function(){a.$confirm({title:"提示",content:"确定删除该附件?",okText:"确定",cancelText:"取消",onOk:function(){var t=(0,r.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c.Z.attachment["delete"](e.id);case 2:return t.next=4,a.handleListAttachments();case 4:a.handleUnselect(e);case 5:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()})}}],event:t,minWidth:210}),!1},handlePageChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListAttachments()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListAttachments()},handleResetParam:function(){this.list.params.keyword=void 0,this.list.params.mediaType=void 0,this.list.params.attachmentType=void 0,this.handlePageChange(),this.handleListMediaTypes(),this.handleListTypes()},handleQuery:function(){this.handlePageChange()},onUploadClose:function(){this.handlePageChange(),this.handleListMediaTypes(),this.handleListTypes()},handleDeleteAttachmentInBatch:function(){var t=this;this.list.selected.length<=0?this.$message.warn("你还未选择任何附件,请至少选择一个!"):this.$confirm({title:"确定要批量删除选中的附件吗?",content:"一旦删除不可恢复,请谨慎操作",onOk:function(){return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,a=t.list.selected.map((function(t){return t.id})),e.next=4,c.Z.attachment.deleteInBatch(a);case 4:t.list.selected=[],t.$message.success("删除成功"),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error("Failed to delete selected attachments",e.t0);case 11:return e.prev=11,e.next=14,t.handleListAttachments();case 14:return e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[0,8,11,15]])})))()}})},handleSelectPrevious:function(){var t=this;return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.list.data.findIndex((function(e){return e.id===t.list.current.id})),!(a>0)){e.next=4;break}return t.list.current=t.list.data[a-1],e.abrupt("return");case 4:if(0!==a||!t.list.hasPrevious){e.next=9;break}return t.list.params.page--,e.next=8,t.handleListAttachments();case 8:t.list.current=t.list.data[t.list.data.length-1];case 9:case"end":return e.stop()}}),e)})))()},handleSelectNext:function(){var t=this;return(0,r.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.list.data.findIndex((function(e){return e.id===t.list.current.id})),!(a请确认是否为 Halo 后台导出的文件。",name:"file"}})],1),i("div",{staticClass:"mt-8"},[t.isInstallMode?i("ReactiveButton",{attrs:{errored:t.form.installErrored,loading:t.form.installing,block:"",erroredText:"安装失败",icon:"check",loadedText:"安装成功",size:"large",text:"安装",type:"primary"},on:{callback:t.handleInstallCallback,click:t.handleInstall}}):t._e(),t.isImportMode?i("ReactiveButton",{attrs:{errored:t.form.importErrored,loading:t.form.importing,block:"",erroredText:"导入失败",icon:"import",loadedText:"导入成功",size:"large",text:"导入",type:"primary"},on:{callback:t.handleImportCallback,click:t.handleImport}}):t._e()],1)],1)],1)])],1)},s=[],a=i(47458),l=i(86475),o=(i(70315),i(87591),i(31875),i(30535),i(85018),i(17132)),r=i(98906),L={data:function(){var t=this,e=function(e,i,M){i!==t.form.model.password?M(new Error("确认密码与所输入的密码不一致")):M()};return{installationMode:"new",form:{model:{},rules:{username:[{required:!0,message:"* 用户名不能为空",trigger:["change"]},{max:50,message:"* 用户名的字符长度不能超过 50",trigger:["change"]}],nickname:[{required:!0,message:"* 用户昵称不能为空",trigger:["change"]},{max:255,message:"* 用户昵称的字符长度不能超过 255",trigger:["change"]}],email:[{required:!0,message:"* 电子邮件地址不能为空",trigger:["change"]},{max:127,message:"* 电子邮件地址的字符长度不能超过 127",trigger:["change"]},{pattern:/\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/g,message:"* 电子邮件地址的格式不正确",trigger:["change"]}],password:[{required:!0,message:"* 密码不能为空",trigger:["change"]},{min:8,max:100,message:"* 密码的字符长度必须在 8 - 100 之间",trigger:["change"]}],confirmPassword:[{required:!0,message:"* 确认密码不能为空",trigger:["change"]},{validator:e,trigger:["change"]}],url:[{required:!0,message:"* 博客地址不能为空",trigger:["change"]}],title:[{required:!0,message:"* 博客标题不能为空",trigger:["change"]}]},installing:!1,installErrored:!1,importing:!1,importErrored:!1,importData:null}}},beforeMount:function(){this.handleVerifyIsInstall(),this.$set(this.form.model,"url",window.location.protocol+"//"+window.location.host)},computed:{isInstallMode:function(){return"new"===this.installationMode},isImportMode:function(){return"import"===this.installationMode}},methods:(0,l.Z)((0,l.Z)({},(0,r.nv)(["installCleanToken"])),{},{handleVerifyIsInstall:function(){var t=this;return(0,a.Z)(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.Z.isInstalled();case 2:if(i=e.sent,!i.data){e.next=6;break}return e.next=6,t.$router.push({name:"Login"});case 6:case"end":return e.stop()}}),e)})))()},handleInstall:function(){var t=this;this.$refs.installationForm.validate((function(e){e&&(t.form.installing=!0,t.installCleanToken(t.form.model).then((function(e){t.$log.debug("Installation response",e)})).catch((function(){t.form.installErrored=!0})).finally((function(){setTimeout((function(){t.form.installing=!1}),400)})))}))},handleInstallCallback:function(){this.form.installErrored?this.form.installErrored=!1:(this.$message.success("安装成功!"),this.$router.push({name:"Login"}))},onImportUpload:function(t){var e=this;return this.$log.debug("Selected data",t),this.form.importData=t,new Promise((function(t){e.$log.debug("Handle uploading"),t()}))},handleImport:function(){var t=this;this.form.importData?(this.form.importing=!0,o.Z.migration.migrate(this.form.importData).then((function(){t.$log.debug("Migrated successfully")})).catch((function(){t.form.importErrored=!0})).finally((function(){setTimeout((function(){t.form.importing=!1}),400)}))):this.$message.warning("请先上传数据文件!")},handleImportCallback:function(){this.form.importErrored?this.form.importErrored=!1:(this.$message.success("导入成功!"),this.$router.replace({name:"Login"}))}})},j=L,N=i(42177),n=(0,N.Z)(j,M,s,!1,null,"33a5f3d0",null),I=n.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/644.7a8a08d0.js b/src/main/resources/admin/js/644.7a8a08d0.js new file mode 100644 index 0000000000..2d54adb7d5 --- /dev/null +++ b/src/main/resources/admin/js/644.7a8a08d0.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[644],{72644:function(e,t,s){s.r(t),s.d(t,{default:function(){return h}});var o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"container-wrapper animated fadeIn"},[e._m(0),s("div",{staticClass:"login-form"},[s("LoginForm",{on:{success:e.onLoginSucceed}}),e.resetPasswordButtonVisible?s("router-link",{staticClass:"tip",attrs:{to:{name:"ResetPassword"}}},[e._v(" 找回密码 ")]):e._e()],1)])},r=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"halo-logo"},[s("img",{attrs:{alt:"Halo Logo",src:"/images/logo.svg"}})])}],n=s(86475),i=s(98906),a=s(63618),u={components:{LoginForm:a.Z},data:function(){return{resetPasswordButtonVisible:!1}},beforeMount:function(){document.addEventListener("keydown",this.onRegisterResetPasswordKeydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.onRegisterResetPasswordKeydown)},methods:(0,n.Z)((0,n.Z)({},(0,i.nv)(["refreshUserCache","refreshOptionsCache"])),{},{onRegisterResetPasswordKeydown:function(e){72===e.keyCode&&(e.altKey||e.metaKey)&&e.shiftKey&&(e.preventDefault(),this.resetPasswordButtonVisible=!this.resetPasswordButtonVisible)},onLoginSucceed:function(){this.refreshUserCache(),this.refreshOptionsCache(),this.$route.query.redirect?this.$router.push(this.$route.query.redirect):this.$router.push({name:"Dashboard"})}})},c=u,d=s(42177),l=(0,d.Z)(c,o,r,!1,null,null,null),h=l.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/658.9e9f7a8d.js b/src/main/resources/admin/js/658.c46c4fa5.js similarity index 99% rename from src/main/resources/admin/js/658.9e9f7a8d.js rename to src/main/resources/admin/js/658.c46c4fa5.js index 16dc9100a9..7d8fd19753 100644 --- a/src/main/resources/admin/js/658.9e9f7a8d.js +++ b/src/main/resources/admin/js/658.c46c4fa5.js @@ -1 +1 @@ -(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[658],{53303:function(t,e,s){var a=s(15820),n=Math.floor,r=function(t,e){var s=t.length,l=n(s/2);return s<8?i(t,e):o(t,r(a(t,0,l),e),r(a(t,l),e),e)},i=function(t,e){var s,a,n=t.length,r=1;while(r0)t[a]=t[--a];a!==r++&&(t[a]=s)}return t},o=function(t,e,s,a){var n=e.length,r=s.length,i=0,o=0;while(i3)){if(h)return!0;if(m)return m<603;var t,e,s,a,n="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:s=3;break;case 68:case 71:s=4;break;default:s=2}for(a=0;a<47;a++)g.push({k:e+a,v:s})}for(g.sort((function(t,e){return e.v-t.v})),a=0;al(s)?1:-1}};a({target:"Array",proto:!0,forced:C},{sort:function(t){void 0!==t&&r(t);var e=i(this);if(x)return void 0===t?v(e):v(e,t);var s,a,n=[],l=o(e);for(a=0;a0&&void 0!==t[0])||t[0],s.prev=1,a&&(e.list.loading=!0),s.next=5,h.Z.post.list(e.list.params);case 5:n=s.sent,e.list.data=n.data.content,e.list.total=n.data.total,e.list.hasPrevious=n.data.hasPrevious,e.list.hasNext=n.data.hasNext,s.next=15;break;case 12:s.prev=12,s.t0=s["catch"](1),e.$log.error(s.t0);case 15:return s.prev=15,e.list.loading=!1,s.finish(15);case 18:case"end":return s.stop()}}),s,null,[[1,12,15,18]])})))()},handleListCategories:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.categories.loading=!0,e.next=4,h.Z.category.list({sort:[],more:!0});case 4:s=e.sent,t.categories.data=s.data,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error(e.t0);case 11:return e.prev=11,t.categories.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()},handleEditClick:function(t){this.$router.push({name:"PostEdit",query:{postId:t.id}})},onSelectionChange:function(t){this.selectedRowKeys=t,this.$log.debug("SelectedRowKeys: ".concat(t))},handlePageChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListPosts()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListPosts()},handleResetParam:function(){this.list.params.keyword=void 0,this.list.params.categoryId=void 0,this.list.params.statuses=this.defaultStatuses,this.list.params.status=void 0,this.selectedRowKeys=[],this.handlePageChange(1),this.handleListCategories()},handleQuery:function(){this.selectedRowKeys=[],this.handlePageChange(1)},handleChangeQueryStatus:function(t){t?(this.list.params.statuses=[t],this.list.params.status=t):(this.list.params.statuses=this.defaultStatuses,this.list.params.status=void 0),this.handleQuery()},handleChangeStatus:function(t,e){var s=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,h.Z.post.updateStatusById(t,e);case 3:s.$message.success("操作成功!"),a.next=9;break;case 6:a.prev=6,a.t0=a["catch"](0),s.$log.error("Failed to change post status",a.t0);case 9:return a.prev=9,a.next=12,s.handleListPosts();case 12:return a.finish(9);case 13:case"end":return a.stop()}}),a,null,[[0,6,9,13]])})))()},handleChangeStatusInBatch:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(e.selectedRowKeys.length<=0)){s.next=3;break}return e.$message.info("请至少选择一项!"),s.abrupt("return");case 3:e.$confirm({title:"提示",content:"确定要将所选的文章转为".concat(d.JQ[t].text,"状态吗?"),okText:"确定",cancelText:"取消",onOk:function(){var s=(0,l.Z)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,h.Z.post.updateStatusInBatch(e.selectedRowKeys,t);case 3:e.selectedRowKeys=[],e.$message.success("操作成功!"),s.next=10;break;case 7:s.prev=7,s.t0=s["catch"](0),e.$log.error("Failed to change status in batch",s.t0);case 10:return s.prev=10,s.next=13,e.handleListPosts();case 13:return s.finish(10);case 14:case"end":return s.stop()}}),s,null,[[0,7,10,14]])})));function a(){return s.apply(this,arguments)}return a}()});case 4:case"end":return s.stop()}}),s)})))()},handleDelete:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,h.Z.post["delete"](t);case 3:e.$message.success("删除成功!"),s.next=9;break;case 6:s.prev=6,s.t0=s["catch"](0),e.$log.error("Failed to delete post",s.t0);case 9:return s.prev=9,s.next=12,e.handleListPosts();case 12:return s.finish(9);case 13:case"end":return s.stop()}}),s,null,[[0,6,9,13]])})))()},handleDeleteInBatch:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.selectedRowKeys.length<=0)){e.next=3;break}return t.$message.info("请至少选择一项!"),e.abrupt("return");case 3:t.$confirm({title:"提示",content:"确定删除所选的文章吗?",okText:"确定",cancelText:"取消",onOk:function(){var e=(0,l.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h.Z.post.deleteInBatch(t.selectedRowKeys);case 3:t.selectedRowKeys=[],t.$message.success("删除成功!"),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),t.$log.error("Failed to delete posts in batch",e.t0);case 10:return e.prev=10,e.next=13,t.handleListPosts();case 13:return e.finish(10);case 14:case"end":return e.stop()}}),e,null,[[0,7,10,14]])})));function s(){return e.apply(this,arguments)}return s}()});case 4:case"end":return e.stop()}}),e)})))()},handleDeleteCurrentPage:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.list.data.length){e.next=3;break}return t.$message.info("当前页没有文章"),e.abrupt("return");case 3:t.$confirm({title:"提示",content:"确定删除当前页的所有文章吗?",okText:"确定",cancelText:"取消",onOk:function(){var e=(0,l.Z)(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,s=t.list.data.map((function(t){return t.id})),e.next=4,h.Z.post.deleteInBatch(s);case 4:t.$message.success("删除成功!"),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),t.$log.error("Failed to delete posts in batch",e.t0);case 10:return e.prev=10,e.next=13,t.handleListPosts();case 13:return e.finish(10);case 14:case"end":return e.stop()}}),e,null,[[0,7,10,14]])})));function s(){return e.apply(this,arguments)}return s}()});case 4:case"end":return e.stop()}}),e)})))()},handleOpenPostSettings:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function s(){var a,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,e.postSettingVisible=!0,e.postSettingLoading=!0,s.next=5,h.Z.post.get(t.id);case 5:a=s.sent,n=a.data,e.list.selected=n,s.next=13;break;case 10:s.prev=10,s.t0=s["catch"](0),e.$log.error("Failed to open post settings",s.t0);case 13:return s.prev=13,e.postSettingLoading=!1,s.finish(13);case 16:case"end":return s.stop()}}),s,null,[[0,10,13,16]])})))()},handleOpenPostComments:function(t){this.list.selected=t,this.postCommentVisible=!0},handlePreview:function(t){h.Z.post.getPreviewLinkById(t).then((function(t){window.open(t,"_blank")}))},onPostSavedCallback:function(){this.handleListPosts(!1)},onPostCommentsClose:function(){this.postCommentVisible=!1,this.list.selected={},this.handleListPosts(!1)},handleSelectPrevious:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var s,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(s>0)){e.next=9;break}return t.postSettingLoading=!0,e.next=5,h.Z.post.get(t.list.data[s-1].id);case 5:return a=e.sent,t.list.selected=a.data,t.postSettingLoading=!1,e.abrupt("return");case 9:if(0!==s||!t.list.hasPrevious){e.next=19;break}return t.list.params.page--,e.next=13,t.handleListPosts();case 13:return t.postSettingLoading=!0,e.next=16,h.Z.post.get(t.list.data[t.list.data.length-1].id);case 16:n=e.sent,t.list.selected=n.data,t.postSettingLoading=!1;case 19:case"end":return e.stop()}}),e)})))()},handleSelectNext:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var s,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(s0)t[a]=t[--a];a!==r++&&(t[a]=s)}return t},o=function(t,e,s,a){var n=e.length,r=s.length,i=0,o=0;while(i3)){if(h)return!0;if(m)return m<603;var t,e,s,a,n="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:s=3;break;case 68:case 71:s=4;break;default:s=2}for(a=0;a<47;a++)g.push({k:e+a,v:s})}for(g.sort((function(t,e){return e.v-t.v})),a=0;al(s)?1:-1}};a({target:"Array",proto:!0,forced:C},{sort:function(t){void 0!==t&&r(t);var e=i(this);if(x)return void 0===t?v(e):v(e,t);var s,a,n=[],l=o(e);for(a=0;a0&&void 0!==t[0])||t[0],s.prev=1,a&&(e.list.loading=!0),s.next=5,h.Z.post.list(e.list.params);case 5:n=s.sent,e.list.data=n.data.content,e.list.total=n.data.total,e.list.hasPrevious=n.data.hasPrevious,e.list.hasNext=n.data.hasNext,s.next=15;break;case 12:s.prev=12,s.t0=s["catch"](1),e.$log.error(s.t0);case 15:return s.prev=15,e.list.loading=!1,s.finish(15);case 18:case"end":return s.stop()}}),s,null,[[1,12,15,18]])})))()},handleListCategories:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.categories.loading=!0,e.next=4,h.Z.category.list({sort:[],more:!0});case 4:s=e.sent,t.categories.data=s.data,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error(e.t0);case 11:return e.prev=11,t.categories.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()},handleEditClick:function(t){this.$router.push({name:"PostEdit",query:{postId:t.id}})},onSelectionChange:function(t){this.selectedRowKeys=t,this.$log.debug("SelectedRowKeys: ".concat(t))},handlePageChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListPosts()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListPosts()},handleResetParam:function(){this.list.params.keyword=void 0,this.list.params.categoryId=void 0,this.list.params.statuses=this.defaultStatuses,this.list.params.status=void 0,this.selectedRowKeys=[],this.handlePageChange(1),this.handleListCategories()},handleQuery:function(){this.selectedRowKeys=[],this.handlePageChange(1)},handleChangeQueryStatus:function(t){t?(this.list.params.statuses=[t],this.list.params.status=t):(this.list.params.statuses=this.defaultStatuses,this.list.params.status=void 0),this.handleQuery()},handleChangeStatus:function(t,e){var s=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,h.Z.post.updateStatusById(t,e);case 3:s.$message.success("操作成功!"),a.next=9;break;case 6:a.prev=6,a.t0=a["catch"](0),s.$log.error("Failed to change post status",a.t0);case 9:return a.prev=9,a.next=12,s.handleListPosts();case 12:return a.finish(9);case 13:case"end":return a.stop()}}),a,null,[[0,6,9,13]])})))()},handleChangeStatusInBatch:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(e.selectedRowKeys.length<=0)){s.next=3;break}return e.$message.info("请至少选择一项!"),s.abrupt("return");case 3:e.$confirm({title:"提示",content:"确定要将所选的文章转为".concat(d.JQ[t].text,"状态吗?"),okText:"确定",cancelText:"取消",onOk:function(){var s=(0,l.Z)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,h.Z.post.updateStatusInBatch(e.selectedRowKeys,t);case 3:e.selectedRowKeys=[],e.$message.success("操作成功!"),s.next=10;break;case 7:s.prev=7,s.t0=s["catch"](0),e.$log.error("Failed to change status in batch",s.t0);case 10:return s.prev=10,s.next=13,e.handleListPosts();case 13:return s.finish(10);case 14:case"end":return s.stop()}}),s,null,[[0,7,10,14]])})));function a(){return s.apply(this,arguments)}return a}()});case 4:case"end":return s.stop()}}),s)})))()},handleDelete:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,h.Z.post["delete"](t);case 3:e.$message.success("删除成功!"),s.next=9;break;case 6:s.prev=6,s.t0=s["catch"](0),e.$log.error("Failed to delete post",s.t0);case 9:return s.prev=9,s.next=12,e.handleListPosts();case 12:return s.finish(9);case 13:case"end":return s.stop()}}),s,null,[[0,6,9,13]])})))()},handleDeleteInBatch:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.selectedRowKeys.length<=0)){e.next=3;break}return t.$message.info("请至少选择一项!"),e.abrupt("return");case 3:t.$confirm({title:"提示",content:"确定删除所选的文章吗?",okText:"确定",cancelText:"取消",onOk:function(){var e=(0,l.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h.Z.post.deleteInBatch(t.selectedRowKeys);case 3:t.selectedRowKeys=[],t.$message.success("删除成功!"),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),t.$log.error("Failed to delete posts in batch",e.t0);case 10:return e.prev=10,e.next=13,t.handleListPosts();case 13:return e.finish(10);case 14:case"end":return e.stop()}}),e,null,[[0,7,10,14]])})));function s(){return e.apply(this,arguments)}return s}()});case 4:case"end":return e.stop()}}),e)})))()},handleDeleteCurrentPage:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.list.data.length){e.next=3;break}return t.$message.info("当前页没有文章"),e.abrupt("return");case 3:t.$confirm({title:"提示",content:"确定删除当前页的所有文章吗?",okText:"确定",cancelText:"取消",onOk:function(){var e=(0,l.Z)(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,s=t.list.data.map((function(t){return t.id})),e.next=4,h.Z.post.deleteInBatch(s);case 4:t.$message.success("删除成功!"),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),t.$log.error("Failed to delete posts in batch",e.t0);case 10:return e.prev=10,e.next=13,t.handleListPosts();case 13:return e.finish(10);case 14:case"end":return e.stop()}}),e,null,[[0,7,10,14]])})));function s(){return e.apply(this,arguments)}return s}()});case 4:case"end":return e.stop()}}),e)})))()},handleOpenPostSettings:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function s(){var a,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,e.postSettingVisible=!0,e.postSettingLoading=!0,s.next=5,h.Z.post.get(t.id);case 5:a=s.sent,n=a.data,e.list.selected=n,s.next=13;break;case 10:s.prev=10,s.t0=s["catch"](0),e.$log.error("Failed to open post settings",s.t0);case 13:return s.prev=13,e.postSettingLoading=!1,s.finish(13);case 16:case"end":return s.stop()}}),s,null,[[0,10,13,16]])})))()},handleOpenPostComments:function(t){this.list.selected=t,this.postCommentVisible=!0},handlePreview:function(t){h.Z.post.getPreviewLinkById(t).then((function(t){window.open(t,"_blank")}))},onPostSavedCallback:function(){this.handleListPosts(!1)},onPostCommentsClose:function(){this.postCommentVisible=!1,this.list.selected={},this.handleListPosts(!1)},handleSelectPrevious:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var s,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(s>0)){e.next=9;break}return t.postSettingLoading=!0,e.next=5,h.Z.post.get(t.list.data[s-1].id);case 5:return a=e.sent,t.list.selected=a.data,t.postSettingLoading=!1,e.abrupt("return");case 9:if(0!==s||!t.list.hasPrevious){e.next=19;break}return t.list.params.page--,e.next=13,t.handleListPosts();case 13:return t.postSettingLoading=!0,e.next=16,h.Z.post.get(t.list.data[t.list.data.length-1].id);case 16:n=e.sent,t.list.selected=n.data,t.postSettingLoading=!1;case 19:case"end":return e.stop()}}),e)})))()},handleSelectNext:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var s,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(s"+s+""}},42873:function(t,e,a){var o=a(32640);t.exports=function(t){return o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},68576:function(t,e,a){"use strict";var o=a(79644),n=a(33466),i=a(42873);o({target:"String",proto:!0,forced:i("link")},{link:function(t){return n(this,"a","href",t)}})},10703:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return h}});var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("page-view",[a("a-row",{attrs:{gutter:12}},[a("a-col",{staticClass:"pb-3",attrs:{lg:10,md:10,sm:24,xl:10,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},title:t.title}},[a("a-form-model",{ref:"linkForm",attrs:{model:t.form.model,rules:t.form.rules,layout:"horizontal"}},[a("a-form-model-item",{attrs:{label:"网站名称:",prop:"name"}},[a("a-input",{model:{value:t.form.model.name,callback:function(e){t.$set(t.form.model,"name",e)},expression:"form.model.name"}})],1),a("a-form-model-item",{attrs:{help:"* 需要加上 http://",label:"网站地址:",prop:"url"}},[a("a-input",{model:{value:t.form.model.url,callback:function(e){t.$set(t.form.model,"url",e)},expression:"form.model.url"}})],1),a("a-form-model-item",{attrs:{label:"Logo:",prop:"logo"}},[a("a-input",{model:{value:t.form.model.logo,callback:function(e){t.$set(t.form.model,"logo",e)},expression:"form.model.logo"}})],1),a("a-form-model-item",{attrs:{label:"分组:",prop:"team"}},[a("a-auto-complete",{attrs:{dataSource:t.computedTeams,allowClear:""},model:{value:t.form.model.team,callback:function(e){t.$set(t.form.model,"team",e)},expression:"form.model.team"}})],1),a("a-form-model-item",{attrs:{label:"排序编号:",prop:"priority"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:t.form.model.priority,callback:function(e){t.$set(t.form.model,"priority",e)},expression:"form.model.priority"}})],1),a("a-form-model-item",{attrs:{label:"描述:",prop:"description"}},[a("a-input",{attrs:{autoSize:{minRows:5},type:"textarea"},model:{value:t.form.model.description,callback:function(e){t.$set(t.form.model,"description",e)},expression:"form.model.description"}})],1),a("a-form-model-item",[t.isUpdateMode?a("a-button-group",[a("ReactiveButton",{attrs:{errored:t.form.errored,loading:t.form.saving,erroredText:"更新失败",loadedText:"更新成功",text:"更新",type:"primary"},on:{callback:t.handleSavedCallback,click:t.handleCreateOrUpdateLink}}),t.isUpdateMode?a("a-button",{attrs:{type:"dashed"},on:{click:function(e){t.form.model={}}}},[t._v("返回添加")]):t._e()],1):a("ReactiveButton",{attrs:{errored:t.form.errored,loading:t.form.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:t.handleSavedCallback,click:t.handleCreateOrUpdateLink}})],1)],1)],1)],1),a("a-col",{staticClass:"pb-3",attrs:{lg:14,md:14,sm:24,xl:14,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},title:"所有友情链接"}},[t.isMobile()?a("a-list",{attrs:{dataSource:t.table.data,loading:t.table.loading,itemLayout:"vertical",size:"large"},scopedSlots:t._u([{key:"renderItem",fn:function(e,o){return a("a-list-item",{key:o},[a("template",{slot:"actions"},[a("a-dropdown",{attrs:{trigger:["click"],placement:"topLeft"}},[a("span",[a("a-icon",{attrs:{type:"bars"}})],1),a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",{on:{click:function(a){t.form.model=e}}},[t._v("编辑")]),a("a-menu-item",[a("a-popconfirm",{attrs:{title:"你确定要删除【"+e.name+"】链接?",cancelText:"取消",okText:"确定"},on:{confirm:function(a){return t.handleDeleteLink(e.id)}}},[t._v(" 删除 ")])],1)],1)],1)],1),a("template",{slot:"extra"},[a("span",[t._v(" "+t._s(e.team)+" ")])]),a("a-list-item-meta",[a("template",{slot:"description"},[t._v(" "+t._s(e.description)+" ")]),a("span",{staticStyle:{"max-width":"300px",display:"block","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},attrs:{slot:"title"},slot:"title"},[t._v(" "+t._s(e.name)+" ")])],2),a("a",{attrs:{href:e.url,target:"_blank"}},[t._v(t._s(e.url))])],2)}}],null,!1,3158558575)}):a("a-table",{attrs:{columns:t.table.columns,dataSource:t.table.data,loading:t.table.loading,rowKey:function(t){return t.id},scrollToFirstRowOnChange:!0},scopedSlots:t._u([{key:"url",fn:function(e){return[a("a",{attrs:{href:e,target:"_blank"}},[t._v(t._s(e))])]}},{key:"name",fn:function(e){return a("ellipsis",{attrs:{length:15,tooltip:""}},[t._v(t._s(e))])}},{key:"action",fn:function(e,o){return a("span",{},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(e){t.form.model=o}}},[t._v("编辑")]),a("a-divider",{attrs:{type:"vertical"}}),a("a-popconfirm",{attrs:{title:"你确定要删除【"+o.name+"】链接?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleDeleteLink(o.id)}}},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("删除")])],1)],1)}}])})],1)],1)],1),a("div",{staticStyle:{position:"fixed",bottom:"30px",right:"30px"}},[a("a-button",{attrs:{icon:"setting",shape:"circle",size:"large",type:"primary"},on:{click:function(e){t.optionsModal.visible=!0}}})],1),a("a-modal",{attrs:{afterClose:function(){return t.optionsModal.visible=!1},title:"页面设置"},model:{value:t.optionsModal.visible,callback:function(e){t.$set(t.optionsModal,"visible",e)},expression:"optionsModal.visible"}},[a("template",{slot:"footer"},[a("a-button",{key:"submit",attrs:{type:"primary"},on:{click:function(e){return t.handleSaveOptions()}}},[t._v("保存")])],1),a("a-form",{attrs:{layout:"vertical"}},[a("a-form-item",{attrs:{help:"* 需要主题进行适配",label:"页面标题:"}},[a("a-input",{model:{value:t.optionsModal.data.links_title,callback:function(e){t.$set(t.optionsModal.data,"links_title",e)},expression:"optionsModal.data.links_title"}})],1)],1)],2)],1)},n=[],i=a(86475),l=(a(90195),a(31875),a(68576),a(26278)),r=a(98906),s=a(91411),d=a(17132),m=[{title:"名称",dataIndex:"name",ellipsis:!0,scopedSlots:{customRender:"name"}},{title:"网址",dataIndex:"url",ellipsis:!0,scopedSlots:{customRender:"url"}},{title:"分组",ellipsis:!0,dataIndex:"team"},{title:"排序",dataIndex:"priority"},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}],c={mixins:[s.jB,s.KT],components:{PageView:l.B4},data:function(){return{table:{columns:m,data:[],loading:!1},form:{model:{},saving:!1,errored:!1,rules:{name:[{required:!0,message:"* 友情链接名称不能为空",trigger:["change"]},{max:255,message:"* 友情链接名称的字符长度不能超过 255",trigger:["change"]}],url:[{required:!0,message:"* 友情链接地址不能为空",trigger:["change"]},{max:1023,message:"* 友情链接地址的字符长度不能超过 1023",trigger:["change"]},{type:"url",message:"* 友情链接地址格式有误",trigger:["change"]}],logo:[{max:1023,message:"* 友情链接 Logo 的字符长度不能超过 1023",trigger:["change"]}],description:[{max:255,message:"* 友情链接描述的字符长度不能超过 255",trigger:["change"]}],team:[{max:255,message:"* 友情链接分组的字符长度 255",trigger:["change"]}]}},optionsModal:{visible:!1,data:[]},teams:[]}},computed:{title:function(){return this.isUpdateMode?"修改友情链接":"添加友情链接"},isUpdateMode:function(){return!!this.form.model.id},computedTeams:function(){return this.teams.filter((function(t){return""!==t}))}},created:function(){this.handleListLinks(),this.handleListLinkTeams(),this.handleListOptions()},methods:(0,i.Z)((0,i.Z)({},(0,r.nv)(["refreshOptionsCache"])),{},{handleListLinks:function(){var t=this;this.table.loading=!0,d.Z.link.list().then((function(e){t.table.data=e.data})).finally((function(){t.table.loading=!1}))},handleListLinkTeams:function(){var t=this;d.Z.link.listTeams().then((function(e){t.teams=e.data}))},handleListOptions:function(){var t=this;d.Z.option.list().then((function(e){t.optionsModal.data=e.data}))},handleDeleteLink:function(t){var e=this;d.Z.link["delete"](t).then((function(){e.$message.success("删除成功!")})).finally((function(){e.handleListLinks(),e.handleListLinkTeams()}))},handleCreateOrUpdateLink:function(){var t=this,e=this;e.$refs.linkForm.validate((function(a){a&&(e.form.saving=!0,e.isUpdateMode?d.Z.link.update(e.form.model.id,e.form.model).catch((function(){t.form.errored=!0})).finally((function(){setTimeout((function(){e.form.saving=!1}),400)})):d.Z.link.create(e.form.model).catch((function(){t.form.errored=!0})).finally((function(){setTimeout((function(){e.form.saving=!1}),400)})))}))},handleSavedCallback:function(){this.form.errored?this.form.errored=!1:(this.form.model={},this.handleListLinks(),this.handleListLinkTeams())},handleSaveOptions:function(){var t=this;d.Z.option.save(this.optionsModal.data).then((function(){t.$message.success("保存成功!"),t.optionsModal.visible=!1})).finally((function(){t.handleListOptions(),t.refreshOptionsCache()}))}})},u=c,p=a(42177),f=(0,p.Z)(u,o,n,!1,null,null,null),h=f.exports}}]); \ No newline at end of file +(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[703],{33466:function(t,e,a){var o=a(33691),n=a(36325),i=a(43150),l=/"/g,r=o("".replace);t.exports=function(t,e,a,o){var s=i(n(t)),d="<"+e;return""!==a&&(d+=" "+a+'="'+r(i(o),l,""")+'"'),d+">"+s+""}},42873:function(t,e,a){var o=a(32640);t.exports=function(t){return o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},68576:function(t,e,a){"use strict";var o=a(79644),n=a(33466),i=a(42873);o({target:"String",proto:!0,forced:i("link")},{link:function(t){return n(this,"a","href",t)}})},10703:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return h}});var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("page-view",[a("a-row",{attrs:{gutter:12}},[a("a-col",{staticClass:"pb-3",attrs:{lg:10,md:10,sm:24,xl:10,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},title:t.title}},[a("a-form-model",{ref:"linkForm",attrs:{model:t.form.model,rules:t.form.rules,layout:"horizontal"}},[a("a-form-model-item",{attrs:{label:"网站名称:",prop:"name"}},[a("a-input",{model:{value:t.form.model.name,callback:function(e){t.$set(t.form.model,"name",e)},expression:"form.model.name"}})],1),a("a-form-model-item",{attrs:{help:"* 需要加上 http://",label:"网站地址:",prop:"url"}},[a("a-input",{model:{value:t.form.model.url,callback:function(e){t.$set(t.form.model,"url",e)},expression:"form.model.url"}})],1),a("a-form-model-item",{attrs:{label:"Logo:",prop:"logo"}},[a("a-input",{model:{value:t.form.model.logo,callback:function(e){t.$set(t.form.model,"logo",e)},expression:"form.model.logo"}})],1),a("a-form-model-item",{attrs:{label:"分组:",prop:"team"}},[a("a-auto-complete",{attrs:{dataSource:t.computedTeams,allowClear:""},model:{value:t.form.model.team,callback:function(e){t.$set(t.form.model,"team",e)},expression:"form.model.team"}})],1),a("a-form-model-item",{attrs:{label:"排序编号:",prop:"priority"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:t.form.model.priority,callback:function(e){t.$set(t.form.model,"priority",e)},expression:"form.model.priority"}})],1),a("a-form-model-item",{attrs:{label:"描述:",prop:"description"}},[a("a-input",{attrs:{autoSize:{minRows:5},type:"textarea"},model:{value:t.form.model.description,callback:function(e){t.$set(t.form.model,"description",e)},expression:"form.model.description"}})],1),a("a-form-model-item",[t.isUpdateMode?a("a-button-group",[a("ReactiveButton",{attrs:{errored:t.form.errored,loading:t.form.saving,erroredText:"更新失败",loadedText:"更新成功",text:"更新",type:"primary"},on:{callback:t.handleSavedCallback,click:t.handleCreateOrUpdateLink}}),t.isUpdateMode?a("a-button",{attrs:{type:"dashed"},on:{click:function(e){t.form.model={}}}},[t._v("返回添加")]):t._e()],1):a("ReactiveButton",{attrs:{errored:t.form.errored,loading:t.form.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:t.handleSavedCallback,click:t.handleCreateOrUpdateLink}})],1)],1)],1)],1),a("a-col",{staticClass:"pb-3",attrs:{lg:14,md:14,sm:24,xl:14,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},title:"所有友情链接"}},[t.isMobile()?a("a-list",{attrs:{dataSource:t.table.data,loading:t.table.loading,itemLayout:"vertical",size:"large"},scopedSlots:t._u([{key:"renderItem",fn:function(e,o){return a("a-list-item",{key:o},[a("template",{slot:"actions"},[a("a-dropdown",{attrs:{trigger:["click"],placement:"topLeft"}},[a("span",[a("a-icon",{attrs:{type:"bars"}})],1),a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",{on:{click:function(a){t.form.model=e}}},[t._v("编辑")]),a("a-menu-item",[a("a-popconfirm",{attrs:{title:"你确定要删除【"+e.name+"】链接?",cancelText:"取消",okText:"确定"},on:{confirm:function(a){return t.handleDeleteLink(e.id)}}},[t._v(" 删除 ")])],1)],1)],1)],1),a("template",{slot:"extra"},[a("span",[t._v(" "+t._s(e.team)+" ")])]),a("a-list-item-meta",[a("template",{slot:"description"},[t._v(" "+t._s(e.description)+" ")]),a("span",{staticStyle:{"max-width":"300px",display:"block","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},attrs:{slot:"title"},slot:"title"},[t._v(" "+t._s(e.name)+" ")])],2),a("a",{attrs:{href:e.url,target:"_blank"}},[t._v(t._s(e.url))])],2)}}],null,!1,3158558575)}):a("a-table",{attrs:{columns:t.table.columns,dataSource:t.table.data,loading:t.table.loading,rowKey:function(t){return t.id},scrollToFirstRowOnChange:!0},scopedSlots:t._u([{key:"url",fn:function(e){return[a("a",{attrs:{href:e,target:"_blank"}},[t._v(t._s(e))])]}},{key:"name",fn:function(e){return a("ellipsis",{attrs:{length:15,tooltip:""}},[t._v(t._s(e))])}},{key:"action",fn:function(e,o){return a("span",{},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(e){t.form.model=o}}},[t._v("编辑")]),a("a-divider",{attrs:{type:"vertical"}}),a("a-popconfirm",{attrs:{title:"你确定要删除【"+o.name+"】链接?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleDeleteLink(o.id)}}},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("删除")])],1)],1)}}])})],1)],1)],1),a("div",{staticStyle:{position:"fixed",bottom:"30px",right:"30px"}},[a("a-button",{attrs:{icon:"setting",shape:"circle",size:"large",type:"primary"},on:{click:function(e){t.optionsModal.visible=!0}}})],1),a("a-modal",{attrs:{afterClose:function(){return t.optionsModal.visible=!1},title:"页面设置"},model:{value:t.optionsModal.visible,callback:function(e){t.$set(t.optionsModal,"visible",e)},expression:"optionsModal.visible"}},[a("template",{slot:"footer"},[a("a-button",{key:"submit",attrs:{type:"primary"},on:{click:function(e){return t.handleSaveOptions()}}},[t._v("保存")])],1),a("a-form",{attrs:{layout:"vertical"}},[a("a-form-item",{attrs:{help:"* 需要主题进行适配",label:"页面标题:"}},[a("a-input",{model:{value:t.optionsModal.data.links_title,callback:function(e){t.$set(t.optionsModal.data,"links_title",e)},expression:"optionsModal.data.links_title"}})],1)],1)],2)],1)},n=[],i=a(86475),l=(a(90195),a(31875),a(68576),a(27474)),r=a(98906),s=a(91411),d=a(17132),m=[{title:"名称",dataIndex:"name",ellipsis:!0,scopedSlots:{customRender:"name"}},{title:"网址",dataIndex:"url",ellipsis:!0,scopedSlots:{customRender:"url"}},{title:"分组",ellipsis:!0,dataIndex:"team"},{title:"排序",dataIndex:"priority"},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}],c={mixins:[s.jB,s.KT],components:{PageView:l.B4},data:function(){return{table:{columns:m,data:[],loading:!1},form:{model:{},saving:!1,errored:!1,rules:{name:[{required:!0,message:"* 友情链接名称不能为空",trigger:["change"]},{max:255,message:"* 友情链接名称的字符长度不能超过 255",trigger:["change"]}],url:[{required:!0,message:"* 友情链接地址不能为空",trigger:["change"]},{max:1023,message:"* 友情链接地址的字符长度不能超过 1023",trigger:["change"]},{type:"url",message:"* 友情链接地址格式有误",trigger:["change"]}],logo:[{max:1023,message:"* 友情链接 Logo 的字符长度不能超过 1023",trigger:["change"]}],description:[{max:255,message:"* 友情链接描述的字符长度不能超过 255",trigger:["change"]}],team:[{max:255,message:"* 友情链接分组的字符长度 255",trigger:["change"]}]}},optionsModal:{visible:!1,data:[]},teams:[]}},computed:{title:function(){return this.isUpdateMode?"修改友情链接":"添加友情链接"},isUpdateMode:function(){return!!this.form.model.id},computedTeams:function(){return this.teams.filter((function(t){return""!==t}))}},created:function(){this.handleListLinks(),this.handleListLinkTeams(),this.handleListOptions()},methods:(0,i.Z)((0,i.Z)({},(0,r.nv)(["refreshOptionsCache"])),{},{handleListLinks:function(){var t=this;this.table.loading=!0,d.Z.link.list().then((function(e){t.table.data=e.data})).finally((function(){t.table.loading=!1}))},handleListLinkTeams:function(){var t=this;d.Z.link.listTeams().then((function(e){t.teams=e.data}))},handleListOptions:function(){var t=this;d.Z.option.list().then((function(e){t.optionsModal.data=e.data}))},handleDeleteLink:function(t){var e=this;d.Z.link["delete"](t).then((function(){e.$message.success("删除成功!")})).finally((function(){e.handleListLinks(),e.handleListLinkTeams()}))},handleCreateOrUpdateLink:function(){var t=this,e=this;e.$refs.linkForm.validate((function(a){a&&(e.form.saving=!0,e.isUpdateMode?d.Z.link.update(e.form.model.id,e.form.model).catch((function(){t.form.errored=!0})).finally((function(){setTimeout((function(){e.form.saving=!1}),400)})):d.Z.link.create(e.form.model).catch((function(){t.form.errored=!0})).finally((function(){setTimeout((function(){e.form.saving=!1}),400)})))}))},handleSavedCallback:function(){this.form.errored?this.form.errored=!1:(this.form.model={},this.handleListLinks(),this.handleListLinkTeams())},handleSaveOptions:function(){var t=this;d.Z.option.save(this.optionsModal.data).then((function(){t.$message.success("保存成功!"),t.optionsModal.visible=!1})).finally((function(){t.handleListOptions(),t.refreshOptionsCache()}))}})},u=c,p=a(42177),f=(0,p.Z)(u,o,n,!1,null,null,null),h=f.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/757.ccdd183e.js b/src/main/resources/admin/js/757.896a9a43.js similarity index 98% rename from src/main/resources/admin/js/757.ccdd183e.js rename to src/main/resources/admin/js/757.896a9a43.js index adae5d9c66..5eccdb38f3 100644 --- a/src/main/resources/admin/js/757.ccdd183e.js +++ b/src/main/resources/admin/js/757.896a9a43.js @@ -1 +1 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[757],{63757:function(e,t,o){o.r(t),o.d(t,{default:function(){return u}});var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("page-view",[o("a-row",{attrs:{gutter:12}},[o("a-col",{staticClass:"pb-3",attrs:{lg:10,md:10,sm:24,xl:10,xs:24}},[o("a-card",{attrs:{bodyStyle:{padding:"16px"},title:e.title}},[o("a-form-model",{ref:"tagForm",attrs:{model:e.form.model,rules:e.form.rules,layout:"horizontal"}},[o("a-form-model-item",{attrs:{help:"* 页面上所显示的名称",label:"名称:",prop:"name"}},[o("a-input",{model:{value:e.form.model.name,callback:function(t){e.$set(e.form.model,"name",t)},expression:"form.model.name"}})],1),o("a-form-model-item",{attrs:{help:"* 一般为单个标签页面的标识,最好为英文",label:"别名:",prop:"slug"}},[o("a-input",{model:{value:e.form.model.slug,callback:function(t){e.$set(e.form.model,"slug",t)},expression:"form.model.slug"}})],1),o("a-form-model-item",{attrs:{label:"颜色:",prop:"color"}},[o("a-input",{scopedSlots:e._u([{key:"addonAfter",fn:function(){return[o("verte",{staticStyle:{cursor:"pointer"},attrs:{model:"hex",picker:"square"},model:{value:e.form.model.color,callback:function(t){e.$set(e.form.model,"color",t)},expression:"form.model.color"}})]},proxy:!0}]),model:{value:e.form.model.color,callback:function(t){e.$set(e.form.model,"color",t)},expression:"form.model.color"}})],1),o("a-form-model-item",{attrs:{help:"* 在标签页面可展示,需要主题支持",label:"封面图:",prop:"thumbnail"}},[o("AttachmentInput",{attrs:{title:"选择封面图"},model:{value:e.form.model.thumbnail,callback:function(t){e.$set(e.form.model,"thumbnail",t)},expression:"form.model.thumbnail"}})],1),o("a-form-model-item",[e.isUpdateMode?o("a-button-group",[o("ReactiveButton",{attrs:{errored:e.form.errored,loading:e.form.saving,erroredText:"更新失败",loadedText:"更新成功",text:"更新",type:"primary"},on:{callback:e.handleSavedCallback,click:e.handleCreateOrUpdateTag}}),o("a-button",{attrs:{type:"dashed"},on:{click:function(t){e.form.model={}}}},[e._v("返回添加")])],1):o("ReactiveButton",{attrs:{errored:e.form.errored,loading:e.form.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:e.handleSavedCallback,click:e.handleCreateOrUpdateTag}}),e.isUpdateMode?o("a-popconfirm",{attrs:{title:"你确定要删除【"+e.form.model.name+"】标签?",cancelText:"取消",okText:"确定"},on:{confirm:function(t){return e.handleDeleteTag(e.form.model.id)}}},[o("a-button",{staticClass:"float-right",attrs:{type:"danger"}},[e._v("删除")])],1):e._e()],1)],1)],1)],1),o("a-col",{staticClass:"pb-3",attrs:{lg:14,md:14,sm:24,xl:14,xs:24}},[o("a-card",{attrs:{bodyStyle:{padding:"16px"},title:"所有标签"}},[o("a-spin",{attrs:{spinning:e.list.loading}},[0===e.list.data.length?o("a-empty"):e._l(e.list.data,(function(t){return o("a-tooltip",{key:t.id,attrs:{placement:"topLeft"}},[o("template",{slot:"title"},[o("span",[e._v(e._s(t.postCount)+" 篇文章")])]),o("post-tag",{staticStyle:{"margin-bottom":"8px",cursor:"pointer"},attrs:{tag:t},nativeOn:{click:function(o){e.form.model=t}}})],2)}))],2)],1)],1)],1)],1)},r=[],l=(o(31875),o(26278)),n=o(17132),i=o(82676),m=o(43154),d={components:{PageView:l.B4,Verte:m.Z},data:function(){return{list:{data:[],loading:!1},form:{model:{color:"#cfd3d7"},saving:!1,errored:!1,rules:{name:[{required:!0,message:"* 标签名称不能为空",trigger:["change"]},{max:255,message:"* 标签名称的字符长度不能超过 255",trigger:["change"]}],slug:[{max:255,message:"* 标签别名的字符长度不能超过 255",trigger:["change"]}],thumbnail:[{max:1023,message:"* 封面图链接的字符长度不能超过 1023",trigger:["change"]}],color:[{max:7,pattern:i.aX,message:"仅支持 hex 颜色值"}]}}}},computed:{title:function(){return this.isUpdateMode?"修改标签":"添加标签"},isUpdateMode:function(){return!!this.form.model.id}},created:function(){this.handleListTags()},methods:{handleListTags:function(){var e=this;this.list.loading=!0,n.Z.tag.list({more:!0}).then((function(t){e.list.data=t.data})).finally((function(){e.list.loading=!1}))},handleDeleteTag:function(e){var t=this;n.Z.tag["delete"](e).finally((function(){t.form.model={color:"#cfd3d7"},t.handleListTags()}))},handleCreateOrUpdateTag:function(){var e=this,t=this;t.$refs.tagForm.validate((function(o){o&&(e.form.saving=!0,t.isUpdateMode?n.Z.tag.update(t.form.model.id,t.form.model).catch((function(){e.form.errored=!0})).finally((function(){setTimeout((function(){t.form.saving=!1}),400)})):n.Z.tag.create(t.form.model).catch((function(){e.form.errored=!0})).finally((function(){setTimeout((function(){t.form.saving=!1}),400)})))}))},handleSavedCallback:function(){var e=this;e.form.errored?e.form.errored=!1:(e.form.model={color:"#cfd3d7"},e.handleListTags())}}},s=d,c=o(42177),f=(0,c.Z)(s,a,r,!1,null,null,null),u=f.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[757],{63757:function(e,t,o){o.r(t),o.d(t,{default:function(){return u}});var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("page-view",[o("a-row",{attrs:{gutter:12}},[o("a-col",{staticClass:"pb-3",attrs:{lg:10,md:10,sm:24,xl:10,xs:24}},[o("a-card",{attrs:{bodyStyle:{padding:"16px"},title:e.title}},[o("a-form-model",{ref:"tagForm",attrs:{model:e.form.model,rules:e.form.rules,layout:"horizontal"}},[o("a-form-model-item",{attrs:{help:"* 页面上所显示的名称",label:"名称:",prop:"name"}},[o("a-input",{model:{value:e.form.model.name,callback:function(t){e.$set(e.form.model,"name",t)},expression:"form.model.name"}})],1),o("a-form-model-item",{attrs:{help:"* 一般为单个标签页面的标识,最好为英文",label:"别名:",prop:"slug"}},[o("a-input",{model:{value:e.form.model.slug,callback:function(t){e.$set(e.form.model,"slug",t)},expression:"form.model.slug"}})],1),o("a-form-model-item",{attrs:{label:"颜色:",prop:"color"}},[o("a-input",{scopedSlots:e._u([{key:"addonAfter",fn:function(){return[o("verte",{staticStyle:{cursor:"pointer"},attrs:{model:"hex",picker:"square"},model:{value:e.form.model.color,callback:function(t){e.$set(e.form.model,"color",t)},expression:"form.model.color"}})]},proxy:!0}]),model:{value:e.form.model.color,callback:function(t){e.$set(e.form.model,"color",t)},expression:"form.model.color"}})],1),o("a-form-model-item",{attrs:{help:"* 在标签页面可展示,需要主题支持",label:"封面图:",prop:"thumbnail"}},[o("AttachmentInput",{attrs:{title:"选择封面图"},model:{value:e.form.model.thumbnail,callback:function(t){e.$set(e.form.model,"thumbnail",t)},expression:"form.model.thumbnail"}})],1),o("a-form-model-item",[e.isUpdateMode?o("a-button-group",[o("ReactiveButton",{attrs:{errored:e.form.errored,loading:e.form.saving,erroredText:"更新失败",loadedText:"更新成功",text:"更新",type:"primary"},on:{callback:e.handleSavedCallback,click:e.handleCreateOrUpdateTag}}),o("a-button",{attrs:{type:"dashed"},on:{click:function(t){e.form.model={}}}},[e._v("返回添加")])],1):o("ReactiveButton",{attrs:{errored:e.form.errored,loading:e.form.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存",type:"primary"},on:{callback:e.handleSavedCallback,click:e.handleCreateOrUpdateTag}}),e.isUpdateMode?o("a-popconfirm",{attrs:{title:"你确定要删除【"+e.form.model.name+"】标签?",cancelText:"取消",okText:"确定"},on:{confirm:function(t){return e.handleDeleteTag(e.form.model.id)}}},[o("a-button",{staticClass:"float-right",attrs:{type:"danger"}},[e._v("删除")])],1):e._e()],1)],1)],1)],1),o("a-col",{staticClass:"pb-3",attrs:{lg:14,md:14,sm:24,xl:14,xs:24}},[o("a-card",{attrs:{bodyStyle:{padding:"16px"},title:"所有标签"}},[o("a-spin",{attrs:{spinning:e.list.loading}},[0===e.list.data.length?o("a-empty"):e._l(e.list.data,(function(t){return o("a-tooltip",{key:t.id,attrs:{placement:"topLeft"}},[o("template",{slot:"title"},[o("span",[e._v(e._s(t.postCount)+" 篇文章")])]),o("post-tag",{staticStyle:{"margin-bottom":"8px",cursor:"pointer"},attrs:{tag:t},nativeOn:{click:function(o){e.form.model=t}}})],2)}))],2)],1)],1)],1)],1)},r=[],l=(o(31875),o(27474)),n=o(17132),i=o(82676),m=o(43154),d={components:{PageView:l.B4,Verte:m.Z},data:function(){return{list:{data:[],loading:!1},form:{model:{color:"#cfd3d7"},saving:!1,errored:!1,rules:{name:[{required:!0,message:"* 标签名称不能为空",trigger:["change"]},{max:255,message:"* 标签名称的字符长度不能超过 255",trigger:["change"]}],slug:[{max:255,message:"* 标签别名的字符长度不能超过 255",trigger:["change"]}],thumbnail:[{max:1023,message:"* 封面图链接的字符长度不能超过 1023",trigger:["change"]}],color:[{max:7,pattern:i.aX,message:"仅支持 hex 颜色值"}]}}}},computed:{title:function(){return this.isUpdateMode?"修改标签":"添加标签"},isUpdateMode:function(){return!!this.form.model.id}},created:function(){this.handleListTags()},methods:{handleListTags:function(){var e=this;this.list.loading=!0,n.Z.tag.list({more:!0}).then((function(t){e.list.data=t.data})).finally((function(){e.list.loading=!1}))},handleDeleteTag:function(e){var t=this;n.Z.tag["delete"](e).finally((function(){t.form.model={color:"#cfd3d7"},t.handleListTags()}))},handleCreateOrUpdateTag:function(){var e=this,t=this;t.$refs.tagForm.validate((function(o){o&&(e.form.saving=!0,t.isUpdateMode?n.Z.tag.update(t.form.model.id,t.form.model).catch((function(){e.form.errored=!0})).finally((function(){setTimeout((function(){t.form.saving=!1}),400)})):n.Z.tag.create(t.form.model).catch((function(){e.form.errored=!0})).finally((function(){setTimeout((function(){t.form.saving=!1}),400)})))}))},handleSavedCallback:function(){var e=this;e.form.errored?e.form.errored=!1:(e.form.model={color:"#cfd3d7"},e.handleListTags())}}},s=d,c=o(42177),f=(0,c.Z)(s,a,r,!1,null,null,null),u=f.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/787.a1fab2ea.js b/src/main/resources/admin/js/787.0e22cabc.js similarity index 99% rename from src/main/resources/admin/js/787.a1fab2ea.js rename to src/main/resources/admin/js/787.0e22cabc.js index 846b6d1c8d..1618769f08 100644 --- a/src/main/resources/admin/js/787.a1fab2ea.js +++ b/src/main/resources/admin/js/787.0e22cabc.js @@ -1 +1 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[787],{20787:function(t,e,n){n.r(e),n.d(e,{default:function(){return I}});var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page-view",[n("a-row",[n("a-col",{attrs:{span:24}},[n("div",{staticClass:"card-container"},[n("a-tabs",{attrs:{type:"card"},model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},t._l(t.panes,(function(e){return n("a-tab-pane",{key:e.key},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:e.icon}}),t._v(t._s(e.title)+" ")],1),n(e.component,{tag:"component"})],1)})),1)],1)])],1)],1)},s=[],i=n(26278),r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isMobile()?n("a-list",{attrs:{dataSource:t.independentSheets,loading:t.loading,pagination:!1,itemLayout:"vertical",size:"large"},scopedSlots:t._u([{key:"renderItem",fn:function(e,a){return n("a-list-item",{key:a},[n("template",{slot:"actions"},[n("span",[n("router-link",{attrs:{to:{name:e.routeName}}},[n("a-icon",{attrs:{type:"edit"}})],1)],1)]),n("template",{slot:"extra"},[e.available?n("span",[t._v("可用")]):n("span",[t._v("不可用 "),n("a-tooltip",{attrs:{slot:"action",title:"当前主题没有对应模板"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1)],1)]),n("a-list-item-meta",[n("span",{staticStyle:{"max-width":"300px",display:"block","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},attrs:{slot:"title"},slot:"title"},[e.available?n("a",{attrs:{href:e.fullPath,target:"_blank"}},[t._v(t._s(e.title))]):n("a",{attrs:{href:e.fullPath,disabled:"",target:"_blank"}},[t._v(t._s(e.title))])])])],2)}}],null,!1,490164655)}):n("a-table",{attrs:{columns:t.independentColumns,dataSource:t.independentSheets,loading:t.loading,pagination:!1,rowKey:function(t){return t.id}},scopedSlots:t._u([{key:"available",fn:function(e){return[e?n("span",[t._v("可用")]):n("span",[t._v(" 不可用 "),n("a-tooltip",{attrs:{slot:"action",title:"当前主题没有对应模板"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1)],1)]}},{key:"action",fn:function(e,a){return n("span",{},[n("router-link",{attrs:{to:{name:a.routeName}}},[n("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("管理")])],1),n("a-divider",{attrs:{type:"vertical"}}),a.available?n("a",{attrs:{href:a.fullPath,target:"_blank"}},[t._v("访问")]):n("a",{attrs:{href:a.fullPath,disabled:"",target:"_blank"}},[t._v("访问")])],1)}}])})],1)},o=[],l=n(47458),c=(n(70315),n(91411)),u=n(17132),d=[{title:"页面名称",dataIndex:"title"},{title:"访问地址",dataIndex:"fullPath"},{title:"状态",dataIndex:"available",scopedSlots:{customRender:"available"}},{title:"操作",dataIndex:"action",width:"150px",scopedSlots:{customRender:"action"}}],h={name:"IndependentSheetList",mixins:[c.jB,c.KT],data:function(){return{independentColumns:d,independentSheets:[],loading:!1}},created:function(){this.handleListIndependentSheets()},methods:{handleListIndependentSheets:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.Z.sheet.listIndependents();case 3:n=e.sent,a=n.data,t.independentSheets=a,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error(e.t0);case 11:return e.prev=11,t.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()}}},p=h,f=n(42177),m=(0,f.Z)(p,r,o,!1,null,null,null),g=m.exports,v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isMobile()?n("a-list",{attrs:{dataSource:t.list.data,loading:t.list.loading,pagination:!1,itemLayout:"vertical",size:"large"},scopedSlots:t._u([{key:"renderItem",fn:function(e,a){return[n("a-list-item",{key:a,scopedSlots:t._u([{key:"actions",fn:function(){return[n("span",[n("a-icon",{attrs:{type:"eye"}}),t._v(" "+t._s(e.visits)+" ")],1),n("span",{on:{click:function(n){return t.handleOpenSheetComments(e)}}},[n("a-icon",{attrs:{type:"message"}}),t._v(" "+t._s(e.commentCount)+" ")],1),n("a-dropdown",{attrs:{trigger:["click"],placement:"topLeft"},scopedSlots:t._u([{key:"overlay",fn:function(){return[n("a-menu",["PUBLISHED"===e.status||"DRAFT"===e.status?n("a-menu-item",{on:{click:function(n){return t.handleEditClick(e)}}},[t._v(" 编辑 ")]):"RECYCLE"===e.status?n("a-menu-item",[n("a-popconfirm",{attrs:{title:"你确定要发布【"+e.title+"】页面?",cancelText:"取消",okText:"确定"},on:{confirm:function(n){return t.handleChangeStatus(e.id,"PUBLISHED")}}},[t._v(" 还原 ")])],1):t._e(),"PUBLISHED"===e.status||"DRAFT"===e.status?n("a-menu-item",[n("a-popconfirm",{attrs:{title:"你确定要删除【"+e.title+"】页面?",cancelText:"取消",okText:"确定"},on:{confirm:function(n){return t.handleChangeStatus(e.id,"RECYCLE")}}},[t._v(" 删除 ")])],1):"RECYCLE"===e.status?n("a-menu-item",[n("a-popconfirm",{attrs:{title:"你确定要永久删除【"+e.title+"】页面?",cancelText:"取消",okText:"确定"},on:{confirm:function(n){return t.handleDelete(e.id)}}},[t._v(" 永久删除 ")])],1):t._e(),n("a-menu-item",{on:{click:function(n){return t.handleOpenSheetSettings(e)}}},[t._v("设置")])],1)]},proxy:!0}],null,!0)},[n("span",[n("a-icon",{attrs:{type:"bars"}})],1)])]},proxy:!0},{key:"extra",fn:function(){return[n("a-badge",{attrs:{status:t.sheetStatuses[e.status].status,text:t._f("statusText")(e.status)}})]},proxy:!0}],null,!0)},[n("a-list-item-meta",{scopedSlots:t._u([{key:"description",fn:function(){return[t._v(" "+t._s(t._f("moment")(e.createTime))+" ")]},proxy:!0},{key:"title",fn:function(){return[n("div",{staticStyle:{"max-width":"300px",display:"block","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[e.inProgress?n("a-tooltip",{attrs:{placement:"top",title:"当前有内容已保存,但还未发布。"}},[n("a-icon",{staticClass:"cursor-pointer",staticStyle:{"margin-right":"3px"},attrs:{theme:"twoTone",twoToneColor:"#52c41a",type:"info-circle"},on:{click:function(n){return t.handleEditClick(e)}}})],1):t._e(),"PUBLISHED"===e.status?n("a-tooltip",{attrs:{title:"点击访问【"+e.title+"】",placement:"top"}},[n("a",{staticClass:"no-underline",attrs:{href:e.fullPath,target:"_blank"}},[t._v(" "+t._s(e.title)+" ")])]):"DRAFT"===e.status?n("a-tooltip",{attrs:{title:"点击预览【"+e.title+"】",placement:"top"}},[n("a",{staticClass:"no-underline",attrs:{href:"javascript:void(0);"},on:{click:function(n){return t.handlePreview(e.id)}}},[t._v(" "+t._s(e.title)+" ")])]):n("a-button",{staticClass:"!p-0",attrs:{disabled:"",type:"link"}},[t._v(" "+t._s(e.title)+" ")])],1)]},proxy:!0}],null,!0)}),e.summary?n("div",{staticClass:"block"},[n("span",[t._v(" "+t._s(e.summary)+"... ")])]):t._e()],1)]}}],null,!1,709425344)}):n("a-table",{attrs:{columns:t.customColumns,dataSource:t.list.data,loading:t.list.loading,pagination:!1,rowKey:function(t){return t.id},scrollToFirstRowOnChange:!0},scopedSlots:t._u([{key:"sheetTitle",fn:function(e,a){return[a.inProgress?n("a-tooltip",{attrs:{placement:"top",title:"当前有内容已保存,但还未发布。"}},[n("a-icon",{staticClass:"cursor-pointer",staticStyle:{"margin-right":"3px"},attrs:{theme:"twoTone",twoToneColor:"#52c41a",type:"info-circle"},on:{click:function(e){return t.handleEditClick(a)}}})],1):t._e(),"PUBLISHED"===a.status?n("a-tooltip",{attrs:{title:"点击访问【"+e+"】",placement:"top"}},[n("a",{staticClass:"no-underline",attrs:{href:a.fullPath,target:"_blank"}},[t._v(" "+t._s(e)+" ")])]):"DRAFT"===a.status?n("a-tooltip",{attrs:{title:"点击预览【"+e+"】",placement:"top"}},[n("a",{staticClass:"no-underline",attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.handlePreview(a.id)}}},[t._v(" "+t._s(e)+" ")])]):n("a-button",{staticClass:"!p-0",attrs:{disabled:"",type:"link"}},[t._v(" "+t._s(e)+" ")])]}},{key:"status",fn:function(e){return[n("a-badge",{attrs:{status:t.sheetStatuses[e].status,text:t._f("statusText")(e)}})]}},{key:"commentCount",fn:function(e,a){return[n("a-badge",{staticClass:"cursor-pointer",attrs:{count:a.commentCount,numberStyle:{backgroundColor:"#f38181"},overflowCount:999,showZero:!0},on:{click:function(e){return t.handleOpenSheetComments(a)}}})]}},{key:"visits",fn:function(t){return[n("a-badge",{attrs:{count:t,numberStyle:{backgroundColor:"#00e0ff"},overflowCount:9999,showZero:!0}})]}},{key:"createTime",fn:function(e){return[n("a-tooltip",{attrs:{placement:"top"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" "+t._s(t._f("moment")(e))+" ")]},proxy:!0}],null,!0)},[t._v(" "+t._s(t._f("timeAgo")(e))+" ")])]}},{key:"action",fn:function(e,a){return["PUBLISHED"===a.status||"DRAFT"===a.status?n("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(e){return t.handleEditClick(a)}}},[t._v(" 编辑 ")]):"RECYCLE"===a.status?n("a-popconfirm",{attrs:{title:"你确定要发布【"+a.title+"】?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleChangeStatus(a.id,"PUBLISHED")}}},[n("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("还原")])],1):t._e(),n("a-divider",{attrs:{type:"vertical"}}),"PUBLISHED"===a.status||"DRAFT"===a.status?n("a-popconfirm",{attrs:{title:"你确定要删除【"+a.title+"】页面?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleChangeStatus(a.id,"RECYCLE")}}},[n("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("删除")])],1):"RECYCLE"===a.status?n("a-popconfirm",{attrs:{title:"你确定要永久删除【"+a.title+"】页面?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleDelete(a.id)}}},[n("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("永久删除")])],1):t._e(),n("a-divider",{attrs:{type:"vertical"}}),n("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(e){return t.handleOpenSheetSettings(a)}}},[t._v("设置")])]}}])}),n("div",{staticClass:"page-wrapper"},[n("a-pagination",{staticClass:"pagination",attrs:{current:t.pagination.page,defaultPageSize:t.pagination.size,pageSizeOptions:["10","20","50","100"],total:t.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:t.handlePageChange,showSizeChange:t.handlePageSizeChange}})],1),n("SheetSettingModal",{attrs:{loading:t.sheetSettingLoading,savedCallback:t.onSheetSavedCallback,sheet:t.list.selected,visible:t.sheetSettingVisible},on:{"update:visible":function(e){t.sheetSettingVisible=e},onClose:function(e){t.list.selected={}}},scopedSlots:t._u([{key:"extraFooter",fn:function(){return[n("a-button",{attrs:{disabled:t.selectPreviousButtonDisabled},on:{click:t.handleSelectPrevious}},[t._v(" 上一篇")]),n("a-button",{attrs:{disabled:t.selectNextButtonDisabled},on:{click:t.handleSelectNext}},[t._v(" 下一篇")])]},proxy:!0}])}),n("TargetCommentListModal",{attrs:{"target-id":t.list.selected.id,title:"「"+t.list.selected.title+"」的评论",visible:t.sheetCommentVisible,target:"sheet"},on:{"update:visible":function(e){t.sheetCommentVisible=e},close:t.onSheetCommentsClose},scopedSlots:t._u([{key:"extraFooter",fn:function(){return[n("a-button",{attrs:{disabled:t.selectPreviousButtonDisabled},on:{click:t.handleSelectPrevious}},[t._v(" 上一篇")]),n("a-button",{attrs:{disabled:t.selectNextButtonDisabled},on:{click:t.handleSelectNext}},[t._v(" 下一篇")])]},proxy:!0}])})],1)},S=[],k=(n(15928),n(41479),n(3045)),x=n(13170),b=n(94671),_=[{title:"标题",dataIndex:"title",ellipsis:!0,scopedSlots:{customRender:"sheetTitle"}},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"评论量",dataIndex:"commentCount",scopedSlots:{customRender:"commentCount"}},{title:"访问量",dataIndex:"visits",scopedSlots:{customRender:"visits"}},{title:"发布时间",dataIndex:"createTime",scopedSlots:{customRender:"createTime"}},{title:"操作",width:"200px",scopedSlots:{customRender:"action"}}],C={name:"CustomSheetList",mixins:[c.jB,c.KT],components:{SheetSettingModal:k.Z,TargetCommentListModal:x.Z},data:function(){return{customColumns:_,sheetStatuses:b.Zi,list:{data:[],loading:!1,total:0,hasPrevious:!1,hasNext:!1,params:{page:0,size:10},selected:{}},sheetSettingVisible:!1,sheetSettingLoading:!1,sheetCommentVisible:!1}},computed:{pagination:function(){return{page:this.list.params.page+1,size:this.list.params.size,total:this.list.total}},selectPreviousButtonDisabled:function(){var t=this,e=this.list.data.findIndex((function(e){return e.id===t.list.selected.id}));return 0===e&&!this.list.hasPrevious},selectNextButtonDisabled:function(){var t=this,e=this.list.data.findIndex((function(e){return e.id===t.list.selected.id}));return e===this.list.data.length-1&&!this.list.hasNext}},created:function(){this.handleListSheets()},methods:{handleListSheets:function(){var t=arguments,e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){var a,s,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=!(t.length>0&&void 0!==t[0])||t[0],n.prev=1,a&&(e.list.loading=!0),n.next=5,u.Z.sheet.list(e.list.params);case 5:s=n.sent,i=s.data,e.list.data=i.content,e.list.total=i.total,e.list.hasPrevious=i.hasPrevious,e.list.hasNext=i.hasNext,n.next=16;break;case 13:n.prev=13,n.t0=n["catch"](1),e.$log.error(n.t0);case 16:return n.prev=16,e.list.loading=!1,n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])})))()},handleEditClick:function(t){this.$router.push({name:"SheetEdit",query:{sheetId:t.id}})},handleChangeStatus:function(t,e){var n=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,u.Z.sheet.updateStatusById(t,e);case 3:n.$message.success("操作成功!"),a.next=9;break;case 6:a.prev=6,a.t0=a["catch"](0),n.$log.error("Failed to change sheet status",a.t0);case 9:return a.prev=9,a.next=12,n.handleListSheets();case 12:return a.finish(9);case 13:case"end":return a.stop()}}),a,null,[[0,6,9,13]])})))()},handleDelete:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,u.Z.sheet["delete"](t);case 3:e.$message.success("删除成功!"),n.next=9;break;case 6:n.prev=6,n.t0=n["catch"](0),e.$log.error("Failed to delete sheet",n.t0);case 9:return n.prev=9,n.next=12,e.handleListSheets();case 12:return n.finish(9);case 13:case"end":return n.stop()}}),n,null,[[0,6,9,13]])})))()},handleOpenSheetSettings:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){var a,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,e.sheetSettingVisible=!0,e.sheetSettingLoading=!0,n.next=5,u.Z.sheet.get(t.id);case 5:a=n.sent,s=a.data,e.list.selected=s,n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](0),e.$log.error("Failed to open sheet settings",n.t0);case 13:return n.prev=13,e.sheetSettingLoading=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[0,10,13,16]])})))()},handleOpenSheetComments:function(t){this.list.selected=t,this.sheetCommentVisible=!0},handlePreview:function(t){u.Z.sheet.getPreviewLinkById(t).then((function(t){window.open(t,"_blank")}))},handlePageChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListSheets()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListSheets()},onSheetCommentsClose:function(){this.sheetCommentVisible=!1,this.list.selected={},this.handleListSheets(!1)},onSheetSavedCallback:function(){this.handleListSheets(!1)},handleSelectPrevious:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var n,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(n>0)){e.next=9;break}return t.sheetSettingLoading=!0,e.next=5,u.Z.sheet.get(t.list.data[n-1].id);case 5:return a=e.sent,t.list.selected=a.data,t.sheetSettingLoading=!1,e.abrupt("return");case 9:if(0!==n||!t.list.hasPrevious){e.next=19;break}return t.list.params.page--,e.next=13,t.handleListPosts();case 13:return t.sheetSettingLoading=!0,e.next=16,u.Z.sheet.get(t.list.data[t.list.data.length-1].id);case 16:s=e.sent,t.list.selected=s.data,t.sheetSettingLoading=!1;case 19:case"end":return e.stop()}}),e)})))()},handleSelectNext:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var n,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(n0&&void 0!==t[0])||t[0],n.prev=1,a&&(e.list.loading=!0),n.next=5,u.Z.sheet.list(e.list.params);case 5:s=n.sent,i=s.data,e.list.data=i.content,e.list.total=i.total,e.list.hasPrevious=i.hasPrevious,e.list.hasNext=i.hasNext,n.next=16;break;case 13:n.prev=13,n.t0=n["catch"](1),e.$log.error(n.t0);case 16:return n.prev=16,e.list.loading=!1,n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])})))()},handleEditClick:function(t){this.$router.push({name:"SheetEdit",query:{sheetId:t.id}})},handleChangeStatus:function(t,e){var n=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,u.Z.sheet.updateStatusById(t,e);case 3:n.$message.success("操作成功!"),a.next=9;break;case 6:a.prev=6,a.t0=a["catch"](0),n.$log.error("Failed to change sheet status",a.t0);case 9:return a.prev=9,a.next=12,n.handleListSheets();case 12:return a.finish(9);case 13:case"end":return a.stop()}}),a,null,[[0,6,9,13]])})))()},handleDelete:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,u.Z.sheet["delete"](t);case 3:e.$message.success("删除成功!"),n.next=9;break;case 6:n.prev=6,n.t0=n["catch"](0),e.$log.error("Failed to delete sheet",n.t0);case 9:return n.prev=9,n.next=12,e.handleListSheets();case 12:return n.finish(9);case 13:case"end":return n.stop()}}),n,null,[[0,6,9,13]])})))()},handleOpenSheetSettings:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){var a,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,e.sheetSettingVisible=!0,e.sheetSettingLoading=!0,n.next=5,u.Z.sheet.get(t.id);case 5:a=n.sent,s=a.data,e.list.selected=s,n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](0),e.$log.error("Failed to open sheet settings",n.t0);case 13:return n.prev=13,e.sheetSettingLoading=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[0,10,13,16]])})))()},handleOpenSheetComments:function(t){this.list.selected=t,this.sheetCommentVisible=!0},handlePreview:function(t){u.Z.sheet.getPreviewLinkById(t).then((function(t){window.open(t,"_blank")}))},handlePageChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListSheets()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListSheets()},onSheetCommentsClose:function(){this.sheetCommentVisible=!1,this.list.selected={},this.handleListSheets(!1)},onSheetSavedCallback:function(){this.handleListSheets(!1)},handleSelectPrevious:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var n,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(n>0)){e.next=9;break}return t.sheetSettingLoading=!0,e.next=5,u.Z.sheet.get(t.list.data[n-1].id);case 5:return a=e.sent,t.list.selected=a.data,t.sheetSettingLoading=!1,e.abrupt("return");case 9:if(0!==n||!t.list.hasPrevious){e.next=19;break}return t.list.params.page--,e.next=13,t.handleListPosts();case 13:return t.sheetSettingLoading=!0,e.next=16,u.Z.sheet.get(t.list.data[t.list.data.length-1].id);case 16:s=e.sent,t.list.selected=s.data,t.sheetSettingLoading=!1;case 19:case"end":return e.stop()}}),e)})))()},handleSelectNext:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var n,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.list.data.findIndex((function(e){return e.id===t.list.selected.id})),!(n1&&void 0!==arguments[1]?arguments[1]:0;return t&&0!==t.length?t.reduce((function(t,a,n){a.priority=n+1,a.parentId=r;var i=a.children.length>0?e(a.children,a.id):[];return[].concat((0,o.Z)(t),[a],(0,o.Z)(i))}),[]):[]},a=r(e.list.treeData),t.prev=2,e.formBatch.saving=!0,t.next=6,f.Z.category.updateInBatch(a);case 6:t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](2),e.formBatch.errored=!0,e.$log.error("Failed to update categories",t.t0);case 12:return t.prev=12,setTimeout((function(){e.formBatch.saving=!1,e.handleListCategories()}),400),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,8,12,15]])})))()},handleSavedCallback:function(){if(this.form.errored)this.form.errored=!1;else{var e=this;e.form.model={},e.handleListCategories()}},handleQueryCategoryPosts:function(e){this.$router.push({name:"PostList",query:{categoryId:e.id}})}}},C=k,w=(0,v.Z)(C,a,n,!1,null,null,null),I=w.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/845.0b671891.js b/src/main/resources/admin/js/845.c199b0c1.js similarity index 99% rename from src/main/resources/admin/js/845.0b671891.js rename to src/main/resources/admin/js/845.c199b0c1.js index 96ce1036ac..0c84b333aa 100644 --- a/src/main/resources/admin/js/845.0b671891.js +++ b/src/main/resources/admin/js/845.c199b0c1.js @@ -1 +1 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[845],{1594:function(t,e,a){a.d(e,{Z:function(){return m}});var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{destroyOnClose:"",title:"评论回复"},on:{close:t.onClose},scopedSlots:t._u([{key:"footer",fn:function(){return[a("ReactiveButton",{attrs:{errored:t.submitErrored,loading:t.submitting,erroredText:"回复失败",loadedText:"回复成功",text:"回复",type:"primary"},on:{callback:t.handleSubmitCallback,click:t.handleSubmit}})]},proxy:!0}]),model:{value:t.modalVisible,callback:function(e){t.modalVisible=e},expression:"modalVisible"}},[a("a-form-model",{ref:"replyCommentForm",attrs:{model:t.model,rules:t.rules,layout:"vertical"}},[a("a-form-model-item",{attrs:{prop:"content"}},[a("a-input",{ref:"contentInput",attrs:{autoSize:{minRows:8},type:"textarea"},model:{value:t.model.content,callback:function(e){t.$set(t.model,"content",e)},expression:"model.content"}})],1)],1)],1)},s=[],r=a(47458),o=(a(70315),a(12566),a(17132)),i={name:"CommentReplyModal",props:{visible:{type:Boolean,default:!0},comment:{type:Object,default:null},targetId:{type:Number,default:0},target:{type:String,required:!0,validator:function(t){return-1!==["post","sheet","journal"].indexOf(t)}}},data:function(){return{model:{},submitting:!1,submitErrored:!1,rules:{content:[{required:!0,message:"* 内容不能为空",trigger:["change"]}]}}},computed:{modalVisible:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}}},watch:{modalVisible:function(t){var e=this;t&&this.$nextTick((function(){e.$refs.contentInput.focus()}))}},methods:{handleSubmit:function(){var t=this;t.$refs.replyCommentForm.validate(function(){var e=(0,r.Z)(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=15;break}return e.prev=1,t.submitting=!0,t.model.postId=t.targetId,t.comment&&(t.model.parentId=t.comment.id),e.next=7,o.Z.comment.create("".concat(t.target,"s"),t.model);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),t.submitErrored=!0;case 12:return e.prev=12,setTimeout((function(){t.submitting=!1}),400),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})));return function(t){return e.apply(this,arguments)}}())},handleSubmitCallback:function(){this.submitErrored?this.submitErrored=!1:(this.model={},this.modalVisible=!1,this.$emit("succeed"))},onClose:function(){this.model={},this.modalVisible=!1}}},l=i,u=a(42177),c=(0,u.Z)(l,n,s,!1,null,null,null),m=c.exports},93845:function(t,e,a){a.r(e),a.d(e,{default:function(){return _}});var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("page-view",[a("div",{staticClass:"card-container"},[a("a-tabs",{attrs:{type:"card"}},[a("a-tab-pane",{key:"post",attrs:{tab:"文章"}},[a("comment-tab",{attrs:{target:"post"}})],1),a("a-tab-pane",{key:"sheet",attrs:{tab:"页面"}},[a("comment-tab",{attrs:{target:"sheet"}})],1),a("a-tab-pane",{key:"journal",attrs:{tab:"日志"}},[a("comment-tab",{attrs:{target:"journal"}})],1)],1)],1)])},s=[],r=a(26278),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"comment-tab-wrapper"},[a("a-card",{attrs:{bodyStyle:{padding:0},bordered:!1}},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline"}},[a("a-row",{attrs:{gutter:48}},[a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"关键词:"}},[a("a-input",{on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery()}},model:{value:t.list.params.keyword,callback:function(e){t.$set(t.list.params,"keyword",e)},expression:"list.params.keyword"}})],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"评论状态:"}},[a("a-select",{attrs:{allowClear:"",placeholder:"请选择评论状态"},on:{change:function(e){return t.handleQuery()}},model:{value:t.list.params.status,callback:function(e){t.$set(t.list.params,"status",e)},expression:"list.params.status"}},t._l(Object.keys(t.commentStatuses),(function(e){return a("a-select-option",{key:e,attrs:{value:e}},[t._v(" "+t._s(t.commentStatuses[e].text)+" ")])})),1)],1)],1),a("a-col",{attrs:{md:12,sm:24}},[a("span",{staticClass:"table-page-search-submitButtons"},[a("a-space",[a("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleQuery()}}},[t._v("查询")]),a("a-button",{on:{click:function(e){return t.handleResetParam()}}},[t._v("重置")])],1)],1)])],1)],1)],1),a("div",{staticClass:"table-operator"},[a("a-dropdown",{directives:[{name:"show",rawName:"v-show",value:null!=t.list.params.status&&""!==t.list.params.status&&!t.isMobile(),expression:"list.params.status != null && list.params.status !== '' && !isMobile()"}],scopedSlots:t._u([{key:"overlay",fn:function(){return[a("a-menu",[t.list.params.status===t.commentStatuses.AUDITING.value?a("a-menu-item",{key:"1",on:{click:function(e){return t.handleChangeStatusInBatch(t.commentStatuses.PUBLISHED.value)}}},[t._v(" 通过 ")]):t._e(),[t.commentStatuses.PUBLISHED.value,t.commentStatuses.AUDITING.value].includes(t.list.params.status)?a("a-menu-item",{key:"2",on:{click:function(e){return t.handleChangeStatusInBatch(t.commentStatuses.RECYCLE.value)}}},[t._v(" 移到回收站 ")]):t._e(),t.list.params.status===t.commentStatuses.RECYCLE.value?a("a-menu-item",{key:"3",on:{click:t.handleDeleteInBatch}},[t._v(" 永久删除 ")]):t._e()],1)]},proxy:!0}])},[a("a-button",[t._v(" 批量操作 "),a("a-icon",{attrs:{type:"down"}})],1)],1)],1),a("div",{staticClass:"mt-4"},[t.isMobile()?a("a-list",{attrs:{dataSource:t.list.data,loading:t.list.loading,pagination:!1,itemLayout:"vertical",size:"large"},scopedSlots:t._u([{key:"renderItem",fn:function(e,n){return[a("a-list-item",{key:n,scopedSlots:t._u([{key:"actions",fn:function(){return[a("a-dropdown",{attrs:{trigger:["click"],placement:"topLeft"},scopedSlots:t._u([{key:"overlay",fn:function(){return[a("a-menu",[e.status===t.commentStatuses.AUDITING.value?a("a-menu-item",{on:{click:function(a){return t.handleChangeStatus(e.id,t.commentStatuses.PUBLISHED.value)}}},[t._v(" 通过 ")]):t._e(),e.status===t.commentStatuses.AUDITING.value?a("a-menu-item",{on:{click:function(a){return t.handlePublishAndReply(e)}}},[t._v(" 通过并回复 ")]):e.status===t.commentStatuses.PUBLISHED.value?a("a-menu-item",{on:{click:function(a){return t.handleOpenReplyModal(e)}}},[t._v(" 回复 ")]):e.status===t.commentStatuses.RECYCLE.value?a("a-menu-item",[a("a-popconfirm",{attrs:{title:"你确定要还原该评论?",cancelText:"取消",okText:"确定"},on:{confirm:function(a){return t.handleChangeStatus(e.id,t.commentStatuses.PUBLISHED.value)}}},[t._v(" 还原 ")])],1):t._e(),[t.commentStatuses.PUBLISHED.value,t.commentStatuses.AUDITING.value].includes(e.status)?a("a-menu-item",[a("a-popconfirm",{attrs:{title:"你确定要将该评论移到回收站?",cancelText:"取消",okText:"确定"},on:{confirm:function(a){return t.handleChangeStatus(e.id,t.commentStatuses.RECYCLE.value)}}},[t._v(" 回收站 ")])],1):e.status===t.commentStatuses.RECYCLE.value?a("a-menu-item",[a("a-popconfirm",{attrs:{title:"你确定要永久删除该评论?",cancelText:"取消",okText:"确定"},on:{confirm:function(a){return t.handleDelete(e.id)}}},[t._v(" 删除 ")])],1):t._e()],1)]},proxy:!0}],null,!0)},[a("span",[a("a-icon",{attrs:{type:"bars"}})],1)])]},proxy:!0},{key:"extra",fn:function(){return[a("a-badge",{attrs:{status:t.commentStatuses[e.status].status,text:t._f("statusText")(e.status)}})]},proxy:!0}],null,!0)},[a("a-list-item-meta",{scopedSlots:t._u([{key:"description",fn:function(){return[t._v(" 发表在 "),"posts"===t.targetName?a("a",{attrs:{href:e.post.fullPath,target:"_blank"}},[t._v(" 《"+t._s(e.post.title)+"》 ")]):t._e(),"sheets"===t.targetName?a("a",{attrs:{href:e.sheet.fullPath,target:"_blank"}},[t._v(" 《"+t._s(e.sheet.title)+"》 ")]):t._e(),"journals"===t.targetName?a("a",{attrs:{href:"javascript:void(0);"}},[t._v(" 《"+t._s(t._f("moment")(e.journal.createTime))+"》 ")]):t._e()]},proxy:!0},{key:"avatar",fn:function(){return[a("a-avatar",{attrs:{src:e.avatar,size:"large"}})]},proxy:!0},{key:"title",fn:function(){return[a("div",{staticClass:"truncate"},[e.isAdmin?a("a-icon",{staticClass:"mr-2",attrs:{type:"user"}}):t._e(),e.authorUrl?a("a",{staticClass:"mr-1",attrs:{href:e.authorUrl,target:"_blank"}},[t._v(t._s(e.author))]):a("span",{staticClass:"mr-1"},[t._v(t._s(e.author))]),a("small",{staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[t._v(" "+t._s(t._f("timeAgo")(e.createTime))+" ")])],1)]},proxy:!0}],null,!0)}),a("div",{staticClass:"comment-content-wrapper",domProps:{innerHTML:t._s(t.$options.filters.markdownRender(e.content))}})],1)]}}],null,!1,1276610109)}):a("a-table",{attrs:{columns:t.columns,dataSource:t.list.data,loading:t.list.loading,pagination:!1,rowKey:function(t){return t.id},rowSelection:{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectionChange,getCheckboxProps:t.getCheckboxProps},scrollToFirstRowOnChange:""},scopedSlots:t._u([{key:"author",fn:function(e,n){return[n.isAdmin?a("a-icon",{staticClass:"mr-2",attrs:{type:"user"}}):t._e(),n.authorUrl?a("a",{attrs:{href:n.authorUrl,target:"_blank"}},[t._v(t._s(e))]):a("span",[t._v(t._s(e))])]}},{key:"content",fn:function(e){return[a("div",{staticClass:"comment-content-wrapper",domProps:{innerHTML:t._s(t.$options.filters.markdownRender(e))}})]}},{key:"status",fn:function(e){return[a("a-badge",{attrs:{status:t.commentStatuses[e].status,text:t._f("statusText")(e)}})]}},"posts"===t.targetName?{key:"post",fn:function(e){return[a("a",{attrs:{href:e.fullPath,target:"_blank"}},[t._v(" "+t._s(e.title)+" ")])]}}:null,"sheets"===t.targetName?{key:"sheet",fn:function(e){return[a("a",{attrs:{href:e.fullPath,target:"_blank"}},[t._v(" "+t._s(e.title)+" ")])]}}:null,"journals"===t.targetName?{key:"journal",fn:function(e){return[a("p",{staticClass:"comment-content-wrapper",domProps:{innerHTML:t._s(e.content)}})]}}:null,{key:"createTime",fn:function(e){return[a("a-tooltip",{attrs:{placement:"top"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" "+t._s(t._f("moment")(e))+" ")]},proxy:!0}],null,!0)},[t._v(" "+t._s(t._f("timeAgo")(e))+" ")])]}},{key:"action",fn:function(e,n){return[n.status===t.commentStatuses.AUDITING.value?a("a-dropdown",{attrs:{trigger:["click"]},scopedSlots:t._u([{key:"overlay",fn:function(){return[a("a-menu",[a("a-menu-item",{key:"1",on:{click:function(e){return t.handleChangeStatus(n.id,t.commentStatuses.PUBLISHED.value)}}},[t._v(" 通过 ")]),a("a-menu-item",{key:"2",on:{click:function(e){return t.handlePublishAndReply(n)}}},[t._v(" 通过并回复")])],1)]},proxy:!0}],null,!0)},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("通过")])],1):n.status===t.commentStatuses.PUBLISHED.value?a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(e){return t.handleOpenReplyModal(n)}}},[t._v(" 回复 ")]):n.status===t.commentStatuses.RECYCLE.value?a("a-popconfirm",{attrs:{title:"你确定要还原该评论?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleChangeStatus(n.id,t.commentStatuses.PUBLISHED.value)}}},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("还原")])],1):t._e(),a("a-divider",{attrs:{type:"vertical"}}),[t.commentStatuses.PUBLISHED.value,t.commentStatuses.AUDITING.value].includes(n.status)?a("a-popconfirm",{attrs:{title:"你确定要将该评论移到回收站?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleChangeStatus(n.id,t.commentStatuses.RECYCLE.value)}}},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("回收站")])],1):n.status===t.commentStatuses.RECYCLE.value?a("a-popconfirm",{attrs:{title:"你确定要永久删除该评论?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleDelete(n.id)}}},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("删除")])],1):t._e()]}}],null,!0)}),a("div",{staticClass:"page-wrapper"},[a("a-pagination",{staticClass:"pagination",attrs:{current:t.pagination.page,defaultPageSize:t.pagination.size,pageSizeOptions:["10","20","50","100"],total:t.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:t.handlePageChange,showSizeChange:t.handlePageSizeChange}})],1)],1)]),a("CommentReplyModal",{attrs:{comment:t.selectedComment,target:t.target,"target-id":t.targetId,visible:t.replyModalVisible},on:{"update:visible":function(e){t.replyModalVisible=e},succeed:t.onReplyModalClose}})],1)},i=[],l=a(47458),u=(a(70315),a(53961),a(41479),a(1594)),c=a(91411),m=a(17132),d=a(94671),p=[{title:"昵称",dataIndex:"author",width:"150px",ellipsis:!0,scopedSlots:{customRender:"author"}},{title:"内容",dataIndex:"content",scopedSlots:{customRender:"content"}},{title:"状态",dataIndex:"status",width:"100px",scopedSlots:{customRender:"status"}},{title:"评论文章",dataIndex:"post",width:"200px",ellipsis:!0,scopedSlots:{customRender:"post"}},{title:"日期",dataIndex:"createTime",width:"170px",scopedSlots:{customRender:"createTime"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],h=[{title:"昵称",dataIndex:"author",width:"150px",ellipsis:!0,scopedSlots:{customRender:"author"}},{title:"内容",dataIndex:"content",scopedSlots:{customRender:"content"}},{title:"状态",dataIndex:"status",width:"100px",scopedSlots:{customRender:"status"}},{title:"评论页面",dataIndex:"sheet",width:"200px",ellipsis:!0,scopedSlots:{customRender:"sheet"}},{title:"日期",dataIndex:"createTime",width:"170px",scopedSlots:{customRender:"createTime"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],f=[{title:"昵称",dataIndex:"author",width:"150px",ellipsis:!0,scopedSlots:{customRender:"author"}},{title:"内容",dataIndex:"content",scopedSlots:{customRender:"content"}},{title:"状态",dataIndex:"status",width:"100px",scopedSlots:{customRender:"status"}},{title:"评论日志",dataIndex:"journal",width:"400px",ellipsis:!0,scopedSlots:{customRender:"journal"}},{title:"日期",dataIndex:"createTime",width:"170px",scopedSlots:{customRender:"createTime"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],g={name:"CommentTab",components:{CommentReplyModal:u.Z},mixins:[c.jB,c.KT],props:{target:{type:String,required:!1,default:"post",validator:function(t){return-1!==["post","sheet","journal"].indexOf(t)}}},data:function(){return{commentStatuses:d.v$,list:{data:[],loading:!1,total:0,hasPrevious:!1,hasNext:!1,params:{page:0,size:10,keyword:null,status:null}},selectedRowKeys:[],selectedRows:[],selectedComment:{},replyModalVisible:!1}},created:function(){this.handleListComments()},computed:{pagination:function(){return{page:this.list.params.page+1,size:this.list.params.size,total:this.list.total}},columns:function(){return"posts"===this.targetName?p:"sheets"===this.targetName?h:"journals"===this.targetName?f:{}},targetName:function(){return"".concat(this.target,"s")},targetId:function(){return 0===Object.keys(this.selectedComment).length?0:"posts"===this.targetName?this.selectedComment.post.id:"sheets"===this.targetName?this.selectedComment.sheet.id:"journals"===this.targetName?this.selectedComment.journal.id:0}},methods:{handleListComments:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.list.loading=!0,e.next=4,m.Z.comment.list(t.targetName,t.list.params);case 4:a=e.sent,t.list.data=a.data.content,t.list.total=a.data.total,t.list.hasPrevious=a.data.hasPrevious,t.list.hasNext=a.data.hasNext,e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),t.$log.error(e.t0);case 14:return e.prev=14,t.list.loading=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})))()},handleQuery:function(){this.handleClearRowKeys(),this.handlePageChange(1)},handleChangeStatus:function(t,e){var a=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,m.Z.comment.updateStatusById(a.targetName,t,e);case 3:a.$message.success("操作成功!"),n.next=9;break;case 6:n.prev=6,n.t0=n["catch"](0),a.$log.error("Failed to change comment status",n.t0);case 9:return n.prev=9,n.next=12,a.handleListComments();case 12:return n.finish(9);case 13:case"end":return n.stop()}}),n,null,[[0,6,9,13]])})))()},handleChangeStatusInBatch:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e.selectedRowKeys.length){a.next=3;break}return e.$message.info("请至少选择一项!"),a.abrupt("return");case 3:return a.prev=3,e.$log.debug("commentIds: ".concat(e.selectedRowKeys,", status: ").concat(t)),a.next=7,m.Z.comment.updateStatusInBatch(e.targetName,e.selectedRowKeys,t);case 7:e.selectedRowKeys=[],a.next=13;break;case 10:a.prev=10,a.t0=a["catch"](3),e.$log.error("Failed to change comment status in batch",a.t0);case 13:return a.prev=13,a.next=16,e.handleListComments();case 16:return a.finish(13);case 17:case"end":return a.stop()}}),a,null,[[3,10,13,17]])})))()},handleDelete:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,m.Z.comment["delete"](e.targetName,t);case 3:e.$message.success("删除成功!"),a.next=9;break;case 6:a.prev=6,a.t0=a["catch"](0),e.$log.error("Failed to delete comment",a.t0);case 9:return a.prev=9,a.next=12,e.handleListComments();case 12:return a.finish(9);case 13:case"end":return a.stop()}}),a,null,[[0,6,9,13]])})))()},handleDeleteInBatch:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.selectedRowKeys.length){e.next=3;break}return t.$message.info("请至少选择一项!"),e.abrupt("return");case 3:return e.prev=3,t.$log.debug("delete: ".concat(t.selectedRowKeys)),e.next=7,m.Z.comment.deleteInBatch(t.targetName,t.selectedRowKeys);case 7:t.selectedRowKeys=[],e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),t.$log.error("Failed to delete comments in batch",e.t0);case 13:return e.prev=13,e.next=16,t.handleListComments();case 16:return e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[3,10,13,17]])})))()},handlePublishAndReply:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,e.handleChangeStatus(t.id,e.commentStatuses.PUBLISHED.value);case 2:e.handleOpenReplyModal(t);case 3:case"end":return a.stop()}}),a)})))()},handleOpenReplyModal:function(t){this.selectedComment=t,this.replyModalVisible=!0},handlePageChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListComments()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListComments()},handleResetParam:function(){this.list.params.keyword=null,this.list.params.status=null,this.handleClearRowKeys(),this.handlePageChange(1)},handleClearRowKeys:function(){this.selectedRowKeys=[]},onReplyModalClose:function(){this.selectedComment={},this.replyModalVisible=!1,this.handleListComments()},onSelectionChange:function(t){this.selectedRowKeys=t,this.$log.debug("SelectedRowKeys: ".concat(t))},getCheckboxProps:function(t){return{props:{disabled:null==this.list.params.status||""===this.list.params.status,name:t.author}}}},filters:{statusText:function(t){return t?d.v$[t].text:""}}},v=g,y=a(42177),x=(0,y.Z)(v,o,i,!1,null,null,null),b=x.exports,k={components:{PageView:r.B4,CommentTab:b}},S=k,C=(0,y.Z)(S,n,s,!1,null,null,null),_=C.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[845],{1594:function(t,e,a){a.d(e,{Z:function(){return m}});var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{destroyOnClose:"",title:"评论回复"},on:{close:t.onClose},scopedSlots:t._u([{key:"footer",fn:function(){return[a("ReactiveButton",{attrs:{errored:t.submitErrored,loading:t.submitting,erroredText:"回复失败",loadedText:"回复成功",text:"回复",type:"primary"},on:{callback:t.handleSubmitCallback,click:t.handleSubmit}})]},proxy:!0}]),model:{value:t.modalVisible,callback:function(e){t.modalVisible=e},expression:"modalVisible"}},[a("a-form-model",{ref:"replyCommentForm",attrs:{model:t.model,rules:t.rules,layout:"vertical"}},[a("a-form-model-item",{attrs:{prop:"content"}},[a("a-input",{ref:"contentInput",attrs:{autoSize:{minRows:8},type:"textarea"},model:{value:t.model.content,callback:function(e){t.$set(t.model,"content",e)},expression:"model.content"}})],1)],1)],1)},s=[],r=a(47458),o=(a(70315),a(12566),a(17132)),i={name:"CommentReplyModal",props:{visible:{type:Boolean,default:!0},comment:{type:Object,default:null},targetId:{type:Number,default:0},target:{type:String,required:!0,validator:function(t){return-1!==["post","sheet","journal"].indexOf(t)}}},data:function(){return{model:{},submitting:!1,submitErrored:!1,rules:{content:[{required:!0,message:"* 内容不能为空",trigger:["change"]}]}}},computed:{modalVisible:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}}},watch:{modalVisible:function(t){var e=this;t&&this.$nextTick((function(){e.$refs.contentInput.focus()}))}},methods:{handleSubmit:function(){var t=this;t.$refs.replyCommentForm.validate(function(){var e=(0,r.Z)(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=15;break}return e.prev=1,t.submitting=!0,t.model.postId=t.targetId,t.comment&&(t.model.parentId=t.comment.id),e.next=7,o.Z.comment.create("".concat(t.target,"s"),t.model);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),t.submitErrored=!0;case 12:return e.prev=12,setTimeout((function(){t.submitting=!1}),400),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})));return function(t){return e.apply(this,arguments)}}())},handleSubmitCallback:function(){this.submitErrored?this.submitErrored=!1:(this.model={},this.modalVisible=!1,this.$emit("succeed"))},onClose:function(){this.model={},this.modalVisible=!1}}},l=i,u=a(42177),c=(0,u.Z)(l,n,s,!1,null,null,null),m=c.exports},93845:function(t,e,a){a.r(e),a.d(e,{default:function(){return _}});var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("page-view",[a("div",{staticClass:"card-container"},[a("a-tabs",{attrs:{type:"card"}},[a("a-tab-pane",{key:"post",attrs:{tab:"文章"}},[a("comment-tab",{attrs:{target:"post"}})],1),a("a-tab-pane",{key:"sheet",attrs:{tab:"页面"}},[a("comment-tab",{attrs:{target:"sheet"}})],1),a("a-tab-pane",{key:"journal",attrs:{tab:"日志"}},[a("comment-tab",{attrs:{target:"journal"}})],1)],1)],1)])},s=[],r=a(27474),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"comment-tab-wrapper"},[a("a-card",{attrs:{bodyStyle:{padding:0},bordered:!1}},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline"}},[a("a-row",{attrs:{gutter:48}},[a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"关键词:"}},[a("a-input",{on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery()}},model:{value:t.list.params.keyword,callback:function(e){t.$set(t.list.params,"keyword",e)},expression:"list.params.keyword"}})],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"评论状态:"}},[a("a-select",{attrs:{allowClear:"",placeholder:"请选择评论状态"},on:{change:function(e){return t.handleQuery()}},model:{value:t.list.params.status,callback:function(e){t.$set(t.list.params,"status",e)},expression:"list.params.status"}},t._l(Object.keys(t.commentStatuses),(function(e){return a("a-select-option",{key:e,attrs:{value:e}},[t._v(" "+t._s(t.commentStatuses[e].text)+" ")])})),1)],1)],1),a("a-col",{attrs:{md:12,sm:24}},[a("span",{staticClass:"table-page-search-submitButtons"},[a("a-space",[a("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleQuery()}}},[t._v("查询")]),a("a-button",{on:{click:function(e){return t.handleResetParam()}}},[t._v("重置")])],1)],1)])],1)],1)],1),a("div",{staticClass:"table-operator"},[a("a-dropdown",{directives:[{name:"show",rawName:"v-show",value:null!=t.list.params.status&&""!==t.list.params.status&&!t.isMobile(),expression:"list.params.status != null && list.params.status !== '' && !isMobile()"}],scopedSlots:t._u([{key:"overlay",fn:function(){return[a("a-menu",[t.list.params.status===t.commentStatuses.AUDITING.value?a("a-menu-item",{key:"1",on:{click:function(e){return t.handleChangeStatusInBatch(t.commentStatuses.PUBLISHED.value)}}},[t._v(" 通过 ")]):t._e(),[t.commentStatuses.PUBLISHED.value,t.commentStatuses.AUDITING.value].includes(t.list.params.status)?a("a-menu-item",{key:"2",on:{click:function(e){return t.handleChangeStatusInBatch(t.commentStatuses.RECYCLE.value)}}},[t._v(" 移到回收站 ")]):t._e(),t.list.params.status===t.commentStatuses.RECYCLE.value?a("a-menu-item",{key:"3",on:{click:t.handleDeleteInBatch}},[t._v(" 永久删除 ")]):t._e()],1)]},proxy:!0}])},[a("a-button",[t._v(" 批量操作 "),a("a-icon",{attrs:{type:"down"}})],1)],1)],1),a("div",{staticClass:"mt-4"},[t.isMobile()?a("a-list",{attrs:{dataSource:t.list.data,loading:t.list.loading,pagination:!1,itemLayout:"vertical",size:"large"},scopedSlots:t._u([{key:"renderItem",fn:function(e,n){return[a("a-list-item",{key:n,scopedSlots:t._u([{key:"actions",fn:function(){return[a("a-dropdown",{attrs:{trigger:["click"],placement:"topLeft"},scopedSlots:t._u([{key:"overlay",fn:function(){return[a("a-menu",[e.status===t.commentStatuses.AUDITING.value?a("a-menu-item",{on:{click:function(a){return t.handleChangeStatus(e.id,t.commentStatuses.PUBLISHED.value)}}},[t._v(" 通过 ")]):t._e(),e.status===t.commentStatuses.AUDITING.value?a("a-menu-item",{on:{click:function(a){return t.handlePublishAndReply(e)}}},[t._v(" 通过并回复 ")]):e.status===t.commentStatuses.PUBLISHED.value?a("a-menu-item",{on:{click:function(a){return t.handleOpenReplyModal(e)}}},[t._v(" 回复 ")]):e.status===t.commentStatuses.RECYCLE.value?a("a-menu-item",[a("a-popconfirm",{attrs:{title:"你确定要还原该评论?",cancelText:"取消",okText:"确定"},on:{confirm:function(a){return t.handleChangeStatus(e.id,t.commentStatuses.PUBLISHED.value)}}},[t._v(" 还原 ")])],1):t._e(),[t.commentStatuses.PUBLISHED.value,t.commentStatuses.AUDITING.value].includes(e.status)?a("a-menu-item",[a("a-popconfirm",{attrs:{title:"你确定要将该评论移到回收站?",cancelText:"取消",okText:"确定"},on:{confirm:function(a){return t.handleChangeStatus(e.id,t.commentStatuses.RECYCLE.value)}}},[t._v(" 回收站 ")])],1):e.status===t.commentStatuses.RECYCLE.value?a("a-menu-item",[a("a-popconfirm",{attrs:{title:"你确定要永久删除该评论?",cancelText:"取消",okText:"确定"},on:{confirm:function(a){return t.handleDelete(e.id)}}},[t._v(" 删除 ")])],1):t._e()],1)]},proxy:!0}],null,!0)},[a("span",[a("a-icon",{attrs:{type:"bars"}})],1)])]},proxy:!0},{key:"extra",fn:function(){return[a("a-badge",{attrs:{status:t.commentStatuses[e.status].status,text:t._f("statusText")(e.status)}})]},proxy:!0}],null,!0)},[a("a-list-item-meta",{scopedSlots:t._u([{key:"description",fn:function(){return[t._v(" 发表在 "),"posts"===t.targetName?a("a",{attrs:{href:e.post.fullPath,target:"_blank"}},[t._v(" 《"+t._s(e.post.title)+"》 ")]):t._e(),"sheets"===t.targetName?a("a",{attrs:{href:e.sheet.fullPath,target:"_blank"}},[t._v(" 《"+t._s(e.sheet.title)+"》 ")]):t._e(),"journals"===t.targetName?a("a",{attrs:{href:"javascript:void(0);"}},[t._v(" 《"+t._s(t._f("moment")(e.journal.createTime))+"》 ")]):t._e()]},proxy:!0},{key:"avatar",fn:function(){return[a("a-avatar",{attrs:{src:e.avatar,size:"large"}})]},proxy:!0},{key:"title",fn:function(){return[a("div",{staticClass:"truncate"},[e.isAdmin?a("a-icon",{staticClass:"mr-2",attrs:{type:"user"}}):t._e(),e.authorUrl?a("a",{staticClass:"mr-1",attrs:{href:e.authorUrl,target:"_blank"}},[t._v(t._s(e.author))]):a("span",{staticClass:"mr-1"},[t._v(t._s(e.author))]),a("small",{staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[t._v(" "+t._s(t._f("timeAgo")(e.createTime))+" ")])],1)]},proxy:!0}],null,!0)}),a("div",{staticClass:"comment-content-wrapper",domProps:{innerHTML:t._s(t.$options.filters.markdownRender(e.content))}})],1)]}}],null,!1,1276610109)}):a("a-table",{attrs:{columns:t.columns,dataSource:t.list.data,loading:t.list.loading,pagination:!1,rowKey:function(t){return t.id},rowSelection:{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectionChange,getCheckboxProps:t.getCheckboxProps},scrollToFirstRowOnChange:""},scopedSlots:t._u([{key:"author",fn:function(e,n){return[n.isAdmin?a("a-icon",{staticClass:"mr-2",attrs:{type:"user"}}):t._e(),n.authorUrl?a("a",{attrs:{href:n.authorUrl,target:"_blank"}},[t._v(t._s(e))]):a("span",[t._v(t._s(e))])]}},{key:"content",fn:function(e){return[a("div",{staticClass:"comment-content-wrapper",domProps:{innerHTML:t._s(t.$options.filters.markdownRender(e))}})]}},{key:"status",fn:function(e){return[a("a-badge",{attrs:{status:t.commentStatuses[e].status,text:t._f("statusText")(e)}})]}},"posts"===t.targetName?{key:"post",fn:function(e){return[a("a",{attrs:{href:e.fullPath,target:"_blank"}},[t._v(" "+t._s(e.title)+" ")])]}}:null,"sheets"===t.targetName?{key:"sheet",fn:function(e){return[a("a",{attrs:{href:e.fullPath,target:"_blank"}},[t._v(" "+t._s(e.title)+" ")])]}}:null,"journals"===t.targetName?{key:"journal",fn:function(e){return[a("p",{staticClass:"comment-content-wrapper",domProps:{innerHTML:t._s(e.content)}})]}}:null,{key:"createTime",fn:function(e){return[a("a-tooltip",{attrs:{placement:"top"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" "+t._s(t._f("moment")(e))+" ")]},proxy:!0}],null,!0)},[t._v(" "+t._s(t._f("timeAgo")(e))+" ")])]}},{key:"action",fn:function(e,n){return[n.status===t.commentStatuses.AUDITING.value?a("a-dropdown",{attrs:{trigger:["click"]},scopedSlots:t._u([{key:"overlay",fn:function(){return[a("a-menu",[a("a-menu-item",{key:"1",on:{click:function(e){return t.handleChangeStatus(n.id,t.commentStatuses.PUBLISHED.value)}}},[t._v(" 通过 ")]),a("a-menu-item",{key:"2",on:{click:function(e){return t.handlePublishAndReply(n)}}},[t._v(" 通过并回复")])],1)]},proxy:!0}],null,!0)},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("通过")])],1):n.status===t.commentStatuses.PUBLISHED.value?a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(e){return t.handleOpenReplyModal(n)}}},[t._v(" 回复 ")]):n.status===t.commentStatuses.RECYCLE.value?a("a-popconfirm",{attrs:{title:"你确定要还原该评论?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleChangeStatus(n.id,t.commentStatuses.PUBLISHED.value)}}},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("还原")])],1):t._e(),a("a-divider",{attrs:{type:"vertical"}}),[t.commentStatuses.PUBLISHED.value,t.commentStatuses.AUDITING.value].includes(n.status)?a("a-popconfirm",{attrs:{title:"你确定要将该评论移到回收站?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleChangeStatus(n.id,t.commentStatuses.RECYCLE.value)}}},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("回收站")])],1):n.status===t.commentStatuses.RECYCLE.value?a("a-popconfirm",{attrs:{title:"你确定要永久删除该评论?",cancelText:"取消",okText:"确定"},on:{confirm:function(e){return t.handleDelete(n.id)}}},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("删除")])],1):t._e()]}}],null,!0)}),a("div",{staticClass:"page-wrapper"},[a("a-pagination",{staticClass:"pagination",attrs:{current:t.pagination.page,defaultPageSize:t.pagination.size,pageSizeOptions:["10","20","50","100"],total:t.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:t.handlePageChange,showSizeChange:t.handlePageSizeChange}})],1)],1)]),a("CommentReplyModal",{attrs:{comment:t.selectedComment,target:t.target,"target-id":t.targetId,visible:t.replyModalVisible},on:{"update:visible":function(e){t.replyModalVisible=e},succeed:t.onReplyModalClose}})],1)},i=[],l=a(47458),u=(a(70315),a(53961),a(41479),a(1594)),c=a(91411),m=a(17132),d=a(94671),p=[{title:"昵称",dataIndex:"author",width:"150px",ellipsis:!0,scopedSlots:{customRender:"author"}},{title:"内容",dataIndex:"content",scopedSlots:{customRender:"content"}},{title:"状态",dataIndex:"status",width:"100px",scopedSlots:{customRender:"status"}},{title:"评论文章",dataIndex:"post",width:"200px",ellipsis:!0,scopedSlots:{customRender:"post"}},{title:"日期",dataIndex:"createTime",width:"170px",scopedSlots:{customRender:"createTime"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],h=[{title:"昵称",dataIndex:"author",width:"150px",ellipsis:!0,scopedSlots:{customRender:"author"}},{title:"内容",dataIndex:"content",scopedSlots:{customRender:"content"}},{title:"状态",dataIndex:"status",width:"100px",scopedSlots:{customRender:"status"}},{title:"评论页面",dataIndex:"sheet",width:"200px",ellipsis:!0,scopedSlots:{customRender:"sheet"}},{title:"日期",dataIndex:"createTime",width:"170px",scopedSlots:{customRender:"createTime"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],f=[{title:"昵称",dataIndex:"author",width:"150px",ellipsis:!0,scopedSlots:{customRender:"author"}},{title:"内容",dataIndex:"content",scopedSlots:{customRender:"content"}},{title:"状态",dataIndex:"status",width:"100px",scopedSlots:{customRender:"status"}},{title:"评论日志",dataIndex:"journal",width:"400px",ellipsis:!0,scopedSlots:{customRender:"journal"}},{title:"日期",dataIndex:"createTime",width:"170px",scopedSlots:{customRender:"createTime"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],g={name:"CommentTab",components:{CommentReplyModal:u.Z},mixins:[c.jB,c.KT],props:{target:{type:String,required:!1,default:"post",validator:function(t){return-1!==["post","sheet","journal"].indexOf(t)}}},data:function(){return{commentStatuses:d.v$,list:{data:[],loading:!1,total:0,hasPrevious:!1,hasNext:!1,params:{page:0,size:10,keyword:null,status:null}},selectedRowKeys:[],selectedRows:[],selectedComment:{},replyModalVisible:!1}},created:function(){this.handleListComments()},computed:{pagination:function(){return{page:this.list.params.page+1,size:this.list.params.size,total:this.list.total}},columns:function(){return"posts"===this.targetName?p:"sheets"===this.targetName?h:"journals"===this.targetName?f:{}},targetName:function(){return"".concat(this.target,"s")},targetId:function(){return 0===Object.keys(this.selectedComment).length?0:"posts"===this.targetName?this.selectedComment.post.id:"sheets"===this.targetName?this.selectedComment.sheet.id:"journals"===this.targetName?this.selectedComment.journal.id:0}},methods:{handleListComments:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.list.loading=!0,e.next=4,m.Z.comment.list(t.targetName,t.list.params);case 4:a=e.sent,t.list.data=a.data.content,t.list.total=a.data.total,t.list.hasPrevious=a.data.hasPrevious,t.list.hasNext=a.data.hasNext,e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),t.$log.error(e.t0);case 14:return e.prev=14,t.list.loading=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})))()},handleQuery:function(){this.handleClearRowKeys(),this.handlePageChange(1)},handleChangeStatus:function(t,e){var a=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,m.Z.comment.updateStatusById(a.targetName,t,e);case 3:a.$message.success("操作成功!"),n.next=9;break;case 6:n.prev=6,n.t0=n["catch"](0),a.$log.error("Failed to change comment status",n.t0);case 9:return n.prev=9,n.next=12,a.handleListComments();case 12:return n.finish(9);case 13:case"end":return n.stop()}}),n,null,[[0,6,9,13]])})))()},handleChangeStatusInBatch:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e.selectedRowKeys.length){a.next=3;break}return e.$message.info("请至少选择一项!"),a.abrupt("return");case 3:return a.prev=3,e.$log.debug("commentIds: ".concat(e.selectedRowKeys,", status: ").concat(t)),a.next=7,m.Z.comment.updateStatusInBatch(e.targetName,e.selectedRowKeys,t);case 7:e.selectedRowKeys=[],a.next=13;break;case 10:a.prev=10,a.t0=a["catch"](3),e.$log.error("Failed to change comment status in batch",a.t0);case 13:return a.prev=13,a.next=16,e.handleListComments();case 16:return a.finish(13);case 17:case"end":return a.stop()}}),a,null,[[3,10,13,17]])})))()},handleDelete:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,m.Z.comment["delete"](e.targetName,t);case 3:e.$message.success("删除成功!"),a.next=9;break;case 6:a.prev=6,a.t0=a["catch"](0),e.$log.error("Failed to delete comment",a.t0);case 9:return a.prev=9,a.next=12,e.handleListComments();case 12:return a.finish(9);case 13:case"end":return a.stop()}}),a,null,[[0,6,9,13]])})))()},handleDeleteInBatch:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.selectedRowKeys.length){e.next=3;break}return t.$message.info("请至少选择一项!"),e.abrupt("return");case 3:return e.prev=3,t.$log.debug("delete: ".concat(t.selectedRowKeys)),e.next=7,m.Z.comment.deleteInBatch(t.targetName,t.selectedRowKeys);case 7:t.selectedRowKeys=[],e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),t.$log.error("Failed to delete comments in batch",e.t0);case 13:return e.prev=13,e.next=16,t.handleListComments();case 16:return e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[3,10,13,17]])})))()},handlePublishAndReply:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,e.handleChangeStatus(t.id,e.commentStatuses.PUBLISHED.value);case 2:e.handleOpenReplyModal(t);case 3:case"end":return a.stop()}}),a)})))()},handleOpenReplyModal:function(t){this.selectedComment=t,this.replyModalVisible=!0},handlePageChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=t-1,this.handleListComments()},handlePageSizeChange:function(t,e){this.$log.debug("Current: ".concat(t,", PageSize: ").concat(e)),this.list.params.page=0,this.list.params.size=e,this.handleListComments()},handleResetParam:function(){this.list.params.keyword=null,this.list.params.status=null,this.handleClearRowKeys(),this.handlePageChange(1)},handleClearRowKeys:function(){this.selectedRowKeys=[]},onReplyModalClose:function(){this.selectedComment={},this.replyModalVisible=!1,this.handleListComments()},onSelectionChange:function(t){this.selectedRowKeys=t,this.$log.debug("SelectedRowKeys: ".concat(t))},getCheckboxProps:function(t){return{props:{disabled:null==this.list.params.status||""===this.list.params.status,name:t.author}}}},filters:{statusText:function(t){return t?d.v$[t].text:""}}},v=g,y=a(42177),x=(0,y.Z)(v,o,i,!1,null,null,null),b=x.exports,k={components:{PageView:r.B4,CommentTab:b}},S=k,C=(0,y.Z)(S,n,s,!1,null,null,null),_=C.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/903.e243cddb.js b/src/main/resources/admin/js/903.7ef39d60.js similarity index 98% rename from src/main/resources/admin/js/903.e243cddb.js rename to src/main/resources/admin/js/903.7ef39d60.js index 222f167510..beffb5892e 100644 --- a/src/main/resources/admin/js/903.e243cddb.js +++ b/src/main/resources/admin/js/903.7ef39d60.js @@ -1 +1 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[903],{17903:function(t,e,n){n.r(e),n.d(e,{default:function(){return g}});var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page-view",[n("a-row",[n("a-col",{attrs:{span:24}},[n("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[n("a-card",{staticClass:"environment-info",attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[n("template",{slot:"title"},[t._v(" 环境信息 "),n("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:t.handleCopyEnvironments}},[n("a-icon",{attrs:{type:"copy"}})],1)],1),n("a-popover",{attrs:{slot:"extra",title:t.isLatest?"当前为最新版本":"有新版本",placement:"left"},slot:"extra"},[n("template",{slot:"content"},[n("p",[t._v(t._s(t.versionMessage))]),n("a-button",{attrs:{type:"dashed"},on:{click:t.handleShowVersionContent}},[t._v("查看详情")])],1),n("a-button",{attrs:{icon:t.isLatest?"check-circle":"exclamation-circle",loading:t.checking,shape:"circle",type:"dashed"}})],2),n("ul",{staticClass:"p-0 m-0 list-none"},[n("li",[t._v("版本:"+t._s(t.environments.version))]),n("li",[t._v("数据库:"+t._s(t.environments.database))]),n("li",[t._v("运行模式:"+t._s(t.environments.mode))]),n("li",[t._v("启用主题:"+t._s(t.activatedTheme.name))]),n("li",[t._v("启动时间:"+t._s(t._f("moment")(t.environments.startTime)))])]),n("a",{staticClass:"mr-3",attrs:{href:"https://halo.run",target:"_blank"}},[t._v("官网 "),n("a-icon",{attrs:{type:"link"}})],1),n("a",{staticClass:"mr-3",attrs:{href:"https://docs.halo.run",target:"_blank"}},[t._v("文档 "),n("a-icon",{attrs:{type:"link"}})],1),n("a",{staticClass:"mr-3",attrs:{href:"https://github.com/halo-dev",target:"_blank"}},[t._v("开源组织 "),n("a-icon",{attrs:{type:"link"}})],1),n("a",{staticClass:"mr-3",attrs:{href:"https://bbs.halo.run",target:"_blank"}},[t._v("在线社区 "),n("a-icon",{attrs:{type:"link"}})],1)],2),n("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1,loading:t.contributorsLoading,title:"开发者"}},t._l(t.contributors,(function(e,a){return n("a",{key:a,attrs:{href:e.html_url,target:"_blank"}},[n("a-tooltip",{attrs:{title:e.login,placement:"top"}},[n("a-avatar",{style:{marginRight:"10px",marginBottom:"10px"},attrs:{alt:e.login,src:t._f("webpAvatarConvert")(e.avatar_url),size:"large"}})],1)],1)})),0)],1)],1),n("a-col",{attrs:{span:24}})],1),n("a-modal",{attrs:{title:t.versionContentModalTitle,visible:t.versionContentVisible,width:620,"ok-text":"查看更多"},on:{cancel:function(e){t.versionContentVisible=!1},ok:t.handleOpenVersionUrl}},[n("div",{domProps:{innerHTML:t._s(t.versionContent)}})])],1)},r=[],i=n(47458),s=(n(70315),n(41479),n(21082),n(31875),n(30535),n(85018),n(96339),n(17132)),o=n(10299),c=n.n(o),l=n(17745),u=n(26278),h=c().create({baseURL:"https://api.github.com",timeout:1e4,headers:{"Content-Type":"application/json",Accept:"application/vnd.github.v3+json"},withCredentials:!1}),p={components:{PageView:u.B4},data:function(){return{environments:{},contributors:[{login:"",id:0,node_id:"",avatar_url:"",gravatar_id:"",url:"",html_url:"",followers_url:"",following_url:"",gists_url:"",starred_url:"",subscriptions_url:"",organizations_url:"",repos_url:"",events_url:"",received_events_url:"",type:"",site_admin:!1,contributions:0}],contributorsLoading:!0,checking:!1,isLatest:!1,latestData:{},versionContentVisible:!1,activatedTheme:{}}},computed:{versionMessage:function(){return"当前版本:".concat(this.environments.version,",").concat(this.isLatest?"已经是最新版本。":"新版本:".concat(this.latestData.name,",你可以点击下方按钮查看详情。"))},versionContent:function(){return this.latestData&&this.latestData.body?l.TU.parse(this.latestData.body):"暂无内容"},versionContentModalTitle:function(){return"".concat(this.latestData.name," 更新内容")}},created:function(){this.getEnvironments(),this.handleGetActivatedTheme(),this.fetchContributors()},methods:{getEnvironments:function(){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.Z.getEnvironment();case 2:n=e.sent,a=n.data,t.environments=a,t.checkServerUpdate();case 6:case"end":return e.stop()}}),e)})))()},handleGetActivatedTheme:function(){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.Z.theme.getActivatedTheme();case 2:n=e.sent,a=n.data,t.activatedTheme=a;case 5:case"end":return e.stop()}}),e)})))()},handleCopyEnvironments:function(){var t=this,e="版本:".concat(this.environments.version,"\n数据库:").concat(this.environments.database,"\n运行模式:").concat(this.environments.mode,"\n启用主题:").concat(this.activatedTheme.name,"\nUser Agent:").concat(navigator.userAgent);this.$copyText(e).then((function(e){t.$log.debug("copy",e),t.$message.success("复制成功!")})).catch((function(e){t.$log.debug("copy.err",e),t.$message.error("复制失败!")}))},fetchContributors:function(){var t=this;t.contributorsLoading=!0,h.get("/repos/halo-dev/halo/contributors?per_page=100").then((function(e){t.contributors=e.data})).catch((function(e){t.$log.error("Fetch contributors error",e)})).finally((function(){t.contributorsLoading=!1}))},checkServerUpdate:function(){var t=this,e=this.$createElement,n=this;n.checking=!0,h.get("/repos/halo-dev/halo/releases/latest").then((function(a){var r=a.data;if(n.latestData=r,!r.draft&&!r.prerelease){var i=n.calculateIntValue(n.environments.version),s=n.calculateIntValue(r.name);if(i>=s)n.isLatest=!0;else{var o="新版本提醒",c="检测到 Halo 新版本:"+r.name+",点击下方按钮查看最新版本。";n.$notification.open({message:o,description:c,icon:e("a-icon",{attrs:{type:"smile"},style:"color: #108ee9"}),btn:function(e){return e("a-button",{props:{type:"primary",size:"small"},on:{click:function(){return t.handleShowVersionContent()}}},"去看看")}})}}})).catch((function(t){this.$log.error("Check update fail",t)})).finally((function(){t.checking=!1}))},handleShowVersionContent:function(){this.versionContentVisible=!0},handleOpenVersionUrl:function(){window.open(this.latestData.html_url,"_blank")},calculateIntValue:function(t){t=t.replace(/v/g,"");var e=t.split(".");if(null==e||3!==e.length)return-1;var n=parseInt(e[0]),a=parseInt(e[1]),r=parseInt(e[2]);return isNaN(n)||isNaN(a)||isNaN(r)?-1:1e6*n+1e3*a+r}},filters:{webpAvatarConvert:function(t){return t.replace("avatars.githubusercontent.com","avatars-githubusercontent.webp.se")}}},d=p,v=n(42177),m=(0,v.Z)(d,a,r,!1,null,null,null),g=m.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[903],{17903:function(t,e,n){n.r(e),n.d(e,{default:function(){return g}});var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page-view",[n("a-row",[n("a-col",{attrs:{span:24}},[n("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[n("a-card",{staticClass:"environment-info",attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[n("template",{slot:"title"},[t._v(" 环境信息 "),n("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:t.handleCopyEnvironments}},[n("a-icon",{attrs:{type:"copy"}})],1)],1),n("a-popover",{attrs:{slot:"extra",title:t.isLatest?"当前为最新版本":"有新版本",placement:"left"},slot:"extra"},[n("template",{slot:"content"},[n("p",[t._v(t._s(t.versionMessage))]),n("a-button",{attrs:{type:"dashed"},on:{click:t.handleShowVersionContent}},[t._v("查看详情")])],1),n("a-button",{attrs:{icon:t.isLatest?"check-circle":"exclamation-circle",loading:t.checking,shape:"circle",type:"dashed"}})],2),n("ul",{staticClass:"p-0 m-0 list-none"},[n("li",[t._v("版本:"+t._s(t.environments.version))]),n("li",[t._v("数据库:"+t._s(t.environments.database))]),n("li",[t._v("运行模式:"+t._s(t.environments.mode))]),n("li",[t._v("启用主题:"+t._s(t.activatedTheme.name))]),n("li",[t._v("启动时间:"+t._s(t._f("moment")(t.environments.startTime)))])]),n("a",{staticClass:"mr-3",attrs:{href:"https://halo.run",target:"_blank"}},[t._v("官网 "),n("a-icon",{attrs:{type:"link"}})],1),n("a",{staticClass:"mr-3",attrs:{href:"https://docs.halo.run",target:"_blank"}},[t._v("文档 "),n("a-icon",{attrs:{type:"link"}})],1),n("a",{staticClass:"mr-3",attrs:{href:"https://github.com/halo-dev",target:"_blank"}},[t._v("开源组织 "),n("a-icon",{attrs:{type:"link"}})],1),n("a",{staticClass:"mr-3",attrs:{href:"https://bbs.halo.run",target:"_blank"}},[t._v("在线社区 "),n("a-icon",{attrs:{type:"link"}})],1)],2),n("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1,loading:t.contributorsLoading,title:"开发者"}},t._l(t.contributors,(function(e,a){return n("a",{key:a,attrs:{href:e.html_url,target:"_blank"}},[n("a-tooltip",{attrs:{title:e.login,placement:"top"}},[n("a-avatar",{style:{marginRight:"10px",marginBottom:"10px"},attrs:{alt:e.login,src:t._f("webpAvatarConvert")(e.avatar_url),size:"large"}})],1)],1)})),0)],1)],1),n("a-col",{attrs:{span:24}})],1),n("a-modal",{attrs:{title:t.versionContentModalTitle,visible:t.versionContentVisible,width:620,"ok-text":"查看更多"},on:{cancel:function(e){t.versionContentVisible=!1},ok:t.handleOpenVersionUrl}},[n("div",{domProps:{innerHTML:t._s(t.versionContent)}})])],1)},r=[],i=n(47458),s=(n(70315),n(41479),n(21082),n(31875),n(30535),n(85018),n(96339),n(17132)),o=n(10299),c=n.n(o),l=n(17745),u=n(27474),h=c().create({baseURL:"https://api.github.com",timeout:1e4,headers:{"Content-Type":"application/json",Accept:"application/vnd.github.v3+json"},withCredentials:!1}),p={components:{PageView:u.B4},data:function(){return{environments:{},contributors:[{login:"",id:0,node_id:"",avatar_url:"",gravatar_id:"",url:"",html_url:"",followers_url:"",following_url:"",gists_url:"",starred_url:"",subscriptions_url:"",organizations_url:"",repos_url:"",events_url:"",received_events_url:"",type:"",site_admin:!1,contributions:0}],contributorsLoading:!0,checking:!1,isLatest:!1,latestData:{},versionContentVisible:!1,activatedTheme:{}}},computed:{versionMessage:function(){return"当前版本:".concat(this.environments.version,",").concat(this.isLatest?"已经是最新版本。":"新版本:".concat(this.latestData.name,",你可以点击下方按钮查看详情。"))},versionContent:function(){return this.latestData&&this.latestData.body?l.TU.parse(this.latestData.body):"暂无内容"},versionContentModalTitle:function(){return"".concat(this.latestData.name," 更新内容")}},created:function(){this.getEnvironments(),this.handleGetActivatedTheme(),this.fetchContributors()},methods:{getEnvironments:function(){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.Z.getEnvironment();case 2:n=e.sent,a=n.data,t.environments=a,t.checkServerUpdate();case 6:case"end":return e.stop()}}),e)})))()},handleGetActivatedTheme:function(){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.Z.theme.getActivatedTheme();case 2:n=e.sent,a=n.data,t.activatedTheme=a;case 5:case"end":return e.stop()}}),e)})))()},handleCopyEnvironments:function(){var t=this,e="版本:".concat(this.environments.version,"\n数据库:").concat(this.environments.database,"\n运行模式:").concat(this.environments.mode,"\n启用主题:").concat(this.activatedTheme.name,"\nUser Agent:").concat(navigator.userAgent);this.$copyText(e).then((function(e){t.$log.debug("copy",e),t.$message.success("复制成功!")})).catch((function(e){t.$log.debug("copy.err",e),t.$message.error("复制失败!")}))},fetchContributors:function(){var t=this;t.contributorsLoading=!0,h.get("/repos/halo-dev/halo/contributors?per_page=100").then((function(e){t.contributors=e.data})).catch((function(e){t.$log.error("Fetch contributors error",e)})).finally((function(){t.contributorsLoading=!1}))},checkServerUpdate:function(){var t=this,e=this.$createElement,n=this;n.checking=!0,h.get("/repos/halo-dev/halo/releases/latest").then((function(a){var r=a.data;if(n.latestData=r,!r.draft&&!r.prerelease){var i=n.calculateIntValue(n.environments.version),s=n.calculateIntValue(r.name);if(i>=s)n.isLatest=!0;else{var o="新版本提醒",c="检测到 Halo 新版本:"+r.name+",点击下方按钮查看最新版本。";n.$notification.open({message:o,description:c,icon:e("a-icon",{attrs:{type:"smile"},style:"color: #108ee9"}),btn:function(e){return e("a-button",{props:{type:"primary",size:"small"},on:{click:function(){return t.handleShowVersionContent()}}},"去看看")}})}}})).catch((function(t){this.$log.error("Check update fail",t)})).finally((function(){t.checking=!1}))},handleShowVersionContent:function(){this.versionContentVisible=!0},handleOpenVersionUrl:function(){window.open(this.latestData.html_url,"_blank")},calculateIntValue:function(t){t=t.replace(/v/g,"");var e=t.split(".");if(null==e||3!==e.length)return-1;var n=parseInt(e[0]),a=parseInt(e[1]),r=parseInt(e[2]);return isNaN(n)||isNaN(a)||isNaN(r)?-1:1e6*n+1e3*a+r}},filters:{webpAvatarConvert:function(t){return t.replace("avatars.githubusercontent.com","avatars-githubusercontent.webp.se")}}},d=p,v=n(42177),m=(0,v.Z)(d,a,r,!1,null,null,null),g=m.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/967.4edc5201.js b/src/main/resources/admin/js/967.4edc5201.js deleted file mode 100644 index 33ae76df80..0000000000 --- a/src/main/resources/admin/js/967.4edc5201.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[967],{13967:function(e,t,a){a.r(t),a.d(t,{default:function(){return S}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("page-view",[a("a-row",{attrs:{gutter:12,align:"middle",type:"flex"}},[a("a-col",{staticClass:"pb-3",attrs:{span:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline"}},[a("a-row",{attrs:{gutter:48}},[a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"关键词:"}},[a("a-input",{attrs:{allowClear:""},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.list.params.keyword,callback:function(t){e.$set(e.list.params,"keyword",t)},expression:"list.params.keyword"}})],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"分组:"}},[a("a-select",{attrs:{allowClear:""},on:{change:function(t){return e.handleQuery()}},model:{value:e.list.params.team,callback:function(t){e.$set(e.list.params,"team",t)},expression:"list.params.team"}},e._l(e.computedTeams,(function(t,n){return a("a-select-option",{key:n,attrs:{value:t}},[e._v(" "+e._s(t)+" ")])})),1)],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("span",{staticClass:"table-page-search-submitButtons"},[a("a-space",[a("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleQuery()}}},[e._v("查询")]),a("a-button",{on:{click:function(t){return e.handleResetParam()}}},[e._v("重置")])],1)],1)])],1)],1)],1),a("div",{staticClass:"mb-0 table-operator"},[a("a-dropdown",{scopedSlots:e._u([{key:"overlay",fn:function(){return[a("a-menu",[a("a-menu-item",{key:"single",on:{click:function(t){return e.handleOpenForm({})}}},[e._v(" 添加")]),a("a-menu-item",{key:"batch",on:{click:function(t){e.attachmentSelectModal.visible=!0}}},[e._v(" 批量添加")])],1)]},proxy:!0}])},[a("a-button",{attrs:{icon:"plus",type:"primary"}},[e._v(" 添加 "),a("a-icon",{attrs:{type:"down"}})],1)],1),a("a-button",{directives:[{name:"show",rawName:"v-show",value:e.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"check-circle",type:"primary"},on:{click:e.handleSelectAll}},[e._v(" 全选 ")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:e.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"delete",type:"danger"},on:{click:e.handleDeletePhotoInBatch}},[e._v(" 删除 ")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:e.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"delete"},on:{click:e.handleOpenUpdateTeamForm}},[e._v(" 更改分组 ")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:e.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"close"},on:{click:function(t){e.list.selected=[]}}},[e._v(" 取消")])],1)])],1),a("a-col",{attrs:{span:24}},[a("a-list",{staticClass:"photos-group",attrs:{dataSource:e.list.data,grid:{gutter:6,xs:2,sm:2,md:4,lg:6,xl:6,xxl:6},loading:e.list.loading},scopedSlots:e._u([{key:"renderItem",fn:function(t,n){return[a("a-list-item",{key:n,on:{click:function(a){return e.handleItemClick(t)},mouseenter:function(a){return e.$set(t,"hover",!0)},mouseleave:function(a){return e.$set(t,"hover",!1)}}},[a("div",{staticClass:"border border-solid",class:e.isItemSelect(t)?"border-blue-600":"border-slate-200"},[a("div",{staticClass:"photo-thumb photos-group-item"},[a("span",{staticClass:"photos-group-item-img",style:"background-image:url("+encodeURI(t.thumbnail)+")",attrs:{loading:"lazy"}})]),a("a-card-meta",{staticClass:"p-2 cursor-pointer",scopedSlots:e._u([{key:"description",fn:function(){return[a("a-tooltip",{attrs:{title:t.name}},[a("div",{staticClass:"truncate"},[a("span",{staticClass:"mr-1"},[e._v(e._s(t.name))]),t.team?a("span",{staticClass:"text-gray-500 text-xs"},[e._v("#"+e._s(t.team))]):e._e()])])]},proxy:!0}],null,!0)}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:!e.isItemSelect(t)&&t.hover,expression:"!isItemSelect(item) && item.hover"}],staticClass:"absolute top-1 right-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px",color:"rgb(37 99 235)"},attrs:{theme:"twoTone",type:"plus-circle"},on:{click:function(a){return a.stopPropagation(),e.handleSelect(t)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:e.isItemSelect(t),expression:"isItemSelect(item)"}],staticClass:"absolute top-1 right-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px",color:"rgb(37 99 235)"},attrs:{theme:"twoTone",type:"check-circle"}})],1)])]}}])})],1)],1),a("div",{staticClass:"page-wrapper"},[a("a-pagination",{attrs:{current:e.pagination.page,defaultPageSize:e.pagination.size,pageSizeOptions:["18","36","54","72","90","108"],total:e.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:e.handlePageChange,showSizeChange:e.handlePageSizeChange}})],1),a("div",{staticStyle:{position:"fixed",bottom:"30px",right:"30px"}},[a("a-button",{attrs:{icon:"setting",shape:"circle",size:"large",type:"primary"},on:{click:function(t){e.optionFormVisible=!0}}})],1),a("a-modal",{attrs:{afterClose:function(){return e.optionFormVisible=!1},title:"页面设置"},scopedSlots:e._u([{key:"footer",fn:function(){return[a("a-button",{key:"submit",attrs:{type:"primary"},on:{click:function(t){return e.handleSaveOptions()}}},[e._v("保存")])]},proxy:!0}]),model:{value:e.optionFormVisible,callback:function(t){e.optionFormVisible=t},expression:"optionFormVisible"}},[a("a-form",{attrs:{layout:"vertical"}},[a("a-form-item",{attrs:{help:"* 需要主题进行适配",label:"页面标题:"}},[a("a-input",{model:{value:e.options.photos_title,callback:function(t){e.$set(e.options,"photos_title",t)},expression:"options.photos_title"}})],1),a("a-form-item",{attrs:{label:"每页显示条数:"}},[a("a-input-number",{staticStyle:{width:"100%"},model:{value:e.options.photos_page_size,callback:function(t){e.$set(e.options,"photos_page_size",t)},expression:"options.photos_page_size"}})],1)],1)],1),a("a-modal",{attrs:{title:"更改分组"},scopedSlots:e._u([{key:"footer",fn:function(){return[a("ReactiveButton",{attrs:{errored:e.updateTeamForm.saveErrored,loading:e.updateTeamForm.saving,erroredText:"更改失败",loadedText:"更改成功",text:"确定"},on:{callback:e.handleUpdateTeamInBatchCallback,click:e.handleUpdateTeamInBatch}}),a("a-button",{on:{click:function(t){e.updateTeamForm.visible=!1}}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.updateTeamForm.visible,callback:function(t){e.$set(e.updateTeamForm,"visible",t)},expression:"updateTeamForm.visible"}},[a("a-form",{attrs:{layout:"vertical"}},[a("a-form-item",{attrs:{label:"分组名称:"}},[a("a-auto-complete",{ref:"teamInput",staticStyle:{width:"100%"},attrs:{dataSource:e.computedTeams,allowClear:""},model:{value:e.updateTeamForm.team,callback:function(t){e.$set(e.updateTeamForm,"team",t)},expression:"updateTeamForm.team"}})],1)],1)],1),a("PhotoFormModal",{attrs:{photo:e.list.current,teams:e.computedTeams,visible:e.formVisible},on:{"update:visible":function(t){e.formVisible=t},succeed:e.onSaveSucceed},scopedSlots:e._u([{key:"extraFooter",fn:function(){return[a("a-button",{attrs:{disabled:e.selectPreviousButtonDisabled},on:{click:e.handleSelectPrevious}},[e._v("上一项")]),a("a-button",{attrs:{disabled:e.selectNextButtonDisabled},on:{click:e.handleSelectNext}},[e._v("下一项")])]},proxy:!0}])}),a("AttachmentSelectModal",{attrs:{visible:e.attachmentSelectModal.visible},on:{"update:visible":function(t){return e.$set(e.attachmentSelectModal,"visible",t)},confirm:e.handleAttachmentSelected}})],1)},r=[],o=a(75725),i=a(47458),s=a(86475),l=(a(70315),a(90195),a(31875),a(15928),a(41479),a(82395),a(21082),a(26278)),c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{afterClose:e.onClosed,maskClosable:!1,width:680,destroyOnClose:""},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.form.model.id?"修改":"添加")+"图片 "),e.loading?a("a-icon",{attrs:{type:"loading"}}):e._e()]},proxy:!0},{key:"footer",fn:function(){return[e._t("extraFooter"),a("ReactiveButton",{attrs:{errored:e.form.saveErrored,loading:e.form.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存"},on:{callback:e.handleSaveCallback,click:e.handleSave}}),a("a-button",{attrs:{disabled:e.loading},on:{click:function(t){e.modalVisible=!1}}},[e._v(" 关闭")])]},proxy:!0}],null,!0),model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[a("a-form-model",{ref:"photoForm",attrs:{"label-col":{span:4},model:e.form.model,rules:e.form.rules,"wrapper-col":{span:20},labelAlign:"left"}},[a("a-form-model-item",{attrs:{label:"图片地址:",prop:"url"}},[a("a-space",{attrs:{direction:"vertical"}},[a("img",{staticClass:"w-1/2 cursor-pointer",staticStyle:{"border-radius":"4px"},attrs:{src:e.form.model.url||"/images/placeholder.jpg"},on:{click:function(t){e.attachmentSelectModal.visible=!0}}}),a("a-input",{attrs:{"allow-clear":"",placeholder:"点击封面图选择图片,或者输入外部链接"},model:{value:e.form.model.url,callback:function(t){e.$set(e.form.model,"url",t)},expression:"form.model.url"}})],1)],1),a("a-form-model-item",{attrs:{label:"缩略图地址:",prop:"thumbnail"}},[a("a-input",{model:{value:e.form.model.thumbnail,callback:function(t){e.$set(e.form.model,"thumbnail",t)},expression:"form.model.thumbnail"}})],1),a("a-form-model-item",{attrs:{label:"图片名称:",prop:"name"}},[a("a-input",{model:{value:e.form.model.name,callback:function(t){e.$set(e.form.model,"name",t)},expression:"form.model.name"}})],1),a("a-form-model-item",{attrs:{label:"拍摄日期:",prop:"takeTime"}},[a("a-date-picker",{staticStyle:{width:"100%"},attrs:{defaultValue:e.takeTimeDefaultValue,format:"YYYY-MM-DD HH:mm:ss",showTime:""},on:{change:e.onTakeTimeChange,ok:e.onTakeTimeChange}})],1),a("a-form-model-item",{attrs:{label:"拍摄地点:",prop:"location"}},[a("a-input",{model:{value:e.form.model.location,callback:function(t){e.$set(e.form.model,"location",t)},expression:"form.model.location"}})],1),a("a-form-model-item",{attrs:{label:"分组:",prop:"team"}},[a("a-auto-complete",{staticStyle:{width:"100%"},attrs:{dataSource:e.teams,allowClear:""},model:{value:e.form.model.team,callback:function(t){e.$set(e.form.model,"team",t)},expression:"form.model.team"}})],1),a("a-form-model-item",{attrs:{label:"描述:",prop:"description"}},[a("a-input",{model:{value:e.form.model.description,callback:function(t){e.$set(e.form.model,"description",t)},expression:"form.model.description"}})],1)],1),a("AttachmentSelectModal",{attrs:{multiSelect:!1,visible:e.attachmentSelectModal.visible},on:{"update:visible":function(t){return e.$set(e.attachmentSelectModal,"visible",t)},confirm:e.handleAttachmentSelected}})],1)},u=[],m=a(38487),d=a(17132),h={name:"PhotoFormModal",props:{visible:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},photo:{type:Object,default:function(){}},teams:{type:Array,default:function(){return[]}}},data:function(){return{form:{model:{},rules:{url:[{required:!0,message:"* 图片地址不能为空",trigger:["change"]}],thumbnail:[{required:!0,message:"* 缩略图地址不能为空",trigger:["change"]}],name:[{required:!0,message:"* 图片名称不能为空",trigger:["change"]}]},saving:!1,saveErrored:!1},attachmentSelectModal:{visible:!1}}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},takeTimeDefaultValue:function(){if(this.form.model.takeTime){var e=new Date(this.form.model.takeTime);return(0,m._)(e,"YYYY-MM-DD HH:mm:ss")}return(0,m._)(new Date,"YYYY-MM-DD HH:mm:ss")}},watch:{modalVisible:function(e){e&&(this.form.model=Object.assign({},this.photo))},photo:{deep:!0,handler:function(e){this.form.model=Object.assign({},e)}}},methods:{onClosed:function(){},handleAttachmentSelected:function(e){var t=e.raw;if(t.length){var a=t[0],n=a.path,r=a.thumbPath,o=a.name;this.$set(this.form.model,"url",encodeURI(n)),this.$set(this.form.model,"thumbnail",encodeURI(r)),this.$set(this.form.model,"name",o)}this.attachmentSelectModal.visible=!1},onTakeTimeChange:function(e){this.form.model.takeTime=e.valueOf()},handleSave:function(){var e=this,t=this;t.$refs.photoForm.validate(function(){var a=(0,i.Z)(regeneratorRuntime.mark((function a(n){var r,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!n){a.next=22;break}if(t.form.saving=!0,a.prev=2,!t.form.model.id){a.next=8;break}return a.next=6,d.Z.photo.update(t.form.model.id,t.form.model);case 6:a.next=13;break;case 8:return a.next=10,d.Z.photo.create(t.form.model);case 10:r=a.sent,o=r.data,e.form.model=o;case 13:a.next=19;break;case 15:a.prev=15,a.t0=a["catch"](2),t.form.saveErrored=!0,e.$log.error("Failed to save this photo",a.t0);case 19:return a.prev=19,setTimeout((function(){t.form.saving=!1}),400),a.finish(19);case 22:case"end":return a.stop()}}),a,null,[[2,15,19,22]])})));return function(e){return a.apply(this,arguments)}}())},handleSaveCallback:function(){this.form.saveErrored?this.form.saveErrored=!1:this.$emit("succeed",this.form.model)}}},p=h,f=a(42177),v=(0,f.Z)(p,c,u,!1,null,null,null),b=v.exports,g=a(98906),k=a(91411),x={mixins:[k.jB,k.KT],components:{PageView:l.B4,PhotoFormModal:b},data:function(){return{list:{data:[],loading:!1,params:{page:0,size:18,sort:["createTime,desc","id,asc"],keyword:null,team:void 0},total:0,hasPrevious:!1,hasNext:!1,selected:[],current:{}},attachmentSelectModal:{visible:!1},updateTeamForm:{team:void 0,visible:!1,saving:!1,saveErrored:!1},formVisible:!1,teams:[],options:[],optionFormVisible:!1}},created:function(){this.handleListPhotos(),this.handleListPhotoTeams(),this.handleListOptions()},computed:{pagination:function(){return{page:this.list.params.page+1,size:this.list.params.size,total:this.list.total}},computedTeams:function(){return this.teams.filter((function(e){return""!==e}))},isItemSelect:function(){return function(e){return this.list.selected.findIndex((function(t){return t.id===e.id}))>-1}},selectPreviousButtonDisabled:function(){var e=this,t=this.list.data.findIndex((function(t){return t.id===e.list.current.id}));return 0===t&&!this.list.hasPrevious},selectNextButtonDisabled:function(){var e=this,t=this.list.data.findIndex((function(t){return t.id===e.list.current.id}));return t===this.list.data.length-1&&!this.list.hasNext}},methods:(0,s.Z)((0,s.Z)({},(0,g.nv)(["refreshOptionsCache"])),{},{handleListPhotos:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.list.loading=!0,t.next=4,d.Z.photo.list(e.list.params);case 4:a=t.sent,e.list.data=a.data.content,e.list.total=a.data.total,e.list.hasPrevious=a.data.hasPrevious,e.list.hasNext=a.data.hasNext,t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),e.$log.error("Failed to get photos",t.t0);case 14:return t.prev=14,e.list.loading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,11,14,17]])})))()},handleListPhotoTeams:function(){var e=this;d.Z.photo.listTeams().then((function(t){e.teams=t.data}))},handlePageChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=e-1,this.handleListPhotos()},handlePageSizeChange:function(e,t){this.$log.debug("Current: ".concat(e,", PageSize: ").concat(t)),this.list.params.page=0,this.list.params.size=t,this.handleListPhotos()},handleQuery:function(){this.handlePageChange(1)},handleResetParam:function(){this.list.params.keyword=void 0,this.list.params.team=void 0,this.handlePageChange(1),this.handleListPhotoTeams()},handleItemClick:function(e){this.list.selected.length<=0?this.handleOpenForm(e):this.isItemSelect(e)?this.handleUnselect(e):this.handleSelect(e)},handleOpenForm:function(e){this.list.current=e,this.formVisible=!0},handleSelect:function(e){this.list.selected=[].concat((0,o.Z)(this.list.selected),[e])},handleUnselect:function(e){this.list.selected=this.list.selected.filter((function(t){return t.id!==e.id}))},handleSelectAll:function(){this.list.selected=this.list.data},handleAttachmentSelected:function(e){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function a(){var n,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=e.raw,n.length){a.next=3;break}return a.abrupt("return");case 3:return r=n.map((function(e){return{name:e.name,url:e.path,thumbnail:e.thumbPath}})),a.prev=4,a.next=7,d.Z.photo.createInBatch(r);case 7:t.$message.success("添加成功"),a.next=13;break;case 10:a.prev=10,a.t0=a["catch"](4),t.$log.error("Failed to create photos in batch",a.t0);case 13:return a.prev=13,a.next=16,t.handleListPhotos();case 16:return t.handleListPhotoTeams(),a.finish(13);case 18:case"end":return a.stop()}}),a,null,[[4,10,13,18]])})))()},handleDeletePhotoInBatch:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.list.selected.length<=0)){t.next=3;break}return e.$message.warn("你还未选择任何图片,请至少选择一个!"),t.abrupt("return");case 3:a=e,e.$confirm({title:"确定要批量删除选中的图片吗?",content:"一旦删除不可恢复,请谨慎操作",onOk:function(){return(0,i.Z)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=a.list.selected.map((function(e){return e.id})),e.next=4,d.Z.photo.deleteInBatch(t);case 4:a.list.selected=[],a.$message.success("删除成功"),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),a.$log.error("Failed to delete selected photos",e.t0);case 11:return e.prev=11,e.next=14,a.handleListPhotos();case 14:return a.handleListPhotoTeams(),e.finish(11);case 16:case"end":return e.stop()}}),e,null,[[0,8,11,16]])})))()}});case 5:case"end":return t.stop()}}),t)})))()},handleUpdateTeamInBatch:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.list.selected.map((function(t){return(0,s.Z)((0,s.Z)({},t),{},{team:e.updateTeamForm.team})})),t.prev=1,e.updateTeamForm.saving=!0,t.next=5,d.Z.photo.updateInBatch(a);case 5:e.$message.success("更改成功"),t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](1),e.updateTeamForm.saveErrored=!0,e.$log.error("Failed to change team in batch",t.t0);case 12:return t.prev=12,setTimeout((function(){e.updateTeamForm.saving=!1}),400),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[1,8,12,15]])})))()},handleUpdateTeamInBatchCallback:function(){this.updateTeamForm.saveErrored?this.updateTeamForm.saveErrored=!1:(this.updateTeamForm.visible=!1,this.updateTeamForm.team=void 0,this.list.selected=[],this.handleListPhotos())},handleOpenUpdateTeamForm:function(){var e=this;this.updateTeamForm.visible=!0,this.$nextTick((function(){e.$refs.teamInput.focus()}))},onSaveSucceed:function(e){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,t.handleListPhotos();case 2:t.list.current=e,t.handleListPhotoTeams();case 4:case"end":return a.stop()}}),a)})))()},handleListOptions:function(){var e=this;d.Z.option.list().then((function(t){e.options=t.data}))},handleSaveOptions:function(){var e=this;d.Z.option.save(this.options).then((function(){e.$message.success("保存成功!"),e.optionFormVisible=!1})).finally((function(){e.handleListOptions(),e.refreshOptionsCache()}))},handleSelectPrevious:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.list.data.findIndex((function(t){return t.id===e.list.current.id})),!(a>0)){t.next=4;break}return e.list.current=e.list.data[a-1],t.abrupt("return");case 4:if(0!==a||!e.list.hasPrevious){t.next=9;break}return e.list.params.page--,t.next=8,e.handleListPhotos();case 8:e.list.current=e.list.data[e.list.data.length-1];case 9:case"end":return t.stop()}}),t)})))()},handleSelectNext:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.list.data.findIndex((function(t){return t.id===e.list.current.id})),!(a=5&&(this.options.developer_mode?(this.$message.info("当前已启用开发者选项!"),this.clickCount=0):this.$message.info("再点击 ".concat(10-this.clickCount," 次即可启用开发者选项!")));case 17:case"end":return e.stop()}}),e,this,[[2,12]])}))),200)})},P=O,H=(0,c.Z)(P,w,L,!1,null,null,null),M=H.exports,D=n(64689),$=n.n(D),R=n(26434),F=(n(18482),n(41479),n(2923),n(18329),n(21082),n(82395),n(2142)),B=n(56911),N={name:"SMenu",props:{menu:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"},mode:{type:String,required:!1,default:"inline"},collapsed:{type:Boolean,required:!1,default:!1}},data:function(){return{openKeys:[],selectedKeys:[],cachedOpenKeys:[]}},computed:{rootSubmenuKeys:function(e){var t=[];return e.menu.forEach((function(e){return t.push(e.path)})),t}},created:function(){this.updateMenu()},watch:{collapsed:function(e){e?(this.cachedOpenKeys=this.openKeys.concat(),this.openKeys=[]):this.openKeys=this.cachedOpenKeys},$route:function(){this.updateMenu()}},methods:{onOpenChange:function(e){var t=this;if("horizontal"!==this.mode){var n=e.find((function(e){return!t.openKeys.includes(e)}));this.rootSubmenuKeys.includes(n)?this.openKeys=n?[n]:[]:this.openKeys=e}else this.openKeys=e},onSelect:function(e){var t=e.item,n=e.key,a=e.selectedKeys;this.selectedKeys=a,this.$emit("select",{item:t,key:n,selectedKeys:a})},updateMenu:function(){var e=this.$route.matched.concat();e.length>=4&&this.$route.meta.hidden?(e.pop(),this.selectedKeys=[e[2].path]):this.selectedKeys=[e.pop().path];var t=[];"inline"===this.mode&&e.forEach((function(e){t.push(e.path)})),this.collapsed?this.cachedOpenKeys=t:this.openKeys=t},renderItem:function(e){return e.hidden?null:e.children&&!e.hideChildrenInMenu?this.renderSubMenu(e):this.renderMenuItem(e)},renderMenuItem:function(e){var t=this.$createElement,n=e.meta.target||null,a=n?"a":"router-link",i={to:{name:e.name}},r={href:e.path,target:e.meta.target};return t(F.ZP.Item,$()([{},{key:e.path}]),[t(a,{props:(0,f.Z)({},i),attrs:(0,f.Z)({},r)},[this.renderIcon(e.meta.icon),t("span",[e.meta.title])])])},renderSubMenu:function(e){var t=this,n=this.$createElement,a=[];return e.hideChildrenInMenu||e.children.forEach((function(e){return a.push(t.renderItem(e))})),n(F.ZP.SubMenu,$()([{},{key:e.path}]),[n("span",{slot:"title"},[this.renderIcon(e.meta.icon),n("span",[e.meta.title])]),a])},renderIcon:function(e){var t=this.$createElement;if("none"===e||void 0===e)return null;var n={};return"object"===(0,R.Z)(e)?n.component=e:n.type=e,t(B.Z,{props:(0,f.Z)({},n)})}},render:function(){var e=this,t=arguments[0],n={props:{mode:this.mode,theme:this.theme,openKeys:this.openKeys,selectedKeys:this.selectedKeys},on:{openChange:this.onOpenChange,select:this.onSelect}},a=this.menu.map((function(t){return t.hidden?null:e.renderItem(t)}));return t(F.ZP,$()([{},n]),[a])}},G=N,U={name:"SideMenu",components:{Logo:M,SMenu:G},mixins:[b.jB,b.KT],props:{mode:{type:String,required:!1,default:"inline"},theme:{type:String,required:!1,default:"dark"},collapsible:{type:Boolean,required:!1,default:!1},collapsed:{type:Boolean,required:!1,default:!1},menus:{type:Array,required:!0}},methods:{onSelect:function(e){this.$emit("menuSelect",e)}}},z=U,K=(0,c.Z)(z,S,E,!1,null,null,null),V=K.exports,Y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"showHeader"}},[e.visible?n("a-layout-header",{class:[e.fixedHeader&&"ant-header-fixedHeader",e.sidebarOpened?"ant-header-side-opened":"ant-header-side-closed"],staticStyle:{padding:"0"}},["sidemenu"===e.mode?n("div",{staticClass:"header"},["mobile"===e.device?n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-fold":"menu-unfold"},on:{click:e.toggle}}):n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.toggle}}),n("user-menu")],1):n("div",{class:["top-nav-header-index",e.theme]},[n("div",{staticClass:"header-index-wide"},[n("div",{staticClass:"header-index-left"},["mobile"!==e.device?n("logo",{staticClass:"top-nav-header"}):e._e(),"mobile"!==e.device?n("s-menu",{attrs:{menu:e.menus,theme:e.theme,mode:"horizontal"}}):n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-fold":"menu-unfold"},on:{click:e.toggle}})],1),n("user-menu",{staticClass:"header-index-right"})],1)])]):e._e()],1)},q=[],W=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"user-wrapper"},[n("a",{attrs:{href:e.options.blog_url,target:"_blank"}},[n("a-tooltip",{attrs:{placement:"bottom",title:"点击跳转到首页"}},[n("span",{staticClass:"action"},[n("a-icon",{attrs:{type:"link"}})],1)])],1),n("a",{attrs:{href:"javascript:void(0)"},on:{click:e.handleShowLayoutSetting}},[n("a-tooltip",{attrs:{placement:"bottom",title:"后台布局设置"}},[n("span",{staticClass:"action"},[n("a-icon",{attrs:{type:"setting"}})],1)])],1),n("header-comment",{staticClass:"action"}),n("a-dropdown",[e.user?n("span",{staticClass:"action ant-dropdown-link user-dropdown-menu"},[n("a-avatar",{staticClass:"avatar",attrs:{src:e.user.avatar||"//cn.gravatar.com/avatar/?s=256&d=mm",size:"small"}})],1):e._e(),n("a-menu",{staticClass:"user-dropdown-menu-wrapper",attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"0"},[n("router-link",{attrs:{to:{name:"Profile"}}},[n("a-icon",{attrs:{type:"user"}}),n("span",[e._v("个人资料")])],1)],1),n("a-menu-divider"),n("a-menu-item",{key:"1"},[n("a",{attrs:{href:"javascript:void(0);"},on:{click:e.handleLogout}},[n("a-icon",{attrs:{type:"logout"}}),n("span",[e._v("退出登录")])],1)])],1)],1)],1)},X=[],Q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-popover",{attrs:{arrowPointAtCenter:!0,autoAdjustOverflow:!0,overlayStyle:{width:"400px",top:"50px"},overlayClassName:"header-comment-popover",placement:"bottomRight",title:"待审核评论",trigger:"click"},scopedSlots:e._u([{key:"content",fn:function(){return[n("div",{staticClass:"custom-tab-wrapper"},[n("a-tabs",{attrs:{animated:{inkBar:!0,tabPane:!1}},on:{change:e.handleListAuditingComments},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},e._l(e.targets,(function(t){return n("a-tab-pane",{key:t.key,attrs:{tab:t.label}},[n("CommentListView",{attrs:{comments:e.comments[t.dataKey],loading:e.comments.loading}})],1)})),1)],1)]},proxy:!0}])},[n("span",{staticClass:"inline-block transition-all"},[e.comments.post.length||e.comments.sheet.length||e.comments.journal.length?n("a-badge",{attrs:{dot:""}},[n("a-icon",{attrs:{type:"bell"}})],1):n("a-badge",[n("a-icon",{attrs:{type:"bell"}})],1)],1)])},J=[],ee=(n(29888),n(45107),[{key:"posts",dataKey:"post",label:"文章"},{key:"sheets",dataKey:"sheet",label:"页面"},{key:"journals",dataKey:"journal",label:"日志"}]),te={name:"HeaderComment",data:function(){return{targets:ee,activeKey:"posts",comments:{post:[],sheet:[],journal:[],loading:!1}}},created:function(){this.handleListAuditingComments()},methods:{handleListAuditingComments:function(){var e=this;return(0,Z.Z)(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.comments.loading=!0,n={status:"AUDITING",size:20},t.next=5,Promise.all(ee.map((function(e){return j.Z.comment.list(e.key,n)})));case 5:a=t.sent,e.comments.post=a[0].data.content,e.comments.sheet=a[1].data.content,e.comments.journal=a[2].data.content,t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),e.$log.error("Failed to get auditing comments",t.t0);case 14:return t.prev=14,e.comments.loading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,11,14,17]])})))()}}},ne=te,ae=(0,c.Z)(ne,Q,J,!1,null,null,null),ie=ae.exports,re={name:"UserMenu",components:{HeaderComment:ie},computed:(0,f.Z)({},(0,v.Se)(["user","options"])),methods:(0,f.Z)((0,f.Z)({},(0,v.nv)(["logout","ToggleLayoutSetting"])),{},{handleLogout:function(){var e=this;this.$confirm({title:"提示",content:"确定要注销登录吗 ?",onOk:function(){var t=(0,Z.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.logout();case 3:window.location.reload(),t.next=9;break;case 6:t.prev=6,t.t0=t["catch"](0),e.$message.error({title:"错误",description:t.t0.message});case 9:case"end":return t.stop()}}),t,null,[[0,6]])})));function n(){return t.apply(this,arguments)}return n}()})},handleShowLayoutSetting:function(){this.ToggleLayoutSetting(!0)}})},oe=re,se=(0,c.Z)(oe,W,X,!1,null,null,null),le=se.exports,ue={name:"GlobalHeader",components:{UserMenu:le,SMenu:G,Logo:M},mixins:[b.jB],props:{mode:{type:String,default:"sidemenu"},menus:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"},collapsed:{type:Boolean,required:!1,default:!1},device:{type:String,required:!1,default:"desktop"}},data:function(){return{visible:!0,oldScrollTop:0}},mounted:function(){document.addEventListener("scroll",this.handleScroll,{passive:!0})},methods:{handleScroll:function(){var e=this;if(this.autoHideHeader){var t=document.body.scrollTop+document.documentElement.scrollTop;this.ticking||(this.ticking=!0,requestAnimationFrame((function(){e.oldScrollTop>t?e.visible=!0:t>300&&e.visible?e.visible=!1:t<300&&!e.visible&&(e.visible=!0),e.oldScrollTop=t,e.ticking=!1})))}},toggle:function(){this.$emit("toggle")}},beforeDestroy:function(){document.body.removeEventListener("scroll",this.handleScroll,!0)}},ce=ue,de=(0,c.Z)(ce,Y,q,!1,null,null,null),me=de.exports,pe=me,he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer text-center",staticStyle:{padding:"0 16px",margin:"48px 0 0"}},[n("div",{staticClass:"copyright",staticStyle:{color:"rgba(0, 0, 0, 0.45)","font-size":"14px"}},[e._v(" Proudly power by "),n("router-link",{attrs:{to:{name:"About"}}},[e._v(" Halo ")])],1)])},fe=[],ge={name:"GlobalFooter"},ve=ge,be=(0,c.Z)(ve,he,fe,!1,null,null,null),ye=be.exports,xe=ye,_e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"settingDrawer",staticClass:"setting-drawer"},[n("a-drawer",{attrs:{visible:e.layoutSetting,closable:"",width:"300"},on:{close:e.onClose}},[n("div",{staticClass:"setting-drawer-index-content"},[n("div",{staticClass:"mb-6"},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("整体风格设置")]),n("div",{staticClass:"setting-drawer-index-blockChecbox"},[n("a-tooltip",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v("暗色菜单风格")]},proxy:!0}])},[n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleSetMenuTheme("dark")}}},[n("img",{attrs:{alt:"dark",src:"/images/dark.svg"}}),"dark"===e.navTheme?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])]),n("a-tooltip",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v("亮色菜单风格")]},proxy:!0}])},[n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleSetMenuTheme("light")}}},[n("img",{attrs:{alt:"light",src:"/images/dark.svg"}}),"dark"!==e.navTheme?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])])],1)]),n("a-divider"),n("div",{staticClass:"mb-6"},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("主题色")]),n("div",{staticClass:"h-5"},e._l(e.colorList,(function(t,a){return n("a-tooltip",{key:a,staticClass:"setting-drawer-theme-color-colorBlock",scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(t.key))]},proxy:!0}],null,!0)},[n("a-tag",{attrs:{color:t.color},on:{click:function(n){return e.handleChangeColor(t.color)}}},[t.color===e.primaryColor?n("a-icon",{attrs:{type:"check"}}):e._e()],1)],1)})),1)]),n("a-divider"),n("div",{staticClass:"mb-6"},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("导航模式")]),n("div",{staticClass:"setting-drawer-index-blockChecbox"},[n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleSetLayout("sidemenu")}}},[n("img",{attrs:{alt:"sidemenu",src:"/images/sidemenu.svg"}}),"sidemenu"===e.layoutMode?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()]),n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleSetLayout("topmenu")}}},[n("img",{attrs:{alt:"topmenu",src:"/images/topmenu.svg"}}),"sidemenu"!==e.layoutMode?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])])]),n("a-divider"),n("div",{staticClass:"mt-6"},[n("a-list",{attrs:{split:!1}},[n("a-list-item",{scopedSlots:e._u([{key:"actions",fn:function(){return[n("a-tooltip",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" 该设定仅 [顶部栏导航] 时有效")]},proxy:!0}])},[n("a-select",{staticStyle:{width:"80px"},attrs:{disabled:"topmenu"!==e.layoutMode,value:e.contentWidth,size:"small"},on:{change:e.handleContentWidthChange}},[n("a-select-option",{attrs:{value:"Fixed"}},[e._v("固定")]),"sidemenu"!==e.layoutMode?n("a-select-option",{attrs:{value:"Fluid"}},[e._v("流式")]):e._e()],1)],1)]},proxy:!0}])},[n("a-list-item-meta",{scopedSlots:e._u([{key:"title",fn:function(){return[n("div",[e._v("内容区域宽度")])]},proxy:!0}])})],1),n("a-list-item",{scopedSlots:e._u([{key:"actions",fn:function(){return[n("a-switch",{attrs:{checked:e.fixedHeader,size:"small"},on:{change:e.handleSetFixedHeader}})]},proxy:!0}])},[n("a-list-item-meta",{scopedSlots:e._u([{key:"title",fn:function(){return[n("div",[e._v("固定 Header")])]},proxy:!0}])})],1),n("a-list-item",{scopedSlots:e._u([{key:"actions",fn:function(){return[n("a-switch",{attrs:{checked:e.autoHideHeader,disabled:!e.fixedHeader,size:"small"},on:{change:e.handleSetAutoHideHeader}})]},proxy:!0}])},[n("a-list-item-meta",{scopedSlots:e._u([{key:"title",fn:function(){return[n("a-tooltip",{attrs:{placement:"left"},scopedSlots:e._u([{key:"title",fn:function(){return[e._v("固定 Header 时可配置")]},proxy:!0}])},[n("div",{style:{opacity:e.fixedHeader?"1":"0.5"}},[e._v("下滑时隐藏 Header")])])]},proxy:!0}])})],1),n("a-list-item",{scopedSlots:e._u([{key:"actions",fn:function(){return[n("a-switch",{attrs:{checked:e.fixedSidebar,disabled:"topmenu"===e.layoutMode,size:"small"},on:{change:e.handleSetFixedSidebar}})]},proxy:!0}])},[n("a-list-item-meta",{scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{style:{opacity:"topmenu"===e.layoutMode?"0.5":"1"}},[e._v("固定侧边菜单")])]},proxy:!0}])})],1)],1)],1),n("a-divider")],1)])],1)},ke=[],Te=n(21872),Ce=[{key:"红色",color:"#F5222D"},{key:"浅红色",color:"#FA541C"},{key:"日暮",color:"#FAAD14"},{key:"青色",color:"#13C2C2"},{key:"绿色",color:"#52C41A"},{key:"默认",color:"#1890FF"},{key:"蓝色",color:"#2F54EB"},{key:"紫色",color:"#722ED1"}],Se=function(e){if(e){var t=Te.Z.loading("正在编译主题!",0);if(r)o();else{var n=document.createElement("link"),a=document.createElement("script"),i=document.createElement("script");n.setAttribute("rel","stylesheet/less"),n.setAttribute("href","/color.less"),a.innerHTML="\n window.less = {\n async: true,\n env: 'production',\n javascriptEnabled: true\n };\n ",i.src="https://unpkg.com/less@3.8.1/dist/less.min.js",i.async=!0,i.onload=function(){o(),i.onload=null},document.body.appendChild(n),document.body.appendChild(a),document.body.appendChild(i),r=!0}}function o(){window.less&&setTimeout((function(){window.less.modifyVars({"@primary-color":e}).then((function(){t()})).catch((function(){Te.Z.error("Failed to update theme"),t()}))}),200)}},Ee={mixins:[b.jB,b.KT],data:function(){return{colorList:Ce,baseConfig:Object.assign({},y.Z)}},watch:{},mounted:function(){this.primaryColor!==y.Z.primaryColor&&Se(this.primaryColor)},computed:(0,f.Z)({},(0,v.Se)(["layoutSetting"])),methods:(0,f.Z)((0,f.Z)({},(0,v.nv)(["setSidebar","ToggleLayoutSetting"])),{},{onClose:function(){this.ToggleLayoutSetting(!1)},handleSetMenuTheme:function(e){this.baseConfig.navTheme=e,this.$store.dispatch("ToggleTheme",e)},handleSetLayout:function(e){this.baseConfig.layout=e,this.$store.dispatch("ToggleLayoutMode",e),"sidemenu"===e?(this.handleContentWidthChange("Fixed"),this.handleSetFixedSidebar(!0)):(this.handleSetFixedHeader(!0),this.handleSetFixedSidebar(!1),this.$store.dispatch("setSidebar",!0))},handleContentWidthChange:function(e){this.baseConfig.contentWidth=e,this.$store.dispatch("ToggleContentWidth",e)},handleChangeColor:function(e){this.baseConfig.primaryColor=e,this.primaryColor!==e&&(this.$store.dispatch("ToggleColor",e),Se(e))},handleSetFixedHeader:function(e){this.baseConfig.fixedHeader=e,this.$store.dispatch("ToggleFixedHeader",e),e||this.handleSetAutoHideHeader(!1)},handleSetAutoHideHeader:function(e){this.baseConfig.autoHideHeader=e,this.$store.dispatch("ToggleFixedHeaderHidden",e)},handleSetFixedSidebar:function(e){this.baseConfig.fixedSidebar=e,this.$store.dispatch("ToggleFixedSidebar",e)}})},we=Ee,Le=(0,c.Z)(we,_e,ke,!1,null,"fb6bf264",null),Ze=Le.exports,je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{footer:null,maskClosable:!1,width:320,title:"重新登录"},on:{cancel:e.handleCancelLogin},model:{value:e.loginModal,callback:function(t){e.loginModal=t},expression:"loginModal"}},[n("LoginForm",{on:{success:e.onLoginSucceed}})],1)],1)},Ie=[],Ae=n(63618),Oe={name:"LoginModal",components:{LoginForm:Ae.Z},computed:(0,f.Z)({},(0,v.Se)(["loginModal"])),methods:(0,f.Z)((0,f.Z)({},(0,v.nv)(["ToggleLoginModal"])),{},{onLoginSucceed:function(){this.$emit("success")},handleCancelLogin:function(){this.ToggleLoginModal(!1)}})},Pe=Oe,He=(0,c.Z)(Pe,je,Ie,!1,null,"3ad442b9",null),Me=He.exports,De={name:"BasicLayout",mixins:[b.jB,b.KT],components:{RouteView:C,SideMenu:V,GlobalHeader:pe,GlobalFooter:xe,SettingDrawer:Ze,LoginModal:Me},data:function(){return{production:y.Z.production,collapsed:!1,menus:[]}},computed:{contentPaddingLeft:function(){return!this.fixedSidebar||this.isMobile()?"0":this.sidebarOpened?"256px":"80px"}},watch:{sidebarOpened:function(e){this.collapsed=!e}},created:function(){this.menus=x.j.find((function(e){return"/"===e.path})).children,this.collapsed=!this.sidebarOpened},mounted:function(){var e=this,t=navigator.userAgent;t.indexOf("Edge")>-1&&this.$nextTick((function(){e.collapsed=!e.collapsed,setTimeout((function(){e.collapsed=!e.collapsed}),16)}))},methods:(0,f.Z)((0,f.Z)({},(0,v.nv)(["setSidebar","ToggleLoginModal"])),{},{toggle:function(){this.collapsed=!this.collapsed,this.setSidebar(!this.collapsed),(0,g.XC)()},menuSelect:function(){this.isDesktop()||(this.collapsed=!1)},drawerClose:function(){this.collapsed=!1},onLoginSucceed:function(){this.ToggleLoginModal(!1)}})},$e=De,Re=(0,c.Z)($e,p,h,!1,null,null,null),Fe=Re.exports,Be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.$route.meta.hiddenHeaderContent?null:"margin: -24px -24px 0px;"},[e.affix?n("a-affix",[e.$route.meta.hiddenHeaderContent?e._e():n("div",{staticClass:"page-header"},[n("div",{staticClass:"page-header-index-wide"},[n("a-page-header",{attrs:{breadcrumb:{props:{routes:e.breadList}},"sub-title":e.subTitle,title:e.title}},[e._t("extra",null,{slot:"extra"}),e._t("footer",null,{slot:"footer"}),e._t("content")],2)],1)])]):e._e(),e.$route.meta.hiddenHeaderContent||e.affix?e._e():n("div",{staticClass:"page-header"},[n("div",{staticClass:"page-header-index-wide"},[n("a-page-header",{attrs:{breadcrumb:{props:{routes:e.breadList}},"sub-title":e.subTitle,title:e.title}},[e._t("extra",null,{slot:"extra"}),e._t("footer",null,{slot:"footer"}),e._t("content")],2)],1)]),n("div",{staticClass:"content"},[n("div",{staticClass:"page-header-index-wide"},[e._t("default",(function(){return[n("router-view",{ref:"content"})]}))],2)])],1)},Ne=[],Ge={name:"PageView",props:{title:{type:String,default:null},subTitle:{type:String,default:null},affix:{type:Boolean,default:!1}},data:function(){return{breadList:[]}},created:function(){this.getBreadcrumb()},watch:{$route:function(){this.getBreadcrumb()}},methods:{getBreadcrumb:function(){var e=this;this.breadList=[],this.$route.matched.forEach((function(t){t.breadcrumbName=t.meta.title,e.breadList.push(t)}))}}},Ue=Ge,ze=(0,c.Z)(Ue,Be,Ne,!1,null,"3af43504",null),Ke=ze.exports},84464:function(e,t,n){"use strict";n(97898),n(63208),n(12809),n(60296);var a=n(35702),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-config-provider",{attrs:{locale:e.locale}},[n("div",{staticClass:"h-full",attrs:{id:"app"}},[n("router-view")],1)])},r=[],o=n(76033),s=n(6145),l={data:function(){return{locale:o.Z}},mounted:function(){var e=this,t=this.$store;(0,s.A)((function(n){switch(n){case s.m.DESKTOP:t.commit("TOGGLE_DEVICE","desktop"),t.dispatch("setSidebar",e.$store.getters.sidebar);break;case s.m.TABLET:t.commit("TOGGLE_DEVICE","tablet"),t.dispatch("setSidebar",e.$store.getters.sidebar);break;case s.m.MOBILE:default:t.commit("TOGGLE_DEVICE","mobile"),t.dispatch("setSidebar",!0);break}}))}},u=l,c=n(42177),d=(0,c.Z)(u,i,r,!1,null,null,null),m=d.exports,p=(n(41479),n(13407)),h=n(93650);a["default"].use(p.Z);var f=new p.Z({mode:"hash",base:"/",scrollBehavior:function(){return{y:0}},routes:h.k.concat(h.j)}),g=n(60331),v=n(56612),b=n(98291),y=!0,x={isEnabled:!0,logLevel:y?"error":"debug",stringifyArguments:!1,showLogLevel:!0,showMethodName:!0,separator:"|",showConsoleColors:!0};a["default"].use(b.Z,x);var _=n(60271),k=n.n(_),T=n(78250),C=n(84630),S=n(77214),E=n(90081),w=n(23915),L=n(77689),Z=n(87253),j=n(48617),I=n(96830),A=n(36432),O=n(14406),P=n(14213),H=n(63912),M=n(9120),D=n(88148),$=n(47701),R=n(50448),F=n(61226),B=n(94882),N=n(56911),G=n(65795),U=n(20846),z=n(17311),K=n(26699),V=n(31911),Y=n(2142),q=n(96100),W=n(88644),X=n(21527),Q=n(11400),J=n(46069),ee=n(81132),te=n(47861),ne=n(41725),ae=n(23231),ie=n(17529),re=n(76441),oe=n(37333),se=n(54479),le=n(9099),ue=n(61247),ce=n(67559),de=n(31195),me=n(92952),pe=n(30841),he=n(49538),fe=n(30955),ge=n(10384),ve=n(78008),be=n(52011),ye=n(42228),xe=n(97711),_e=n(69436),ke=n(21872),Te=n(4360);a["default"].use(C.Z),a["default"].use(S.ZP),a["default"].use(E.Z),a["default"].use(w.Z),a["default"].use(L.Z),a["default"].use(Z.Z),a["default"].use(j.Z),a["default"].use(I.Z),a["default"].use(A.Z),a["default"].use(O.Z),a["default"].use(P.Z),a["default"].use(H.Z),a["default"].use(M.Z),a["default"].use(D.Z),a["default"].use($.Z),a["default"].use(R.ZP),a["default"].use(F.ZP),a["default"].use(B.ZP),a["default"].use(N.Z),a["default"].use(G.Z),a["default"].use(U.Z),a["default"].use(z.Z),a["default"].use(K.ZP),a["default"].use(V.Z),a["default"].use(Y.ZP),a["default"].use(q.Z),a["default"].use(W.Z),a["default"].use(X.ZP),a["default"].use(Q.Z),a["default"].use(J.Z),a["default"].use(ee.Z),a["default"].use(te.ZP),a["default"].use(ne.Z),a["default"].use(ae.ZP),a["default"].use(ie.Z),a["default"].use(re.Z),a["default"].use(oe.Z),a["default"].use(se.Z),a["default"].use(le.ZP),a["default"].use(ue.ZP),a["default"].use(ce.Z),a["default"].use(de.ZP),a["default"].use(me.Z),a["default"].use(pe.Z),a["default"].use(he.Z),a["default"].use(fe.Z),a["default"].use(ge.ZP),a["default"].use(ve.Z),a["default"].use(be.ZP),a["default"].use(ye.ZP),a["default"].use(xe.ZP),a["default"].use(_e.ZP),ke.Z.config({maxCount:1}),a["default"].prototype.$message=ke.Z,a["default"].prototype.$notification=Te.Z,a["default"].prototype.$info=q.Z.info,a["default"].prototype.$success=q.Z.success,a["default"].prototype.$error=q.Z.error,a["default"].prototype.$warning=q.Z.warning,a["default"].prototype.$confirm=q.Z.confirm;n(30534);var Ce=n(82547);function Se(){v.Z.commit("SET_SIDEBAR_TYPE",a["default"].ls.get(Ce.mQ,!0)),v.Z.commit("TOGGLE_THEME",a["default"].ls.get(Ce.t0,T.Z.navTheme)),v.Z.commit("TOGGLE_LAYOUT_MODE",a["default"].ls.get(Ce.v9,T.Z.layout)),v.Z.commit("TOGGLE_FIXED_HEADER",a["default"].ls.get(Ce.Vv,T.Z.fixedHeader)),v.Z.commit("TOGGLE_FIXED_SIDEBAR",a["default"].ls.get(Ce.lK,T.Z.fixedSidebar)),v.Z.commit("TOGGLE_CONTENT_WIDTH",a["default"].ls.get(Ce.hC,T.Z.contentWidth)),v.Z.commit("TOGGLE_FIXED_HEADER_HIDDEN",a["default"].ls.get(Ce.NK,T.Z.autoHideHeader)),v.Z.commit("TOGGLE_COLOR",a["default"].ls.get(Ce.Dp,T.Z.primaryColor)),v.Z.commit("SET_TOKEN",a["default"].ls.get(Ce.LA)),v.Z.commit("SET_USER",a["default"].ls.get(Ce.xR)),v.Z.commit("SET_OPTIONS",a["default"].ls.get(Ce.JY))}var Ee=n(91884),we=n.n(Ee);a["default"].use(k(),T.Z.storageOptions),a["default"].use(we()),Se();var Le=n(47458),Ze=(n(70315),n(21082),n(2923),n(29981)),je=n.n(Ze),Ie=(n(30535),n(86381),function(e){document.title=e;var t=navigator.userAgent,n=/\bMicroMessenger\/([\d\.]+)/;if(n.test(t)&&/ip(hone|od|ad)/i.test(t)){var a=document.createElement("iframe");a.src="/favicon.ico",a.style.display="none",a.onload=function(){setTimeout((function(){a.remove()}),9)},document.body.appendChild(a)}}),Ae="Halo";je().configure({showSpinner:!1,speed:500});var Oe=["Login","Install","NotFound","ResetPassword"],Pe=null;function He(){Pe&&0!==Pe&&(clearTimeout(Pe),Pe=null,je().done())}f.beforeEach(function(){var e=(0,Le.Z)(regeneratorRuntime.mark((function e(t,n,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(He(),Pe=setTimeout((function(){je().start()}),250),t.meta&&"undefined"!==typeof t.meta.title&&Ie("".concat(t.meta.title," - ").concat(Ae)),void 0!==v.Z.getters.isInstalled){e.next=6;break}return e.next=6,v.Z.dispatch("fetchIsInstalled");case 6:if(v.Z.getters.isInstalled||"Install"===t.name){e.next=10;break}return a({name:"Install"}),He(),e.abrupt("return");case 10:if(!v.Z.getters.isInstalled||"Install"!==t.name){e.next=14;break}return a({name:"Login"}),He(),e.abrupt("return");case 14:if(!v.Z.getters.token){e.next=25;break}if(v.Z.getters.options){e.next=18;break}return e.next=18,v.Z.dispatch("refreshOptionsCache").then();case 18:if(!["Login","Install"].includes(t.name)){e.next=22;break}return a({name:"Dashboard"}),He(),e.abrupt("return");case 22:return a(),He(),e.abrupt("return");case 25:if(!Oe.includes(t.name)){e.next=28;break}return a(),e.abrupt("return");case 28:a({name:"Login",query:{redirect:t.fullPath}}),He();case 30:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}()),f.afterEach((function(){He()}));n(90195),n(31875),n(43938);var Me=n(51722),De=n.n(Me),$e=(n(9073),n(38487)),Re=n(17745);De().locale("zh-cn"),a["default"].filter("moment",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return De()(e).format(t)})),a["default"].filter("moment_post_date",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/MM/";return De()(e).format(t)})),a["default"].filter("moment_post_year",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/";return De()(e).format(t)})),a["default"].filter("moment_post_day",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/MM/DD/";return De()(e).format(t)})),a["default"].filter("timeAgo",$e.S),a["default"].filter("fileSizeFormat",(function(e){if(!e)return"0 Bytes";var t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=parseFloat(e),a=Math.floor(Math.log(n)/Math.log(1024)),i=n/Math.pow(1024,a);return i=i.toFixed(2),i+" "+t[a]})),a["default"].filter("dayTime",(function(e){var t=Math.floor(e/86400),n=Math.floor(e%86400/3600),a=Math.floor(e%86400%3600/60),i=Math.floor(e%86400%3600%60);return t+"d "+n+"h "+a+"m "+i+"s"})),a["default"].filter("markdownRender",(function(e){return Re.TU.parse(e)}));n(18482),n(53961),n(96339),n(12566),n(93418),n(82395);var Fe,Be,Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("").reduce((function(e,t){var n=t.charCodeAt(0);return n>=0&&n<=128?e+1:e+2}),0)},Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=0;return e.split("").reduce((function(e,a){var i=a.charCodeAt(0);return n+=i>=0&&i<=128?1:2,n<=t?e+a:e}),"")},Ue={name:"Ellipsis",components:{Tooltip:me.Z},props:{prefixCls:{type:String,default:"ant-pro-ellipsis"},tooltip:{type:Boolean},length:{type:Number,required:!0},lines:{type:Number,default:1},fullWidthRecognition:{type:Boolean,default:!1}},methods:{getStrDom:function(e,t){var n=this.$createElement;return n("span",[Ge(e,this.length)+(t>this.length?"...":"")])},getTooltip:function(e,t){var n=this.$createElement;return n(me.Z,[n("template",{slot:"title"},[e]),this.getStrDom(e,t)])}},render:function(){var e=this.$props,t=e.tooltip,n=e.length,a=this.$slots.default.map((function(e){return e.text})).join(""),i=Ne(a);return t&&i>n?this.getTooltip(a,i):this.getStrDom(a,i)}},ze=Ue,Ke=(0,c.Z)(ze,Fe,Be,!1,null,null,null),Ve=Ke.exports,Ye=Ve,qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixCls},[n("div",{staticClass:"float-left"},[e._t("extra",(function(){return[e._v(e._s(e.extra))]}))],2),n("div",{staticClass:"float-right"},[e._t("default")],2)])},We=[],Xe={name:"FooterToolBar",props:{prefixCls:{type:String,default:"ant-pro-footer-toolbar"},extra:{type:[String,Object],default:""}}},Qe=Xe,Je=(0,c.Z)(Qe,qe,We,!1,null,null,null),et=Je.exports,tt=et,nt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("file-pond",{ref:"pond",attrs:{"accepted-file-types":e.accepts,"allow-multiple":e.multiple,allowImagePreview:e.allowImagePreview,allowRevert:!1,files:e.fileList,"label-idle":e.label,maxFiles:e.maxFiles,maxParallelUploads:e.maxParallelUploads,name:e.name,server:e.server,fileValidateTypeLabelExpectedTypes:"请选择 {lastType} 格式的文件",labelFileProcessing:"上传中",labelFileProcessingAborted:"取消上传",labelFileProcessingComplete:"上传完成",labelFileProcessingError:"上传错误",labelFileTypeNotAllowed:"不支持当前文件格式",labelTapToCancel:"点击取消",labelTapToRetry:"点击重试"},on:{init:e.handleFilePondInit}})],1)},at=[],it=n(86475),rt=n(98906),ot=n(40889),st=n(77847),lt=n.n(st),ut=n(80574),ct=n.n(ut),dt=n(88761),mt=n.n(dt),pt=lt()(ct(),mt()),ht={name:"FilePondUpload",components:{FilePond:pt},props:{name:{type:String,required:!1,default:"file"},field:{type:String,required:!1,default:""},multiple:{type:Boolean,required:!1,default:!0},accepts:{type:Array,required:!1,default:function(){return null}},label:{type:String,required:!1,default:"点击选择文件或将文件拖拽到此处"},uploadHandler:{type:Function,required:!0}},computed:(0,it.Z)((0,it.Z)({},(0,rt.Se)(["options"])),{},{maxParallelUploads:function(){return this.options?this.options.attachment_upload_max_parallel_uploads:1},allowImagePreview:function(){return!!this.options&&this.options.attachment_upload_image_preview_enable},maxFiles:function(){return this.options?this.options.attachment_upload_max_files:1}}),data:function(){var e=this;return{server:{process:function(t,n,a,i,r,o,s){var l=ot.Axios.CancelToken,u=l.source();return e.uploadHandler(n,{onUploadProgress:function(e){e.total>0&&o(e.lengthComputable,e.loaded,e.total)},cancelToken:u.token},e.field).then((function(t){i(t),e.$log.debug("Uploaded successfully",t),e.$emit("success",t,n)})).catch((function(t){e.$log.debug("Failed to upload file",t),e.$emit("failure",t,n),r()})),{abort:function(){s(),e.$log.debug("Upload operation aborted by the user"),u.cancel("Upload operation canceled by the user.")}}}},fileList:[]}},methods:{handleFilePondInit:function(){this.$log.debug("FilePond has initialized")},handleClearFileList:function(){this.$refs.pond.removeFiles()}}},ft=ht,gt=(0,c.Z)(ft,nt,at,!1,null,null,null),vt=gt.exports,bt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{afterClose:e.onClose,footer:null,destroyOnClose:"",title:"上传附件"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[n("FilePondUpload",{ref:"upload",attrs:{uploadHandler:e.uploadHandler}})],1)},yt=[],xt=n(17132),_t={name:"AttachmentUploadModal",props:{visible:{type:Boolean,default:!1}},data:function(){return{uploadHandler:function(e,t){return xt.Z.attachment.upload(e,t)}}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{onClose:function(){this.$refs.upload.handleClearFileList(),this.$emit("close")}}},kt=_t,Tt=(0,c.Z)(kt,bt,yt,!1,null,null,null),Ct=Tt.exports,St=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{afterClose:e.onAfterClose,title:e.title,width:1024,destroyOnClose:""},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"关键词:"}},[n("a-input",{on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch()}},model:{value:e.list.params.keyword,callback:function(t){e.$set(e.list.params,"keyword",t)},expression:"list.params.keyword"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"存储位置:"}},[n("a-select",{attrs:{loading:e.types.loading,allowClear:""},on:{change:function(t){return e.handleSearch()}},model:{value:e.list.params.attachmentType,callback:function(t){e.$set(e.list.params,"attachmentType",t)},expression:"list.params.attachmentType"}},e._l(e.types.data,(function(t){return n("a-select-option",{key:t,attrs:{value:t}},[e._v(" "+e._s(e._f("typeText")(t))+" ")])})),1)],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"文件类型:"}},[n("a-select",{attrs:{loading:e.mediaTypes.loading,allowClear:""},on:{change:function(t){return e.handleSearch()}},model:{value:e.list.params.mediaType,callback:function(t){e.$set(e.list.params,"mediaType",t)},expression:"list.params.mediaType"}},e._l(e.mediaTypes.data,(function(t,a){return n("a-select-option",{key:a,attrs:{value:t}},[e._v(" "+e._s(t)+" ")])})),1)],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons"},[n("a-space",[n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSearch()}}},[e._v("查询")]),n("a-button",{on:{click:function(t){e.handleResetParam(),e.handleListAttachments()}}},[e._v("重置")])],1)],1)])],1)],1)],1),n("div",{staticClass:"mb-0 table-operator"},[n("a-button",{attrs:{icon:"cloud-upload",type:"primary"},on:{click:function(t){e.upload.visible=!0}}},[e._v("上传")])],1),n("a-divider"),n("a-list",{staticClass:"attachments-group",attrs:{dataSource:e.list.data,grid:{gutter:6,xs:2,sm:2,md:4,lg:6,xl:6,xxl:6},loading:e.list.loading},scopedSlots:e._u([{key:"renderItem",fn:function(t,a){return[n("a-list-item",{key:a,on:{mouseenter:function(n){return e.$set(t,"hover",!0)},mouseleave:function(n){return e.$set(t,"hover",!1)},click:function(n){return e.handleItemClick(t)}}},[n("div",{staticClass:"border border-solid",class:e.isItemSelect(t)?"border-blue-600":"border-slate-200"},[n("div",{staticClass:"attach-thumb attachments-group-item"},[e.isImage(t)?n("span",{staticClass:"attachments-group-item-img",style:{backgroundImage:"url('"+encodeURI(t.thumbPath)+"')"},attrs:{loading:"lazy"}}):n("span",{staticClass:"attachments-group-item-type"},[e._v(e._s(t.suffix))])]),n("a-card-meta",{staticClass:"p-2 cursor-pointer",scopedSlots:e._u([{key:"description",fn:function(){return[n("a-tooltip",{attrs:{title:t.name}},[n("div",{staticClass:"truncate"},[e._v(e._s(t.name))])])]},proxy:!0}],null,!0)}),n("a-icon",{directives:[{name:"show",rawName:"v-show",value:e.isItemSelect(t)&&!t.hover,expression:"isItemSelect(item) && !item.hover"}],staticClass:"absolute top-1 right-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px",color:"rgb(37 99 235)"},attrs:{type:"check-circle",theme:"twoTone"}}),n("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.hover,expression:"item.hover"}],staticClass:"absolute top-1 right-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px"},attrs:{type:"profile",theme:"twoTone"},on:{click:function(n){return n.stopPropagation(),e.handleOpenDetail(t)}}})],1)])]}}])}),n("div",{staticClass:"flex justify-between"},[n("a-popover",{attrs:{placement:"right",title:"预览",trigger:"click"}},[n("template",{slot:"content"},[e.list.selected.length?n("a-tabs",{attrs:{"default-active-key":"markdown","tab-position":"left"}},[n("a-tab-pane",{key:"markdown",attrs:{tab:"Markdown"}},[n("div",{staticClass:"text-slate-400",domProps:{innerHTML:e._s(e.markdownSyntaxList.join("
"))}})]),n("a-tab-pane",{key:"html",attrs:{"force-render":"",tab:"HTML"}},[n("div",{staticClass:"text-slate-400"},e._l(e.htmlSyntaxList,(function(t,a){return n("span",{key:a,staticClass:"text-slate-400"},[e._v(" "+e._s(t)),n("br")])})),0)])],1):n("div",{staticClass:"text-slate-400"},[e._v("未选择附件")])],1),n("a-tooltip",{attrs:{placement:"top",title:"点击预览"}},[n("div",{staticClass:"self-center text-slate-400 select-none cursor-pointer hover:text-blue-400 transition-all"},[e._v(" 已选择 "+e._s(e.list.selected.length)+" 项 ")])])],2),n("div",{staticClass:"page-wrapper flex justify-end self-center"},[n("a-pagination",{staticClass:"pagination !mt-0",attrs:{current:e.pagination.page,defaultPageSize:e.pagination.size,pageSizeOptions:["12","18","24","30","36","42"],total:e.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:e.handlePageChange,showSizeChange:e.handlePageSizeChange}})],1)],1),n("template",{slot:"footer"},[n("a-button",{on:{click:function(t){e.modalVisible=!1}}},[e._v("取消")]),n("a-button",{attrs:{type:"primary",disabled:!e.list.selected.length},on:{click:e.handleConfirm}},[e._v("确定")])],1),n("AttachmentUploadModal",{attrs:{visible:e.upload.visible},on:{"update:visible":function(t){return e.$set(e.upload,"visible",t)},close:e.handleSearch}}),n("AttachmentDetailModal",{attrs:{attachment:e.list.current,visible:e.detailVisible},on:{"update:visible":function(t){e.detailVisible=t},delete:function(t){return e.handleListAttachments()}},scopedSlots:e._u([{key:"extraFooter",fn:function(){return[n("a-button",{attrs:{disabled:e.selectPreviousButtonDisabled},on:{click:e.handleSelectPrevious}},[e._v("上一项")]),n("a-button",{attrs:{disabled:e.selectNextButtonDisabled},on:{click:e.handleSelectNext}},[e._v("下一项")]),n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleItemClick(e.list.current)}}},[e._v(" "+e._s(e.list.selected.findIndex((function(t){return t.id===e.list.current.id}))>-1?"取消选择":"选择")+" ")])]},proxy:!0}])})],2)},Et=[],wt=n(75725),Lt=(n(15928),n(3662),n(94671)),Zt={name:"AttachmentSelectModal",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"选择附件"},multiSelect:{type:Boolean,default:!0}},data:function(){return{list:{data:[],total:0,hasNext:!1,hasPrevious:!1,loading:!1,params:{page:0,size:12,keyword:void 0,mediaType:void 0,attachmentType:void 0},selected:[],current:{}},mediaTypes:{data:[],loading:!1},types:{data:[],loading:!1},upload:{visible:!1},detailVisible:!1}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},pagination:function(){return{page:this.list.params.page+1,size:this.list.params.size,total:this.list.total}},selectPreviousButtonDisabled:function(){var e=this,t=this.list.data.findIndex((function(t){return t.id===e.list.current.id}));return 0===t&&!this.list.hasPrevious},selectNextButtonDisabled:function(){var e=this,t=this.list.data.findIndex((function(t){return t.id===e.list.current.id}));return t===this.list.data.length-1&&!this.list.hasNext},isImage:function(){return function(e){return!(!e||!e.mediaType)&&e.mediaType.startsWith("image")}},isItemSelect:function(){return function(e){return this.list.selected.findIndex((function(t){return t.id===e.id}))>-1}},markdownSyntaxList:function(){return this.list.selected.length?this.list.selected.map((function(e){return"![".concat(e.name,"](").concat(encodeURI(e.path),")")})):[]},htmlSyntaxList:function(){return this.list.selected.length?this.list.selected.map((function(e){return'').concat(e.name,'')})):[]}},watch:{modalVisible:function(e){e&&(this.handleListAttachments(),this.handleListMediaTypes(),this.handleListTypes())}},methods:{handleListAttachments:function(){var e=this;return(0,Le.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.list.loading=!0,t.next=4,xt.Z.attachment.list(e.list.params);case 4:n=t.sent,e.list.data=n.data.content,e.list.total=n.data.total,e.list.hasNext=n.data.hasNext,e.list.hasPrevious=n.data.hasPrevious,t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),e.$log.error(t.t0);case 14:return t.prev=14,e.list.loading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,11,14,17]])})))()},handleListMediaTypes:function(){var e=this;return(0,Le.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.mediaTypes.loading=!0,t.next=4,xt.Z.attachment.listMediaTypes();case 4:n=t.sent,e.mediaTypes.data=n.data,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),e.$log.error(t.t0);case 11:return t.prev=11,e.mediaTypes.loading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,8,11,14]])})))()},handleListTypes:function(){var e=this;return(0,Le.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.types.loading=!0,t.next=4,xt.Z.attachment.listTypes();case 4:n=t.sent,e.types.data=n.data,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),e.$log.error(t.t0);case 11:return t.prev=11,e.types.loading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,8,11,14]])})))()},handlePageChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=e-1,this.handleListAttachments()},handleSearch:function(){this.handlePageChange(1)},handleResetParam:function(){this.list.params={page:0,size:12,keyword:void 0,mediaType:void 0,attachmentType:void 0}},handlePageSizeChange:function(e,t){this.$log.debug("Current: ".concat(e,", PageSize: ").concat(t)),this.list.params.page=0,this.list.params.size=t,this.handleListAttachments()},handleItemClick:function(e){if(!this.multiSelect)return this.$emit("confirm",{raw:[e],markdown:["![".concat(e.name,"](").concat(encodeURI(e.path),")")],html:['').concat(e.name,'')]}),void(this.modalVisible=!1);var t=this.list.selected.findIndex((function(t){return t.id===e.id}))>-1;t?this.handleUnselect(e):this.handleSelect(e)},handleSelect:function(e){this.list.selected=[].concat((0,wt.Z)(this.list.selected),[e])},handleUnselect:function(e){this.list.selected=this.list.selected.filter((function(t){return t.id!==e.id}))},handleConfirm:function(){this.$emit("confirm",{raw:this.list.selected,markdown:this.markdownSyntaxList,html:this.htmlSyntaxList}),this.modalVisible=!1},handleOpenDetail:function(e){this.list.current=e,this.detailVisible=!0},handleSelectPrevious:function(){var e=this;return(0,Le.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.list.data.findIndex((function(t){return t.id===e.list.current.id})),!(n>0)){t.next=4;break}return e.list.current=e.list.data[n-1],t.abrupt("return");case 4:if(0!==n||!e.list.hasPrevious){t.next=9;break}return e.list.params.page--,t.next=8,e.handleListAttachments();case 8:e.list.current=e.list.data[e.list.data.length-1];case 9:case"end":return t.stop()}}),t)})))()},handleSelectNext:function(){var e=this;return(0,Le.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.list.data.findIndex((function(t){return t.id===e.list.current.id})),!(n0&&(this.viewMetas.pageHeaderHeight=e[0].clientHeight);var t=document.getElementsByClassName("ant-layout-footer");t&&t.length>0&&(this.viewMetas.pageFooterHeight=t[0].clientHeight)}}}},56612:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var a=n(35702),i=n(98906),r=(n(31875),n(82547)),o=n(17132),s={state:{sidebar:!0,device:"desktop",theme:"",layout:"",contentWidth:"",fixedHeader:!1,fixedSidebar:!1,autoHideHeader:!1,color:null,layoutSetting:!1,loginModal:!1,isInstalled:void 0},mutations:{SET_SIDEBAR_TYPE:function(e,t){a["default"].ls.set(r.mQ,t),e.sidebar=t},TOGGLE_DEVICE:function(e,t){e.device=t},TOGGLE_THEME:function(e,t){a["default"].ls.set(r.t0,t),e.theme=t},TOGGLE_LAYOUT_MODE:function(e,t){a["default"].ls.set(r.v9,t),e.layout=t},TOGGLE_FIXED_HEADER:function(e,t){a["default"].ls.set(r.Vv,t),e.fixedHeader=t},TOGGLE_FIXED_SIDEBAR:function(e,t){a["default"].ls.set(r.lK,t),e.fixedSidebar=t},TOGGLE_FIXED_HEADER_HIDDEN:function(e,t){a["default"].ls.set(r.NK,t),e.autoHideHeader=t},TOGGLE_CONTENT_WIDTH:function(e,t){a["default"].ls.set(r.hC,t),e.contentWidth=t},TOGGLE_COLOR:function(e,t){a["default"].ls.set(r.Dp,t),e.color=t},TOGGLE_LAYOUT_SETTING:function(e,t){a["default"].ls.set(r.W1,t),e.layoutSetting=t},TOGGLE_LOGIN_MODAL:function(e,t){e.loginModal=t},SET_IS_INSTALLED:function(e,t){e.isInstalled=t}},actions:{fetchIsInstalled:function(e){var t=e.commit;return new Promise((function(e,n){o.Z.isInstalled().then((function(n){t("SET_IS_INSTALLED",n.data),e(n)})).catch((function(e){n(e)}))}))},setSidebar:function(e,t){var n=e.commit;n("SET_SIDEBAR_TYPE",t)},ToggleTheme:function(e,t){var n=e.commit;n("TOGGLE_THEME",t)},ToggleLayoutMode:function(e,t){var n=e.commit;n("TOGGLE_LAYOUT_MODE",t)},ToggleFixedHeader:function(e,t){var n=e.commit;n("TOGGLE_FIXED_HEADER",t)},ToggleFixedSidebar:function(e,t){var n=e.commit;n("TOGGLE_FIXED_SIDEBAR",t)},ToggleFixedHeaderHidden:function(e,t){var n=e.commit;n("TOGGLE_FIXED_HEADER_HIDDEN",t)},ToggleContentWidth:function(e,t){var n=e.commit;n("TOGGLE_CONTENT_WIDTH",t)},ToggleColor:function(e,t){var n=e.commit;n("TOGGLE_COLOR",t)},ToggleLayoutSetting:function(e,t){var n=e.commit;n("TOGGLE_LAYOUT_SETTING",t)},ToggleLoginModal:function(e,t){var n=e.commit;n("TOGGLE_LOGIN_MODAL",t)}}},l=s,u={state:{token:null,user:{}},mutations:{SET_TOKEN:function(e,t){a["default"].ls.set(r.LA,t,t?1e3*t.expired_in:null),e.token=t},CLEAR_TOKEN:function(e){a["default"].ls.remove(r.LA),e.token=null},SET_USER:function(e,t){a["default"].ls.set(r.xR,t),e.user=t}},actions:{installCleanToken:function(e,t){var n=e.commit;return new Promise((function(e,a){o.Z.installation.install(t).then((function(t){n("CLEAR_TOKEN"),e(t)})).catch((function(e){a(e)}))}))},refreshUserCache:function(e){var t=e.commit;return new Promise((function(e,n){o.Z.user.getProfile().then((function(n){t("SET_USER",n.data),e(n)})).catch((function(e){n(e)}))}))},login:function(e,t){var n=e.commit,i=t.username,r=t.password,s=t.authcode;return new Promise((function(e,t){o.Z.login({username:i,password:r,authcode:s}).then((function(t){var i=t.data;a["default"].$log.debug("Got token",i),n("SET_TOKEN",i),e(t)})).catch((function(e){t(e)}))}))},logout:function(e){var t=e.commit;return new Promise((function(e){o.Z.logout().then((function(){t("CLEAR_TOKEN"),t("SET_USER",{}),e()})).catch((function(){e()}))}))},refreshToken:function(e,t){var n=e.commit;return new Promise((function(e,i){o.Z.refreshToken(t).then((function(t){var i=t.data;a["default"].$log.debug("Got token",i),n("SET_TOKEN",i),e(t)})).catch((function(e){var r=e.data;a["default"].$log.debug("Refresh error data",r),r&&400===r.status&&r.data===t&&n("CLEAR_TOKEN"),i(e)}))}))}}},c=u,d=["blog_url","developer_mode","attachment_upload_image_preview_enable","attachment_upload_max_parallel_uploads","attachment_upload_max_files","sheet_prefix","post_permalink_type","sheet_permalink_type","archives_prefix","path_suffix","default_editor","default_menu_team"],m={state:{options:void 0},mutations:{SET_OPTIONS:function(e,t){a["default"].ls.set(r.JY,t),e.options=t}},actions:{refreshOptionsCache:function(e){var t=e.commit;return new Promise((function(e,n){o.Z.option.listAsMapViewByKeys(d).then((function(n){t("SET_OPTIONS",n.data),e(n)})).catch((function(e){n(e)}))}))}}},p=m,h={device:function(e){return e.app.device},theme:function(e){return e.app.theme},color:function(e){return e.app.color},layoutSetting:function(e){return e.app.layoutSetting},sidebar:function(e){return e.app.sidebar},loginModal:function(e){return e.app.loginModal},isInstalled:function(e){return e.app.isInstalled},token:function(e){return e.user.token},user:function(e){return e.user.user},options:function(e){return e.option.options}},f=h;a["default"].use(i.ZP);var g=new i.ZP.Store({modules:{app:l,user:c,option:p},state:{},mutations:{},actions:{},getters:f})},82547:function(e,t,n){"use strict";n.d(t,{LA:function(){return a},mQ:function(){return i},t0:function(){return r},v9:function(){return o},Dp:function(){return s},Vv:function(){return l},lK:function(){return u},NK:function(){return c},hC:function(){return d},xR:function(){return m},JY:function(){return p},W1:function(){return h}});var a="Access-Token",i="SIDEBAR_TYPE",r="DEFAULT_THEME",o="DEFAULT_LAYOUT_MODE",s="DEFAULT_COLOR",l="DEFAULT_FIXED_HEADER",u="DEFAULT_FIXED_SIDEBAR",c="DEFAULT_FIXED_HEADER_HIDDEN",d="DEFAULT_CONTENT_WIDTH_TYPE",m="USER",p="OPTIONS",h="LAYOUT_SETTING"},17132:function(e,t,n){"use strict";var a=n(47458),i=(n(70315),n(31875),n(30535),n(86381),n(82395),n(53961),n(18482),n(40889)),r=n(56612),o=n(21872),s=n(4360),l=n(13159),u=localStorage.getItem("apiUrl"),c=u||"",d=new i.HaloRestAPIClient({baseUrl:c}),m=new i.AdminApiClient(d);d.interceptors.request.use((function(e){var t=r.Z.getters.token;return t&&t.access_token&&(e.headers["Admin-Authorization"]=t.access_token),e}),(function(e){return Promise.reject(e)}));var p=!1,h=[];d.interceptors.response.use((function(e){return e}),function(){var e=(0,a.Z)(regeneratorRuntime.mark((function e(t){var n,a,u,c,d,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i.Axios.isCancel(t)){e.next=2;break}return e.abrupt("return",Promise.reject(t));case 2:if(!/Network Error/.test(t.message)){e.next=5;break}return o.Z.error("网络错误,请检查网络连接"),e.abrupt("return",Promise.reject(t));case 5:if(n=r.Z.getters.token,a=t.config,u=t.response,c=u?u.data:null,!c){e.next=39;break}if(400!==c.status){e.next=14;break}return d=c.data,(0,l.Kn)(d)?(m=Object.keys(d||{}).map((function(e){return d[e]})),s.Z.error({message:c.message,description:function(e){var t=m.map((function(t){return e("a-alert",{props:{message:t,banner:!0,showIcon:!1,type:"error"}})}));return e("div",t)},duration:10})):o.Z.error(c.message),e.abrupt("return",Promise.reject(t));case 14:if(401!==c.status){e.next=37;break}if(p){e.next=36;break}return p=!0,e.prev=17,e.next=20,r.Z.dispatch("refreshToken",n.refresh_token);case 20:return h.forEach((function(e){return e()})),h=[],e.abrupt("return",(0,i.Axios)(a));case 25:return e.prev=25,e.t0=e["catch"](17),o.Z.warning("当前登录状态已失效,请重新登录"),e.next=30,r.Z.dispatch("ToggleLoginModal",!0);case 30:return e.abrupt("return",Promise.reject(e.t0));case 31:return e.prev=31,p=!1,e.finish(31);case 34:e.next=37;break;case 36:return e.abrupt("return",new Promise((function(e){h.push((function(){e((0,i.Axios)(a))}))})));case 37:return o.Z.error(c.message||"服务器错误"),e.abrupt("return",Promise.reject(t));case 39:return o.Z.error("网络异常"),e.abrupt("return",Promise.reject(t));case 41:case"end":return e.stop()}}),e,null,[[17,25,31,34]])})));return function(t){return e.apply(this,arguments)}}()),t["Z"]=m},82676:function(e,t,n){"use strict";n.d(t,{RQ:function(){return a},vq:function(){return r},aX:function(){return i}});n(30535),n(15231),n(85018),n(96153),n(31875),n(11074),n(86381);var a=function(e){return!!r(e)&&(e.match(/^rgb/)?(e=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/),t=e[1],n=e[2],a=e[3]):(e=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&")),t=e>>16,n=e>>8&255,a=255&e),i=Math.sqrt(t*t*.299+n*n*.587+a*a*.114),i>127.5);var t,n,a,i},i=/(^#[0-9A-F])/i,r=function(e){return i.test(e)}},38487:function(e,t,n){"use strict";n.d(t,{_:function(){return r},S:function(){return o}});var a=n(51722),i=n.n(a);n(9073);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return i()(e).format(t)}function o(e){var t=(new Date).getTime(),n=t-e,a=Math.floor(n/864e5);if(0===a){var r=n%864e5,o=Math.floor(r/36e5);if(0===o){var s=r%36e5,l=Math.floor(s/6e4);if(0===l){var u=s%6e4,c=Math.round(u/1e3);return c+" 秒前"}return l+" 分钟前"}return o+" 小时前"}return a<0?"刚刚":a<5?a+" 天前":i()(e).format("YYYY-MM-DD HH:mm")}i().locale("zh-cn")},6145:function(e,t,n){"use strict";n.d(t,{m:function(){return r},A:function(){return o}});var a=n(3779),i=n.n(a),r={DESKTOP:"desktop",TABLET:"tablet",MOBILE:"mobile"},o=function(e){var t={match:function(){e&&e(r.DESKTOP)}},n={match:function(){e&&e(r.TABLET)}},a={match:function(){e&&e(r.MOBILE)}};i().register("screen and (max-width: 576px)",a).register("screen and (min-width: 576px) and (max-width: 1199px)",n).register("screen and (min-width: 1200px)",t)}},13159:function(e,t,n){"use strict";n.d(t,{XC:function(){return i},Kn:function(){return r},I8:function(){return o}});var a=n(26434);n(87591),n(31875),n(18482),n(53961);function i(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),e.eventType="message",window.dispatchEvent(e)}function r(e){return e&&"object"===(0,a.Z)(e)&&e.constructor===Object}function o(e){if(!e&&"object"!==(0,a.Z)(e))throw new Error("error arguments");var t=e.constructor===Array?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===(0,a.Z)(e[n])?t[n]=o(e[n]):t[n]=e[n]})),t}},63618:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-form-model",{ref:"loginForm",attrs:{model:e.form.model,rules:e.form.rules,layout:"vertical"},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.form.needAuthCode?e.handleLogin():e.handleLoginClick()}}},[e.form.needAuthCode?e._e():n("a-form-model-item",{attrs:{prop:"username"}},[n("a-input",{attrs:{placeholder:"用户名/邮箱"},model:{value:e.form.model.username,callback:function(t){e.$set(e.form.model,"username",t)},expression:"form.model.username"}},[n("a-icon",{staticStyle:{color:"rgba(0, 0, 0, 0.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e.form.needAuthCode?e._e():n("a-form-model-item",{attrs:{prop:"password"}},[n("a-input",{attrs:{placeholder:"密码",type:"password"},model:{value:e.form.model.password,callback:function(t){e.$set(e.form.model,"password",t)},expression:"form.model.password"}},[n("a-icon",{staticStyle:{color:"rgba(0, 0, 0, 0.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),e.form.needAuthCode?n("a-form-model-item",{attrs:{prop:"authcode"}},[n("a-input",{attrs:{maxLength:6,placeholder:"两步验证码"},model:{value:e.form.model.authcode,callback:function(t){e.$set(e.form.model,"authcode",t)},expression:"form.model.authcode"}},[n("a-icon",{staticStyle:{color:"rgba(0, 0, 0, 0.25)"},attrs:{slot:"prefix",type:"safety-certificate"},slot:"prefix"})],1)],1):e._e(),n("a-form-model-item",[n("a-button",{attrs:{block:!0,loading:e.form.logging,type:"primary"},on:{click:function(t){e.form.needAuthCode?e.handleLogin():e.handleLoginClick()}}},[e._v(" "+e._s(e.buttonName)+" ")])],1)],1)],1)},i=[],r=n(86475),o=(n(87591),n(31875),n(98906)),s=n(17132),l={name:"LoginForm",data:function(){var e=this,t=function(t,n,a){!n&&e.form.needAuthCode?a(new Error("* 请输入两步验证码")):a()};return{form:{model:{authcode:null,password:null,username:null},rules:{username:[{required:!0,message:"* 用户名/邮箱不能为空",trigger:["change"]}],password:[{required:!0,message:"* 密码不能为空",trigger:["change"]}],authcode:[{validator:t,trigger:["change"]}]},needAuthCode:!1,logging:!1}}},computed:{buttonName:function(){return this.form.needAuthCode?"验证":"登录"}},methods:(0,r.Z)((0,r.Z)({},(0,o.nv)(["login","refreshUserCache","refreshOptionsCache"])),{},{handleLoginClick:function(){var e=this;e.$refs.loginForm.validate((function(t){t&&(e.form.logging=!0,s.Z.needMFACode({username:e.form.model.username,password:e.form.model.password}).then((function(t){var n=t.data;n&&n.needMFACode?(e.form.needAuthCode=!0,e.form.model.authcode=null):e.handleLogin()})).finally((function(){setTimeout((function(){e.form.logging=!1}),300)})))}))},handleLogin:function(){var e=this;e.$refs.loginForm.validate((function(t){t&&(e.form.logging=!0,e.login(e.form.model).then((function(){e.$emit("success")})).finally((function(){setTimeout((function(){e.form.logging=!1}),300)})))}))}})},u=l,c=n(42177),d=(0,c.Z)(u,a,i,!1,null,null,null),m=d.exports},64121:function(){}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=e,function(){var e=[];n.O=function(t,a,i,r){if(!a){var o=1/0;for(c=0;c=r)&&Object.keys(n.O).every((function(e){return n.O[e](a[l])}))?a.splice(l--,1):(s=!1,r0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[a,i,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,a){return n.f[a](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+e+"."+{2:"5e1ce411",45:"10b63770",53:"3d0e82a1",134:"a2a4f4c2",147:"bac8cfdb",149:"542d6308",154:"445ed0f8",164:"4ee274e1",170:"4863f6c6",174:"9edf110a",191:"9b06be83",192:"96a8d804",201:"3c1d8d8f",202:"b56c9e14",243:"fc44495d",249:"aa45c2a7",253:"7382de0e",280:"e148abcc",290:"acdc6e30",348:"f64d6048",362:"bfe69ef1",432:"137887ed",462:"7fbb691e",513:"f561d6de",565:"f21c714c",598:"7c59f56e",614:"8a3d7245",640:"28474cb2",644:"7a8a08d0",650:"5d1bd6d1",651:"96ced5d4",658:"c46c4fa5",703:"5098c876",757:"896a9a43",769:"c89ef783",787:"0e22cabc",814:"329845be",845:"c199b0c1",892:"2539153f",903:"7ef39d60",961:"bee92a57"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+"."+{53:"216595d3",249:"982db2ca",462:"828845cf",565:"3db0de18",757:"216595d3",769:"722ed486",814:"f14bd7a4"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="halo-admin:";n.l=function(a,i,r,o){if(e[a])e[a].push(i);else{var s,l;if(void 0!==r)for(var u=document.getElementsByTagName("script"),c=0;c=5&&(e.options.developer_mode?(e.$message.info("当前已启用开发者选项!"),e.clickCount=0):e.$message.info("再点击 ".concat(10-e.clickCount," 次即可启用开发者选项!")));case 17:case"end":return t.stop()}}),t,null,[[2,12]])})))()}})},O=I,A=(0,c.Z)(O,w,L,!1,null,null,null),P=A.exports,M=n(64689),H=n.n(M),D=n(26434),$=(n(18482),n(41479),n(2923),n(18329),n(21082),n(82395),n(2142)),R=n(56911),F={name:"SMenu",props:{menu:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"},mode:{type:String,required:!1,default:"inline"},collapsed:{type:Boolean,required:!1,default:!1}},data:function(){return{openKeys:[],selectedKeys:[],cachedOpenKeys:[]}},computed:{rootSubmenuKeys:function(e){var t=[];return e.menu.forEach((function(e){return t.push(e.path)})),t}},created:function(){this.updateMenu()},watch:{collapsed:function(e){e?(this.cachedOpenKeys=this.openKeys.concat(),this.openKeys=[]):this.openKeys=this.cachedOpenKeys},$route:function(){this.updateMenu()}},methods:{onOpenChange:function(e){var t=this;if("horizontal"!==this.mode){var n=e.find((function(e){return!t.openKeys.includes(e)}));this.rootSubmenuKeys.includes(n)?this.openKeys=n?[n]:[]:this.openKeys=e}else this.openKeys=e},onSelect:function(e){var t=e.item,n=e.key,a=e.selectedKeys;this.selectedKeys=a,this.$emit("select",{item:t,key:n,selectedKeys:a})},updateMenu:function(){var e=this.$route.matched.concat();e.length>=4&&this.$route.meta.hidden?(e.pop(),this.selectedKeys=[e[2].path]):this.selectedKeys=[e.pop().path];var t=[];"inline"===this.mode&&e.forEach((function(e){t.push(e.path)})),this.collapsed?this.cachedOpenKeys=t:this.openKeys=t},renderItem:function(e){return e.hidden?null:e.children&&!e.hideChildrenInMenu?this.renderSubMenu(e):this.renderMenuItem(e)},renderMenuItem:function(e){var t=this.$createElement,n=e.meta.target||null,a=n?"a":"router-link",i={to:{name:e.name}},r={href:e.path,target:e.meta.target};return t($.ZP.Item,H()([{},{key:e.path}]),[t(a,{props:(0,h.Z)({},i),attrs:(0,h.Z)({},r)},[this.renderIcon(e.meta.icon),t("span",[e.meta.title])])])},renderSubMenu:function(e){var t=this,n=this.$createElement,a=[];return e.hideChildrenInMenu||e.children.forEach((function(e){return a.push(t.renderItem(e))})),n($.ZP.SubMenu,H()([{},{key:e.path}]),[n("span",{slot:"title"},[this.renderIcon(e.meta.icon),n("span",[e.meta.title])]),a])},renderIcon:function(e){var t=this.$createElement;if("none"===e||void 0===e)return null;var n={};return"object"===(0,D.Z)(e)?n.component=e:n.type=e,t(R.Z,{props:(0,h.Z)({},n)})}},render:function(){var e=this,t=arguments[0],n={props:{mode:this.mode,theme:this.theme,openKeys:this.openKeys,selectedKeys:this.selectedKeys},on:{openChange:this.onOpenChange,select:this.onSelect}},a=this.menu.map((function(t){return t.hidden?null:e.renderItem(t)}));return t($.ZP,H()([{},n]),[a])}},B=F,N={name:"SideMenu",components:{Logo:P,SMenu:B},mixins:[b.jB,b.KT],props:{mode:{type:String,required:!1,default:"inline"},theme:{type:String,required:!1,default:"dark"},collapsible:{type:Boolean,required:!1,default:!1},collapsed:{type:Boolean,required:!1,default:!1},menus:{type:Array,required:!0}},methods:{onSelect:function(e){this.$emit("menuSelect",e)}}},G=N,U=(0,c.Z)(G,S,E,!1,null,null,null),z=U.exports,K=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"showHeader"}},[e.visible?n("div",{staticClass:"header-animat"},[e.visible?n("a-layout-header",{class:[e.fixedHeader&&"ant-header-fixedHeader",e.sidebarOpened?"ant-header-side-opened":"ant-header-side-closed"],staticStyle:{padding:"0"}},["sidemenu"===e.mode?n("div",{staticClass:"header"},["mobile"===e.device?n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-fold":"menu-unfold"},on:{click:e.toggle}}):n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.toggle}}),n("user-menu")],1):n("div",{class:["top-nav-header-index",e.theme]},[n("div",{staticClass:"header-index-wide"},[n("div",{staticClass:"header-index-left"},["mobile"!==e.device?n("logo",{staticClass:"top-nav-header"}):e._e(),"mobile"!==e.device?n("s-menu",{attrs:{menu:e.menus,theme:e.theme,mode:"horizontal"}}):n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-fold":"menu-unfold"},on:{click:e.toggle}})],1),n("user-menu",{staticClass:"header-index-right"})],1)])]):e._e()],1):e._e()])},V=[],Y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"user-wrapper"},[n("a",{attrs:{href:e.options.blog_url,target:"_blank"}},[n("a-tooltip",{attrs:{placement:"bottom",title:"点击跳转到首页"}},[n("span",{staticClass:"action"},[n("a-icon",{attrs:{type:"link"}})],1)])],1),n("a",{attrs:{href:"javascript:void(0)"},on:{click:e.handleShowLayoutSetting}},[n("a-tooltip",{attrs:{placement:"bottom",title:"后台布局设置"}},[n("span",{staticClass:"action"},[n("a-icon",{attrs:{type:"setting"}})],1)])],1),n("header-comment",{staticClass:"action"}),n("a-dropdown",[e.user?n("span",{staticClass:"action ant-dropdown-link user-dropdown-menu"},[n("a-avatar",{staticClass:"avatar",attrs:{src:e.user.avatar||"//cn.gravatar.com/avatar/?s=256&d=mm",size:"small"}})],1):e._e(),n("a-menu",{staticClass:"user-dropdown-menu-wrapper",attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"0"},[n("router-link",{attrs:{to:{name:"Profile"}}},[n("a-icon",{attrs:{type:"user"}}),n("span",[e._v("个人资料")])],1)],1),n("a-menu-divider"),n("a-menu-item",{key:"1"},[n("a",{attrs:{href:"javascript:void(0);"},on:{click:e.handleLogout}},[n("a-icon",{attrs:{type:"logout"}}),n("span",[e._v("退出登录")])],1)])],1)],1)],1)},q=[],W=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-popover",{attrs:{arrowPointAtCenter:!0,autoAdjustOverflow:!0,overlayStyle:{width:"400px",top:"50px"},overlayClassName:"header-comment-popover",placement:"bottomRight",title:"待审核评论",trigger:"click"},scopedSlots:e._u([{key:"content",fn:function(){return[n("div",{staticClass:"custom-tab-wrapper"},[n("a-tabs",{attrs:{animated:{inkBar:!0,tabPane:!1}},on:{change:e.handleListAuditingComments},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},e._l(e.targets,(function(t){return n("a-tab-pane",{key:t.key,attrs:{tab:t.label}},[n("CommentListView",{attrs:{comments:e.comments[t.dataKey],loading:e.comments.loading}})],1)})),1)],1)]},proxy:!0}])},[n("span",{staticClass:"inline-block transition-all"},[e.comments.post.length||e.comments.sheet.length||e.comments.journal.length?n("a-badge",{attrs:{dot:""}},[n("a-icon",{attrs:{type:"bell"}})],1):n("a-badge",[n("a-icon",{attrs:{type:"bell"}})],1)],1)])},X=[],Q=(n(29888),n(45107),[{key:"posts",dataKey:"post",label:"文章"},{key:"sheets",dataKey:"sheet",label:"页面"},{key:"journals",dataKey:"journal",label:"日志"}]),J={name:"HeaderComment",data:function(){return{targets:Q,activeKey:"posts",comments:{post:[],sheet:[],journal:[],loading:!1}}},created:function(){this.handleListAuditingComments()},methods:{handleListAuditingComments:function(){var e=this;return(0,Z.Z)(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.comments.loading=!0,n={status:"AUDITING",size:20},t.next=5,Promise.all(Q.map((function(e){return j.Z.comment.list(e.key,n)})));case 5:a=t.sent,e.comments.post=a[0].data.content,e.comments.sheet=a[1].data.content,e.comments.journal=a[2].data.content,t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),e.$log.error("Failed to get auditing comments",t.t0);case 14:return t.prev=14,e.comments.loading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,11,14,17]])})))()}}},ee=J,te=(0,c.Z)(ee,W,X,!1,null,null,null),ne=te.exports,ae={name:"UserMenu",components:{HeaderComment:ne},computed:(0,h.Z)({},(0,v.Se)(["user","options"])),methods:(0,h.Z)((0,h.Z)({},(0,v.nv)(["logout","ToggleLayoutSetting"])),{},{handleLogout:function(){var e=this;this.$confirm({title:"提示",content:"确定要注销登录吗 ?",onOk:function(){var t=(0,Z.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.logout();case 3:window.location.reload(),t.next=9;break;case 6:t.prev=6,t.t0=t["catch"](0),e.$message.error({title:"错误",description:t.t0.message});case 9:case"end":return t.stop()}}),t,null,[[0,6]])})));function n(){return t.apply(this,arguments)}return n}()})},handleShowLayoutSetting:function(){this.ToggleLayoutSetting(!0)}})},ie=ae,re=(0,c.Z)(ie,Y,q,!1,null,null,null),oe=re.exports,se={name:"GlobalHeader",components:{UserMenu:oe,SMenu:B,Logo:P},mixins:[b.jB],props:{mode:{type:String,default:"sidemenu"},menus:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"},collapsed:{type:Boolean,required:!1,default:!1},device:{type:String,required:!1,default:"desktop"}},data:function(){return{visible:!0,oldScrollTop:0}},mounted:function(){document.addEventListener("scroll",this.handleScroll,{passive:!0})},methods:{handleScroll:function(){var e=this;if(this.autoHideHeader){var t=document.body.scrollTop+document.documentElement.scrollTop;this.ticking||(this.ticking=!0,requestAnimationFrame((function(){e.oldScrollTop>t?e.visible=!0:t>300&&e.visible?e.visible=!1:t<300&&!e.visible&&(e.visible=!0),e.oldScrollTop=t,e.ticking=!1})))}},toggle:function(){this.$emit("toggle")}},beforeDestroy:function(){document.body.removeEventListener("scroll",this.handleScroll,!0)}},le=se,ue=(0,c.Z)(le,K,V,!1,null,null,null),ce=ue.exports,de=ce,me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer text-center",staticStyle:{padding:"0 16px",margin:"48px 0 0"}},[n("div",{staticClass:"copyright",staticStyle:{color:"rgba(0, 0, 0, 0.45)","font-size":"14px"}},[e._v(" Proudly power by "),n("router-link",{attrs:{to:{name:"About"}}},[e._v(" Halo ")])],1)])},pe=[],fe={name:"GlobalFooter"},he=fe,ge=(0,c.Z)(he,me,pe,!1,null,null,null),ve=ge.exports,be=ve,ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"settingDrawer",staticClass:"setting-drawer"},[n("a-drawer",{attrs:{visible:e.layoutSetting,closable:"",width:"300"},on:{close:e.onClose}},[n("div",{staticClass:"setting-drawer-index-content"},[n("div",{staticClass:"mb-6"},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("整体风格设置")]),n("div",{staticClass:"setting-drawer-index-blockChecbox"},[n("a-tooltip",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v("暗色菜单风格")]},proxy:!0}])},[n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleSetMenuTheme("dark")}}},[n("img",{attrs:{alt:"dark",src:"/images/dark.svg"}}),"dark"===e.navTheme?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])]),n("a-tooltip",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v("亮色菜单风格")]},proxy:!0}])},[n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleSetMenuTheme("light")}}},[n("img",{attrs:{alt:"light",src:"/images/dark.svg"}}),"dark"!==e.navTheme?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])])],1)]),n("a-divider"),n("div",{staticClass:"mb-6"},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("主题色")]),n("div",{staticClass:"h-5"},e._l(e.colorList,(function(t,a){return n("a-tooltip",{key:a,staticClass:"setting-drawer-theme-color-colorBlock",scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(t.key))]},proxy:!0}],null,!0)},[n("a-tag",{attrs:{color:t.color},on:{click:function(n){return e.handleChangeColor(t.color)}}},[t.color===e.primaryColor?n("a-icon",{attrs:{type:"check"}}):e._e()],1)],1)})),1)]),n("a-divider"),n("div",{staticClass:"mb-6"},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("导航模式")]),n("div",{staticClass:"setting-drawer-index-blockChecbox"},[n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleSetLayout("sidemenu")}}},[n("img",{attrs:{alt:"sidemenu",src:"/images/sidemenu.svg"}}),"sidemenu"===e.layoutMode?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()]),n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleSetLayout("topmenu")}}},[n("img",{attrs:{alt:"topmenu",src:"/images/topmenu.svg"}}),"sidemenu"!==e.layoutMode?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])])]),n("a-divider"),n("div",{staticClass:"mt-6"},[n("a-list",{attrs:{split:!1}},[n("a-list-item",{scopedSlots:e._u([{key:"actions",fn:function(){return[n("a-tooltip",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" 该设定仅 [顶部栏导航] 时有效")]},proxy:!0}])},[n("a-select",{staticStyle:{width:"80px"},attrs:{disabled:"topmenu"!==e.layoutMode,value:e.contentWidth,size:"small"},on:{change:e.handleContentWidthChange}},[n("a-select-option",{attrs:{value:"Fixed"}},[e._v("固定")]),"sidemenu"!==e.layoutMode?n("a-select-option",{attrs:{value:"Fluid"}},[e._v("流式")]):e._e()],1)],1)]},proxy:!0}])},[n("a-list-item-meta",{scopedSlots:e._u([{key:"title",fn:function(){return[n("div",[e._v("内容区域宽度")])]},proxy:!0}])})],1),n("a-list-item",{scopedSlots:e._u([{key:"actions",fn:function(){return[n("a-switch",{attrs:{checked:e.fixedHeader,size:"small"},on:{change:e.handleSetFixedHeader}})]},proxy:!0}])},[n("a-list-item-meta",{scopedSlots:e._u([{key:"title",fn:function(){return[n("div",[e._v("固定 Header")])]},proxy:!0}])})],1),n("a-list-item",{scopedSlots:e._u([{key:"actions",fn:function(){return[n("a-switch",{attrs:{checked:e.autoHideHeader,disabled:!e.fixedHeader,size:"small"},on:{change:e.handleSetAutoHideHeader}})]},proxy:!0}])},[n("a-list-item-meta",{scopedSlots:e._u([{key:"title",fn:function(){return[n("a-tooltip",{attrs:{placement:"left"},scopedSlots:e._u([{key:"title",fn:function(){return[e._v("固定 Header 时可配置")]},proxy:!0}])},[n("div",{style:{opacity:e.fixedHeader?"1":"0.5"}},[e._v("下滑时隐藏 Header")])])]},proxy:!0}])})],1),n("a-list-item",{scopedSlots:e._u([{key:"actions",fn:function(){return[n("a-switch",{attrs:{checked:e.fixedSidebar,disabled:"topmenu"===e.layoutMode,size:"small"},on:{change:e.handleSetFixedSidebar}})]},proxy:!0}])},[n("a-list-item-meta",{scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{style:{opacity:"topmenu"===e.layoutMode?"0.5":"1"}},[e._v("固定侧边菜单")])]},proxy:!0}])})],1)],1)],1),n("a-divider")],1)])],1)},xe=[],_e=n(21872),ke=[{key:"红色",color:"#F5222D"},{key:"浅红色",color:"#FA541C"},{key:"日暮",color:"#FAAD14"},{key:"青色",color:"#13C2C2"},{key:"绿色",color:"#52C41A"},{key:"默认",color:"#1890FF"},{key:"蓝色",color:"#2F54EB"},{key:"紫色",color:"#722ED1"}],Ce=function(e){if(e){var t=_e.Z.loading("正在编译主题!",0);if(r)o();else{var n=document.createElement("link"),a=document.createElement("script"),i=document.createElement("script");n.setAttribute("rel","stylesheet/less"),n.setAttribute("href","/color.less"),a.innerHTML="\n window.less = {\n async: true,\n env: 'production',\n javascriptEnabled: true\n };\n ",i.src="https://unpkg.com/less@3.8.1/dist/less.min.js",i.async=!0,i.onload=function(){o(),i.onload=null},document.body.appendChild(n),document.body.appendChild(a),document.body.appendChild(i),r=!0}}function o(){window.less&&setTimeout((function(){window.less.modifyVars({"@primary-color":e}).then((function(){t()})).catch((function(){_e.Z.error("Failed to update theme"),t()}))}),200)}},Te={mixins:[b.jB,b.KT],data:function(){return{colorList:ke,baseConfig:Object.assign({},y.Z)}},watch:{},mounted:function(){this.primaryColor!==y.Z.primaryColor&&Ce(this.primaryColor)},computed:(0,h.Z)({},(0,v.Se)(["layoutSetting"])),methods:(0,h.Z)((0,h.Z)({},(0,v.nv)(["setSidebar","ToggleLayoutSetting"])),{},{onClose:function(){this.ToggleLayoutSetting(!1)},handleSetMenuTheme:function(e){this.baseConfig.navTheme=e,this.$store.dispatch("ToggleTheme",e)},handleSetLayout:function(e){this.baseConfig.layout=e,this.$store.dispatch("ToggleLayoutMode",e),"sidemenu"===e?(this.handleContentWidthChange("Fixed"),this.handleSetFixedSidebar(!0)):(this.handleSetFixedHeader(!0),this.handleSetFixedSidebar(!1))},handleContentWidthChange:function(e){this.baseConfig.contentWidth=e,this.$store.dispatch("ToggleContentWidth",e)},handleChangeColor:function(e){this.baseConfig.primaryColor=e,this.primaryColor!==e&&(this.$store.dispatch("ToggleColor",e),Ce(e))},handleSetFixedHeader:function(e){this.baseConfig.fixedHeader=e,this.$store.dispatch("ToggleFixedHeader",e),e||this.handleSetAutoHideHeader(!1)},handleSetAutoHideHeader:function(e){this.baseConfig.autoHideHeader=e,this.$store.dispatch("ToggleFixedHeaderHidden",e)},handleSetFixedSidebar:function(e){this.baseConfig.fixedSidebar=e,this.$store.dispatch("ToggleFixedSidebar",e)}})},Se=Te,Ee=(0,c.Z)(Se,ye,xe,!1,null,"fabaa384",null),we=Ee.exports,Le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{footer:null,maskClosable:!1,width:320,title:"重新登录"},on:{cancel:e.handleCancelLogin},model:{value:e.loginModal,callback:function(t){e.loginModal=t},expression:"loginModal"}},[n("LoginForm",{on:{success:e.onLoginSucceed}})],1)],1)},Ze=[],je=n(63618),Ie={name:"LoginModal",components:{LoginForm:je.Z},computed:(0,h.Z)({},(0,v.Se)(["loginModal"])),methods:(0,h.Z)((0,h.Z)({},(0,v.nv)(["ToggleLoginModal"])),{},{onLoginSucceed:function(){this.$emit("success")},handleCancelLogin:function(){this.ToggleLoginModal(!1)}})},Oe=Ie,Ae=(0,c.Z)(Oe,Le,Ze,!1,null,"3ad442b9",null),Pe=Ae.exports,Me={name:"BasicLayout",mixins:[b.jB,b.KT],components:{RouteView:T,SideMenu:z,GlobalHeader:de,GlobalFooter:be,SettingDrawer:we,LoginModal:Pe},data:function(){return{production:y.Z.production,collapsed:!1,menus:[]}},computed:{contentPaddingLeft:function(){return!this.fixedSidebar||this.isMobile()?"0":this.sidebarOpened?"256px":"80px"}},watch:{sidebarOpened:function(e){this.collapsed=!e}},created:function(){this.menus=x.j.find((function(e){return"/"===e.path})).children,this.collapsed=!this.sidebarOpened},mounted:function(){var e=this,t=navigator.userAgent;t.indexOf("Edge")>-1&&this.$nextTick((function(){e.collapsed=!e.collapsed,setTimeout((function(){e.collapsed=!e.collapsed}),16)}))},methods:(0,h.Z)((0,h.Z)({},(0,v.nv)(["setSidebar","ToggleLoginModal"])),{},{toggle:function(){this.collapsed=!this.collapsed,this.setSidebar(!this.collapsed),(0,g.XC)()},paddingCalc:function(){var e="";return e=this.sidebarOpened?this.isDesktop()?"256px":"80px":(this.isMobile()?"0":this.fixedSidebar&&"80px")||"0",e},menuSelect:function(){this.isDesktop()||(this.collapsed=!1)},drawerClose:function(){this.collapsed=!1},onLoginSucceed:function(){this.ToggleLoginModal(!1)}})},He=Me,De=(0,c.Z)(He,p,f,!1,null,null,null),$e=De.exports,Re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.$route.meta.hiddenHeaderContent?null:"margin: -24px -24px 0px;"},[e.affix?n("a-affix",[e.$route.meta.hiddenHeaderContent?e._e():n("div",{staticClass:"page-header"},[n("div",{staticClass:"page-header-index-wide"},[n("a-page-header",{attrs:{breadcrumb:{props:{routes:e.breadList}},"sub-title":e.subTitle,title:e.title}},[e._t("extra",null,{slot:"extra"}),e._t("footer",null,{slot:"footer"}),e._t("content")],2)],1)])]):e._e(),e.$route.meta.hiddenHeaderContent||e.affix?e._e():n("div",{staticClass:"page-header"},[n("div",{staticClass:"page-header-index-wide"},[n("a-page-header",{attrs:{breadcrumb:{props:{routes:e.breadList}},"sub-title":e.subTitle,title:e.title}},[e._t("extra",null,{slot:"extra"}),e._t("footer",null,{slot:"footer"}),e._t("content")],2)],1)]),n("div",{staticClass:"content"},[n("div",{staticClass:"page-header-index-wide"},[e._t("default",(function(){return[n("router-view",{ref:"content"})]}))],2)])],1)},Fe=[],Be={name:"PageView",props:{title:{type:String,default:null},subTitle:{type:String,default:null},affix:{type:Boolean,default:!1}},data:function(){return{breadList:[]}},created:function(){this.getBreadcrumb()},watch:{$route:function(){this.getBreadcrumb()}},methods:{getBreadcrumb:function(){var e=this;this.breadList=[],this.$route.matched.forEach((function(t){t.breadcrumbName=t.meta.title,e.breadList.push(t)}))}}},Ne=Be,Ge=(0,c.Z)(Ne,Re,Fe,!1,null,"3af43504",null),Ue=Ge.exports},86561:function(e,t,n){"use strict";n(97898),n(63208),n(12809),n(60296);var a=n(35702),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-config-provider",{attrs:{locale:e.locale}},[n("div",{staticClass:"h-full",attrs:{id:"app"}},[n("router-view")],1)])},r=[],o=n(76033),s=n(6145),l={data:function(){return{locale:o.Z}},mounted:function(){var e=this.$store;(0,s.A)((function(t){switch(t){case s.m.DESKTOP:e.commit("TOGGLE_DEVICE","desktop"),e.dispatch("setSidebar",!0);break;case s.m.TABLET:e.commit("TOGGLE_DEVICE","tablet"),e.dispatch("setSidebar",!1);break;case s.m.MOBILE:default:e.commit("TOGGLE_DEVICE","mobile"),e.dispatch("setSidebar",!0);break}}))}},u=l,c=n(42177),d=(0,c.Z)(u,i,r,!1,null,null,null),m=d.exports,p=(n(41479),n(13407)),f=n(93650);a["default"].use(p.Z);var h=new p.Z({mode:"hash",base:"/",scrollBehavior:function(){return{y:0}},routes:f.k.concat(f.j)}),g=n(60331),v=n(56612),b=n(98291),y=!0,x={isEnabled:!0,logLevel:y?"error":"debug",stringifyArguments:!1,showLogLevel:!0,showMethodName:!0,separator:"|",showConsoleColors:!0};a["default"].use(b.Z,x);var _=n(60271),k=n.n(_),C=n(78250),T=n(84630),S=n(77214),E=n(90081),w=n(23915),L=n(77689),Z=n(87253),j=n(48617),I=n(96830),O=n(36432),A=n(14406),P=n(14213),M=n(63912),H=n(9120),D=n(88148),$=n(47701),R=n(50448),F=n(61226),B=n(94882),N=n(56911),G=n(65795),U=n(20846),z=n(17311),K=n(26699),V=n(31911),Y=n(2142),q=n(96100),W=n(88644),X=n(21527),Q=n(11400),J=n(46069),ee=n(81132),te=n(47861),ne=n(41725),ae=n(23231),ie=n(17529),re=n(76441),oe=n(37333),se=n(54479),le=n(9099),ue=n(61247),ce=n(67559),de=n(31195),me=n(92952),pe=n(30841),fe=n(49538),he=n(30955),ge=n(10384),ve=n(78008),be=n(52011),ye=n(42228),xe=n(97711),_e=n(69436),ke=n(21872),Ce=n(4360);a["default"].use(T.Z),a["default"].use(S.ZP),a["default"].use(E.Z),a["default"].use(w.Z),a["default"].use(L.Z),a["default"].use(Z.Z),a["default"].use(j.Z),a["default"].use(I.Z),a["default"].use(O.Z),a["default"].use(A.Z),a["default"].use(P.Z),a["default"].use(M.Z),a["default"].use(H.Z),a["default"].use(D.Z),a["default"].use($.Z),a["default"].use(R.ZP),a["default"].use(F.ZP),a["default"].use(B.ZP),a["default"].use(N.Z),a["default"].use(G.Z),a["default"].use(U.Z),a["default"].use(z.Z),a["default"].use(K.ZP),a["default"].use(V.Z),a["default"].use(Y.ZP),a["default"].use(q.Z),a["default"].use(W.Z),a["default"].use(X.ZP),a["default"].use(Q.Z),a["default"].use(J.Z),a["default"].use(ee.Z),a["default"].use(te.ZP),a["default"].use(ne.Z),a["default"].use(ae.ZP),a["default"].use(ie.Z),a["default"].use(re.Z),a["default"].use(oe.Z),a["default"].use(se.Z),a["default"].use(le.ZP),a["default"].use(ue.ZP),a["default"].use(ce.Z),a["default"].use(de.ZP),a["default"].use(me.Z),a["default"].use(pe.Z),a["default"].use(fe.Z),a["default"].use(he.Z),a["default"].use(ge.ZP),a["default"].use(ve.Z),a["default"].use(be.ZP),a["default"].use(ye.ZP),a["default"].use(xe.ZP),a["default"].use(_e.ZP),ke.Z.config({maxCount:1}),a["default"].prototype.$message=ke.Z,a["default"].prototype.$notification=Ce.Z,a["default"].prototype.$info=q.Z.info,a["default"].prototype.$success=q.Z.success,a["default"].prototype.$error=q.Z.error,a["default"].prototype.$warning=q.Z.warning,a["default"].prototype.$confirm=q.Z.confirm;n(30534);var Te=n(82547);function Se(){v.Z.commit("SET_SIDEBAR_TYPE",a["default"].ls.get(Te.mQ,!0)),v.Z.commit("TOGGLE_THEME",a["default"].ls.get(Te.t0,C.Z.navTheme)),v.Z.commit("TOGGLE_LAYOUT_MODE",a["default"].ls.get(Te.v9,C.Z.layout)),v.Z.commit("TOGGLE_FIXED_HEADER",a["default"].ls.get(Te.Vv,C.Z.fixedHeader)),v.Z.commit("TOGGLE_FIXED_SIDEBAR",a["default"].ls.get(Te.lK,C.Z.fixedSidebar)),v.Z.commit("TOGGLE_CONTENT_WIDTH",a["default"].ls.get(Te.hC,C.Z.contentWidth)),v.Z.commit("TOGGLE_FIXED_HEADER_HIDDEN",a["default"].ls.get(Te.NK,C.Z.autoHideHeader)),v.Z.commit("TOGGLE_COLOR",a["default"].ls.get(Te.Dp,C.Z.primaryColor)),v.Z.commit("SET_TOKEN",a["default"].ls.get(Te.LA)),v.Z.commit("SET_USER",a["default"].ls.get(Te.xR)),v.Z.commit("SET_OPTIONS",a["default"].ls.get(Te.JY))}var Ee=n(91884),we=n.n(Ee);a["default"].use(k(),C.Z.storageOptions),a["default"].use(we()),Se();var Le=n(47458),Ze=(n(70315),n(21082),n(2923),n(29981)),je=n.n(Ze),Ie=(n(30535),n(86381),function(e){document.title=e;var t=navigator.userAgent,n=/\bMicroMessenger\/([\d\.]+)/;if(n.test(t)&&/ip(hone|od|ad)/i.test(t)){var a=document.createElement("iframe");a.src="/favicon.ico",a.style.display="none",a.onload=function(){setTimeout((function(){a.remove()}),9)},document.body.appendChild(a)}}),Oe="Halo",Ae=n(17132);je().configure({showSpinner:!1,speed:500});var Pe=["Login","Install","NotFound","ResetPassword"],Me=null;function He(){Me&&0!==Me&&(clearTimeout(Me),Me=null,je().done())}h.beforeEach(function(){var e=(0,Le.Z)(regeneratorRuntime.mark((function e(t,n,a){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(He(),Me=setTimeout((function(){je().start()}),250),t.meta&&"undefined"!==typeof t.meta.title&&Ie("".concat(t.meta.title," - ").concat(Oe)),!v.Z.getters.token){e.next=21;break}if("Install"!==t.name){e.next=7;break}return a(),e.abrupt("return");case 7:return e.next=9,Ae.Z.isInstalled();case 9:if(i=e.sent,i.data){e.next=14;break}return a({name:"Install"}),He(),e.abrupt("return");case 14:if("Login"!==t.name){e.next=18;break}return a({name:"Dashboard"}),He(),e.abrupt("return");case 18:return v.Z.getters.options||v.Z.dispatch("refreshOptionsCache").then(),a(),e.abrupt("return");case 21:if(!Pe.includes(t.name)){e.next=24;break}return a(),e.abrupt("return");case 24:a({name:"Login",query:{redirect:t.fullPath}}),He();case 26:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}()),h.afterEach((function(){He()}));n(90195),n(31875),n(43938);var De=n(51722),$e=n.n(De),Re=(n(9073),n(38487)),Fe=n(17745);$e().locale("zh-cn"),a["default"].filter("moment",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return $e()(e).format(t)})),a["default"].filter("moment_post_date",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/MM/";return $e()(e).format(t)})),a["default"].filter("moment_post_year",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/";return $e()(e).format(t)})),a["default"].filter("moment_post_day",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/MM/DD/";return $e()(e).format(t)})),a["default"].filter("timeAgo",Re.S),a["default"].filter("fileSizeFormat",(function(e){if(!e)return"0 Bytes";var t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=parseFloat(e),a=Math.floor(Math.log(n)/Math.log(1024)),i=n/Math.pow(1024,a);return i=i.toFixed(2),i+" "+t[a]})),a["default"].filter("dayTime",(function(e){var t=Math.floor(e/86400),n=Math.floor(e%86400/3600),a=Math.floor(e%86400%3600/60),i=Math.floor(e%86400%3600%60);return t+"d "+n+"h "+a+"m "+i+"s"})),a["default"].filter("markdownRender",(function(e){return Fe.TU.parse(e)}));n(18482),n(53961),n(96339),n(12566),n(93418),n(82395);var Be,Ne,Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("").reduce((function(e,t){var n=t.charCodeAt(0);return n>=0&&n<=128?e+1:e+2}),0)},Ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=0;return e.split("").reduce((function(e,a){var i=a.charCodeAt(0);return n+=i>=0&&i<=128?1:2,n<=t?e+a:e}),"")},ze={name:"Ellipsis",components:{Tooltip:me.Z},props:{prefixCls:{type:String,default:"ant-pro-ellipsis"},tooltip:{type:Boolean},length:{type:Number,required:!0},lines:{type:Number,default:1},fullWidthRecognition:{type:Boolean,default:!1}},methods:{getStrDom:function(e,t){var n=this.$createElement;return n("span",[Ue(e,this.length)+(t>this.length?"...":"")])},getTooltip:function(e,t){var n=this.$createElement;return n(me.Z,[n("template",{slot:"title"},[e]),this.getStrDom(e,t)])}},render:function(){var e=this.$props,t=e.tooltip,n=e.length,a=this.$slots.default.map((function(e){return e.text})).join(""),i=Ge(a);return t&&i>n?this.getTooltip(a,i):this.getStrDom(a,i)}},Ke=ze,Ve=(0,c.Z)(Ke,Be,Ne,!1,null,null,null),Ye=Ve.exports,qe=Ye,We=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixCls},[n("div",{staticClass:"float-left"},[e._t("extra",(function(){return[e._v(e._s(e.extra))]}))],2),n("div",{staticClass:"float-right"},[e._t("default")],2)])},Xe=[],Qe={name:"FooterToolBar",props:{prefixCls:{type:String,default:"ant-pro-footer-toolbar"},extra:{type:[String,Object],default:""}}},Je=Qe,et=(0,c.Z)(Je,We,Xe,!1,null,null,null),tt=et.exports,nt=tt,at=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("file-pond",{ref:"pond",attrs:{"accepted-file-types":e.accepts,"allow-multiple":e.multiple,allowImagePreview:e.allowImagePreview,allowRevert:!1,files:e.fileList,"label-idle":e.label,maxFiles:e.maxFiles,maxParallelUploads:e.maxParallelUploads,name:e.name,server:e.server,fileValidateTypeLabelExpectedTypes:"请选择 {lastType} 格式的文件",labelFileProcessing:"上传中",labelFileProcessingAborted:"取消上传",labelFileProcessingComplete:"上传完成",labelFileProcessingError:"上传错误",labelFileTypeNotAllowed:"不支持当前文件格式",labelTapToCancel:"点击取消",labelTapToRetry:"点击重试"},on:{init:e.handleFilePondInit}})],1)},it=[],rt=n(86475),ot=n(98906),st=n(40889),lt=n(77847),ut=n.n(lt),ct=n(80574),dt=n.n(ct),mt=n(88761),pt=n.n(mt),ft=ut()(dt(),pt()),ht={name:"FilePondUpload",components:{FilePond:ft},props:{name:{type:String,required:!1,default:"file"},field:{type:String,required:!1,default:""},multiple:{type:Boolean,required:!1,default:!0},accepts:{type:Array,required:!1,default:function(){return null}},label:{type:String,required:!1,default:"点击选择文件或将文件拖拽到此处"},uploadHandler:{type:Function,required:!0}},computed:(0,rt.Z)((0,rt.Z)({},(0,ot.Se)(["options"])),{},{maxParallelUploads:function(){return this.options?this.options.attachment_upload_max_parallel_uploads:1},allowImagePreview:function(){return!!this.options&&this.options.attachment_upload_image_preview_enable},maxFiles:function(){return this.options?this.options.attachment_upload_max_files:1}}),data:function(){var e=this;return{server:{process:function(t,n,a,i,r,o,s){var l=st.Axios.CancelToken,u=l.source();return e.uploadHandler(n,{onUploadProgress:function(e){e.total>0&&o(e.lengthComputable,e.loaded,e.total)},cancelToken:u.token},e.field).then((function(t){i(t),e.$log.debug("Uploaded successfully",t),e.$emit("success",t,n)})).catch((function(t){e.$log.debug("Failed to upload file",t),e.$emit("failure",t,n),r()})),{abort:function(){s(),e.$log.debug("Upload operation aborted by the user"),u.cancel("Upload operation canceled by the user.")}}}},fileList:[]}},methods:{handleFilePondInit:function(){this.$log.debug("FilePond has initialized")},handleClearFileList:function(){this.$refs.pond.removeFiles()}}},gt=ht,vt=(0,c.Z)(gt,at,it,!1,null,null,null),bt=vt.exports,yt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{afterClose:e.onClose,footer:null,destroyOnClose:"",title:"上传附件"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[n("FilePondUpload",{ref:"upload",attrs:{uploadHandler:e.uploadHandler}})],1)},xt=[],_t={name:"AttachmentUploadModal",props:{visible:{type:Boolean,default:!1}},data:function(){return{uploadHandler:function(e,t){return Ae.Z.attachment.upload(e,t)}}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{onClose:function(){this.$refs.upload.handleClearFileList(),this.$emit("close")}}},kt=_t,Ct=(0,c.Z)(kt,yt,xt,!1,null,null,null),Tt=Ct.exports,St=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{afterClose:e.onAfterClose,title:e.title,width:1024,destroyOnClose:""},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"关键词:"}},[n("a-input",{on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch()}},model:{value:e.list.params.keyword,callback:function(t){e.$set(e.list.params,"keyword",t)},expression:"list.params.keyword"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"存储位置:"}},[n("a-select",{attrs:{loading:e.types.loading,allowClear:""},on:{change:function(t){return e.handleSearch()}},model:{value:e.list.params.attachmentType,callback:function(t){e.$set(e.list.params,"attachmentType",t)},expression:"list.params.attachmentType"}},e._l(e.types.data,(function(t){return n("a-select-option",{key:t,attrs:{value:t}},[e._v(" "+e._s(e._f("typeText")(t))+" ")])})),1)],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"文件类型:"}},[n("a-select",{attrs:{loading:e.mediaTypes.loading,allowClear:""},on:{change:function(t){return e.handleSearch()}},model:{value:e.list.params.mediaType,callback:function(t){e.$set(e.list.params,"mediaType",t)},expression:"list.params.mediaType"}},e._l(e.mediaTypes.data,(function(t,a){return n("a-select-option",{key:a,attrs:{value:t}},[e._v(" "+e._s(t)+" ")])})),1)],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons"},[n("a-space",[n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSearch()}}},[e._v("查询")]),n("a-button",{on:{click:function(t){e.handleResetParam(),e.handleListAttachments()}}},[e._v("重置")])],1)],1)])],1)],1)],1),n("div",{staticClass:"mb-0 table-operator"},[n("a-button",{attrs:{icon:"cloud-upload",type:"primary"},on:{click:function(t){e.upload.visible=!0}}},[e._v("上传")])],1),n("a-divider"),n("a-list",{staticClass:"attachments-group",attrs:{dataSource:e.list.data,grid:{gutter:6,xs:2,sm:2,md:4,lg:6,xl:6,xxl:6},loading:e.list.loading},scopedSlots:e._u([{key:"renderItem",fn:function(t,a){return[n("a-list-item",{key:a,on:{mouseenter:function(n){return e.$set(t,"hover",!0)},mouseleave:function(n){return e.$set(t,"hover",!1)},click:function(n){return e.handleItemClick(t)}}},[n("div",{staticClass:"border border-solid",class:e.isItemSelect(t)?"border-blue-600":"border-slate-200"},[n("div",{staticClass:"attach-thumb attachments-group-item"},[e.isImage(t)?n("span",{staticClass:"attachments-group-item-img",style:"background-image:url("+encodeURI(t.thumbPath)+")",attrs:{loading:"lazy"}}):n("span",{staticClass:"attachments-group-item-type"},[e._v(e._s(t.suffix))])]),n("a-card-meta",{staticClass:"p-2 cursor-pointer",scopedSlots:e._u([{key:"description",fn:function(){return[n("a-tooltip",{attrs:{title:t.name}},[n("div",{staticClass:"truncate"},[e._v(e._s(t.name))])])]},proxy:!0}],null,!0)}),n("a-icon",{directives:[{name:"show",rawName:"v-show",value:e.isItemSelect(t)&&!t.hover,expression:"isItemSelect(item) && !item.hover"}],staticClass:"absolute top-1 right-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px",color:"rgb(37 99 235)"},attrs:{type:"check-circle",theme:"twoTone"}}),n("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.hover,expression:"item.hover"}],staticClass:"absolute top-1 right-2 font-bold cursor-pointer transition-all",style:{fontSize:"18px"},attrs:{type:"profile",theme:"twoTone"},on:{click:function(n){return n.stopPropagation(),e.handleOpenDetail(t)}}})],1)])]}}])}),n("div",{staticClass:"flex justify-between"},[n("a-popover",{attrs:{placement:"right",title:"预览",trigger:"click"}},[n("template",{slot:"content"},[e.list.selected.length?n("a-tabs",{attrs:{"default-active-key":"markdown","tab-position":"left"}},[n("a-tab-pane",{key:"markdown",attrs:{tab:"Markdown"}},[n("div",{staticClass:"text-slate-400",domProps:{innerHTML:e._s(e.markdownSyntaxList.join("
"))}})]),n("a-tab-pane",{key:"html",attrs:{"force-render":"",tab:"HTML"}},[n("div",{staticClass:"text-slate-400"},e._l(e.htmlSyntaxList,(function(t,a){return n("span",{key:a,staticClass:"text-slate-400"},[e._v(" "+e._s(t)),n("br")])})),0)])],1):n("div",{staticClass:"text-slate-400"},[e._v("未选择附件")])],1),n("a-tooltip",{attrs:{placement:"top",title:"点击预览"}},[n("div",{staticClass:"self-center text-slate-400 select-none cursor-pointer hover:text-blue-400 transition-all"},[e._v(" 已选择 "+e._s(e.list.selected.length)+" 项 ")])])],2),n("div",{staticClass:"page-wrapper flex justify-end self-center"},[n("a-pagination",{staticClass:"pagination !mt-0",attrs:{current:e.pagination.page,defaultPageSize:e.pagination.size,pageSizeOptions:["12","18","24","30","36","42"],total:e.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:e.handlePageChange,showSizeChange:e.handlePageSizeChange}})],1)],1),n("template",{slot:"footer"},[n("a-button",{on:{click:function(t){e.modalVisible=!1}}},[e._v("取消")]),n("a-button",{attrs:{type:"primary",disabled:!e.list.selected.length},on:{click:e.handleConfirm}},[e._v("确定")])],1),n("AttachmentUploadModal",{attrs:{visible:e.upload.visible},on:{"update:visible":function(t){return e.$set(e.upload,"visible",t)},close:e.handleSearch}}),n("AttachmentDetailModal",{attrs:{attachment:e.list.current,visible:e.detailVisible},on:{"update:visible":function(t){e.detailVisible=t},delete:function(t){return e.handleListAttachments()}},scopedSlots:e._u([{key:"extraFooter",fn:function(){return[n("a-button",{attrs:{disabled:e.selectPreviousButtonDisabled},on:{click:e.handleSelectPrevious}},[e._v("上一项")]),n("a-button",{attrs:{disabled:e.selectNextButtonDisabled},on:{click:e.handleSelectNext}},[e._v("下一项")]),n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleItemClick(e.list.current)}}},[e._v(" "+e._s(e.list.selected.findIndex((function(t){return t.id===e.list.current.id}))>-1?"取消选择":"选择")+" ")])]},proxy:!0}])})],2)},Et=[],wt=n(75725),Lt=(n(15928),n(3662),n(94671)),Zt={name:"AttachmentSelectModal",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"选择附件"},multiSelect:{type:Boolean,default:!0}},data:function(){return{list:{data:[],total:0,hasNext:!1,hasPrevious:!1,loading:!1,params:{page:0,size:12,keyword:void 0,mediaType:void 0,attachmentType:void 0},selected:[],current:{}},mediaTypes:{data:[],loading:!1},types:{data:[],loading:!1},upload:{visible:!1},detailVisible:!1}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},pagination:function(){return{page:this.list.params.page+1,size:this.list.params.size,total:this.list.total}},selectPreviousButtonDisabled:function(){var e=this,t=this.list.data.findIndex((function(t){return t.id===e.list.current.id}));return 0===t&&!this.list.hasPrevious},selectNextButtonDisabled:function(){var e=this,t=this.list.data.findIndex((function(t){return t.id===e.list.current.id}));return t===this.list.data.length-1&&!this.list.hasNext},isImage:function(){return function(e){return!(!e||!e.mediaType)&&e.mediaType.startsWith("image")}},isItemSelect:function(){return function(e){return this.list.selected.findIndex((function(t){return t.id===e.id}))>-1}},markdownSyntaxList:function(){return this.list.selected.length?this.list.selected.map((function(e){return"![".concat(e.name,"](").concat(encodeURI(e.path),")")})):[]},htmlSyntaxList:function(){return this.list.selected.length?this.list.selected.map((function(e){return'').concat(e.name,'')})):[]}},watch:{modalVisible:function(e){e&&(this.handleListAttachments(),this.handleListMediaTypes(),this.handleListTypes())}},methods:{handleListAttachments:function(){var e=this;return(0,Le.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.list.loading=!0,t.next=4,Ae.Z.attachment.list(e.list.params);case 4:n=t.sent,e.list.data=n.data.content,e.list.total=n.data.total,e.list.hasNext=n.data.hasNext,e.list.hasPrevious=n.data.hasPrevious,t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),e.$log.error(t.t0);case 14:return t.prev=14,e.list.loading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,11,14,17]])})))()},handleListMediaTypes:function(){var e=this;return(0,Le.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.mediaTypes.loading=!0,t.next=4,Ae.Z.attachment.listMediaTypes();case 4:n=t.sent,e.mediaTypes.data=n.data,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),e.$log.error(t.t0);case 11:return t.prev=11,e.mediaTypes.loading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,8,11,14]])})))()},handleListTypes:function(){var e=this;return(0,Le.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.types.loading=!0,t.next=4,Ae.Z.attachment.listTypes();case 4:n=t.sent,e.types.data=n.data,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),e.$log.error(t.t0);case 11:return t.prev=11,e.types.loading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,8,11,14]])})))()},handlePageChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.list.params.page=e-1,this.handleListAttachments()},handleSearch:function(){this.handlePageChange(1)},handleResetParam:function(){this.list.params={page:0,size:12,keyword:void 0,mediaType:void 0,attachmentType:void 0}},handlePageSizeChange:function(e,t){this.$log.debug("Current: ".concat(e,", PageSize: ").concat(t)),this.list.params.page=0,this.list.params.size=t,this.handleListAttachments()},handleItemClick:function(e){if(!this.multiSelect)return this.$emit("confirm",{raw:[e],markdown:["![".concat(e.name,"](").concat(encodeURI(e.path),")")],html:['').concat(e.name,'')]}),void(this.modalVisible=!1);var t=this.list.selected.findIndex((function(t){return t.id===e.id}))>-1;t?this.handleUnselect(e):this.handleSelect(e)},handleSelect:function(e){this.list.selected=[].concat((0,wt.Z)(this.list.selected),[e])},handleUnselect:function(e){this.list.selected=this.list.selected.filter((function(t){return t.id!==e.id}))},handleConfirm:function(){this.$emit("confirm",{raw:this.list.selected,markdown:this.markdownSyntaxList,html:this.htmlSyntaxList}),this.modalVisible=!1},handleOpenDetail:function(e){this.list.current=e,this.detailVisible=!0},handleSelectPrevious:function(){var e=this;return(0,Le.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.list.data.findIndex((function(t){return t.id===e.list.current.id})),!(n>0)){t.next=4;break}return e.list.current=e.list.data[n-1],t.abrupt("return");case 4:if(0!==n||!e.list.hasPrevious){t.next=9;break}return e.list.params.page--,t.next=8,e.handleListAttachments();case 8:e.list.current=e.list.data[e.list.data.length-1];case 9:case"end":return t.stop()}}),t)})))()},handleSelectNext:function(){var e=this;return(0,Le.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.list.data.findIndex((function(t){return t.id===e.list.current.id})),!(n0&&(this.viewMetas.pageHeaderHeight=e[0].clientHeight);var t=document.getElementsByClassName("ant-layout-footer");t&&t.length>0&&(this.viewMetas.pageFooterHeight=t[0].clientHeight)}}}},56612:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var a=n(35702),i=n(98906),r=n(82547),o={state:{sidebar:!0,device:"desktop",theme:"",layout:"",contentWidth:"",fixedHeader:!1,fixedSidebar:!1,autoHideHeader:!1,color:null,layoutSetting:!1,loginModal:!1},mutations:{SET_SIDEBAR_TYPE:function(e,t){e.sidebar=t,a["default"].ls.set(r.mQ,t)},CLOSE_SIDEBAR:function(e){a["default"].ls.set(r.mQ,!0),e.sidebar=!1},TOGGLE_DEVICE:function(e,t){e.device=t},TOGGLE_THEME:function(e,t){a["default"].ls.set(r.t0,t),e.theme=t},TOGGLE_LAYOUT_MODE:function(e,t){a["default"].ls.set(r.v9,t),e.layout=t},TOGGLE_FIXED_HEADER:function(e,t){a["default"].ls.set(r.Vv,t),e.fixedHeader=t},TOGGLE_FIXED_SIDEBAR:function(e,t){a["default"].ls.set(r.lK,t),e.fixedSidebar=t},TOGGLE_FIXED_HEADER_HIDDEN:function(e,t){a["default"].ls.set(r.NK,t),e.autoHideHeader=t},TOGGLE_CONTENT_WIDTH:function(e,t){a["default"].ls.set(r.hC,t),e.contentWidth=t},TOGGLE_COLOR:function(e,t){a["default"].ls.set(r.Dp,t),e.color=t},TOGGLE_LAYOUT_SETTING:function(e,t){a["default"].ls.set(r.W1,t),e.layoutSetting=t},TOGGLE_LOGIN_MODAL:function(e,t){e.loginModal=t}},actions:{setSidebar:function(e,t){var n=e.commit;n("SET_SIDEBAR_TYPE",t)},ToggleTheme:function(e,t){var n=e.commit;n("TOGGLE_THEME",t)},ToggleLayoutMode:function(e,t){var n=e.commit;n("TOGGLE_LAYOUT_MODE",t)},ToggleFixedHeader:function(e,t){var n=e.commit;n("TOGGLE_FIXED_HEADER",t)},ToggleFixedSidebar:function(e,t){var n=e.commit;n("TOGGLE_FIXED_SIDEBAR",t)},ToggleFixedHeaderHidden:function(e,t){var n=e.commit;n("TOGGLE_FIXED_HEADER_HIDDEN",t)},ToggleContentWidth:function(e,t){var n=e.commit;n("TOGGLE_CONTENT_WIDTH",t)},ToggleColor:function(e,t){var n=e.commit;n("TOGGLE_COLOR",t)},ToggleLayoutSetting:function(e,t){var n=e.commit;n("TOGGLE_LAYOUT_SETTING",t)},ToggleLoginModal:function(e,t){var n=e.commit;n("TOGGLE_LOGIN_MODAL",t)}}},s=o,l=(n(31875),n(17132)),u={state:{token:null,user:{}},mutations:{SET_TOKEN:function(e,t){a["default"].ls.set(r.LA,t,t?1e3*t.expired_in:null),e.token=t},CLEAR_TOKEN:function(e){a["default"].ls.remove(r.LA),e.token=null},SET_USER:function(e,t){a["default"].ls.set(r.xR,t),e.user=t}},actions:{installCleanToken:function(e,t){var n=e.commit;return new Promise((function(e,a){l.Z.installation.install(t).then((function(t){n("CLEAR_TOKEN"),e(t)})).catch((function(e){a(e)}))}))},refreshUserCache:function(e){var t=e.commit;return new Promise((function(e,n){l.Z.user.getProfile().then((function(n){t("SET_USER",n.data),e(n)})).catch((function(e){n(e)}))}))},login:function(e,t){var n=e.commit,i=t.username,r=t.password,o=t.authcode;return new Promise((function(e,t){l.Z.login({username:i,password:r,authcode:o}).then((function(t){var i=t.data;a["default"].$log.debug("Got token",i),n("SET_TOKEN",i),e(t)})).catch((function(e){t(e)}))}))},logout:function(e){var t=e.commit;return new Promise((function(e){l.Z.logout().then((function(){t("CLEAR_TOKEN"),t("SET_USER",{}),e()})).catch((function(){e()}))}))},refreshToken:function(e,t){var n=e.commit;return new Promise((function(e,i){l.Z.refreshToken(t).then((function(t){var i=t.data;a["default"].$log.debug("Got token",i),n("SET_TOKEN",i),e(t)})).catch((function(e){var r=e.data;a["default"].$log.debug("Refresh error data",r),r&&400===r.status&&r.data===t&&n("CLEAR_TOKEN"),i(e)}))}))}}},c=u,d=["blog_url","developer_mode","attachment_upload_image_preview_enable","attachment_upload_max_parallel_uploads","attachment_upload_max_files","sheet_prefix","post_permalink_type","sheet_permalink_type","archives_prefix","path_suffix","default_editor","default_menu_team"],m={state:{options:[]},mutations:{SET_OPTIONS:function(e,t){a["default"].ls.set(r.JY,t),e.options=t}},actions:{refreshOptionsCache:function(e){var t=e.commit;return new Promise((function(e,n){l.Z.option.listAsMapViewByKeys(d).then((function(n){t("SET_OPTIONS",n.data),e(n)})).catch((function(e){n(e)}))}))}}},p=m,f={device:function(e){return e.app.device},theme:function(e){return e.app.theme},color:function(e){return e.app.color},layoutSetting:function(e){return e.app.layoutSetting},loginModal:function(e){return e.app.loginModal},token:function(e){return e.user.token},user:function(e){return e.user.user},options:function(e){return e.option.options}},h=f;a["default"].use(i.ZP);var g=new i.ZP.Store({modules:{app:s,user:c,option:p},state:{},mutations:{},actions:{},getters:h})},82547:function(e,t,n){"use strict";n.d(t,{LA:function(){return a},mQ:function(){return i},t0:function(){return r},v9:function(){return o},Dp:function(){return s},Vv:function(){return l},lK:function(){return u},NK:function(){return c},hC:function(){return d},xR:function(){return m},JY:function(){return p},W1:function(){return f}});var a="Access-Token",i="SIDEBAR_TYPE",r="DEFAULT_THEME",o="DEFAULT_LAYOUT_MODE",s="DEFAULT_COLOR",l="DEFAULT_FIXED_HEADER",u="DEFAULT_FIXED_SIDEBAR",c="DEFAULT_FIXED_HEADER_HIDDEN",d="DEFAULT_CONTENT_WIDTH_TYPE",m="USER",p="OPTIONS",f="LAYOUT_SETTING"},17132:function(e,t,n){"use strict";var a=n(47458),i=(n(70315),n(31875),n(30535),n(86381),n(82395),n(53961),n(18482),n(40889)),r=n(56612),o=n(21872),s=n(4360),l=n(13159),u=localStorage.getItem("apiUrl"),c=u||"",d=new i.HaloRestAPIClient({baseUrl:c}),m=new i.AdminApiClient(d);d.interceptors.request.use((function(e){var t=r.Z.getters.token;return t&&t.access_token&&(e.headers["Admin-Authorization"]=t.access_token),e}),(function(e){return Promise.reject(e)}));var p=!1,f=[];d.interceptors.response.use((function(e){return e}),function(){var e=(0,a.Z)(regeneratorRuntime.mark((function e(t){var n,a,u,c,d,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i.Axios.isCancel(t)){e.next=2;break}return e.abrupt("return",Promise.reject(t));case 2:if(!/Network Error/.test(t.message)){e.next=5;break}return o.Z.error("网络错误,请检查网络连接"),e.abrupt("return",Promise.reject(t));case 5:if(n=r.Z.getters.token,a=t.config,u=t.response,c=u?u.data:null,!c){e.next=39;break}if(400!==c.status){e.next=14;break}return d=c.data,(0,l.Kn)(d)?(m=Object.keys(d||{}).map((function(e){return d[e]})),s.Z.error({message:c.message,description:function(e){var t=m.map((function(t){return e("a-alert",{props:{message:t,banner:!0,showIcon:!1,type:"error"}})}));return e("div",t)},duration:10})):o.Z.error(c.message),e.abrupt("return",Promise.reject(t));case 14:if(401!==c.status){e.next=37;break}if(p){e.next=36;break}return p=!0,e.prev=17,e.next=20,r.Z.dispatch("refreshToken",n.refresh_token);case 20:return f.forEach((function(e){return e()})),f=[],e.abrupt("return",(0,i.Axios)(a));case 25:return e.prev=25,e.t0=e["catch"](17),o.Z.warning("当前登录状态已失效,请重新登录"),e.next=30,r.Z.dispatch("ToggleLoginModal",!0);case 30:return e.abrupt("return",Promise.reject(e.t0));case 31:return e.prev=31,p=!1,e.finish(31);case 34:e.next=37;break;case 36:return e.abrupt("return",new Promise((function(e){f.push((function(){e((0,i.Axios)(a))}))})));case 37:return o.Z.error(c.message||"服务器错误"),e.abrupt("return",Promise.reject(t));case 39:return o.Z.error("网络异常"),e.abrupt("return",Promise.reject(t));case 41:case"end":return e.stop()}}),e,null,[[17,25,31,34]])})));return function(t){return e.apply(this,arguments)}}()),t["Z"]=m},82676:function(e,t,n){"use strict";n.d(t,{RQ:function(){return a},vq:function(){return r},aX:function(){return i}});n(30535),n(15231),n(85018),n(96153),n(31875),n(11074),n(86381);var a=function(e){return!!r(e)&&(e.match(/^rgb/)?(e=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/),t=e[1],n=e[2],a=e[3]):(e=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&")),t=e>>16,n=e>>8&255,a=255&e),i=Math.sqrt(t*t*.299+n*n*.587+a*a*.114),i>127.5);var t,n,a,i},i=/(^#[0-9A-F])/i,r=function(e){return i.test(e)}},38487:function(e,t,n){"use strict";n.d(t,{_:function(){return r},S:function(){return o}});var a=n(51722),i=n.n(a);n(9073);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return i()(e).format(t)}function o(e){var t=(new Date).getTime(),n=t-e,a=Math.floor(n/864e5);if(0===a){var r=n%864e5,o=Math.floor(r/36e5);if(0===o){var s=r%36e5,l=Math.floor(s/6e4);if(0===l){var u=s%6e4,c=Math.round(u/1e3);return c+" 秒前"}return l+" 分钟前"}return o+" 小时前"}return a<0?"刚刚":a<5?a+" 天前":i()(e).format("YYYY-MM-DD HH:mm")}i().locale("zh-cn")},6145:function(e,t,n){"use strict";n.d(t,{m:function(){return r},A:function(){return o}});var a=n(3779),i=n.n(a),r={DESKTOP:"desktop",TABLET:"tablet",MOBILE:"mobile"},o=function(e){var t={match:function(){e&&e(r.DESKTOP)}},n={match:function(){e&&e(r.TABLET)}},a={match:function(){e&&e(r.MOBILE)}};i().register("screen and (max-width: 576px)",a).register("screen and (min-width: 576px) and (max-width: 1199px)",n).register("screen and (min-width: 1200px)",t)}},13159:function(e,t,n){"use strict";n.d(t,{XC:function(){return i},Kn:function(){return r},I8:function(){return o}});var a=n(26434);n(87591),n(31875),n(18482),n(53961);function i(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),e.eventType="message",window.dispatchEvent(e)}function r(e){return e&&"object"===(0,a.Z)(e)&&e.constructor===Object}function o(e){if(!e&&"object"!==(0,a.Z)(e))throw new Error("error arguments");var t=e.constructor===Array?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===(0,a.Z)(e[n])?t[n]=o(e[n]):t[n]=e[n]})),t}},63618:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-form-model",{ref:"loginForm",attrs:{model:e.form.model,rules:e.form.rules,layout:"vertical"},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.form.needAuthCode?e.handleLogin():e.handleLoginClick()}}},[e.form.needAuthCode?e._e():n("a-form-model-item",{attrs:{prop:"username"}},[n("a-input",{attrs:{placeholder:"用户名/邮箱"},model:{value:e.form.model.username,callback:function(t){e.$set(e.form.model,"username",t)},expression:"form.model.username"}},[n("a-icon",{staticStyle:{color:"rgba(0, 0, 0, 0.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e.form.needAuthCode?e._e():n("a-form-model-item",{attrs:{prop:"password"}},[n("a-input",{attrs:{placeholder:"密码",type:"password"},model:{value:e.form.model.password,callback:function(t){e.$set(e.form.model,"password",t)},expression:"form.model.password"}},[n("a-icon",{staticStyle:{color:"rgba(0, 0, 0, 0.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),e.form.needAuthCode?n("a-form-model-item",{attrs:{prop:"authcode"}},[n("a-input",{attrs:{maxLength:6,placeholder:"两步验证码"},model:{value:e.form.model.authcode,callback:function(t){e.$set(e.form.model,"authcode",t)},expression:"form.model.authcode"}},[n("a-icon",{staticStyle:{color:"rgba(0, 0, 0, 0.25)"},attrs:{slot:"prefix",type:"safety-certificate"},slot:"prefix"})],1)],1):e._e(),n("a-form-model-item",[n("a-button",{attrs:{block:!0,loading:e.form.logging,type:"primary"},on:{click:function(t){e.form.needAuthCode?e.handleLogin():e.handleLoginClick()}}},[e._v(" "+e._s(e.buttonName)+" ")])],1)],1)],1)},i=[],r=n(86475),o=(n(87591),n(31875),n(98906)),s=n(17132),l={name:"LoginForm",data:function(){var e=this,t=function(t,n,a){!n&&e.form.needAuthCode?a(new Error("* 请输入两步验证码")):a()};return{form:{model:{authcode:null,password:null,username:null},rules:{username:[{required:!0,message:"* 用户名/邮箱不能为空",trigger:["change"]}],password:[{required:!0,message:"* 密码不能为空",trigger:["change"]}],authcode:[{validator:t,trigger:["change"]}]},needAuthCode:!1,logging:!1}}},computed:{buttonName:function(){return this.form.needAuthCode?"验证":"登录"}},methods:(0,r.Z)((0,r.Z)({},(0,o.nv)(["login","refreshUserCache","refreshOptionsCache"])),{},{handleLoginClick:function(){var e=this;e.$refs.loginForm.validate((function(t){t&&(e.form.logging=!0,s.Z.needMFACode({username:e.form.model.username,password:e.form.model.password}).then((function(t){var n=t.data;n&&n.needMFACode?(e.form.needAuthCode=!0,e.form.model.authcode=null):e.handleLogin()})).finally((function(){setTimeout((function(){e.form.logging=!1}),300)})))}))},handleLogin:function(){var e=this;e.$refs.loginForm.validate((function(t){t&&(e.form.logging=!0,e.login(e.form.model).then((function(){e.$emit("success")})).finally((function(){setTimeout((function(){e.form.logging=!1}),300)})))}))}})},u=l,c=n(42177),d=(0,c.Z)(u,a,i,!1,null,null,null),m=d.exports},64121:function(){}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=e,function(){var e=[];n.O=function(t,a,i,r){if(!a){var o=1/0;for(c=0;c=r)&&Object.keys(n.O).every((function(e){return n.O[e](a[l])}))?a.splice(l--,1):(s=!1,r0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[a,i,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,a){return n.f[a](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+e+"."+{2:"5e1ce411",13:"85ee54e3",45:"10b63770",53:"8d74dbe6",122:"1c33b80f",132:"8100abd0",134:"a2a4f4c2",147:"bac8cfdb",149:"dc624f2a",154:"445ed0f8",164:"4ee274e1",170:"4863f6c6",174:"9edf110a",191:"37399613",192:"96a8d804",202:"abd08237",243:"69b84ae7",253:"ab92cea3",280:"e148abcc",290:"7e291a6c",348:"f64d6048",432:"f5f5f326",462:"ca187799",477:"71a87ac9",513:"f561d6de",565:"18fa9ba1",598:"79fca811",640:"2caea838",641:"afcb73b2",650:"5d1bd6d1",651:"96ced5d4",658:"9e9f7a8d",703:"e3ff64f6",757:"ccdd183e",769:"c89ef783",787:"a1fab2ea",845:"0b671891",892:"2539153f",903:"e243cddb",961:"bee92a57",967:"4edc5201"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+"."+{53:"216595d3",462:"828845cf",477:"f14bd7a4",565:"3db0de18",641:"40c88391",757:"216595d3",769:"722ed486"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="halo-admin:";n.l=function(a,i,r,o){if(e[a])e[a].push(i);else{var s,l;if(void 0!==r)for(var u=document.getElementsByTagName("script"),c=0;c1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object.assign({},e),i=[],o=[],a=function(){return Object.assign({},r)},s=function(){var e=[].concat(i);return i.length=0,e},c=function(){var e=[].concat(o);o.length=0,e.forEach((function(e){var t=e.type,n=e.data;l(t,n)}))},l=function(e,t,n){!n||document.hidden?(f[e]&&f[e](t),i.push({type:e,data:t})):o.push({type:e,data:t})},u=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},s="http://www.w3.org/2000/svg",c=["svg","path"],l=function(e){return c.includes(e)},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===typeof t&&(n=t,t=null);var r=l(e)?document.createElementNS(s,e):document.createElement(e);return t&&(l(e)?a(r,"class",t):r.className=t),i(n,(function(e,t){a(r,e,t)})),r},d=function(e){return function(t,n){"undefined"!==typeof n&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)}},h=function(e,t){return function(e,n){return"undefined"!==typeof n?t.splice(n,0,e):t.push(e),e}},f=function(e,t){return function(n){return t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n}},p=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document}(),m=function(){return p},v=m()?u("svg"):{},y="children"in v?function(e){return e.children.length}:function(e){return e.childNodes.length},g=function(e,t,n,r){var i=n[0]||e.left,o=n[1]||e.top,a=i+e.width,s=o+e.height*(r[1]||1),c={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:i,top:o,right:a,bottom:s}};return t.filter((function(e){return!e.isRectIgnored()})).map((function(e){return e.rect})).forEach((function(e){_(c.inner,Object.assign({},e.inner)),_(c.outer,Object.assign({},e.outer))})),b(c.inner),c.outer.bottom+=c.element.marginBottom,c.outer.right+=c.element.marginRight,b(c.outer),c},_=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},b=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},M=function(e){return"number"===typeof e},w=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,n=void 0===t?.5:t,r=e.damping,i=void 0===r?.75:r,a=e.mass,s=void 0===a?10:a,c=null,l=null,u=0,d=!1,h=function(e,t){if(!d){if(!M(c)||!M(l))return d=!0,void(u=0);var r=-(l-c)*n;u+=r/s,l+=u,u*=i,w(l,c,u)||t?(l=c,u=0,d=!0,p.onupdate(l),p.oncomplete(l)):p.onupdate(l)}},f=function(e){if(M(e)&&!M(l)&&(l=e),null===c&&(c=e,l=e),c=e,l===c||"undefined"===typeof c)return d=!0,u=0,p.onupdate(l),void p.oncomplete(l);d=!1},p=o({interpolate:h,target:{set:f,get:function(){return c}},resting:{get:function(){return d}},onupdate:function(e){},oncomplete:function(e){}});return p},L=function(e){return e<.5?2*e*e:(4-2*e)*e-1},C=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.duration,i=void 0===r?500:r,a=n.easing,s=void 0===a?L:a,c=n.delay,l=void 0===c?0:c,u=null,d=!0,h=!1,f=null,p=function(n,r){d||null===f||(null===u&&(u=n),n-u=i||r?(e=1,t=h?0:1,m.onupdate(t*f),m.oncomplete(t*f),d=!0):(t=e/i,m.onupdate((e>=0?s(h?1-t:t):0)*f))))},m=o({interpolate:p,target:{get:function(){return h?0:f},set:function(e){if(null===f)return f=e,m.onupdate(e),void m.oncomplete(e);e3&&void 0!==arguments[3]&&arguments[3];t=Array.isArray(t)?t:[t],t.forEach((function(t){e.forEach((function(e){var i=e,o=function(){return n[e]},a=function(t){return n[e]=t};"object"===typeof e&&(i=e.key,o=e.getter||o,a=e.setter||a),t[i]&&!r||(t[i]={get:o,set:a})}))}))},O=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,a=Object.assign({},n),s=[];return i(t,(function(e,t){var i=x(t);if(i){i.onupdate=function(t){n[e]=t},i.target=a[e];var c={key:e,setter:function(e){i.target!==e&&(i.target=e)},getter:function(){return n[e]}};S([c],[r,o],n,!0),s.push(i)}})),{write:function(e){var t=document.hidden,n=!0;return s.forEach((function(r){r.resting||(n=!1),r.interpolate(e,t)})),n},destroy:function(){}}},E=function(e){return function(t,n){e.addEventListener(t,n)}},z=function(e){return function(t,n){e.removeEventListener(t,n)}},Z=function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t=e.viewExternalAPI,n=(e.viewState,e.view),r=[],i=E(n.element),o=z(n.element);return t.on=function(e,t){r.push({type:e,fn:t}),i(e,t)},t.off=function(e,t){r.splice(r.findIndex((function(n){return n.type===e&&n.fn===t})),1),o(e,t)},{write:function(){return!0},destroy:function(){r.forEach((function(e){o(e.type,e.fn)}))}}},D=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewExternalAPI;S(t,r,n)},P=function(e){return null!=e},H={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},A=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,i=e.viewExternalAPI,o=e.view,a=Object.assign({},n),s={};S(t,[r,i],n);var c=function(){return[n["translateX"]||0,n["translateY"]||0]},l=function(){return[n["scaleX"]||0,n["scaleY"]||0]},u=function(){return o.rect?g(o.rect,o.childViews,c(),l()):null};return r.rect={get:u},i.rect={get:u},t.forEach((function(e){n[e]="undefined"===typeof a[e]?H[e]:a[e]})),{write:function(){if(I(s,n))return V(o.element,n),Object.assign(s,Object.assign({},n)),!0},destroy:function(){}}},I=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var n in t)if(t[n]!==e[n])return!0;return!1},V=function(e,t){var n=t.opacity,r=t.perspective,i=t.translateX,o=t.translateY,a=t.scaleX,s=t.scaleY,c=t.rotateX,l=t.rotateY,u=t.rotateZ,d=t.originX,h=t.originY,f=t.width,p=t.height,m="",v="";(P(d)||P(h))&&(v+="transform-origin: "+(d||0)+"px "+(h||0)+"px;"),P(r)&&(m+="perspective("+r+"px) "),(P(i)||P(o))&&(m+="translate3d("+(i||0)+"px, "+(o||0)+"px, 0) "),(P(a)||P(s))&&(m+="scale3d("+(P(a)?a:1)+", "+(P(s)?s:1)+", 1) "),P(u)&&(m+="rotateZ("+u+"rad) "),P(c)&&(m+="rotateX("+c+"rad) "),P(l)&&(m+="rotateY("+l+"rad) "),m.length&&(v+="transform:"+m+";"),P(n)&&(v+="opacity:"+n+";",0===n&&(v+="visibility:hidden;"),n<1&&(v+="pointer-events:none;")),P(p)&&(v+="height:"+p+"px;"),P(f)&&(v+="width:"+f+"px;");var y=e.elementCurrentStyle||"";v.length===y.length&&v===y||(e.style.cssText=v,e.elementCurrentStyle=v)},Y={styles:A,listeners:Z,animations:O,apis:D},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=null===t.offsetParent,e},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,n=void 0===t?"div":t,r=e.name,i=void 0===r?null:r,a=e.attributes,s=void 0===a?{}:a,c=e.read,l=void 0===c?function(){}:c,p=e.write,m=void 0===p?function(){}:p,v=e.create,_=void 0===v?function(){}:v,b=e.destroy,M=void 0===b?function(){}:b,w=e.filterFrameActionsForChild,k=void 0===w?function(e,t){return t}:w,L=e.didCreateView,C=void 0===L?function(){}:L,T=e.didWriteView,x=void 0===T?function(){}:T,S=e.ignoreRect,O=void 0!==S&&S,E=e.ignoreRectUpdate,z=void 0!==E&&E,Z=e.mixins,D=void 0===Z?[]:Z;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=u(n,"filepond--"+i,s),a=window.getComputedStyle(r,null),c=R(),p=null,v=!1,b=[],w=[],L={},T={},S=[m],E=[l],Z=[M],P=function(){return r},H=function(){return b.concat()},A=function(){return L},I=function(e){return function(t,n){return t(e,n)}},V=function(){return p||(p=g(c,b,[0,0],[1,1]),p)},j=function(){return a},N=function(){p=null,b.forEach((function(e){return e._read()}));var e=!(z&&c.width&&c.height);e&&R(c,r,a);var n={root:G,props:t,rect:c};E.forEach((function(e){return e(n)}))},F=function(e,n,r){var i=0===n.length;return S.forEach((function(o){var a=o({props:t,root:G,actions:n,timestamp:e,shouldOptimize:r});!1===a&&(i=!1)})),w.forEach((function(t){var n=t.write(e);!1===n&&(i=!1)})),b.filter((function(e){return!!e.element.parentNode})).forEach((function(t){var o=t._write(e,k(t,n),r);o||(i=!1)})),b.forEach((function(t,o){t.element.parentNode||(G.appendChild(t.element,o),t._read(),t._write(e,k(t,n),r),i=!1)})),v=i,x({props:t,root:G,actions:n,timestamp:e}),i},$=function(){w.forEach((function(e){return e.destroy()})),Z.forEach((function(e){e({root:G,props:t})})),b.forEach((function(e){return e._destroy()}))},W={element:{get:P},style:{get:j},childViews:{get:H}},B=Object.assign({},W,{rect:{get:V},ref:{get:A},is:function(e){return i===e},appendChild:d(r),createChildView:I(e),linkView:function(e){return b.push(e),e},unlinkView:function(e){b.splice(b.indexOf(e),1)},appendChildView:h(r,b),removeChildView:f(r,b),registerWriter:function(e){return S.push(e)},registerReader:function(e){return E.push(e)},registerDestroyer:function(e){return Z.push(e)},invalidateLayout:function(){return r.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),U={element:{get:P},childViews:{get:H},rect:{get:V},resting:{get:function(){return v}},isRectIgnored:function(){return O},_read:N,_write:F,_destroy:$},K=Object.assign({},W,{rect:{get:function(){return c}}});Object.keys(D).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var n=Y[e]({mixinConfig:D[e],viewProps:t,viewState:T,viewInternalAPI:B,viewExternalAPI:U,view:o(K)});n&&w.push(n)}));var G=o(B);_({root:G,props:t});var q=y(r);return b.forEach((function(e,t){G.appendChild(e.element,q+t)})),C(G),o(U)}},N=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r="__framePainter";if(window[r])return window[r].readers.push(e),void window[r].writers.push(t);window[r]={readers:[e],writers:[t]};var i=window[r],o=1e3/n,a=null,s=null,c=null,l=null,u=function(){document.hidden?(c=function(){return window.setTimeout((function(){return d(performance.now())}),o)},l=function(){return window.clearTimeout(s)}):(c=function(){return window.requestAnimationFrame(d)},l=function(){return window.cancelAnimationFrame(s)})};document.addEventListener("visibilitychange",(function(){l&&l(),u(),d(performance.now())}));var d=function e(t){s=c(e),a||(a=t);var n=t-a;n<=o||(a=t-n%o,i.readers.forEach((function(e){return e()})),i.writers.forEach((function(e){return e(t)})))};return u(),d(performance.now()),{pause:function(){l(s)}}},F=function(e,t){return function(n){var r=n.root,i=n.props,o=n.actions,a=void 0===o?[]:o,s=n.timestamp,c=n.shouldOptimize;a.filter((function(t){return e[t.type]})).forEach((function(t){return e[t.type]({root:r,props:i,action:t.data,timestamp:s,shouldOptimize:c})})),t&&t({root:r,props:i,actions:a,timestamp:s,shouldOptimize:c})}},$=function(e,t){return t.parentNode.insertBefore(e,t)},W=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},B=function(e){return Array.isArray(e)},U=function(e){return null==e},K=function(e){return e.trim()},G=function(e){return""+e},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return U(e)?[]:B(e)?e:G(e).split(t).map(K).filter((function(e){return e.length}))},J=function(e){return"boolean"===typeof e},X=function(e){return J(e)?e:"true"===e},Q=function(e){return"string"===typeof e},ee=function(e){return M(e)?e:Q(e)?G(e).replace(/[a-z]+/gi,""):0},te=function(e){return parseInt(ee(e),10)},ne=function(e){return parseFloat(ee(e))},re=function(e){return M(e)&&isFinite(e)&&Math.floor(e)===e},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(re(e))return e;var n=G(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),te(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),te(n)*t):te(n)},oe=function(e){return"function"===typeof e},ae=function(e){var t=self,n=e.split("."),r=null;while(r=n.shift())if(t=t[r],!t)return null;return t},se={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},ce=function(e){var t={};return t.url=Q(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},i(se,(function(n){t[n]=le(n,e[n],se[n],t.timeout,t.headers)})),t.process=e.process||Q(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},le=function(e,t,n,r,i){if(null===t)return null;if("function"===typeof t)return t;var o={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:i,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(Q(t))return o.url=t,o;if(Object.assign(o,t),Q(o.headers)){var a=o.headers.split(/:(.+)/);o.headers={header:a[0],value:a[1]}}return o.withCredentials=X(o.withCredentials),o},ue=function(e){return ce(e)},de=function(e){return null===e},he=function(e){return"object"===typeof e&&null!==e},fe=function(e){return he(e)&&Q(e.url)&&he(e.process)&&he(e.revert)&&he(e.restore)&&he(e.fetch)},pe=function(e){return B(e)?"array":de(e)?"null":re(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":fe(e)?"api":typeof e},me=function(e){return e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},ve={array:q,boolean:X,int:function(e){return"bytes"===pe(e)?ie(e):te(e)},number:ne,float:ne,bytes:ie,string:function(e){return oe(e)?e:G(e)},function:function(e){return ae(e)},serverapi:ue,object:function(e){try{return JSON.parse(me(e))}catch(t){return null}}},ye=function(e,t){return ve[t](e)},ge=function(e,t,n){if(e===t)return e;var r=pe(e);if(r!==n){var i=ye(e,n);if(r=pe(i),null===i)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=i}return e},_e=function(e,t){var n=e;return{enumerable:!0,get:function(){return n},set:function(r){n=ge(r,e,t)}}},be=function(e){var t={};return i(e,(function(n){var r=e[n];t[n]=_e(r[0],r[1])})),o(t)},Me=function(e){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:be(e)}},we=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.split(/(?=[A-Z])/).map((function(e){return e.toLowerCase()})).join(t)},ke=function(e,t){var n={};return i(t,(function(t){n[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch("SET_"+we(t,"_").toUpperCase(),{value:n})}}})),n},Le=function(e){return function(t,n,r){var o={};return i(e,(function(e){var n=we(e,"_").toUpperCase();o["SET_"+n]=function(i){try{r.options[e]=i.value}catch(o){}t("DID_SET_"+n,{value:r.options[e]})}})),o}},Ce=function(e){return function(t){var n={};return i(e,(function(e){n["GET_"+we(e,"_").toUpperCase()]=function(n){return t.options[e]}})),n}},Te={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},xe=function(){return Math.random().toString(36).substr(2,9)};function Se(e){this.wrapped=e}function Oe(e){var t,n;function r(e,r){return new Promise((function(o,a){var s={key:e,arg:r,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,i(e,r))}))}function i(t,n){try{var r=e[t](n),a=r.value,s=a instanceof Se;Promise.resolve(s?a.wrapped:a).then((function(e){s?i("next",e):o(r.done?"return":"normal",e)}),(function(e){i("throw",e)}))}catch(c){o("throw",c)}}function o(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1});break}t=t.next,t?i(t.key,t.arg):n=null}this._invoke=r,"function"!==typeof e.return&&(this.return=void 0)}function Ee(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function ze(e,t){if(null==e)return{};var n,r,i=Ee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}"function"===typeof Symbol&&Symbol.asyncIterator&&(Oe.prototype[Symbol.asyncIterator]=function(){return this}),Oe.prototype.next=function(e){return this._invoke("next",e)},Oe.prototype.throw=function(e){return this._invoke("throw",e)},Oe.prototype.return=function(e){return this._invoke("return",e)};function Ze(e){return De(e)||Pe(e)||He()}function De(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?t-1:0),i=1;i1?t-1:0),i=1;iBrowse',Ke.STRING],labelInvalidField:["Field contains invalid files",Ke.STRING],labelFileWaitingForSize:["Waiting for size",Ke.STRING],labelFileSizeNotAvailable:["Size not available",Ke.STRING],labelFileCountSingular:["file in list",Ke.STRING],labelFileCountPlural:["files in list",Ke.STRING],labelFileLoading:["Loading",Ke.STRING],labelFileAdded:["Added",Ke.STRING],labelFileLoadError:["Error during load",Ke.STRING],labelFileRemoved:["Removed",Ke.STRING],labelFileRemoveError:["Error during remove",Ke.STRING],labelFileProcessing:["Uploading",Ke.STRING],labelFileProcessingComplete:["Upload complete",Ke.STRING],labelFileProcessingAborted:["Upload cancelled",Ke.STRING],labelFileProcessingError:["Error during upload",Ke.STRING],labelFileProcessingRevertError:["Error during revert",Ke.STRING],labelTapToCancel:["tap to cancel",Ke.STRING],labelTapToRetry:["tap to retry",Ke.STRING],labelTapToUndo:["tap to undo",Ke.STRING],labelButtonRemoveItem:["Remove",Ke.STRING],labelButtonAbortItemLoad:["Abort",Ke.STRING],labelButtonRetryItemLoad:["Retry",Ke.STRING],labelButtonAbortItemProcessing:["Cancel",Ke.STRING],labelButtonUndoItemProcessing:["Undo",Ke.STRING],labelButtonRetryItemProcessing:["Retry",Ke.STRING],labelButtonProcessItem:["Upload",Ke.STRING],iconRemove:['',Ke.STRING],iconProcess:['',Ke.STRING],iconRetry:['',Ke.STRING],iconUndo:['',Ke.STRING],iconDone:['',Ke.STRING],oninit:[null,Ke.FUNCTION],onwarning:[null,Ke.FUNCTION],onerror:[null,Ke.FUNCTION],onactivatefile:[null,Ke.FUNCTION],oninitfile:[null,Ke.FUNCTION],onaddfilestart:[null,Ke.FUNCTION],onaddfileprogress:[null,Ke.FUNCTION],onaddfile:[null,Ke.FUNCTION],onprocessfilestart:[null,Ke.FUNCTION],onprocessfileprogress:[null,Ke.FUNCTION],onprocessfileabort:[null,Ke.FUNCTION],onprocessfilerevert:[null,Ke.FUNCTION],onprocessfile:[null,Ke.FUNCTION],onprocessfiles:[null,Ke.FUNCTION],onremovefile:[null,Ke.FUNCTION],onpreparefile:[null,Ke.FUNCTION],onupdatefiles:[null,Ke.FUNCTION],onreorderfiles:[null,Ke.FUNCTION],beforeDropFile:[null,Ke.FUNCTION],beforeAddFile:[null,Ke.FUNCTION],beforeRemoveFile:[null,Ke.FUNCTION],beforePrepareFile:[null,Ke.FUNCTION],stylePanelLayout:[null,Ke.STRING],stylePanelAspectRatio:[null,Ke.STRING],styleItemPanelAspectRatio:[null,Ke.STRING],styleButtonRemoveItemPosition:["left",Ke.STRING],styleButtonProcessItemPosition:["right",Ke.STRING],styleLoadIndicatorPosition:["right",Ke.STRING],styleProgressIndicatorPosition:["right",Ke.STRING],styleButtonRemoveItemAlign:[!1,Ke.BOOLEAN],files:[[],Ke.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],Ke.ARRAY]},rt=function(e,t){return U(t)?e[0]||null:re(t)?e[t]||null:("object"===typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},it=function(e){if(U(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},ot=function(e){return e.filter((function(e){return!e.archived}))},at={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},st=null,ct=function(){if(null===st)try{var e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));var t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,st=1===t.files.length}catch(n){st=!1}return st},lt=[Fe.LOAD_ERROR,Fe.PROCESSING_ERROR,Fe.PROCESSING_REVERT_ERROR],ut=[Fe.LOADING,Fe.PROCESSING,Fe.PROCESSING_QUEUED,Fe.INIT],dt=[Fe.PROCESSING_COMPLETE],ht=function(e){return lt.includes(e.status)},ft=function(e){return ut.includes(e.status)},pt=function(e){return dt.includes(e.status)},mt=function(e){return he(e.options.server)&&(he(e.options.server.process)||oe(e.options.server.process))},vt=function(e){return{GET_STATUS:function(){var t=ot(e.items),n=at.EMPTY,r=at.ERROR,i=at.BUSY,o=at.IDLE,a=at.READY;return 0===t.length?n:t.some(ht)?r:t.some(ft)?i:t.some(pt)?a:o},GET_ITEM:function(t){return rt(e.items,t)},GET_ACTIVE_ITEM:function(t){return rt(ot(e.items),t)},GET_ACTIVE_ITEMS:function(){return ot(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=rt(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=rt(e.items,t);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter((function(e){return/^style/.test(e)})).map((function(t){return{name:t,value:e.options[t]}}))},GET_PANEL_ASPECT_RATIO:function(){var t=/circle/.test(e.options.stylePanelLayout),n=t?1:it(e.options.stylePanelAspectRatio);return n},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return ot(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return ot(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&ct()&&!mt(e)},IS_ASYNC:function(){return mt(e)},GET_FILE_SIZE_LABELS:function(e){return{labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},yt=function(e){var t=ot(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},Tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+Ct(e.getMonth()+1,"00")+"-"+Ct(e.getDate(),"00")+"_"+Ct(e.getHours(),"00")+"-"+Ct(e.getMinutes(),"00")+"-"+Ct(e.getSeconds(),"00")},xt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i="string"===typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return i.lastModifiedDate=new Date,e._relativePath&&(i._relativePath=e._relativePath),Q(t)||(t=Tt()),t&&null===r&&kt(t)?i.name=t:(r=r||Lt(i.type),i.name=t+(r?"."+r:"")),i},St=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},Ot=function(e,t){var n=St();if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},Et=function(e,t){for(var n=new ArrayBuffer(e.length),r=new Uint8Array(n),i=0;i=200&&a.status<300?r.onload(a):r.onerror(a)},a.onerror=function(){return r.onerror(a)},a.onabort=function(){i=!0,r.onabort()},a.ontimeout=function(){return r.ontimeout(a)},a.open(n.method,t,!0),re(n.timeout)&&(a.timeout=n.timeout),Object.keys(n.headers).forEach((function(e){var t=unescape(encodeURIComponent(n.headers[e]));a.setRequestHeader(e,t)})),n.responseType&&(a.responseType=n.responseType),n.withCredentials&&(a.withCredentials=!0),a.send(e),r},Ft=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},$t=function(e){return function(t){e(Ft("error",0,"Timeout",t.getAllResponseHeaders()))}},Wt=function(e){return/\?/.test(e)},Bt=function(){for(var e="",t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"===typeof t)return t;if(!t||!Q(t.url))return null;var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,o,a,s,c,l){var u=Nt(i,Bt(e,t.url),Object.assign({},t,{responseType:"blob"}));return u.onload=function(e){var r=e.getAllResponseHeaders(),a=Yt(r).name||wt(i);o(Ft("load",e.status,"HEAD"===t.method?null:xt(n(e.response),a),r))},u.onerror=function(e){a(Ft("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},u.onheaders=function(e){l(Ft("headers",e.status,null,e.getAllResponseHeaders()))},u.ontimeout=$t(a),u.onprogress=s,u.onabort=c,u}},Kt={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},Gt=function(e,t,n,r,i,o,a,s,c,l,u){for(var d=[],h=u.chunkTransferId,f=u.chunkServer,p=u.chunkSize,m=u.chunkRetryDelays,v={serverId:h,aborted:!1},y=t.ondata||function(e){return e},g=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},_=t.onerror||function(e){return null},b=function(o){var s=new FormData;he(i)&&s.append(n,JSON.stringify(i));var c="function"===typeof t.headers?t.headers(r,i):Object.assign({},t.headers,{"Upload-Length":r.size}),l=Object.assign({},t,{headers:c}),u=Nt(y(s),Bt(e,t.url),l);u.onload=function(e){return o(g(e,l.method))},u.onerror=function(e){return a(Ft("error",e.status,_(e.response)||e.statusText,e.getAllResponseHeaders()))},u.ontimeout=$t(a)},M=function(n){var r=Bt(e,f.url,v.serverId),i="function"===typeof t.headers?t.headers(v.serverId):Object.assign({},t.headers),o={headers:i,method:"HEAD"},s=Nt(null,r,o);s.onload=function(e){return n(g(e,o.method))},s.onerror=function(e){return a(Ft("error",e.status,_(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=$t(a)},w=Math.floor(r.size/p),k=0;k<=w;k++){var L=k*p,C=r.slice(L,L+p,"application/offset+octet-stream");d[k]={index:k,size:C.size,offset:L,data:C,file:r,progress:0,retries:Ze(m),status:Kt.QUEUED,error:null,request:null,timeout:null}}var T=function(){return o(v.serverId)},x=function(e){return e.status===Kt.QUEUED||e.status===Kt.ERROR},S=function(t){if(!v.aborted)if(t=t||d.find(x),t){t.status=Kt.PROCESSING,t.progress=null;var n=f.ondata||function(e){return e},i=f.onerror||function(e){return null},o=Bt(e,f.url,v.serverId),s="function"===typeof f.headers?f.headers(t):Object.assign({},f.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":r.size,"Upload-Name":r.name}),l=t.request=Nt(n(t.data),o,Object.assign({},f,{headers:s}));l.onload=function(){t.status=Kt.COMPLETE,t.request=null,z()},l.onprogress=function(e,n,r){t.progress=e?n:null,E()},l.onerror=function(e){t.status=Kt.ERROR,t.request=null,t.error=i(e.response)||e.statusText,O(t)||a(Ft("error",e.status,i(e.response)||e.statusText,e.getAllResponseHeaders()))},l.ontimeout=function(e){t.status=Kt.ERROR,t.request=null,O(t)||$t(a)(e)},l.onabort=function(){t.status=Kt.QUEUED,t.request=null,c()}}else d.every((function(e){return e.status===Kt.COMPLETE}))&&T()},O=function(e){return 0!==e.retries.length&&(e.status=Kt.WAITING,clearTimeout(e.timeout),e.timeout=setTimeout((function(){S(e)}),e.retries.shift()),!0)},E=function(){var e=d.reduce((function(e,t){return null===e||null===t.progress?null:e+t.progress}),0);if(null===e)return s(!1,0,0);var t=d.reduce((function(e,t){return e+t.size}),0);s(!0,e,t)},z=function(){var e=d.filter((function(e){return e.status===Kt.PROCESSING})).length;e>=1||S()},Z=function(){d.forEach((function(e){clearTimeout(e.timeout),e.request&&e.request.abort()}))};return v.serverId?M((function(e){v.aborted||(d.filter((function(t){return t.offsetr.chunkSize,f=d&&(h||r.chunkForce);if(i instanceof Blob&&f)return Gt(e,t,n,i,o,a,s,c,l,u,r);var p=t.ondata||function(e){return e},m=t.onload||function(e){return e},v=t.onerror||function(e){return null},y="function"===typeof t.headers?t.headers(i,o)||{}:Object.assign({},t.headers),g=Object.assign({},t,{headers:y}),_=new FormData;he(o)&&_.append(n,JSON.stringify(o)),(i instanceof Blob?[{name:null,file:i}]:i).forEach((function(e){_.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)}));var b=Nt(p(_),Bt(e,t.url),g);return b.onload=function(e){a(Ft("load",e.status,m(e.response),e.getAllResponseHeaders()))},b.onerror=function(e){s(Ft("error",e.status,v(e.response)||e.statusText,e.getAllResponseHeaders()))},b.ontimeout=$t(s),b.onprogress=c,b.onabort=l,b}}},Jt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return"function"===typeof t?function(){for(var e=arguments.length,i=new Array(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"===typeof t)return t;if(!t||!Q(t.url))return function(e,t){return t()};var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,o,a){var s=Nt(i,e+t.url,t);return s.onload=function(e){o(Ft("load",e.status,n(e.response),e.getAllResponseHeaders()))},s.onerror=function(e){a(Ft("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=$t(a),s}},Qt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},en=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,i=null,o=Date.now(),a=function a(){var s=Date.now()-o,c=Qt(n,r);s+c>t&&(c=s+c-t);var l=s/t;l>=1||document.hidden?e(1):(e(l),i=setTimeout(a,c))};return t>0&&a(),{clear:function(){clearTimeout(i)}}},tn=function(e,t){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},r=t.allowMinimumUploadDuration,i=function(t,i){var o=function(){0!==n.duration&&null!==n.progress&&l.fire("progress",l.getProgress())},a=function(){n.complete=!0,l.fire("load-perceived",n.response.body)};l.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=en((function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,o(),n.response&&1===n.perceivedProgress&&!n.complete&&a()}),r?Qt(750,1500):0),n.request=e(t,i,(function(e){n.response=he(e)?e:{type:"load",code:200,body:""+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,l.fire("load",n.response.body),(!r||r&&1===n.perceivedProgress)&&a()}),(function(e){n.perceivedPerformanceUpdater.clear(),l.fire("error",he(e)?e:{type:"error",code:0,body:""+e})}),(function(e,t,r){n.duration=Date.now()-n.timestamp,n.progress=e?t/r:null,o()}),(function(){n.perceivedPerformanceUpdater.clear(),l.fire("abort",n.response?n.response.body:null)}),(function(e){l.fire("transfer",e)}))},o=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},a=function(){o(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},s=r?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},c=r?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},l=Object.assign({},Ve(),{process:i,abort:o,getProgress:s,getDuration:c,reset:a});return l},nn=function(e){return e.substr(0,e.lastIndexOf("."))||e},rn=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||Mt(e)?t[0]=e.name||Tt():Mt(e)?(t[1]=e.length,t[2]=zt(e)):Q(e)&&(t[0]=wt(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},on=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},an=function e(t){if(!he(t))return t;var n=B(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];n[r]=i&&he(i)?e(i):i}return n},sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=xe(),i={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?Fe.PROCESSING_COMPLETE:Fe.INIT,activeLoader:null,activeProcessor:null},a=null,s={},c=function(e){return i.status=e},l=function(e){if(!i.released&&!i.frozen){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1||e.indexOf("//")>-1)&&dn(location.href)!==dn(e)},fn=function(e){return function(){return oe(e)?e.apply(void 0,arguments):e}},pn=function(e){return!on(e.file)},mn=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout((function(){e("DID_UPDATE_ITEMS",{items:ot(t.items)})}),0)},vn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},r=n.query,i=n.success,o=void 0===i?function(){}:i,a=n.failure,s=void 0===a?function(){}:a,c=ze(n,["query","success","failure"]),l=rt(e.items,r);l?t(l,o,s,c||{}):s({error:Ft("error",0,"Item not found"),file:null})}},_n=function(e,t,n){return{ABORT_ALL:function(){ot(n.items).forEach((function(e){e.freeze(),e.abortLoad(),e.abortProcessing()}))},DID_SET_FILES:function(t){var r=t.value,i=void 0===r?[]:r,o=i.map((function(e){return{source:e.source?e.source:e,options:e.options}})),a=ot(n.items);a.forEach((function(t){o.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})})),a=ot(n.items),o.forEach((function(t,n){a.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:Te.NONE,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(r){var i=r.id,o=r.action,a=r.change;a.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var r=ln(n.items,i);if(t("IS_ASYNC")){r.origin===$e.LOCAL&&e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.source});var s=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:i})}),32)},c=function(e){r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(e?s:function(){}).catch((function(){}))},l=function(e){r.abortProcessing().then(e?s:function(){})};return r.status===Fe.PROCESSING_COMPLETE?c(n.options.instantUpload):r.status===Fe.PROCESSING?l(n.options.instantUpload):void(n.options.instantUpload&&s())}qe("SHOULD_PREPARE_OUTPUT",!1,{item:r,query:t,action:o,change:a}).then((function(n){var o=t("GET_BEFORE_PREPARE_FILE");o&&(n=o(r,n)),n&&e("REQUEST_PREPARE_OUTPUT",{query:i,item:r,success:function(t){e("DID_PREPARE_OUTPUT",{id:i,file:t})}},!0)}))}),0))},MOVE_ITEM:function(e){var t=e.query,r=e.index,i=rt(n.items,t);if(i){var o=n.items.indexOf(i);r=gt(r,0,n.items.length-1),o!==r&&n.items.splice(r,0,n.items.splice(o,1)[0])}},SORT:function(r){var i=r.compare;yn(n,i),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var r=n.items,i=n.index,o=n.interactionMethod,a=n.success,s=void 0===a?function(){}:a,c=n.failure,l=void 0===c?function(){}:c,u=i;if(-1===i||"undefined"===typeof i){var d=t("GET_ITEM_INSERT_LOCATION"),h=t("GET_TOTAL_ITEMS");u="before"===d?0:h}var f=t("GET_IGNORED_FILES"),p=function(e){return on(e)?!f.includes(e.name.toLowerCase()):!U(e)},m=r.filter(p),v=m.map((function(t){return new Promise((function(n,r){e("ADD_ITEM",{interactionMethod:o,source:t.source||t,success:n,failure:r,index:u++,options:t.options||{}})}))}));Promise.all(v).then(s).catch(l)},ADD_ITEM:function(r){var i=r.source,o=r.index,a=void 0===o?-1:o,s=r.interactionMethod,c=r.success,l=void 0===c?function(){}:c,u=r.failure,d=void 0===u?function(){}:u,h=r.options,f=void 0===h?{}:h;if(U(i))d({error:Ft("error",0,"No source"),file:null});else if(!on(i)||!n.options.ignoredFiles.includes(i.name.toLowerCase())){if(!yt(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var p=Ft("warning",0,"Max files");return e("DID_THROW_MAX_FILES",{source:i,error:p}),void d({error:p,file:null})}var m=ot(n.items)[0];if(m.status===Fe.PROCESSING_COMPLETE||m.status===Fe.PROCESSING_REVERT_ERROR){var v=t("GET_FORCE_REVERT");if(m.revert(Xt(n.options.server.url,n.options.server.revert),v).then((function(){v&&e("ADD_ITEM",{source:i,index:a,interactionMethod:s,success:l,failure:d,options:f})})).catch((function(){})),v)return}e("REMOVE_ITEM",{query:m.id})}var y="local"===f.type?$e.LOCAL:"limbo"===f.type?$e.LIMBO:$e.INPUT,g=sn(y,y===$e.INPUT?null:i,f.file);Object.keys(f.metadata||{}).forEach((function(e){g.setMetadata(e,f.metadata[e])})),Je("DID_CREATE_ITEM",g,{query:t,dispatch:e});var _=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(a="before"===_?-1:n.items.length),bt(n.items,g,a),oe(_)&&i&&yn(n,_);var b=g.id;g.on("init",(function(){e("DID_INIT_ITEM",{id:b})})),g.on("load-init",(function(){e("DID_START_ITEM_LOAD",{id:b})})),g.on("load-meta",(function(){e("DID_UPDATE_ITEM_META",{id:b})})),g.on("load-progress",(function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:b,progress:t})})),g.on("load-request-error",(function(t){var r=fn(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:b,error:t,status:{main:r,sub:t.code+" ("+t.body+")"}}),void d({error:t,file:je(g)});e("DID_THROW_ITEM_LOAD_ERROR",{id:b,error:t,status:{main:r,sub:n.options.labelTapToRetry}})})),g.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:b,error:t.status,status:t.status}),d({error:t.status,file:je(g)})})),g.on("load-abort",(function(){e("REMOVE_ITEM",{query:b})})),g.on("load-skip",(function(){e("COMPLETE_LOAD_ITEM",{query:b,item:g,data:{source:i,success:l}})})),g.on("load",(function(){var r=function(r){r?(g.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:b,change:t})})),qe("SHOULD_PREPARE_OUTPUT",!1,{item:g,query:t}).then((function(r){var o=t("GET_BEFORE_PREPARE_FILE");o&&(r=o(g,r));var a=function(){e("COMPLETE_LOAD_ITEM",{query:b,item:g,data:{source:i,success:l}}),mn(e,n)};r?e("REQUEST_PREPARE_OUTPUT",{query:b,item:g,success:function(t){e("DID_PREPARE_OUTPUT",{id:b,file:t}),a()}},!0):a()}))):e("REMOVE_ITEM",{query:b})};qe("DID_LOAD_ITEM",g,{query:t,dispatch:e}).then((function(){vn(t("GET_BEFORE_ADD_FILE"),je(g)).then(r)})).catch((function(t){if(!t||!t.error||!t.status)return r(!1);e("DID_THROW_ITEM_INVALID",{id:b,error:t.error,status:t.status})}))})),g.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:b})})),g.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:b,progress:t})})),g.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:b,error:t,status:{main:fn(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})})),g.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:b,error:t,status:{main:fn(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})})),g.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:b,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:b,value:t})})),g.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:b})})),g.on("process-revert",(function(){e("DID_REVERT_ITEM_PROCESSING",{id:b}),e("DID_DEFINE_VALUE",{id:b,value:null})})),e("DID_ADD_ITEM",{id:b,index:a,interactionMethod:s}),mn(e,n);var M=n.options.server||{},w=M.url,k=M.load,L=M.restore,C=M.fetch;g.load(i,Rt(y===$e.INPUT?Q(i)&&hn(i)&&C?Ut(w,C):un:y===$e.LIMBO?Ut(w,L):Ut(w,k)),(function(e,n,r){qe("LOAD_FILE",e,{query:t}).then(n).catch(r)}))}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,r=e.success,i=e.failure,o=void 0===i?function(){}:i,a={error:Ft("error",0,"Item not found"),file:null};if(n.archived)return o(a);qe("PREPARE_OUTPUT",n.file,{query:t,item:n}).then((function(e){qe("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then((function(e){if(n.archived)return o(a);r(e)}))}))},COMPLETE_LOAD_ITEM:function(r){var i=r.item,o=r.data,a=o.success,s=o.source,c=t("GET_ITEM_INSERT_LOCATION");if(oe(c)&&s&&yn(n,c),e("DID_LOAD_ITEM",{id:i.id,error:null,serverFileReference:i.origin===$e.INPUT?null:s}),a(je(i)),i.origin!==$e.LOCAL)return i.origin===$e.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:i.id,error:null,serverFileReference:s}),void e("DID_DEFINE_VALUE",{id:i.id,value:i.serverId||s})):void(t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:i.id}));e("DID_LOAD_LOCAL_ITEM",{id:i.id})},RETRY_ITEM_LOAD:gn(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:gn(n,(function(t,n,r){e("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(r){e("DID_PREPARE_OUTPUT",{id:t.id,file:r}),n({file:t,output:r})},failure:r},!0)})),REQUEST_ITEM_PROCESSING:gn(n,(function(r,i,o){var a=r.status===Fe.IDLE||r.status===Fe.PROCESSING_ERROR;if(a)r.status!==Fe.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:i,failure:o},!0));else{var s=function(){return e("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:o})},c=function(){return document.hidden?s():setTimeout(s,32)};r.status===Fe.PROCESSING_COMPLETE||r.status===Fe.PROCESSING_REVERT_ERROR?r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(c).catch((function(){})):r.status===Fe.PROCESSING&&r.abortProcessing().then(c)}})),PROCESS_ITEM:gn(n,(function(r,i,o){var a=t("GET_MAX_PARALLEL_UPLOADS"),s=t("GET_ITEMS_BY_STATUS",Fe.PROCESSING).length;if(s!==a){if(r.status!==Fe.PROCESSING){var c=function t(){var r=n.processingQueue.shift();if(r){var i=r.id,o=r.success,a=r.failure,s=rt(n.items,i);s&&!s.archived?e("PROCESS_ITEM",{query:i,success:o,failure:a},!0):t()}};r.onOnce("process-complete",(function(){i(je(r)),c();var o=n.options.server,a=n.options.instantUpload;if(a&&r.origin===$e.LOCAL&&oe(o.remove)){var s=function(){};r.origin=$e.LIMBO,n.options.server.remove(r.source,s,s)}var l=t("GET_ITEMS_BY_STATUS",Fe.PROCESSING_COMPLETE).length===n.items.length;l&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),r.onOnce("process-error",(function(e){o({error:e,file:je(r)}),c()}));var l=n.options;r.process(tn(Jt(l.server.url,l.server.process,l.name,{chunkTransferId:r.transferId,chunkServer:l.server.patch,chunkUploads:l.chunkUploads,chunkForce:l.chunkForce,chunkSize:l.chunkSize,chunkRetryDelays:l.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(function(n,i,o){qe("PREPARE_OUTPUT",n,{query:t,item:r}).then((function(t){e("DID_PREPARE_OUTPUT",{id:r.id,file:t}),i(t)})).catch(o)}))}}else n.processingQueue.push({id:r.id,success:i,failure:o})})),RETRY_ITEM_PROCESSING:gn(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:gn(n,(function(n){vn(t("GET_BEFORE_REMOVE_FILE"),je(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:gn(n,(function(e){e.release()})),REMOVE_ITEM:gn(n,(function(r,i,o,a){var s=function(){var t=r.id;ln(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:r}),mn(e,n),i(je(r))},c=n.options.server;r.origin===$e.LOCAL&&c&&oe(c.remove)&&!1!==a.remove?(e("DID_START_ITEM_REMOVE",{id:r.id}),c.remove(r.source,(function(){return s()}),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:Ft("error",0,t,null),status:{main:fn(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})}))):((a.revert&&r.origin!==$e.LOCAL&&null!==r.serverId||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),s())})),ABORT_ITEM_LOAD:gn(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:gn(n,(function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then((function(){var r=n.options.instantUpload;r&&e("REMOVE_ITEM",{query:t.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:gn(n,(function(r){if(n.options.instantUpload){var i=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:r})},o=t("GET_BEFORE_REMOVE_FILE");if(!o)return i(!0);var a=o(je(r));return null==a?i(!0):"boolean"===typeof a?i(a):void("function"===typeof a.then&&a.then(i))}e("REVERT_ITEM_PROCESSING",{query:r})})),REVERT_ITEM_PROCESSING:gn(n,(function(r){r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then((function(){var t=n.options.instantUpload||pn(r);t&&e("REMOVE_ITEM",{query:r.id})})).catch((function(){}))})),SET_OPTIONS:function(t){var n=t.options,r=Object.keys(n),i=bn.filter((function(e){return r.includes(e)})),o=[].concat(Ze(i),Ze(Object.keys(n).filter((function(e){return!i.includes(e)}))));o.forEach((function(t){e("SET_"+we(t,"_").toUpperCase(),{value:n[t]})}))}}},bn=["server"],Mn=function(e){return e},wn=function(e){return document.createElement(e)},kn=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},Ln=function(e,t,n,r){var i=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},Cn=function(e,t,n,r,i,o){var a=Ln(e,t,n,i),s=Ln(e,t,n,r);return["M",a.x,a.y,"A",n,n,0,o,0,s.x,s.y].join(" ")},Tn=function(e,t,n,r,i){var o=1;return i>r&&i-r<=.5&&(o=0),r>i&&r-i>=.5&&(o=0),Cn(e,t,n,360*Math.min(.9999,r),360*Math.min(.9999,i),o)},xn=function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var r=u("svg");t.ref.path=u("path",{"stroke-width":2,"stroke-linecap":"round"}),r.appendChild(t.ref.path),t.ref.svg=r,t.appendChild(r)},Sn=function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&&(t.element.dataset.align=n.align);var r=parseInt(a(t.ref.path,"stroke-width"),10),i=.5*t.rect.element.width,o=0,s=0;n.spin?(o=0,s=.5):(o=0,s=n.progress);var c=Tn(i,i,i-r,o,s);a(t.ref.path,"d",c),a(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},On=j({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:xn,write:Sn,mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),En=function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||"")+""+n.label+"",n.isDisabled=!1},zn=function(e){var t=e.root,n=e.props,r=n.isDisabled,i=t.query("GET_DISABLED")||0===n.opacity;i&&!r?(n.isDisabled=!0,a(t.element,"disabled","disabled")):!i&&r&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))},Zn=j({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:En,write:zn}),Dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.labelBytes,o=void 0===i?"bytes":i,a=r.labelKilobytes,s=void 0===a?"KB":a,c=r.labelMegabytes,l=void 0===c?"MB":c,u=r.labelGigabytes,d=void 0===u?"GB":u;e=Math.round(Math.abs(e));var h=n,f=n*n,p=n*n*n;return e16&&!r&&(r=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:o})}},s=function e(s){s.isPrimary&&(document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",e),n.dragOffset={x:s.pageX-i.x,y:s.pageY-i.y},t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:o}),r&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0))};document.addEventListener("pointermove",a),document.addEventListener("pointerup",s)}};t.element.addEventListener("pointerdown",r)}},Tr=F({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action;t.height=n.height}}),xr=F({DID_GRAB_ITEM:function(e){var t=e.root,n=e.props;n.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){var t=e.root;t.element.dataset.dragState="drag"},DID_DROP_ITEM:function(e){var t=e.root,n=e.props;n.dragOffset=null,n.dragOrigin=null,t.element.dataset.dragState="drop"}},(function(e){var t=e.root,n=e.actions,r=e.props,i=e.shouldOptimize;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");var o=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return Lr[e.type]}));o&&o.type!==r.currentState&&(r.currentState=o.type,t.element.dataset.filepondItemState=Lr[r.currentState]||"");var a=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");a?i||(t.height=t.rect.element.width*a):(Tr({root:t,actions:n,props:r}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),i&&(t.ref.panel.height=null),t.ref.panel.height=t.height})),Sr=j({create:Cr,write:xr,destroy:function(e){var t=e.root,n=e.props;t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:n.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:kr,scaleY:kr,translateX:wr,translateY:wr,opacity:{type:"tween",duration:150}}}}),Or=function(e,t){return Math.max(1,Math.floor((e+1)/t))},Er=function(e,t,n){if(n){var r=e.rect.element.width,i=t.length,o=null;if(0===i||n.topM){if(n.left3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(0===e.opacity&&Hr(e,t,n,r,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},Hr=function(e,t,n,r,i){e.interactionMethod===Te.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===Te.DROP?(e.translateX=null,e.translateX=t-20*r,e.translateY=null,e.translateY=n-10*i,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===Te.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Te.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},Ar=function(e){var t=e.root,n=e.action,r=n.id,i=t.childViews.find((function(e){return e.id===r}));i&&(i.scaleX=.9,i.scaleY=.9,i.opacity=0,i.markedForRemoval=!0)},Ir=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},Vr=function(e){return e.rect.element.width+.5*e.rect.element.marginLeft+.5*e.rect.element.marginRight},Yr=function(e){var t=e.root,n=e.action,r=n.id,i=n.dragState,o=t.query("GET_ITEM",{id:r}),a=t.childViews.find((function(e){return e.id===r})),s=t.childViews.length,c=i.getItemIndex(o);if(a){var l={x:a.dragOrigin.x+a.dragOffset.x+a.dragCenter.x,y:a.dragOrigin.y+a.dragOffset.y+a.dragCenter.y},u=Ir(a),d=Vr(a),h=Math.floor(t.rect.outer.width/d);h>s&&(h=s);var f=Math.floor(s/h+1);zr.setHeight=u*f,zr.setWidth=d*h;var p={y:Math.floor(l.y/u),x:Math.floor(l.x/d),getGridIndex:function(){return l.y>zr.getHeight||l.y<0||l.x>zr.getWidth||l.x<0?c:this.y*h+this.x},getColIndex:function(){for(var e=t.query("GET_ACTIVE_ITEMS"),n=t.childViews.filter((function(e){return e.rect.element.height})),r=e.map((function(e){return n.find((function(t){return t.id===e.id}))})),i=r.findIndex((function(e){return e===a})),o=Ir(a),s=r.length,c=s,u=0,d=0,h=0,f=0;ff){if(l.y1?p.getGridIndex():p.getColIndex();t.dispatch("MOVE_ITEM",{query:a,index:m});var v=i.getIndex();if(void 0===v||v!==m){if(i.setIndex(m),void 0===v)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:c,target:m})}}},Rr=F({DID_ADD_ITEM:Dr,DID_REMOVE_ITEM:Ar,DID_DRAG_ITEM:Yr}),jr=function(e){var t=e.root,n=e.props,r=e.actions,i=e.shouldOptimize;Rr({root:t,props:n,actions:r});var o=n.dragCoordinates,a=t.rect.element.width,s=t.childViews.filter((function(e){return e.rect.element.height})),c=t.query("GET_ACTIVE_ITEMS").map((function(e){return s.find((function(t){return t.id===e.id}))})).filter((function(e){return e})),l=o?Er(t,c,o):null,u=t.ref.addIndex||null;t.ref.addIndex=null;var d=0,h=0,f=0;if(0!==c.length){var p=c[0].rect.element,m=p.marginTop+p.marginBottom,v=p.marginLeft+p.marginRight,y=p.width+v,g=p.height+m,_=Or(a,y);if(1===_){var b=0,M=0;c.forEach((function(e,t){if(l){var n=t-l;M=-2===n?.25*-m:-1===n?.75*-m:0===n?.75*m:1===n?.25*m:0}i&&(e.translateX=null,e.translateY=null),e.markedForRemoval||Pr(e,0,b+M);var r=e.rect.element.height+m,o=r*(e.markedForRemoval?e.opacity:1);b+=o}))}else{var w=0,k=0;c.forEach((function(e,t){t===l&&(d=1),t===u&&(f+=1),e.markedForRemoval&&e.opacity<.5&&(h-=1);var n=t+f+d+h,r=n%_,o=Math.floor(n/_),a=r*y,s=o*g,c=Math.sign(a-w),p=Math.sign(s-k);w=a,k=s,e.markedForRemoval||(i&&(e.translateX=null,e.translateY=null),Pr(e,a,s,c,p))}))}}},Nr=function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},Fr=j({create:Zr,write:jr,tag:"ul",name:"list",didWriteView:function(e){var t=e.root;t.childViews.filter((function(e){return e.markedForRemoval&&0===e.opacity&&e.resting})).forEach((function(e){e._destroy(),t.removeChildView(e)}))},filterFrameActionsForChild:Nr,mixins:{apis:["dragCoordinates"]}}),$r=function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(Fr)),n.dragCoordinates=null,n.overflowing=!1},Wr=function(e){var t=e.root,n=e.props,r=e.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(n.dragCoordinates={left:r.position.scopeLeft-t.ref.list.rect.element.left,top:r.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},Br=function(e){var t=e.props;t.dragCoordinates=null},Ur=F({DID_DRAG:Wr,DID_END_DRAG:Br}),Kr=function(e){var t=e.root,n=e.props,r=e.actions;if(Ur({root:t,props:n,actions:r}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var i=Math.round(n.overflow);i!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=i)}},Gr=j({create:$r,write:Kr,name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),qr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";n?a(e,t,r):e.removeAttribute(t)},Jr=function(e){if(e&&""!==e.value){try{e.value=""}catch(i){}if(e.value){var t=wn("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},Xr=function(e){var t=e.root,n=e.props;t.element.id="filepond--browser-"+n.id,a(t.element,"name",t.query("GET_NAME")),a(t.element,"aria-controls","filepond--assistant-"+n.id),a(t.element,"aria-labelledby","filepond--drop-label-"+n.id),Qr({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),ei({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),ti({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),ni({root:t}),ri({root:t,action:{value:t.query("GET_REQUIRED")}}),ii({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=function(e){if(t.element.value){var r=Array.from(t.element.files).map((function(e){return e._relativePath=e.webkitRelativePath,e}));setTimeout((function(){n.onload(r),Jr(t.element)}),250)}},t.element.addEventListener("change",t.ref.handleChange)},Qr=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&qr(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},ei=function(e){var t=e.root,n=e.action;qr(t.element,"multiple",n.value)},ti=function(e){var t=e.root,n=e.action;qr(t.element,"webkitdirectory",n.value)},ni=function(e){var t=e.root,n=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE"),i=n||!r;qr(t.element,"disabled",i)},ri=function(e){var t=e.root,n=e.action;n.value?0===t.query("GET_TOTAL_ITEMS")&&qr(t.element,"required",!0):qr(t.element,"required",!1)},ii=function(e){var t=e.root,n=e.action;qr(t.element,"capture",!!n.value,!0===n.value?"":n.value)},oi=function(e){var t=e.root,n=t.element;if(t.query("GET_TOTAL_ITEMS")>0)qr(n,"required",!1),qr(n,"name",!1);else{qr(n,"name",!0,t.query("GET_NAME"));var r=t.query("GET_CHECK_VALIDITY");r&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&qr(n,"required",!0)}},ai=function(e){var t=e.root,n=t.query("GET_CHECK_VALIDITY");n&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},si=j({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:Xr,destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:F({DID_LOAD_ITEM:oi,DID_REMOVE_ITEM:oi,DID_THROW_ITEM_INVALID:ai,DID_SET_DISABLED:ni,DID_SET_ALLOW_BROWSE:ni,DID_SET_ALLOW_DIRECTORIES_ONLY:ti,DID_SET_ALLOW_MULTIPLE:ei,DID_SET_ACCEPTED_FILE_TYPES:Qr,DID_SET_CAPTURE_METHOD:ii,DID_SET_REQUIRED:ri})}),ci={ENTER:13,SPACE:32},li=function(e){var t=e.root,n=e.props,r=wn("label");a(r,"for","filepond--browser-"+n.id),a(r,"id","filepond--drop-label-"+n.id),a(r,"aria-hidden","true"),t.ref.handleKeyDown=function(e){var n=e.keyCode===ci.ENTER||e.keyCode===ci.SPACE;n&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){var n=e.target===r||r.contains(e.target);n||t.ref.label.click()},r.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),ui(r,n.caption),t.appendChild(r),t.ref.label=r},ui=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&a(n,"tabindex","0"),t},di=j({name:"drop-label",ignoreRect:!0,create:li,destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:F({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;ui(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),hi=j({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),fi=function(e){var t=e.root,n=.5*t.rect.element.width,r=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(hi,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:r}))},pi=function(e){var t=e.root,n=e.action;t.ref.blob?(t.ref.blob.translateX=n.position.scopeLeft,t.ref.blob.translateY=n.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):fi({root:t})},mi=function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)},vi=function(e){var t=e.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},yi=function(e){var t=e.root,n=e.props,r=e.actions;gi({root:t,props:n,actions:r});var i=t.ref.blob;0===r.length&&i&&0===i.opacity&&(t.removeChildView(i),t.ref.blob=null)},gi=F({DID_DRAG:pi,DID_DROP:vi,DID_END_DRAG:mi}),_i=j({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:yi}),bi=function(e,t){try{var n=new DataTransfer;t.forEach((function(e){e instanceof File?n.items.add(e):n.items.add(new File([e],e.name,{type:e.type}))})),e.files=n.files}catch(r){return!1}return!0},Mi=function(e){var t=e.root;return t.ref.fields={}},wi=function(e,t){return e.ref.fields[t]},ki=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},Li=function(e){var t=e.root;return ki(t)},Ci=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.origin===$e.LOCAL,o=!i&&t.query("SHOULD_UPDATE_FILE_INPUT"),a=wn("input");a.type=o?"file":"hidden",a.name=t.query("GET_NAME"),a.disabled=t.query("GET_DISABLED"),t.ref.fields[n.id]=a,ki(t)},Ti=function(e){var t=e.root,n=e.action,r=wi(t,n.id);if(r&&(null!==n.serverFileReference&&(r.value=n.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT"))){var i=t.query("GET_ITEM",n.id);bi(r,[i.file])}},xi=function(e){var t=e.root,n=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout((function(){var e=wi(t,n.id);e&&bi(e,[n.file])}),0)},Si=function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},Oi=function(e){var t=e.root,n=e.action,r=wi(t,n.id);r&&(r.parentNode&&r.parentNode.removeChild(r),delete t.ref.fields[n.id])},Ei=function(e){var t=e.root,n=e.action,r=wi(t,n.id);r&&(null===n.value?r.removeAttribute("value"):r.value=n.value,ki(t))},zi=F({DID_SET_DISABLED:Si,DID_ADD_ITEM:Ci,DID_LOAD_ITEM:Ti,DID_REMOVE_ITEM:Oi,DID_DEFINE_VALUE:Ei,DID_PREPARE_OUTPUT:xi,DID_REORDER_ITEMS:Li,DID_SORT_ITEMS:Li}),Zi=j({tag:"fieldset",name:"data",create:Mi,write:zi,ignoreRect:!0}),Di=function(e){return"getRootNode"in e?e.getRootNode():document},Pi=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],Hi=["css","csv","html","txt"],Ai={zip:"zip|compressed",epub:"application/epub+zip"},Ii=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Pi.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):Hi.includes(e)?"text/"+e:Ai[e]||""},Vi=function(e){return new Promise((function(t,n){var r=Ki(e);if(r.length&&!Yi(e))return t(r);Ri(e).then(t)}))},Yi=function(e){return!!e.files&&e.files.length>0},Ri=function(e){return new Promise((function(t,n){var r=(e.items?Array.from(e.items):[]).filter((function(e){return ji(e)})).map((function(e){return Ni(e)}));r.length?Promise.all(r).then((function(e){var n=[];e.forEach((function(e){n.push.apply(n,e)})),t(n.filter((function(e){return e})).map((function(e){return e._relativePath||(e._relativePath=e.webkitRelativePath),e})))})).catch(console.error):t(e.files?Array.from(e.files):[])}))},ji=function(e){if(Bi(e)){var t=Ui(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},Ni=function(e){return new Promise((function(t,n){Wi(e)?Fi(Ui(e)).then(t).catch(n):t([e.getAsFile()])}))},Fi=function(e){return new Promise((function(t,n){var r=[],i=0,o=0,a=function(){0===o&&0===i&&t(r)},s=function e(t){i++;var s=t.createReader(),c=function t(){s.readEntries((function(n){if(0===n.length)return i--,void a();n.forEach((function(t){t.isDirectory?e(t):(o++,t.file((function(e){var n=$i(e);t.fullPath&&(n._relativePath=t.fullPath),r.push(n),o--,a()})))})),t()}),n)};c()};s(e)}))},$i=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,r=Ii(kt(e.name));return r.length?(e=e.slice(0,e.size,r),e.name=n,e.lastModifiedDate=t,e):e},Wi=function(e){return Bi(e)&&(Ui(e)||{}).isDirectory},Bi=function(e){return"webkitGetAsEntry"in e},Ui=function(e){return e.webkitGetAsEntry()},Ki=function(e){var t=[];try{if(t=qi(e),t.length)return t;t=Gi(e)}catch(n){}return t},Gi=function(e){var t=e.getData("url");return"string"===typeof t&&t.length?[t]:[]},qi=function(e){var t=e.getData("text/html");if("string"===typeof t&&t.length){var n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},Ji=[],Xi=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},Qi=function(e,t,n){var r=eo(t),i={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return i.destroy=r.addListener(i),i},eo=function(e){var t=Ji.find((function(t){return t.element===e}));if(t)return t;var n=to(e);return Ji.push(n),n},to=function(e){var t=[],n={dragenter:ao,dragover:so,dragleave:lo,drop:co},r={};i(n,(function(n,i){r[n]=i(e,t),e.addEventListener(n,r[n],!1)}));var o={element:e,addListener:function(a){return t.push(a),function(){t.splice(t.indexOf(a),1),0===t.length&&(Ji.splice(Ji.indexOf(o),1),i(n,(function(t){e.removeEventListener(t,r[t],!1)})))}}};return o},no=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)},ro=function(e,t){var n=Di(t),r=no(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)},io=null,oo=function(e,t){try{e.dropEffect=t}catch(n){}},ao=function(e,t){return function(e){e.preventDefault(),io=e.target,t.forEach((function(t){var n=t.element,r=t.onenter;ro(e,n)&&(t.state="enter",r(Xi(e)))}))}},so=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Vi(n).then((function(r){var i=!1;t.some((function(t){var o=t.filterElement,a=t.element,s=t.onenter,c=t.onexit,l=t.ondrag,u=t.allowdrop;oo(n,"copy");var d=u(r);if(d)if(ro(e,a)){if(i=!0,null===t.state)return t.state="enter",void s(Xi(e));if(t.state="over",o&&!d)return void oo(n,"none");l(Xi(e))}else o&&!i&&oo(n,"none"),t.state&&(t.state=null,c(Xi(e)));else oo(n,"none")}))}))}},co=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Vi(n).then((function(n){t.forEach((function(t){var r=t.filterElement,i=t.element,o=t.ondrop,a=t.onexit,s=t.allowdrop;if(t.state=null,!r||ro(e,i))return s(n)?void o(Xi(e),n):a(Xi(e))}))}))}},lo=function(e,t){return function(e){io===e.target&&t.forEach((function(t){var n=t.onexit;t.state=null,n(Xi(e))}))}},uo=function(e,t,n){e.classList.add("filepond--hopper");var r=n.catchesDropsOnPage,i=n.requiresDropOnElement,o=n.filterItems,a=void 0===o?function(e){return e}:o,s=Qi(e,r?document.documentElement:e,i),c="",l="";s.allowdrop=function(e){return t(a(e))},s.ondrop=function(e,n){var r=a(n);t(r)?(l="drag-drop",u.onload(r,e)):u.ondragend(e)},s.ondrag=function(e){u.ondrag(e)},s.onenter=function(e){l="drag-over",u.ondragstart(e)},s.onexit=function(e){l="drag-exit",u.ondragend(e)};var u={updateHopperState:function(){c!==l&&(e.dataset.hopperState=l,c=l)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){s.destroy()}};return u},ho=!1,fo=[],po=function(e){var t=document.activeElement;if(t&&/textarea|input/i.test(t.nodeName)){var n=!1,r=t;while(r!==document.body){if(r.classList.contains("filepond--root")){n=!0;break}r=r.parentNode}if(!n)return}Vi(e.clipboardData).then((function(e){e.length&&fo.forEach((function(t){return t(e)}))}))},mo=function(e){fo.includes(e)||(fo.push(e),ho||(ho=!0,document.addEventListener("paste",po)))},vo=function(e){Ae(fo,fo.indexOf(e)),0===fo.length&&(document.removeEventListener("paste",po),ho=!1)},yo=function(){var e=function(e){t.onload(e)},t={destroy:function(){vo(e)},onload:function(){}};return mo(e),t},go=function(e){var t=e.root,n=e.props;t.element.id="filepond--assistant-"+n.id,a(t.element,"role","status"),a(t.element,"aria-live","polite"),a(t.element,"aria-relevant","additions")},_o=null,bo=null,Mo=[],wo=function(e,t){e.element.textContent=t},ko=function(e){e.element.textContent=""},Lo=function(e,t,n){var r=e.query("GET_TOTAL_ITEMS");wo(e,n+" "+t+", "+r+" "+(1===r?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(bo),bo=setTimeout((function(){ko(e)}),1500)},Co=function(e){return e.element.parentNode.contains(document.activeElement)},To=function(e){var t=e.root,n=e.action;if(Co(t)){t.element.textContent="";var r=t.query("GET_ITEM",n.id);Mo.push(r.filename),clearTimeout(_o),_o=setTimeout((function(){Lo(t,Mo.join(", "),t.query("GET_LABEL_FILE_ADDED")),Mo.length=0}),750)}},xo=function(e){var t=e.root,n=e.action;if(Co(t)){var r=n.item;Lo(t,r.filename,t.query("GET_LABEL_FILE_REMOVED"))}},So=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename,o=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");wo(t,i+" "+o)},Oo=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename,o=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");wo(t,i+" "+o)},Eo=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename;wo(t,n.status.main+" "+i+" "+n.status.sub)},zo=j({create:go,ignoreRect:!0,ignoreRectUpdate:!0,write:F({DID_LOAD_ITEM:To,DID_REMOVE_ITEM:xo,DID_COMPLETE_ITEM_PROCESSING:So,DID_ABORT_ITEM_PROCESSING:Oo,DID_REVERT_ITEM_PROCESSING:Oo,DID_THROW_ITEM_REMOVE_ERROR:Eo,DID_THROW_ITEM_LOAD_ERROR:Eo,DID_THROW_ITEM_INVALID:Eo,DID_THROW_ITEM_PROCESSING_ERROR:Eo}),tag:"span",name:"assistant"}),Zo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(new RegExp(t+".","g"),(function(e){return e.charAt(1).toUpperCase()}))},Do=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Date.now(),i=null;return function(){for(var o=arguments.length,a=new Array(o),s=0;s2*S)for(var O=x.length,E=O-10,z=0,Z=O;Z>=E;Z--)if(x[Z]===x[Z-2]&&z++,z>=S)return;l.scalable=!1,l.height=T;var D=T-b-(w-y.bottom)-(p?M:0);g.visual>D?c.overflow=D:c.overflow=null,t.height=T}else if(i.fixedHeight){l.scalable=!1;var P=i.fixedHeight-b-(w-y.bottom)-(p?M:0);g.visual>P?c.overflow=P:c.overflow=null}else if(i.cappedHeight){var H=k>=i.cappedHeight,A=Math.min(i.cappedHeight,k);l.scalable=!0,l.height=H?A:A-y.top-y.bottom;var I=A-b-(w-y.bottom)-(p?M:0);k>i.cappedHeight&&g.visual>I?c.overflow=I:c.overflow=null,t.height=Math.min(i.cappedHeight,L-y.top-y.bottom)}else{var V=h>0?y.top+y.bottom:0;l.scalable=!0,l.height=Math.max(_,k-V),t.height=Math.max(_,L-V)}t.ref.credits&&l.heightCurrent&&(t.ref.credits.style.transform="translateY("+l.heightCurrent+"px)")}},Vo=function(e){var t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},Yo=function(e){var t=0,n=0,r=e.ref.list,i=r.childViews[0],o=i.childViews.filter((function(e){return e.rect.element.height})),a=e.query("GET_ACTIVE_ITEMS").map((function(e){return o.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));if(0===a.length)return{visual:t,bounds:n};var s=i.rect.element.width,c=Er(i,a,r.dragCoordinates),l=a[0].rect.element,u=l.marginTop+l.marginBottom,d=l.marginLeft+l.marginRight,h=l.width+d,f=l.height+u,p="undefined"!==typeof c&&c>=0?1:0,m=a.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,v=a.length+p+m,y=Or(s,h);return 1===y?a.forEach((function(e){var r=e.rect.element.height+u;n+=r,t+=r*e.opacity})):(n=Math.ceil(v/y)*f,t=n),{visual:t,bounds:n}},Ro=function(e){var t=e.ref.measureHeight||null,n=parseInt(e.style.maxHeight,10)||null,r=0===t?null:t;return{cappedHeight:n,fixedHeight:r}},jo=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),i=e.query("GET_TOTAL_ITEMS"),o=e.query("GET_MAX_FILES"),a=t.length;if(!r&&a>1)return!0;o=r||n?o:1;var s=re(o);return!!(s&&i+a>o)&&(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Ft("warning",0,"Max files")}),!0)},No=function(e,t,n){var r=e.childViews[0];return Er(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},Fo=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){var i=uo(e.element,(function(t){var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0},r=e.query("GET_DROP_VALIDATION");return!r||t.every((function(t){return Je("ALLOW_HOPPER_ITEM",t,{query:e.query}).every((function(e){return!0===e}))&&n(t)}))}),{filterItems:function(t){var n=e.query("GET_IGNORED_FILES");return t.filter((function(e){return!on(e)||!n.includes(e.name.toLowerCase())}))},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});i.onload=function(t,n){var r=e.ref.list.childViews[0],i=r.childViews.filter((function(e){return e.rect.element.height})),o=e.query("GET_ACTIVE_ITEMS").map((function(e){return i.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));qe("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(jo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:No(e.ref.list,o,n),interactionMethod:Te.DROP})})),e.dispatch("DID_DROP",{position:n}),e.dispatch("DID_END_DRAG",{position:n})},i.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},i.ondrag=Do((function(t){e.dispatch("DID_DRAG",{position:t})})),i.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=i,e.ref.drip=e.appendChildView(e.createChildView(_i))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},$o=function(e,t){var n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),i=n&&!r;i&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(si,Object.assign({},t,{onload:function(t){qe("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(jo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:Te.BROWSE})}))}})),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},Wo=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=yo(),e.ref.paster.onload=function(t){qe("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(jo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:Te.PASTE})}))}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},Bo=F({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;$o(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;Fo(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;Wo(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;Fo(t),Wo(t),$o(t,n);var r=t.query("GET_DISABLED");r?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),Uo=j({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:Ao,write:Io,destroy:function(e){var t=e.root;t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy(),t.element.removeEventListener("touchmove",Ho),t.element.removeEventListener("gesturestart",Ho)},mixins:{styles:["height"]}}),Ko=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null,r=et(),i=n(Me(r),[vt,Ce(r)],[_n,Le(r)]);i.dispatch("SET_OPTIONS",{options:e});var a=function(){document.hidden||i.dispatch("KICK")};document.addEventListener("visibilitychange",a);var s=null,c=!1,l=!1,u=null,d=null,h=function(){c||(c=!0),clearTimeout(s),s=setTimeout((function(){c=!1,u=null,d=null,l&&(l=!1,i.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",h);var f=Uo(i,{id:xe()}),p=!1,m=!1,v={_read:function(){c&&(d=window.innerWidth,u||(u=d),l||d===u||(i.dispatch("DID_START_RESIZE"),l=!0)),m&&p&&(p=null===f.element.offsetParent),p||(f._read(),m=f.rect.element.hidden)},_write:function(e){var t=i.processActionQueue().filter((function(e){return!/^SET_/.test(e.type)}));p&&!t.length||(b(t),p=f._write(e,t,l),Ne(i.query("GET_ITEMS")),p&&i.processDispatchQueue())}},y=function(e){return function(t){var n={type:e};if(!t)return n;if(t.hasOwnProperty("error")&&(n.error=t.error?Object.assign({},t.error):null),t.status&&(n.status=Object.assign({},t.status)),t.file&&(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var r=t.item?t.item:i.query("GET_ITEM",t.id);n.file=r?je(r):null}return t.items&&(n.items=t.items.map(je)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},g={DID_DESTROY:y("destroy"),DID_INIT:y("init"),DID_THROW_MAX_FILES:y("warning"),DID_INIT_ITEM:y("initfile"),DID_START_ITEM_LOAD:y("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:y("addfileprogress"),DID_LOAD_ITEM:y("addfile"),DID_THROW_ITEM_INVALID:[y("error"),y("addfile")],DID_THROW_ITEM_LOAD_ERROR:[y("error"),y("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[y("error"),y("removefile")],DID_PREPARE_OUTPUT:y("preparefile"),DID_START_ITEM_PROCESSING:y("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:y("processfileprogress"),DID_ABORT_ITEM_PROCESSING:y("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:y("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:y("processfiles"),DID_REVERT_ITEM_PROCESSING:y("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[y("error"),y("processfile")],DID_REMOVE_ITEM:y("removefile"),DID_UPDATE_ITEMS:y("updatefiles"),DID_ACTIVATE_ITEM:y("activatefile"),DID_REORDER_ITEMS:y("reorderfiles")},_=function(e){var t=Object.assign({pond:P},e);delete t.type,f.element.dispatchEvent(new CustomEvent("FilePond:"+e.type,{detail:t,bubbles:!0,cancelable:!0,composed:!0}));var n=[];e.hasOwnProperty("error")&&n.push(e.error),e.hasOwnProperty("file")&&n.push(e.file);var r=["type","error","file"];Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(t){return n.push(e[t])})),P.fire.apply(P,[e.type].concat(n));var o=i.query("GET_ON"+e.type.toUpperCase());o&&o.apply(void 0,n)},b=function(e){e.length&&e.filter((function(e){return g[e.type]})).forEach((function(e){var t=g[e.type];(Array.isArray(t)?t:[t]).forEach((function(t){"DID_INIT_ITEM"===e.type?_(t(e.data)):setTimeout((function(){_(t(e.data))}),0)}))}))},w=function(e){return i.dispatch("SET_OPTIONS",{options:e})},k=function(e){return i.query("GET_ACTIVE_ITEM",e)},L=function(e){return new Promise((function(t,n){i.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){S([{source:e,options:t}],{index:t.index}).then((function(e){return n(e&&e[0])})).catch(r)}))},T=function(e){return e.file&&e.id},x=function(e,t){return"object"!==typeof e||T(e)||t||(t=e,e=void 0),i.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===i.query("GET_ACTIVE_ITEM",e)},S=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t={};i(et(),(function(e,n){t[e]=n[0]}));var n=Ko(Object.assign({},t,{},e));return n},qo=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},Jo=function(e){return Zo(e.replace(/^data-/,""))},Xo=function e(t,n){i(n,(function(n,r){i(t,(function(e,i){var o=new RegExp(n),a=o.test(e);if(a&&(delete t[e],!1!==r))if(Q(r))t[r]=i;else{var s=r.group;he(r)&&!t[s]&&(t[s]={}),t[s][qo(e.replace(o,""))]=i}})),r.mapping&&e(t[r.group],r.mapping)}))},Qo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];i(e.attributes,(function(t){n.push(e.attributes[t])}));var r=n.filter((function(e){return e.name})).reduce((function(t,n){var r=a(e,n.name);return t[Jo(n.name)]=r===n.name||r,t}),{});return Xo(r,t),r},ea=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};Je("SET_ATTRIBUTE_TO_OPTION_MAP",n);var r=Object.assign({},t),i=Qo("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(i).forEach((function(e){he(i[e])?(he(r[e])||(r[e]={}),Object.assign(r[e],i[e])):r[e]=i[e]})),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map((function(e){return{source:e.value,options:{type:e.dataset.type}}})));var o=Go(r);return e.files&&Array.from(e.files).forEach((function(e){o.addFile(e)})),o.replaceElement(e),o},ta=function(){return t(arguments.length<=0?void 0:arguments[0])?ea.apply(void 0,arguments):Go.apply(void 0,arguments)},na=["fire","_read","_write"],ra=function(e){var t={};return Ye(e,t,na),t},ia=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,n){return t[n]}))},oa=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var i=xe();r.onmessage=function(e){e.data.id===i&&t(e.data.message)},r.postMessage({id:i,message:e},n)},terminate:function(){r.terminate(),URL.revokeObjectURL(n)}}},aa=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e}))},sa=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},ca=function(e){return sa(e,e.name)},la=[],ua=function(e){if(!la.includes(e)){la.push(e);var t=e({addFilter:Xe,utils:{Type:Ke,forin:i,isString:Q,isFile:on,toNaturalFileSize:Dn,replaceInString:ia,getExtensionFromFilename:kt,getFilenameWithoutExtension:nn,guesstimateMimeType:Ii,getFileFromBlob:xt,getFilenameFromURL:wt,createRoute:F,createWorker:oa,createView:j,createItemAPI:je,loadImage:aa,copyFile:ca,renameFile:sa,createBlob:Ot,applyFilterChain:qe,text:kn,getNumericAspectRatioFromString:it},views:{fileActionButton:Zn}});Qe(t.options)}},da=function(){return"[object OperaMini]"===Object.prototype.toString.call(window.operamini)},ha=function(){return"Promise"in window},fa=function(){return"slice"in Blob.prototype},pa=function(){return"URL"in window&&"createObjectURL"in window.URL},ma=function(){return"visibilityState"in document},va=function(){return"performance"in window},ya=function(){return"supports"in(window.CSS||{})},ga=function(){return/MSIE|Trident/.test(window.navigator.userAgent)},_a=function(){var e=m()&&!da()&&ma()&&ha()&&fa()&&pa()&&va()&&(ya()||ga());return function(){return e}}(),ba={apps:[]},Ma="filepond",wa=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=wa,e.destroy=wa,e.parse=wa,e.find=wa,e.registerPlugin=wa,e.getOptions=wa,e.setOptions=wa,_a()){N((function(){ba.apps.forEach((function(e){return e._read()}))}),(function(e){ba.apps.forEach((function(t){return t._write(e)}))}));var ka=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:_a,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener("DOMContentLoaded",t)};"loading"!==document.readyState?setTimeout((function(){return ka()}),0):document.addEventListener("DOMContentLoaded",ka);var La=function(){return i(et(),(function(t,n){e.OptionTypes[t]=n[1]}))};e.Status=Object.assign({},at),e.FileOrigin=Object.assign({},$e),e.FileStatus=Object.assign({},Fe),e.OptionTypes={},La(),e.create=function(){var t=ta.apply(void 0,arguments);return t.on("destroy",e.destroy),ba.apps.push(t),ra(t)},e.destroy=function(e){var t=ba.apps.findIndex((function(t){return t.isAttachedTo(e)}));if(t>=0){var n=ba.apps.splice(t,1)[0];return n.restoreElement(),!0}return!1},e.parse=function(t){var n=Array.from(t.querySelectorAll("."+Ma)),r=n.filter((function(e){return!ba.apps.find((function(t){return t.isAttachedTo(e)}))}));return r.map((function(t){return e.create(t)}))},e.find=function(e){var t=ba.apps.find((function(t){return t.isAttachedTo(e)}));return t?ra(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');var n=T(e),r=n.length>0?n[0]:"",o=x("%"+r+"%",t),s=o.name,l=o.value,u=!1,d=o.alias;d&&(r=d[0],M(n,b([0,1],d)));for(var h=1,f=!0;h=n.length){var g=c(l,p);f=!!g,l=f&&"get"in g&&!("originalValue"in g.get)?g.get:l[p]}else f=_(l,p),l=l[p];f&&!u&&(m[s]=l)}}return l}},84906:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(25251);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},25251:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},68416:function(e,t,n){"use strict";var r=n(3569);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},32685:function(e){"use strict";e.exports=r,e.exports.isMobile=r,e.exports["default"]=r;var t=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function r(e){e||(e={});var r=e.ua;if(r||"undefined"===typeof navigator||(r=navigator.userAgent),r&&r.headers&&"string"===typeof r.headers["user-agent"]&&(r=r.headers["user-agent"]),"string"!==typeof r)return!1;var i=e.tablet?n.test(r):t.test(r);return!i&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==r.indexOf("Macintosh")&&-1!==r.indexOf("Safari")&&(i=!0),i}},61329:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g&&n.g,(function(){"use strict";var e="3.7.2",t=e,n="function"===typeof atob,r="function"===typeof btoa,i="function"===typeof Buffer,o="function"===typeof TextDecoder?new TextDecoder:void 0,a="function"===typeof TextEncoder?new TextEncoder:void 0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=Array.prototype.slice.call(s),l=function(e){var t={};return e.forEach((function(e,n){return t[e]=n})),t}(c),u=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,d=String.fromCharCode.bind(String),h="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},f=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},p=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},m=function(e){for(var t,n,r,i,o="",a=e.length%3,s=0;s255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},v=r?function(e){return btoa(e)}:i?function(e){return Buffer.from(e,"binary").toString("base64")}:m,y=i?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,i=e.length;r>>6)+d(128|63&t):d(224|t>>>12&15)+d(128|t>>>6&63)+d(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return d(240|t>>>18&7)+d(128|t>>>12&63)+d(128|t>>>6&63)+d(128|63&t)},b=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,M=function(e){return e.replace(b,_)},w=i?function(e){return Buffer.from(e,"utf8").toString("base64")}:a?function(e){return y(a.encode(e))}:function(e){return v(M(e))},k=function(e,t){return void 0===t&&(t=!1),t?f(w(e)):w(e)},L=function(e){return k(e,!0)},C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,T=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return d(55296+(n>>>10))+d(56320+(1023&n));case 3:return d((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return d((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},x=function(e){return e.replace(C,T)},S=function(e){if(e=e.replace(/\s+/g,""),!u.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,i="",o=0;o>16&255):64===r?d(t>>16&255,t>>8&255):d(t>>16&255,t>>8&255,255&t);return i},O=n?function(e){return atob(p(e))}:i?function(e){return Buffer.from(e,"base64").toString("binary")}:S,E=i?function(e){return h(Buffer.from(e,"base64"))}:function(e){return h(O(e),(function(e){return e.charCodeAt(0)}))},z=function(e){return E(D(e))},Z=i?function(e){return Buffer.from(e,"base64").toString("utf8")}:o?function(e){return o.decode(E(e))}:function(e){return x(O(e))},D=function(e){return p(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},P=function(e){return Z(D(e))},H=function(e){if("string"!==typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},A=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},I=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,A(t))};e("fromBase64",(function(){return P(this)})),e("toBase64",(function(e){return k(this,e)})),e("toBase64URI",(function(){return k(this,!0)})),e("toBase64URL",(function(){return k(this,!0)})),e("toUint8Array",(function(){return z(this)}))},V=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,A(t))};e("toBase64",(function(e){return g(this,e)})),e("toBase64URI",(function(){return g(this,!0)})),e("toBase64URL",(function(){return g(this,!0)}))},Y=function(){I(),V()},R={version:e,VERSION:t,atob:O,atobPolyfill:S,btoa:v,btoaPolyfill:m,fromBase64:P,toBase64:k,encode:k,encodeURI:L,encodeURL:L,utob:M,btou:x,decode:P,isValid:H,fromUint8Array:g,toUint8Array:z,extendString:I,extendUint8Array:V,extendBuiltins:Y,Base64:{}};return Object.keys(R).forEach((function(e){return R.Base64[e]=R[e]})),R}))},87269:function(e,t,n){var r=n(47758),i=n(29165),o=r(i,"DataView");e.exports=o},88987:function(e,t,n){var r=n(71519),i=n(82999),o=n(76111),a=n(50506),s=n(80845);function c(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t0&&n(u)?t>1?o(u,t-1,n,a,s):r(s,u):a||(s[s.length]=u)}return s}e.exports=o},91030:function(e,t,n){var r=n(29),i=r();e.exports=i},97499:function(e,t,n){var r=n(60399),i=n(77817);function o(e,t){t=r(t,e);var n=0,o=t.length;while(null!=e&&ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var o=Array(i);while(++r1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);while(++r-1?s[c?t[l]:l]:void 0}}e.exports=a},59211:function(e,t,n){var r=n(69143);function i(e){return r(e)?void 0:e}e.exports=i},34082:function(e,t,n){var r=n(47758),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},22684:function(e,t,n){var r=n(78188),i=n(84330),o=n(29880),a=1,s=2;function c(e,t,n,c,l,u){var d=n&a,h=e.length,f=t.length;if(h!=f&&!(d&&f>h))return!1;var p=u.get(e),m=u.get(t);if(p&&m)return p==t&&m==e;var v=-1,y=!0,g=n&s?new r:void 0;u.set(e,t),u.set(t,e);while(++v-1&&e%1==0&&e-1}e.exports=i},3564:function(e,t,n){var r=n(62718);function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},7140:function(e,t,n){var r=n(88987),i=n(175),o=n(35922);function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}e.exports=a},56504:function(e,t,n){var r=n(67707);function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},88833:function(e,t,n){var r=n(67707);function i(e){return r(this,e).get(e)}e.exports=i},80953:function(e,t,n){var r=n(67707);function i(e){return r(this,e).has(e)}e.exports=i},70724:function(e,t,n){var r=n(67707);function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},7523:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=t},78857:function(e){function t(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=t},45171:function(e,t,n){var r=n(34736),i=500;function o(e){var t=r(e,(function(e){return n.size===i&&n.clear(),e})),n=t.cache;return t}e.exports=o},37722:function(e,t,n){var r=n(47758),i=r(Object,"create");e.exports=i},14457:function(e,t,n){var r=n(75542),i=r(Object.keys,Object);e.exports=i},10814:function(e){function t(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=t},8478:function(e,t,n){e=n.nmd(e);var r=n(96476),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,c=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=c},57058:function(e){var t=Object.prototype,n=t.toString;function r(e){return n.call(e)}e.exports=r},75542:function(e){function t(e,t){return function(n){return e(t(n))}}e.exports=t},20323:function(e,t,n){var r=n(93501),i=Math.max;function o(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);while(++a0){if(++i>=t)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}e.exports=i},40551:function(e,t,n){var r=n(175);function i(){this.__data__=new r,this.size=0}e.exports=i},4090:function(e){function t(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=t},47694:function(e){function t(e){return this.__data__.get(e)}e.exports=t},86220:function(e){function t(e){return this.__data__.has(e)}e.exports=t},68958:function(e,t,n){var r=n(175),i=n(35922),o=n(9440),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length=t||n<0||y&&r>=d}function k(){var e=i();if(w(e))return L(e);f=setTimeout(k,M(e))}function L(e){return f=void 0,g&&l?_(e):(l=u=void 0,h)}function C(){void 0!==f&&clearTimeout(f),m=0,l=p=u=f=void 0}function T(){return void 0===f?h:L(i())}function x(){var e=i(),n=w(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return b(p);if(y)return clearTimeout(f),f=setTimeout(k,t),_(p)}return void 0===f&&(f=setTimeout(k,t)),h}return t=o(t)||0,r(n)&&(v=!!n.leading,y="maxWait"in n,d=y?s(o(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),x.cancel=C,x.flush=T,x}e.exports=l},42448:function(e){function t(e,t){return e===t||e!==e&&t!==t}e.exports=t},33170:function(e,t,n){var r=n(34715),i=n(33886),o=r(i);e.exports=o},33886:function(e,t,n){var r=n(92504),i=n(5673),o=n(20426),a=Math.max;function s(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:o(n);return c<0&&(c=a(s+c,0)),r(e,i(t,3),c)}e.exports=s},22612:function(e,t,n){var r=n(98768);function i(e){var t=null==e?0:e.length;return t?r(e,1):[]}e.exports=i},65439:function(e,t,n){var r=n(97499);function i(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}e.exports=i},56611:function(e,t,n){var r=n(45435),i=n(18554);function o(e,t){return null!=e&&i(e,t,r)}e.exports=o},28281:function(e,t,n){var r=n(71664),i=n(18554);function o(e,t){return null!=e&&i(e,t,r)}e.exports=o},48148:function(e){function t(e){return e}e.exports=t},30353:function(e,t,n){var r=n(84742),i=n(55073),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},24669:function(e){var t=Array.isArray;e.exports=t},47428:function(e,t,n){var r=n(92042),i=n(17216);function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},57348:function(e,t,n){var r=n(47428),i=n(55073);function o(e){return i(e)&&r(e)}e.exports=o},61563:function(e,t,n){e=n.nmd(e);var r=n(29165),i=n(84193),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o,c=s?r.Buffer:void 0,l=c?c.isBuffer:void 0,u=l||i;e.exports=u},92042:function(e,t,n){var r=n(80732),i=n(56813),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";function l(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==c}e.exports=l},17216:function(e){var t=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}e.exports=n},32924:function(e,t,n){var r=n(64033),i=n(58792),o=n(8478),a=o&&o.isMap,s=a?i(a):r;e.exports=s},46207:function(e){function t(e){return null==e}e.exports=t},56813:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},55073:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},69143:function(e,t,n){var r=n(80732),i=n(11389),o=n(55073),a="[object Object]",s=Function.prototype,c=Object.prototype,l=s.toString,u=c.hasOwnProperty,d=l.call(Object);function h(e){if(!o(e)||r(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}e.exports=h},97076:function(e,t,n){var r=n(37203),i=n(58792),o=n(8478),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},45380:function(e,t,n){var r=n(28264),i=n(58792),o=n(8478),a=o&&o.isSet,s=a?i(a):r;e.exports=s},16764:function(e,t,n){var r=n(80732),i=n(55073),o="[object Symbol]";function a(e){return"symbol"==typeof e||i(e)&&r(e)==o}e.exports=a},73806:function(e,t,n){var r=n(22882),i=n(58792),o=n(8478),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},50579:function(e,t,n){var r=n(79809),i=n(87473),o=n(47428);function a(e){return o(e)?r(e):i(e)}e.exports=a},37390:function(e,t,n){var r=n(79809),i=n(52506),o=n(47428);function a(e){return o(e)?r(e,!0):i(e)}e.exports=a},25674:function(e){function t(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=t},34736:function(e,t,n){var r=n(9440),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},67929:function(e,t,n){var r=n(97254),i=n(77991),o=i((function(e,t,n){r(e,t,n)}));e.exports=o},76668:function(e,t,n){var r=n(29165),i=function(){return r.Date.now()};e.exports=i},59245:function(e,t,n){var r=n(75697),i=n(67410),o=n(42933),a=n(60399),s=n(92434),c=n(59211),l=n(54874),u=n(21699),d=1,h=2,f=4,p=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),s(e,u(e),n),l&&(n=i(n,d|h|f,c));var p=t.length;while(p--)o(n,t[p]);return n}));e.exports=p},51798:function(e,t,n){var r=n(17498),i=n(71e3),o=n(2610),a=n(77817);function s(e){return o(e)?r(a(e)):i(e)}e.exports=s},35609:function(e,t,n){var r=n(85713);function i(e,t,n){return null==e?e:r(e,t,n)}e.exports=i},68036:function(e){function t(){return[]}e.exports=t},84193:function(e){function t(){return!1}e.exports=t},70986:function(e,t,n){var r=n(12448),i=1/0,o=17976931348623157e292;function a(e){if(!e)return 0===e?e:0;if(e=r(e),e===i||e===-i){var t=e<0?-1:1;return t*o}return e===e?e:0}e.exports=a},20426:function(e,t,n){var r=n(70986);function i(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}e.exports=i},12448:function(e,t,n){var r=n(33124),i=n(56813),o=n(16764),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;function d(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?a:+e}e.exports=d},85111:function(e,t,n){var r=n(92434),i=n(37390);function o(e){return r(e,i(e))}e.exports=o},8389:function(e,t,n){var r=n(73150);function i(e){return null==e?"":r(e)}e.exports=i},30534:function(){},92824:function(e,t,n){(function(e,t){t(n(15555))})(0,(function(e){"use strict"; +(function(e,n){n(t)})(0,(function(e){"use strict";var t=function(e){return e instanceof HTMLElement},n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object.assign({},e),i=[],o=[],a=function(){return Object.assign({},r)},s=function(){var e=[].concat(i);return i.length=0,e},c=function(){var e=[].concat(o);o.length=0,e.forEach((function(e){var t=e.type,n=e.data;l(t,n)}))},l=function(e,t,n){!n||document.hidden?(f[e]&&f[e](t),i.push({type:e,data:t})):o.push({type:e,data:t})},u=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},s="http://www.w3.org/2000/svg",c=["svg","path"],l=function(e){return c.includes(e)},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===typeof t&&(n=t,t=null);var r=l(e)?document.createElementNS(s,e):document.createElement(e);return t&&(l(e)?a(r,"class",t):r.className=t),i(n,(function(e,t){a(r,e,t)})),r},d=function(e){return function(t,n){"undefined"!==typeof n&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)}},h=function(e,t){return function(e,n){return"undefined"!==typeof n?t.splice(n,0,e):t.push(e),e}},f=function(e,t){return function(n){return t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n}},p=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document}(),m=function(){return p},v=m()?u("svg"):{},y="children"in v?function(e){return e.children.length}:function(e){return e.childNodes.length},g=function(e,t,n,r){var i=n[0]||e.left,o=n[1]||e.top,a=i+e.width,s=o+e.height*(r[1]||1),c={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:i,top:o,right:a,bottom:s}};return t.filter((function(e){return!e.isRectIgnored()})).map((function(e){return e.rect})).forEach((function(e){_(c.inner,Object.assign({},e.inner)),_(c.outer,Object.assign({},e.outer))})),b(c.inner),c.outer.bottom+=c.element.marginBottom,c.outer.right+=c.element.marginRight,b(c.outer),c},_=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},b=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},M=function(e){return"number"===typeof e},w=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,n=void 0===t?.5:t,r=e.damping,i=void 0===r?.75:r,a=e.mass,s=void 0===a?10:a,c=null,l=null,u=0,d=!1,h=function(e,t){if(!d){if(!M(c)||!M(l))return d=!0,void(u=0);var r=-(l-c)*n;u+=r/s,l+=u,u*=i,w(l,c,u)||t?(l=c,u=0,d=!0,p.onupdate(l),p.oncomplete(l)):p.onupdate(l)}},f=function(e){if(M(e)&&!M(l)&&(l=e),null===c&&(c=e,l=e),c=e,l===c||"undefined"===typeof c)return d=!0,u=0,p.onupdate(l),void p.oncomplete(l);d=!1},p=o({interpolate:h,target:{set:f,get:function(){return c}},resting:{get:function(){return d}},onupdate:function(e){},oncomplete:function(e){}});return p},L=function(e){return e<.5?2*e*e:(4-2*e)*e-1},C=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.duration,i=void 0===r?500:r,a=n.easing,s=void 0===a?L:a,c=n.delay,l=void 0===c?0:c,u=null,d=!0,h=!1,f=null,p=function(n,r){d||null===f||(null===u&&(u=n),n-u=i||r?(e=1,t=h?0:1,m.onupdate(t*f),m.oncomplete(t*f),d=!0):(t=e/i,m.onupdate((e>=0?s(h?1-t:t):0)*f))))},m=o({interpolate:p,target:{get:function(){return h?0:f},set:function(e){if(null===f)return f=e,m.onupdate(e),void m.oncomplete(e);e3&&void 0!==arguments[3]&&arguments[3];t=Array.isArray(t)?t:[t],t.forEach((function(t){e.forEach((function(e){var i=e,o=function(){return n[e]},a=function(t){return n[e]=t};"object"===typeof e&&(i=e.key,o=e.getter||o,a=e.setter||a),t[i]&&!r||(t[i]={get:o,set:a})}))}))},O=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,a=Object.assign({},n),s=[];return i(t,(function(e,t){var i=x(t);if(i){i.onupdate=function(t){n[e]=t},i.target=a[e];var c={key:e,setter:function(e){i.target!==e&&(i.target=e)},getter:function(){return n[e]}};S([c],[r,o],n,!0),s.push(i)}})),{write:function(e){var t=document.hidden,n=!0;return s.forEach((function(r){r.resting||(n=!1),r.interpolate(e,t)})),n},destroy:function(){}}},E=function(e){return function(t,n){e.addEventListener(t,n)}},z=function(e){return function(t,n){e.removeEventListener(t,n)}},Z=function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t=e.viewExternalAPI,n=(e.viewState,e.view),r=[],i=E(n.element),o=z(n.element);return t.on=function(e,t){r.push({type:e,fn:t}),i(e,t)},t.off=function(e,t){r.splice(r.findIndex((function(n){return n.type===e&&n.fn===t})),1),o(e,t)},{write:function(){return!0},destroy:function(){r.forEach((function(e){o(e.type,e.fn)}))}}},D=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewExternalAPI;S(t,r,n)},P=function(e){return null!=e},H={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},A=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,i=e.viewExternalAPI,o=e.view,a=Object.assign({},n),s={};S(t,[r,i],n);var c=function(){return[n["translateX"]||0,n["translateY"]||0]},l=function(){return[n["scaleX"]||0,n["scaleY"]||0]},u=function(){return o.rect?g(o.rect,o.childViews,c(),l()):null};return r.rect={get:u},i.rect={get:u},t.forEach((function(e){n[e]="undefined"===typeof a[e]?H[e]:a[e]})),{write:function(){if(I(s,n))return V(o.element,n),Object.assign(s,Object.assign({},n)),!0},destroy:function(){}}},I=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var n in t)if(t[n]!==e[n])return!0;return!1},V=function(e,t){var n=t.opacity,r=t.perspective,i=t.translateX,o=t.translateY,a=t.scaleX,s=t.scaleY,c=t.rotateX,l=t.rotateY,u=t.rotateZ,d=t.originX,h=t.originY,f=t.width,p=t.height,m="",v="";(P(d)||P(h))&&(v+="transform-origin: "+(d||0)+"px "+(h||0)+"px;"),P(r)&&(m+="perspective("+r+"px) "),(P(i)||P(o))&&(m+="translate3d("+(i||0)+"px, "+(o||0)+"px, 0) "),(P(a)||P(s))&&(m+="scale3d("+(P(a)?a:1)+", "+(P(s)?s:1)+", 1) "),P(u)&&(m+="rotateZ("+u+"rad) "),P(c)&&(m+="rotateX("+c+"rad) "),P(l)&&(m+="rotateY("+l+"rad) "),m.length&&(v+="transform:"+m+";"),P(n)&&(v+="opacity:"+n+";",0===n&&(v+="visibility:hidden;"),n<1&&(v+="pointer-events:none;")),P(p)&&(v+="height:"+p+"px;"),P(f)&&(v+="width:"+f+"px;");var y=e.elementCurrentStyle||"";v.length===y.length&&v===y||(e.style.cssText=v,e.elementCurrentStyle=v)},Y={styles:A,listeners:Z,animations:O,apis:D},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=null===t.offsetParent,e},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,n=void 0===t?"div":t,r=e.name,i=void 0===r?null:r,a=e.attributes,s=void 0===a?{}:a,c=e.read,l=void 0===c?function(){}:c,p=e.write,m=void 0===p?function(){}:p,v=e.create,_=void 0===v?function(){}:v,b=e.destroy,M=void 0===b?function(){}:b,w=e.filterFrameActionsForChild,k=void 0===w?function(e,t){return t}:w,L=e.didCreateView,C=void 0===L?function(){}:L,T=e.didWriteView,x=void 0===T?function(){}:T,S=e.ignoreRect,O=void 0!==S&&S,E=e.ignoreRectUpdate,z=void 0!==E&&E,Z=e.mixins,D=void 0===Z?[]:Z;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=u(n,"filepond--"+i,s),a=window.getComputedStyle(r,null),c=R(),p=null,v=!1,b=[],w=[],L={},T={},S=[m],E=[l],Z=[M],P=function(){return r},H=function(){return b.concat()},A=function(){return L},I=function(e){return function(t,n){return t(e,n)}},V=function(){return p||(p=g(c,b,[0,0],[1,1]),p)},j=function(){return a},N=function(){p=null,b.forEach((function(e){return e._read()}));var e=!(z&&c.width&&c.height);e&&R(c,r,a);var n={root:G,props:t,rect:c};E.forEach((function(e){return e(n)}))},F=function(e,n,r){var i=0===n.length;return S.forEach((function(o){var a=o({props:t,root:G,actions:n,timestamp:e,shouldOptimize:r});!1===a&&(i=!1)})),w.forEach((function(t){var n=t.write(e);!1===n&&(i=!1)})),b.filter((function(e){return!!e.element.parentNode})).forEach((function(t){var o=t._write(e,k(t,n),r);o||(i=!1)})),b.forEach((function(t,o){t.element.parentNode||(G.appendChild(t.element,o),t._read(),t._write(e,k(t,n),r),i=!1)})),v=i,x({props:t,root:G,actions:n,timestamp:e}),i},$=function(){w.forEach((function(e){return e.destroy()})),Z.forEach((function(e){e({root:G,props:t})})),b.forEach((function(e){return e._destroy()}))},W={element:{get:P},style:{get:j},childViews:{get:H}},B=Object.assign({},W,{rect:{get:V},ref:{get:A},is:function(e){return i===e},appendChild:d(r),createChildView:I(e),linkView:function(e){return b.push(e),e},unlinkView:function(e){b.splice(b.indexOf(e),1)},appendChildView:h(r,b),removeChildView:f(r,b),registerWriter:function(e){return S.push(e)},registerReader:function(e){return E.push(e)},registerDestroyer:function(e){return Z.push(e)},invalidateLayout:function(){return r.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),U={element:{get:P},childViews:{get:H},rect:{get:V},resting:{get:function(){return v}},isRectIgnored:function(){return O},_read:N,_write:F,_destroy:$},K=Object.assign({},W,{rect:{get:function(){return c}}});Object.keys(D).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var n=Y[e]({mixinConfig:D[e],viewProps:t,viewState:T,viewInternalAPI:B,viewExternalAPI:U,view:o(K)});n&&w.push(n)}));var G=o(B);_({root:G,props:t});var q=y(r);return b.forEach((function(e,t){G.appendChild(e.element,q+t)})),C(G),o(U)}},N=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r="__framePainter";if(window[r])return window[r].readers.push(e),void window[r].writers.push(t);window[r]={readers:[e],writers:[t]};var i=window[r],o=1e3/n,a=null,s=null,c=null,l=null,u=function(){document.hidden?(c=function(){return window.setTimeout((function(){return d(performance.now())}),o)},l=function(){return window.clearTimeout(s)}):(c=function(){return window.requestAnimationFrame(d)},l=function(){return window.cancelAnimationFrame(s)})};document.addEventListener("visibilitychange",(function(){l&&l(),u(),d(performance.now())}));var d=function e(t){s=c(e),a||(a=t);var n=t-a;n<=o||(a=t-n%o,i.readers.forEach((function(e){return e()})),i.writers.forEach((function(e){return e(t)})))};return u(),d(performance.now()),{pause:function(){l(s)}}},F=function(e,t){return function(n){var r=n.root,i=n.props,o=n.actions,a=void 0===o?[]:o,s=n.timestamp,c=n.shouldOptimize;a.filter((function(t){return e[t.type]})).forEach((function(t){return e[t.type]({root:r,props:i,action:t.data,timestamp:s,shouldOptimize:c})})),t&&t({root:r,props:i,actions:a,timestamp:s,shouldOptimize:c})}},$=function(e,t){return t.parentNode.insertBefore(e,t)},W=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},B=function(e){return Array.isArray(e)},U=function(e){return null==e},K=function(e){return e.trim()},G=function(e){return""+e},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return U(e)?[]:B(e)?e:G(e).split(t).map(K).filter((function(e){return e.length}))},J=function(e){return"boolean"===typeof e},X=function(e){return J(e)?e:"true"===e},Q=function(e){return"string"===typeof e},ee=function(e){return M(e)?e:Q(e)?G(e).replace(/[a-z]+/gi,""):0},te=function(e){return parseInt(ee(e),10)},ne=function(e){return parseFloat(ee(e))},re=function(e){return M(e)&&isFinite(e)&&Math.floor(e)===e},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(re(e))return e;var n=G(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),te(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),te(n)*t):te(n)},oe=function(e){return"function"===typeof e},ae=function(e){var t=self,n=e.split("."),r=null;while(r=n.shift())if(t=t[r],!t)return null;return t},se={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},ce=function(e){var t={};return t.url=Q(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},i(se,(function(n){t[n]=le(n,e[n],se[n],t.timeout,t.headers)})),t.process=e.process||Q(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},le=function(e,t,n,r,i){if(null===t)return null;if("function"===typeof t)return t;var o={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:i,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(Q(t))return o.url=t,o;if(Object.assign(o,t),Q(o.headers)){var a=o.headers.split(/:(.+)/);o.headers={header:a[0],value:a[1]}}return o.withCredentials=X(o.withCredentials),o},ue=function(e){return ce(e)},de=function(e){return null===e},he=function(e){return"object"===typeof e&&null!==e},fe=function(e){return he(e)&&Q(e.url)&&he(e.process)&&he(e.revert)&&he(e.restore)&&he(e.fetch)},pe=function(e){return B(e)?"array":de(e)?"null":re(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":fe(e)?"api":typeof e},me=function(e){return e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},ve={array:q,boolean:X,int:function(e){return"bytes"===pe(e)?ie(e):te(e)},number:ne,float:ne,bytes:ie,string:function(e){return oe(e)?e:G(e)},function:function(e){return ae(e)},serverapi:ue,object:function(e){try{return JSON.parse(me(e))}catch(t){return null}}},ye=function(e,t){return ve[t](e)},ge=function(e,t,n){if(e===t)return e;var r=pe(e);if(r!==n){var i=ye(e,n);if(r=pe(i),null===i)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=i}return e},_e=function(e,t){var n=e;return{enumerable:!0,get:function(){return n},set:function(r){n=ge(r,e,t)}}},be=function(e){var t={};return i(e,(function(n){var r=e[n];t[n]=_e(r[0],r[1])})),o(t)},Me=function(e){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:be(e)}},we=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.split(/(?=[A-Z])/).map((function(e){return e.toLowerCase()})).join(t)},ke=function(e,t){var n={};return i(t,(function(t){n[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch("SET_"+we(t,"_").toUpperCase(),{value:n})}}})),n},Le=function(e){return function(t,n,r){var o={};return i(e,(function(e){var n=we(e,"_").toUpperCase();o["SET_"+n]=function(i){try{r.options[e]=i.value}catch(o){}t("DID_SET_"+n,{value:r.options[e]})}})),o}},Ce=function(e){return function(t){var n={};return i(e,(function(e){n["GET_"+we(e,"_").toUpperCase()]=function(n){return t.options[e]}})),n}},Te={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},xe=function(){return Math.random().toString(36).substr(2,9)};function Se(e){this.wrapped=e}function Oe(e){var t,n;function r(e,r){return new Promise((function(o,a){var s={key:e,arg:r,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,i(e,r))}))}function i(t,n){try{var r=e[t](n),a=r.value,s=a instanceof Se;Promise.resolve(s?a.wrapped:a).then((function(e){s?i("next",e):o(r.done?"return":"normal",e)}),(function(e){i("throw",e)}))}catch(c){o("throw",c)}}function o(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1});break}t=t.next,t?i(t.key,t.arg):n=null}this._invoke=r,"function"!==typeof e.return&&(this.return=void 0)}function Ee(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function ze(e,t){if(null==e)return{};var n,r,i=Ee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}"function"===typeof Symbol&&Symbol.asyncIterator&&(Oe.prototype[Symbol.asyncIterator]=function(){return this}),Oe.prototype.next=function(e){return this._invoke("next",e)},Oe.prototype.throw=function(e){return this._invoke("throw",e)},Oe.prototype.return=function(e){return this._invoke("return",e)};function Ze(e){return De(e)||Pe(e)||He()}function De(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?t-1:0),i=1;i1?t-1:0),i=1;iBrowse',Ke.STRING],labelInvalidField:["Field contains invalid files",Ke.STRING],labelFileWaitingForSize:["Waiting for size",Ke.STRING],labelFileSizeNotAvailable:["Size not available",Ke.STRING],labelFileCountSingular:["file in list",Ke.STRING],labelFileCountPlural:["files in list",Ke.STRING],labelFileLoading:["Loading",Ke.STRING],labelFileAdded:["Added",Ke.STRING],labelFileLoadError:["Error during load",Ke.STRING],labelFileRemoved:["Removed",Ke.STRING],labelFileRemoveError:["Error during remove",Ke.STRING],labelFileProcessing:["Uploading",Ke.STRING],labelFileProcessingComplete:["Upload complete",Ke.STRING],labelFileProcessingAborted:["Upload cancelled",Ke.STRING],labelFileProcessingError:["Error during upload",Ke.STRING],labelFileProcessingRevertError:["Error during revert",Ke.STRING],labelTapToCancel:["tap to cancel",Ke.STRING],labelTapToRetry:["tap to retry",Ke.STRING],labelTapToUndo:["tap to undo",Ke.STRING],labelButtonRemoveItem:["Remove",Ke.STRING],labelButtonAbortItemLoad:["Abort",Ke.STRING],labelButtonRetryItemLoad:["Retry",Ke.STRING],labelButtonAbortItemProcessing:["Cancel",Ke.STRING],labelButtonUndoItemProcessing:["Undo",Ke.STRING],labelButtonRetryItemProcessing:["Retry",Ke.STRING],labelButtonProcessItem:["Upload",Ke.STRING],iconRemove:['',Ke.STRING],iconProcess:['',Ke.STRING],iconRetry:['',Ke.STRING],iconUndo:['',Ke.STRING],iconDone:['',Ke.STRING],oninit:[null,Ke.FUNCTION],onwarning:[null,Ke.FUNCTION],onerror:[null,Ke.FUNCTION],onactivatefile:[null,Ke.FUNCTION],oninitfile:[null,Ke.FUNCTION],onaddfilestart:[null,Ke.FUNCTION],onaddfileprogress:[null,Ke.FUNCTION],onaddfile:[null,Ke.FUNCTION],onprocessfilestart:[null,Ke.FUNCTION],onprocessfileprogress:[null,Ke.FUNCTION],onprocessfileabort:[null,Ke.FUNCTION],onprocessfilerevert:[null,Ke.FUNCTION],onprocessfile:[null,Ke.FUNCTION],onprocessfiles:[null,Ke.FUNCTION],onremovefile:[null,Ke.FUNCTION],onpreparefile:[null,Ke.FUNCTION],onupdatefiles:[null,Ke.FUNCTION],onreorderfiles:[null,Ke.FUNCTION],beforeDropFile:[null,Ke.FUNCTION],beforeAddFile:[null,Ke.FUNCTION],beforeRemoveFile:[null,Ke.FUNCTION],beforePrepareFile:[null,Ke.FUNCTION],stylePanelLayout:[null,Ke.STRING],stylePanelAspectRatio:[null,Ke.STRING],styleItemPanelAspectRatio:[null,Ke.STRING],styleButtonRemoveItemPosition:["left",Ke.STRING],styleButtonProcessItemPosition:["right",Ke.STRING],styleLoadIndicatorPosition:["right",Ke.STRING],styleProgressIndicatorPosition:["right",Ke.STRING],styleButtonRemoveItemAlign:[!1,Ke.BOOLEAN],files:[[],Ke.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],Ke.ARRAY]},rt=function(e,t){return U(t)?e[0]||null:re(t)?e[t]||null:("object"===typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},it=function(e){if(U(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},ot=function(e){return e.filter((function(e){return!e.archived}))},at={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},st=null,ct=function(){if(null===st)try{var e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));var t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,st=1===t.files.length}catch(n){st=!1}return st},lt=[Fe.LOAD_ERROR,Fe.PROCESSING_ERROR,Fe.PROCESSING_REVERT_ERROR],ut=[Fe.LOADING,Fe.PROCESSING,Fe.PROCESSING_QUEUED,Fe.INIT],dt=[Fe.PROCESSING_COMPLETE],ht=function(e){return lt.includes(e.status)},ft=function(e){return ut.includes(e.status)},pt=function(e){return dt.includes(e.status)},mt=function(e){return he(e.options.server)&&(he(e.options.server.process)||oe(e.options.server.process))},vt=function(e){return{GET_STATUS:function(){var t=ot(e.items),n=at.EMPTY,r=at.ERROR,i=at.BUSY,o=at.IDLE,a=at.READY;return 0===t.length?n:t.some(ht)?r:t.some(ft)?i:t.some(pt)?a:o},GET_ITEM:function(t){return rt(e.items,t)},GET_ACTIVE_ITEM:function(t){return rt(ot(e.items),t)},GET_ACTIVE_ITEMS:function(){return ot(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=rt(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=rt(e.items,t);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter((function(e){return/^style/.test(e)})).map((function(t){return{name:t,value:e.options[t]}}))},GET_PANEL_ASPECT_RATIO:function(){var t=/circle/.test(e.options.stylePanelLayout),n=t?1:it(e.options.stylePanelAspectRatio);return n},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return ot(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return ot(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&ct()&&!mt(e)},IS_ASYNC:function(){return mt(e)},GET_FILE_SIZE_LABELS:function(e){return{labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},yt=function(e){var t=ot(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},Tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+Ct(e.getMonth()+1,"00")+"-"+Ct(e.getDate(),"00")+"_"+Ct(e.getHours(),"00")+"-"+Ct(e.getMinutes(),"00")+"-"+Ct(e.getSeconds(),"00")},xt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i="string"===typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return i.lastModifiedDate=new Date,e._relativePath&&(i._relativePath=e._relativePath),Q(t)||(t=Tt()),t&&null===r&&kt(t)?i.name=t:(r=r||Lt(i.type),i.name=t+(r?"."+r:"")),i},St=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},Ot=function(e,t){var n=St();if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},Et=function(e,t){for(var n=new ArrayBuffer(e.length),r=new Uint8Array(n),i=0;i=200&&a.status<300?r.onload(a):r.onerror(a)},a.onerror=function(){return r.onerror(a)},a.onabort=function(){i=!0,r.onabort()},a.ontimeout=function(){return r.ontimeout(a)},a.open(n.method,t,!0),re(n.timeout)&&(a.timeout=n.timeout),Object.keys(n.headers).forEach((function(e){var t=unescape(encodeURIComponent(n.headers[e]));a.setRequestHeader(e,t)})),n.responseType&&(a.responseType=n.responseType),n.withCredentials&&(a.withCredentials=!0),a.send(e),r},Ft=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},$t=function(e){return function(t){e(Ft("error",0,"Timeout",t.getAllResponseHeaders()))}},Wt=function(e){return/\?/.test(e)},Bt=function(){for(var e="",t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"===typeof t)return t;if(!t||!Q(t.url))return null;var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,o,a,s,c,l){var u=Nt(i,Bt(e,t.url),Object.assign({},t,{responseType:"blob"}));return u.onload=function(e){var r=e.getAllResponseHeaders(),a=Yt(r).name||wt(i);o(Ft("load",e.status,"HEAD"===t.method?null:xt(n(e.response),a),r))},u.onerror=function(e){a(Ft("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},u.onheaders=function(e){l(Ft("headers",e.status,null,e.getAllResponseHeaders()))},u.ontimeout=$t(a),u.onprogress=s,u.onabort=c,u}},Kt={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},Gt=function(e,t,n,r,i,o,a,s,c,l,u){for(var d=[],h=u.chunkTransferId,f=u.chunkServer,p=u.chunkSize,m=u.chunkRetryDelays,v={serverId:h,aborted:!1},y=t.ondata||function(e){return e},g=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},_=t.onerror||function(e){return null},b=function(o){var s=new FormData;he(i)&&s.append(n,JSON.stringify(i));var c="function"===typeof t.headers?t.headers(r,i):Object.assign({},t.headers,{"Upload-Length":r.size}),l=Object.assign({},t,{headers:c}),u=Nt(y(s),Bt(e,t.url),l);u.onload=function(e){return o(g(e,l.method))},u.onerror=function(e){return a(Ft("error",e.status,_(e.response)||e.statusText,e.getAllResponseHeaders()))},u.ontimeout=$t(a)},M=function(n){var r=Bt(e,f.url,v.serverId),i="function"===typeof t.headers?t.headers(v.serverId):Object.assign({},t.headers),o={headers:i,method:"HEAD"},s=Nt(null,r,o);s.onload=function(e){return n(g(e,o.method))},s.onerror=function(e){return a(Ft("error",e.status,_(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=$t(a)},w=Math.floor(r.size/p),k=0;k<=w;k++){var L=k*p,C=r.slice(L,L+p,"application/offset+octet-stream");d[k]={index:k,size:C.size,offset:L,data:C,file:r,progress:0,retries:Ze(m),status:Kt.QUEUED,error:null,request:null,timeout:null}}var T=function(){return o(v.serverId)},x=function(e){return e.status===Kt.QUEUED||e.status===Kt.ERROR},S=function(t){if(!v.aborted)if(t=t||d.find(x),t){t.status=Kt.PROCESSING,t.progress=null;var n=f.ondata||function(e){return e},i=f.onerror||function(e){return null},o=Bt(e,f.url,v.serverId),s="function"===typeof f.headers?f.headers(t):Object.assign({},f.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":r.size,"Upload-Name":r.name}),l=t.request=Nt(n(t.data),o,Object.assign({},f,{headers:s}));l.onload=function(){t.status=Kt.COMPLETE,t.request=null,z()},l.onprogress=function(e,n,r){t.progress=e?n:null,E()},l.onerror=function(e){t.status=Kt.ERROR,t.request=null,t.error=i(e.response)||e.statusText,O(t)||a(Ft("error",e.status,i(e.response)||e.statusText,e.getAllResponseHeaders()))},l.ontimeout=function(e){t.status=Kt.ERROR,t.request=null,O(t)||$t(a)(e)},l.onabort=function(){t.status=Kt.QUEUED,t.request=null,c()}}else d.every((function(e){return e.status===Kt.COMPLETE}))&&T()},O=function(e){return 0!==e.retries.length&&(e.status=Kt.WAITING,clearTimeout(e.timeout),e.timeout=setTimeout((function(){S(e)}),e.retries.shift()),!0)},E=function(){var e=d.reduce((function(e,t){return null===e||null===t.progress?null:e+t.progress}),0);if(null===e)return s(!1,0,0);var t=d.reduce((function(e,t){return e+t.size}),0);s(!0,e,t)},z=function(){var e=d.filter((function(e){return e.status===Kt.PROCESSING})).length;e>=1||S()},Z=function(){d.forEach((function(e){clearTimeout(e.timeout),e.request&&e.request.abort()}))};return v.serverId?M((function(e){v.aborted||(d.filter((function(t){return t.offsetr.chunkSize,f=d&&(h||r.chunkForce);if(i instanceof Blob&&f)return Gt(e,t,n,i,o,a,s,c,l,u,r);var p=t.ondata||function(e){return e},m=t.onload||function(e){return e},v=t.onerror||function(e){return null},y="function"===typeof t.headers?t.headers(i,o)||{}:Object.assign({},t.headers),g=Object.assign({},t,{headers:y}),_=new FormData;he(o)&&_.append(n,JSON.stringify(o)),(i instanceof Blob?[{name:null,file:i}]:i).forEach((function(e){_.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)}));var b=Nt(p(_),Bt(e,t.url),g);return b.onload=function(e){a(Ft("load",e.status,m(e.response),e.getAllResponseHeaders()))},b.onerror=function(e){s(Ft("error",e.status,v(e.response)||e.statusText,e.getAllResponseHeaders()))},b.ontimeout=$t(s),b.onprogress=c,b.onabort=l,b}}},Jt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return"function"===typeof t?function(){for(var e=arguments.length,i=new Array(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"===typeof t)return t;if(!t||!Q(t.url))return function(e,t){return t()};var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,o,a){var s=Nt(i,e+t.url,t);return s.onload=function(e){o(Ft("load",e.status,n(e.response),e.getAllResponseHeaders()))},s.onerror=function(e){a(Ft("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=$t(a),s}},Qt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},en=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,i=null,o=Date.now(),a=function a(){var s=Date.now()-o,c=Qt(n,r);s+c>t&&(c=s+c-t);var l=s/t;l>=1||document.hidden?e(1):(e(l),i=setTimeout(a,c))};return t>0&&a(),{clear:function(){clearTimeout(i)}}},tn=function(e,t){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},r=t.allowMinimumUploadDuration,i=function(t,i){var o=function(){0!==n.duration&&null!==n.progress&&l.fire("progress",l.getProgress())},a=function(){n.complete=!0,l.fire("load-perceived",n.response.body)};l.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=en((function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,o(),n.response&&1===n.perceivedProgress&&!n.complete&&a()}),r?Qt(750,1500):0),n.request=e(t,i,(function(e){n.response=he(e)?e:{type:"load",code:200,body:""+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,l.fire("load",n.response.body),(!r||r&&1===n.perceivedProgress)&&a()}),(function(e){n.perceivedPerformanceUpdater.clear(),l.fire("error",he(e)?e:{type:"error",code:0,body:""+e})}),(function(e,t,r){n.duration=Date.now()-n.timestamp,n.progress=e?t/r:null,o()}),(function(){n.perceivedPerformanceUpdater.clear(),l.fire("abort",n.response?n.response.body:null)}),(function(e){l.fire("transfer",e)}))},o=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},a=function(){o(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},s=r?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},c=r?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},l=Object.assign({},Ve(),{process:i,abort:o,getProgress:s,getDuration:c,reset:a});return l},nn=function(e){return e.substr(0,e.lastIndexOf("."))||e},rn=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||Mt(e)?t[0]=e.name||Tt():Mt(e)?(t[1]=e.length,t[2]=zt(e)):Q(e)&&(t[0]=wt(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},on=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},an=function e(t){if(!he(t))return t;var n=B(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];n[r]=i&&he(i)?e(i):i}return n},sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=xe(),i={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?Fe.PROCESSING_COMPLETE:Fe.INIT,activeLoader:null,activeProcessor:null},a=null,s={},c=function(e){return i.status=e},l=function(e){if(!i.released&&!i.frozen){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1||e.indexOf("//")>-1)&&dn(location.href)!==dn(e)},fn=function(e){return function(){return oe(e)?e.apply(void 0,arguments):e}},pn=function(e){return!on(e.file)},mn=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout((function(){e("DID_UPDATE_ITEMS",{items:ot(t.items)})}),0)},vn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},r=n.query,i=n.success,o=void 0===i?function(){}:i,a=n.failure,s=void 0===a?function(){}:a,c=ze(n,["query","success","failure"]),l=rt(e.items,r);l?t(l,o,s,c||{}):s({error:Ft("error",0,"Item not found"),file:null})}},_n=function(e,t,n){return{ABORT_ALL:function(){ot(n.items).forEach((function(e){e.freeze(),e.abortLoad(),e.abortProcessing()}))},DID_SET_FILES:function(t){var r=t.value,i=void 0===r?[]:r,o=i.map((function(e){return{source:e.source?e.source:e,options:e.options}})),a=ot(n.items);a.forEach((function(t){o.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})})),a=ot(n.items),o.forEach((function(t,n){a.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:Te.NONE,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(r){var i=r.id,o=r.action,a=r.change;a.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var r=ln(n.items,i);if(t("IS_ASYNC")){r.origin===$e.LOCAL&&e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.source});var s=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:i})}),32)},c=function(e){r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(e?s:function(){}).catch((function(){}))},l=function(e){r.abortProcessing().then(e?s:function(){})};return r.status===Fe.PROCESSING_COMPLETE?c(n.options.instantUpload):r.status===Fe.PROCESSING?l(n.options.instantUpload):void(n.options.instantUpload&&s())}qe("SHOULD_PREPARE_OUTPUT",!1,{item:r,query:t,action:o,change:a}).then((function(n){var o=t("GET_BEFORE_PREPARE_FILE");o&&(n=o(r,n)),n&&e("REQUEST_PREPARE_OUTPUT",{query:i,item:r,success:function(t){e("DID_PREPARE_OUTPUT",{id:i,file:t})}},!0)}))}),0))},MOVE_ITEM:function(e){var t=e.query,r=e.index,i=rt(n.items,t);if(i){var o=n.items.indexOf(i);r=gt(r,0,n.items.length-1),o!==r&&n.items.splice(r,0,n.items.splice(o,1)[0])}},SORT:function(r){var i=r.compare;yn(n,i),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var r=n.items,i=n.index,o=n.interactionMethod,a=n.success,s=void 0===a?function(){}:a,c=n.failure,l=void 0===c?function(){}:c,u=i;if(-1===i||"undefined"===typeof i){var d=t("GET_ITEM_INSERT_LOCATION"),h=t("GET_TOTAL_ITEMS");u="before"===d?0:h}var f=t("GET_IGNORED_FILES"),p=function(e){return on(e)?!f.includes(e.name.toLowerCase()):!U(e)},m=r.filter(p),v=m.map((function(t){return new Promise((function(n,r){e("ADD_ITEM",{interactionMethod:o,source:t.source||t,success:n,failure:r,index:u++,options:t.options||{}})}))}));Promise.all(v).then(s).catch(l)},ADD_ITEM:function(r){var i=r.source,o=r.index,a=void 0===o?-1:o,s=r.interactionMethod,c=r.success,l=void 0===c?function(){}:c,u=r.failure,d=void 0===u?function(){}:u,h=r.options,f=void 0===h?{}:h;if(U(i))d({error:Ft("error",0,"No source"),file:null});else if(!on(i)||!n.options.ignoredFiles.includes(i.name.toLowerCase())){if(!yt(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var p=Ft("warning",0,"Max files");return e("DID_THROW_MAX_FILES",{source:i,error:p}),void d({error:p,file:null})}var m=ot(n.items)[0];if(m.status===Fe.PROCESSING_COMPLETE||m.status===Fe.PROCESSING_REVERT_ERROR){var v=t("GET_FORCE_REVERT");if(m.revert(Xt(n.options.server.url,n.options.server.revert),v).then((function(){v&&e("ADD_ITEM",{source:i,index:a,interactionMethod:s,success:l,failure:d,options:f})})).catch((function(){})),v)return}e("REMOVE_ITEM",{query:m.id})}var y="local"===f.type?$e.LOCAL:"limbo"===f.type?$e.LIMBO:$e.INPUT,g=sn(y,y===$e.INPUT?null:i,f.file);Object.keys(f.metadata||{}).forEach((function(e){g.setMetadata(e,f.metadata[e])})),Je("DID_CREATE_ITEM",g,{query:t,dispatch:e});var _=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(a="before"===_?-1:n.items.length),bt(n.items,g,a),oe(_)&&i&&yn(n,_);var b=g.id;g.on("init",(function(){e("DID_INIT_ITEM",{id:b})})),g.on("load-init",(function(){e("DID_START_ITEM_LOAD",{id:b})})),g.on("load-meta",(function(){e("DID_UPDATE_ITEM_META",{id:b})})),g.on("load-progress",(function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:b,progress:t})})),g.on("load-request-error",(function(t){var r=fn(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:b,error:t,status:{main:r,sub:t.code+" ("+t.body+")"}}),void d({error:t,file:je(g)});e("DID_THROW_ITEM_LOAD_ERROR",{id:b,error:t,status:{main:r,sub:n.options.labelTapToRetry}})})),g.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:b,error:t.status,status:t.status}),d({error:t.status,file:je(g)})})),g.on("load-abort",(function(){e("REMOVE_ITEM",{query:b})})),g.on("load-skip",(function(){e("COMPLETE_LOAD_ITEM",{query:b,item:g,data:{source:i,success:l}})})),g.on("load",(function(){var r=function(r){r?(g.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:b,change:t})})),qe("SHOULD_PREPARE_OUTPUT",!1,{item:g,query:t}).then((function(r){var o=t("GET_BEFORE_PREPARE_FILE");o&&(r=o(g,r));var a=function(){e("COMPLETE_LOAD_ITEM",{query:b,item:g,data:{source:i,success:l}}),mn(e,n)};r?e("REQUEST_PREPARE_OUTPUT",{query:b,item:g,success:function(t){e("DID_PREPARE_OUTPUT",{id:b,file:t}),a()}},!0):a()}))):e("REMOVE_ITEM",{query:b})};qe("DID_LOAD_ITEM",g,{query:t,dispatch:e}).then((function(){vn(t("GET_BEFORE_ADD_FILE"),je(g)).then(r)})).catch((function(t){if(!t||!t.error||!t.status)return r(!1);e("DID_THROW_ITEM_INVALID",{id:b,error:t.error,status:t.status})}))})),g.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:b})})),g.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:b,progress:t})})),g.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:b,error:t,status:{main:fn(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})})),g.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:b,error:t,status:{main:fn(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})})),g.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:b,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:b,value:t})})),g.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:b})})),g.on("process-revert",(function(){e("DID_REVERT_ITEM_PROCESSING",{id:b}),e("DID_DEFINE_VALUE",{id:b,value:null})})),e("DID_ADD_ITEM",{id:b,index:a,interactionMethod:s}),mn(e,n);var M=n.options.server||{},w=M.url,k=M.load,L=M.restore,C=M.fetch;g.load(i,Rt(y===$e.INPUT?Q(i)&&hn(i)&&C?Ut(w,C):un:y===$e.LIMBO?Ut(w,L):Ut(w,k)),(function(e,n,r){qe("LOAD_FILE",e,{query:t}).then(n).catch(r)}))}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,r=e.success,i=e.failure,o=void 0===i?function(){}:i,a={error:Ft("error",0,"Item not found"),file:null};if(n.archived)return o(a);qe("PREPARE_OUTPUT",n.file,{query:t,item:n}).then((function(e){qe("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then((function(e){if(n.archived)return o(a);r(e)}))}))},COMPLETE_LOAD_ITEM:function(r){var i=r.item,o=r.data,a=o.success,s=o.source,c=t("GET_ITEM_INSERT_LOCATION");if(oe(c)&&s&&yn(n,c),e("DID_LOAD_ITEM",{id:i.id,error:null,serverFileReference:i.origin===$e.INPUT?null:s}),a(je(i)),i.origin!==$e.LOCAL)return i.origin===$e.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:i.id,error:null,serverFileReference:s}),void e("DID_DEFINE_VALUE",{id:i.id,value:i.serverId||s})):void(t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:i.id}));e("DID_LOAD_LOCAL_ITEM",{id:i.id})},RETRY_ITEM_LOAD:gn(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:gn(n,(function(t,n,r){e("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(r){e("DID_PREPARE_OUTPUT",{id:t.id,file:r}),n({file:t,output:r})},failure:r},!0)})),REQUEST_ITEM_PROCESSING:gn(n,(function(r,i,o){var a=r.status===Fe.IDLE||r.status===Fe.PROCESSING_ERROR;if(a)r.status!==Fe.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:i,failure:o},!0));else{var s=function(){return e("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:o})},c=function(){return document.hidden?s():setTimeout(s,32)};r.status===Fe.PROCESSING_COMPLETE||r.status===Fe.PROCESSING_REVERT_ERROR?r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(c).catch((function(){})):r.status===Fe.PROCESSING&&r.abortProcessing().then(c)}})),PROCESS_ITEM:gn(n,(function(r,i,o){var a=t("GET_MAX_PARALLEL_UPLOADS"),s=t("GET_ITEMS_BY_STATUS",Fe.PROCESSING).length;if(s!==a){if(r.status!==Fe.PROCESSING){var c=function t(){var r=n.processingQueue.shift();if(r){var i=r.id,o=r.success,a=r.failure,s=rt(n.items,i);s&&!s.archived?e("PROCESS_ITEM",{query:i,success:o,failure:a},!0):t()}};r.onOnce("process-complete",(function(){i(je(r)),c();var o=n.options.server,a=n.options.instantUpload;if(a&&r.origin===$e.LOCAL&&oe(o.remove)){var s=function(){};r.origin=$e.LIMBO,n.options.server.remove(r.source,s,s)}var l=t("GET_ITEMS_BY_STATUS",Fe.PROCESSING_COMPLETE).length===n.items.length;l&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),r.onOnce("process-error",(function(e){o({error:e,file:je(r)}),c()}));var l=n.options;r.process(tn(Jt(l.server.url,l.server.process,l.name,{chunkTransferId:r.transferId,chunkServer:l.server.patch,chunkUploads:l.chunkUploads,chunkForce:l.chunkForce,chunkSize:l.chunkSize,chunkRetryDelays:l.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(function(n,i,o){qe("PREPARE_OUTPUT",n,{query:t,item:r}).then((function(t){e("DID_PREPARE_OUTPUT",{id:r.id,file:t}),i(t)})).catch(o)}))}}else n.processingQueue.push({id:r.id,success:i,failure:o})})),RETRY_ITEM_PROCESSING:gn(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:gn(n,(function(n){vn(t("GET_BEFORE_REMOVE_FILE"),je(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:gn(n,(function(e){e.release()})),REMOVE_ITEM:gn(n,(function(r,i,o,a){var s=function(){var t=r.id;ln(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:r}),mn(e,n),i(je(r))},c=n.options.server;r.origin===$e.LOCAL&&c&&oe(c.remove)&&!1!==a.remove?(e("DID_START_ITEM_REMOVE",{id:r.id}),c.remove(r.source,(function(){return s()}),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:Ft("error",0,t,null),status:{main:fn(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})}))):((a.revert&&r.origin!==$e.LOCAL&&null!==r.serverId||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),s())})),ABORT_ITEM_LOAD:gn(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:gn(n,(function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then((function(){var r=n.options.instantUpload;r&&e("REMOVE_ITEM",{query:t.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:gn(n,(function(r){if(n.options.instantUpload){var i=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:r})},o=t("GET_BEFORE_REMOVE_FILE");if(!o)return i(!0);var a=o(je(r));return null==a?i(!0):"boolean"===typeof a?i(a):void("function"===typeof a.then&&a.then(i))}e("REVERT_ITEM_PROCESSING",{query:r})})),REVERT_ITEM_PROCESSING:gn(n,(function(r){r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then((function(){var t=n.options.instantUpload||pn(r);t&&e("REMOVE_ITEM",{query:r.id})})).catch((function(){}))})),SET_OPTIONS:function(t){var n=t.options,r=Object.keys(n),i=bn.filter((function(e){return r.includes(e)})),o=[].concat(Ze(i),Ze(Object.keys(n).filter((function(e){return!i.includes(e)}))));o.forEach((function(t){e("SET_"+we(t,"_").toUpperCase(),{value:n[t]})}))}}},bn=["server"],Mn=function(e){return e},wn=function(e){return document.createElement(e)},kn=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},Ln=function(e,t,n,r){var i=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},Cn=function(e,t,n,r,i,o){var a=Ln(e,t,n,i),s=Ln(e,t,n,r);return["M",a.x,a.y,"A",n,n,0,o,0,s.x,s.y].join(" ")},Tn=function(e,t,n,r,i){var o=1;return i>r&&i-r<=.5&&(o=0),r>i&&r-i>=.5&&(o=0),Cn(e,t,n,360*Math.min(.9999,r),360*Math.min(.9999,i),o)},xn=function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var r=u("svg");t.ref.path=u("path",{"stroke-width":2,"stroke-linecap":"round"}),r.appendChild(t.ref.path),t.ref.svg=r,t.appendChild(r)},Sn=function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&&(t.element.dataset.align=n.align);var r=parseInt(a(t.ref.path,"stroke-width"),10),i=.5*t.rect.element.width,o=0,s=0;n.spin?(o=0,s=.5):(o=0,s=n.progress);var c=Tn(i,i,i-r,o,s);a(t.ref.path,"d",c),a(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},On=j({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:xn,write:Sn,mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),En=function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||"")+""+n.label+"",n.isDisabled=!1},zn=function(e){var t=e.root,n=e.props,r=n.isDisabled,i=t.query("GET_DISABLED")||0===n.opacity;i&&!r?(n.isDisabled=!0,a(t.element,"disabled","disabled")):!i&&r&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))},Zn=j({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:En,write:zn}),Dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.labelBytes,o=void 0===i?"bytes":i,a=r.labelKilobytes,s=void 0===a?"KB":a,c=r.labelMegabytes,l=void 0===c?"MB":c,u=r.labelGigabytes,d=void 0===u?"GB":u;e=Math.round(Math.abs(e));var h=n,f=n*n,p=n*n*n;return e16&&!r&&(r=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:o})}},s=function e(s){s.isPrimary&&(document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",e),n.dragOffset={x:s.pageX-i.x,y:s.pageY-i.y},t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:o}),r&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0))};document.addEventListener("pointermove",a),document.addEventListener("pointerup",s)}};t.element.addEventListener("pointerdown",r)}},Tr=F({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action;t.height=n.height}}),xr=F({DID_GRAB_ITEM:function(e){var t=e.root,n=e.props;n.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){var t=e.root;t.element.dataset.dragState="drag"},DID_DROP_ITEM:function(e){var t=e.root,n=e.props;n.dragOffset=null,n.dragOrigin=null,t.element.dataset.dragState="drop"}},(function(e){var t=e.root,n=e.actions,r=e.props,i=e.shouldOptimize;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");var o=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return Lr[e.type]}));o&&o.type!==r.currentState&&(r.currentState=o.type,t.element.dataset.filepondItemState=Lr[r.currentState]||"");var a=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");a?i||(t.height=t.rect.element.width*a):(Tr({root:t,actions:n,props:r}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),i&&(t.ref.panel.height=null),t.ref.panel.height=t.height})),Sr=j({create:Cr,write:xr,destroy:function(e){var t=e.root,n=e.props;t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:n.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:kr,scaleY:kr,translateX:wr,translateY:wr,opacity:{type:"tween",duration:150}}}}),Or=function(e,t){return Math.max(1,Math.floor((e+1)/t))},Er=function(e,t,n){if(n){var r=e.rect.element.width,i=t.length,o=null;if(0===i||n.topM){if(n.left3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(0===e.opacity&&Hr(e,t,n,r,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},Hr=function(e,t,n,r,i){e.interactionMethod===Te.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===Te.DROP?(e.translateX=null,e.translateX=t-20*r,e.translateY=null,e.translateY=n-10*i,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===Te.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Te.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},Ar=function(e){var t=e.root,n=e.action,r=n.id,i=t.childViews.find((function(e){return e.id===r}));i&&(i.scaleX=.9,i.scaleY=.9,i.opacity=0,i.markedForRemoval=!0)},Ir=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},Vr=function(e){return e.rect.element.width+.5*e.rect.element.marginLeft+.5*e.rect.element.marginRight},Yr=function(e){var t=e.root,n=e.action,r=n.id,i=n.dragState,o=t.query("GET_ITEM",{id:r}),a=t.childViews.find((function(e){return e.id===r})),s=t.childViews.length,c=i.getItemIndex(o);if(a){var l={x:a.dragOrigin.x+a.dragOffset.x+a.dragCenter.x,y:a.dragOrigin.y+a.dragOffset.y+a.dragCenter.y},u=Ir(a),d=Vr(a),h=Math.floor(t.rect.outer.width/d);h>s&&(h=s);var f=Math.floor(s/h+1);zr.setHeight=u*f,zr.setWidth=d*h;var p={y:Math.floor(l.y/u),x:Math.floor(l.x/d),getGridIndex:function(){return l.y>zr.getHeight||l.y<0||l.x>zr.getWidth||l.x<0?c:this.y*h+this.x},getColIndex:function(){for(var e=t.query("GET_ACTIVE_ITEMS"),n=t.childViews.filter((function(e){return e.rect.element.height})),r=e.map((function(e){return n.find((function(t){return t.id===e.id}))})),i=r.findIndex((function(e){return e===a})),o=Ir(a),s=r.length,c=s,u=0,d=0,h=0,f=0;ff){if(l.y1?p.getGridIndex():p.getColIndex();t.dispatch("MOVE_ITEM",{query:a,index:m});var v=i.getIndex();if(void 0===v||v!==m){if(i.setIndex(m),void 0===v)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:c,target:m})}}},Rr=F({DID_ADD_ITEM:Dr,DID_REMOVE_ITEM:Ar,DID_DRAG_ITEM:Yr}),jr=function(e){var t=e.root,n=e.props,r=e.actions,i=e.shouldOptimize;Rr({root:t,props:n,actions:r});var o=n.dragCoordinates,a=t.rect.element.width,s=t.childViews.filter((function(e){return e.rect.element.height})),c=t.query("GET_ACTIVE_ITEMS").map((function(e){return s.find((function(t){return t.id===e.id}))})).filter((function(e){return e})),l=o?Er(t,c,o):null,u=t.ref.addIndex||null;t.ref.addIndex=null;var d=0,h=0,f=0;if(0!==c.length){var p=c[0].rect.element,m=p.marginTop+p.marginBottom,v=p.marginLeft+p.marginRight,y=p.width+v,g=p.height+m,_=Or(a,y);if(1===_){var b=0,M=0;c.forEach((function(e,t){if(l){var n=t-l;M=-2===n?.25*-m:-1===n?.75*-m:0===n?.75*m:1===n?.25*m:0}i&&(e.translateX=null,e.translateY=null),e.markedForRemoval||Pr(e,0,b+M);var r=e.rect.element.height+m,o=r*(e.markedForRemoval?e.opacity:1);b+=o}))}else{var w=0,k=0;c.forEach((function(e,t){t===l&&(d=1),t===u&&(f+=1),e.markedForRemoval&&e.opacity<.5&&(h-=1);var n=t+f+d+h,r=n%_,o=Math.floor(n/_),a=r*y,s=o*g,c=Math.sign(a-w),p=Math.sign(s-k);w=a,k=s,e.markedForRemoval||(i&&(e.translateX=null,e.translateY=null),Pr(e,a,s,c,p))}))}}},Nr=function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},Fr=j({create:Zr,write:jr,tag:"ul",name:"list",didWriteView:function(e){var t=e.root;t.childViews.filter((function(e){return e.markedForRemoval&&0===e.opacity&&e.resting})).forEach((function(e){e._destroy(),t.removeChildView(e)}))},filterFrameActionsForChild:Nr,mixins:{apis:["dragCoordinates"]}}),$r=function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(Fr)),n.dragCoordinates=null,n.overflowing=!1},Wr=function(e){var t=e.root,n=e.props,r=e.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(n.dragCoordinates={left:r.position.scopeLeft-t.ref.list.rect.element.left,top:r.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},Br=function(e){var t=e.props;t.dragCoordinates=null},Ur=F({DID_DRAG:Wr,DID_END_DRAG:Br}),Kr=function(e){var t=e.root,n=e.props,r=e.actions;if(Ur({root:t,props:n,actions:r}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var i=Math.round(n.overflow);i!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=i)}},Gr=j({create:$r,write:Kr,name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),qr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";n?a(e,t,r):e.removeAttribute(t)},Jr=function(e){if(e&&""!==e.value){try{e.value=""}catch(i){}if(e.value){var t=wn("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},Xr=function(e){var t=e.root,n=e.props;t.element.id="filepond--browser-"+n.id,a(t.element,"name",t.query("GET_NAME")),a(t.element,"aria-controls","filepond--assistant-"+n.id),a(t.element,"aria-labelledby","filepond--drop-label-"+n.id),Qr({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),ei({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),ti({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),ni({root:t}),ri({root:t,action:{value:t.query("GET_REQUIRED")}}),ii({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=function(e){if(t.element.value){var r=Array.from(t.element.files).map((function(e){return e._relativePath=e.webkitRelativePath,e}));setTimeout((function(){n.onload(r),Jr(t.element)}),250)}},t.element.addEventListener("change",t.ref.handleChange)},Qr=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&qr(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},ei=function(e){var t=e.root,n=e.action;qr(t.element,"multiple",n.value)},ti=function(e){var t=e.root,n=e.action;qr(t.element,"webkitdirectory",n.value)},ni=function(e){var t=e.root,n=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE"),i=n||!r;qr(t.element,"disabled",i)},ri=function(e){var t=e.root,n=e.action;n.value?0===t.query("GET_TOTAL_ITEMS")&&qr(t.element,"required",!0):qr(t.element,"required",!1)},ii=function(e){var t=e.root,n=e.action;qr(t.element,"capture",!!n.value,!0===n.value?"":n.value)},oi=function(e){var t=e.root,n=t.element;if(t.query("GET_TOTAL_ITEMS")>0)qr(n,"required",!1),qr(n,"name",!1);else{qr(n,"name",!0,t.query("GET_NAME"));var r=t.query("GET_CHECK_VALIDITY");r&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&qr(n,"required",!0)}},ai=function(e){var t=e.root,n=t.query("GET_CHECK_VALIDITY");n&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},si=j({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:Xr,destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:F({DID_LOAD_ITEM:oi,DID_REMOVE_ITEM:oi,DID_THROW_ITEM_INVALID:ai,DID_SET_DISABLED:ni,DID_SET_ALLOW_BROWSE:ni,DID_SET_ALLOW_DIRECTORIES_ONLY:ti,DID_SET_ALLOW_MULTIPLE:ei,DID_SET_ACCEPTED_FILE_TYPES:Qr,DID_SET_CAPTURE_METHOD:ii,DID_SET_REQUIRED:ri})}),ci={ENTER:13,SPACE:32},li=function(e){var t=e.root,n=e.props,r=wn("label");a(r,"for","filepond--browser-"+n.id),a(r,"id","filepond--drop-label-"+n.id),a(r,"aria-hidden","true"),t.ref.handleKeyDown=function(e){var n=e.keyCode===ci.ENTER||e.keyCode===ci.SPACE;n&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){var n=e.target===r||r.contains(e.target);n||t.ref.label.click()},r.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),ui(r,n.caption),t.appendChild(r),t.ref.label=r},ui=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&a(n,"tabindex","0"),t},di=j({name:"drop-label",ignoreRect:!0,create:li,destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:F({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;ui(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),hi=j({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),fi=function(e){var t=e.root,n=.5*t.rect.element.width,r=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(hi,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:r}))},pi=function(e){var t=e.root,n=e.action;t.ref.blob?(t.ref.blob.translateX=n.position.scopeLeft,t.ref.blob.translateY=n.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):fi({root:t})},mi=function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)},vi=function(e){var t=e.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},yi=function(e){var t=e.root,n=e.props,r=e.actions;gi({root:t,props:n,actions:r});var i=t.ref.blob;0===r.length&&i&&0===i.opacity&&(t.removeChildView(i),t.ref.blob=null)},gi=F({DID_DRAG:pi,DID_DROP:vi,DID_END_DRAG:mi}),_i=j({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:yi}),bi=function(e,t){try{var n=new DataTransfer;t.forEach((function(e){e instanceof File?n.items.add(e):n.items.add(new File([e],e.name,{type:e.type}))})),e.files=n.files}catch(r){return!1}return!0},Mi=function(e){var t=e.root;return t.ref.fields={}},wi=function(e,t){return e.ref.fields[t]},ki=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},Li=function(e){var t=e.root;return ki(t)},Ci=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.origin===$e.LOCAL,o=!i&&t.query("SHOULD_UPDATE_FILE_INPUT"),a=wn("input");a.type=o?"file":"hidden",a.name=t.query("GET_NAME"),a.disabled=t.query("GET_DISABLED"),t.ref.fields[n.id]=a,ki(t)},Ti=function(e){var t=e.root,n=e.action,r=wi(t,n.id);if(r&&(null!==n.serverFileReference&&(r.value=n.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT"))){var i=t.query("GET_ITEM",n.id);bi(r,[i.file])}},xi=function(e){var t=e.root,n=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout((function(){var e=wi(t,n.id);e&&bi(e,[n.file])}),0)},Si=function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},Oi=function(e){var t=e.root,n=e.action,r=wi(t,n.id);r&&(r.parentNode&&r.parentNode.removeChild(r),delete t.ref.fields[n.id])},Ei=function(e){var t=e.root,n=e.action,r=wi(t,n.id);r&&(null===n.value?r.removeAttribute("value"):r.value=n.value,ki(t))},zi=F({DID_SET_DISABLED:Si,DID_ADD_ITEM:Ci,DID_LOAD_ITEM:Ti,DID_REMOVE_ITEM:Oi,DID_DEFINE_VALUE:Ei,DID_PREPARE_OUTPUT:xi,DID_REORDER_ITEMS:Li,DID_SORT_ITEMS:Li}),Zi=j({tag:"fieldset",name:"data",create:Mi,write:zi,ignoreRect:!0}),Di=function(e){return"getRootNode"in e?e.getRootNode():document},Pi=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],Hi=["css","csv","html","txt"],Ai={zip:"zip|compressed",epub:"application/epub+zip"},Ii=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Pi.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):Hi.includes(e)?"text/"+e:Ai[e]||""},Vi=function(e){return new Promise((function(t,n){var r=Ki(e);if(r.length&&!Yi(e))return t(r);Ri(e).then(t)}))},Yi=function(e){return!!e.files&&e.files.length>0},Ri=function(e){return new Promise((function(t,n){var r=(e.items?Array.from(e.items):[]).filter((function(e){return ji(e)})).map((function(e){return Ni(e)}));r.length?Promise.all(r).then((function(e){var n=[];e.forEach((function(e){n.push.apply(n,e)})),t(n.filter((function(e){return e})).map((function(e){return e._relativePath||(e._relativePath=e.webkitRelativePath),e})))})).catch(console.error):t(e.files?Array.from(e.files):[])}))},ji=function(e){if(Bi(e)){var t=Ui(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},Ni=function(e){return new Promise((function(t,n){Wi(e)?Fi(Ui(e)).then(t).catch(n):t([e.getAsFile()])}))},Fi=function(e){return new Promise((function(t,n){var r=[],i=0,o=0,a=function(){0===o&&0===i&&t(r)},s=function e(t){i++;var s=t.createReader(),c=function t(){s.readEntries((function(n){if(0===n.length)return i--,void a();n.forEach((function(t){t.isDirectory?e(t):(o++,t.file((function(e){var n=$i(e);t.fullPath&&(n._relativePath=t.fullPath),r.push(n),o--,a()})))})),t()}),n)};c()};s(e)}))},$i=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,r=Ii(kt(e.name));return r.length?(e=e.slice(0,e.size,r),e.name=n,e.lastModifiedDate=t,e):e},Wi=function(e){return Bi(e)&&(Ui(e)||{}).isDirectory},Bi=function(e){return"webkitGetAsEntry"in e},Ui=function(e){return e.webkitGetAsEntry()},Ki=function(e){var t=[];try{if(t=qi(e),t.length)return t;t=Gi(e)}catch(n){}return t},Gi=function(e){var t=e.getData("url");return"string"===typeof t&&t.length?[t]:[]},qi=function(e){var t=e.getData("text/html");if("string"===typeof t&&t.length){var n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},Ji=[],Xi=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},Qi=function(e,t,n){var r=eo(t),i={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return i.destroy=r.addListener(i),i},eo=function(e){var t=Ji.find((function(t){return t.element===e}));if(t)return t;var n=to(e);return Ji.push(n),n},to=function(e){var t=[],n={dragenter:ao,dragover:so,dragleave:lo,drop:co},r={};i(n,(function(n,i){r[n]=i(e,t),e.addEventListener(n,r[n],!1)}));var o={element:e,addListener:function(a){return t.push(a),function(){t.splice(t.indexOf(a),1),0===t.length&&(Ji.splice(Ji.indexOf(o),1),i(n,(function(t){e.removeEventListener(t,r[t],!1)})))}}};return o},no=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)},ro=function(e,t){var n=Di(t),r=no(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)},io=null,oo=function(e,t){try{e.dropEffect=t}catch(n){}},ao=function(e,t){return function(e){e.preventDefault(),io=e.target,t.forEach((function(t){var n=t.element,r=t.onenter;ro(e,n)&&(t.state="enter",r(Xi(e)))}))}},so=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Vi(n).then((function(r){var i=!1;t.some((function(t){var o=t.filterElement,a=t.element,s=t.onenter,c=t.onexit,l=t.ondrag,u=t.allowdrop;oo(n,"copy");var d=u(r);if(d)if(ro(e,a)){if(i=!0,null===t.state)return t.state="enter",void s(Xi(e));if(t.state="over",o&&!d)return void oo(n,"none");l(Xi(e))}else o&&!i&&oo(n,"none"),t.state&&(t.state=null,c(Xi(e)));else oo(n,"none")}))}))}},co=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Vi(n).then((function(n){t.forEach((function(t){var r=t.filterElement,i=t.element,o=t.ondrop,a=t.onexit,s=t.allowdrop;if(t.state=null,!r||ro(e,i))return s(n)?void o(Xi(e),n):a(Xi(e))}))}))}},lo=function(e,t){return function(e){io===e.target&&t.forEach((function(t){var n=t.onexit;t.state=null,n(Xi(e))}))}},uo=function(e,t,n){e.classList.add("filepond--hopper");var r=n.catchesDropsOnPage,i=n.requiresDropOnElement,o=n.filterItems,a=void 0===o?function(e){return e}:o,s=Qi(e,r?document.documentElement:e,i),c="",l="";s.allowdrop=function(e){return t(a(e))},s.ondrop=function(e,n){var r=a(n);t(r)?(l="drag-drop",u.onload(r,e)):u.ondragend(e)},s.ondrag=function(e){u.ondrag(e)},s.onenter=function(e){l="drag-over",u.ondragstart(e)},s.onexit=function(e){l="drag-exit",u.ondragend(e)};var u={updateHopperState:function(){c!==l&&(e.dataset.hopperState=l,c=l)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){s.destroy()}};return u},ho=!1,fo=[],po=function(e){var t=document.activeElement;if(t&&/textarea|input/i.test(t.nodeName)){var n=!1,r=t;while(r!==document.body){if(r.classList.contains("filepond--root")){n=!0;break}r=r.parentNode}if(!n)return}Vi(e.clipboardData).then((function(e){e.length&&fo.forEach((function(t){return t(e)}))}))},mo=function(e){fo.includes(e)||(fo.push(e),ho||(ho=!0,document.addEventListener("paste",po)))},vo=function(e){Ae(fo,fo.indexOf(e)),0===fo.length&&(document.removeEventListener("paste",po),ho=!1)},yo=function(){var e=function(e){t.onload(e)},t={destroy:function(){vo(e)},onload:function(){}};return mo(e),t},go=function(e){var t=e.root,n=e.props;t.element.id="filepond--assistant-"+n.id,a(t.element,"role","status"),a(t.element,"aria-live","polite"),a(t.element,"aria-relevant","additions")},_o=null,bo=null,Mo=[],wo=function(e,t){e.element.textContent=t},ko=function(e){e.element.textContent=""},Lo=function(e,t,n){var r=e.query("GET_TOTAL_ITEMS");wo(e,n+" "+t+", "+r+" "+(1===r?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(bo),bo=setTimeout((function(){ko(e)}),1500)},Co=function(e){return e.element.parentNode.contains(document.activeElement)},To=function(e){var t=e.root,n=e.action;if(Co(t)){t.element.textContent="";var r=t.query("GET_ITEM",n.id);Mo.push(r.filename),clearTimeout(_o),_o=setTimeout((function(){Lo(t,Mo.join(", "),t.query("GET_LABEL_FILE_ADDED")),Mo.length=0}),750)}},xo=function(e){var t=e.root,n=e.action;if(Co(t)){var r=n.item;Lo(t,r.filename,t.query("GET_LABEL_FILE_REMOVED"))}},So=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename,o=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");wo(t,i+" "+o)},Oo=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename,o=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");wo(t,i+" "+o)},Eo=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename;wo(t,n.status.main+" "+i+" "+n.status.sub)},zo=j({create:go,ignoreRect:!0,ignoreRectUpdate:!0,write:F({DID_LOAD_ITEM:To,DID_REMOVE_ITEM:xo,DID_COMPLETE_ITEM_PROCESSING:So,DID_ABORT_ITEM_PROCESSING:Oo,DID_REVERT_ITEM_PROCESSING:Oo,DID_THROW_ITEM_REMOVE_ERROR:Eo,DID_THROW_ITEM_LOAD_ERROR:Eo,DID_THROW_ITEM_INVALID:Eo,DID_THROW_ITEM_PROCESSING_ERROR:Eo}),tag:"span",name:"assistant"}),Zo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(new RegExp(t+".","g"),(function(e){return e.charAt(1).toUpperCase()}))},Do=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Date.now(),i=null;return function(){for(var o=arguments.length,a=new Array(o),s=0;s2*S)for(var O=x.length,E=O-10,z=0,Z=O;Z>=E;Z--)if(x[Z]===x[Z-2]&&z++,z>=S)return;l.scalable=!1,l.height=T;var D=T-b-(w-y.bottom)-(p?M:0);g.visual>D?c.overflow=D:c.overflow=null,t.height=T}else if(i.fixedHeight){l.scalable=!1;var P=i.fixedHeight-b-(w-y.bottom)-(p?M:0);g.visual>P?c.overflow=P:c.overflow=null}else if(i.cappedHeight){var H=k>=i.cappedHeight,A=Math.min(i.cappedHeight,k);l.scalable=!0,l.height=H?A:A-y.top-y.bottom;var I=A-b-(w-y.bottom)-(p?M:0);k>i.cappedHeight&&g.visual>I?c.overflow=I:c.overflow=null,t.height=Math.min(i.cappedHeight,L-y.top-y.bottom)}else{var V=h>0?y.top+y.bottom:0;l.scalable=!0,l.height=Math.max(_,k-V),t.height=Math.max(_,L-V)}t.ref.credits&&l.heightCurrent&&(t.ref.credits.style.transform="translateY("+l.heightCurrent+"px)")}},Vo=function(e){var t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},Yo=function(e){var t=0,n=0,r=e.ref.list,i=r.childViews[0],o=i.childViews.filter((function(e){return e.rect.element.height})),a=e.query("GET_ACTIVE_ITEMS").map((function(e){return o.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));if(0===a.length)return{visual:t,bounds:n};var s=i.rect.element.width,c=Er(i,a,r.dragCoordinates),l=a[0].rect.element,u=l.marginTop+l.marginBottom,d=l.marginLeft+l.marginRight,h=l.width+d,f=l.height+u,p="undefined"!==typeof c&&c>=0?1:0,m=a.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,v=a.length+p+m,y=Or(s,h);return 1===y?a.forEach((function(e){var r=e.rect.element.height+u;n+=r,t+=r*e.opacity})):(n=Math.ceil(v/y)*f,t=n),{visual:t,bounds:n}},Ro=function(e){var t=e.ref.measureHeight||null,n=parseInt(e.style.maxHeight,10)||null,r=0===t?null:t;return{cappedHeight:n,fixedHeight:r}},jo=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),i=e.query("GET_TOTAL_ITEMS"),o=e.query("GET_MAX_FILES"),a=t.length;if(!r&&a>1)return!0;o=r||n?o:1;var s=re(o);return!!(s&&i+a>o)&&(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Ft("warning",0,"Max files")}),!0)},No=function(e,t,n){var r=e.childViews[0];return Er(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},Fo=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){var i=uo(e.element,(function(t){var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0},r=e.query("GET_DROP_VALIDATION");return!r||t.every((function(t){return Je("ALLOW_HOPPER_ITEM",t,{query:e.query}).every((function(e){return!0===e}))&&n(t)}))}),{filterItems:function(t){var n=e.query("GET_IGNORED_FILES");return t.filter((function(e){return!on(e)||!n.includes(e.name.toLowerCase())}))},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});i.onload=function(t,n){var r=e.ref.list.childViews[0],i=r.childViews.filter((function(e){return e.rect.element.height})),o=e.query("GET_ACTIVE_ITEMS").map((function(e){return i.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));qe("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(jo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:No(e.ref.list,o,n),interactionMethod:Te.DROP})})),e.dispatch("DID_DROP",{position:n}),e.dispatch("DID_END_DRAG",{position:n})},i.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},i.ondrag=Do((function(t){e.dispatch("DID_DRAG",{position:t})})),i.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=i,e.ref.drip=e.appendChildView(e.createChildView(_i))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},$o=function(e,t){var n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),i=n&&!r;i&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(si,Object.assign({},t,{onload:function(t){qe("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(jo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:Te.BROWSE})}))}})),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},Wo=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=yo(),e.ref.paster.onload=function(t){qe("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(jo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:Te.PASTE})}))}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},Bo=F({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;$o(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;Fo(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;Wo(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;Fo(t),Wo(t),$o(t,n);var r=t.query("GET_DISABLED");r?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),Uo=j({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:Ao,write:Io,destroy:function(e){var t=e.root;t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy(),t.element.removeEventListener("touchmove",Ho),t.element.removeEventListener("gesturestart",Ho)},mixins:{styles:["height"]}}),Ko=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null,r=et(),i=n(Me(r),[vt,Ce(r)],[_n,Le(r)]);i.dispatch("SET_OPTIONS",{options:e});var a=function(){document.hidden||i.dispatch("KICK")};document.addEventListener("visibilitychange",a);var s=null,c=!1,l=!1,u=null,d=null,h=function(){c||(c=!0),clearTimeout(s),s=setTimeout((function(){c=!1,u=null,d=null,l&&(l=!1,i.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",h);var f=Uo(i,{id:xe()}),p=!1,m=!1,v={_read:function(){c&&(d=window.innerWidth,u||(u=d),l||d===u||(i.dispatch("DID_START_RESIZE"),l=!0)),m&&p&&(p=null===f.element.offsetParent),p||(f._read(),m=f.rect.element.hidden)},_write:function(e){var t=i.processActionQueue().filter((function(e){return!/^SET_/.test(e.type)}));p&&!t.length||(b(t),p=f._write(e,t,l),Ne(i.query("GET_ITEMS")),p&&i.processDispatchQueue())}},y=function(e){return function(t){var n={type:e};if(!t)return n;if(t.hasOwnProperty("error")&&(n.error=t.error?Object.assign({},t.error):null),t.status&&(n.status=Object.assign({},t.status)),t.file&&(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var r=t.item?t.item:i.query("GET_ITEM",t.id);n.file=r?je(r):null}return t.items&&(n.items=t.items.map(je)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},g={DID_DESTROY:y("destroy"),DID_INIT:y("init"),DID_THROW_MAX_FILES:y("warning"),DID_INIT_ITEM:y("initfile"),DID_START_ITEM_LOAD:y("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:y("addfileprogress"),DID_LOAD_ITEM:y("addfile"),DID_THROW_ITEM_INVALID:[y("error"),y("addfile")],DID_THROW_ITEM_LOAD_ERROR:[y("error"),y("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[y("error"),y("removefile")],DID_PREPARE_OUTPUT:y("preparefile"),DID_START_ITEM_PROCESSING:y("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:y("processfileprogress"),DID_ABORT_ITEM_PROCESSING:y("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:y("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:y("processfiles"),DID_REVERT_ITEM_PROCESSING:y("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[y("error"),y("processfile")],DID_REMOVE_ITEM:y("removefile"),DID_UPDATE_ITEMS:y("updatefiles"),DID_ACTIVATE_ITEM:y("activatefile"),DID_REORDER_ITEMS:y("reorderfiles")},_=function(e){var t=Object.assign({pond:P},e);delete t.type,f.element.dispatchEvent(new CustomEvent("FilePond:"+e.type,{detail:t,bubbles:!0,cancelable:!0,composed:!0}));var n=[];e.hasOwnProperty("error")&&n.push(e.error),e.hasOwnProperty("file")&&n.push(e.file);var r=["type","error","file"];Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(t){return n.push(e[t])})),P.fire.apply(P,[e.type].concat(n));var o=i.query("GET_ON"+e.type.toUpperCase());o&&o.apply(void 0,n)},b=function(e){e.length&&e.filter((function(e){return g[e.type]})).forEach((function(e){var t=g[e.type];(Array.isArray(t)?t:[t]).forEach((function(t){"DID_INIT_ITEM"===e.type?_(t(e.data)):setTimeout((function(){_(t(e.data))}),0)}))}))},w=function(e){return i.dispatch("SET_OPTIONS",{options:e})},k=function(e){return i.query("GET_ACTIVE_ITEM",e)},L=function(e){return new Promise((function(t,n){i.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){S([{source:e,options:t}],{index:t.index}).then((function(e){return n(e&&e[0])})).catch(r)}))},T=function(e){return e.file&&e.id},x=function(e,t){return"object"!==typeof e||T(e)||t||(t=e,e=void 0),i.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===i.query("GET_ACTIVE_ITEM",e)},S=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t={};i(et(),(function(e,n){t[e]=n[0]}));var n=Ko(Object.assign({},t,{},e));return n},qo=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},Jo=function(e){return Zo(e.replace(/^data-/,""))},Xo=function e(t,n){i(n,(function(n,r){i(t,(function(e,i){var o=new RegExp(n),a=o.test(e);if(a&&(delete t[e],!1!==r))if(Q(r))t[r]=i;else{var s=r.group;he(r)&&!t[s]&&(t[s]={}),t[s][qo(e.replace(o,""))]=i}})),r.mapping&&e(t[r.group],r.mapping)}))},Qo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];i(e.attributes,(function(t){n.push(e.attributes[t])}));var r=n.filter((function(e){return e.name})).reduce((function(t,n){var r=a(e,n.name);return t[Jo(n.name)]=r===n.name||r,t}),{});return Xo(r,t),r},ea=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};Je("SET_ATTRIBUTE_TO_OPTION_MAP",n);var r=Object.assign({},t),i=Qo("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(i).forEach((function(e){he(i[e])?(he(r[e])||(r[e]={}),Object.assign(r[e],i[e])):r[e]=i[e]})),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map((function(e){return{source:e.value,options:{type:e.dataset.type}}})));var o=Go(r);return e.files&&Array.from(e.files).forEach((function(e){o.addFile(e)})),o.replaceElement(e),o},ta=function(){return t(arguments.length<=0?void 0:arguments[0])?ea.apply(void 0,arguments):Go.apply(void 0,arguments)},na=["fire","_read","_write"],ra=function(e){var t={};return Ye(e,t,na),t},ia=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,n){return t[n]}))},oa=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var i=xe();r.onmessage=function(e){e.data.id===i&&t(e.data.message)},r.postMessage({id:i,message:e},n)},terminate:function(){r.terminate(),URL.revokeObjectURL(n)}}},aa=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e}))},sa=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},ca=function(e){return sa(e,e.name)},la=[],ua=function(e){if(!la.includes(e)){la.push(e);var t=e({addFilter:Xe,utils:{Type:Ke,forin:i,isString:Q,isFile:on,toNaturalFileSize:Dn,replaceInString:ia,getExtensionFromFilename:kt,getFilenameWithoutExtension:nn,guesstimateMimeType:Ii,getFileFromBlob:xt,getFilenameFromURL:wt,createRoute:F,createWorker:oa,createView:j,createItemAPI:je,loadImage:aa,copyFile:ca,renameFile:sa,createBlob:Ot,applyFilterChain:qe,text:kn,getNumericAspectRatioFromString:it},views:{fileActionButton:Zn}});Qe(t.options)}},da=function(){return"[object OperaMini]"===Object.prototype.toString.call(window.operamini)},ha=function(){return"Promise"in window},fa=function(){return"slice"in Blob.prototype},pa=function(){return"URL"in window&&"createObjectURL"in window.URL},ma=function(){return"visibilityState"in document},va=function(){return"performance"in window},ya=function(){return"supports"in(window.CSS||{})},ga=function(){return/MSIE|Trident/.test(window.navigator.userAgent)},_a=function(){var e=m()&&!da()&&ma()&&ha()&&fa()&&pa()&&va()&&(ya()||ga());return function(){return e}}(),ba={apps:[]},Ma="filepond",wa=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=wa,e.destroy=wa,e.parse=wa,e.find=wa,e.registerPlugin=wa,e.getOptions=wa,e.setOptions=wa,_a()){N((function(){ba.apps.forEach((function(e){return e._read()}))}),(function(e){ba.apps.forEach((function(t){return t._write(e)}))}));var ka=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:_a,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener("DOMContentLoaded",t)};"loading"!==document.readyState?setTimeout((function(){return ka()}),0):document.addEventListener("DOMContentLoaded",ka);var La=function(){return i(et(),(function(t,n){e.OptionTypes[t]=n[1]}))};e.Status=Object.assign({},at),e.FileOrigin=Object.assign({},$e),e.FileStatus=Object.assign({},Fe),e.OptionTypes={},La(),e.create=function(){var t=ta.apply(void 0,arguments);return t.on("destroy",e.destroy),ba.apps.push(t),ra(t)},e.destroy=function(e){var t=ba.apps.findIndex((function(t){return t.isAttachedTo(e)}));if(t>=0){var n=ba.apps.splice(t,1)[0];return n.restoreElement(),!0}return!1},e.parse=function(t){var n=Array.from(t.querySelectorAll("."+Ma)),r=n.filter((function(e){return!ba.apps.find((function(t){return t.isAttachedTo(e)}))}));return r.map((function(t){return e.create(t)}))},e.find=function(e){var t=ba.apps.find((function(t){return t.isAttachedTo(e)}));return t?ra(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');var n=T(e),r=n.length>0?n[0]:"",o=x("%"+r+"%",t),s=o.name,l=o.value,u=!1,d=o.alias;d&&(r=d[0],M(n,b([0,1],d)));for(var h=1,f=!0;h=n.length){var g=c(l,p);f=!!g,l=f&&"get"in g&&!("originalValue"in g.get)?g.get:l[p]}else f=_(l,p),l=l[p];f&&!u&&(m[s]=l)}}return l}},84906:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(25251);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},25251:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},68416:function(e,t,n){"use strict";var r=n(3569);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},32685:function(e){"use strict";e.exports=r,e.exports.isMobile=r,e.exports["default"]=r;var t=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function r(e){e||(e={});var r=e.ua;if(r||"undefined"===typeof navigator||(r=navigator.userAgent),r&&r.headers&&"string"===typeof r.headers["user-agent"]&&(r=r.headers["user-agent"]),"string"!==typeof r)return!1;var i=e.tablet?n.test(r):t.test(r);return!i&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==r.indexOf("Macintosh")&&-1!==r.indexOf("Safari")&&(i=!0),i}},61329:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g&&n.g,(function(){"use strict";var e="3.7.2",t=e,n="function"===typeof atob,r="function"===typeof btoa,i="function"===typeof Buffer,o="function"===typeof TextDecoder?new TextDecoder:void 0,a="function"===typeof TextEncoder?new TextEncoder:void 0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=Array.prototype.slice.call(s),l=function(e){var t={};return e.forEach((function(e,n){return t[e]=n})),t}(c),u=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,d=String.fromCharCode.bind(String),h="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},f=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},p=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},m=function(e){for(var t,n,r,i,o="",a=e.length%3,s=0;s255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},v=r?function(e){return btoa(e)}:i?function(e){return Buffer.from(e,"binary").toString("base64")}:m,y=i?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,i=e.length;r>>6)+d(128|63&t):d(224|t>>>12&15)+d(128|t>>>6&63)+d(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return d(240|t>>>18&7)+d(128|t>>>12&63)+d(128|t>>>6&63)+d(128|63&t)},b=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,M=function(e){return e.replace(b,_)},w=i?function(e){return Buffer.from(e,"utf8").toString("base64")}:a?function(e){return y(a.encode(e))}:function(e){return v(M(e))},k=function(e,t){return void 0===t&&(t=!1),t?f(w(e)):w(e)},L=function(e){return k(e,!0)},C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,T=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return d(55296+(n>>>10))+d(56320+(1023&n));case 3:return d((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return d((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},x=function(e){return e.replace(C,T)},S=function(e){if(e=e.replace(/\s+/g,""),!u.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,i="",o=0;o>16&255):64===r?d(t>>16&255,t>>8&255):d(t>>16&255,t>>8&255,255&t);return i},O=n?function(e){return atob(p(e))}:i?function(e){return Buffer.from(e,"base64").toString("binary")}:S,E=i?function(e){return h(Buffer.from(e,"base64"))}:function(e){return h(O(e),(function(e){return e.charCodeAt(0)}))},z=function(e){return E(D(e))},Z=i?function(e){return Buffer.from(e,"base64").toString("utf8")}:o?function(e){return o.decode(E(e))}:function(e){return x(O(e))},D=function(e){return p(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},P=function(e){return Z(D(e))},H=function(e){if("string"!==typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},A=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},I=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,A(t))};e("fromBase64",(function(){return P(this)})),e("toBase64",(function(e){return k(this,e)})),e("toBase64URI",(function(){return k(this,!0)})),e("toBase64URL",(function(){return k(this,!0)})),e("toUint8Array",(function(){return z(this)}))},V=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,A(t))};e("toBase64",(function(e){return g(this,e)})),e("toBase64URI",(function(){return g(this,!0)})),e("toBase64URL",(function(){return g(this,!0)}))},Y=function(){I(),V()},R={version:e,VERSION:t,atob:O,atobPolyfill:S,btoa:v,btoaPolyfill:m,fromBase64:P,toBase64:k,encode:k,encodeURI:L,encodeURL:L,utob:M,btou:x,decode:P,isValid:H,fromUint8Array:g,toUint8Array:z,extendString:I,extendUint8Array:V,extendBuiltins:Y,Base64:{}};return Object.keys(R).forEach((function(e){return R.Base64[e]=R[e]})),R}))},30826:function(e,t,n){var r="Expected a function",i=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,f=d||h||Function("return this")(),p=Object.prototype,m=p.toString,v=Math.max,y=Math.min,g=function(){return f.Date.now()};function _(e,t,n){var i,o,a,s,c,l,u=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError(r);function p(t){var n=i,r=o;return i=o=void 0,u=t,s=e.apply(r,n),s}function m(e){return u=e,c=setTimeout(w,t),d?p(e):s}function _(e){var n=e-l,r=e-u,i=t-n;return h?y(i,a-r):i}function b(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||h&&r>=a}function w(){var e=g();if(b(e))return k(e);c=setTimeout(w,_(e))}function k(e){return c=void 0,f&&i?p(e):(i=o=void 0,s)}function C(){void 0!==c&&clearTimeout(c),u=0,i=l=o=c=void 0}function T(){return void 0===c?s:k(g())}function x(){var e=g(),n=b(e);if(i=arguments,o=this,l=e,n){if(void 0===c)return m(l);if(h)return c=setTimeout(w,t),p(l)}return void 0===c&&(c=setTimeout(w,t)),s}return t=L(t)||0,M(n)&&(d=!!n.leading,h="maxWait"in n,a=h?v(L(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),x.cancel=C,x.flush=T,x}function b(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(r);return M(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),_(e,t,{leading:i,maxWait:t,trailing:o})}function M(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){return!!e&&"object"==typeof e}function k(e){return"symbol"==typeof e||w(e)&&m.call(e)==o}function L(e){if("number"==typeof e)return e;if(k(e))return i;if(M(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=M(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?i:+e}e.exports=b},87269:function(e,t,n){var r=n(47758),i=n(29165),o=r(i,"DataView");e.exports=o},88987:function(e,t,n){var r=n(71519),i=n(82999),o=n(76111),a=n(50506),s=n(80845);function c(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t0&&n(u)?t>1?o(u,t-1,n,a,s):r(s,u):a||(s[s.length]=u)}return s}e.exports=o},91030:function(e,t,n){var r=n(29),i=r();e.exports=i},97499:function(e,t,n){var r=n(60399),i=n(77817);function o(e,t){t=r(t,e);var n=0,o=t.length;while(null!=e&&ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var o=Array(i);while(++r1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);while(++r-1?s[c?t[l]:l]:void 0}}e.exports=a},59211:function(e,t,n){var r=n(69143);function i(e){return r(e)?void 0:e}e.exports=i},34082:function(e,t,n){var r=n(47758),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},22684:function(e,t,n){var r=n(78188),i=n(84330),o=n(29880),a=1,s=2;function c(e,t,n,c,l,u){var d=n&a,h=e.length,f=t.length;if(h!=f&&!(d&&f>h))return!1;var p=u.get(e),m=u.get(t);if(p&&m)return p==t&&m==e;var v=-1,y=!0,g=n&s?new r:void 0;u.set(e,t),u.set(t,e);while(++v-1&&e%1==0&&e-1}e.exports=i},3564:function(e,t,n){var r=n(62718);function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},7140:function(e,t,n){var r=n(88987),i=n(175),o=n(35922);function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}e.exports=a},56504:function(e,t,n){var r=n(67707);function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},88833:function(e,t,n){var r=n(67707);function i(e){return r(this,e).get(e)}e.exports=i},80953:function(e,t,n){var r=n(67707);function i(e){return r(this,e).has(e)}e.exports=i},70724:function(e,t,n){var r=n(67707);function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},7523:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=t},78857:function(e){function t(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=t},45171:function(e,t,n){var r=n(34736),i=500;function o(e){var t=r(e,(function(e){return n.size===i&&n.clear(),e})),n=t.cache;return t}e.exports=o},37722:function(e,t,n){var r=n(47758),i=r(Object,"create");e.exports=i},14457:function(e,t,n){var r=n(75542),i=r(Object.keys,Object);e.exports=i},10814:function(e){function t(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=t},8478:function(e,t,n){e=n.nmd(e);var r=n(96476),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,c=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=c},57058:function(e){var t=Object.prototype,n=t.toString;function r(e){return n.call(e)}e.exports=r},75542:function(e){function t(e,t){return function(n){return e(t(n))}}e.exports=t},20323:function(e,t,n){var r=n(93501),i=Math.max;function o(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);while(++a0){if(++i>=t)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}e.exports=i},40551:function(e,t,n){var r=n(175);function i(){this.__data__=new r,this.size=0}e.exports=i},4090:function(e){function t(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=t},47694:function(e){function t(e){return this.__data__.get(e)}e.exports=t},86220:function(e){function t(e){return this.__data__.has(e)}e.exports=t},68958:function(e,t,n){var r=n(175),i=n(35922),o=n(9440),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length=t||n<0||y&&r>=d}function k(){var e=i();if(w(e))return L(e);f=setTimeout(k,M(e))}function L(e){return f=void 0,g&&l?_(e):(l=u=void 0,h)}function C(){void 0!==f&&clearTimeout(f),m=0,l=p=u=f=void 0}function T(){return void 0===f?h:L(i())}function x(){var e=i(),n=w(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return b(p);if(y)return clearTimeout(f),f=setTimeout(k,t),_(p)}return void 0===f&&(f=setTimeout(k,t)),h}return t=o(t)||0,r(n)&&(v=!!n.leading,y="maxWait"in n,d=y?s(o(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),x.cancel=C,x.flush=T,x}e.exports=l},42448:function(e){function t(e,t){return e===t||e!==e&&t!==t}e.exports=t},33170:function(e,t,n){var r=n(34715),i=n(33886),o=r(i);e.exports=o},33886:function(e,t,n){var r=n(92504),i=n(5673),o=n(20426),a=Math.max;function s(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:o(n);return c<0&&(c=a(s+c,0)),r(e,i(t,3),c)}e.exports=s},22612:function(e,t,n){var r=n(98768);function i(e){var t=null==e?0:e.length;return t?r(e,1):[]}e.exports=i},65439:function(e,t,n){var r=n(97499);function i(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}e.exports=i},56611:function(e,t,n){var r=n(45435),i=n(18554);function o(e,t){return null!=e&&i(e,t,r)}e.exports=o},28281:function(e,t,n){var r=n(71664),i=n(18554);function o(e,t){return null!=e&&i(e,t,r)}e.exports=o},48148:function(e){function t(e){return e}e.exports=t},30353:function(e,t,n){var r=n(84742),i=n(55073),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},24669:function(e){var t=Array.isArray;e.exports=t},47428:function(e,t,n){var r=n(92042),i=n(17216);function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},57348:function(e,t,n){var r=n(47428),i=n(55073);function o(e){return i(e)&&r(e)}e.exports=o},61563:function(e,t,n){e=n.nmd(e);var r=n(29165),i=n(84193),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o,c=s?r.Buffer:void 0,l=c?c.isBuffer:void 0,u=l||i;e.exports=u},92042:function(e,t,n){var r=n(80732),i=n(56813),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";function l(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==c}e.exports=l},17216:function(e){var t=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}e.exports=n},32924:function(e,t,n){var r=n(64033),i=n(58792),o=n(8478),a=o&&o.isMap,s=a?i(a):r;e.exports=s},46207:function(e){function t(e){return null==e}e.exports=t},56813:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},55073:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},69143:function(e,t,n){var r=n(80732),i=n(11389),o=n(55073),a="[object Object]",s=Function.prototype,c=Object.prototype,l=s.toString,u=c.hasOwnProperty,d=l.call(Object);function h(e){if(!o(e)||r(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}e.exports=h},97076:function(e,t,n){var r=n(37203),i=n(58792),o=n(8478),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},45380:function(e,t,n){var r=n(28264),i=n(58792),o=n(8478),a=o&&o.isSet,s=a?i(a):r;e.exports=s},16764:function(e,t,n){var r=n(80732),i=n(55073),o="[object Symbol]";function a(e){return"symbol"==typeof e||i(e)&&r(e)==o}e.exports=a},73806:function(e,t,n){var r=n(22882),i=n(58792),o=n(8478),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},50579:function(e,t,n){var r=n(79809),i=n(87473),o=n(47428);function a(e){return o(e)?r(e):i(e)}e.exports=a},37390:function(e,t,n){var r=n(79809),i=n(52506),o=n(47428);function a(e){return o(e)?r(e,!0):i(e)}e.exports=a},25674:function(e){function t(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=t},34736:function(e,t,n){var r=n(9440),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},67929:function(e,t,n){var r=n(97254),i=n(77991),o=i((function(e,t,n){r(e,t,n)}));e.exports=o},76668:function(e,t,n){var r=n(29165),i=function(){return r.Date.now()};e.exports=i},59245:function(e,t,n){var r=n(75697),i=n(67410),o=n(42933),a=n(60399),s=n(92434),c=n(59211),l=n(54874),u=n(21699),d=1,h=2,f=4,p=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),s(e,u(e),n),l&&(n=i(n,d|h|f,c));var p=t.length;while(p--)o(n,t[p]);return n}));e.exports=p},51798:function(e,t,n){var r=n(17498),i=n(71e3),o=n(2610),a=n(77817);function s(e){return o(e)?r(a(e)):i(e)}e.exports=s},35609:function(e,t,n){var r=n(85713);function i(e,t,n){return null==e?e:r(e,t,n)}e.exports=i},68036:function(e){function t(){return[]}e.exports=t},84193:function(e){function t(){return!1}e.exports=t},70986:function(e,t,n){var r=n(12448),i=1/0,o=17976931348623157e292;function a(e){if(!e)return 0===e?e:0;if(e=r(e),e===i||e===-i){var t=e<0?-1:1;return t*o}return e===e?e:0}e.exports=a},20426:function(e,t,n){var r=n(70986);function i(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}e.exports=i},12448:function(e,t,n){var r=n(33124),i=n(56813),o=n(16764),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;function d(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?a:+e}e.exports=d},85111:function(e,t,n){var r=n(92434),i=n(37390);function o(e){return r(e,i(e))}e.exports=o},8389:function(e,t,n){var r=n(73150);function i(e){return null==e?"":r(e)}e.exports=i},30534:function(){},92824:function(e,t,n){(function(e,t){t(n(15555))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},14562:function(e,t,n){(function(e,t){t(n(15555))})(0,(function(e){"use strict"; //! moment.js locale configuration