diff --git a/index.html b/index.html index 81f288d0..530a2753 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -LOCKING | 云建筑
\ No newline at end of file +LOCKING | 云建筑
\ No newline at end of file diff --git a/static/css/chunk-4627beac.c188f54a.css b/static/css/chunk-4627beac.c188f54a.css new file mode 100644 index 00000000..35e0894b --- /dev/null +++ b/static/css/chunk-4627beac.c188f54a.css @@ -0,0 +1 @@ +.rt-2[data-v-a9676b70]{top:2px!important}.rt-0[data-v-a9676b70]{top:0!important}.rt-4[data-v-a9676b70]{top:4px!important}.empty[data-v-a9676b70]{background-color:#eaeaea}.people-item[data-v-a9676b70]{display:flex;position:relative;z-index:9;box-sizing:border-box;text-align:center;width:64px;padding:0 0 8px 0}.people-item .people-wrap[data-v-a9676b70]{position:relative;top:4px;border-radius:50%;margin:0 auto;width:100%}.people-item .people[data-v-a9676b70]{border-radius:50%}.active-manager-mark .people-name[data-v-a9676b70]{top:-2px}.people-item .el-icon-plus[data-v-a9676b70]{display:block;text-align:center;height:48px;line-height:48px;font-size:24px;color:#999b9d}.proj-avatarface[data-v-a9676b70]{vertical-align:bottom;width:48px;height:48px;border-radius:50%;overflow:hidden;background-color:#f6f6f6}.people-name[data-v-a9676b70]{position:relative;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:16px;line-height:16px;color:#111315;font-size:12px;text-align:center;font-family:PingFangSC-Regular;margin:8px auto 0}.add-btn[data-v-a9676b70]{cursor:pointer;margin:0 4px}.stand-place[data-v-1def7049]{width:64px;height:72px}.extra-buttons[data-v-1def7049]{position:absolute;right:12px;top:4px}.extra-buttons .extra-button[data-v-1def7049]{position:relative}.extra-buttons .extra-button-icon[data-v-1def7049]{position:absolute;left:0;top:0;bottom:0;margin:auto 0}.add_nest[data-v-1def7049]{position:absolute;right:10px;bottom:-6px;z-index:9;width:64px;height:80px;box-sizing:border-box}.add_nest .add_nest_box[data-v-1def7049]{cursor:pointer;width:64px;height:64px;box-sizing:border-box;border:1px solid #7850ff;border-radius:8px}.add_nest .add_nest_box .el-icon-plus[data-v-1def7049]{font-size:24px;color:#7850ff}.add_nest .add_nest_box p[data-v-1def7049]{color:#7850ff;font-size:14px;text-align:center;margin-top:10px}.opacity-5[data-v-1def7049]{opacity:.5}.user-perm-text[data-v-1def7049]{margin:0 0 0 8px}.notclick[data-v-1def7049]{cursor:not-allowed!important;opacity:.5}.notclick .avtarface[data-v-1def7049]{cursor:not-allowed}.allopacity[data-v-1def7049]{opacity:1}.noManagerText[data-v-1def7049]{font-size:0}.active-folder .people-item[data-v-1def7049]{cursor:pointer}.folder-name[data-v-1def7049]{height:20px;line-height:20px;margin:0 0 6px 12px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.adjust-position[data-v-1def7049]{position:relative;left:4px}.folder-wrap[data-v-1def7049]{position:relative;padding:6px 0 0 0;margin:12px 0 0 0;border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)}.edit-btn[data-v-1def7049]{position:absolute;top:4px;right:4px;width:64px;height:24px;line-height:24px;font-size:14px;text-align:center;font-family:PingFangSC-Regular;color:#979797;border-radius:4px;background-color:#fff;border:.5px solid #979797;cursor:pointer}.adjust-margin[data-v-1def7049]{margin-bottom:0}.mb-6[data-v-1def7049]{margin:0 0 6px 0}.hori-line[data-v-58e87d7b]{border:.5px solid #eaeaea;margin:13px 0 0 0}.member-list[data-v-58e87d7b]{width:100%;min-width:375px;max-width:375px;background-color:#fcfcfc;border-top-left-radius:8px;border-top-right-radius:8px;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.member-list .top-title[data-v-58e87d7b]{height:50px;line-height:50px;padding:0 0 0 24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.member-list .search-bar[data-v-58e87d7b]{position:relative;margin:6px 15px 7px;padding:0 5px}.member-list .search-bar .search-icon[data-v-58e87d7b]{position:absolute;left:10px;width:22px;height:22px;background:url(/static/img/搜索.svg) 50%/100%;margin:4px 0}.member-list .search-bar .search-input[data-v-58e87d7b]{box-sizing:border-box;outline:none;width:100%;height:30px;padding:0 0 0 30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;cursor:not-allowed}.member-list .content-wrap[data-v-58e87d7b]{padding:0 0 0 8px;overflow-y:scroll;height:calc(100vh - 177px)}.member-list .content-wrap .company-title[data-v-58e87d7b]{margin:12px 0 10px 16px;height:22px;line-height:22px;color:#32323c;font-size:18px;text-align:left;font-family:PingFangSC-Regular}.member-list .content-wrap .dept-name[data-v-58e87d7b]{margin:0 0 0 16px;flex:1}.member-list .people-wrap[data-v-58e87d7b]{padding:0 0 40px 0}.search-input[data-v-58e87d7b]::-webkit-input-placeholder{font-size:14px;font-family:Courier New,Courier,monospace;color:rgba(0,0,0,.56);height:20px!important;line-height:20px!important}.user-info-item[data-v-58e87d7b]:hover{background-color:rgba(50,50,60,.1)}.user-info-item[data-v-58e87d7b]{display:flex;padding:0 16px;height:44px;line-height:44px;align-items:center;cursor:pointer;border-radius:8px}.user-info-item .avatar-img[data-v-58e87d7b]{width:32px;height:32px;border-radius:50%;margin:0 13px 0 0}.user-info-item .user-info-name[data-v-58e87d7b]{flex:1;font-size:14px;font-family:PingFangSC-Regular}.member-list .el-collapse-item__wrap{border-bottom:none!important}.dept-select-all-btn .el-checkbox__label{padding:0 0 0 6px!important;margin:0 8px 0 0}.member-list .el-collapse{border:none!important}.member-list .el-collapse-item__arrow{position:relative;left:2px}.el-checkbox.dept-select-all-btn{position:absolute;right:15px}.member-list .el-collapse-item__header{height:44px!important;line-height:44px!important;border:none!important;position:relative}.user-info-item .el-checkbox__inner{width:20px;height:20px;color:#cbcbce}.member-list .el-collapse-item__header{margin:0 4px 0 0!important}.check-all-wrap{display:flex;align-items:center;margin:0 10px 0 0}.check-all-wrap .checkbox{width:10px;height:10px;margin:0 6px 0 0}.checkbox{float:right;width:20px;height:20px;border:1px solid #cbcbce;border-radius:50%}.checkbox.checked{background-color:#7850ff}.member-list .app-header-content{background-color:#f8f8f8}.empty-people-tips{font-size:16px;text-align:center;margin:20px 0}.slot_btn[data-v-3f290ff7]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.set_position[data-v-3f290ff7]{position:relative;border-top-right-radius:8px;border-top-left-radius:8px;box-shadow:none}.template_info_title[data-v-3f290ff7]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf}.template_select_content[data-v-3f290ff7]{height:calc(100vh - 100px);overflow-y:scroll}.template_select_content .template_info[data-v-3f290ff7]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf;transition:all .3s;cursor:pointer}.template_select_content .template_info .template_info_name[data-v-3f290ff7]{margin-left:38px;font-size:14px}.template_select_content .template_info_extra[data-v-3f290ff7]{position:absolute;right:20px;font-size:14px;color:rgba(0,0,0,.56)}.template_select_content .template_info .check_box[data-v-3f290ff7]{display:inline-block;width:28px;height:28px;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);background-color:#cbcbce;box-shadow:undefined,inset 0 1px 3px 0 rgba(0,0,0,.15)}.template_select_content .template_info .check_box.checked[data-v-3f290ff7]{background-color:#7850ff;text-align:center;line-height:28px;color:#fff}.template_select_content .template_info .check_box.checked .el-icon-check[data-v-3f290ff7]{display:inline-block}.template_select_content .template_info .check_box .el-icon-check[data-v-3f290ff7]{display:none}.template_info[data-v-3f290ff7]:hover{background-color:rgba(50,50,60,.15)}.edit-template-btn[data-v-3f290ff7],.to-distwork-btn[data-v-3f290ff7]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.template_improve .summary-wrap[data-v-3f290ff7]{height:calc(100vh - 116px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#fcfcfc}.template_improve .summary-wrap .prop-value-input[data-v-3f290ff7]{width:80%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.item[data-v-3f290ff7]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.item .item-title[data-v-3f290ff7]{color:#62492f;width:24%;text-align:right}.item .item-value[data-v-3f290ff7]{margin:0 0 0 12px}.item .item-value[data-v-3f290ff7]:not(.cover-img-wrap){flex:1}.set-header-position[data-v-3f290ff7]{position:relative!important;color:#32323c!important;z-index:99}.adjust-title-position[data-v-3f290ff7]{position:relative;top:11px}.proj_manage[data-v-583a727d]{width:100%;height:100%;padding:0 64px;box-sizing:border-box}.proj_manage .proj_manage_content[data-v-583a727d]{width:100%;height:100%;position:relative}.projModule[data-v-583a727d]{width:50%;min-width:660px;height:100%;right:0;position:absolute;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.finish-edit-btn[data-v-583a727d]{position:relative;left:-24px;cursor:pointer;background-color:#7850ff;color:#fff;border-radius:8px;height:32px;line-height:32px;text-align:center;font-size:14px;padding:0 10px;margin:9px 0}.question[data-v-583a727d]{display:flex;align-items:center;position:relative;left:24px;width:100%;color:#4b4d4f;font-size:13px;text-align:left;font-family:PingFangSC-Regular}.question .ques-icon[data-v-583a727d]{display:inline-block;width:20px;height:20px;background:url(/static/img/了解工作负责人.svg);cursor:pointer}.question .ques-text[data-v-583a727d]{margin:0 0 0 8px}.manager-tips[data-v-583a727d]{position:absolute;top:8px;left:24px;right:24px;z-index:99;text-align:center;padding:0 24px;height:84px;border-radius:8px;border:1px solid #449aff;background-color:#fcfcfc}.manager-tips .close-icon[data-v-583a727d]{position:absolute;right:5px;top:5px;width:20px;height:20px;background:url(/static/img/了解负责人关闭.svg);cursor:pointer}.manager-tips .tips-text[data-v-583a727d]{margin:24px 0 0 0;color:#32323c;font-size:14px;font-family:PingFangSC-Regular}.content-wrap[data-v-583a727d]{display:flex;align-items:flex-start;justify-content:center;padding:0 64px;height:100%;background-color:#ebebeb}.content-wrap .graph-left-part .node-viewer[data-v-583a727d],.content-wrap .graph-left-part[data-v-583a727d]{height:100%}.content-wrap .graph-left-part[data-v-583a727d],.content-wrap .right-part[data-v-583a727d]{width:50%;min-width:480px;max-width:660px}.right-part[data-v-583a727d]{box-sizing:border-box;border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden;background-color:#fcfcfc;transition:width .5s ease;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.right-part .proj-desc[data-v-583a727d]{background-color:#fcfcfc;min-height:calc(100vh - 96px)}.right-part .proj-desc .title[data-v-583a727d]{position:relative;left:-24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.proj-desc-wrap[data-v-583a727d]{padding:0 24px;height:calc(100vh - 126px);overflow:scroll;background-color:#f8f8f8}.proj-desc-wrap.dialog-detail[data-v-583a727d]{height:auto;background:#fff}.proj-desc-wrap .cover-container[data-v-583a727d]{height:226px;margin:0 0 32px 0!important;border-radius:8px}.proj-desc-wrap .cover-container .cover-img-wrap[data-v-583a727d]{position:relative;width:293px;height:226px;overflow:hidden;border-radius:8px;box-shadow:0 7px 16px 0 rgba(0,0,0,.2)}.proj-desc-wrap .cover-container .cover-img-wrap .cover-img[data-v-583a727d]{position:absolute;top:50%;left:50%;height:100%;border-radius:8px;transform:translate(-50%,-50%)}.proj-desc-wrap .cover-container .edit-cover-btn[data-v-583a727d]{position:absolute;left:12px;bottom:12px;width:64px;height:28px;line-height:28px;border-radius:4px;background-color:#fff;border:.5px solid #979797;color:#32323c;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.proj-desc-wrap .item[data-v-583a727d]{display:flex;width:100%;margin:12px 0;font-size:14px;line-height:24px;font-family:PingFangSC-Regular;color:#32323c}.proj-desc-wrap .item .item-title[data-v-583a727d]{color:#62492f;width:24%;text-align:right}.proj-desc-wrap .item .item-value[data-v-583a727d]{position:relative;margin:0 0 0 12px}.proj-desc-wrap .item .item-value[data-v-583a727d]:not(.cover-img-wrap){flex:1;display:flex}.proj-desc-wrap .item .item-value.edit[data-v-583a727d]{display:inline-flex}.proj-desc-wrap .item .field-input[data-v-583a727d]{flex:1;width:140px;margin-right:10px;line-height:0}.proj-desc-wrap .item .field-input[data-v-583a727d] .el-input__inner{margin-top:0;height:24px;line-height:24px}.proj-desc-wrap .item .float-button[data-v-583a727d]{margin-left:10px}.proj-desc-wrap .proj-main-template+.item-value[data-v-583a727d]{position:relative;top:-2.5px;color:#32323c;font-size:18px}.nest-project-modal[data-v-583a727d] .el-dialog{overflow:hidden}.nest-project-modal[data-v-583a727d] .el-dialog__header{text-align:left;background-color:#f8f8f8;padding:15px 24px}.nest-project-modal-title[data-v-583a727d]{display:flex;font-size:20px;line-height:30px;justify-content:space-between}.nest-project-modal .remove-button[data-v-583a727d]{width:100%}.edit-template-btn[data-v-583a727d],.to-distwork-btn[data-v-583a727d]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.header-bottom-shadow[data-v-583a727d]:after{content:"";display:block;width:100%;height:30px;background:linear-gradient(rgba(0,0,0,.06),transparent)}.adjust-title-position[data-v-583a727d]{position:relative;top:11px}.distwork-page[data-v-583a727d]{position:relative}.right-part .part-wrap[data-v-583a727d]{padding:0 4px 0 12px;height:calc(100vh - 126px);overflow-y:scroll;background-color:#f8f8f8}.right-part .part-wrap .proj-manager-row[data-v-583a727d]{margin:0 0 8px 0}.right-part .part-wrap .only-manager-see[data-v-583a727d]:hover{border-radius:8px;background-color:rgba(50,50,60,.1)}.right-part .part-wrap .row-title[data-v-583a727d]{padding:6px 0 0 0;margin:10px 0 6px 12px;height:20px;line-height:20px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.template-summary[data-v-583a727d]{background-color:#f8f8f8}.template-summary .summary-wrap[data-v-583a727d]{height:calc(100vh - 142px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#f8f8f8}.template-summary .summary-wrap .prop-value-input[data-v-583a727d]{width:100%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.set-right-part-width[data-v-583a727d]{min-width:300px;width:63.768%!important;margin-right:10px}.set-personnel-list-width[data-v-583a727d]{min-width:375px;max-width:375px;width:36.231%!important;transition:width 2.5s ease}.set-header-position[data-v-583a727d]{position:relative!important;color:#32323c!important;z-index:99}.template-detail-btn[data-v-583a727d]{height:40px;line-height:40px;border-radius:8px;color:#32323c;background-color:#fff;border:.5px solid #979797;text-align:center;margin:15px 12px 8px;cursor:pointer}.proj-detail .app-header-center{font-size:20px}.proj-summary .back_title{color:#0c0d10;font-size:15px;font-family:PingFangSC-Regular}.proj-detail .right-part .app-header-back-btn{background:url(/static/img/yiyunicon.png) no-repeat -28px -84px!important}.plain-folder-list{padding:0 0 28px 0}.right-part .app-header-content{background-color:#f8f8f8}.manager-folder-wrap{border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)} \ No newline at end of file diff --git a/static/css/chunk-97877ad2.a1b04247.css b/static/css/chunk-5272defd.6de99914.css similarity index 100% rename from static/css/chunk-97877ad2.a1b04247.css rename to static/css/chunk-5272defd.6de99914.css diff --git a/static/css/chunk-559c8a4e.030e02ed.css b/static/css/chunk-559c8a4e.030e02ed.css deleted file mode 100644 index bc363d9c..00000000 --- a/static/css/chunk-559c8a4e.030e02ed.css +++ /dev/null @@ -1 +0,0 @@ -.black[data-v-373b66dc]{color:#fff}.white[data-v-373b66dc]{background-color:#fcfcfc;box-shadow:0 1px 2px 0 rgba(0,0,0,.2)}.app-header[data-v-373b66dc]{position:fixed;top:0;width:100%;z-index:2;height:50px;line-height:50px}.app-header-content[data-v-373b66dc]{box-sizing:border-box;display:flex;justify-content:space-between;height:100%;width:100%;padding:0 64px;font-size:16px}.app-header-content-right>div[data-v-373b66dc],.app-header-content-right>span[data-v-373b66dc]{margin-left:18px}.app-header-center[data-v-373b66dc]{position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;height:50px;line-height:50px}.app-header-back-btn[data-v-373b66dc]{position:absolute;left:36px;top:0;bottom:0;margin:auto 0}.black-bg-color[data-v-373b66dc]{background-color:#32323c}.rt-2[data-v-a9676b70]{top:2px!important}.rt-0[data-v-a9676b70]{top:0!important}.rt-4[data-v-a9676b70]{top:4px!important}.empty[data-v-a9676b70]{background-color:#eaeaea}.people-item[data-v-a9676b70]{display:flex;position:relative;z-index:9;box-sizing:border-box;text-align:center;width:64px;padding:0 0 8px 0}.people-item .people-wrap[data-v-a9676b70]{position:relative;top:4px;border-radius:50%;margin:0 auto;width:100%}.people-item .people[data-v-a9676b70]{border-radius:50%}.active-manager-mark .people-name[data-v-a9676b70]{top:-2px}.people-item .el-icon-plus[data-v-a9676b70]{display:block;text-align:center;height:48px;line-height:48px;font-size:24px;color:#999b9d}.proj-avatarface[data-v-a9676b70]{vertical-align:bottom;width:48px;height:48px;border-radius:50%;overflow:hidden;background-color:#f6f6f6}.people-name[data-v-a9676b70]{position:relative;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:16px;line-height:16px;color:#111315;font-size:12px;text-align:center;font-family:PingFangSC-Regular;margin:8px auto 0}.add-btn[data-v-a9676b70]{cursor:pointer;margin:0 4px}.icon-triangle-circle[data-v-dd2d6402]{position:relative;display:inline-block;vertical-align:top;width:1em;height:1em;box-sizing:border-box}.icon-triangle-circle .circle[data-v-dd2d6402]{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;box-sizing:border-box;top:12%;width:90%;height:90%;border-radius:50%;border:2px solid transparent}.icon-triangle-circle>i[data-v-dd2d6402]{position:absolute;width:32%;height:32%;border-radius:50%;box-sizing:border-box}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(2){top:0;left:0;right:0;margin:0 auto}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(3){bottom:0;left:0}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(4){bottom:0;right:0}.stand-place[data-v-1def7049]{width:64px;height:72px}.extra-buttons[data-v-1def7049]{position:absolute;right:12px;top:4px}.extra-buttons .extra-button[data-v-1def7049]{position:relative}.extra-buttons .extra-button-icon[data-v-1def7049]{position:absolute;left:0;top:0;bottom:0;margin:auto 0}.add_nest[data-v-1def7049]{position:absolute;right:10px;bottom:-6px;z-index:9;width:64px;height:80px;box-sizing:border-box}.add_nest .add_nest_box[data-v-1def7049]{cursor:pointer;width:64px;height:64px;box-sizing:border-box;border:1px solid #7850ff;border-radius:8px}.add_nest .add_nest_box .el-icon-plus[data-v-1def7049]{font-size:24px;color:#7850ff}.add_nest .add_nest_box p[data-v-1def7049]{color:#7850ff;font-size:14px;text-align:center;margin-top:10px}.opacity-5[data-v-1def7049]{opacity:.5}.user-perm-text[data-v-1def7049]{margin:0 0 0 8px}.notclick[data-v-1def7049]{cursor:not-allowed!important;opacity:.5}.notclick .avtarface[data-v-1def7049]{cursor:not-allowed}.allopacity[data-v-1def7049]{opacity:1}.noManagerText[data-v-1def7049]{font-size:0}.active-folder .people-item[data-v-1def7049]{cursor:pointer}.folder-name[data-v-1def7049]{height:20px;line-height:20px;margin:0 0 6px 12px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.adjust-position[data-v-1def7049]{position:relative;left:4px}.folder-wrap[data-v-1def7049]{position:relative;padding:6px 0 0 0;margin:12px 0 0 0;border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)}.edit-btn[data-v-1def7049]{position:absolute;top:4px;right:4px;width:64px;height:24px;line-height:24px;font-size:14px;text-align:center;font-family:PingFangSC-Regular;color:#979797;border-radius:4px;background-color:#fff;border:.5px solid #979797;cursor:pointer}.adjust-margin[data-v-1def7049]{margin-bottom:0}.mb-6[data-v-1def7049]{margin:0 0 6px 0}.hori-line[data-v-58e87d7b]{border:.5px solid #eaeaea;margin:13px 0 0 0}.member-list[data-v-58e87d7b]{width:100%;min-width:375px;max-width:375px;background-color:#fcfcfc;border-top-left-radius:8px;border-top-right-radius:8px;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.member-list .top-title[data-v-58e87d7b]{height:50px;line-height:50px;padding:0 0 0 24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.member-list .search-bar[data-v-58e87d7b]{position:relative;margin:6px 15px 7px;padding:0 5px}.member-list .search-bar .search-icon[data-v-58e87d7b]{position:absolute;left:10px;width:22px;height:22px;background:url(/static/img/搜索.svg) 50%/100%;margin:4px 0}.member-list .search-bar .search-input[data-v-58e87d7b]{box-sizing:border-box;outline:none;width:100%;height:30px;padding:0 0 0 30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;cursor:not-allowed}.member-list .content-wrap[data-v-58e87d7b]{padding:0 0 0 8px;overflow-y:scroll;height:calc(100vh - 177px)}.member-list .content-wrap .company-title[data-v-58e87d7b]{margin:12px 0 10px 16px;height:22px;line-height:22px;color:#32323c;font-size:18px;text-align:left;font-family:PingFangSC-Regular}.member-list .content-wrap .dept-name[data-v-58e87d7b]{margin:0 0 0 16px;flex:1}.member-list .people-wrap[data-v-58e87d7b]{padding:0 0 40px 0}.search-input[data-v-58e87d7b]::-webkit-input-placeholder{font-size:14px;font-family:Courier New,Courier,monospace;color:rgba(0,0,0,.56);height:20px!important;line-height:20px!important}.user-info-item[data-v-58e87d7b]:hover{background-color:rgba(50,50,60,.1)}.user-info-item[data-v-58e87d7b]{display:flex;padding:0 16px;height:44px;line-height:44px;align-items:center;cursor:pointer;border-radius:8px}.user-info-item .avatar-img[data-v-58e87d7b]{width:32px;height:32px;border-radius:50%;margin:0 13px 0 0}.user-info-item .user-info-name[data-v-58e87d7b]{flex:1;font-size:14px;font-family:PingFangSC-Regular}.member-list .el-collapse-item__wrap{border-bottom:none!important}.dept-select-all-btn .el-checkbox__label{padding:0 0 0 6px!important;margin:0 8px 0 0}.member-list .el-collapse{border:none!important}.member-list .el-collapse-item__arrow{position:relative;left:2px}.el-checkbox.dept-select-all-btn{position:absolute;right:15px}.member-list .el-collapse-item__header{height:44px!important;line-height:44px!important;border:none!important;position:relative}.user-info-item .el-checkbox__inner{width:20px;height:20px;color:#cbcbce}.member-list .el-collapse-item__header{margin:0 4px 0 0!important}.check-all-wrap{display:flex;align-items:center;margin:0 10px 0 0}.check-all-wrap .checkbox{width:10px;height:10px;margin:0 6px 0 0}.checkbox{float:right;width:20px;height:20px;border:1px solid #cbcbce;border-radius:50%}.checkbox.checked{background-color:#7850ff}.member-list .app-header-content{background-color:#f8f8f8}.empty-people-tips{font-size:16px;text-align:center;margin:20px 0}.slot_btn[data-v-3f290ff7]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.set_position[data-v-3f290ff7]{position:relative;border-top-right-radius:8px;border-top-left-radius:8px;box-shadow:none}.template_info_title[data-v-3f290ff7]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf}.template_select_content[data-v-3f290ff7]{height:calc(100vh - 100px);overflow-y:scroll}.template_select_content .template_info[data-v-3f290ff7]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf;transition:all .3s;cursor:pointer}.template_select_content .template_info .template_info_name[data-v-3f290ff7]{margin-left:38px;font-size:14px}.template_select_content .template_info_extra[data-v-3f290ff7]{position:absolute;right:20px;font-size:14px;color:rgba(0,0,0,.56)}.template_select_content .template_info .check_box[data-v-3f290ff7]{display:inline-block;width:28px;height:28px;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);background-color:#cbcbce;box-shadow:undefined,inset 0 1px 3px 0 rgba(0,0,0,.15)}.template_select_content .template_info .check_box.checked[data-v-3f290ff7]{background-color:#7850ff;text-align:center;line-height:28px;color:#fff}.template_select_content .template_info .check_box.checked .el-icon-check[data-v-3f290ff7]{display:inline-block}.template_select_content .template_info .check_box .el-icon-check[data-v-3f290ff7]{display:none}.template_info[data-v-3f290ff7]:hover{background-color:rgba(50,50,60,.15)}.edit-template-btn[data-v-3f290ff7],.to-distwork-btn[data-v-3f290ff7]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.template_improve .summary-wrap[data-v-3f290ff7]{height:calc(100vh - 116px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#fcfcfc}.template_improve .summary-wrap .prop-value-input[data-v-3f290ff7]{width:80%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.item[data-v-3f290ff7]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.item .item-title[data-v-3f290ff7]{color:#62492f;width:24%;text-align:right}.item .item-value[data-v-3f290ff7]{margin:0 0 0 12px}.item .item-value[data-v-3f290ff7]:not(.cover-img-wrap){flex:1}.set-header-position[data-v-3f290ff7]{position:relative!important;color:#32323c!important;z-index:99}.adjust-title-position[data-v-3f290ff7]{position:relative;top:11px}.proj_manage[data-v-551504ef]{width:100%;height:100%;padding:0 64px;box-sizing:border-box}.proj_manage .proj_manage_content[data-v-551504ef]{width:100%;height:100%;position:relative}.projModule[data-v-551504ef]{width:50%;min-width:660px;height:100%;right:0;position:absolute;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.finish-edit-btn[data-v-551504ef]{position:relative;left:-24px;cursor:pointer;background-color:#7850ff;color:#fff;border-radius:8px;height:32px;line-height:32px;text-align:center;font-size:14px;padding:0 10px;margin:9px 0}.question[data-v-551504ef]{display:flex;align-items:center;position:relative;left:24px;width:100%;color:#4b4d4f;font-size:13px;text-align:left;font-family:PingFangSC-Regular}.question .ques-icon[data-v-551504ef]{display:inline-block;width:20px;height:20px;background:url(/static/img/了解工作负责人.svg);cursor:pointer}.question .ques-text[data-v-551504ef]{margin:0 0 0 8px}.manager-tips[data-v-551504ef]{position:absolute;top:8px;left:24px;right:24px;z-index:99;text-align:center;padding:0 24px;height:84px;border-radius:8px;border:1px solid #449aff;background-color:#fcfcfc}.manager-tips .close-icon[data-v-551504ef]{position:absolute;right:5px;top:5px;width:20px;height:20px;background:url(/static/img/了解负责人关闭.svg);cursor:pointer}.manager-tips .tips-text[data-v-551504ef]{margin:24px 0 0 0;color:#32323c;font-size:14px;font-family:PingFangSC-Regular}.content-wrap[data-v-551504ef]{display:flex;align-items:flex-start;justify-content:center;padding:0 64px;height:100%;background-color:#ebebeb}.content-wrap .graph-left-part .node-viewer[data-v-551504ef],.content-wrap .graph-left-part[data-v-551504ef]{height:100%}.content-wrap .graph-left-part[data-v-551504ef],.content-wrap .right-part[data-v-551504ef]{width:50%;min-width:480px;max-width:660px}.right-part[data-v-551504ef]{box-sizing:border-box;border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden;background-color:#fcfcfc;transition:width .5s ease;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.right-part .proj-desc[data-v-551504ef]{background-color:#fcfcfc;min-height:calc(100vh - 96px)}.right-part .proj-desc .title[data-v-551504ef]{position:relative;left:-24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.proj-desc-wrap[data-v-551504ef]{padding:0 24px;height:calc(100vh - 126px);overflow:scroll;background-color:#f8f8f8}.proj-desc-wrap.dialog-detail[data-v-551504ef]{height:auto;background:#fff}.proj-desc-wrap .cover-container[data-v-551504ef]{height:226px;margin:0 0 32px 0!important;border-radius:8px}.proj-desc-wrap .cover-container .cover-img-wrap[data-v-551504ef]{position:relative;width:293px;height:226px;overflow:hidden;border-radius:8px;box-shadow:0 7px 16px 0 rgba(0,0,0,.2)}.proj-desc-wrap .cover-container .cover-img-wrap .cover-img[data-v-551504ef]{position:absolute;top:50%;left:50%;height:100%;border-radius:8px;transform:translate(-50%,-50%)}.proj-desc-wrap .cover-container .edit-cover-btn[data-v-551504ef]{position:absolute;left:12px;bottom:12px;width:64px;height:28px;line-height:28px;border-radius:4px;background-color:#fff;border:.5px solid #979797;color:#32323c;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.proj-desc-wrap .item[data-v-551504ef]{display:flex;width:100%;margin:12px 0;font-size:14px;line-height:24px;font-family:PingFangSC-Regular;color:#32323c}.proj-desc-wrap .item .item-title[data-v-551504ef]{color:#62492f;width:24%;text-align:right}.proj-desc-wrap .item .item-value[data-v-551504ef]{position:relative;margin:0 0 0 12px}.proj-desc-wrap .item .item-value[data-v-551504ef]:not(.cover-img-wrap){flex:1;display:flex}.proj-desc-wrap .item .item-value.edit[data-v-551504ef]{display:inline-flex}.proj-desc-wrap .item .field-input[data-v-551504ef]{flex:1;width:140px;margin-right:10px;line-height:0}.proj-desc-wrap .item .field-input[data-v-551504ef] .el-input__inner{margin-top:0;height:24px;line-height:24px}.proj-desc-wrap .item .float-button[data-v-551504ef]{margin-left:10px}.proj-desc-wrap .proj-main-template+.item-value[data-v-551504ef]{position:relative;top:-2.5px;color:#32323c;font-size:18px}.nest-project-modal[data-v-551504ef] .el-dialog__header{text-align:left;background-color:#f8f8f8;padding:15px 24px}.nest-project-modal-title[data-v-551504ef]{display:flex;font-size:20px;line-height:30px;justify-content:space-between}.nest-project-modal .remove-button[data-v-551504ef]{width:100%}.edit-template-btn[data-v-551504ef],.to-distwork-btn[data-v-551504ef]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.header-bottom-shadow[data-v-551504ef]:after{content:"";display:block;width:100%;height:30px;background:linear-gradient(rgba(0,0,0,.06),transparent)}.adjust-title-position[data-v-551504ef]{position:relative;top:11px}.distwork-page[data-v-551504ef]{position:relative}.right-part .part-wrap[data-v-551504ef]{padding:0 4px 0 12px;height:calc(100vh - 126px);overflow-y:scroll;background-color:#f8f8f8}.right-part .part-wrap .proj-manager-row[data-v-551504ef]{margin:0 0 8px 0}.right-part .part-wrap .only-manager-see[data-v-551504ef]:hover{border-radius:8px;background-color:rgba(50,50,60,.1)}.right-part .part-wrap .row-title[data-v-551504ef]{padding:6px 0 0 0;margin:10px 0 6px 12px;height:20px;line-height:20px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.template-summary[data-v-551504ef]{background-color:#f8f8f8}.template-summary .summary-wrap[data-v-551504ef]{height:calc(100vh - 142px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#f8f8f8}.template-summary .summary-wrap .prop-value-input[data-v-551504ef]{width:100%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.set-right-part-width[data-v-551504ef]{min-width:300px;width:63.768%!important;margin-right:10px}.set-personnel-list-width[data-v-551504ef]{min-width:375px;max-width:375px;width:36.231%!important;transition:width 2.5s ease}.set-header-position[data-v-551504ef]{position:relative!important;color:#32323c!important;z-index:99}.template-detail-btn[data-v-551504ef]{height:40px;line-height:40px;border-radius:8px;color:#32323c;background-color:#fff;border:.5px solid #979797;text-align:center;margin:15px 12px 8px;cursor:pointer}.proj-detail .app-header-center{font-size:20px}.proj-summary .back_title{color:#0c0d10;font-size:15px;font-family:PingFangSC-Regular}.proj-detail .right-part .app-header-back-btn{background:url(/static/img/yiyunicon.png) no-repeat -28px -84px!important}.plain-folder-list{padding:0 0 28px 0}.right-part .app-header-content{background-color:#f8f8f8}.manager-folder-wrap{border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)} \ No newline at end of file diff --git a/static/css/chunk-873c7c58.b4db7015.css b/static/css/chunk-7125e649.ca448ad7.css similarity index 65% rename from static/css/chunk-873c7c58.b4db7015.css rename to static/css/chunk-7125e649.ca448ad7.css index 35d98884..e60a44c1 100644 --- a/static/css/chunk-873c7c58.b4db7015.css +++ b/static/css/chunk-7125e649.ca448ad7.css @@ -1 +1 @@ -.search-wrap[data-v-f20ebcbc]{position:relative;z-index:2}.search-entry[data-v-f20ebcbc]{position:absolute;right:0;cursor:pointer;width:29px;height:29px}.set-high-index[data-v-f20ebcbc]{z-index:3}.search-bar[data-v-f20ebcbc]{position:relative;overflow:hidden;width:32px;height:32px;transition:width .15s ease-in}.search-bar .search-active-img[data-v-f20ebcbc],.search-bar .search-img[data-v-f20ebcbc]{width:29px;height:29px}.search-bar .search-input[data-v-f20ebcbc]{box-sizing:border-box;color:#32323c;height:30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;padding:0 32px}.search-bar .close-icon[data-v-f20ebcbc],.search-bar .search-icon[data-v-f20ebcbc]{position:absolute;top:50%;transform:translateY(-50%);width:22px;height:22px;cursor:pointer}.search-bar .search-icon[data-v-f20ebcbc]{left:7px;background:url(/static/img/搜索.svg) 50%/100%}.search-bar .close-icon[data-v-f20ebcbc]{right:5px;background:url(/static/img/删除.svg) 50%/100%}.hide-search-bar[data-v-f20ebcbc]{width:0}.show-search-bar[data-v-f20ebcbc]{width:235px}.adjust-workline-pos-client[data-v-7482bf93]{position:relative;top:-12px}.adjust-workline-pos-web[data-v-7482bf93]{position:relative;top:-2.5px}.flow-tabs[data-v-7482bf93]{position:relative}.flow-tabs .tabs-container[data-v-7482bf93]{display:flex;flex-wrap:nowrap;align-items:center}.flow-tabs .worklinkBtngroup button[data-v-7482bf93]{flex-shrink:0}.flow-tabs .nowfolder-wrap[data-v-7482bf93]{position:relative;display:flex;align-items:center;height:44px;line-height:44px;cursor:pointer}.flow-tabs .nowfolder-wrap .jump-icon-wrap[data-v-7482bf93]{width:20px;height:20px;border-radius:4px;background-color:#e1e1e2;margin:0 8px 0 12px;cursor:pointer}.flow-tabs .nowfolder-wrap .jump-icon[data-v-7482bf93]{width:100%;height:100%;vertical-align:top;border-radius:4px}.flow-tabs .has-next-node[data-v-7482bf93],.flow-tabs .has-prev-node[data-v-7482bf93]{width:20px;height:20px;border-radius:4px;background-color:#fafafa;margin:0 8px;cursor:pointer;overflow:hidden}.flow-tabs .next-icon[data-v-7482bf93],.flow-tabs .prev-icon[data-v-7482bf93]{width:100%;height:100%;vertical-align:top;cursor:pointer}.flow-tabs .prev-icon[data-v-7482bf93]{transform:rotate(90deg)}.flow-tabs .next-icon[data-v-7482bf93]{transform:rotate(-90deg)}.flow-tabs .now-folder-text[data-v-7482bf93]{max-width:157px}.flow-tabs .other-folder-text[data-v-7482bf93]{max-width:110px}.flow-tabs .use-ellipsis[data-v-7482bf93]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flow-tabs .hide-folder[data-v-7482bf93]{display:none}.flow-tabs .set-transition[data-v-7482bf93]{transition:transform .5s ease}.rt-2[data-v-6e81672d]{top:2px!important}.rt-0[data-v-6e81672d]{top:0!important}.rt-4[data-v-6e81672d]{top:4px!important}.empty[data-v-6e81672d]{background-color:#eaeaea}.people-item[data-v-6e81672d]{display:flex;position:relative;z-index:9;box-sizing:border-box;text-align:center;width:64px;padding:0 0 8px 0}.people-item .people-wrap[data-v-6e81672d]{position:relative;top:4px;border-radius:50%;margin:0 auto;width:100%}.people-item .people[data-v-6e81672d]{border-radius:50%}.active-manager-mark .people-name[data-v-6e81672d]{top:-2px}.people-item .el-icon-plus[data-v-6e81672d]{display:block;text-align:center;height:48px;line-height:48px;font-size:24px;color:#999b9d}.proj-avatarface[data-v-6e81672d]{vertical-align:bottom;width:48px;height:48px;border-radius:50%;overflow:hidden;background-color:#f6f6f6}.people-name[data-v-6e81672d]{position:relative;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:16px;line-height:16px;color:#111315;font-size:12px;text-align:center;font-family:PingFangSC-Regular;margin:8px auto 0}.add-btn[data-v-6e81672d]{cursor:pointer;margin:0 4px}textarea[data-v-6507fe99]{resize:none;outline:none}.blur-bg[data-v-6507fe99]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(50,50,60,.32);z-index:10;filter:blur(15px) brightness(1.5) grayscale(.2) contrast(.8)}.commit-judge-box[data-v-6507fe99]{position:fixed;z-index:11;left:0;right:0;margin:0 auto;top:180px;width:680px;box-sizing:border-box;color:#f0f0f0}.commit-judge-box .commit-wrap[data-v-6507fe99]{height:248px;background-color:#f0f0f0;border-radius:8px}.commit-judge-box .title-bar[data-v-6507fe99]{display:flex;justify-content:space-between;padding:0 0 0 16px;height:48px;line-height:48px;font-size:18px;font-family:PingFangSC-Semibold;text-shadow:0 0 #32323c;border-top-left-radius:8px;border-top-right-radius:8px;color:#32323c;background-color:#fcfcfc}.commit-judge-box .title-bar .left-title[data-v-6507fe99]{display:flex}.commit-judge-box .title-bar .status-icon[data-v-6507fe99]{width:28px;height:28px;background-color:#4ae2a6;margin:10px 6px 10px 0}.commit-judge-box .close-icon[data-v-6507fe99]{position:relative;width:48px}.commit-judge-box .commit-operate-box[data-v-6507fe99]{display:flex;justify-content:space-between}.commit-judge-box .commit-operate-box .file-info[data-v-6507fe99]{width:136px;text-align:center;font-family:PingFangSC-Regular;margin:0 16px 0 0;cursor:default}.commit-judge-box .commit-operate-box .file-info .file-name[data-v-6507fe99]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all;text-overflow:ellipsis;font-size:14px;margin:0 0 4px 0;color:#32323c}.commit-judge-box .commit-operate-box .file-info .file-version[data-v-6507fe99]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;word-break:break-all;text-overflow:ellipsis;font-size:11px;height:13px;line-height:13px;color:#2869e6}.commit-judge-box .commit-operate-box .commit-part[data-v-6507fe99]{padding-top:20px}.commit-judge-box .commit-operate-box .commit-part .milestone-wrap[data-v-6507fe99]{display:flex;height:52px;align-items:center}.commit-judge-box .commit-operate-box .commit-part .milestone-logo[data-v-6507fe99]{width:20px;height:20px;margin:0 8px;border-radius:8px;background-color:#f0f0f0;border:.5px solid #d1d2d3}.commit-judge-box .commit-operate-box .commit-part .milestone-tips[data-v-6507fe99]{color:rgba(0,0,0,.56);font-size:13px;height:18px;line-height:18px;font-family:PingFangSC-Regular}.commit-judge-box .commit-operate-box .commit-part .remark-content[data-v-6507fe99]{box-sizing:border-box;width:512px;height:108px;overflow:auto;margin:0 16px 24px 0;padding:8px;border-radius:8px;color:rgba(0,0,0,.5);background-color:#e9e9eb;border:.5px solid #aeaeae}.commit-judge-box .commit-operate-box .commit-part .operate-btn[data-v-6507fe99]{display:flex;height:32px;line-height:32px;font-size:16px;text-align:center;font-family:PingFangSC-Regular;cursor:pointer}.commit-judge-box .commit-operate-box .commit-part .operate-btn .cancel-btn[data-v-6507fe99]{width:248px;margin:0 16px 0 0;border-radius:8px;color:#32323c;background-color:#fff;border:.5px solid #d1d2d3}.commit-judge-box .commit-operate-box .commit-part .operate-btn .commit-btn[data-v-6507fe99]{width:248px;border-radius:8px;color:#fff;background-color:#7850ff;box-shadow:0 4px 10px 0 rgba(0,0,0,.1),0 2px 5px 0 rgba(0,0,0,.16)}.commit-judge-box .look-coop-wrap[data-v-6507fe99]{text-align:center}.commit-judge-box .look-coop-target[data-v-6507fe99]{display:inline-block;margin:16px 0 9px 0;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Medium;cursor:pointer}.commit-judge-box .look-coop-target .look-icon[data-v-6507fe99]{vertical-align:top;width:26px}.commit-judge-box .coop-wrap[data-v-6507fe99]{border-radius:8px}.commit-judge-box .coop-wrap .coop-people-list[data-v-6507fe99]{max-height:240px;overflow:auto;background-color:#f0f0f0;border-bottom-left-radius:8px;border-bottom-right-radius:8px}.commit-judge-box .coop-wrap .coop-people-list .folder-item[data-v-6507fe99]{padding:6px 0 6px 12px}.commit-judge-box .coop-wrap .coop-people-list .work-name[data-v-6507fe99]{padding:5px 0 0 12px;height:20px;line-height:20px;color:#32323c;font-size:14px;font-family:PingFangSC-Regular}.commit-judge-box .coop-wrap .coop-people-list .coop-people[data-v-6507fe99]{padding:0 0 0 8px}.flex-1[data-v-6507fe99]{display:flex;flex-wrap:wrap;flex:1}.mt-16[data-v-6507fe99]{margin:16px 0 0 0}.coop-people-list[data-v-6507fe99]::-webkit-scrollbar,.remark-content[data-v-6507fe99]::-webkit-scrollbar{width:8px;height:8px;border-radius:4px}.coop-people-list[data-v-6507fe99]::-webkit-scrollbar-thumb,.remark-content[data-v-6507fe99]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#adadad}.coop-people-list[data-v-6507fe99]::-webkit-scrollbar-thumb:window-inactive,.remark-content[data-v-6507fe99]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.milestone-switch .el-switch__core{height:22px!important}.milestone-switch .el-switch__core:after{box-sizing:border-box!important;top:-4px!important;left:-13px;width:28px!important;height:28px!important}.lottie-svg[data-v-1f22bc7a]{display:inline-block}.lottie-svg[data-v-1f22bc7a] svg{position:static}.readytodownload-icon[data-v-1b637ced]{position:relative;top:40px;margin:0 auto}.progress-circle[data-v-1b637ced],.readytodownload-icon[data-v-1b637ced]{width:45px;height:45px;background-color:#fff;border-radius:50%}.progress-circle .bg-pic[data-v-1b637ced],.progress-circle[data-v-1b637ced],.readytodownload-icon img[data-v-1b637ced]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.progress-circle svg[data-v-1b637ced]{position:relative!important}.progress-circle svg .el-progress-circle__track[data-v-1b637ced]{stroke:#fff!important}.have-modified-icon[data-v-1b637ced]{background-color:#cccdd7}.function-disabled[data-v-1b637ced]{color:#adadad}.function-disabled[data-v-1b637ced]:hover{cursor:not-allowed;background-color:#ecf5ff;color:#a7a8b7}.filePreview[data-v-1b637ced]{position:absolute;width:200px;height:200px;top:0;left:50%;background-color:red}.have-modified-icon[data-v-1b637ced],.isonselect[data-v-1b637ced]{border-radius:50%}.yijianIcon[data-v-1b637ced]{color:#fff;line-height:24px;top:0;left:0}.gray[data-v-1b637ced]{filter:grayscale(100%);filter:gray}.file-extension-tip[data-v-1b637ced]{position:absolute;right:32px;top:98px;color:#32323c;font-size:18px;text-align:right;font-family:PingFangSC-Regular}.file-left-top-icon[data-v-1b637ced]{position:absolute;top:4px;left:3px}.file-left-top-icon.commit[data-v-1b637ced]{width:56px;height:28px;line-height:28px;border-radius:21px;background-color:#327dff;color:rgba(245,245,247,.7);font-size:14px;box-shadow:0 1px 2px hsla(0,0%,40%,.2)}.select-icon[data-v-1b637ced]{width:24px;height:24px;border-radius:50%;background-color:#cbcbce;box-shadow:inset 0 1px 3px 0 rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center}.select-icon.selected[data-v-1b637ced]{background-color:#7850ff}.select-icon .el-icon-check[data-v-1b637ced]{color:#fff}.loding-mask-parent{position:relative}.loding-mask-parent .el-loading-mask{z-index:1!important}.set-loding-mask-position{position:absolute;left:0;top:0;bottom:0;right:0}.yiyun_wenjian_list_add:hover{background-color:transparent!important;cursor:default}.loding-mask-parent .el-loading-mask{border-radius:8px;background-color:hsla(0,0%,100%,.15)}.loding-mask-parent .el-loading-spinner svg{position:relative}.loding-mask-parent .el-loading-spinner{margin-top:-18px!important}.remind-color{color:#2869e6!important}.folderRightMenu li[data-v-91acaac8]{white-space:nowrap}.isonselect[data-v-91acaac8]{border-radius:50%}.yijianIcon[data-v-91acaac8]{color:#fff;line-height:24px;top:0;left:0}.keep-sync[data-v-91acaac8]{width:40px;height:40px;position:relative;top:55px;border-radius:50%;-webkit-animation:keep-rotation-data-v-91acaac8 .8s linear infinite;animation:keep-rotation-data-v-91acaac8 .8s linear infinite}@-webkit-keyframes keep-rotation-data-v-91acaac8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes keep-rotation-data-v-91acaac8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.change-btn[data-v-d5ff7aba]{display:flex;width:100%;padding:2px 0;background-color:#d1d2d3;border-radius:4px}.change-btn .btn[data-v-d5ff7aba]{flex:1;height:28px;line-height:28px;cursor:pointer;margin:0 2px;text-align:center;font-size:14px}.change-btn .active-btn[data-v-d5ff7aba]{color:#32323c;border-radius:4px;background-color:#fcfcfc;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.right-line[data-v-d9a808d6]{width:1px;height:100px;background-color:#ebebeb}.temp-file-container[data-v-d9a808d6]{max-height:200px;overflow:scroll;background-color:#f1f1f1;padding:20px 10px 12px;text-align:left}.temp-file-container .temp-file[data-v-d9a808d6]{background-color:#fff}.temp-file-container .temp-file[data-v-d9a808d6]:hover{background-color:#d5d5d6}.temp-file-container[data-v-d9a808d6]::-webkit-scrollbar{width:8px;height:8px;border-radius:4px}.temp-file-container[data-v-d9a808d6]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#adadad}.temp-file-container[data-v-d9a808d6]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.title-head[data-v-d9a808d6]{padding:19px 24px}.title-head .title-text[data-v-d9a808d6]{color:#32323c;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.new-template-file-dialog .title-text[data-v-d9a808d6]{font-size:18px}.yiyunwenjian_imgbox[data-v-d9a808d6]{position:absolute;top:0;left:0;width:136px;height:200px;text-align:center}.new-btn[data-v-d9a808d6]{position:relative;width:64px;height:64px;margin:39px auto 33px;border-radius:16px;background-color:#fff;box-shadow:0 2px 5px 0 rgba(0,0,0,.2)}.new-btn .draw-line[data-v-d9a808d6]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:2px;background-color:#999b9d;width:30px}.new-btn .vert[data-v-d9a808d6]{transform:translate(-50%,-50%) rotate(90deg)}.newbtn-text[data-v-d9a808d6]{height:20px;line-height:20px;color:rgba(0,0,0,.56);font-size:14px;text-align:center;font-family:PingFangSC-Regular}.no-left-margin[data-v-d9a808d6]{margin-left:0!important}.titleBox[data-v-8e6310a4]{position:relative}.app-header-style[data-v-8e6310a4]{background-color:#f0f0f0}.titlebar_head[data-v-8e6310a4]{flex-direction:column}.yiyun_section_top[data-v-8e6310a4]{overflow:visible}.folder_breadcrumb[data-v-8e6310a4] .el-breadcrumb__item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:18px;display:inline-block;height:40px;line-height:40px}.folder_breadcrumb[data-v-8e6310a4] .el-breadcrumb__item .el-breadcrumb__separator{color:#a7a8b7}.folder_breadcrumb[data-v-8e6310a4] .el-breadcrumb__item:not(:last-child){cursor:pointer}[data-v-8e6310a4] .readytodownload-icon{position:relative;top:40px;margin:0 auto}[data-v-8e6310a4] .progress-circle,[data-v-8e6310a4] .readytodownload-icon{width:45px;height:45px;background-color:#fff;border-radius:50%}[data-v-8e6310a4] .progress-circle,[data-v-8e6310a4] .progress-circle .bg-pic,[data-v-8e6310a4] .readytodownload-icon img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-8e6310a4] .progress-circle svg{position:relative!important}[data-v-8e6310a4] .progress-circle svg .el-progress-circle__track{stroke:#fff!important}.filePreview[data-v-8e6310a4]{text-align:center}.filePreview video[data-v-8e6310a4]{width:820px;height:600px}.img-container[data-v-8e6310a4]{margin:0 auto}.temp-file-dialog .guide-template-file-name[data-v-8e6310a4]{color:#000;font-size:14px;font-family:PingFangSC-Regular;padding:16px;text-align:center}.conflit-message-box .el-icon-close:before{content:""!important}.set-bg[data-v-8e6310a4]{background-color:#f6f6f6}.operate-bar[data-v-8e6310a4]{width:162px;margin:28px auto 15px}.search-res-page-wrap[data-v-8e6310a4]{margin:0 64px;box-sizing:border-box}.out-wrap[data-v-8e6310a4]{height:calc(100vh - 131px);overflow:scroll}.out-wrap[data-v-8e6310a4]::-webkit-scrollbar{width:8px;border-radius:4px}.out-wrap[data-v-8e6310a4]::-webkit-scrollbar-thumb{border-radius:10px;height:10px;background-color:#adadad}.out-wrap[data-v-8e6310a4]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.no-file-tips[data-v-8e6310a4]{font-size:22px;text-align:center;margin:100px auto}.my-workline[data-v-8e6310a4]{text-align:center}.adjust-workline-pos-client[data-v-8e6310a4]{position:relative;top:-12px}.adjust-workline-pos-web[data-v-8e6310a4]{position:relative;top:-2.5px}.ml-4-mt-20[data-v-8e6310a4]{margin:20px 0 0 4px}.height-0[data-v-8e6310a4]{height:0}.layout_content2[data-v-8e6310a4]{height:calc(100vh - 64px);background-color:#f6f6f6}.coopBox-max-height[data-v-8e6310a4]{height:300px}.enable-select-button[data-v-8e6310a4]{position:relative;align-self:center;padding:0;margin-left:20px;padding:0 16px 0 28px;height:32px;border-radius:20px;background-color:rgba(17,17,17,.1);color:#32323c}.enable-select-button-icon[data-v-8e6310a4]{position:absolute;left:2px;top:2px;font-size:24px;color:#fff}.workspace-header .app-header-center[data-v-8e6310a4]{-webkit-app-region:no-drag}.set-workarea-height[data-v-8e6310a4]{height:calc(100vh - 364px)!important}.fullscreen[data-v-8e6310a4]{height:calc(100vh - 120px)}.fullscreen2[data-v-8e6310a4]{height:calc(100vh - 64px)}#workspace[data-v-8e6310a4]{position:relative}#workspace .yiyun_section_warp[data-v-8e6310a4]{margin:0 0 0 64px;overflow:visible!important}.public-folder-bottom[data-v-8e6310a4]{height:56px;min-height:auto}.bottom-button-container[data-v-8e6310a4]{height:100%;display:flex;justify-content:center;align-items:center}.bottom-button-container .bottom-button[data-v-8e6310a4]{position:relative;width:189px;height:40px;padding:0;border-radius:20px;background-color:rgba(17,17,17,.1);color:#32323c}.bottom-button-icon[data-v-8e6310a4]{position:absolute;left:0;top:0;font-size:36px;color:#fff}.layerout_H2[data-v-8e6310a4]{display:flex}.layerout_H2 .yiyun_section_warp[data-v-8e6310a4]{flex:1}.archive_box[data-v-8e6310a4]{flex:none;width:375px;height:100%;background:#f0f0f0;border-left:1px solid rgba(0,0,0,.2);display:flex;flex-direction:column}.archive_box_header[data-v-8e6310a4]{flex:none;height:56px;line-height:56px;background-color:#f8f8f8;border-bottom:1px solid rgba(0,0,0,.2);font-size:20px;color:#32323c;padding-left:24px}.archive_box_list_container[data-v-8e6310a4]{flex:1;overflow:auto}.archive_box_list_item[data-v-8e6310a4]{display:flex;padding:0 24px;flex-direction:row;justify-content:space-between;height:44px;border-bottom:1px solid rgba(0,0,0,.2);align-items:center}.archive_box_list_item>span[data-v-8e6310a4]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.archive_box_list_item_button[data-v-8e6310a4]{margin-left:10px}.archive_box_bottom[data-v-8e6310a4]{flex:none;display:flex;flex-direction:column;justify-content:center;align-items:center}.archive_box_bottom_button[data-v-8e6310a4]{flex:none;display:block;width:335px;margin:0;margin-bottom:10px}.auth-modal[data-v-8e6310a4] .el-dialog__body{padding-top:0}.auth-modal .auth-title[data-v-8e6310a4]{margin-bottom:8px}.auth-modal .auth-hint[data-v-8e6310a4]{font-size:16px;color:#32323c;text-align:center;margin-bottom:20px}.auth-modal .auth-textarea[data-v-8e6310a4]{margin-top:10px}.auth-modal .auth-textarea[data-v-8e6310a4] .el-textarea__inner{height:80px;resize:none;background-color:#f4f4f6;border:0;outline:0}.auth-modal .auth-textarea[data-v-8e6310a4] .el-textarea__inner::-moz-placeholder{color:#888;letter-spacing:0;font-size:14px;font-family:Microsoft YaHei}.auth-modal .auth-textarea[data-v-8e6310a4] .el-textarea__inner:-ms-input-placeholder{color:#888;letter-spacing:0;font-size:14px;font-family:Microsoft YaHei}.auth-modal .auth-textarea[data-v-8e6310a4] .el-textarea__inner::placeholder{color:#888;letter-spacing:0;font-size:14px;font-family:Microsoft YaHei}.list-file-item[data-v-6ba3dead]{display:flex;flex-direction:row;font-size:12px}.list-file-item-cell[data-v-6ba3dead]{height:32px;line-height:32px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.list-file-item-cell[data-v-6ba3dead]:not(:first-child):before{content:"";display:inline-block;width:1px;height:1px;margin-right:10px}.list-file-item-checkbox[data-v-6ba3dead]{margin-right:17px}.list-file-item-checkbox[data-v-6ba3dead] .el-checkbox__input{line-height:1em}.list-file-item-checkbox[data-v-6ba3dead] .el-checkbox__inner{width:20px;height:20px}.list-folder-item-header[data-v-f2299b76]{display:flex;flex-direction:row;border-bottom:1px solid rgba(0,0,0,.2)}.list-folder-item-body[data-v-f2299b76]{overflow:hidden}.list-folder-item-body-hide[data-v-f2299b76]{height:0}.list-folder-item-cell[data-v-f2299b76]{position:relative;height:32px;line-height:32px;font-size:12px}.list-folder-item-icon[data-v-f2299b76]{position:relative;top:5px;left:-1px;width:22px;margin-right:15px}.list-folder-item-checkall[data-v-f2299b76]{position:absolute;right:17px;top:0}.list-folder-item-lever[data-v-f2299b76]{cursor:pointer;position:relative}.list-folder-item-lever[data-v-f2299b76]:before{content:"";position:absolute;left:0;top:0;bottom:0;margin:auto 0;width:1px;height:25px;background-color:rgba(17,17,17,.1)}.list-folder-item-lever[data-v-f2299b76]:after{content:"";position:absolute;top:0;bottom:0;margin:auto 0;right:10px;width:0;height:0;border:6px solid transparent;border-top-color:#999b9d;border-bottom-width:0;transition:transform .1s linear;transform:rotate(-90deg)}.list-folder-item-expanded[data-v-f2299b76]:after{transform:rotate(0deg)}.black[data-v-373b66dc]{color:#fff}.white[data-v-373b66dc]{background-color:#fcfcfc;box-shadow:0 1px 2px 0 rgba(0,0,0,.2)}.app-header[data-v-373b66dc]{position:fixed;top:0;width:100%;z-index:2;height:50px;line-height:50px}.app-header-content[data-v-373b66dc]{box-sizing:border-box;display:flex;justify-content:space-between;height:100%;width:100%;padding:0 64px;font-size:16px}.app-header-content-right>div[data-v-373b66dc],.app-header-content-right>span[data-v-373b66dc]{margin-left:18px}.app-header-center[data-v-373b66dc]{position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;height:50px;line-height:50px}.app-header-back-btn[data-v-373b66dc]{position:absolute;left:36px;top:0;bottom:0;margin:auto 0}.black-bg-color[data-v-373b66dc]{background-color:#32323c}.archive-view[data-v-0b252784]{height:100%;padding:10px 40px 20px 48px;box-sizing:border-box}.archive-view .view-left[data-v-0b252784]{display:inline-flex;flex-direction:column;justify-content:space-between;vertical-align:top;width:312px;height:100%}.archive-view .view-left-title[data-v-0b252784]{font-size:18px;line-height:54px;color:#32323c;padding-left:12px}.archive-view .view-left-button[data-v-0b252784]{width:100%;box-sizing:border-box;margin-left:0;margin-bottom:10px}.archive-view .view-right[data-v-0b252784]{display:inline-block;vertical-align:top;width:calc(100% - 312px);height:100%;padding-left:24px;box-sizing:border-box}.archive-view .view-right-button[data-v-0b252784]{margin-left:calc(50% - 276px);box-shadow:0 4px 10px 0 rgba(0,0,0,.1),0 2px 5px 0 rgba(0,0,0,.16);margin-bottom:6px}.archive-view .table-like .table-header[data-v-0b252784]{display:flex;flex-direction:row;border-bottom:1px solid rgba(0,0,0,.2)}.archive-view .table-like .table-header .table-th[data-v-0b252784]{position:relative;box-sizing:border-box;color:#32323c;font-size:12px;height:44px;line-height:44px}.archive-view .table-like .table-header .table-th[data-v-0b252784]:first-child{flex:1;font-size:18px}.archive-view .table-like .table-header .table-th[data-v-0b252784]:nth-child(2),.archive-view .table-like .table-header .table-th[data-v-0b252784]:nth-child(3){flex:0 0 80px}.archive-view .table-like .table-header .table-th[data-v-0b252784]:nth-child(4){flex:0 0 180px}.archive-view .table-like .table-header .table-th[data-v-0b252784]:not(:first-child):after{content:"";position:absolute;left:0;top:0;bottom:0;margin:auto 0;width:1px;height:35px;background-color:rgba(17,17,17,.1)}.archive-view .table-like .table-header .table-th[data-v-0b252784]:not(:first-child):before{content:"";display:inline-block;width:1px;height:1px;margin-right:10px}.archive-view .table-like .table-node-header[data-v-0b252784]{display:flex;flex-direction:row;justify-content:space-between;height:44px;line-height:44px;border-bottom:1px solid rgba(0,0,0,.2);font-size:16px}.archive-view .table-like .table-node-header-checkbox[data-v-0b252784]{margin-left:10px}.archive-view .table-like .table-node-header-checkbox[data-v-0b252784] .el-checkbox__inner{width:20px;height:20px}.archive-view .table-like .table-node-header-th[data-v-0b252784]{flex:918}.archive-view .table-like .table-node-header-extra[data-v-0b252784]{flex:90}.panel[data-v-0b252784]:not(:first-child){border-top:1px solid rgba(0,0,0,.2)}.panel-wrapper[data-v-0b252784]{border-top-color:transparent;border-bottom-color:transparent}.panel[data-v-0b252784] .el-collapse-item__header,.panel[data-v-0b252784] .el-collapse-item__wrap{background-color:transparent;border-bottom:0}.panel[data-v-0b252784] .el-collapse-item__header{padding-left:24px;height:43px;line-height:43px}.panel .list-item[data-v-0b252784]{position:relative;padding-left:24px;height:44px;line-height:44px;cursor:pointer}.panel .list-item>span[data-v-0b252784]{position:relative;z-index:2}.panel .list-item[data-v-0b252784]:before{content:"";position:absolute;top:0;left:24px;right:0;height:1px;background-color:rgba(0,0,0,.2);transform:scaleY(.5)}.panel .list-item.disabled[data-v-0b252784]{cursor:default}.panel .list-item-active[data-v-0b252784]:after,.panel .list-item[data-v-0b252784]:not(.disabled):hover:after{content:"";position:absolute;z-index:1;top:0;bottom:0;left:10px;right:0;background-color:rgba(203,203,206,.5);border-radius:10px 0 0 10px}.auth-modal[data-v-0b252784] .el-dialog__body{padding-top:0}.auth-modal .auth-title[data-v-0b252784]{margin-bottom:8px}.auth-modal .auth-hint[data-v-0b252784]{font-size:16px;color:#32323c;text-align:center;margin-bottom:20px}.receiver-modal[data-v-0b252784] .el-dialog__header{display:none}.receiver-modal[data-v-0b252784] .el-dialog__body{padding:0;padding-bottom:20px}.receiver-modal .set-header-position[data-v-0b252784]{position:relative!important;color:#32323c!important;z-index:99;border-bottom:1px solid rgba(0,0,0,.2)}.receiver-modal .set-header-position[data-v-0b252784] .app-header-content{padding-left:24px!important}.receiver-modal .edit-template-btn[data-v-0b252784]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.receiver-modal .item[data-v-0b252784]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.receiver-modal .item .item-title[data-v-0b252784]{color:#62492f;width:24%;text-align:right}.receiver-modal .item .item-value[data-v-0b252784]{margin:0 0 0 12px}.receiver-modal .item .item-value[data-v-0b252784]:not(.cover-img-wrap){flex:1}.work-flow[data-v-9540a8e6]{height:100%;background-color:#f0f0f0}.work-flow .flow-container[data-v-9540a8e6]{height:calc(100% - 64px);margin-left:32px;width:calc(100% - 114px);display:flex;margin:auto;overflow-y:auto}.work-flow .flow-container-inner[data-v-9540a8e6]{display:flex;margin:0 auto;align-items:center}.section_item.section_item_aside_fl{overflow:hidden}.el-message-box--center .el-message-box__status.el-icon-warning{position:absolute;left:0}.youbian,.yywenjiantitle_text1{position:relative;top:2px}.youbian{color:#a7a8b7}.app-header-style{background-color:#f0f0f0}.app-header-style .app-header-content-right{display:flex}.titleBox[data-v-0b28e6e9]{position:relative}.app-header-style[data-v-0b28e6e9]{background-color:#f0f0f0}.titlebar_head[data-v-0b28e6e9]{flex-direction:column}.yiyun_section_top[data-v-0b28e6e9]{overflow:visible}.folder_breadcrumb[data-v-0b28e6e9] .el-breadcrumb__item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:18px;display:inline-block;height:40px;line-height:40px}.folder_breadcrumb[data-v-0b28e6e9] .el-breadcrumb__item .el-breadcrumb__separator{color:#a7a8b7}.folder_breadcrumb[data-v-0b28e6e9] .el-breadcrumb__item:not(:last-child){cursor:pointer}[data-v-0b28e6e9] .readytodownload-icon{position:relative;top:40px;margin:0 auto}[data-v-0b28e6e9] .progress-circle,[data-v-0b28e6e9] .readytodownload-icon{width:45px;height:45px;background-color:#fff;border-radius:50%}[data-v-0b28e6e9] .progress-circle,[data-v-0b28e6e9] .progress-circle .bg-pic,[data-v-0b28e6e9] .readytodownload-icon img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-0b28e6e9] .progress-circle svg{position:relative!important}[data-v-0b28e6e9] .progress-circle svg .el-progress-circle__track{stroke:#fff!important}.filePreview[data-v-0b28e6e9]{text-align:center}.filePreview video[data-v-0b28e6e9]{width:820px;height:600px}.img-container[data-v-0b28e6e9]{margin:0 auto}.temp-file-dialog .guide-template-file-name[data-v-0b28e6e9]{color:#000;font-size:14px;font-family:PingFangSC-Regular;padding:16px;text-align:center}.app-header-left-content .left-content-title[data-v-0b28e6e9]{color:#000;font-size:20px;margin-right:24px}.app-header-left-content .button-like[data-v-0b28e6e9]{position:relative;top:-6px;padding:6px 8px;margin-right:16px;color:#8f8f8f;font-size:14px;border-radius:8px;background-color:#fff}.temp-file-dialog .el-dialog{background-color:#fcfcfc}.temp-file-dialog .el-dialog .el-dialog__header{padding:19px 0}.temp-file-dialog .el-dialog .el-dialog__body{padding:0!important}.temp-file-dialog .el-dialog .el-dialog__body .el-form{padding:20px 0 0 0;background-color:#f1f1f1}.temp-file-dialog .el-dialog .el-dialog__body .el-form .el-form-item{margin:0 0 0 0}.temp-file-dialog .el-dialog .el-form-item__content{padding:0 16px}.temp-file-dialog .el-dialog .el-form-item__content .el-input__inner{background-color:#ddd;margin:0 0 20px 0}.temp-file-dialog .el-dialog .dialog-footer{display:flex;justify-content:space-between;padding:16px}.temp-file-dialog .el-dialog .el-dialog__footer{padding:0}.temp-file-dialog .el-dialog .el-dialog__footer .el-button{border-radius:8px}.set-bg[data-v-0b28e6e9]{background-color:#f6f6f6}.operate-bar[data-v-0b28e6e9]{width:162px;margin:28px auto 15px}.search-res-page-wrap[data-v-0b28e6e9]{margin:0 64px;box-sizing:border-box}.out-wrap[data-v-0b28e6e9]{height:calc(100vh - 131px);overflow:scroll}.out-wrap[data-v-0b28e6e9]::-webkit-scrollbar{width:8px;border-radius:4px}.out-wrap[data-v-0b28e6e9]::-webkit-scrollbar-thumb{border-radius:10px;height:10px;background-color:#adadad}.out-wrap[data-v-0b28e6e9]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.no-file-tips[data-v-0b28e6e9]{font-size:22px;text-align:center;margin:100px auto}.my-workline[data-v-0b28e6e9]{text-align:center}.adjust-workline-pos-client[data-v-0b28e6e9]{position:relative;top:-12px}.adjust-workline-pos-web[data-v-0b28e6e9]{position:relative;top:-2.5px}.ml-4-mt-20[data-v-0b28e6e9]{margin:20px 0 0 4px}.height-0[data-v-0b28e6e9]{height:0}.layout_content2[data-v-0b28e6e9]{height:calc(100vh - 64px)}.coopBox-max-height[data-v-0b28e6e9]{height:300px}.workspace-header .app-header-center[data-v-0b28e6e9]{-webkit-app-region:no-drag}.set-workarea-height[data-v-0b28e6e9]{height:calc(100vh - 364px)!important}#workspace .yiyun_section_warp[data-v-0b28e6e9]{margin:0 0 0 64px;overflow:visible!important}.conflit-message-box .el-icon-close:before{content:"\e6db"!important} \ No newline at end of file +.search-wrap[data-v-f20ebcbc]{position:relative;z-index:2}.search-entry[data-v-f20ebcbc]{position:absolute;right:0;cursor:pointer;width:29px;height:29px}.set-high-index[data-v-f20ebcbc]{z-index:3}.search-bar[data-v-f20ebcbc]{position:relative;overflow:hidden;width:32px;height:32px;transition:width .15s ease-in}.search-bar .search-active-img[data-v-f20ebcbc],.search-bar .search-img[data-v-f20ebcbc]{width:29px;height:29px}.search-bar .search-input[data-v-f20ebcbc]{box-sizing:border-box;color:#32323c;height:30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;padding:0 32px}.search-bar .close-icon[data-v-f20ebcbc],.search-bar .search-icon[data-v-f20ebcbc]{position:absolute;top:50%;transform:translateY(-50%);width:22px;height:22px;cursor:pointer}.search-bar .search-icon[data-v-f20ebcbc]{left:7px;background:url(/static/img/搜索.svg) 50%/100%}.search-bar .close-icon[data-v-f20ebcbc]{right:5px;background:url(/static/img/删除.svg) 50%/100%}.hide-search-bar[data-v-f20ebcbc]{width:0}.show-search-bar[data-v-f20ebcbc]{width:235px}.adjust-workline-pos-client[data-v-7482bf93]{position:relative;top:-12px}.adjust-workline-pos-web[data-v-7482bf93]{position:relative;top:-2.5px}.flow-tabs[data-v-7482bf93]{position:relative}.flow-tabs .tabs-container[data-v-7482bf93]{display:flex;flex-wrap:nowrap;align-items:center}.flow-tabs .worklinkBtngroup button[data-v-7482bf93]{flex-shrink:0}.flow-tabs .nowfolder-wrap[data-v-7482bf93]{position:relative;display:flex;align-items:center;height:44px;line-height:44px;cursor:pointer}.flow-tabs .nowfolder-wrap .jump-icon-wrap[data-v-7482bf93]{width:20px;height:20px;border-radius:4px;background-color:#e1e1e2;margin:0 8px 0 12px;cursor:pointer}.flow-tabs .nowfolder-wrap .jump-icon[data-v-7482bf93]{width:100%;height:100%;vertical-align:top;border-radius:4px}.flow-tabs .has-next-node[data-v-7482bf93],.flow-tabs .has-prev-node[data-v-7482bf93]{width:20px;height:20px;border-radius:4px;background-color:#fafafa;margin:0 8px;cursor:pointer;overflow:hidden}.flow-tabs .next-icon[data-v-7482bf93],.flow-tabs .prev-icon[data-v-7482bf93]{width:100%;height:100%;vertical-align:top;cursor:pointer}.flow-tabs .prev-icon[data-v-7482bf93]{transform:rotate(90deg)}.flow-tabs .next-icon[data-v-7482bf93]{transform:rotate(-90deg)}.flow-tabs .now-folder-text[data-v-7482bf93]{max-width:157px}.flow-tabs .other-folder-text[data-v-7482bf93]{max-width:110px}.flow-tabs .use-ellipsis[data-v-7482bf93]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flow-tabs .hide-folder[data-v-7482bf93]{display:none}.flow-tabs .set-transition[data-v-7482bf93]{transition:transform .5s ease}.rt-2[data-v-6e81672d]{top:2px!important}.rt-0[data-v-6e81672d]{top:0!important}.rt-4[data-v-6e81672d]{top:4px!important}.empty[data-v-6e81672d]{background-color:#eaeaea}.people-item[data-v-6e81672d]{display:flex;position:relative;z-index:9;box-sizing:border-box;text-align:center;width:64px;padding:0 0 8px 0}.people-item .people-wrap[data-v-6e81672d]{position:relative;top:4px;border-radius:50%;margin:0 auto;width:100%}.people-item .people[data-v-6e81672d]{border-radius:50%}.active-manager-mark .people-name[data-v-6e81672d]{top:-2px}.people-item .el-icon-plus[data-v-6e81672d]{display:block;text-align:center;height:48px;line-height:48px;font-size:24px;color:#999b9d}.proj-avatarface[data-v-6e81672d]{vertical-align:bottom;width:48px;height:48px;border-radius:50%;overflow:hidden;background-color:#f6f6f6}.people-name[data-v-6e81672d]{position:relative;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:16px;line-height:16px;color:#111315;font-size:12px;text-align:center;font-family:PingFangSC-Regular;margin:8px auto 0}.add-btn[data-v-6e81672d]{cursor:pointer;margin:0 4px}textarea[data-v-6507fe99]{resize:none;outline:none}.blur-bg[data-v-6507fe99]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(50,50,60,.32);z-index:10;filter:blur(15px) brightness(1.5) grayscale(.2) contrast(.8)}.commit-judge-box[data-v-6507fe99]{position:fixed;z-index:11;left:0;right:0;margin:0 auto;top:180px;width:680px;box-sizing:border-box;color:#f0f0f0}.commit-judge-box .commit-wrap[data-v-6507fe99]{height:248px;background-color:#f0f0f0;border-radius:8px}.commit-judge-box .title-bar[data-v-6507fe99]{display:flex;justify-content:space-between;padding:0 0 0 16px;height:48px;line-height:48px;font-size:18px;font-family:PingFangSC-Semibold;text-shadow:0 0 #32323c;border-top-left-radius:8px;border-top-right-radius:8px;color:#32323c;background-color:#fcfcfc}.commit-judge-box .title-bar .left-title[data-v-6507fe99]{display:flex}.commit-judge-box .title-bar .status-icon[data-v-6507fe99]{width:28px;height:28px;background-color:#4ae2a6;margin:10px 6px 10px 0}.commit-judge-box .close-icon[data-v-6507fe99]{position:relative;width:48px}.commit-judge-box .commit-operate-box[data-v-6507fe99]{display:flex;justify-content:space-between}.commit-judge-box .commit-operate-box .file-info[data-v-6507fe99]{width:136px;text-align:center;font-family:PingFangSC-Regular;margin:0 16px 0 0;cursor:default}.commit-judge-box .commit-operate-box .file-info .file-name[data-v-6507fe99]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all;text-overflow:ellipsis;font-size:14px;margin:0 0 4px 0;color:#32323c}.commit-judge-box .commit-operate-box .file-info .file-version[data-v-6507fe99]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;word-break:break-all;text-overflow:ellipsis;font-size:11px;height:13px;line-height:13px;color:#2869e6}.commit-judge-box .commit-operate-box .commit-part[data-v-6507fe99]{padding-top:20px}.commit-judge-box .commit-operate-box .commit-part .milestone-wrap[data-v-6507fe99]{display:flex;height:52px;align-items:center}.commit-judge-box .commit-operate-box .commit-part .milestone-logo[data-v-6507fe99]{width:20px;height:20px;margin:0 8px;border-radius:8px;background-color:#f0f0f0;border:.5px solid #d1d2d3}.commit-judge-box .commit-operate-box .commit-part .milestone-tips[data-v-6507fe99]{color:rgba(0,0,0,.56);font-size:13px;height:18px;line-height:18px;font-family:PingFangSC-Regular}.commit-judge-box .commit-operate-box .commit-part .remark-content[data-v-6507fe99]{box-sizing:border-box;width:512px;height:108px;overflow:auto;margin:0 16px 24px 0;padding:8px;border-radius:8px;color:rgba(0,0,0,.5);background-color:#e9e9eb;border:.5px solid #aeaeae}.commit-judge-box .commit-operate-box .commit-part .operate-btn[data-v-6507fe99]{display:flex;height:32px;line-height:32px;font-size:16px;text-align:center;font-family:PingFangSC-Regular;cursor:pointer}.commit-judge-box .commit-operate-box .commit-part .operate-btn .cancel-btn[data-v-6507fe99]{width:248px;margin:0 16px 0 0;border-radius:8px;color:#32323c;background-color:#fff;border:.5px solid #d1d2d3}.commit-judge-box .commit-operate-box .commit-part .operate-btn .commit-btn[data-v-6507fe99]{width:248px;border-radius:8px;color:#fff;background-color:#7850ff;box-shadow:0 4px 10px 0 rgba(0,0,0,.1),0 2px 5px 0 rgba(0,0,0,.16)}.commit-judge-box .look-coop-wrap[data-v-6507fe99]{text-align:center}.commit-judge-box .look-coop-target[data-v-6507fe99]{display:inline-block;margin:16px 0 9px 0;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Medium;cursor:pointer}.commit-judge-box .look-coop-target .look-icon[data-v-6507fe99]{vertical-align:top;width:26px}.commit-judge-box .coop-wrap[data-v-6507fe99]{border-radius:8px}.commit-judge-box .coop-wrap .coop-people-list[data-v-6507fe99]{max-height:240px;overflow:auto;background-color:#f0f0f0;border-bottom-left-radius:8px;border-bottom-right-radius:8px}.commit-judge-box .coop-wrap .coop-people-list .folder-item[data-v-6507fe99]{padding:6px 0 6px 12px}.commit-judge-box .coop-wrap .coop-people-list .work-name[data-v-6507fe99]{padding:5px 0 0 12px;height:20px;line-height:20px;color:#32323c;font-size:14px;font-family:PingFangSC-Regular}.commit-judge-box .coop-wrap .coop-people-list .coop-people[data-v-6507fe99]{padding:0 0 0 8px}.flex-1[data-v-6507fe99]{display:flex;flex-wrap:wrap;flex:1}.mt-16[data-v-6507fe99]{margin:16px 0 0 0}.coop-people-list[data-v-6507fe99]::-webkit-scrollbar,.remark-content[data-v-6507fe99]::-webkit-scrollbar{width:8px;height:8px;border-radius:4px}.coop-people-list[data-v-6507fe99]::-webkit-scrollbar-thumb,.remark-content[data-v-6507fe99]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#adadad}.coop-people-list[data-v-6507fe99]::-webkit-scrollbar-thumb:window-inactive,.remark-content[data-v-6507fe99]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.milestone-switch .el-switch__core{height:22px!important}.milestone-switch .el-switch__core:after{box-sizing:border-box!important;top:-4px!important;left:-13px;width:28px!important;height:28px!important}.lottie-svg[data-v-1f22bc7a]{display:inline-block}.lottie-svg[data-v-1f22bc7a] svg{position:static}.readytodownload-icon[data-v-1b637ced]{position:relative;top:40px;margin:0 auto}.progress-circle[data-v-1b637ced],.readytodownload-icon[data-v-1b637ced]{width:45px;height:45px;background-color:#fff;border-radius:50%}.progress-circle .bg-pic[data-v-1b637ced],.progress-circle[data-v-1b637ced],.readytodownload-icon img[data-v-1b637ced]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.progress-circle svg[data-v-1b637ced]{position:relative!important}.progress-circle svg .el-progress-circle__track[data-v-1b637ced]{stroke:#fff!important}.have-modified-icon[data-v-1b637ced]{background-color:#cccdd7}.function-disabled[data-v-1b637ced]{color:#adadad}.function-disabled[data-v-1b637ced]:hover{cursor:not-allowed;background-color:#ecf5ff;color:#a7a8b7}.filePreview[data-v-1b637ced]{position:absolute;width:200px;height:200px;top:0;left:50%;background-color:red}.have-modified-icon[data-v-1b637ced],.isonselect[data-v-1b637ced]{border-radius:50%}.yijianIcon[data-v-1b637ced]{color:#fff;line-height:24px;top:0;left:0}.gray[data-v-1b637ced]{filter:grayscale(100%);filter:gray}.file-extension-tip[data-v-1b637ced]{position:absolute;right:32px;top:98px;color:#32323c;font-size:18px;text-align:right;font-family:PingFangSC-Regular}.file-left-top-icon[data-v-1b637ced]{position:absolute;top:4px;left:3px}.file-left-top-icon.commit[data-v-1b637ced]{width:56px;height:28px;line-height:28px;border-radius:21px;background-color:#327dff;color:rgba(245,245,247,.7);font-size:14px;box-shadow:0 1px 2px hsla(0,0%,40%,.2)}.select-icon[data-v-1b637ced]{width:24px;height:24px;border-radius:50%;background-color:#cbcbce;box-shadow:inset 0 1px 3px 0 rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center}.select-icon.selected[data-v-1b637ced]{background-color:#7850ff}.select-icon .el-icon-check[data-v-1b637ced]{color:#fff}.loding-mask-parent{position:relative}.loding-mask-parent .el-loading-mask{z-index:1!important}.set-loding-mask-position{position:absolute;left:0;top:0;bottom:0;right:0}.yiyun_wenjian_list_add:hover{background-color:transparent!important;cursor:default}.loding-mask-parent .el-loading-mask{border-radius:8px;background-color:hsla(0,0%,100%,.15)}.loding-mask-parent .el-loading-spinner svg{position:relative}.loding-mask-parent .el-loading-spinner{margin-top:-18px!important}.remind-color{color:#2869e6!important}.folderRightMenu li[data-v-91acaac8]{white-space:nowrap}.isonselect[data-v-91acaac8]{border-radius:50%}.yijianIcon[data-v-91acaac8]{color:#fff;line-height:24px;top:0;left:0}.keep-sync[data-v-91acaac8]{width:40px;height:40px;position:relative;top:55px;border-radius:50%;-webkit-animation:keep-rotation-data-v-91acaac8 .8s linear infinite;animation:keep-rotation-data-v-91acaac8 .8s linear infinite}@-webkit-keyframes keep-rotation-data-v-91acaac8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes keep-rotation-data-v-91acaac8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.change-btn[data-v-d5ff7aba]{display:flex;width:100%;padding:2px 0;background-color:#d1d2d3;border-radius:4px}.change-btn .btn[data-v-d5ff7aba]{flex:1;height:28px;line-height:28px;cursor:pointer;margin:0 2px;text-align:center;font-size:14px}.change-btn .active-btn[data-v-d5ff7aba]{color:#32323c;border-radius:4px;background-color:#fcfcfc;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.right-line[data-v-d9a808d6]{width:1px;height:100px;background-color:#ebebeb}.temp-file-container[data-v-d9a808d6]{max-height:200px;overflow:scroll;background-color:#f1f1f1;padding:20px 10px 12px;text-align:left}.temp-file-container .temp-file[data-v-d9a808d6]{background-color:#fff}.temp-file-container .temp-file[data-v-d9a808d6]:hover{background-color:#d5d5d6}.temp-file-container[data-v-d9a808d6]::-webkit-scrollbar{width:8px;height:8px;border-radius:4px}.temp-file-container[data-v-d9a808d6]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#adadad}.temp-file-container[data-v-d9a808d6]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.title-head[data-v-d9a808d6]{padding:19px 24px}.title-head .title-text[data-v-d9a808d6]{color:#32323c;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.new-template-file-dialog .title-text[data-v-d9a808d6]{font-size:18px}.yiyunwenjian_imgbox[data-v-d9a808d6]{position:absolute;top:0;left:0;width:136px;height:200px;text-align:center}.new-btn[data-v-d9a808d6]{position:relative;width:64px;height:64px;margin:39px auto 33px;border-radius:16px;background-color:#fff;box-shadow:0 2px 5px 0 rgba(0,0,0,.2)}.new-btn .draw-line[data-v-d9a808d6]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:2px;background-color:#999b9d;width:30px}.new-btn .vert[data-v-d9a808d6]{transform:translate(-50%,-50%) rotate(90deg)}.newbtn-text[data-v-d9a808d6]{height:20px;line-height:20px;color:rgba(0,0,0,.56);font-size:14px;text-align:center;font-family:PingFangSC-Regular}.no-left-margin[data-v-d9a808d6]{margin-left:0!important}.titleBox[data-v-8e6310a4]{position:relative}.app-header-style[data-v-8e6310a4]{background-color:#f0f0f0}.titlebar_head[data-v-8e6310a4]{flex-direction:column}.yiyun_section_top[data-v-8e6310a4]{overflow:visible}.folder_breadcrumb[data-v-8e6310a4] .el-breadcrumb__item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:18px;display:inline-block;height:40px;line-height:40px}.folder_breadcrumb[data-v-8e6310a4] .el-breadcrumb__item .el-breadcrumb__separator{color:#a7a8b7}.folder_breadcrumb[data-v-8e6310a4] .el-breadcrumb__item:not(:last-child){cursor:pointer}[data-v-8e6310a4] .readytodownload-icon{position:relative;top:40px;margin:0 auto}[data-v-8e6310a4] .progress-circle,[data-v-8e6310a4] .readytodownload-icon{width:45px;height:45px;background-color:#fff;border-radius:50%}[data-v-8e6310a4] .progress-circle,[data-v-8e6310a4] .progress-circle .bg-pic,[data-v-8e6310a4] .readytodownload-icon img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-8e6310a4] .progress-circle svg{position:relative!important}[data-v-8e6310a4] .progress-circle svg .el-progress-circle__track{stroke:#fff!important}.filePreview[data-v-8e6310a4]{text-align:center}.filePreview video[data-v-8e6310a4]{width:820px;height:600px}.img-container[data-v-8e6310a4]{margin:0 auto}.temp-file-dialog .guide-template-file-name[data-v-8e6310a4]{color:#000;font-size:14px;font-family:PingFangSC-Regular;padding:16px;text-align:center}.conflit-message-box .el-icon-close:before{content:""!important}.set-bg[data-v-8e6310a4]{background-color:#f6f6f6}.operate-bar[data-v-8e6310a4]{width:162px;margin:28px auto 15px}.search-res-page-wrap[data-v-8e6310a4]{margin:0 64px;box-sizing:border-box}.out-wrap[data-v-8e6310a4]{height:calc(100vh - 131px);overflow:scroll}.out-wrap[data-v-8e6310a4]::-webkit-scrollbar{width:8px;border-radius:4px}.out-wrap[data-v-8e6310a4]::-webkit-scrollbar-thumb{border-radius:10px;height:10px;background-color:#adadad}.out-wrap[data-v-8e6310a4]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.no-file-tips[data-v-8e6310a4]{font-size:22px;text-align:center;margin:100px auto}.my-workline[data-v-8e6310a4]{text-align:center}.adjust-workline-pos-client[data-v-8e6310a4]{position:relative;top:-12px}.adjust-workline-pos-web[data-v-8e6310a4]{position:relative;top:-2.5px}.ml-4-mt-20[data-v-8e6310a4]{margin:20px 0 0 4px}.height-0[data-v-8e6310a4]{height:0}.layout_content2[data-v-8e6310a4]{height:calc(100vh - 64px);background-color:#f6f6f6}.coopBox-max-height[data-v-8e6310a4]{height:300px}.enable-select-button[data-v-8e6310a4]{position:relative;align-self:center;padding:0;margin-left:20px;padding:0 16px 0 28px;height:32px;border-radius:20px;background-color:rgba(17,17,17,.1);color:#32323c}.enable-select-button-icon[data-v-8e6310a4]{position:absolute;left:2px;top:2px;font-size:24px;color:#fff}.workspace-header .app-header-center[data-v-8e6310a4]{-webkit-app-region:no-drag}.set-workarea-height[data-v-8e6310a4]{height:calc(100vh - 364px)!important}.fullscreen[data-v-8e6310a4]{height:calc(100vh - 120px)}.fullscreen2[data-v-8e6310a4]{height:calc(100vh - 64px)}#workspace[data-v-8e6310a4]{position:relative}#workspace .yiyun_section_warp[data-v-8e6310a4]{margin:0 0 0 64px;overflow:visible!important}.public-folder-bottom[data-v-8e6310a4]{height:56px;min-height:auto}.bottom-button-container[data-v-8e6310a4]{height:100%;display:flex;justify-content:center;align-items:center}.bottom-button-container .bottom-button[data-v-8e6310a4]{position:relative;width:189px;height:40px;padding:0;border-radius:20px;background-color:rgba(17,17,17,.1);color:#32323c}.bottom-button-icon[data-v-8e6310a4]{position:absolute;left:0;top:0;font-size:36px;color:#fff}.layerout_H2[data-v-8e6310a4]{display:flex}.layerout_H2 .yiyun_section_warp[data-v-8e6310a4]{flex:1}.archive_box[data-v-8e6310a4]{flex:none;width:375px;height:100%;background:#f0f0f0;border-left:1px solid rgba(0,0,0,.2);display:flex;flex-direction:column}.archive_box_header[data-v-8e6310a4]{flex:none;height:56px;line-height:56px;background-color:#f8f8f8;border-bottom:1px solid rgba(0,0,0,.2);font-size:20px;color:#32323c;padding-left:24px}.archive_box_list_container[data-v-8e6310a4]{flex:1;overflow:auto}.archive_box_list_item[data-v-8e6310a4]{display:flex;padding:0 24px;flex-direction:row;justify-content:space-between;height:44px;border-bottom:1px solid rgba(0,0,0,.2);align-items:center}.archive_box_list_item>span[data-v-8e6310a4]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.archive_box_list_item_button[data-v-8e6310a4]{margin-left:10px}.archive_box_bottom[data-v-8e6310a4]{flex:none;display:flex;flex-direction:column;justify-content:center;align-items:center}.archive_box_bottom_button[data-v-8e6310a4]{flex:none;display:block;width:335px;margin:0;margin-bottom:10px}.auth-modal[data-v-8e6310a4] .el-dialog__body{padding-top:0}.auth-modal .auth-title[data-v-8e6310a4]{margin-bottom:8px}.auth-modal .auth-hint[data-v-8e6310a4]{font-size:16px;color:#32323c;text-align:center;margin-bottom:20px}.auth-modal .auth-textarea[data-v-8e6310a4]{margin-top:10px}.auth-modal .auth-textarea[data-v-8e6310a4] .el-textarea__inner{height:80px;resize:none;background-color:#f4f4f6;border:0;outline:0}.auth-modal .auth-textarea[data-v-8e6310a4] .el-textarea__inner::-moz-placeholder{color:#888;letter-spacing:0;font-size:14px;font-family:Microsoft YaHei}.auth-modal .auth-textarea[data-v-8e6310a4] .el-textarea__inner:-ms-input-placeholder{color:#888;letter-spacing:0;font-size:14px;font-family:Microsoft YaHei}.auth-modal .auth-textarea[data-v-8e6310a4] .el-textarea__inner::placeholder{color:#888;letter-spacing:0;font-size:14px;font-family:Microsoft YaHei}.list-file-item[data-v-6ba3dead]{display:flex;flex-direction:row;font-size:12px}.list-file-item-cell[data-v-6ba3dead]{height:32px;line-height:32px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.list-file-item-cell[data-v-6ba3dead]:not(:first-child):before{content:"";display:inline-block;width:1px;height:1px;margin-right:10px}.list-file-item-checkbox[data-v-6ba3dead]{margin-right:17px}.list-file-item-checkbox[data-v-6ba3dead] .el-checkbox__input{line-height:1em}.list-file-item-checkbox[data-v-6ba3dead] .el-checkbox__inner{width:20px;height:20px}.list-folder-item-header[data-v-f2299b76]{display:flex;flex-direction:row;border-bottom:1px solid rgba(0,0,0,.2)}.list-folder-item-body[data-v-f2299b76]{overflow:hidden}.list-folder-item-body-hide[data-v-f2299b76]{height:0}.list-folder-item-cell[data-v-f2299b76]{position:relative;height:32px;line-height:32px;font-size:12px}.list-folder-item-icon[data-v-f2299b76]{position:relative;top:5px;left:-1px;width:22px;margin-right:15px}.list-folder-item-checkall[data-v-f2299b76]{position:absolute;right:17px;top:0}.list-folder-item-lever[data-v-f2299b76]{cursor:pointer;position:relative}.list-folder-item-lever[data-v-f2299b76]:before{content:"";position:absolute;left:0;top:0;bottom:0;margin:auto 0;width:1px;height:25px;background-color:rgba(17,17,17,.1)}.list-folder-item-lever[data-v-f2299b76]:after{content:"";position:absolute;top:0;bottom:0;margin:auto 0;right:10px;width:0;height:0;border:6px solid transparent;border-top-color:#999b9d;border-bottom-width:0;transition:transform .1s linear;transform:rotate(-90deg)}.list-folder-item-expanded[data-v-f2299b76]:after{transform:rotate(0deg)}.archive-view[data-v-0b252784]{height:100%;padding:10px 40px 20px 48px;box-sizing:border-box}.archive-view .view-left[data-v-0b252784]{display:inline-flex;flex-direction:column;justify-content:space-between;vertical-align:top;width:312px;height:100%}.archive-view .view-left-title[data-v-0b252784]{font-size:18px;line-height:54px;color:#32323c;padding-left:12px}.archive-view .view-left-button[data-v-0b252784]{width:100%;box-sizing:border-box;margin-left:0;margin-bottom:10px}.archive-view .view-right[data-v-0b252784]{display:inline-block;vertical-align:top;width:calc(100% - 312px);height:100%;padding-left:24px;box-sizing:border-box}.archive-view .view-right-button[data-v-0b252784]{margin-left:calc(50% - 276px);box-shadow:0 4px 10px 0 rgba(0,0,0,.1),0 2px 5px 0 rgba(0,0,0,.16);margin-bottom:6px}.archive-view .table-like .table-header[data-v-0b252784]{display:flex;flex-direction:row;border-bottom:1px solid rgba(0,0,0,.2)}.archive-view .table-like .table-header .table-th[data-v-0b252784]{position:relative;box-sizing:border-box;color:#32323c;font-size:12px;height:44px;line-height:44px}.archive-view .table-like .table-header .table-th[data-v-0b252784]:first-child{flex:1;font-size:18px}.archive-view .table-like .table-header .table-th[data-v-0b252784]:nth-child(2),.archive-view .table-like .table-header .table-th[data-v-0b252784]:nth-child(3){flex:0 0 80px}.archive-view .table-like .table-header .table-th[data-v-0b252784]:nth-child(4){flex:0 0 180px}.archive-view .table-like .table-header .table-th[data-v-0b252784]:not(:first-child):after{content:"";position:absolute;left:0;top:0;bottom:0;margin:auto 0;width:1px;height:35px;background-color:rgba(17,17,17,.1)}.archive-view .table-like .table-header .table-th[data-v-0b252784]:not(:first-child):before{content:"";display:inline-block;width:1px;height:1px;margin-right:10px}.archive-view .table-like .table-node-header[data-v-0b252784]{display:flex;flex-direction:row;justify-content:space-between;height:44px;line-height:44px;border-bottom:1px solid rgba(0,0,0,.2);font-size:16px}.archive-view .table-like .table-node-header-checkbox[data-v-0b252784]{margin-left:10px}.archive-view .table-like .table-node-header-checkbox[data-v-0b252784] .el-checkbox__inner{width:20px;height:20px}.archive-view .table-like .table-node-header-th[data-v-0b252784]{flex:918}.archive-view .table-like .table-node-header-extra[data-v-0b252784]{flex:90}.panel[data-v-0b252784]:not(:first-child){border-top:1px solid rgba(0,0,0,.2)}.panel-wrapper[data-v-0b252784]{border-top-color:transparent;border-bottom-color:transparent}.panel[data-v-0b252784] .el-collapse-item__header,.panel[data-v-0b252784] .el-collapse-item__wrap{background-color:transparent;border-bottom:0}.panel[data-v-0b252784] .el-collapse-item__header{padding-left:24px;height:43px;line-height:43px}.panel .list-item[data-v-0b252784]{position:relative;padding-left:24px;height:44px;line-height:44px;cursor:pointer}.panel .list-item>span[data-v-0b252784]{position:relative;z-index:2}.panel .list-item[data-v-0b252784]:before{content:"";position:absolute;top:0;left:24px;right:0;height:1px;background-color:rgba(0,0,0,.2);transform:scaleY(.5)}.panel .list-item.disabled[data-v-0b252784]{cursor:default}.panel .list-item-active[data-v-0b252784]:after,.panel .list-item[data-v-0b252784]:not(.disabled):hover:after{content:"";position:absolute;z-index:1;top:0;bottom:0;left:10px;right:0;background-color:rgba(203,203,206,.5);border-radius:10px 0 0 10px}.auth-modal[data-v-0b252784] .el-dialog__body{padding-top:0}.auth-modal .auth-title[data-v-0b252784]{margin-bottom:8px}.auth-modal .auth-hint[data-v-0b252784]{font-size:16px;color:#32323c;text-align:center;margin-bottom:20px}.receiver-modal[data-v-0b252784] .el-dialog__header{display:none}.receiver-modal[data-v-0b252784] .el-dialog__body{padding:0;padding-bottom:20px}.receiver-modal .set-header-position[data-v-0b252784]{position:relative!important;color:#32323c!important;z-index:99;border-bottom:1px solid rgba(0,0,0,.2)}.receiver-modal .set-header-position[data-v-0b252784] .app-header-content{padding-left:24px!important}.receiver-modal .edit-template-btn[data-v-0b252784]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.receiver-modal .item[data-v-0b252784]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.receiver-modal .item .item-title[data-v-0b252784]{color:#62492f;width:24%;text-align:right}.receiver-modal .item .item-value[data-v-0b252784]{margin:0 0 0 12px}.receiver-modal .item .item-value[data-v-0b252784]:not(.cover-img-wrap){flex:1}.work-flow[data-v-d37cb1e8]{height:100%;background-color:#f0f0f0}.work-flow .flow-container[data-v-d37cb1e8]{height:calc(100% - 64px);margin-left:32px;width:calc(100% - 114px);display:flex;margin:auto;overflow-y:auto}.work-flow .flow-container-inner[data-v-d37cb1e8]{display:flex;margin:0 auto;align-items:center}.work-flow .nest-project-node[data-v-d37cb1e8]{background-color:#fff;text-overflow:ellipsis;white-space:nowrap}.work-flow .nest-project-node .worllistt2[data-v-d37cb1e8]{margin-left:4px;display:inline}.nest-project-modal[data-v-d37cb1e8] .el-dialog{overflow:hidden}.nest-project-modal[data-v-d37cb1e8] .el-dialog__header{text-align:left;background-color:#f8f8f8;padding:15px 24px}.nest-project-modal-title[data-v-d37cb1e8]{display:flex;font-size:20px;line-height:30px;justify-content:space-between}.nest-project-modal .remove-button[data-v-d37cb1e8]{width:100%}.dialog-detail[data-v-d37cb1e8]{padding:0 24px;background:#fff}.dialog-detail .cover-container[data-v-d37cb1e8]{height:226px;margin:0 0 32px 0!important;border-radius:8px}.dialog-detail .cover-container .cover-img-wrap[data-v-d37cb1e8]{position:relative;width:293px;height:226px;overflow:hidden;border-radius:8px;box-shadow:0 7px 16px 0 rgba(0,0,0,.2)}.dialog-detail .cover-container .cover-img-wrap .cover-img[data-v-d37cb1e8]{position:absolute;top:50%;left:50%;height:100%;border-radius:8px;transform:translate(-50%,-50%)}.dialog-detail .cover-container .edit-cover-btn[data-v-d37cb1e8]{position:absolute;left:12px;bottom:12px;width:64px;height:28px;line-height:28px;border-radius:4px;background-color:#fff;border:.5px solid #979797;color:#32323c;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.dialog-detail .item[data-v-d37cb1e8]{display:flex;width:100%;margin:12px 0;font-size:14px;line-height:24px;font-family:PingFangSC-Regular;color:#32323c}.dialog-detail .item .item-title[data-v-d37cb1e8]{color:#62492f;width:24%;text-align:right}.dialog-detail .item .item-value[data-v-d37cb1e8]{position:relative;margin:0 0 0 12px}.dialog-detail .item .item-value[data-v-d37cb1e8]:not(.cover-img-wrap){flex:1;display:flex}.dialog-detail .item .item-value.edit[data-v-d37cb1e8]{display:inline-flex}.dialog-detail .item .field-input[data-v-d37cb1e8]{flex:1;width:140px;margin-right:10px;line-height:0}.dialog-detail .item .field-input[data-v-d37cb1e8] .el-input__inner{margin-top:0;height:24px;line-height:24px}.dialog-detail .item .float-button[data-v-d37cb1e8]{margin-left:10px}.dialog-detail .proj-main-template+.item-value[data-v-d37cb1e8]{position:relative;top:-2.5px;color:#32323c;font-size:18px}.section_item.section_item_aside_fl{overflow:hidden}.el-message-box--center .el-message-box__status.el-icon-warning{position:absolute;left:0}.youbian,.yywenjiantitle_text1{position:relative;top:2px}.youbian{color:#a7a8b7}.app-header-style{background-color:#f0f0f0}.app-header-style .app-header-content-right{display:flex}.titleBox[data-v-0b28e6e9]{position:relative}.app-header-style[data-v-0b28e6e9]{background-color:#f0f0f0}.titlebar_head[data-v-0b28e6e9]{flex-direction:column}.yiyun_section_top[data-v-0b28e6e9]{overflow:visible}.folder_breadcrumb[data-v-0b28e6e9] .el-breadcrumb__item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:18px;display:inline-block;height:40px;line-height:40px}.folder_breadcrumb[data-v-0b28e6e9] .el-breadcrumb__item .el-breadcrumb__separator{color:#a7a8b7}.folder_breadcrumb[data-v-0b28e6e9] .el-breadcrumb__item:not(:last-child){cursor:pointer}[data-v-0b28e6e9] .readytodownload-icon{position:relative;top:40px;margin:0 auto}[data-v-0b28e6e9] .progress-circle,[data-v-0b28e6e9] .readytodownload-icon{width:45px;height:45px;background-color:#fff;border-radius:50%}[data-v-0b28e6e9] .progress-circle,[data-v-0b28e6e9] .progress-circle .bg-pic,[data-v-0b28e6e9] .readytodownload-icon img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-0b28e6e9] .progress-circle svg{position:relative!important}[data-v-0b28e6e9] .progress-circle svg .el-progress-circle__track{stroke:#fff!important}.filePreview[data-v-0b28e6e9]{text-align:center}.filePreview video[data-v-0b28e6e9]{width:820px;height:600px}.img-container[data-v-0b28e6e9]{margin:0 auto}.temp-file-dialog .guide-template-file-name[data-v-0b28e6e9]{color:#000;font-size:14px;font-family:PingFangSC-Regular;padding:16px;text-align:center}.app-header-left-content .left-content-title[data-v-0b28e6e9]{color:#000;font-size:20px;margin-right:24px}.app-header-left-content .button-like[data-v-0b28e6e9]{position:relative;top:-6px;padding:6px 8px;margin-right:16px;color:#8f8f8f;font-size:14px;border-radius:8px;background-color:#fff}.temp-file-dialog .el-dialog{background-color:#fcfcfc}.temp-file-dialog .el-dialog .el-dialog__header{padding:19px 0}.temp-file-dialog .el-dialog .el-dialog__body{padding:0!important}.temp-file-dialog .el-dialog .el-dialog__body .el-form{padding:20px 0 0 0;background-color:#f1f1f1}.temp-file-dialog .el-dialog .el-dialog__body .el-form .el-form-item{margin:0 0 0 0}.temp-file-dialog .el-dialog .el-form-item__content{padding:0 16px}.temp-file-dialog .el-dialog .el-form-item__content .el-input__inner{background-color:#ddd;margin:0 0 20px 0}.temp-file-dialog .el-dialog .dialog-footer{display:flex;justify-content:space-between;padding:16px}.temp-file-dialog .el-dialog .el-dialog__footer{padding:0}.temp-file-dialog .el-dialog .el-dialog__footer .el-button{border-radius:8px}.set-bg[data-v-0b28e6e9]{background-color:#f6f6f6}.operate-bar[data-v-0b28e6e9]{width:162px;margin:28px auto 15px}.search-res-page-wrap[data-v-0b28e6e9]{margin:0 64px;box-sizing:border-box}.out-wrap[data-v-0b28e6e9]{height:calc(100vh - 131px);overflow:scroll}.out-wrap[data-v-0b28e6e9]::-webkit-scrollbar{width:8px;border-radius:4px}.out-wrap[data-v-0b28e6e9]::-webkit-scrollbar-thumb{border-radius:10px;height:10px;background-color:#adadad}.out-wrap[data-v-0b28e6e9]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.no-file-tips[data-v-0b28e6e9]{font-size:22px;text-align:center;margin:100px auto}.my-workline[data-v-0b28e6e9]{text-align:center}.adjust-workline-pos-client[data-v-0b28e6e9]{position:relative;top:-12px}.adjust-workline-pos-web[data-v-0b28e6e9]{position:relative;top:-2.5px}.ml-4-mt-20[data-v-0b28e6e9]{margin:20px 0 0 4px}.height-0[data-v-0b28e6e9]{height:0}.layout_content2[data-v-0b28e6e9]{height:calc(100vh - 64px)}.coopBox-max-height[data-v-0b28e6e9]{height:300px}.workspace-header .app-header-center[data-v-0b28e6e9]{-webkit-app-region:no-drag}.set-workarea-height[data-v-0b28e6e9]{height:calc(100vh - 364px)!important}#workspace .yiyun_section_warp[data-v-0b28e6e9]{margin:0 0 0 64px;overflow:visible!important}.conflit-message-box .el-icon-close:before{content:"\e6db"!important} \ No newline at end of file diff --git a/static/css/chunk-77e90549.cf4ebd3d.css b/static/css/chunk-77e90549.cf4ebd3d.css new file mode 100644 index 00000000..491a6d91 --- /dev/null +++ b/static/css/chunk-77e90549.cf4ebd3d.css @@ -0,0 +1 @@ +.black[data-v-373b66dc]{color:#fff}.white[data-v-373b66dc]{background-color:#fcfcfc;box-shadow:0 1px 2px 0 rgba(0,0,0,.2)}.app-header[data-v-373b66dc]{position:fixed;top:0;width:100%;z-index:2;height:50px;line-height:50px}.app-header-content[data-v-373b66dc]{box-sizing:border-box;display:flex;justify-content:space-between;height:100%;width:100%;padding:0 64px;font-size:16px}.app-header-content-right>div[data-v-373b66dc],.app-header-content-right>span[data-v-373b66dc]{margin-left:18px}.app-header-center[data-v-373b66dc]{position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;height:50px;line-height:50px}.app-header-back-btn[data-v-373b66dc]{position:absolute;left:36px;top:0;bottom:0;margin:auto 0}.black-bg-color[data-v-373b66dc]{background-color:#32323c}.icon-triangle-circle[data-v-cc170c78]{position:relative;display:inline-block} \ No newline at end of file diff --git a/static/css/chunk-504bef5f.9096c703.css b/static/css/chunk-d9ddb9e6.70ab0dbd.css similarity index 59% rename from static/css/chunk-504bef5f.9096c703.css rename to static/css/chunk-d9ddb9e6.70ab0dbd.css index fd066296..392971d1 100644 --- a/static/css/chunk-504bef5f.9096c703.css +++ b/static/css/chunk-d9ddb9e6.70ab0dbd.css @@ -1 +1 @@ -.search-wrap[data-v-f20ebcbc]{position:relative;z-index:2}.search-entry[data-v-f20ebcbc]{position:absolute;right:0;cursor:pointer;width:29px;height:29px}.set-high-index[data-v-f20ebcbc]{z-index:3}.search-bar[data-v-f20ebcbc]{position:relative;overflow:hidden;width:32px;height:32px;transition:width .15s ease-in}.search-bar .search-active-img[data-v-f20ebcbc],.search-bar .search-img[data-v-f20ebcbc]{width:29px;height:29px}.search-bar .search-input[data-v-f20ebcbc]{box-sizing:border-box;color:#32323c;height:30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;padding:0 32px}.search-bar .close-icon[data-v-f20ebcbc],.search-bar .search-icon[data-v-f20ebcbc]{position:absolute;top:50%;transform:translateY(-50%);width:22px;height:22px;cursor:pointer}.search-bar .search-icon[data-v-f20ebcbc]{left:7px;background:url(/static/img/搜索.svg) 50%/100%}.search-bar .close-icon[data-v-f20ebcbc]{right:5px;background:url(/static/img/删除.svg) 50%/100%}.hide-search-bar[data-v-f20ebcbc]{width:0}.show-search-bar[data-v-f20ebcbc]{width:235px}[v-cloak][data-v-0481b847]{display:none!important}.nowTime[data-v-0481b847]{margin-left:6px}.now-time[data-v-0481b847]{margin:12px 0 0 0;color:#000;font-size:20px;font-family:PingFangSC-Regular}.big-time[data-v-0481b847]{height:41px;line-height:41px;color:#000;font-size:44px;text-align:left;font-family:PingFangSC-Regular}.prjitem[data-v-3516a822]{position:relative;display:inline-block;width:100%;border-radius:16px;margin:15px 0;transition:width .3s linear;overflow:hidden}.prjitem[data-v-3516a822]:hover{box-shadow:-8px 0 10px #e0e0e0,8px 0 10px #e0e0e0,0 10px 10px #e0e0e0;transform:scale(1.02)}.prjitem:hover .prjitem_settings[data-v-3516a822]{display:block}.prjitem[data-v-3516a822]:last-child:nth-child(3n){margin-right:32%}.prjitem_settings[data-v-3516a822]{display:none;cursor:pointer;width:40px;height:40px;line-height:40px;text-align:center;font-size:28px;border-radius:50%;background-color:#fff;color:#000}.prjitem_settings_wrapper[data-v-3516a822]{position:absolute;right:20px;top:20px}.prjitem_content[data-v-3516a822]{position:relative;width:100%;height:245px;background-color:#fff;overflow:hidden;border-top-left-radius:16px;border-top-right-radius:16px;cursor:pointer}.prjitem_img[data-v-3516a822]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-height:245px;cursor:pointer;margin:0 auto}.prjitem_title[data-v-3516a822]{position:absolute;bottom:24px;box-sizing:border-box;width:100%;font-size:25px;padding:0 0 0 24px;color:#fff;font-weight:500;text-shadow:0 2px 4px rgba(0,0,0,.5);-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;cursor:pointer;transition:bottom .07s ease-in}.newprj_icon[data-v-3516a822]{width:52px;height:20px;position:absolute;left:24px;top:20px;line-height:20px;background-color:#d6243a;color:#fff;font-size:12px;border-radius:10px;text-align:center}.operate-bar[data-v-3516a822]{position:absolute;bottom:11px;display:flex;justify-content:space-between;box-sizing:border-box;width:100%;opacity:0;transition:opacity .3s ease-in}.operate-bar .bar-item[data-v-3516a822]{flex:1;margin:0 11px;height:52px;line-height:52px;text-align:center;font-size:14px;font-family:PingFangSC-Regular;border-radius:8px;color:#fff;background-color:rgba(50,50,60,.1);cursor:pointer}.operate-bar .bar-item[data-v-3516a822]:hover{background-color:rgba(0,0,0,.2)}.operate-bar .bar-item[data-v-3516a822]:active{background-color:rgba(50,50,60,.1)}.height-full[data-v-3516a822]{height:100%!important;min-height:100%;max-height:100%}.width-full[data-v-3516a822]{width:100%!important;min-width:100%;max-width:100%}.move-item-name[data-v-3516a822]{bottom:50%;transform:translateY(50%)}.show-operate-bar[data-v-3516a822]{opacity:1}.hide-operate-bar[data-v-3516a822]{opacity:0}.prjitemList[data-v-d9269f9e]{padding:0 32px}.icon-triangle-circle[data-v-dd2d6402]{position:relative;display:inline-block;vertical-align:top;width:1em;height:1em;box-sizing:border-box}.icon-triangle-circle .circle[data-v-dd2d6402]{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;box-sizing:border-box;top:12%;width:90%;height:90%;border-radius:50%;border:2px solid transparent}.icon-triangle-circle>i[data-v-dd2d6402]{position:absolute;width:32%;height:32%;border-radius:50%;box-sizing:border-box}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(2){top:0;left:0;right:0;margin:0 auto}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(3){bottom:0;left:0}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(4){bottom:0;right:0}.user_info_role .el-icon-close{display:block}[v-cloak]{display:none!important}.icon-icon_huishouzhan[data-v-291d7b4a]{line-height:inherit}@media(max-width:600px){.timer-part{display:none}.adjust-position{width:100%!important;margin:0 auto}}#proj-list-page .app-header-content-right{display:flex}.new-btn-margin{margin:24px 0 0 64px}.org-button-icon[data-v-291d7b4a]{transform:rotate(90deg)}.group-title[data-v-291d7b4a]{margin-top:16px;padding-left:64px;font-size:24px;line-height:38px}.linkDialog[data-v-291d7b4a] .el-dialog__body{text-align:center}.linkDialog .icon-models[data-v-291d7b4a]{position:absolute;left:18px;top:18px}.linkDialog .el-icon-close[data-v-291d7b4a]{position:absolute;right:14px;top:14px;font-size:32px;color:rgba(0,0,0,.18)}.linkDialog .el-icon-close[data-v-291d7b4a]:before{content:""}.linkDialog .main-text[data-v-291d7b4a]{color:#32323c;font-size:18px}.linkDialog .block-button[data-v-291d7b4a]{display:block;width:100%;margin-left:0;margin-bottom:8px}.linkDialog .block-button[data-v-291d7b4a]:first-of-type{margin-top:40px}.linkDialog .block-button[data-v-291d7b4a]:nth-of-type(2){margin-bottom:16px}.linkDialog .block-button[data-v-291d7b4a]:last-of-type{color:rgba(17,17,17,.25)}.linkItem[data-v-291d7b4a]{position:relative;display:flex;flex-direction:column;width:100%;height:193px;border-radius:16px;box-sizing:border-box;background-color:#fff;box-shadow:0 4px 8px 0 rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.05);cursor:pointer;margin-top:10px;padding:22px}.linkItem[data-v-291d7b4a]:hover{transform:scale(1.02)}.linkItem-list[data-v-291d7b4a]{padding:0 62px}.linkItem>div[data-v-291d7b4a]:first-child{flex:none;height:30px;color:#2896e6;line-height:30px}.linkItem>div:first-child>span[data-v-291d7b4a]{margin-left:10px}.linkItem>div[data-v-291d7b4a]:nth-child(2){flex:1;font-size:22px;display:flex;align-items:center}.linkItem>div[data-v-291d7b4a]:last-child{flex:none;height:26px;line-height:26px} \ No newline at end of file +.search-wrap[data-v-f20ebcbc]{position:relative;z-index:2}.search-entry[data-v-f20ebcbc]{position:absolute;right:0;cursor:pointer;width:29px;height:29px}.set-high-index[data-v-f20ebcbc]{z-index:3}.search-bar[data-v-f20ebcbc]{position:relative;overflow:hidden;width:32px;height:32px;transition:width .15s ease-in}.search-bar .search-active-img[data-v-f20ebcbc],.search-bar .search-img[data-v-f20ebcbc]{width:29px;height:29px}.search-bar .search-input[data-v-f20ebcbc]{box-sizing:border-box;color:#32323c;height:30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;padding:0 32px}.search-bar .close-icon[data-v-f20ebcbc],.search-bar .search-icon[data-v-f20ebcbc]{position:absolute;top:50%;transform:translateY(-50%);width:22px;height:22px;cursor:pointer}.search-bar .search-icon[data-v-f20ebcbc]{left:7px;background:url(/static/img/搜索.svg) 50%/100%}.search-bar .close-icon[data-v-f20ebcbc]{right:5px;background:url(/static/img/删除.svg) 50%/100%}.hide-search-bar[data-v-f20ebcbc]{width:0}.show-search-bar[data-v-f20ebcbc]{width:235px}[v-cloak][data-v-0481b847]{display:none!important}.nowTime[data-v-0481b847]{margin-left:6px}.now-time[data-v-0481b847]{margin:12px 0 0 0;color:#000;font-size:20px;font-family:PingFangSC-Regular}.big-time[data-v-0481b847]{height:41px;line-height:41px;color:#000;font-size:44px;text-align:left;font-family:PingFangSC-Regular}.prjitem[data-v-3516a822]{position:relative;display:inline-block;width:100%;border-radius:16px;margin:15px 0;transition:width .3s linear;overflow:hidden}.prjitem[data-v-3516a822]:hover{box-shadow:-8px 0 10px #e0e0e0,8px 0 10px #e0e0e0,0 10px 10px #e0e0e0;transform:scale(1.02)}.prjitem:hover .prjitem_settings[data-v-3516a822]{display:block}.prjitem[data-v-3516a822]:last-child:nth-child(3n){margin-right:32%}.prjitem_settings[data-v-3516a822]{display:none;cursor:pointer;width:40px;height:40px;line-height:40px;text-align:center;font-size:28px;border-radius:50%;background-color:#fff;color:#000}.prjitem_settings_wrapper[data-v-3516a822]{position:absolute;right:20px;top:20px}.prjitem_content[data-v-3516a822]{position:relative;width:100%;height:245px;background-color:#fff;overflow:hidden;border-top-left-radius:16px;border-top-right-radius:16px;cursor:pointer}.prjitem_img[data-v-3516a822]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-height:245px;cursor:pointer;margin:0 auto}.prjitem_title[data-v-3516a822]{position:absolute;bottom:24px;box-sizing:border-box;width:100%;font-size:25px;padding:0 0 0 24px;color:#fff;font-weight:500;text-shadow:0 2px 4px rgba(0,0,0,.5);-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;cursor:pointer;transition:bottom .07s ease-in}.newprj_icon[data-v-3516a822]{width:52px;height:20px;position:absolute;left:24px;top:20px;line-height:20px;background-color:#d6243a;color:#fff;font-size:12px;border-radius:10px;text-align:center}.operate-bar[data-v-3516a822]{position:absolute;bottom:11px;display:flex;justify-content:space-between;box-sizing:border-box;width:100%;opacity:0;transition:opacity .3s ease-in}.operate-bar .bar-item[data-v-3516a822]{flex:1;margin:0 11px;height:52px;line-height:52px;text-align:center;font-size:14px;font-family:PingFangSC-Regular;border-radius:8px;color:#fff;background-color:rgba(50,50,60,.1);cursor:pointer}.operate-bar .bar-item[data-v-3516a822]:hover{background-color:rgba(0,0,0,.2)}.operate-bar .bar-item[data-v-3516a822]:active{background-color:rgba(50,50,60,.1)}.height-full[data-v-3516a822]{height:100%!important;min-height:100%;max-height:100%}.width-full[data-v-3516a822]{width:100%!important;min-width:100%;max-width:100%}.move-item-name[data-v-3516a822]{bottom:50%;transform:translateY(50%)}.show-operate-bar[data-v-3516a822]{opacity:1}.hide-operate-bar[data-v-3516a822]{opacity:0}.prjitemList[data-v-d9269f9e]{padding:0 32px}.icon-triangle-circle[data-v-cc170c78]{position:relative;display:inline-block}.user_info_role .el-icon-close{display:block}[v-cloak]{display:none!important}.icon-icon_huishouzhan[data-v-291d7b4a]{line-height:inherit}@media(max-width:600px){.timer-part{display:none}.adjust-position{width:100%!important;margin:0 auto}}#proj-list-page .app-header-content-right{display:flex}.new-btn-margin{margin:24px 0 0 64px}.org-button-icon[data-v-291d7b4a]{transform:rotate(90deg)}.group-title[data-v-291d7b4a]{margin-top:16px;padding-left:64px;font-size:24px;line-height:38px}.linkDialog[data-v-291d7b4a] .el-dialog__body{text-align:center}.linkDialog .icon-models[data-v-291d7b4a]{position:absolute;left:18px;top:18px}.linkDialog .el-icon-close[data-v-291d7b4a]{position:absolute;right:14px;top:14px;font-size:32px;color:rgba(0,0,0,.18)}.linkDialog .el-icon-close[data-v-291d7b4a]:before{content:""}.linkDialog .main-text[data-v-291d7b4a]{color:#32323c;font-size:18px}.linkDialog .block-button[data-v-291d7b4a]{display:block;width:100%;margin-left:0;margin-bottom:8px}.linkDialog .block-button[data-v-291d7b4a]:first-of-type{margin-top:40px}.linkDialog .block-button[data-v-291d7b4a]:nth-of-type(2){margin-bottom:16px}.linkDialog .block-button[data-v-291d7b4a]:last-of-type{color:rgba(17,17,17,.25)}.linkItem[data-v-291d7b4a]{position:relative;display:flex;flex-direction:column;width:100%;height:193px;border-radius:16px;box-sizing:border-box;background-color:#fff;box-shadow:0 4px 8px 0 rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.05);cursor:pointer;margin-top:10px;padding:22px}.linkItem[data-v-291d7b4a]:hover{transform:scale(1.02)}.linkItem-list[data-v-291d7b4a]{padding:0 62px}.linkItem>div[data-v-291d7b4a]:first-child{flex:none;height:30px;color:#2896e6;line-height:30px}.linkItem>div:first-child>span[data-v-291d7b4a]{margin-left:10px}.linkItem>div[data-v-291d7b4a]:nth-child(2){flex:1;font-size:22px;display:flex;align-items:center}.linkItem>div[data-v-291d7b4a]:last-child{flex:none;height:26px;line-height:26px} \ No newline at end of file diff --git a/static/js/app.ead6da20.js b/static/js/app.ead6da20.js deleted file mode 100644 index 08ad99ba..00000000 --- a/static/js/app.ead6da20.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function n(n){for(var a,r,i=n[0],u=n[1],s=n[2],d=0,l=[];d4&&void 0!==arguments[4]?arguments[4]:[];return{platformType:e,orgId:n,orgLogo:a,orgName:t,accessList:r}}var o={CompanyConsole:"company_console",ProjectManager:"project_manager"};function c(e,n){return-1!==e.indexOf(n)}},"1d40":function(e,n,t){"use strict";(function(e){t("99af"),t("4de4"),t("7db0"),t("c975"),t("a15b"),t("d81d"),t("fb6a"),t("b0c0"),t("d3b7"),t("07ac"),t("ac1f"),t("5319"),t("1276");var a=t("5530"),r=(t("96cf"),t("1da1")),o=t("3835"),c=t("b775"),i=t("3de1"),u=t("2ef0"),s=t("2b0e"),d=!!e.electron,l=5,f=5,p=[],h=[],m=[],b=[],k=function(){p=[],h=[],m=[],b=[]},g=function(){},y=function(e){var n=new WebSocket("ws://127.0.0.1:7777/".concat(e));return n.on=n.addEventListener,n},v=function(e,n){return new Promise((function(t,a){e.on("open",(function(){e.send(n)})),e.on("message",(function(n){t(n),e.close()})),e.on("error",(function(e){return a(e)}))}))},w=function(e){return d?e:g},O={isClient:d,init:w((function(){console.log("客户端 electron API 检测:",e.electron)})),keepLiveTest:w((function(n,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u["identity"],r=y("keeplive"),o=1,c=null,i=e.electron.ipcRenderer;function s(){n(!0),r.send(o)}i.on("detectWindowSize",(function(){t((arguments.length<=1?void 0:arguments[1])||!1)})),r.on("open",(function(){c=setInterval(s,2e3)})),r.on("close",(function(){clearInterval(c),n(!1)})),r.on("error",(function(){a(),n(!1)}))})),subscribeGatewayMessage:w((function(){var e=y("messageNotify");e.on("message",(function(e){var n=e.data;try{var t=n.split("\n"),a=Object(o["a"])(t,2),r=a[0],c=a[1];i["d"].warning(c,r)}catch(u){console.error("gateway message error:",n,u)}}))})),shrinkBrowserWindow:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("shrink-browser-window");case 3:case"end":return n.stop()}}),n)})))),enlargeBrowserWindow:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("enlarge-browser-window");case 3:case"end":return n.stop()}}),n)})))),unmaxBrowserWindow:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("unmax-browser-window");case 3:case"end":return n.stop()}}),n)})))),closeBrowserWindow:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("close-browser-window");case 3:case"end":return n.stop()}}),n)})))),isMaxWindowNow:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("is-max-window-now");case 3:return a=n.sent,n.abrupt("return",a);case 5:case"end":return n.stop()}}),n)})))),initClientConfig:w((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["identity"],t=y("initClientConfig");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return s["default"].prototype.$notify({message:"请联系企业管理员检查存储节点配置项。",type:["error"]}),void n(e)}))})),checkForUpdates:w((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u["identity"],n=y("checkForUpdates"),t=1;n.on("open",(function(){n.send(t)})),n.on("message",(function(n){if("-1"===n.data)return s["default"].prototype.$notify({message:"已是最新版本。",type:["success"]}),void e(n)}))})),clientOpenFileWith:w((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["identity"],t=y("openFileWith");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return s["default"].prototype.$notify({message:"服务端出现错误, 请稍后重试。",type:["error"]}),void n(e)})),t.on("error",n)})),login:function(){},logout:function(){},entryProject:w(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,a,r,o,c){var i,s,d,l=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=l.length>6&&void 0!==l[6]?l[6]:u["identity"],e.next=3,v(y("init"),[a,t,n].join("|"));case 3:s=e.sent,o(s.data),d=y("subscriptionFileChange"),d.on("open",(function(){d.send(n)})),d.on("message",r),d.on("error",i),c(d);case 10:case"end":return e.stop()}}),e)})));return function(n,t,a,r,o,c){return e.apply(this,arguments)}}()),leaveProject:w((function(e){e.close(),k()})),downloadFile:w((function(e,n,t,a,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:u["identity"],d=function u(){var d=y("download"),l={API:"download",Action:"下载文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(c["b"])("operation/record",l),d.on("open",(function(){var r={API:"open",Action:"打开文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(c["b"])("operation/record",r),d.send([e,n,t,a].join("|"))})),d.on("message",(function(e){return"-1"===e.data?(s["default"].prototype.$notify({message:"".concat(t,",网络请求失败。"),type:["warning","download"],title:"文件下载失败"}),void o(e)):"-2"===e.data?(i["d"].error("请先关闭本地文件后再下载"),void o(e)):void r(e,d)})),d.on("error",(function(e){o(e)})),d.on("close",(function(){if(m=m.filter((function(e){return e!==u})),b.length){var e=b.shift();m.push(e),e()}}))};m.length>=f?b.push(d):(m.push(d),d())})),analyzeSystemPath:w(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var t,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,v(y("getFolderFileInfo"),n);case 2:return t=e.sent,e.prev=3,a=JSON.parse(t.data),r=Object.values(a).map((function(e){var n=e.name,t=e.extension,a=e.relativePath,r=e.absolutePath,o=0===t.indexOf(".")?t.slice(1):t,c=n.slice(0,-t.length);return{fileName:c,extension:o,relativePath:a.split("\\").filter(u["identity"]).join("/"),fullPath:r}})),e.abrupt("return",r);case 9:return e.prev=9,e.t0=e["catch"](3),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(n){return e.apply(this,arguments)}}()),chooseFiles:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("project-choose-files");case 3:if(a=n.sent,r=a.canceled,o=a.filePaths,!r){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))),chooseFolders:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("project-choose-folders");case 3:if(a=n.sent,r=a.canceled,o=a.filePaths,!r){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))),uploadFile:w(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var t,o,d,f,m,b,k,g,v,w,O,C,j,I,N,S,x,P,_,L,E,R,A,G,T;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=n.creator,o=n.projectId,d=n.projectName,f=n.folderId,m=n.folderName,b=n.folderLevelId,k=n.distFileRelativePath,g=void 0===k?"":k,v=n.fileName,w=n.fileExtension,O=n.sourceFilePath,C=n.fileList,j=n.onSuccess,I=n.onProgress,N=void 0===I?u["identity"]:I,S=n.onError,x=void 0===S?u["identity"]:S,P=n.successAllHandler,_=n.totalReadyUploadNum,L=n.tempNumWrap,E=w?"".concat(v,".").concat(w):v,R="".concat(m).concat(g?"/".concat(g):""),A=C.find((function(e){return g===e.relativePath&&"".concat(e.archName).concat(e.extension?".".concat(e.extension):"")===E})),G=A?Object(i["c"])(Object(a["a"])(Object(a["a"])({},A),{},{ModifyUserId:sessionStorage.userId})):{ArchName:v,CreateUserId:sessionStorage.userId,Extension:w,FolderId:f,FolderLevelId:b,Id:"upload:".concat("".concat(Math.random()).slice(2,8)),ProjId:o,RelativePath:g,Status:1,Version:1},N({process:0},G),T=function e(){var n=function(){if(p=p.filter((function(n){return n!==e})),h.length){var n=h.shift();p.push(n),n()}x.apply(void 0,arguments)},o=function(){if(p=p.filter((function(n){return n!==e})),h.length){var n=h.shift();p.push(n),n()}j.apply(void 0,arguments)},u=y("upload");u.on("open",(function(){var e="",n="",a=!1,r=[O,E,d,R.replace(/\//g,"\\"),e,n,t,a].join("|");u.send(r),N({process:0},G)})),u.on("message",function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var r,d,l,f,p,h,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("-1"!==t.data){e.next=4;break}return i["d"].error("文件上传失败"),n(t,G),e.abrupt("return");case 4:if("-2"!==t.data){e.next=8;break}return i["d"].error("请先关闭本地文件后再上传"),n(t,G),e.abrupt("return");case 8:if(e.prev=8,r=JSON.parse(t.data),d=r.size,l=r.process,f=r.hash,p=r.commitHistoryHash,N(r,G),100===l&&f){e.next=14;break}return e.abrupt("return");case 14:return u.close(),G.FileSize=+d,G.IpfsCid=f,h=Object(a["a"])({},G),A||delete h.Id,A?(h.HistoryCurrentIpfsCid=p,h.HistoryPreIpfsCid=""):h.HistoryCurrentIpfsCid=p,e.next=22,Object(c["b"])("file/".concat(A?"updateFile":"addFile"),h);case 22:if(m=e.sent,Object(c["c"])(m),0===m.Code){e.next=27;break}return n(m,G),e.abrupt("return");case 27:L.tempNumCount+=1,L.tempNumCount==_&&(s["default"].prototype.$notify({type:["success","upload"],title:"文件上传成功",message:"".concat(G.ArchName)}),P()),o(G),e.next=36;break;case 32:e.prev=32,e.t0=e["catch"](8),console.error("socket-upload-file parse data have error:",e.t0),n(e.t0,G);case 36:case"end":return e.stop()}}),e,null,[[8,32]])})));return function(n){return e.apply(this,arguments)}}()),u.on("error",(function(e){n(e,G)}))},p.length>=l?h.push(T):(p.push(T),T());case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),updateFile:w((function(e,n,t,a,o,s,d,l,f,p){var h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:u["identity"],m=arguments.length>11&&void 0!==arguments[11]?arguments[11]:u["identity"],b=y("upload"),k=e.archName,g=e.extension,v=(e.id,"".concat(k).concat(g?".".concat(g):"")),w="".concat(n,"\\").concat(a,"\\").concat(v);b.on("open",(function(){var e=[w,v,t,a,o,s,d,l].join("|");b.send(e)})),b.on("message",function(){var n=Object(r["a"])(regeneratorRuntime.mark((function n(t){var a,r,s,d,l,k,g,y;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("-1"!==t.data){n.next=4;break}return i["d"].error("文件上传失败"),m(t),n.abrupt("return");case 4:if("-2"!==t.data){n.next=8;break}return i["d"].error("请先关闭本地文件后再上传"),m(t),n.abrupt("return");case 8:if(n.prev=8,a=JSON.parse(t.data),console.log("progressData"),r=a.size,s=a.process,d=a.hash,l=a.commitHistoryHash,k=a.version,h(a),100===s&&d){n.next=15;break}return n.abrupt("return");case 15:return b.close(),g=Object(i["c"])(Object(u["cloneDeep"])(e)),g.ModifyUserId=sessionStorage.userId,g.HistoryPreIpfsCid=o,g.HistoryCurrentIpfsCid=l,f||(g.Size=+r,g.IpfsCid=d,g.Version=k),n.next=23,Object(c["b"])("file/updateFile",g);case 23:return y=n.sent,Object(c["c"])(y),f&&(g.Size=+r,g.IpfsCid=d,g.Version=k),p(g),n.abrupt("return");case 30:n.prev=30,n.t0=n["catch"](8),console.error("socket-update-file parse data have error:",t);case 33:case"end":return n.stop()}}),n,null,[[8,30]])})));return function(e){return n.apply(this,arguments)}}()),b.on("error",(function(n){m(n,e)}))})),queryCommitHistory:w((function(e,n,t){var a=y("queryCommitHistory");a.on("open",(function(){a.send([e,n].join("|"))})),a.on("message",(function(e){if("-1"===e.data)return i["d"].error("查询历史文件失败"),void t([]);var n=JSON.parse(e.data),a=Object.values(n);t(a)}))})),editCommitHistoryMilestone:w((function(e,n,t,a,r){var o=y("editCommitHistoryMilestone");o.on("open",(function(){o.send([e,n,t,a].join("|"))})),o.on("message",(function(e){if("-1"!==e.data){var n=e.data;console.log("lcb",n),r(n)}else i["d"].error("设置里程碑失败")}))})),openFile:w((function(n){var t=e.electron.shell;t.openPath(n)})),openFolder:w((function(n){var t=e.electron.shell;t.showItemInFolder(n)}))};n["a"]=O}).call(this,t("c8ba"))},"1f09":function(e,n,t){},"3de1":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return c})),t.d(n,"d",(function(){return i})),t.d(n,"a",(function(){return u}));t("99af"),t("13d5"),t("fb6a"),t("4fad"),t("d3b7");var a=t("3835"),r=t("2b0e");function o(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],o=t[1];return e["".concat(r[0].toLocaleLowerCase()).concat(r.slice(1))]=o,e}),{})}function c(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],o=t[1];return e["".concat(r[0].toLocaleUpperCase()).concat(r.slice(1))]=o,e}),{})}var i={success:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["success"],duration:2500})},error:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["error"],duration:2500})},warning:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["warning"],duration:2500})}};function u(e,n){var t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},"41cb":function(e,n,t){"use strict";t("b0c0"),t("d3b7");var a=t("2b0e"),r=t("8c4f"),o={login:"LOCKING | 登录",project:"LOCKING | 项目编辑",platform:"LOCKING | 平台选择",template:"LOCKING | 模板控制台",projnotice:"LOCKING | 更新提醒",notFound:"404 | 未找到该页面",workspace:"LOCKING | 项目详情",search:"LOCKING | 搜索",recycle:"LOCKING | 回收站",cloud:"LOCKING | 云盘",cloudrecycle:"LOCKING | 云回收站",cloudsource:"LOCKING | 云资源管理器",company:"LOCKING | 企业后台",message2:"LOCKING | 企业后台",company_message:"LOCKING | 平台消息",company_user:"LOCKING | 通讯录",company_project:"LOCKING | 项目管理",company_template:"LOCKING | 模板与应用",company_setting:"LOCKING | 通用设置",company_template_detail:"LOCKING | 模板查看",company_app:"LOCKING | 应用",company_template_market:"LOCKING | 应用市场",system:"LOCKING | 总后台",system_template:"LOCKING | 流程模板",system_template_mind:"LOCKING | 思维导图",system_template_matrix:"LOCKING | 矩阵模板",system_runmanage:"LOCKING | 运行管理",system_appcenter:"LOCKING | 应用管理",system_setting:"LOCKING | 总体权限",system_appinfo:"LOCKING | 应用介绍",system_template_file:"流程模板 | 样板文件"};a["default"].use(r["a"]);var c=new r["a"]({mode:"hash",routes:[{path:"/",name:"login",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-63d4ab7f")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-1f4d12f6")]).then(t.bind(null,"46a4"))}},{path:"/projdetail",name:"projdetail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-559c8a4e")]).then(t.bind(null,"47c5"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-59bb5b90")]).then(t.bind(null,"1670"))}},{path:"/notification",name:"notification",component:function(){return Promise.resolve().then(t.bind(null,"d2ad"))}},{path:"/newproject",name:"newproject",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-115028d7")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-ec554b20")]).then(t.bind(null,"80fb"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-6f87105f")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-504bef5f")]).then(t.bind(null,"011a"))}},{path:"/projnotice",name:"projnotice",component:function(){return t.e("chunk-05bf99c1").then(t.bind(null,"00ec"))}},{path:"/email",name:"email",component:function(){return t.e("chunk-2d0ac90d").then(t.bind(null,"19a0"))}},{path:"/workspace",name:"workspace",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-7e46145d"),t.e("chunk-873c7c58")]).then(t.bind(null,"3b2f"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-97877ad2")]).then(t.bind(null,"8b1e"))}},{path:"/history",name:"history",component:function(){return Promise.all([t.e("chunk-7e46145d"),t.e("chunk-2d0d2af5")]).then(t.bind(null,"a2d2"))}},{path:"/cloud",name:"cloud",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-6d72e803")]).then(t.bind(null,"4488"))}},{path:"/cloudrecycle",name:"cloudrecycle",component:function(){return t.e("chunk-2d224b2b").then(t.bind(null,"e0f0"))}},{path:"/cloudsource",name:"cloudsource",component:function(){return t.e("chunk-2d0c061a").then(t.bind(null,"4217"))}},{path:"/company",name:"company",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-2627340f")]).then(t.bind(null,"db21"))},redirect:{name:"company_home"},children:[{path:"home",name:"company_home",component:function(){return t.e("chunk-309e49e4").then(t.bind(null,"345a"))}},{path:"message",name:"company_message",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0cf6a4")]).then(t.bind(null,"642b"))}},{path:"user",name:"company_user",component:function(){return t.e("chunk-7db1403b").then(t.bind(null,"29c0"))}},{path:"project",name:"company_project",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-038ce22f")]).then(t.bind(null,"e984"))}},{path:"template",name:"company_template",component:function(){return t.e("chunk-84f66ece").then(t.bind(null,"4083"))}},{path:"template/detail",name:"company_template_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-310a053d")]).then(t.bind(null,"df39"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-d1bd5818")]).then(t.bind(null,"be38"))}},{path:"setting",name:"company_setting",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-1fe39068")]).then(t.bind(null,"cda4"))}},{path:"app",name:"company_app",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0b3688")]).then(t.bind(null,"27f3"))}}]},{path:"/template",name:"template",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-1f7519e6")]).then(function(){var n=[t("65b7")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"template_console"},children:[{path:"console",name:"template_console",component:function(){return t.e("chunk-d4bc3576").then(t.bind(null,"8875"))}},{path:"console/detail",name:"template_console_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-edf65c70")]).then(t.bind(null,"ccf7"))}},{path:"console/create",name:"template_console_create",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-15f86d65")]).then(function(){var n=[t("1fab7")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/system",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-d4e6d2d8")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-94641ab6").then(t.bind(null,"f851"))}},{path:"template",name:"system_template",component:function(){return t.e("chunk-78390ace").then(t.bind(null,"81b5"))}},{path:"runmanage",name:"system_runmanage",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-11067227")]).then(t.bind(null,"d798"))}},{path:"template/matrix",name:"system_template_matrix",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-3b425bf2")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-695cbab1")]).then(t.bind(null,"bccc"))}},{path:"template/tempfile",name:"system_template_file",component:function(){return t.e("chunk-28990618").then(t.bind(null,"f1f7"))}},{path:"appcenter",name:"system_appcenter",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0e148e")]).then(t.bind(null,"7a7e"))}},{path:"appinfo",name:"system_appinfo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d21b850")]).then(t.bind(null,"bfb8"))}},{path:"setting",name:"system_setting",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-1fe40532")]).then(t.bind(null,"ddca"))}},{path:"*",redirect:{name:"system_customer"}}]},{path:"*",name:"notfound",component:function(){return t.e("chunk-15a37012").then(t.bind(null,"9403"))}}]});c.beforeEach((function(e,n,t){"/"===e.path||sessionStorage.getItem("userId")?t():t({path:"/"})})),c.afterEach((function(e){window.document.title=o[e.name]||"LOCKING | 云建筑"}));n["a"]=c},"51b0":function(e,n,t){},"53be":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("4de4"),t("e260"),t("e6cf"),t("cca6"),t("a79d");var a=t("2b0e"),r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view",{ref:"mainpage",staticClass:"mt-40",class:{"mt-64":e.setMarginTop,"calc-height":e.setMarginTop,"workspace-bigbody":e.$route.path.indexOf("/workspace")>=0,"mt-76":"newproject"==e.$route.name||"projdetail"==e.$route.name},attrs:{id:"bigbody"}})],1)},o=[],c=(t("c975"),t("b0c0"),t("1d40")),i={components:{},name:"App",data:function(){return{header_show:!0,companyName:"",mypath:"/",showIndexOption:!1,showHelpPage:!1,searchName:"",isShowOutWorkSpace:!1,outWorkSpace:!1,isClient:c["a"].isClient,onlineStatus:!1,state:this.$store.state}},created:function(){var e=this;console.log("版本编译时间:","2021.05.12 13:45"),null!=document.getElementById("Loading")&&null!=document.getElementById("Loading").nodeName&&""!=document.getElementById("Loading").nodeName&&document.body.removeChild(document.getElementById("Loading")),"login"!=this.$route.name&&"notfound"!=this.$route.name&&"platform"!==this.$route.name||(this.header_show=!1),this.isClient&&(c["a"].keepLiveTest((function(n){e.onlineStatus=n,e.$store.changeGatewayState(n),sessionStorage.setItem("isOnLine",String(n&&navigator.onLine))}),(function(n){e.$store.state.isMaxWindowSize=n})),c["a"].subscribeGatewayMessage())},computed:{setMarginTop:function(){return this.isClient||"workspace"==this.$route.name},currentRoutePath:function(){return this.$route.path}},mounted:function(){window.addEventListener("scroll",this.handleScroll,!0)},methods:{handleScroll:function(){},showOption:function(){this.showIndexOption=!0},showHelp:function(){this.showHelpPage=!0},closeShowOption:function(){this.showIndexOption=!1,this.showHelpPage=!1},closeWorkSet:function(){"workspace"==this.$route.name&&this.$refs["mainpage"].closeAppManagePain()},getSearchName:function(e){this.searchName=e},getIsShowOutWorkSpace:function(e){this.outWorkSpace=!1,this.isShowOutWorkSpace=e},getOutWorkSpace:function(e){this.outWorkSpace=e}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},watch:{$route:function(e){this.mypath=e.path},currentRoutePath:function(e){e.indexOf("projdetail")>=0?document.body.classList.add("set-bgc"):document.body.classList.remove("set-bgc")}}},u=i,s=(t("5c0b"),t("b8ff"),t("6964"),t("2877")),d=Object(s["a"])(u,r,o,!1,null,"d326a332",null),l=d.exports,f=t("41cb"),p=t("5c96"),h=t.n(p),m=(t("0fae"),t("96cf"),t("1da1")),b=t("b775"),k=t("0f13"),g=t("3de1"),y=function(){return{gatewayState:!1,isMaxWindowSize:!1,client:c["a"].isClient?"桌面端":"WEB端"}},v=function(){return{isLogin:!1,accountId:void 0,accountName:void 0,userName:void 0,platformList:[],currentPlatform:{},currentCompanyId:void 0,avator:void 0,userInfo:{}}},w=function(){var e=Object.assign(y(),v());try{var n=JSON.parse(sessionStorage.getItem("user")),t=sessionStorage.getItem("companyId"),a=JSON.parse(sessionStorage.getItem("platform")||"{}");n&&n.accountId&&(e.isLogin=!0,Object.assign(e,n),e.currentCompanyId=t,e.currentPlatform=a)}catch(r){console.log("加载session数据失败"),e=Object.assign(y(),v())}return e},O={state:w(),setCurrentPlatform:function(e){this.state.currentPlatform=e,this.state.currentCompanyId=e.orgId,sessionStorage.companyId=e.orgId,sessionStorage.platform=JSON.stringify(e),sessionStorage.CompanyName=JSON.parse(sessionStorage.platform).orgName,sessionStorage.accountName=JSON.parse(sessionStorage.user).accountName;var n={API:"authentication/login",Action:"登录",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.accountName,Source:sessionStorage.client};Object(b["b"])("operation/record",n)},setIsMaxWindowSize:function(e){this.state.isMaxWindowSize=e},changeGatewayState:function(e){this.state.gatewayState=e},login:function(e,n){var t=this;return Object(m["a"])(regeneratorRuntime.mark((function a(){var r,o,c,i,u,s,d,l,f,p,h,m,y,v,w,O,C,j,I,N;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(b["b"])("authentication/login",{UserName:e,PassWord:n});case 2:if(r=a.sent,o=0===r.Code,o){a.next=6;break}return a.abrupt("return",r);case 6:if(t.state.isLogin=!0,c=Object(g["b"])(r.Data||{}),delete c.userExt,i=c.companyId,u=c.cnName,s=c.id,d=c.permission,l=c.backgroundPermission,f=[],p={accountId:s,accountName:e,userName:u,platformList:f,userInfo:c},h=3===l,m=2===l,!h){a.next=18;break}f.push(Object(k["d"])(k["b"].MANAGE_CENTER,i,"LOCKING 总后台",void 0,[])),a.next=30;break;case 18:return a.next=20,Object(b["b"])("company/queryFrontDeskCompanyById",{id:i});case 20:if(y=a.sent,0===y.Code){a.next=23;break}return a.abrupt("return",y);case 23:v=y.Data,w=void 0===v?{}:v,O=w.company,C=O.LogoUrl,j=O.CompanyName,I=O.ServiceProviderStatus,N=[],1==I&&f.push(Object(k["d"])(k["b"].TEMPLATE_CONSOLE,i,j,C,[])),m&&N.push(k["a"].CompanyConsole),1===d&&N.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,j,C,N));case 30:return t.state.isLogin=!0,Object.assign(t.state,p),sessionStorage.client=t.state.client,sessionStorage.userId=s,sessionStorage.accountId=s,sessionStorage.user=JSON.stringify(p),a.abrupt("return",{Code:r.Code,Data:p});case 37:case"end":return a.stop()}}),a)})))()},logout:function(){var e={API:"authentication/loginOut",Action:"注销",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.accountName,Source:sessionStorage.client};Object(b["b"])("operation/record",e),this.state=Object.assign(this.state,v()),Object(b["b"])("authentication/loginOut"),sessionStorage.clear()}},C=t("2f62"),j=t("a78e"),I=t.n(j),N=t("5ab9"),S=function(e){return Object(N["a"])(e)||"/static/img/avator_default.svg"},x=function(e,n){var t="avator"===n?"/static/img/avator_default.svg":"";return Object(N["a"])(e)||t},P=t("cee5"),_=t.n(P),L=function(e){return _()(e)},E=t("caf9"),R=t("32ed"),A=t.n(R),G=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.src,expression:"src"}]})},T=[],$={props:{src:String}},M=$,K=Object(s["a"])(M,G,T,!1,null,null,null),F=K.exports,W=(t("856b"),t("d903"),t("c610"),t("935a"),t("51b0"),t("53be"),t("1f94"),t("d2ad")),H=a["default"].extend(W["default"]),z=document.createElement("div");z.style="position: fixed; right: 32px; top: 68px;z-index:99999",document.body.appendChild(z);var B=function(e){var n=new H({propsData:e});n.vm=n.$mount(),z.appendChild(n.vm.$el)},D=B;a["default"].use(h.a),a["default"].use(E["a"]),a["default"].use(C["a"]),a["default"].prototype.$cookie=I.a,a["default"].component("ImgLazy",F),a["default"].prototype.$axios=b["a"],a["default"].prototype.$fetch=b["a"],a["default"].prototype.$fetchApi=b["b"],a["default"].filter("resolveImg",x),a["default"].filter("resolveAvator",S),a["default"].filter("resolveFileSize",L),a["default"].prototype.$bus=new a["default"],a["default"].prototype.$notify=D,a["default"].use(A.a),a["default"].config.productionTip=!1,new a["default"]({router:f["a"],store:O,render:function(e){return e(l)}}).$mount("#app")},"5ab9":function(e,n,t){"use strict";t.d(n,"c",(function(){return u})),t.d(n,"b",(function(){return s})),t.d(n,"a",(function(){return l}));t("99af"),t("c975"),t("ac1f"),t("1276"),t("96cf");var a=t("1da1"),r=t("9b15"),o=t("2ef0"),c=new r({region:"oss-cn-hangzhou",accessKeyId:"LTAI4G2BEDNpfdLmquYYMaMV",accessKeySecret:"tPhAL3qAgF9Tq67h73snAmwu8iPZ5t",bucket:"yiyun-client-files",secure:!0}),i=function(e){return"".concat((new Date).getTime(),"/").concat(e)},u=function(e){return"oss://".concat(e)};function s(e,n){return d.apply(this,arguments)}function d(){return d=Object(a["a"])(regeneratorRuntime.mark((function e(n,t){var a,r,o,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.length>2&&void 0!==u[2]?u[2]:{},e.prev=1,r=i(n),e.next=5,c.multipartUpload(r,t,a);case 5:return o=e.sent,e.abrupt("return",o);case 9:return e.prev=9,e.t0=e["catch"](1),console.error("file upload failed:",e.t0),e.abrupt("return",null);case 13:case"end":return e.stop()}}),e,null,[[1,9]])}))),d.apply(this,arguments)}var l=Object(o["memoize"])((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(0!==e.indexOf("oss://"))return e;var t=e.substr(6),a=n||t.split("/").pop();try{var r=3600,o=c.signatureUrl(t,{expires:r,response:{"content-disposition":'attachment; filename="'.concat(a,'"')}});return setTimeout((function(){l.cache.delete(e)}),1e3*r),o}catch(i){return null}}))},"5b49":function(e,n,t){"use strict";var a=t("1f09"),r=t.n(a);r.a},"5c0b":function(e,n,t){"use strict";var a=t("9c0c"),r=t.n(a);r.a},6964:function(e,n,t){"use strict";var a=t("7dff"),r=t.n(a);r.a},"7dff":function(e,n,t){},"856b":function(e,n,t){},"935a":function(e,n,t){},"99e1":function(e,n,t){"use strict";var a=t("f225"),r=t.n(a);r.a},"9c0c":function(e,n,t){},b775:function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"c",(function(){return f}));t("99af"),t("c975"),t("fb6a"),t("d3b7"),t("ac1f"),t("25f0"),t("1276"),t("96cf");var a=t("3835"),r=t("1da1"),o=t("bc3a"),c=t.n(o),i=t("2b0e"),u=t("41cb"),s=t("3de1");function d(e,n,t){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,r){var o,i,u,s,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=p(n),i=Object(a["a"])(o,2),u=i[0],s=i[1],e.prev=1,e.next=4,"GET"===u?c.a.get(s,{params:t},r):c.a.post(s,t,r);case 4:return d=e.sent,e.abrupt("return",d.data);case 8:if(e.prev=8,e.t0=e["catch"](1),!e.t0.response||!e.t0.response.status){e.next=16;break}e.t1=e.t0.response.status,e.next=404===e.t1?14:15;break;case 14:return e.abrupt("return",{Code:404,Msg:"找不到指定的服务。"});case 15:return e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 16:return console.error(e.t0),e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 18:case"end":return e.stop()}}),e,null,[[1,8]])}))),l.apply(this,arguments)}function f(e){if(0!==e.Code){var n=e.Code?e.Code.toString():"",t="error";404===e.Code&&(t="warning"),i["default"].prototype.$notify({message:e.Msg,title:n+"错误",type:t})}return e}function p(e){var n=e.split("/"),t=Object(a["a"])(n,1),r=t[0],o=-1!==["template","project","folder","file","templateCompany","projectLinkInvite"].indexOf(r)?"pms":"cms",c="api/".concat(o,"/").concat("authentication"===r?"":"v1/").concat(e),i="GET";switch(e){case"authentication/login":case"authentication/passwordCheck":case"company/addCompany":case"company/queryGeneralOverview":case"company/queryProviceTree":case"company/updateCompanyById":case"company/link/addCompanyLink":case"company/link/updateCompanyLink":case"dept/addDept":case"dept/updateDept":case"user/addUser":case"user/resetPassWord":case"user/updateUser":case"template/createTemplate":case"template/fileExchange":case"template/updateTemplate":case"template/uploadingXmind":case"template/addTemplateNodeModelFile":case"template/createNestedRelevance":case"template/connectNestTemplateFolder":case"folder/createSubfolder":case"project/createProject":case"project/editProject":case"project/assignedWork":case"file/addArchMilesStone":case"file/addFile":case"file/updateFile":case"file/fileCoordinationChange":case"file/setShareFile":case"operation/record":case"file/updateProjArchiveHistory":case"templateCompany/addTemplateCompany":case"project/addProjectGobalConfig":case"project/linkProject":case"file/submitDeliverables":i="POST";break;default:i="GET";break}return[i,c]}c.a.defaults.withCredentials=!0,c.a.interceptors.request.use((function(e){return 0===e.url.indexOf("api/")&&(e.url="".concat("/api/").concat(e.url.slice(4))),e}),(function(e){return Promise.reject(e)})),c.a.interceptors.response.use((function(e){return e}),(function(e){if(e.response)switch(e.response.status){case 401:"/"!=u["a"].currentRoute.fullPath&&(s["d"].error("登录超时,请重新登录"),sessionStorage.clear(),u["a"].push({path:"/"}));break}return Promise.reject(e)})),n["a"]=c.a},b8ff:function(e,n,t){"use strict";var a=t("cc4f"),r=t.n(a);r.a},c610:function(e,n,t){},cc4f:function(e,n,t){},d2ad:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("transition",{attrs:{name:"fade"}},[e.show?t("div",{staticClass:"notification_box"},[Array.isArray(e.type)?t("div",{staticClass:"notification_img"},[t("img",{class:e.type[1]?"leftIcon":""+e.typeList[e.type[0]].class,attrs:{src:e.typeList[e.type[0]].imgSrc,alt:""}}),e.type[1]?t("img",{staticClass:"righticon",attrs:{src:e.typeList[e.type[1]].imgSrc,alt:""}}):e._e()]):t("div",{staticClass:"notification_img"},[t("img",{class:e.typeList[e.type].class,attrs:{src:e.typeList[e.type].imgSrc,alt:""}})]),t("div",{staticClass:"notification_msg"},[t("div",{staticClass:"notification_msg_content"},[t("div",{staticClass:"notification_title",class:{hidden:!e.title}},[e._v(e._s(e.title))]),t("div",{staticClass:"notification_context",class:{middle:!e.title}},[e._v(e._s(e.message))])]),t("p",{staticClass:"closeBtn",attrs:{href:""},on:{click:e.handleClose}},[t("img",{attrs:{src:"/static/img/删除.svg",alt:""}})])])]):e._e()])},r=[],o=(t("a9e3"),function(e,n){return{imgSrc:"/static/img/"+e,class:n}}),c={success:o("success.svg","notifyIcon"),error:o("严重警示.svg","notifyIcon"),warning:o("事件警示.svg","notifyIcon"),"file-txt":o("file_txt.png","fileIcon"),"file-pdf":o("file_pdf.png","fileIcon"),"file-word":o("file_word.png","fileIcon"),"file-excel":o("file_excel.png","fileIcon"),"file-ppt":o("file_ppt.png","fileIcon"),upload:o("upload.png","notifyIcon"),download:o("download.svg","notifyIcon"),cooperation:o("download.svg","notifyIcon")},i={name:"Notification",props:{type:{},inItem:{type:Boolean,defalt:!1},offset:{type:Number,default:100},title:{type:String,default:""},message:{type:String,default:""},duration:{type:Number,default:3e3}},data:function(){return{show:!1,typeList:c,timer:""}},watch:{show:function(e){var n=this;e||setTimeout((function(){n.destroyElement()}),1e3)}},methods:{destroyElement:function(){this.$destroy(!0),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},handleClose:function(){this.show=!1}},created:function(){var e=this;this.timer=setTimeout((function(){e.show=!1}),this.duration)},mounted:function(){this.show=!0},beforeDestroy:function(){clearTimeout(this.timer)}},u=i,s=(t("5b49"),t("99e1"),t("2877")),d=Object(s["a"])(u,a,r,!1,null,"3a7b0566",null);n["default"]=d.exports},d903:function(e,n,t){},f225:function(e,n,t){}}); \ No newline at end of file diff --git a/static/js/app.fd05cc29.js b/static/js/app.fd05cc29.js new file mode 100644 index 00000000..2915a20d --- /dev/null +++ b/static/js/app.fd05cc29.js @@ -0,0 +1 @@ +(function(e){function n(n){for(var a,r,i=n[0],u=n[1],s=n[2],d=0,l=[];d4&&void 0!==arguments[4]?arguments[4]:[];return{platformType:e,orgId:n,orgLogo:a,orgName:t,accessList:r}}var o={CompanyConsole:"company_console",ProjectManager:"project_manager"};function c(e,n){return-1!==e.indexOf(n)}},"1d40":function(e,n,t){"use strict";(function(e){t("99af"),t("4de4"),t("7db0"),t("c975"),t("a15b"),t("d81d"),t("fb6a"),t("b0c0"),t("d3b7"),t("07ac"),t("ac1f"),t("5319"),t("1276");var a=t("5530"),r=(t("96cf"),t("1da1")),o=t("3835"),c=t("b775"),i=t("3de1"),u=t("2ef0"),s=t("2b0e"),d=!!e.electron,l=5,f=5,p=[],h=[],m=[],b=[],k=function(){p=[],h=[],m=[],b=[]},g=function(){},y=function(e){var n=new WebSocket("ws://127.0.0.1:7777/".concat(e));return n.on=n.addEventListener,n},v=function(e,n){return new Promise((function(t,a){e.on("open",(function(){e.send(n)})),e.on("message",(function(n){t(n),e.close()})),e.on("error",(function(e){return a(e)}))}))},w=function(e){return d?e:g},O={isClient:d,init:w((function(){console.log("客户端 electron API 检测:",e.electron)})),keepLiveTest:w((function(n,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u["identity"],r=y("keeplive"),o=1,c=null,i=e.electron.ipcRenderer;function s(){n(!0),r.send(o)}i.on("detectWindowSize",(function(){t((arguments.length<=1?void 0:arguments[1])||!1)})),r.on("open",(function(){c=setInterval(s,2e3)})),r.on("close",(function(){clearInterval(c),n(!1)})),r.on("error",(function(){a(),n(!1)}))})),subscribeGatewayMessage:w((function(){var e=y("messageNotify");e.on("message",(function(e){var n=e.data;try{var t=n.split("\n"),a=Object(o["a"])(t,2),r=a[0],c=a[1];i["d"].warning(c,r)}catch(u){console.error("gateway message error:",n,u)}}))})),shrinkBrowserWindow:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("shrink-browser-window");case 3:case"end":return n.stop()}}),n)})))),enlargeBrowserWindow:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("enlarge-browser-window");case 3:case"end":return n.stop()}}),n)})))),unmaxBrowserWindow:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("unmax-browser-window");case 3:case"end":return n.stop()}}),n)})))),closeBrowserWindow:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("close-browser-window");case 3:case"end":return n.stop()}}),n)})))),isMaxWindowNow:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("is-max-window-now");case 3:return a=n.sent,n.abrupt("return",a);case 5:case"end":return n.stop()}}),n)})))),initClientConfig:w((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["identity"],t=y("initClientConfig");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return s["default"].prototype.$notify({message:"请联系企业管理员检查存储节点配置项。",type:["error"]}),void n(e)}))})),checkForUpdates:w((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u["identity"],n=y("checkForUpdates"),t=1;n.on("open",(function(){n.send(t)})),n.on("message",(function(n){if("-1"===n.data)return s["default"].prototype.$notify({message:"已是最新版本。",type:["success"]}),void e(n)}))})),clientOpenFileWith:w((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["identity"],t=y("openFileWith");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return s["default"].prototype.$notify({message:"服务端出现错误, 请稍后重试。",type:["error"]}),void n(e)})),t.on("error",n)})),login:function(){},logout:function(){},entryProject:w(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,a,r,o,c){var i,s,d,l=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=l.length>6&&void 0!==l[6]?l[6]:u["identity"],e.next=3,v(y("init"),[a,t,n].join("|"));case 3:s=e.sent,o(s.data),d=y("subscriptionFileChange"),d.on("open",(function(){d.send(n)})),d.on("message",r),d.on("error",i),c(d);case 10:case"end":return e.stop()}}),e)})));return function(n,t,a,r,o,c){return e.apply(this,arguments)}}()),leaveProject:w((function(e){e.close(),k()})),downloadFile:w((function(e,n,t,a,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:u["identity"],d=function u(){var d=y("download"),l={API:"download",Action:"下载文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(c["b"])("operation/record",l),d.on("open",(function(){var r={API:"open",Action:"打开文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(c["b"])("operation/record",r),d.send([e,n,t,a].join("|"))})),d.on("message",(function(e){return"-1"===e.data?(s["default"].prototype.$notify({message:"".concat(t,",网络请求失败。"),type:["warning","download"],title:"文件下载失败"}),void o(e)):"-2"===e.data?(i["d"].error("请先关闭本地文件后再下载"),void o(e)):void r(e,d)})),d.on("error",(function(e){o(e)})),d.on("close",(function(){if(m=m.filter((function(e){return e!==u})),b.length){var e=b.shift();m.push(e),e()}}))};m.length>=f?b.push(d):(m.push(d),d())})),analyzeSystemPath:w(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var t,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,v(y("getFolderFileInfo"),n);case 2:return t=e.sent,e.prev=3,a=JSON.parse(t.data),r=Object.values(a).map((function(e){var n=e.name,t=e.extension,a=e.relativePath,r=e.absolutePath,o=0===t.indexOf(".")?t.slice(1):t,c=n.slice(0,-t.length);return{fileName:c,extension:o,relativePath:a.split("\\").filter(u["identity"]).join("/"),fullPath:r}})),e.abrupt("return",r);case 9:return e.prev=9,e.t0=e["catch"](3),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(n){return e.apply(this,arguments)}}()),chooseFiles:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("project-choose-files");case 3:if(a=n.sent,r=a.canceled,o=a.filePaths,!r){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))),chooseFolders:w(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("project-choose-folders");case 3:if(a=n.sent,r=a.canceled,o=a.filePaths,!r){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))),uploadFile:w(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var t,o,d,f,m,b,k,g,v,w,O,C,j,I,N,S,x,P,_,L,E,R,A,G,T;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=n.creator,o=n.projectId,d=n.projectName,f=n.folderId,m=n.folderName,b=n.folderLevelId,k=n.distFileRelativePath,g=void 0===k?"":k,v=n.fileName,w=n.fileExtension,O=n.sourceFilePath,C=n.fileList,j=n.onSuccess,I=n.onProgress,N=void 0===I?u["identity"]:I,S=n.onError,x=void 0===S?u["identity"]:S,P=n.successAllHandler,_=n.totalReadyUploadNum,L=n.tempNumWrap,E=w?"".concat(v,".").concat(w):v,R="".concat(m).concat(g?"/".concat(g):""),A=C.find((function(e){return g===e.relativePath&&"".concat(e.archName).concat(e.extension?".".concat(e.extension):"")===E})),G=A?Object(i["c"])(Object(a["a"])(Object(a["a"])({},A),{},{ModifyUserId:sessionStorage.userId})):{ArchName:v,CreateUserId:sessionStorage.userId,Extension:w,FolderId:f,FolderLevelId:b,Id:"upload:".concat("".concat(Math.random()).slice(2,8)),ProjId:o,RelativePath:g,Status:1,Version:1},N({process:0},G),T=function e(){var n=function(){if(p=p.filter((function(n){return n!==e})),h.length){var n=h.shift();p.push(n),n()}x.apply(void 0,arguments)},o=function(){if(p=p.filter((function(n){return n!==e})),h.length){var n=h.shift();p.push(n),n()}j.apply(void 0,arguments)},u=y("upload");u.on("open",(function(){var e="",n="",a=!1,r=[O,E,d,R.replace(/\//g,"\\"),e,n,t,a].join("|");u.send(r),N({process:0},G)})),u.on("message",function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var r,d,l,f,p,h,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("-1"!==t.data){e.next=4;break}return i["d"].error("文件上传失败"),n(t,G),e.abrupt("return");case 4:if("-2"!==t.data){e.next=8;break}return i["d"].error("请先关闭本地文件后再上传"),n(t,G),e.abrupt("return");case 8:if(e.prev=8,r=JSON.parse(t.data),d=r.size,l=r.process,f=r.hash,p=r.commitHistoryHash,N(r,G),100===l&&f){e.next=14;break}return e.abrupt("return");case 14:return u.close(),G.FileSize=+d,G.IpfsCid=f,h=Object(a["a"])({},G),A||delete h.Id,A?(h.HistoryCurrentIpfsCid=p,h.HistoryPreIpfsCid=""):h.HistoryCurrentIpfsCid=p,e.next=22,Object(c["b"])("file/".concat(A?"updateFile":"addFile"),h);case 22:if(m=e.sent,Object(c["c"])(m),0===m.Code){e.next=27;break}return n(m,G),e.abrupt("return");case 27:L.tempNumCount+=1,L.tempNumCount==_&&(s["default"].prototype.$notify({type:["success","upload"],title:"文件上传成功",message:"".concat(G.ArchName)}),P()),o(G),e.next=36;break;case 32:e.prev=32,e.t0=e["catch"](8),console.error("socket-upload-file parse data have error:",e.t0),n(e.t0,G);case 36:case"end":return e.stop()}}),e,null,[[8,32]])})));return function(n){return e.apply(this,arguments)}}()),u.on("error",(function(e){n(e,G)}))},p.length>=l?h.push(T):(p.push(T),T());case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),updateFile:w((function(e,n,t,a,o,s,d,l,f,p){var h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:u["identity"],m=arguments.length>11&&void 0!==arguments[11]?arguments[11]:u["identity"],b=y("upload"),k=e.archName,g=e.extension,v=(e.id,"".concat(k).concat(g?".".concat(g):"")),w="".concat(n,"\\").concat(a,"\\").concat(v);b.on("open",(function(){var e=[w,v,t,a,o,s,d,l].join("|");b.send(e)})),b.on("message",function(){var n=Object(r["a"])(regeneratorRuntime.mark((function n(t){var a,r,s,d,l,k,g,y;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("-1"!==t.data){n.next=4;break}return i["d"].error("文件上传失败"),m(t),n.abrupt("return");case 4:if("-2"!==t.data){n.next=8;break}return i["d"].error("请先关闭本地文件后再上传"),m(t),n.abrupt("return");case 8:if(n.prev=8,a=JSON.parse(t.data),console.log("progressData"),r=a.size,s=a.process,d=a.hash,l=a.commitHistoryHash,k=a.version,h(a),100===s&&d){n.next=15;break}return n.abrupt("return");case 15:return b.close(),g=Object(i["c"])(Object(u["cloneDeep"])(e)),g.ModifyUserId=sessionStorage.userId,g.HistoryPreIpfsCid=o,g.HistoryCurrentIpfsCid=l,f||(g.Size=+r,g.IpfsCid=d,g.Version=k),n.next=23,Object(c["b"])("file/updateFile",g);case 23:return y=n.sent,Object(c["c"])(y),f&&(g.Size=+r,g.IpfsCid=d,g.Version=k),p(g),n.abrupt("return");case 30:n.prev=30,n.t0=n["catch"](8),console.error("socket-update-file parse data have error:",t);case 33:case"end":return n.stop()}}),n,null,[[8,30]])})));return function(e){return n.apply(this,arguments)}}()),b.on("error",(function(n){m(n,e)}))})),queryCommitHistory:w((function(e,n,t){var a=y("queryCommitHistory");a.on("open",(function(){a.send([e,n].join("|"))})),a.on("message",(function(e){if("-1"===e.data)return i["d"].error("查询历史文件失败"),void t([]);var n=JSON.parse(e.data),a=Object.values(n);t(a)}))})),editCommitHistoryMilestone:w((function(e,n,t,a,r){var o=y("editCommitHistoryMilestone");o.on("open",(function(){o.send([e,n,t,a].join("|"))})),o.on("message",(function(e){if("-1"!==e.data){var n=e.data;console.log("lcb",n),r(n)}else i["d"].error("设置里程碑失败")}))})),openFile:w((function(n){var t=e.electron.shell;t.openPath(n)})),openFolder:w((function(n){var t=e.electron.shell;t.showItemInFolder(n)}))};n["a"]=O}).call(this,t("c8ba"))},"1f09":function(e,n,t){},"3de1":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return c})),t.d(n,"d",(function(){return i})),t.d(n,"a",(function(){return u}));t("99af"),t("13d5"),t("fb6a"),t("4fad"),t("d3b7");var a=t("3835"),r=t("2b0e");function o(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],o=t[1];return e["".concat(r[0].toLocaleLowerCase()).concat(r.slice(1))]=o,e}),{})}function c(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],o=t[1];return e["".concat(r[0].toLocaleUpperCase()).concat(r.slice(1))]=o,e}),{})}var i={success:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["success"],duration:2500})},error:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["error"],duration:2500})},warning:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["warning"],duration:2500})}};function u(e,n){var t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},"41cb":function(e,n,t){"use strict";t("b0c0"),t("d3b7");var a=t("2b0e"),r=t("8c4f"),o={login:"LOCKING | 登录",project:"LOCKING | 项目编辑",platform:"LOCKING | 平台选择",template:"LOCKING | 模板控制台",projnotice:"LOCKING | 更新提醒",notFound:"404 | 未找到该页面",workspace:"LOCKING | 项目详情",search:"LOCKING | 搜索",recycle:"LOCKING | 回收站",cloud:"LOCKING | 云盘",cloudrecycle:"LOCKING | 云回收站",cloudsource:"LOCKING | 云资源管理器",company:"LOCKING | 企业后台",message2:"LOCKING | 企业后台",company_message:"LOCKING | 平台消息",company_user:"LOCKING | 通讯录",company_project:"LOCKING | 项目管理",company_template:"LOCKING | 模板与应用",company_setting:"LOCKING | 通用设置",company_template_detail:"LOCKING | 模板查看",company_app:"LOCKING | 应用",company_template_market:"LOCKING | 应用市场",system:"LOCKING | 总后台",system_template:"LOCKING | 流程模板",system_template_mind:"LOCKING | 思维导图",system_template_matrix:"LOCKING | 矩阵模板",system_runmanage:"LOCKING | 运行管理",system_appcenter:"LOCKING | 应用管理",system_setting:"LOCKING | 总体权限",system_appinfo:"LOCKING | 应用介绍",system_template_file:"流程模板 | 样板文件"};a["default"].use(r["a"]);var c=new r["a"]({mode:"hash",routes:[{path:"/",name:"login",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-63d4ab7f")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-1f4d12f6")]).then(t.bind(null,"46a4"))}},{path:"/projdetail",name:"projdetail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-77e90549"),t.e("chunk-4627beac")]).then(t.bind(null,"47c5"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-59bb5b90")]).then(t.bind(null,"1670"))}},{path:"/notification",name:"notification",component:function(){return Promise.resolve().then(t.bind(null,"d2ad"))}},{path:"/newproject",name:"newproject",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-115028d7")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-ec554b20")]).then(t.bind(null,"80fb"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-6f87105f")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-d9ddb9e6")]).then(t.bind(null,"011a"))}},{path:"/projnotice",name:"projnotice",component:function(){return t.e("chunk-05bf99c1").then(t.bind(null,"00ec"))}},{path:"/email",name:"email",component:function(){return t.e("chunk-2d0ac90d").then(t.bind(null,"19a0"))}},{path:"/workspace",name:"workspace",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-7e46145d"),t.e("chunk-77e90549"),t.e("chunk-7125e649")]).then(t.bind(null,"3b2f"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-5272defd")]).then(t.bind(null,"8b1e"))}},{path:"/history",name:"history",component:function(){return Promise.all([t.e("chunk-7e46145d"),t.e("chunk-2d0d2af5")]).then(t.bind(null,"a2d2"))}},{path:"/cloud",name:"cloud",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-6d72e803")]).then(t.bind(null,"4488"))}},{path:"/cloudrecycle",name:"cloudrecycle",component:function(){return t.e("chunk-2d224b2b").then(t.bind(null,"e0f0"))}},{path:"/cloudsource",name:"cloudsource",component:function(){return t.e("chunk-2d0c061a").then(t.bind(null,"4217"))}},{path:"/company",name:"company",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-2627340f")]).then(t.bind(null,"db21"))},redirect:{name:"company_home"},children:[{path:"home",name:"company_home",component:function(){return t.e("chunk-309e49e4").then(t.bind(null,"345a"))}},{path:"message",name:"company_message",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0cf6a4")]).then(t.bind(null,"642b"))}},{path:"user",name:"company_user",component:function(){return t.e("chunk-7db1403b").then(t.bind(null,"29c0"))}},{path:"project",name:"company_project",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-038ce22f")]).then(t.bind(null,"e984"))}},{path:"template",name:"company_template",component:function(){return t.e("chunk-84f66ece").then(t.bind(null,"4083"))}},{path:"template/detail",name:"company_template_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-310a053d")]).then(t.bind(null,"df39"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-d1bd5818")]).then(t.bind(null,"be38"))}},{path:"setting",name:"company_setting",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-1fe39068")]).then(t.bind(null,"cda4"))}},{path:"app",name:"company_app",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0b3688")]).then(t.bind(null,"27f3"))}}]},{path:"/template",name:"template",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-1f7519e6")]).then(function(){var n=[t("65b7")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"template_console"},children:[{path:"console",name:"template_console",component:function(){return t.e("chunk-d4bc3576").then(t.bind(null,"8875"))}},{path:"console/detail",name:"template_console_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-edf65c70")]).then(t.bind(null,"ccf7"))}},{path:"console/create",name:"template_console_create",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-15f86d65")]).then(function(){var n=[t("1fab7")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/system",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-d4e6d2d8")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-94641ab6").then(t.bind(null,"f851"))}},{path:"template",name:"system_template",component:function(){return t.e("chunk-78390ace").then(t.bind(null,"81b5"))}},{path:"runmanage",name:"system_runmanage",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-11067227")]).then(t.bind(null,"d798"))}},{path:"template/matrix",name:"system_template_matrix",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-3b425bf2")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-695cbab1")]).then(t.bind(null,"bccc"))}},{path:"template/tempfile",name:"system_template_file",component:function(){return t.e("chunk-28990618").then(t.bind(null,"f1f7"))}},{path:"appcenter",name:"system_appcenter",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0e148e")]).then(t.bind(null,"7a7e"))}},{path:"appinfo",name:"system_appinfo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d21b850")]).then(t.bind(null,"bfb8"))}},{path:"setting",name:"system_setting",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-1fe40532")]).then(t.bind(null,"ddca"))}},{path:"*",redirect:{name:"system_customer"}}]},{path:"*",name:"notfound",component:function(){return t.e("chunk-15a37012").then(t.bind(null,"9403"))}}]});c.beforeEach((function(e,n,t){"/"===e.path||sessionStorage.getItem("userId")?t():t({path:"/"})})),c.afterEach((function(e){window.document.title=o[e.name]||"LOCKING | 云建筑"}));n["a"]=c},"51b0":function(e,n,t){},"53be":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("4de4"),t("e260"),t("e6cf"),t("cca6"),t("a79d");var a=t("2b0e"),r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view",{ref:"mainpage",staticClass:"mt-40",class:{"mt-64":e.setMarginTop,"calc-height":e.setMarginTop,"workspace-bigbody":e.$route.path.indexOf("/workspace")>=0,"mt-76":"newproject"==e.$route.name||"projdetail"==e.$route.name},attrs:{id:"bigbody"}})],1)},o=[],c=(t("c975"),t("b0c0"),t("1d40")),i={components:{},name:"App",data:function(){return{header_show:!0,companyName:"",mypath:"/",showIndexOption:!1,showHelpPage:!1,searchName:"",isShowOutWorkSpace:!1,outWorkSpace:!1,isClient:c["a"].isClient,onlineStatus:!1,state:this.$store.state}},created:function(){var e=this;console.log("版本编译时间:","2021.05.12 15:06"),null!=document.getElementById("Loading")&&null!=document.getElementById("Loading").nodeName&&""!=document.getElementById("Loading").nodeName&&document.body.removeChild(document.getElementById("Loading")),"login"!=this.$route.name&&"notfound"!=this.$route.name&&"platform"!==this.$route.name||(this.header_show=!1),this.isClient&&(c["a"].keepLiveTest((function(n){e.onlineStatus=n,e.$store.changeGatewayState(n),sessionStorage.setItem("isOnLine",String(n&&navigator.onLine))}),(function(n){e.$store.state.isMaxWindowSize=n})),c["a"].subscribeGatewayMessage())},computed:{setMarginTop:function(){return this.isClient||"workspace"==this.$route.name},currentRoutePath:function(){return this.$route.path}},mounted:function(){window.addEventListener("scroll",this.handleScroll,!0)},methods:{handleScroll:function(){},showOption:function(){this.showIndexOption=!0},showHelp:function(){this.showHelpPage=!0},closeShowOption:function(){this.showIndexOption=!1,this.showHelpPage=!1},closeWorkSet:function(){"workspace"==this.$route.name&&this.$refs["mainpage"].closeAppManagePain()},getSearchName:function(e){this.searchName=e},getIsShowOutWorkSpace:function(e){this.outWorkSpace=!1,this.isShowOutWorkSpace=e},getOutWorkSpace:function(e){this.outWorkSpace=e}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},watch:{$route:function(e){this.mypath=e.path},currentRoutePath:function(e){e.indexOf("projdetail")>=0?document.body.classList.add("set-bgc"):document.body.classList.remove("set-bgc")}}},u=i,s=(t("5c0b"),t("b8ff"),t("6964"),t("2877")),d=Object(s["a"])(u,r,o,!1,null,"d326a332",null),l=d.exports,f=t("41cb"),p=t("5c96"),h=t.n(p),m=(t("0fae"),t("96cf"),t("1da1")),b=t("b775"),k=t("0f13"),g=t("3de1"),y=function(){return{gatewayState:!1,isMaxWindowSize:!1,client:c["a"].isClient?"桌面端":"WEB端"}},v=function(){return{isLogin:!1,accountId:void 0,accountName:void 0,userName:void 0,platformList:[],currentPlatform:{},currentCompanyId:void 0,avator:void 0,userInfo:{}}},w=function(){var e=Object.assign(y(),v());try{var n=JSON.parse(sessionStorage.getItem("user")),t=sessionStorage.getItem("companyId"),a=JSON.parse(sessionStorage.getItem("platform")||"{}");n&&n.accountId&&(e.isLogin=!0,Object.assign(e,n),e.currentCompanyId=t,e.currentPlatform=a)}catch(r){console.log("加载session数据失败"),e=Object.assign(y(),v())}return e},O={state:w(),setCurrentPlatform:function(e){this.state.currentPlatform=e,this.state.currentCompanyId=e.orgId,sessionStorage.companyId=e.orgId,sessionStorage.platform=JSON.stringify(e),sessionStorage.CompanyName=JSON.parse(sessionStorage.platform).orgName,sessionStorage.accountName=JSON.parse(sessionStorage.user).accountName;var n={API:"authentication/login",Action:"登录",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.accountName,Source:sessionStorage.client};Object(b["b"])("operation/record",n)},setIsMaxWindowSize:function(e){this.state.isMaxWindowSize=e},changeGatewayState:function(e){this.state.gatewayState=e},login:function(e,n){var t=this;return Object(m["a"])(regeneratorRuntime.mark((function a(){var r,o,c,i,u,s,d,l,f,p,h,m,y,v,w,O,C,j,I,N;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(b["b"])("authentication/login",{UserName:e,PassWord:n});case 2:if(r=a.sent,o=0===r.Code,o){a.next=6;break}return a.abrupt("return",r);case 6:if(t.state.isLogin=!0,c=Object(g["b"])(r.Data||{}),delete c.userExt,i=c.companyId,u=c.cnName,s=c.id,d=c.permission,l=c.backgroundPermission,f=[],p={accountId:s,accountName:e,userName:u,platformList:f,userInfo:c},h=3===l,m=2===l,!h){a.next=18;break}f.push(Object(k["d"])(k["b"].MANAGE_CENTER,i,"LOCKING 总后台",void 0,[])),a.next=30;break;case 18:return a.next=20,Object(b["b"])("company/queryFrontDeskCompanyById",{id:i});case 20:if(y=a.sent,0===y.Code){a.next=23;break}return a.abrupt("return",y);case 23:v=y.Data,w=void 0===v?{}:v,O=w.company,C=O.LogoUrl,j=O.CompanyName,I=O.ServiceProviderStatus,N=[],1==I&&f.push(Object(k["d"])(k["b"].TEMPLATE_CONSOLE,i,j,C,[])),m&&N.push(k["a"].CompanyConsole),1===d&&N.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,j,C,N));case 30:return t.state.isLogin=!0,Object.assign(t.state,p),sessionStorage.client=t.state.client,sessionStorage.userId=s,sessionStorage.accountId=s,sessionStorage.user=JSON.stringify(p),a.abrupt("return",{Code:r.Code,Data:p});case 37:case"end":return a.stop()}}),a)})))()},logout:function(){var e={API:"authentication/loginOut",Action:"注销",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.accountName,Source:sessionStorage.client};Object(b["b"])("operation/record",e),this.state=Object.assign(this.state,v()),Object(b["b"])("authentication/loginOut"),sessionStorage.clear()}},C=t("2f62"),j=t("a78e"),I=t.n(j),N=t("5ab9"),S=function(e){return Object(N["a"])(e)||"/static/img/avator_default.svg"},x=function(e,n){var t="avator"===n?"/static/img/avator_default.svg":"";return Object(N["a"])(e)||t},P=t("cee5"),_=t.n(P),L=function(e){return _()(e)},E=t("caf9"),R=t("32ed"),A=t.n(R),G=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.src,expression:"src"}]})},T=[],$={props:{src:String}},M=$,K=Object(s["a"])(M,G,T,!1,null,null,null),F=K.exports,W=(t("856b"),t("d903"),t("c610"),t("935a"),t("51b0"),t("53be"),t("1f94"),t("d2ad")),H=a["default"].extend(W["default"]),z=document.createElement("div");z.style="position: fixed; right: 32px; top: 68px;z-index:99999",document.body.appendChild(z);var B=function(e){var n=new H({propsData:e});n.vm=n.$mount(),z.appendChild(n.vm.$el)},D=B;a["default"].use(h.a),a["default"].use(E["a"]),a["default"].use(C["a"]),a["default"].prototype.$cookie=I.a,a["default"].component("ImgLazy",F),a["default"].prototype.$axios=b["a"],a["default"].prototype.$fetch=b["a"],a["default"].prototype.$fetchApi=b["b"],a["default"].filter("resolveImg",x),a["default"].filter("resolveAvator",S),a["default"].filter("resolveFileSize",L),a["default"].prototype.$bus=new a["default"],a["default"].prototype.$notify=D,a["default"].use(A.a),a["default"].config.productionTip=!1,new a["default"]({router:f["a"],store:O,render:function(e){return e(l)}}).$mount("#app")},"5ab9":function(e,n,t){"use strict";t.d(n,"c",(function(){return u})),t.d(n,"b",(function(){return s})),t.d(n,"a",(function(){return l}));t("99af"),t("c975"),t("ac1f"),t("1276"),t("96cf");var a=t("1da1"),r=t("9b15"),o=t("2ef0"),c=new r({region:"oss-cn-hangzhou",accessKeyId:"LTAI4G2BEDNpfdLmquYYMaMV",accessKeySecret:"tPhAL3qAgF9Tq67h73snAmwu8iPZ5t",bucket:"yiyun-client-files",secure:!0}),i=function(e){return"".concat((new Date).getTime(),"/").concat(e)},u=function(e){return"oss://".concat(e)};function s(e,n){return d.apply(this,arguments)}function d(){return d=Object(a["a"])(regeneratorRuntime.mark((function e(n,t){var a,r,o,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.length>2&&void 0!==u[2]?u[2]:{},e.prev=1,r=i(n),e.next=5,c.multipartUpload(r,t,a);case 5:return o=e.sent,e.abrupt("return",o);case 9:return e.prev=9,e.t0=e["catch"](1),console.error("file upload failed:",e.t0),e.abrupt("return",null);case 13:case"end":return e.stop()}}),e,null,[[1,9]])}))),d.apply(this,arguments)}var l=Object(o["memoize"])((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(0!==e.indexOf("oss://"))return e;var t=e.substr(6),a=n||t.split("/").pop();try{var r=3600,o=c.signatureUrl(t,{expires:r,response:{"content-disposition":'attachment; filename="'.concat(a,'"')}});return setTimeout((function(){l.cache.delete(e)}),1e3*r),o}catch(i){return null}}))},"5b49":function(e,n,t){"use strict";var a=t("1f09"),r=t.n(a);r.a},"5c0b":function(e,n,t){"use strict";var a=t("9c0c"),r=t.n(a);r.a},6964:function(e,n,t){"use strict";var a=t("7dff"),r=t.n(a);r.a},"7dff":function(e,n,t){},"856b":function(e,n,t){},"935a":function(e,n,t){},"99e1":function(e,n,t){"use strict";var a=t("f225"),r=t.n(a);r.a},"9c0c":function(e,n,t){},b775:function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"c",(function(){return f}));t("99af"),t("c975"),t("fb6a"),t("d3b7"),t("ac1f"),t("25f0"),t("1276"),t("96cf");var a=t("3835"),r=t("1da1"),o=t("bc3a"),c=t.n(o),i=t("2b0e"),u=t("41cb"),s=t("3de1");function d(e,n,t){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,r){var o,i,u,s,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=p(n),i=Object(a["a"])(o,2),u=i[0],s=i[1],e.prev=1,e.next=4,"GET"===u?c.a.get(s,{params:t},r):c.a.post(s,t,r);case 4:return d=e.sent,e.abrupt("return",d.data);case 8:if(e.prev=8,e.t0=e["catch"](1),!e.t0.response||!e.t0.response.status){e.next=16;break}e.t1=e.t0.response.status,e.next=404===e.t1?14:15;break;case 14:return e.abrupt("return",{Code:404,Msg:"找不到指定的服务。"});case 15:return e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 16:return console.error(e.t0),e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 18:case"end":return e.stop()}}),e,null,[[1,8]])}))),l.apply(this,arguments)}function f(e){if(0!==e.Code){var n=e.Code?e.Code.toString():"",t="error";404===e.Code&&(t="warning"),i["default"].prototype.$notify({message:e.Msg,title:n+"错误",type:t})}return e}function p(e){var n=e.split("/"),t=Object(a["a"])(n,1),r=t[0],o=-1!==["template","project","folder","file","templateCompany","projectLinkInvite"].indexOf(r)?"pms":"cms",c="api/".concat(o,"/").concat("authentication"===r?"":"v1/").concat(e),i="GET";switch(e){case"authentication/login":case"authentication/passwordCheck":case"company/addCompany":case"company/queryGeneralOverview":case"company/queryProviceTree":case"company/updateCompanyById":case"company/link/addCompanyLink":case"company/link/updateCompanyLink":case"dept/addDept":case"dept/updateDept":case"user/addUser":case"user/resetPassWord":case"user/updateUser":case"template/createTemplate":case"template/fileExchange":case"template/updateTemplate":case"template/uploadingXmind":case"template/addTemplateNodeModelFile":case"template/createNestedRelevance":case"template/connectNestTemplateFolder":case"folder/createSubfolder":case"project/createProject":case"project/editProject":case"project/assignedWork":case"file/addArchMilesStone":case"file/addFile":case"file/updateFile":case"file/fileCoordinationChange":case"file/setShareFile":case"operation/record":case"file/updateProjArchiveHistory":case"templateCompany/addTemplateCompany":case"project/addProjectGobalConfig":case"project/linkProject":case"file/submitDeliverables":i="POST";break;default:i="GET";break}return[i,c]}c.a.defaults.withCredentials=!0,c.a.interceptors.request.use((function(e){return 0===e.url.indexOf("api/")&&(e.url="".concat("/api/").concat(e.url.slice(4))),e}),(function(e){return Promise.reject(e)})),c.a.interceptors.response.use((function(e){return e}),(function(e){if(e.response)switch(e.response.status){case 401:"/"!=u["a"].currentRoute.fullPath&&(s["d"].error("登录超时,请重新登录"),sessionStorage.clear(),u["a"].push({path:"/"}));break}return Promise.reject(e)})),n["a"]=c.a},b8ff:function(e,n,t){"use strict";var a=t("cc4f"),r=t.n(a);r.a},c610:function(e,n,t){},cc4f:function(e,n,t){},d2ad:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("transition",{attrs:{name:"fade"}},[e.show?t("div",{staticClass:"notification_box"},[Array.isArray(e.type)?t("div",{staticClass:"notification_img"},[t("img",{class:e.type[1]?"leftIcon":""+e.typeList[e.type[0]].class,attrs:{src:e.typeList[e.type[0]].imgSrc,alt:""}}),e.type[1]?t("img",{staticClass:"righticon",attrs:{src:e.typeList[e.type[1]].imgSrc,alt:""}}):e._e()]):t("div",{staticClass:"notification_img"},[t("img",{class:e.typeList[e.type].class,attrs:{src:e.typeList[e.type].imgSrc,alt:""}})]),t("div",{staticClass:"notification_msg"},[t("div",{staticClass:"notification_msg_content"},[t("div",{staticClass:"notification_title",class:{hidden:!e.title}},[e._v(e._s(e.title))]),t("div",{staticClass:"notification_context",class:{middle:!e.title}},[e._v(e._s(e.message))])]),t("p",{staticClass:"closeBtn",attrs:{href:""},on:{click:e.handleClose}},[t("img",{attrs:{src:"/static/img/删除.svg",alt:""}})])])]):e._e()])},r=[],o=(t("a9e3"),function(e,n){return{imgSrc:"/static/img/"+e,class:n}}),c={success:o("success.svg","notifyIcon"),error:o("严重警示.svg","notifyIcon"),warning:o("事件警示.svg","notifyIcon"),"file-txt":o("file_txt.png","fileIcon"),"file-pdf":o("file_pdf.png","fileIcon"),"file-word":o("file_word.png","fileIcon"),"file-excel":o("file_excel.png","fileIcon"),"file-ppt":o("file_ppt.png","fileIcon"),upload:o("upload.png","notifyIcon"),download:o("download.svg","notifyIcon"),cooperation:o("download.svg","notifyIcon")},i={name:"Notification",props:{type:{},inItem:{type:Boolean,defalt:!1},offset:{type:Number,default:100},title:{type:String,default:""},message:{type:String,default:""},duration:{type:Number,default:3e3}},data:function(){return{show:!1,typeList:c,timer:""}},watch:{show:function(e){var n=this;e||setTimeout((function(){n.destroyElement()}),1e3)}},methods:{destroyElement:function(){this.$destroy(!0),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},handleClose:function(){this.show=!1}},created:function(){var e=this;this.timer=setTimeout((function(){e.show=!1}),this.duration)},mounted:function(){this.show=!0},beforeDestroy:function(){clearTimeout(this.timer)}},u=i,s=(t("5b49"),t("99e1"),t("2877")),d=Object(s["a"])(u,a,r,!1,null,"3a7b0566",null);n["default"]=d.exports},d903:function(e,n,t){},f225:function(e,n,t){}}); \ No newline at end of file diff --git a/static/js/chunk-038ce22f.0f74b093.js b/static/js/chunk-038ce22f.dc58a5cd.js similarity index 100% rename from static/js/chunk-038ce22f.0f74b093.js rename to static/js/chunk-038ce22f.dc58a5cd.js diff --git a/static/js/chunk-05bf99c1.a3727c76.js b/static/js/chunk-05bf99c1.c258f6fb.js similarity index 100% rename from static/js/chunk-05bf99c1.a3727c76.js rename to static/js/chunk-05bf99c1.c258f6fb.js diff --git a/static/js/chunk-11067227.fb459518.js b/static/js/chunk-11067227.76f23d2a.js similarity index 100% rename from static/js/chunk-11067227.fb459518.js rename to static/js/chunk-11067227.76f23d2a.js diff --git a/static/js/chunk-115028d7.6e496db2.js b/static/js/chunk-115028d7.07ff78cf.js similarity index 100% rename from static/js/chunk-115028d7.6e496db2.js rename to static/js/chunk-115028d7.07ff78cf.js diff --git a/static/js/chunk-15a37012.007d472f.js b/static/js/chunk-15a37012.177489b7.js similarity index 100% rename from static/js/chunk-15a37012.007d472f.js rename to static/js/chunk-15a37012.177489b7.js diff --git a/static/js/chunk-15f86d65.595d30e0.js b/static/js/chunk-15f86d65.546a8eb0.js similarity index 100% rename from static/js/chunk-15f86d65.595d30e0.js rename to static/js/chunk-15f86d65.546a8eb0.js diff --git a/static/js/chunk-1f4d12f6.9e3ed07b.js b/static/js/chunk-1f4d12f6.c49feaee.js similarity index 100% rename from static/js/chunk-1f4d12f6.9e3ed07b.js rename to static/js/chunk-1f4d12f6.c49feaee.js diff --git a/static/js/chunk-1f7519e6.58533b9a.js b/static/js/chunk-1f7519e6.20e57334.js similarity index 100% rename from static/js/chunk-1f7519e6.58533b9a.js rename to static/js/chunk-1f7519e6.20e57334.js diff --git a/static/js/chunk-1fe39068.88545176.js b/static/js/chunk-1fe39068.6eb21269.js similarity index 100% rename from static/js/chunk-1fe39068.88545176.js rename to static/js/chunk-1fe39068.6eb21269.js diff --git a/static/js/chunk-1fe40532.37d1b0db.js b/static/js/chunk-1fe40532.8aecb124.js similarity index 100% rename from static/js/chunk-1fe40532.37d1b0db.js rename to static/js/chunk-1fe40532.8aecb124.js diff --git a/static/js/chunk-2627340f.fab96d75.js b/static/js/chunk-2627340f.7a81d60b.js similarity index 100% rename from static/js/chunk-2627340f.fab96d75.js rename to static/js/chunk-2627340f.7a81d60b.js diff --git a/static/js/chunk-28990618.95f3515c.js b/static/js/chunk-28990618.6e568286.js similarity index 100% rename from static/js/chunk-28990618.95f3515c.js rename to static/js/chunk-28990618.6e568286.js diff --git a/static/js/chunk-2d0ac90d.e0bcd5e3.js b/static/js/chunk-2d0ac90d.74f551bb.js similarity index 100% rename from static/js/chunk-2d0ac90d.e0bcd5e3.js rename to static/js/chunk-2d0ac90d.74f551bb.js diff --git a/static/js/chunk-2d0b3688.e4fc10cd.js b/static/js/chunk-2d0b3688.4bcd4a65.js similarity index 100% rename from static/js/chunk-2d0b3688.e4fc10cd.js rename to static/js/chunk-2d0b3688.4bcd4a65.js diff --git a/static/js/chunk-2d0c061a.f4fb38fd.js b/static/js/chunk-2d0c061a.c1c64345.js similarity index 100% rename from static/js/chunk-2d0c061a.f4fb38fd.js rename to static/js/chunk-2d0c061a.c1c64345.js diff --git a/static/js/chunk-2d0cf6a4.55312a34.js b/static/js/chunk-2d0cf6a4.8f716e91.js similarity index 100% rename from static/js/chunk-2d0cf6a4.55312a34.js rename to static/js/chunk-2d0cf6a4.8f716e91.js diff --git a/static/js/chunk-2d0e148e.291e91e7.js b/static/js/chunk-2d0e148e.7cb2960f.js similarity index 100% rename from static/js/chunk-2d0e148e.291e91e7.js rename to static/js/chunk-2d0e148e.7cb2960f.js diff --git a/static/js/chunk-2d21b850.4aeeb7cf.js b/static/js/chunk-2d21b850.d7bb1f1a.js similarity index 100% rename from static/js/chunk-2d21b850.4aeeb7cf.js rename to static/js/chunk-2d21b850.d7bb1f1a.js diff --git a/static/js/chunk-2d224b2b.fa650c95.js b/static/js/chunk-2d224b2b.519294b6.js similarity index 100% rename from static/js/chunk-2d224b2b.fa650c95.js rename to static/js/chunk-2d224b2b.519294b6.js diff --git a/static/js/chunk-309e49e4.018ab90b.js b/static/js/chunk-309e49e4.c24827a4.js similarity index 100% rename from static/js/chunk-309e49e4.018ab90b.js rename to static/js/chunk-309e49e4.c24827a4.js diff --git a/static/js/chunk-310a053d.148e23fd.js b/static/js/chunk-310a053d.77b09266.js similarity index 100% rename from static/js/chunk-310a053d.148e23fd.js rename to static/js/chunk-310a053d.77b09266.js diff --git a/static/js/chunk-3b425bf2.e6522618.js b/static/js/chunk-3b425bf2.2a4e7312.js similarity index 100% rename from static/js/chunk-3b425bf2.e6522618.js rename to static/js/chunk-3b425bf2.2a4e7312.js diff --git a/static/js/chunk-4627beac.f37e804b.js b/static/js/chunk-4627beac.f37e804b.js new file mode 100644 index 00000000..abc38a25 --- /dev/null +++ b/static/js/chunk-4627beac.f37e804b.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4627beac"],{"14b7":function(e,t,s){},2532:function(e,t,s){"use strict";var i=s("23e7"),r=s("5a34"),a=s("1d80"),n=s("ab13");i({target:"String",proto:!0,forced:!n("includes")},{includes:function(e){return!!~String(a(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},"2fff":function(e,t,s){"use strict";var i=s("7e58"),r=s.n(i);r.a},"30c5":function(e,t,s){},"47c5":function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"proj-detail"},[s("app-header",{attrs:{theme:"basis",isShowTopBar:!0,backBtnTitle:e.isEnterEdit?"":"退出项目编辑",showUserCenter:!1,showBackBtn:!e.isEnterEdit,onBackBtnClick:e.returnToProjListPage}}),s("div",{staticClass:"content-wrap",class:{"set-content-wrap":e.isEnterEdit}},[e.isEnterEdit?e._e():s("div",{staticClass:"graph-left-part"},[s("nodes-viewer",{staticClass:"node-viewer",attrs:{node:e.treeNode}})],1),s("div",{staticClass:"right-part",class:{"set-right-part-width":e.isEnterEdit}},[!e.isShowDistWorkPage&&e.isShowStartProjDesc?s("div",{ref:"projdesc",staticClass:"proj-desc adjust-top-radius"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{showUserCenter:!1}},[s("div",{staticClass:"title",attrs:{slot:"left"},slot:"left"},[e._v("项目概况")]),s("div",{staticClass:"to-distwork-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.handleShowDistWorkPage(t)}},slot:"right"},[e._v("开始")])]),s("div",{staticClass:"proj-desc-wrap"},[s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("项目名称")]),e.projectNameEditFlag?s("div",{staticClass:"item-value edit"},[s("el-input",{staticClass:"field-input",attrs:{size:"mini",autofocus:!0},model:{value:e.editingProjectName,callback:function(t){e.editingProjectName=t},expression:"editingProjectName"}}),s("el-button",{attrs:{size:"mini"},on:{click:function(t){return t.stopPropagation(),e.renameProjectName(t)}}},[e._v("确认")]),s("el-button",{attrs:{size:"mini"},on:{click:function(t){t.stopPropagation(),e.projectNameEditFlag=!1}}},[e._v("取消")])],1):s("div",{staticClass:"item-value"},[s("span",{staticStyle:{flex:"1"}},[e._v(e._s(e.nowProject.ProjName))]),e.isProjManager?s("el-button",{staticClass:"float-button",attrs:{size:"mini"},on:{click:function(t){t.stopPropagation(),e.projectNameEditFlag=!0}}},[e._v("编辑")]):e._e()],1)]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("项目负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateUserName))])]),s("div",{staticClass:"item cover-container"},[s("div",{staticClass:"item-title"},[e._v("封面")]),s("div",{staticClass:"item-value cover-img-wrap use-relative",style:e.showBackground(e.coverSrc)},[s("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[s("div",[e._v("编辑")])])],1)]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title proj-main-template"},[e._v("项目主要模板")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("模板负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("创建时间")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),e._l(e.listProjProp,(function(t){return s("div",{key:t.TempPropId,staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),s("div",{staticClass:"item-value"},[e._v(e._s(t.PropValue))])])}))],2)],1):e._e(),e.isShowDistWorkPage&&!e.isShowTemplateSummary?s("div",{staticClass:"distwork-page"},[e.isEnterEdit?s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isDistWorkPartScroll},attrs:{title:"指派工作",showUserCenter:!1}},[s("div",{staticClass:"finish-edit-btn",attrs:{slot:"left"},on:{click:function(t){return t.stopPropagation(),e.finishEditClick(t)}},slot:"left"},[e._v("完成编辑")]),s("div",{staticClass:"question",attrs:{slot:"right"},slot:"right"},[s("i",{staticClass:"ques-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),s("span",{staticClass:"ques-text"},[e._v("了解工作负责人")])])]):s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isDistWorkPartScroll},attrs:{backBtnTitle:"项目概况",onBackBtnClick:e.showProjDetailClick,title:e.nowProject.TempName,showUserCenter:!1,showBackBtn:!0}}),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowManagerTips,expression:"isShowManagerTips"}],staticClass:"manager-tips"},[s("i",{staticClass:"close-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),s("div",{staticClass:"tips-text"},[e._v("工作负责人将有权管理“负责工作中的成员”,点击用户头像变更工作负责人。")])]),s("div",{ref:"distworkpart",staticClass:"part-wrap"},[e.isEnterEdit?e._e():s("div",{staticClass:"template-detail-btn",on:{click:function(t){t.stopPropagation(),e.isShowTemplateSummary=!0,e.isEnterEditPropValue=!1}}},[e._v("模板概况")]),e.isProjManager?s("div",{staticClass:"manager-folder-wrap",class:{"active-folder mb-36":e.isEditProjManager,"only-manager-see folder-click":!e.isEnterEdit}},[s("div",{staticClass:"row-title"},[e._v("项目管理权限")]),s("div",{staticClass:"proj-manager-row use-relative",on:{click:function(t){return t.stopPropagation(),e.activeManagerClick(t)}}},[e.isEnterEdit&&e.isEditProjManager?e._e():s("div",{staticClass:"use-relative ml-4 clear-fix"},[s("div",{staticClass:"use-relative fl"},[s("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{user:e.currUser,isShowManagerMark:e.isEnterEdit}})],1),s("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),s("div",{staticClass:"use-flex fl"},[e.listManagerUser&&e.listManagerUser.length>0?s("div",{staticClass:"use-flex fl"},e._l(e.filterManageFromListUser(e.currUser.id,e.listManagerUser),(function(t){return s("people-item",{key:t.id,attrs:{user:t,isEnterEdit:e.isEnterEdit}})})),1):e._e(),!e.isEnterEdit&&e.isProjCreator?s("people-item",{nativeOn:{click:function(t){return t.stopPropagation(),e.addProjManager(t)}}}):e._e()],1)]),e.isEnterEdit&&e.isEditProjManager?s("div",{staticClass:"use-relative ml-4 use-flex"},[s("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]):e._e(),s("plain-folder-list",{staticClass:"plain-folder-list",attrs:{nestNodeList:e.nestNodeList,isEnterEdit:e.isEnterEdit,id:e.userId,lastFolderId:e.lastFolderId,folderList:e.listNewFolder,allManager:e.currUser,allManagerChild:e.listManagerUser,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists,activeFolderId:e.activeFolderId,selectedUser:e.selectedUser,isProjManager:e.isProjManager}})],1)],1):e._e(),e.isShowTemplateSummary?s("div",{staticClass:"template-summary"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isTemplateDescScroll},attrs:{backBtnTitle:"返回",theme:"",onBackBtnClick:e.returnToDistWorkClick,title:e.nowProject.TempName,showUserCenter:!1,showBackBtn:!0}},[s("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.handleEditTemplate(t)}},slot:"right"},[e._v(" "+e._s(e.isEnterEditPropValue?"完成编辑":"修改")+" ")])]),Object.keys(e.nowProject).length>0?s("div",{ref:"templatedesc",staticClass:"summary-wrap"},[s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("模板负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("创建时间")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("工程名称")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjName))])]),e._l(e.listProjProp,(function(t){return s("div",{key:t.TempPropId,staticClass:"item"},[s("div",{staticClass:"item-title",class:{"adjust-title-position":e.isEnterEditPropValue}},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),s("div",{staticClass:"item-value"},[e.isEnterEditPropValue?s("input",{directives:[{name:"model",rawName:"v-model",value:t.PropValue,expression:"prop.PropValue"}],staticClass:"prop-value-input",attrs:{type:"text"},domProps:{value:t.PropValue},on:{input:function(s){s.target.composing||e.$set(t,"PropValue",s.target.value)}}}):s("div",[e._v(e._s(t.PropValue))])])])}))],2):e._e()],1):e._e(),e.isStartEditNestTemp?s("link-project",{attrs:{isTemNestInProp:e.isTemNest,nestNodeFolder:e.nestNodeFolder},on:{enterDistWork:e.enterDistWork}}):e._e()],1),e.isEnterEdit?s("div",{staticClass:"personnel-list-part",class:{"set-personnel-list-width":e.isEnterEdit}},[s("personnel-list",{attrs:{treeList:e.memberTree,selectedKeys:e.selectedMemberKeys},on:{select:e.onSelectMembers}})],1):e._e()]),e.nestNodeFolder?s("el-dialog",{staticClass:"nest-project-modal",attrs:{visible:e.nestProjectModalVisible,center:"",top:"48px",width:"660px"},on:{"update:visible":function(t){e.nestProjectModalVisible=t}},scopedSlots:e._u([{key:"title",fn:function(){return[s("div",{staticClass:"nest-project-modal-title"},[s("span",[e._v(e._s(e.nestNodeFolder.folderName)+"的互链项目")]),s("el-button",{on:{click:function(t){t.stopPropagation(),e.nestProjectModalVisible=!1}}},[e._v("关闭")])],1)]},proxy:!0}],null,!1,1702687869)},[e.nestProjectInfo?s("div",{staticClass:"proj-desc-wrap dialog-detail"},[s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("项目名称")]),s("div",{staticClass:"item-value"},[s("span",{staticStyle:{flex:"1"}},[e._v(e._s(e.nestProjectInfo.projName))])])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("项目负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.projCreateUserName))])]),s("div",{staticClass:"item cover-container"},[s("div",{staticClass:"item-title"},[e._v("封面")]),s("div",{staticClass:"item-value cover-img-wrap use-relative",style:e.showBackground(e.nestProjectInfo.showImgUrl)})]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title proj-main-template"},[e._v("项目主要模板")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.tempName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("模板负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.tempCreateUserName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("创建时间")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.projCreateTime))])]),e._l(e.nestProjectInfo.customProps||[],(function(t){return s("div",{key:t.TempPropId,staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),s("div",{staticClass:"item-value"},[e._v(e._s(t.PropValue))])])}))],2):e._e(),s("div",[s("el-button",{staticClass:"remove-button",attrs:{type:"danger",plain:""},on:{click:function(t){return t.stopPropagation(),e.severNestProject(t)}}},[e._v("解除项目互链")])],1)]):e._e()],1)},r=[],a=(s("4de4"),s("7db0"),s("c740"),s("4160"),s("caad"),s("a15b"),s("d81d"),s("fb6a"),s("a434"),s("d3b7"),s("ac1f"),s("2532"),s("3ca3"),s("1276"),s("159b"),s("ddb0"),s("0d21")),n=s("db90"),o=s("06c5"),l=s("3d8c");function c(e){return Object(a["a"])(e)||Object(n["a"])(e)||Object(o["a"])(e)||Object(l["a"])()}var d=s("3835"),u=s("5530"),h=s("2909"),p=(s("96cf"),s("1da1")),m=s("5ab9"),f=s("b1f3"),v=s("f96e"),g=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",e._l(e.folderList,(function(t){return s("div",{key:t.id},[s("div",[s("div",{ref:"activeFolder",refInFor:!0,staticClass:"folder-wrap folder-hover",class:{"active-folder":t.id==e.activeFolderId&&e.isEnterEdit,"folder-click":!e.isEnterEdit},on:{click:function(s){return s.stopPropagation(),e.activeFolderClick(t)}}},[s("div",{staticClass:"folder-name",class:{"opacity-5":!e.isAllowedAssignedStaffFolder}},[s("span",[e._v(e._s(t.folderName))]),e.isProjManager?e._e():s("span",{staticClass:"user-perm-text"})]),e.isEnterEdit&&e.activeFolderId===t.id?e._e():s("div",{staticClass:"clear-fix border-box",class:{"mb-36":t.id===e.activeFolderId&&e.isEnterEdit,"ml-4":!e.isEnterEdit,"adjust-position":e.isEnterEdit}},[s("div",{staticClass:"fl"},[t.manageUser&&0==t.manageUser.length?s("div",[e.isAllowedAssignedFolder(t)?s("div",{staticClass:"use-relative"},[e.isEnterEdit?s("people-item"):s("people-item",{class:{"mr-8":!e.isEnterEdit},nativeOn:{click:function(s){s.stopPropagation(),e.aloneAddUserForFolder(t),e.enterEditFolderClick(t)}}})],1):s("div",{staticClass:"notclick"},[s("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{isShowEmptyAvatar:!0}})],1)]):s("div",{staticClass:"use-flex"},e._l(t.manageUser,(function(i,r){return s("div",{key:i.id},[s("div",{staticClass:"use-relative"},[s("people-item",{class:{notclick:!e.isAllowedAssignedStaffFolder(t),"mr-8":!e.isEnterEdit},attrs:{user:i,isShowManagerMark:e.isEnterEdit}})],1)])})),0)]),s("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),s("div",{staticClass:"use-flex",class:{"mb-6":e.isEnterEdit&&e.activeFolderId!==t.id}},[e._l(e.listUserComputed(t.listUser),(function(i){return s("div",{key:i.id,class:{notclick:!(e.isAllowedAssignedStaffFolder(t)||e.isStaff(t))}},[s("people-item",{attrs:{user:i,isEnterEdit:e.isEnterEdit}})],1)})),t.manageUser&&t.manageUser.length>0&&e.isAllowedAssignedStaffFolder(t)?s("div",{staticClass:"add-btn"},[e.isEnterEdit?e._e():s("people-item",{nativeOn:{click:function(s){s.stopPropagation(),e.aloneAddUserOnlyStaff(t),e.enterEditFolderClick(t)}}})],1):e._e(),e.canNest(t)?s("div",{staticClass:"stand-place"}):e._e(),e.canNest(t)&&!e.isEnterEdit&&e.isAllowedAssignedStaffFolder(t)?s("div",{staticClass:"extra-buttons"},[t.nestProjectId&&"0"!==t.nestProjectId?s("el-button",{staticClass:"extra-button",attrs:{size:"mini"},on:{click:function(s){return s.stopPropagation(),e.checkNestProject(t)}}},[s("icon-triangle-circle",{staticClass:"extra-button-icon",attrs:{size:14,color:"#3C7DFF"}}),s("span",{style:{marginLeft:"13px"}},[e._v("管理互链项目")])],1):s("el-dropdown",{attrs:{trigger:"click"}},[s("el-button",{staticClass:"extra-button",attrs:{size:"mini"}},[s("icon-triangle-circle",{staticClass:"extra-button-icon",attrs:{size:14,color:"#999B9D"}}),s("span",{style:{marginLeft:"13px"}},[e._v("互链项目")])],1),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",{nativeOn:{click:function(s){return e.createNestProject(t)}}},[e._v("通过新建项目互链")]),s("el-dropdown-item",{nativeOn:{click:function(s){return e.enterNestTemp(t)}}},[e._v("选择已有项目建立互链")])],1)],1)],1):e._e()],2)]),e.isEnterEdit&&e.activeFolderId==t.id?s("div",{staticClass:"use-relative ml-4 mb-36 use-flex border-box",class:{"adjust-margin":t.id===e.lastFolderId}},[s("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]),t.listChildren&&t.listChildren.length>0?[s("plain-folder-list",{attrs:{folderList:t.listChildren,id:e.id,lastFolderId:e.lastFolderId,allManager:e.allManager,allManagerChild:e.allManagerChild,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists,isEnterEdit:e.isEnterEdit,activeFolderId:e.activeFolderId,selectedUser:e.selectedUser,isProjManager:e.isProjManager,nestNodeList:e.nestNodeList}})]:e._e()],2)})),0)},P=[],C=(s("45fc"),function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"people-item",attrs:{title:e.user.cnName}},[s("div",{staticClass:"people-wrap",class:{"rt-0":e.isShowManagerMark}},[s("div",{staticClass:"people"},[Object.keys(e.user).length>0?s("img",{staticClass:"proj-avatarface",class:{"manager-mark":e.isShowManagerMark},attrs:{src:e._f("resolveAvator")(e.user.headImgUrl),alt:""}}):e.isShowEmptyAvatar?s("img",{staticClass:"proj-avatarface empty",attrs:{src:"/static/img/暂无2.svg",alt:""}}):s("div",{staticClass:"add-btn"},[s("i",{staticClass:"el-icon-plus proj-avatarface"})])]),s("div",{staticClass:"people-name",class:{"rt-2":e.isEnterEdit&&e.isShowManagerMark,"rt-4":e.isEnterEdit&&!e.isShowManagerMark}},[e._v(e._s(e.user.cnName))])])])}),j=[],w={data:function(){return{}},computed:{},props:{user:{type:Object,default:function(){return{}}},isShowManagerMark:{type:Boolean,default:!1},isEnterEdit:{type:Boolean,default:!1},isShowEmptyAvatar:{type:Boolean,defualt:!1}},methods:{}},E=w,k=(s("8015"),s("2877")),b=Object(k["a"])(E,C,j,!1,null,"a9676b70",null),U=b.exports,S=s("6b3d"),y=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"temp-selected-user-list",style:{height:e.showAdjustHeight}},[s("div",{ref:"membersView",staticClass:"use-flex"},[e._l(e.memberList,(function(t){return s("div",{key:t.id,staticClass:"use-relative"},[s("people-item",{class:{"active-manager-mark":2==t.folderPerm},attrs:{user:t},nativeOn:{click:function(s){return s.stopPropagation(),e.changeManagerClick(t)}}}),2==t.folderPerm?s("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")]):e._e()],1)})),0==e.memberList.length?s("div",{staticClass:"use-relative",on:{click:function(t){return t.stopPropagation(),e.openPersonnelListClick(t)}}},[s("people-item",{staticClass:"active-manager-mark"}),s("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")])],1):e._e()],2)])},I=[],_={data:function(){return{selectedUserListEl:null,selectedUserListElWidth:0,selectedUserListElHeight:0,renderHeight:0,isAdjustHeight:!1}},components:{PeopleItem:U},props:{memberList:{type:Array,default:function(){return[]}}},mounted:function(){var e=this;document.body.addEventListener("resize",(function(){e.adjustHeightOperate()})),this.selectedUserListEl=this.$refs.membersView,this.selectedUserListEl&&(this.selectedUserListElWidth=this.selectedUserListEl.clientWidth,this.selectedUserListElHeight=this.selectedUserListEl.clientHeight,this.adjustHeightOperate())},computed:{selectedUserListLength:function(){return this.memberList.length},showAdjustHeight:function(){return this.isAdjustHeight?"".concat(this.selectedUserListElHeight-31,"px"):"auto"}},watch:{memberList:{immediate:!0,handler:function(e){if(e.length>0){var t=e.find((function(e){return e.folderPerm&&2==e.folderPerm}));t||(e[0].folderPerm=2,this.$emit("setFirstPeopleToManager",e[0]))}}},selectedUserListLength:function(e){var t=this;setTimeout((function(){t.selectedUserListElWidth=t.selectedUserListEl.clientWidth,t.selectedUserListElHeight=t.selectedUserListEl.clientHeight,t.adjustHeightOperate()}),50)}},methods:{openPersonnelListClick:function(){this.$bus.$emit("openPersonnelListClick")},changeManagerClick:function(e){this.$emit("changeManagerClick",e),this.adjustHeightOperate()},adjustHeightOperate:function(){this.isAdjustHeight=!1;var e=parseInt(this.selectedUserListElWidth/64),t=this.selectedUserListLength,s=t/e,i=0;if(s<=1)return this.isAdjustHeight=!0,void(this.renderHeight=this.selectedUserListElHeight-31);for(var r=0;r0&&this.allManagerChild.find((function(e){return e.id==t.id}))||this.allChildrenLists.length>0&&this.allChildrenLists.includes(e)},isAllowedAssignedStaffFolder:function(e){return e.manageUser&&e.manageUser.length>0&&e.manageUser[0].id==this.id||this.isAllowedAssignedFolder(e)},isStaff:function(e){var t=this;return e.listUser.some((function(e){return e.id===t.id}))}},computed:{listUserComputed:function(){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}}}},L=F,T=(s("6e2b"),Object(k["a"])(L,g,P,!1,null,"1def7049",null)),x=T.exports,O=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"member-list"},[s("div",{staticClass:"top-title"},[e._v("选择成员")]),e._m(0),s("div",{staticClass:"hori-line"}),s("div",{staticClass:"content-wrap"},[s("div",{staticClass:"people-wrap"},[s("el-collapse",{model:{value:e.activeCompanyName,callback:function(t){e.activeCompanyName=t},expression:"activeCompanyName"}},e._l(e.treeList,(function(t){return s("el-collapse-item",{key:t.id,attrs:{name:t.id}},[s("template",{slot:"title"},[s("span",{staticClass:"company-title"},[e._v(e._s(t.label))])]),t.hasChildren?s("el-collapse",{model:{value:e.activeDeptNameList,callback:function(t){e.activeDeptNameList=t},expression:"activeDeptNameList"}},e._l(t.children,(function(t){return s("el-collapse-item",{directives:[{name:"show",rawName:"v-show",value:t.hasChildren,expression:"deptNode.hasChildren"}],key:t.id,attrs:{name:t.id}},[s("template",{staticClass:"dept-entry",slot:"title"},[s("span",{staticClass:"dept-name"},[e._v(e._s(t.label))]),s("div",{staticClass:"check-all-wrap",on:{click:function(s){return s.stopPropagation(),e.toggleAllDept(t)}}},[s("div",{staticClass:"checkbox",class:{checked:e.deptNodeSelectedMap[t.id]}}),s("span",[e._v("全选")])])]),e._l(t.children,(function(t){return s("div",{key:t.id,staticClass:"user-info-item",attrs:{label:t.label},on:{click:function(s){return s.stopPropagation(),e.toggleMember(t)}}},[s("img",{staticClass:"avatar-img",attrs:{src:e._f("resolveAvator")(t.data.headImgUrl),alt:""}}),s("span",{staticClass:"user-info-name"},[e._v(e._s(t.label))]),s("div",{staticClass:"checkbox",class:{checked:e.isSelected(t.id)}})])}))],2)})),1):s("div",{staticClass:"empty-people-tips"},[e._v("暂未添加人员")])],2)})),1)],1)])])},$=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"search-bar"},[s("i",{staticClass:"search-icon"}),s("input",{staticClass:"search-input",attrs:{placeholder:"搜索功能正在内测中",disabled:""}})])}],A={data:function(){var e=this.treeList[0],t=e?[e.id]:[],s=e?e.mapChildren((function(e){return e.id})):[];return this.clacAllSelected(),{ischeckAll:!1,activeCompanyName:t,activeDeptNameList:s}},methods:{isSelected:function(e){return!!this.selectedKeys.find((function(t){return t===e}))},isChildrenAllSelected:function(e){var t=this.selectedKeys;return e.everyChildren((function(e){return t.find((function(t){return t===e.id}))}))},toggleAllDept:function(e){var t=!this.deptNodeSelectedMap[e.id];this.$emit("select",e.children,t)},toggleMember:function(e){var t=!this.isSelected(e.id);this.$emit("select",[e],t)},clacAllSelected:function(){var e=this,t={};this.treeList.forEach((function(s){s.mapChildren((function(s){var i=e.isChildrenAllSelected(s);i&&(t[s.id]=!0)}))})),this.deptNodeSelectedMap=t}},props:{treeList:{type:Array,default:function(){return[]}},selectedKeys:{type:Array,default:function(){return[]}}},watch:{selectedKeys:{immediate:!0,handler:function(e){this.clacAllSelected()}},treeList:{immediate:!0,handler:function(e){this.clacAllSelected()}}}},W=A,B=(s("e040"),s("c8e2"),Object(k["a"])(W,O,$,!1,null,"58e87d7b",null)),R=B.exports,V=s("9e5b"),H=s("93d6"),z=s("2ef0"),K=(s("a623"),s("ade3")),q=s("d4ec");function Y(e,t){for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:ee;return this.hasChildren?(this.children.sort(e),this):this}},{key:"mapChildren",value:function(e){return this.hasChildren?this.children.map(e):[]}},{key:"everyChildren",value:function(e){return!!this.hasChildren&&this.children.every(e)}},{key:"hasChildren",get:function(){return this.children&&!!this.children.length}}]),e}(),se=s("a06e"),ie=s("b0f9"),re=s("5a0c"),ae=s.n(re),ne=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e.isTemNest?s("div",{staticClass:"template_nest"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isNestTempScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"取消",onBackBtnClick:e.enterDistWork,title:"为“"+e.nestNodeFolder.folderName+"”选择互链项目"},scopedSlots:e._u([{key:"right",fn:function(){return[s("el-button",{attrs:{type:"primary",size:"small",disabled:!e.selectedProjectId},on:{click:function(t){return t.stopPropagation(),e.confirmProject(t)}}},[e._v("选定项目")])]},proxy:!0}],null,!1,4194601008)}),s("div",{ref:"nestTemplateDesc",staticClass:"template_select_content"},[s("div",{staticClass:"template_connect"},[e._m(0),e._l(e.linkableProjectList,(function(t){return s("div",{key:t.projId,staticClass:"template_info",on:{click:function(s){e.selectedProjectId=t.projId}}},[s("div",{staticClass:"check_box",class:{checked:e.selectedProjectId==t.projId}},[s("i",{staticClass:"el-icon-check"})]),s("span",{staticClass:"template_info_name"},[e._v(e._s(t.projName))]),s("span",{staticClass:"template_info_extra"},[e._v("模板: "+e._s(t.templateName))])])}))],2)])],1):e._e()])},oe=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"template_info_title"},[s("span",[e._v("我的项目")])])}],le={components:{TopHeader:f["a"]},props:{nestNodeFolder:Object,isTemNestInProp:{type:Boolean,default:!1}},data:function(){return{companyId:sessionStorage.companyId,userId:sessionStorage.userId,linkableProjectList:[],selectedProjectId:void 0}},methods:{enterDistWork:function(){this.$emit("enterDistWork")},addNestTemplate:function(){var e=this;this.$confirm("重要提示:一旦确定模板并创建后,您将无法删除模板。","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(p["a"])(regeneratorRuntime.mark((function t(){var s,i,r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ie["p"](e.selectTemplate.TemplateId);case 2:return s=t.sent,i=s.Data,r={ProjId:e.nestNodeFolder.projId,NodeId:e.nestNodeFolder.nodeId,FolderId:e.nestNodeFolder.id,TemplateId:e.nestNodeFolder.templateId,NestJsmindData:i},t.next=7,ie["b"](r);case 7:a=t.sent,0===a.Code&&(e.$notify({message:"“".concat(e.selectTemplate.TemplateName,"”模板嵌套成功。"),type:["success"]}),e.$emit("enterDistWork"));case 9:case"end":return t.stop()}}),t)})))).catch((function(e){return console.log(e)}))},isChecked:function(e,t){this.checkedIndex=e,this.selectTemplate=t},confirmProject:function(){var e=this;return Object(p["a"])(regeneratorRuntime.mark((function t(){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(e.nestNodeFolder),t.next=3,e.$fetchApi("project/linkProject",{projectId:e.selectedProjectId,folderId:e.nestNodeFolder.id});case 3:if(s=t.sent,Object(J["c"])(s),0===s.Code){t.next=7;break}return t.abrupt("return");case 7:Q["d"].success("互链成功"),e.$emit("enterDistWork");case 9:case"end":return t.stop()}}),t)})))()},fetchLinkableProjectList:function(){var e=this;return Object(p["a"])(regeneratorRuntime.mark((function t(){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$fetchApi("project/queryProjectListByProjectManagerUserId",{userId:e.userId});case 2:if(s=t.sent,Object(J["c"])(s),e.linkableProjectList=[],0===s.Code){t.next=7;break}return t.abrupt("return");case 7:e.linkableProjectList=(s.Data||[]).map(Q["b"]);case 8:case"end":return t.stop()}}),t)})))()}},watch:{isTemNestInProp:{handler:function(e){this.isTemNest=e,e&&this.fetchLinkableProjectList()},immediate:!0}}},ce=le,de=(s("2fff"),Object(k["a"])(ce,ne,oe,!1,null,"3f290ff7",null)),ue=de.exports,he=s("de58"),pe={data:function(){return{nestNodeFolder:{},nestNodeList:[],nowProject:{},listProjProp:[],cnName:"",selectedUser:[],selectedManageUser:[],isShowFirstPage:!0,isShowSecondPage:!1,isShowThreePage:!1,InitData:{},listNewFolder:[],oldFolderList:[],oldPlainFolderList:[],listDept:[],curProjCreatePeop:[],currWorkName:"",newProjFolderIndex:1,tempIndex:0,isShowdivid2:!1,currSelectData:[],currUser:{},isShowManager:!0,listManagerUser:[],oldListManagerUser:[],isProjManager:!1,isProjCreator:!1,currListDeptUserData:[],userList:[],memberTree:[],finishBtnClickCount:0,userId:sessionStorage.userId,allChildrenLists:[],isShowStartProjDesc:!0,isShowTemplateSummary:!1,isShowDistWorkPage:!1,isEnterEdit:!1,distWorkPartEl:null,isDistWorkPartScroll:!1,dlastScrollTime:null,isProjDescScroll:!1,projDescEl:null,isTemplateDescScroll:!1,templateDescEl:null,tlastScrollTime:null,isEditProjManager:!1,activeFolderId:"",activeFolder:null,coverSrc:"/static/img/faceImg/face01.png",isStartEditNestTemp:!1,isTemNest:!1,activeDeptName:"",isShowManagerTips:!1,isEnterEditPropValue:!1,isDistworkDone:!1,isDistworkSuccess:!1,lastFolderId:"",originPropListCopy:[],selectedMemberKeys:[],projectNameEditFlag:!1,editingProjectName:"",treeNode:null,nestProjectInfo:{},nestProjectModalVisible:!1}},components:{AppHeader:v["a"],TopHeader:f["a"],PlainFolderList:x,PeopleItem:U,PersonnelList:R,TempSelectedUserList:D,FileUploader:V["a"],LinkProject:ue,NodesViewer:he["a"]},updated:function(){this.$refs.projdesc&&(this.projDescEl=this.$refs.projdesc,this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll),this.projDescEl.addEventListener("scroll",this.watchProjDescScroll)),this.$refs.distworkpart&&(this.distWorkPartEl=this.$refs.distworkpart,this.distWorkPartEl.removeEventListener("scroll",this.watchDistWorkPartScroll),this.distWorkPartEl.addEventListener("scroll",this.watchDistWorkPartScroll)),this.$refs.templateDescEl&&(this.templateDescEl=this.$refs.templatedesc,this.templateDescEl.removeEventListener("scroll",this.watchTemplateDescScroll),this.templateDescEl.addEventListener("scroll",this.watchTemplateDescScroll))},watch:{isEnterEdit:function(e){e&&(this.projectNameEditFlag=!1)},projectNameEditFlag:function(e){e&&(this.editingProjectName=this.nowProject.ProjName)},nestProjectModalVisible:function(e){e||(this.nestProjectInfo={})}},mounted:function(){this.isShowDistWorkPage=this.$route.query.isShowDistworkPage?this.$route.query.isShowDistworkPage:this.isShowDistworkPage,this.isShowStartProjDesc=!this.isShowDistWorkPage,this._getUserInfo(sessionStorage.userId),this.projInfo(sessionStorage.projId),this.cnName=JSON.parse(sessionStorage.user).cnName,this.fetchProjectDetail(),this.getNestNode(sessionStorage.templateID),this.projDescEl=this.$refs.projdesc,this.projDescEl&&this.projDescEl.addEventListener("scroll",this.watchProjDescScroll),this.distWorkPartEl=this.$refs.distworkpart,this.distWorkPartEl&&this.distWorkPartEl.addEventListener("scroll",this.watchDistWorkPartScroll),this.templateDescEl=this.$refs.templatedesc,this.templateDescEl&&this.templateDescEl.addEventListener("scroll",this.watchTemplateDescScroll),this.$bus.$on("enterEditFolderClick",this.enterEditFolderClick),this.$bus.$on("activeFolderClick",this.activeFolderClick),this.$bus.$on("changeManagerClick",this.changeManagerClick),this.$bus.$on("setFirstPeopleToManager",this.setFirstPeopleToManager),this.$bus.$on("enterNestTemp",this.enterNestTemp),this.$bus.$on("checkNestProject",this.checkNestProject)},beforeDestroy:function(){this.projDescEl&&this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll),this.distWorkPartEl&&this.distWorkPartEl.removeEventListener("scroll",this.watchDistWorkPartScroll),this.templateDescEl&&this.templateDescEl.removeEventListener("scroll",this.watchTemplateDescScroll),this.$bus.$off("enterEditFolderClick",this.enterEditFolderClick),this.$bus.$off("activeFolderClick",this.activeFolderClick),this.$bus.$off("changeManagerClick",this.changeManagerClick),this.$bus.$off("setFirstPeopleToManager",this.setFirstPeopleToManager),this.$bus.$off("enterNestTemp",this.enterNestTemp),this.$bus.$off("checkNestProject",this.checkNestProject)},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],s=t(e);return{background:"center/cover no-repeat url(".concat(s,")")}},handleShowDistWorkPage:function(){this.isShowDistWorkPage=!0},handleEditTemplate:function(){this.isEnterEditPropValue=!this.isEnterEditPropValue,this.isEnterEditPropValue||(this.originPropListCopy=this.listProjProp,this.$notify({type:["success"],message:"修改模板概况成功"}))},checkNestProject:function(e){var t=this;return Object(p["a"])(regeneratorRuntime.mark((function s(){var i,r,a;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return i=e.nestProjectId,t.nestNodeFolder=e,t.nestProjectModalVisible=!0,s.next=5,se["c"](i);case 5:if(r=s.sent,Object(J["c"])(r),0===r.Code){s.next=9;break}return s.abrupt("return");case 9:a=Object(Q["b"])(r.Data||{}),a.projCreateTime=ae()(a.projCreateTime).format("YYYY/MM/DD"),t.nestProjectInfo=a;case 12:case"end":return s.stop()}}),s)})))()},severNestProject:function(){var e=this,t=this.nestNodeFolder;this.$confirm("解除互链不会影响双方项目的文件数据,解除后将无法进行文件交付,确定解除吗?",{confirmButtonText:"解除互链关系",cancelButtonText:"取消",type:"danger"}).then(Object(p["a"])(regeneratorRuntime.mark((function s(){var i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,e.$fetchApi("project/deleteProjectLink",{folderId:t.id,nestProjectId:t.nestProjectId});case 2:if(i=s.sent,Object(J["c"])(i),0===i.Code){s.next=6;break}return s.abrupt("return");case 6:Q["d"].success("互链项目已移除"),e.nestProjectModalVisible=!1,e.fetchProjectDetail();case 9:case"end":return s.stop()}}),s)}))))},enterNestTemp:function(e){this.isShowDistWorkPage=!1,this.isShowStartProjDesc=!1,this.isShowTemplateSummary=!1,this.isStartEditNestTemp=!0,this.isTemNest=!0,this.nestNodeFolder=e},enterDistWork:function(){var e=this;return Object(p["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isShowDistWorkPage=!0,e.isShowStartProjDesc=!0,e.isShowTemplateSummary=!1,e.isStartEditNestTemp=!1,e.isTemNest=!1,e.fetchProjectDetail();case 6:case"end":return t.stop()}}),t)})))()},returnToProjListPage:function(){this.isDistworkDone&&this.isDistworkSuccess&&this.$notify({message:"工作指派完成。",type:["success"]}),this.$router.push({path:"/index"}).catch((function(e){return console.log(e)}))},getNestNode:function(e){var t=this;return Object(p["a"])(regeneratorRuntime.mark((function s(){var i,r,a,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=function(e,t){e.forEach(function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(s){var i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,ie["l"](s.TemplateId);case 2:i=e.sent,r=i.Data||[],r.length>0&&t.push.apply(t,Object(h["a"])(r));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},s.next=3,ie["l"](e);case 3:i=s.sent,r=i.Data||[],a=Object(h["a"])(i.Data),n(r,a),t.nestNodeList=a;case 8:case"end":return s.stop()}}),s)})))()},projInfo:function(e){var t=this;return Object(p["a"])(regeneratorRuntime.mark((function s(){var i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,se["c"](e);case 2:if(i=s.sent,-1!=i.Code){s.next=6;break}return t.$notify({type:["error"],message:"项目概况信息查询失败"}),s.abrupt("return");case 6:t.nowProject=i.Data||{},t.nowProject.ProjCreateTime=ae()(t.nowProject.ProjCreateTime).format("YYYY/MM/DD"),t.nowProject=Object(u["a"])({},t.nowProject),t.listProjProp=i.Data.CustomProps||[],t.listProjProp=Object(h["a"])(t.listProjProp),t.originPropListCopy=Object(z["cloneDeep"])(t.listProjProp),t.coverSrc=i.Data.ShowImgUrl;case 13:case"end":return s.stop()}}),s)})))()},renameProjectName:function(){var e=this;return Object(p["a"])(regeneratorRuntime.mark((function t(){var s,i,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e.editingProjectName,i={ProjId:sessionStorage.projId,ProjName:s,ImgUrl:e.coverSrc},t.next=4,Object(se["b"])(i);case 4:if(r=t.sent,-1!=r.Code){t.next=8;break}return e.$notify({message:"修改失败",type:"success"}),t.abrupt("return");case 8:e.projectNameEditFlag=!1,e.nowProject.ProjName=s;case 10:case"end":return t.stop()}}),t)})))()},coverUploadSuccess:function(e){var t=this;return Object(p["a"])(regeneratorRuntime.mark((function s(){var i,r,a;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return i=Object(m["c"])(e.ossUrl),t.coverSrc=i,r={ProjId:sessionStorage.projId,ImgUrl:t.coverSrc,ProjName:t.nowProject.ProjName},s.next=5,Object(se["b"])(r);case 5:a=s.sent,-1==a.Code&&t.$notify({message:"封面修改失败。",type:"success"});case 7:case"end":return s.stop()}}),s)})))()},setSystemCoverRandom:function(){},returnToDistWorkClick:function(){var e=this;this.isEnterEditPropValue?this.$confirm("是否保存当前项目的模板概况信息","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(p["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isShowTemplateSummary=!1,e.originPropListCopy=e.listProjProp;case 2:case"end":return t.stop()}}),t)})))).catch((function(){e.listProjProp=e.originPropListCopy})):this.isShowTemplateSummary=!1},showProjDetailClick:function(){this.isShowDistWorkPage=!1,this.isShowStartProjDesc=!0},setFirstPeopleToManager:function(e){0==this.selectedManageUser.length&&0!==this.selectedUser.length&&this.selectedManageUser.push(e)},filterManageFromListUser:function(e,t){return t.filter((function(t){return t.id!==e}))},watchProjDescScroll:function(){this.isProjDescScroll=this.projDescEl.scrollTop>0},watchTemplateDescScroll:function(){this.isTemplateDescScroll=this.templateDescEl.scrollTop>0},watchDistWorkPartScroll:function(){this.isDistWorkPartScroll=this.distWorkPartEl.scrollTop>0},activeManagerClick:function(){this.isProjCreator&&(this.isEditProjManager=!0,this.enterEditOperate(),this.activeFolderId="",this.activeFolder=null,this.addProjManager())},activeFolderClick:function(e){this.isEditProjManager=!1,this.activeFolderId=e.id,this.activeFolder=e,e.listUser&&0==e.listUser.length?this.aloneAddUserForFolder(e):this.aloneAddUserOnlyStaff(e)},enterEditFolderClick:function(e){this.activeFolderId=e.id,this.activeFolder=e,this.enterEditOperate()},enterEditOperate:function(){this.isEnterEdit=!0},finishEditClick:function(){this.isDistworkDone=!0,this.isEnterEdit=!1,this.selectedManageUser=[],this.selectedUser=[],this.isEditProjManager&&(this.isEditProjManager=!1),this.createFolders(),this.activeDeptName=""},addProjMangerBtnClick:function(){this.isEditProjManager=!0,this.enterEditOperate()},_getUserInfo:function(e){var t=this;return Object(p["a"])(regeneratorRuntime.mark((function s(){var i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,Object(H["f"])(e);case 3:return s.sent,s.next=6,Object(H["f"])(sessionStorage.createUserID);case 6:i=s.sent,t.curProjCreatePeop=i.cnName+" 指派了新工作,请完成工作指派",1==sessionStorage.allocated&&(t.curProjCreatePeop="项目管理"),s.next=14;break;case 11:s.prev=11,s.t0=s["catch"](0),console.log(s.t0);case 14:case"end":return s.stop()}}),s,null,[[0,11]])})))()},isAllowedDelete:function(e){return!(!this.listManagerUser.includes(e)&&this.currUser.id!==e.id&&this.InitData.manageUser&&this.InitData.manageUser.length>0&&this.InitData.manageUser[0].id==sessionStorage.userId&&!this.allChildrenLists.includes(this.InitData)&&e.id==this.InitData.manageUser[0].id)},changeManagerClick:function(e){var t=this;if(this.isEditProjManager)this.$notify({message:"项目负责人无法更换。",type:"warning",offset:100,duration:5e3});else{var s=this.listManagerUser.map((function(e){return e.id}))||[];!s.includes(sessionStorage.userId)&&this.currUser.id!==sessionStorage.userId&&this.InitData.manageUser&&this.InitData.manageUser.length>0&&this.InitData.manageUser[0].id==sessionStorage.userId&&!this.allChildrenLists.includes(this.InitData)?this.$notify({message:"没有权限更换工作负责人。",type:"warning",offset:100,duration:5e3}):this.selectedUser.forEach((function(s){s.folderPerm=s.id===e.id?2:1,2===s.folderPerm&&t.InitData&&t.InitData.manageUser&&t.InitData.manageUser.splice(0,1,s)}))}},aloneAddUserForFolder:function(e){this.currSelectData=e,this.currWorkName=e.folderName,null==e.listUser&&(e.listUser=[]),this.InitData=e,this.setFolderPerm(e),this.selectedUser=e.listUser,this.selectedManageUser=e.manageUser,this.isShowSecondPage=!0,this.isShowFirstPage=!1},setFolderPerm:function(e){var t=e.listUser;this.selectedMemberKeys=t.map((function(e){return e.id}))},aloneAddUserOnlyStaff:function(e){this.isShowManager=!0,this.currWorkName=e.folderName,null==e.listUser&&(e.listUser=[]),this.InitData=e,this.setFolderPerm(e),this.selectedUser=e.listUser,this.selectedManageUser=e.manageUser,this.isShowThreePage=!0,this.isShowFirstPage=!1},addProjManager:function(){var e=this;this.activeFolderId="",this.isEditProjManager=!0,this.enterEditOperate(),this.isShowManager=!1;var t={listUser:[]};t.listUser=this.listManagerUser;var s=t.listUser.find((function(t){return t.id===e.currUser.id}));s&&0!=t.listUser.length||(this.currUser.folderPerm=2,t.listUser.unshift(this.currUser)),this.setFolderPerm(t),this.selectedUser=t.listUser,this.selectedManageUser=this.listManagerUser},onSelectMembers:function(e,t){var s=this,i=Object(h["a"])(this.selectedMemberKeys);e.forEach((function(e){var r=Object(z["cloneDeep"])(e.data),a=function(){s.checkDeptUserName(r,t),r.folderPerm=1,1==s.selectedUser.length&&1==t&&(r.folderPerm=2)};if(t){if(i.find((function(t){return t===e.id})))return;return i.push(e.id),void a()}if(s.isAllowedDelete(r))if(s.isEditProjManager&&r.id===s.currUser.id)s.$notify({message:"不可以移除项目创建者。",type:"warning",offset:100,duration:5e3});else{if(i=i.filter((function(e){return r.id!==e})),s.activeFolder&&s.activeFolder.manageUser.find((function(e){return e.id===r.id})))return s.removeManageUser(r),void s.activeFolder.manageUser.splice(0);if(s.isEditProjManager){var n=s.listManagerUser.findIndex((function(e){return e.id===r.id}));n>-1&&s.listManagerUser.splice(n,1)}a()}else s.$notify({message:"不能移除自己。",type:"warning",offset:100,duration:5e3})})),this.selectedMemberKeys=i},removeManageUser:function(e){e.folderPerm=1,this.selectedManageUser.splice(0,1);for(var t=0;t0&&(e.manageUser[0].folderPerm=2,e.listUser.unshift(e.manageUser[0])),e.listChildren&&e.listChildren.length>0&&t.getfolderPerm(e.listChildren)}))},getPlainOldFolderList:function(){var e=[];function t(s){s.length>0&&s.forEach((function(s){e.push(s),s.listChildren&&s.listChildren.length>0&&t(s.listChildren)}))}t(this.oldFolderList),this.oldPlainFolderList=e,this.lastFolderId=this.oldPlainFolderList[this.oldPlainFolderList.length-1].id},fetchProjectDetail:function(){var e=this;return Object(p["a"])(regeneratorRuntime.mark((function t(){var s,i,r,a,n,o,l,c,u,h,p,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e.$store.state.currentCompanyId,t.next=3,Promise.all([e.$fetchApi("folder/queryNodeFolderListByProjectId",{projectId:sessionStorage.projId}),X(s)]);case 3:i=t.sent,r=Object(d["a"])(i,2),a=r[0],n=r[1],o=n.treeList,l=n.memberMap,c=a.Data||{},u=c.folder,h=c.manager,e.memberTree=o,e.listManagerUser=h.map((function(e){var t;return null===(t=l[e.UserId])||void 0===t?void 0:t.data})),e.listManagerUser.length&&(e.currUser=e.listManagerUser[0]||{},e.isProjCreator=e.currUser.id===e.userId,e.listManagerUser=e.listManagerUser.slice(1),e.isProjManager=!!e.listManagerUser.find((function(t){return t.id==e.userId}))||e.currUser.id==e.userId),e.oldListManagerUser=Object(z["cloneDeep"])(e.listManagerUser),p=Object(z["uniqBy"])(u,"Id"),m=me(p,l),e.treeNode=fe(p),e.getfolderPerm(m),e.listNewFolder=m,e.oldFolderList=Object(z["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList(),e.getAllChildrenLists(e.listNewFolder,e.userId,e.allChildrenLists);case 22:case"end":return t.stop()}}),t)})))()},getChildren:function(e,t){var s=this;e.forEach((function(e){t.push(e),e.listChildren.length>0&&s.getChildren(e.listChildren,t)}))},getAllChildrenLists:function(e,t,s){var i=this;e.forEach((function(e){e.manageUser.length>0&&e.manageUser[0].id==t&&e.listChildren&&e.listChildren.length>0&&i.getChildren(e.listChildren,s)}))},createFolders:function(){var e=this;return Object(p["a"])(regeneratorRuntime.mark((function t(){var s,i,r,a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=function(e){e.length>0&&e.forEach((function(e){var t={FolderId:"",ManagerUserId:"",GeneralId:"",OldManager:"",OldGeneralId:""};t.FolderId=e.id;var a=[];t.ManagerUserId=e.manageUser.length>0?e.manageUser.map((function(e){return a.push(e.id),e.id})).join(","):"";var n=e.listUser.filter((function(e){return!a.includes(e.id)}));t.GeneralId=e.listUser.length>0?n.map((function(e){return e.id})).join(","):"";var o=i.find((function(t){return t.id==e.id})),l=o.manageUser.length>0?o.manageUser[0].id:"";t.OldManager=l,t.OldGeneralId=o.listUser.length>0?o.listUser.filter((function(e){return e.id!==l})).map((function(e){return e.id})).join(","):"",s.Work.push(t),r(e.listChildren)}))},s={Id:sessionStorage.createUserID,ProjId:sessionStorage.projId,ProjectManagerId:"",OldProjectManagerId:e.oldListManagerUser.map((function(e){return e.id})).join(","),Work:[]},s.ProjectManagerId=e.listManagerUser.length>0?e.listManagerUser.map((function(e){if(e.id!==sessionStorage.createUserID)return e.id})).join(","):"",i=e.oldPlainFolderList,r(e.listNewFolder),t.next=7,Object(se["a"])(s);case 7:a=t.sent,n=e,0===a.Code?(e.isDistworkSuccess=!0,e.oldFolderList=Object(z["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList()):(e.isDistworkSuccess=!1,n.$notify({message:"服务器异常,工作指派失败。",type:["error"],duration:5e3}));case 10:case"end":return t.stop()}}),t)})))()}}};function me(e,t){var s=c(e),i=s[0],r=(s[1],s.slice(2)),a=i.Id,n=[],o={};return r.forEach((function(e){var s=Object(Q["b"])(e);o[s.id]=s,s.listChildren=[],s.listUser=s.oldGeneralId.split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(u["a"])({},t[e].data)})),s.manageUser=("0"===s.oldManager?"":s.oldManager).split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(u["a"])({},t[e].data)}));var i=s.superId;if(i!==a){var r=o[i];r&&r.listChildren.push(s)}else n.push(s)})),n}function fe(e){var t=null,s={};return e.forEach((function(e){if("0"!==e.NodeId){var i=e.LevelId,r={id:e.Id,levelId:i,topic:e.FolderName};if(s[r.levelId]=r,r.levelId===e.FirstFolderId)return t=r,void(t.levelId=t.id);var a=e.LevelId.split("_").slice(0,-1).join("_"),n=s[a];n&&(n.children||(n.children=[]),n.children.push(r))}})),t}var ve=pe,ge=(s("80be"),s("685f"),Object(k["a"])(ve,i,r,!1,null,"583a727d",null));t["default"]=ge.exports},"5a34":function(e,t,s){var i=s("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"685f":function(e,t,s){"use strict";var i=s("14b7"),r=s.n(i);r.a},"6e2b":function(e,t,s){"use strict";var i=s("a145"),r=s.n(i);r.a},"7bc9":function(e,t,s){},"7e58":function(e,t,s){},8015:function(e,t,s){"use strict";var i=s("e3e1"),r=s.n(i);r.a},"80be":function(e,t,s){"use strict";var i=s("7bc9"),r=s.n(i);r.a},"8ed8":function(e,t,s){},a145:function(e,t,s){},ab13:function(e,t,s){var i=s("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(s){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},c8e2:function(e,t,s){"use strict";var i=s("8ed8"),r=s.n(i);r.a},caad:function(e,t,s){"use strict";var i=s("23e7"),r=s("4d64").includes,a=s("44d2"),n=s("ae40"),o=n("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!o},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},d4ec:function(e,t,s){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}s.d(t,"a",(function(){return i}))},de58:function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{ref:"mindDom",staticClass:"nodes-viewer",style:{width:e.width,height:e.height},attrs:{id:e.domId},on:{mousewheel:function(t){return t.stopPropagation(),e.onWheel(t)}}})},r=[],a=(s("fb6a"),function(){return"xmind_".concat("".concat(Math.random()).slice(2,8))}),n=window.jsMind,o={props:{node:{type:Object,default:null},width:{type:String,default:""},height:{type:String,default:""}},data:function(){return{domId:a(),mindIns:null,domMindInner:null,zoom:1}},mounted:function(){this.init()},watch:{node:function(e){e&&this.show()}},methods:{init:function(){var e={container:this.domId,editable:!1,theme:"",mode:"side",support_html:!1,view:{engine:"canvas",hmargin:100,vmargin:50,line_width:1,line_color:"#cccdd7"}},t=new n(e);t.disable_edit(),t.end_edit(),this.mindIns=t,this.node&&this.show()},getMindInnerDom:function(){if(this.domMindInner)return this.domMindInner;if(this.$refs.mindDom){var e=this.$refs.mindDom.querySelector(".jsmind-inner");return this.domMindInner=e,e}},onWheel:function(e){if(e.ctrlKey){e.returnValue=!1;var t=-e.wheelDelta||e.detail,s=this.getMindInnerDom();if(s){var i=this.zoom+(t>0?-.1:.1),r=Math.max(.2,Math.min(i,1.8));this.zoom=r,s.style.zoom=this.zoom}}},show:function(){var e={meta:{name:"mindhh",author:"hh",version:"0.2"},format:"node_tree",data:this.node};this.mindIns.show(e)}}},l=o,c=s("2877"),d=Object(c["a"])(l,i,r,!1,null,"2aa6cc14",null);t["a"]=d.exports},e040:function(e,t,s){"use strict";var i=s("30c5"),r=s.n(i);r.a},e3e1:function(e,t,s){}}]); \ No newline at end of file diff --git a/static/js/chunk-97877ad2.30d43263.js b/static/js/chunk-5272defd.864e930e.js similarity index 99% rename from static/js/chunk-97877ad2.30d43263.js rename to static/js/chunk-5272defd.864e930e.js index 8463397b..9edf4521 100644 --- a/static/js/chunk-97877ad2.30d43263.js +++ b/static/js/chunk-5272defd.864e930e.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-97877ad2"],{"2f4c":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"search-bar",class:{"show-search-bar":e.isShowSearchBar}},[n("div",{staticClass:"search-entry",class:{"set-high-index":!e.isShowSearchBar},on:{mouseenter:function(t){e.isSearchHover=!0},mouseleave:function(t){e.isSearchHover=!1},click:function(t){return t.stopPropagation(),e.showSearchBar(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[n("i",{staticClass:"search-icon",on:{click:function(t){return t.stopPropagation(),e.goToSearch(t)}}}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:e.placeholder,maxlength:"35"},domProps:{value:e.searchContent},on:{keyup:function(t){return t.stopPropagation(),e.enterSearchContent(t)},input:function(t){t.target.composing||(e.searchContent=t.target.value)}}}),n("i",{staticClass:"close-icon",on:{click:function(t){return t.stopPropagation(),e.hideSearchBar(t)}}})])])},i=[],a=(n("fb6a"),n("a9e3"),{data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},model:{prop:"value",event:"input"},props:{placeholder:{type:String,default:"搜索的文本"},maxLength:Number},watch:{searchContent:function(e){if(this.maxLength&&e.length>this.maxLength)return this.$notify({message:"请输入".concat(this.maxLength,"个字之内的搜索内容"),type:["warning"]}),void(this.searchContent=this.searchContent.slice(0,this.maxLength));this.changeSearchContent()}},methods:{enterSearchContent:function(e){this.searchContent&&13==e.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("input",this.searchContent)},goToSearch:function(){this.$emit("search")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("didHide")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("didShow")}}}),c=a,s=(n("3c93"),n("2877")),o=Object(s["a"])(c,r,i,!1,null,"f20ebcbc",null);t["a"]=o.exports},"3c93":function(e,t,n){"use strict";var r=n("73d8"),i=n.n(r);i.a},45883:function(e,t,n){"use strict";var r=n("f34a"),i=n.n(r);i.a},"466d":function(e,t,n){"use strict";var r=n("d784"),i=n("825a"),a=n("50c4"),c=n("1d80"),s=n("8aa5"),o=n("14c3");r("match",1,(function(e,t,n){return[function(t){var n=c(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var c=i(e),u=String(this);if(!c.global)return o(c,u);var l=c.unicode;c.lastIndex=0;var h,f=[],p=0;while(null!==(h=o(c,u))){var d=String(h[0]);f[p]=d,""===d&&(c.lastIndex=s(u,a(c.lastIndex),l)),p++}return 0===p?null:f}]}))},"4d63":function(e,t,n){var r=n("83ab"),i=n("da84"),a=n("94ca"),c=n("7156"),s=n("9bf2").f,o=n("241c").f,u=n("44e7"),l=n("ad6d"),h=n("9f7f"),f=n("6eeb"),p=n("d039"),d=n("69f3").set,m=n("2626"),g=n("b622"),v=g("match"),b=i.RegExp,w=b.prototype,x=/a/g,y=/a/g,R=new b(x)!==x,S=h.UNSUPPORTED_Y,C=r&&a("RegExp",!R||S||p((function(){return y[v]=!1,b(x)!=x||b(y)==y||"/a/i"!=b(x,"i")})));if(C){var F=function(e,t){var n,r=this instanceof F,i=u(e),a=void 0===t;if(!r&&i&&e.constructor===F&&a)return e;R?i&&!a&&(e=e.source):e instanceof F&&(a&&(t=l.call(e)),e=e.source),S&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=c(R?new b(e,t):b(e,t),r?this:w,F);return S&&n&&d(s,{sticky:n}),s},j=function(e){e in F||s(F,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},O=o(b),k=0;while(O.length>k)j(O[k++]);w.constructor=F,F.prototype=w,f(i,"RegExp",F)}m("RegExp")},"73d8":function(e,t,n){},"768e":function(e,t,n){"use strict";var r=n("b84f"),i=n.n(r);i.a},"8b1e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("app-header",{attrs:{theme:"basis",showBackBtn:"",backBtnTitle:e.title,showUserCenter:"",isInRecycle:"",showRecycleBin:""},scopedSlots:e._u([{key:"center",fn:function(){return[n("div",{staticClass:"main-title"},[e._v(e._s(e.showTitle))])]},proxy:!0},{key:"right",fn:function(){return[n("search-bar",{staticClass:"proj-search-bar",attrs:{placeholder:"请输入要搜索的文件"},on:{changeSearchContent:e.changeSearchContent,hideSearchBar:e.hideSearchBar,goToSearch:e.searchForFile,showSearchBar:e.showSearchBar,maxTextLengthArrived:e.maxTextLengthArrived}})]},proxy:!0}])}),n("div",{staticClass:"recycle_content"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[n("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),n("span",{staticClass:"noprotext"},[e._v("暂无文件")])]),e._l(e.fileList,(function(t){return n("recycle-file",{key:t.id,attrs:{file:t,tempRightFileId:e.tempRightFileId},on:{recycleFile:e.isRecycle,recycleFileRightBtnClick:e.recycleFileRightBtnClick}})}))],2)],1)},i=[],a=(n("4de4"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("96cf"),n("1da1")),c=n("01a8"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"recycle-file",staticClass:"yiyun_wenjian_list loding-mask-parent",on:{contextmenu:function(t){return t.preventDefault(),t.stopPropagation(),e.recycleFileRightBtnClick(t)}}},[n("div",{ref:"file-icon"},[e.oneOf(e.file.extension,e.imgExtensionList)||e.oneOf(e.file.extension,e.VideoExtensionList)?e.oneOf(e.file.extension,e.imgExtensionList)?n("div",{staticClass:"defultImage-mid img_bg-mid toumin"},[n("div",{staticClass:"file_Im gbox-mid"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.file.alias,expression:"file.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):n("div",{staticClass:"defultImage-mid video-mid toumin"}):n("div",{staticClass:"defultImage-mid toumin",class:e.file.extension+"-mid "+(e.oneOf(e.file.extension,e.filePreviewList)," ")}),n("strong",{ref:"file-name",staticClass:"yiyunwenjian_name",attrs:{title:e.file.archName+"."+e.file.extension}},[e._v(e._s(e.file.archName)),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.oneOf(e.file.extension,e.RecExtensionList),expression:"!oneOf(file.extension, RecExtensionList)"}]},[e._v("."+e._s(e.file.extension))])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isFileRightMenuVisible,expression:"isFileRightMenuVisible"}],ref:"right-menu",staticClass:"contextmenu",style:{top:e.fileRightMenuTop+"px",left:e.fileRightMenuLeft+"px"}},[n("ul",{staticClass:"rightMenu"},[n("li",{on:{click:function(t){return e.removeFile(e.file.id)}}},[e._v("放回原处")])])])])])},o=[],u=(n("c975"),n("b428")),l=(n("b332"),n("1d40")),h=["jpg","png","bmp","gif","jpeg"],f=["jpg","png","bmp","gif","jpeg","txt","zip","ae","ai","idml","indd","mp3","pr","ps","sketch","xmind","skp","rvt","rar","nwc","max","dxf","dwg","svfzip","map","supermap","pdf","ppt","pptx","excel","xlsx","xls","doc","docx","word","folder","folder1","folder2"],p=["avi","mov","wav","mp4"],d=["doc","docx","ppt","pptx","xls","xlsx"],m=["jpg","png","bmp","gif","jpeg","doc","docx","ppt","pptx","xls","xlsx","avi","mov","wav","mp4","txt","pdf","dwg"],g=function(e,t){return-1!==t.indexOf(e)},v={props:{file:{type:Object,default:function(){return{}}},tempRightFileId:{type:String,default:""}},data:function(){return{imgExtensionList:h,RecExtensionList:f,VideoExtensionList:p,office:d,filePreviewList:m,isFileRightMenuVisible:!1,isClient:l["a"].isClient,isEnterBtn:!1,recycleBinMenuShow:!1,fileRightMenuLeft:0,fileRightMenuTop:0,rightMenuEl:null,recycleFileEl:null}},methods:{oneOf:g,fileClick:function(){console.log(12111)},enterSelectBtn:function(){this.isEnterBtn=!0,this.recycleBinMenuShow=!0},leaveSelectBtn:function(){this.isEnterBtn=!1,this.recycleBinMenuShow=!1},removeFile:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(u["i"])(e);case 2:r=n.sent,-1!==r.Code&&(t.$notify({type:"success",message:"文件已放回原处。"}),t.$emit("recycleFile",!0));case 4:case"end":return n.stop()}}),n)})))()},recycleFileRightBtnClick:function(e){var t=this;this.isFileRightMenuVisible=!0,this.$nextTick((function(){t.rightMenuEl=t.$refs["right-menu"],t.recycleFileEl=t.$refs["recycle-file"];var n=t.recycleFileEl.getBoundingClientRect(),r=t.rightMenuEl.clientHeight,i=t.rightMenuEl.clientWidth,a=document.body.clientHeight,c=document.body.clientWidth-128;t.fileRightMenuLeft=e.clientX-n.left,t.fileRightMenuTop=e.clientY-n.top,e.clientY+r>a&&(t.fileRightMenuTop=t.fileRightMenuTop-r),e.clientX+i>c&&(t.fileRightMenuLeft=t.fileRightMenuLeft-i),t.$emit("recycleFileRightBtnClick",t.file.id)}))},closeFileRightMenu:function(){this.isFileRightMenuVisible=!1}},watch:{tempRightFileId:function(e){this.isFileRightMenuVisible=e===this.file.id},isFileRightMenuVisible:function(e){e?document.body.addEventListener("click",this.closeFileRightMenu):document.body.removeEventListener("click",this.closeFileRightMenu)}}},b=v,w=(n("768e"),n("2877")),x=Object(w["a"])(b,s,o,!1,null,"5328e970",null),y=x.exports,R=n("2f4c"),S={components:{recycleFile:y,AppHeader:c["a"],SearchBar:R["a"]},created:function(){this.getRecycleFiles()},mounted:function(){},data:function(){return{tempRightFileId:"",fileList:[],searchFileList:[],isEmpty:!0,title:"返回"+sessionStorage.pageTitle,isShowSearchBar:!1,searchContent:""}},methods:{recycleFileRightBtnClick:function(e){this.tempRightFileId=e},getRecycleFiles:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["g"])();case 2:n=t.sent,e.fileList=n,e.searchFileList=n,e.isEmpty=e.fileList.length<1;case 6:case"end":return t.stop()}}),t)})))()},isRecycle:function(e){e&&this.getRecycleFiles()},changeSearchContent:function(e){this.searchContent=e,this.searchForFile()},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent=""},showSearchBar:function(){this.isShowSearchBar=!0},maxTextLengthArrived:function(){this.$notify({message:"请输入35个字之内的搜索内容",type:["warning"]})},searchForFile:function(){var e=this,t=this.searchFileList;t=t.filter((function(t){var n=t.archName.match(new RegExp(e.searchContent,"gi"));return!!n})),this.fileList=t,this.isEmpty=t.length<1}},computed:{showTitle:function(){return this.isShowSearchBar&&this.searchContent?"“".concat(this.searchContent,"”搜索结果"):"回收站"}}},C=S,F=(n("45883"),Object(w["a"])(C,r,i,!1,null,"09a11d1e",null));t["default"]=F.exports},b332:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return o})),n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return l}));n("99af"),n("a15b"),n("d81d"),n("fb6a"),n("ac1f"),n("5319"),n("1276");var r=n("d4ec"),i={DOWNLOADING:100,UPLOADING:101},a={NOT_WORKING:1,WORKING:2},c=function(e,t){var n=e.nodeName,r=e.extension,i=e.archName,a=e.relativePath,c=t.folderName;return"".concat(c).concat(n?"\\协作文件":"","\\").concat(a?"".concat(a.replace(/\//g,"\\"),"\\"):"").concat(i).concat(r?".".concat(r):"")},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(!e)return[];var r=t?"".concat(t,"/"):t,i=e.split("/").map((function(e,t,i){var a="".concat(r).concat(i.slice(0,t+1).join("/"));return n&&n(a),a}));return i},o=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;Object(r["a"])(this,e);var i=t.split("/"),a=i.pop();this.id=n,this.folderPath=t,this.folderName=a,this.parentFolderPath=i.join("/"),this.childCount=0,this.fileCount=0},u=["jpg","png","bmp","gif","jpeg"],l=["avi","mov","wav","mp4"]},b428:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return u})),n.d(t,"i",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"f",(function(){return y})),n.d(t,"j",(function(){return S})),n.d(t,"h",(function(){return F})),n.d(t,"k",(function(){return O})),n.d(t,"l",(function(){return B}));n("99af"),n("4160"),n("a15b"),n("d81d"),n("13d5"),n("fb6a"),n("ac1f"),n("1276"),n("159b"),n("96cf");var r=n("1da1"),i=n("b775"),a=n("3de1"),c=n("b332");function s(e,t){return o.apply(this,arguments)}function o(){return o=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r,c,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=sessionStorage.companyId,e.next=3,Object(i["b"])("folder/queryNodeFolderListByProjectIdAndUserId",{projectId:t,userId:n});case 3:return c=e.sent,s=(c.Data||[]).reduce((function(e,t){var n=Object(a["b"])(t);if(n.folderType="node","0"===n.nodeId){if(n.companyId!==r)return e;n.isPublic=!0}return n.listsShareFrom=[[],[]],e.push(n),e}),[]),e.abrupt("return",s);case 6:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function u(){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/queryFilesFromRecycleBin");case 2:if(t=e.sent,Object(i["c"])(t),0===t.Code){e.next=6;break}return e.abrupt("return",null);case 6:return n=(t.Data||[]).map((function(e){var t=Object(a["b"])(e);return t})),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function h(e){return f.apply(this,arguments)}function f(){return f=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/removeFromRecycleBin",{fileId:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function p(e,t){return d.apply(this,arguments)}function d(){return d=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r,s,o,u,l,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("folder/queryFileListByFolderIdAndUserId",{folderId:t,userId:n});case 2:if(r=e.sent,Object(i["c"])(r),0===r.Code){e.next=6;break}return e.abrupt("return",null);case 6:return s=r.Data||{},o=[],u={},l=(s.myFile||[]).concat(s.workFile||[]).map((function(e){var t=Object(a["b"])(e),n=t.relativePath;if(n){var r=n.split("/");r.forEach((function(e,t){var n=r.slice(0,t+1).join("/");if(!u[n]){var i=new c["d"](n),a=i.parentFolderPath;o.push(i),u[n]=i,u[a]&&u[a].childCount++}})),u[n].fileCount++}return t})),h={folder:o,folderMap:u,file:l,deliverables:(s.deliverables||[]).map(a["b"]),coordinationFiles:(s.public||[]).map((function(e){var t=Object(a["b"])(e);return t.nodeName="公共文件夹",t})).concat((s.coordinationFiles||[]).map(a["b"])),nestCoordinationFiles:(s.nestCoordinationFiles||[]).map(a["b"])},e.abrupt("return",h);case 12:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function m(e,t){return g.apply(this,arguments)}function g(){return g=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/changeFileWorkStatus",{fileId:t,workStatus:n});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function v(e){return b.apply(this,arguments)}function b(){return b=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/addFile",t);case 2:return n=e.sent,r={API:"file/addFile",Action:"新建文件",CompanyName:sessionStorage.CompanyName,Subject:t.archName+"."+t.extension,Source:sessionStorage.client,ProjectName:sessionStorage.projName},Object(i["b"])("operation/record",r),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function w(e){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/deleteFile",{fileId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function y(e){return R.apply(this,arguments)}function R(){return R=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("company/queryFileOnlineUrlByCompanyId",t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function S(e,t){return C.apply(this,arguments)}function C(){return C=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/searchFileListByFolderIdAndFileName",{folderId:t,fileName:n});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function F(e){return j.apply(this,arguments)}function j(){return j=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/queryProjArchiveHistoryTbByArchId",{archId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function O(e,t,n,r){return k.apply(this,arguments)}function k(){return k=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r,a){var c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/setShareFile",{Id:t,IpfsCid:n,ModifyUserId:r,Version:a});case 2:return c=e.sent,e.abrupt("return",c);case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function B(e){return I.apply(this,arguments)}function I(){return I=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/updateProjArchiveHistory",t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}},b84f:function(e,t,n){},d4ec:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},f34a:function(e,t,n){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5272defd"],{"2f4c":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"search-bar",class:{"show-search-bar":e.isShowSearchBar}},[n("div",{staticClass:"search-entry",class:{"set-high-index":!e.isShowSearchBar},on:{mouseenter:function(t){e.isSearchHover=!0},mouseleave:function(t){e.isSearchHover=!1},click:function(t){return t.stopPropagation(),e.showSearchBar(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[n("i",{staticClass:"search-icon",on:{click:function(t){return t.stopPropagation(),e.goToSearch(t)}}}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:e.placeholder,maxlength:"35"},domProps:{value:e.searchContent},on:{keyup:function(t){return t.stopPropagation(),e.enterSearchContent(t)},input:function(t){t.target.composing||(e.searchContent=t.target.value)}}}),n("i",{staticClass:"close-icon",on:{click:function(t){return t.stopPropagation(),e.hideSearchBar(t)}}})])])},i=[],a=(n("fb6a"),n("a9e3"),{data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},model:{prop:"value",event:"input"},props:{placeholder:{type:String,default:"搜索的文本"},maxLength:Number},watch:{searchContent:function(e){if(this.maxLength&&e.length>this.maxLength)return this.$notify({message:"请输入".concat(this.maxLength,"个字之内的搜索内容"),type:["warning"]}),void(this.searchContent=this.searchContent.slice(0,this.maxLength));this.changeSearchContent()}},methods:{enterSearchContent:function(e){this.searchContent&&13==e.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("input",this.searchContent)},goToSearch:function(){this.$emit("search")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("didHide")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("didShow")}}}),c=a,s=(n("3c93"),n("2877")),o=Object(s["a"])(c,r,i,!1,null,"f20ebcbc",null);t["a"]=o.exports},"3c93":function(e,t,n){"use strict";var r=n("73d8"),i=n.n(r);i.a},45883:function(e,t,n){"use strict";var r=n("f34a"),i=n.n(r);i.a},"466d":function(e,t,n){"use strict";var r=n("d784"),i=n("825a"),a=n("50c4"),c=n("1d80"),s=n("8aa5"),o=n("14c3");r("match",1,(function(e,t,n){return[function(t){var n=c(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var c=i(e),u=String(this);if(!c.global)return o(c,u);var l=c.unicode;c.lastIndex=0;var h,f=[],p=0;while(null!==(h=o(c,u))){var d=String(h[0]);f[p]=d,""===d&&(c.lastIndex=s(u,a(c.lastIndex),l)),p++}return 0===p?null:f}]}))},"4d63":function(e,t,n){var r=n("83ab"),i=n("da84"),a=n("94ca"),c=n("7156"),s=n("9bf2").f,o=n("241c").f,u=n("44e7"),l=n("ad6d"),h=n("9f7f"),f=n("6eeb"),p=n("d039"),d=n("69f3").set,m=n("2626"),g=n("b622"),v=g("match"),b=i.RegExp,w=b.prototype,x=/a/g,y=/a/g,R=new b(x)!==x,S=h.UNSUPPORTED_Y,C=r&&a("RegExp",!R||S||p((function(){return y[v]=!1,b(x)!=x||b(y)==y||"/a/i"!=b(x,"i")})));if(C){var F=function(e,t){var n,r=this instanceof F,i=u(e),a=void 0===t;if(!r&&i&&e.constructor===F&&a)return e;R?i&&!a&&(e=e.source):e instanceof F&&(a&&(t=l.call(e)),e=e.source),S&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=c(R?new b(e,t):b(e,t),r?this:w,F);return S&&n&&d(s,{sticky:n}),s},j=function(e){e in F||s(F,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},O=o(b),k=0;while(O.length>k)j(O[k++]);w.constructor=F,F.prototype=w,f(i,"RegExp",F)}m("RegExp")},"73d8":function(e,t,n){},"768e":function(e,t,n){"use strict";var r=n("b84f"),i=n.n(r);i.a},"8b1e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("app-header",{attrs:{theme:"basis",showBackBtn:"",backBtnTitle:e.title,showUserCenter:"",isInRecycle:"",showRecycleBin:""},scopedSlots:e._u([{key:"center",fn:function(){return[n("div",{staticClass:"main-title"},[e._v(e._s(e.showTitle))])]},proxy:!0},{key:"right",fn:function(){return[n("search-bar",{staticClass:"proj-search-bar",attrs:{placeholder:"请输入要搜索的文件"},on:{changeSearchContent:e.changeSearchContent,hideSearchBar:e.hideSearchBar,goToSearch:e.searchForFile,showSearchBar:e.showSearchBar,maxTextLengthArrived:e.maxTextLengthArrived}})]},proxy:!0}])}),n("div",{staticClass:"recycle_content"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[n("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),n("span",{staticClass:"noprotext"},[e._v("暂无文件")])]),e._l(e.fileList,(function(t){return n("recycle-file",{key:t.id,attrs:{file:t,tempRightFileId:e.tempRightFileId},on:{recycleFile:e.isRecycle,recycleFileRightBtnClick:e.recycleFileRightBtnClick}})}))],2)],1)},i=[],a=(n("4de4"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("96cf"),n("1da1")),c=n("01a8"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"recycle-file",staticClass:"yiyun_wenjian_list loding-mask-parent",on:{contextmenu:function(t){return t.preventDefault(),t.stopPropagation(),e.recycleFileRightBtnClick(t)}}},[n("div",{ref:"file-icon"},[e.oneOf(e.file.extension,e.imgExtensionList)||e.oneOf(e.file.extension,e.VideoExtensionList)?e.oneOf(e.file.extension,e.imgExtensionList)?n("div",{staticClass:"defultImage-mid img_bg-mid toumin"},[n("div",{staticClass:"file_Im gbox-mid"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.file.alias,expression:"file.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):n("div",{staticClass:"defultImage-mid video-mid toumin"}):n("div",{staticClass:"defultImage-mid toumin",class:e.file.extension+"-mid "+(e.oneOf(e.file.extension,e.filePreviewList)," ")}),n("strong",{ref:"file-name",staticClass:"yiyunwenjian_name",attrs:{title:e.file.archName+"."+e.file.extension}},[e._v(e._s(e.file.archName)),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.oneOf(e.file.extension,e.RecExtensionList),expression:"!oneOf(file.extension, RecExtensionList)"}]},[e._v("."+e._s(e.file.extension))])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isFileRightMenuVisible,expression:"isFileRightMenuVisible"}],ref:"right-menu",staticClass:"contextmenu",style:{top:e.fileRightMenuTop+"px",left:e.fileRightMenuLeft+"px"}},[n("ul",{staticClass:"rightMenu"},[n("li",{on:{click:function(t){return e.removeFile(e.file.id)}}},[e._v("放回原处")])])])])])},o=[],u=(n("c975"),n("b428")),l=(n("b332"),n("1d40")),h=["jpg","png","bmp","gif","jpeg"],f=["jpg","png","bmp","gif","jpeg","txt","zip","ae","ai","idml","indd","mp3","pr","ps","sketch","xmind","skp","rvt","rar","nwc","max","dxf","dwg","svfzip","map","supermap","pdf","ppt","pptx","excel","xlsx","xls","doc","docx","word","folder","folder1","folder2"],p=["avi","mov","wav","mp4"],d=["doc","docx","ppt","pptx","xls","xlsx"],m=["jpg","png","bmp","gif","jpeg","doc","docx","ppt","pptx","xls","xlsx","avi","mov","wav","mp4","txt","pdf","dwg"],g=function(e,t){return-1!==t.indexOf(e)},v={props:{file:{type:Object,default:function(){return{}}},tempRightFileId:{type:String,default:""}},data:function(){return{imgExtensionList:h,RecExtensionList:f,VideoExtensionList:p,office:d,filePreviewList:m,isFileRightMenuVisible:!1,isClient:l["a"].isClient,isEnterBtn:!1,recycleBinMenuShow:!1,fileRightMenuLeft:0,fileRightMenuTop:0,rightMenuEl:null,recycleFileEl:null}},methods:{oneOf:g,fileClick:function(){console.log(12111)},enterSelectBtn:function(){this.isEnterBtn=!0,this.recycleBinMenuShow=!0},leaveSelectBtn:function(){this.isEnterBtn=!1,this.recycleBinMenuShow=!1},removeFile:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(u["i"])(e);case 2:r=n.sent,-1!==r.Code&&(t.$notify({type:"success",message:"文件已放回原处。"}),t.$emit("recycleFile",!0));case 4:case"end":return n.stop()}}),n)})))()},recycleFileRightBtnClick:function(e){var t=this;this.isFileRightMenuVisible=!0,this.$nextTick((function(){t.rightMenuEl=t.$refs["right-menu"],t.recycleFileEl=t.$refs["recycle-file"];var n=t.recycleFileEl.getBoundingClientRect(),r=t.rightMenuEl.clientHeight,i=t.rightMenuEl.clientWidth,a=document.body.clientHeight,c=document.body.clientWidth-128;t.fileRightMenuLeft=e.clientX-n.left,t.fileRightMenuTop=e.clientY-n.top,e.clientY+r>a&&(t.fileRightMenuTop=t.fileRightMenuTop-r),e.clientX+i>c&&(t.fileRightMenuLeft=t.fileRightMenuLeft-i),t.$emit("recycleFileRightBtnClick",t.file.id)}))},closeFileRightMenu:function(){this.isFileRightMenuVisible=!1}},watch:{tempRightFileId:function(e){this.isFileRightMenuVisible=e===this.file.id},isFileRightMenuVisible:function(e){e?document.body.addEventListener("click",this.closeFileRightMenu):document.body.removeEventListener("click",this.closeFileRightMenu)}}},b=v,w=(n("768e"),n("2877")),x=Object(w["a"])(b,s,o,!1,null,"5328e970",null),y=x.exports,R=n("2f4c"),S={components:{recycleFile:y,AppHeader:c["a"],SearchBar:R["a"]},created:function(){this.getRecycleFiles()},mounted:function(){},data:function(){return{tempRightFileId:"",fileList:[],searchFileList:[],isEmpty:!0,title:"返回"+sessionStorage.pageTitle,isShowSearchBar:!1,searchContent:""}},methods:{recycleFileRightBtnClick:function(e){this.tempRightFileId=e},getRecycleFiles:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["g"])();case 2:n=t.sent,e.fileList=n,e.searchFileList=n,e.isEmpty=e.fileList.length<1;case 6:case"end":return t.stop()}}),t)})))()},isRecycle:function(e){e&&this.getRecycleFiles()},changeSearchContent:function(e){this.searchContent=e,this.searchForFile()},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent=""},showSearchBar:function(){this.isShowSearchBar=!0},maxTextLengthArrived:function(){this.$notify({message:"请输入35个字之内的搜索内容",type:["warning"]})},searchForFile:function(){var e=this,t=this.searchFileList;t=t.filter((function(t){var n=t.archName.match(new RegExp(e.searchContent,"gi"));return!!n})),this.fileList=t,this.isEmpty=t.length<1}},computed:{showTitle:function(){return this.isShowSearchBar&&this.searchContent?"“".concat(this.searchContent,"”搜索结果"):"回收站"}}},C=S,F=(n("45883"),Object(w["a"])(C,r,i,!1,null,"09a11d1e",null));t["default"]=F.exports},b332:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return o})),n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return l}));n("99af"),n("a15b"),n("d81d"),n("fb6a"),n("ac1f"),n("5319"),n("1276");var r=n("d4ec"),i={DOWNLOADING:100,UPLOADING:101},a={NOT_WORKING:1,WORKING:2},c=function(e,t){var n=e.nodeName,r=e.extension,i=e.archName,a=e.relativePath,c=t.folderName;return"".concat(c).concat(n?"\\协作文件":"","\\").concat(a?"".concat(a.replace(/\//g,"\\"),"\\"):"").concat(i).concat(r?".".concat(r):"")},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(!e)return[];var r=t?"".concat(t,"/"):t,i=e.split("/").map((function(e,t,i){var a="".concat(r).concat(i.slice(0,t+1).join("/"));return n&&n(a),a}));return i},o=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;Object(r["a"])(this,e);var i=t.split("/"),a=i.pop();this.id=n,this.folderPath=t,this.folderName=a,this.parentFolderPath=i.join("/"),this.childCount=0,this.fileCount=0},u=["jpg","png","bmp","gif","jpeg"],l=["avi","mov","wav","mp4"]},b428:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return u})),n.d(t,"i",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"f",(function(){return y})),n.d(t,"j",(function(){return S})),n.d(t,"h",(function(){return F})),n.d(t,"k",(function(){return O})),n.d(t,"l",(function(){return B}));n("99af"),n("4160"),n("a15b"),n("d81d"),n("13d5"),n("fb6a"),n("ac1f"),n("1276"),n("159b"),n("96cf");var r=n("1da1"),i=n("b775"),a=n("3de1"),c=n("b332");function s(e,t){return o.apply(this,arguments)}function o(){return o=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r,c,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=sessionStorage.companyId,e.next=3,Object(i["b"])("folder/queryNodeFolderListByProjectIdAndUserId",{projectId:t,userId:n});case 3:return c=e.sent,s=(c.Data||[]).reduce((function(e,t){var n=Object(a["b"])(t);if(n.folderType="node","0"===n.nodeId){if(n.companyId!==r)return e;n.isPublic=!0}return n.listsShareFrom=[[],[]],e.push(n),e}),[]),e.abrupt("return",s);case 6:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function u(){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/queryFilesFromRecycleBin");case 2:if(t=e.sent,Object(i["c"])(t),0===t.Code){e.next=6;break}return e.abrupt("return",null);case 6:return n=(t.Data||[]).map((function(e){var t=Object(a["b"])(e);return t})),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function h(e){return f.apply(this,arguments)}function f(){return f=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/removeFromRecycleBin",{fileId:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function p(e,t){return d.apply(this,arguments)}function d(){return d=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r,s,o,u,l,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("folder/queryFileListByFolderIdAndUserId",{folderId:t,userId:n});case 2:if(r=e.sent,Object(i["c"])(r),0===r.Code){e.next=6;break}return e.abrupt("return",null);case 6:return s=r.Data||{},o=[],u={},l=(s.myFile||[]).concat(s.workFile||[]).map((function(e){var t=Object(a["b"])(e),n=t.relativePath;if(n){var r=n.split("/");r.forEach((function(e,t){var n=r.slice(0,t+1).join("/");if(!u[n]){var i=new c["d"](n),a=i.parentFolderPath;o.push(i),u[n]=i,u[a]&&u[a].childCount++}})),u[n].fileCount++}return t})),h={folder:o,folderMap:u,file:l,deliverables:(s.deliverables||[]).map(a["b"]),coordinationFiles:(s.public||[]).map((function(e){var t=Object(a["b"])(e);return t.nodeName="公共文件夹",t})).concat((s.coordinationFiles||[]).map(a["b"])),nestCoordinationFiles:(s.nestCoordinationFiles||[]).map(a["b"])},e.abrupt("return",h);case 12:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function m(e,t){return g.apply(this,arguments)}function g(){return g=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/changeFileWorkStatus",{fileId:t,workStatus:n});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function v(e){return b.apply(this,arguments)}function b(){return b=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/addFile",t);case 2:return n=e.sent,r={API:"file/addFile",Action:"新建文件",CompanyName:sessionStorage.CompanyName,Subject:t.archName+"."+t.extension,Source:sessionStorage.client,ProjectName:sessionStorage.projName},Object(i["b"])("operation/record",r),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function w(e){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/deleteFile",{fileId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function y(e){return R.apply(this,arguments)}function R(){return R=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("company/queryFileOnlineUrlByCompanyId",t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function S(e,t){return C.apply(this,arguments)}function C(){return C=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/searchFileListByFolderIdAndFileName",{folderId:t,fileName:n});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function F(e){return j.apply(this,arguments)}function j(){return j=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/queryProjArchiveHistoryTbByArchId",{archId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function O(e,t,n,r){return k.apply(this,arguments)}function k(){return k=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r,a){var c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/setShareFile",{Id:t,IpfsCid:n,ModifyUserId:r,Version:a});case 2:return c=e.sent,e.abrupt("return",c);case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function B(e){return I.apply(this,arguments)}function I(){return I=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/updateProjArchiveHistory",t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}},b84f:function(e,t,n){},d4ec:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},f34a:function(e,t,n){}}]); \ No newline at end of file diff --git a/static/js/chunk-559c8a4e.0de322f1.js b/static/js/chunk-559c8a4e.0de322f1.js deleted file mode 100644 index a55846a6..00000000 --- a/static/js/chunk-559c8a4e.0de322f1.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-559c8a4e"],{"14b7":function(e,t,r){},2532:function(e,t,r){"use strict";var s=r("23e7"),i=r("5a34"),n=r("1d80"),a=r("ab13");s({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(n(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var s=r("6b75");function i(e){if(Array.isArray(e))return Object(s["a"])(e)}var n=r("db90"),a=r("06c5");function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){return i(e)||Object(n["a"])(e)||Object(a["a"])(e)||o()}},"2fff":function(e,t,r){"use strict";var s=r("7e58"),i=r.n(s);i.a},"30c5":function(e,t,r){},"45fc":function(e,t,r){"use strict";var s=r("23e7"),i=r("b727").some,n=r("a640"),a=r("ae40"),o=n("some"),c=a("some");s({target:"Array",proto:!0,forced:!o||!c},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"47c5":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"proj-detail"},[r("app-header",{attrs:{theme:"basis",isShowTopBar:!0,backBtnTitle:e.isEnterEdit?"":"退出项目编辑",showUserCenter:!1,showBackBtn:!e.isEnterEdit,onBackBtnClick:e.returnToProjListPage}}),r("div",{staticClass:"content-wrap",class:{"set-content-wrap":e.isEnterEdit}},[e.isEnterEdit?e._e():r("div",{staticClass:"graph-left-part"},[r("nodes-viewer",{staticClass:"node-viewer",attrs:{node:e.treeNode}})],1),r("div",{staticClass:"right-part",class:{"set-right-part-width":e.isEnterEdit}},[!e.isShowDistWorkPage&&e.isShowStartProjDesc?r("div",{ref:"projdesc",staticClass:"proj-desc adjust-top-radius"},[r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{showUserCenter:!1}},[r("div",{staticClass:"title",attrs:{slot:"left"},slot:"left"},[e._v("项目概况")]),r("div",{staticClass:"to-distwork-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.handleShowDistWorkPage(t)}},slot:"right"},[e._v("开始")])]),r("div",{staticClass:"proj-desc-wrap"},[r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("项目名称")]),e.projectNameEditFlag?r("div",{staticClass:"item-value edit"},[r("el-input",{staticClass:"field-input",attrs:{size:"mini",autofocus:!0},model:{value:e.editingProjectName,callback:function(t){e.editingProjectName=t},expression:"editingProjectName"}}),r("el-button",{attrs:{size:"mini"},on:{click:function(t){return t.stopPropagation(),e.renameProjectName(t)}}},[e._v("确认")]),r("el-button",{attrs:{size:"mini"},on:{click:function(t){t.stopPropagation(),e.projectNameEditFlag=!1}}},[e._v("取消")])],1):r("div",{staticClass:"item-value"},[r("span",{staticStyle:{flex:"1"}},[e._v(e._s(e.nowProject.ProjName))]),e.isProjManager?r("el-button",{staticClass:"float-button",attrs:{size:"mini"},on:{click:function(t){t.stopPropagation(),e.projectNameEditFlag=!0}}},[e._v("编辑")]):e._e()],1)]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("项目负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateUserName))])]),r("div",{staticClass:"item cover-container"},[r("div",{staticClass:"item-title"},[e._v("封面")]),r("div",{staticClass:"item-value cover-img-wrap use-relative",style:e.showBackground(e.coverSrc)},[r("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[r("div",[e._v("编辑")])])],1)]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title proj-main-template"},[e._v("项目主要模板")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("模板负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("创建时间")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),e._l(e.listProjProp,(function(t){return r("div",{key:t.TempPropId,staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),r("div",{staticClass:"item-value"},[e._v(e._s(t.PropValue))])])}))],2)],1):e._e(),e.isShowDistWorkPage&&!e.isShowTemplateSummary?r("div",{staticClass:"distwork-page"},[e.isEnterEdit?r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isDistWorkPartScroll},attrs:{title:"指派工作",showUserCenter:!1}},[r("div",{staticClass:"finish-edit-btn",attrs:{slot:"left"},on:{click:function(t){return t.stopPropagation(),e.finishEditClick(t)}},slot:"left"},[e._v("完成编辑")]),r("div",{staticClass:"question",attrs:{slot:"right"},slot:"right"},[r("i",{staticClass:"ques-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),r("span",{staticClass:"ques-text"},[e._v("了解工作负责人")])])]):r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isDistWorkPartScroll},attrs:{backBtnTitle:"项目概况",onBackBtnClick:e.showProjDetailClick,title:e.nowProject.TempName,showUserCenter:!1,showBackBtn:!0}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowManagerTips,expression:"isShowManagerTips"}],staticClass:"manager-tips"},[r("i",{staticClass:"close-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),r("div",{staticClass:"tips-text"},[e._v("工作负责人将有权管理“负责工作中的成员”,点击用户头像变更工作负责人。")])]),r("div",{ref:"distworkpart",staticClass:"part-wrap"},[e.isEnterEdit?e._e():r("div",{staticClass:"template-detail-btn",on:{click:function(t){t.stopPropagation(),e.isShowTemplateSummary=!0,e.isEnterEditPropValue=!1}}},[e._v("模板概况")]),e.isProjManager?r("div",{staticClass:"manager-folder-wrap",class:{"active-folder mb-36":e.isEditProjManager,"only-manager-see folder-click":!e.isEnterEdit}},[r("div",{staticClass:"row-title"},[e._v("项目管理权限")]),r("div",{staticClass:"proj-manager-row use-relative",on:{click:function(t){return t.stopPropagation(),e.activeManagerClick(t)}}},[e.isEnterEdit&&e.isEditProjManager?e._e():r("div",{staticClass:"use-relative ml-4 clear-fix"},[r("div",{staticClass:"use-relative fl"},[r("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{user:e.currUser,isShowManagerMark:e.isEnterEdit}})],1),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),r("div",{staticClass:"use-flex fl"},[e.listManagerUser&&e.listManagerUser.length>0?r("div",{staticClass:"use-flex fl"},e._l(e.filterManageFromListUser(e.currUser.id,e.listManagerUser),(function(t){return r("people-item",{key:t.id,attrs:{user:t,isEnterEdit:e.isEnterEdit}})})),1):e._e(),!e.isEnterEdit&&e.isProjCreator?r("people-item",{nativeOn:{click:function(t){return t.stopPropagation(),e.addProjManager(t)}}}):e._e()],1)]),e.isEnterEdit&&e.isEditProjManager?r("div",{staticClass:"use-relative ml-4 use-flex"},[r("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]):e._e(),r("plain-folder-list",{staticClass:"plain-folder-list",attrs:{nestNodeList:e.nestNodeList,isEnterEdit:e.isEnterEdit,id:e.userId,lastFolderId:e.lastFolderId,folderList:e.listNewFolder,allManager:e.currUser,allManagerChild:e.listManagerUser,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists,activeFolderId:e.activeFolderId,selectedUser:e.selectedUser,isProjManager:e.isProjManager}})],1)],1):e._e(),e.isShowTemplateSummary?r("div",{staticClass:"template-summary"},[r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isTemplateDescScroll},attrs:{backBtnTitle:"返回",theme:"",onBackBtnClick:e.returnToDistWorkClick,title:e.nowProject.TempName,showUserCenter:!1,showBackBtn:!0}},[r("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.handleEditTemplate(t)}},slot:"right"},[e._v(" "+e._s(e.isEnterEditPropValue?"完成编辑":"修改")+" ")])]),Object.keys(e.nowProject).length>0?r("div",{ref:"templatedesc",staticClass:"summary-wrap"},[r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("模板负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("创建时间")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("工程名称")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjName))])]),e._l(e.listProjProp,(function(t){return r("div",{key:t.TempPropId,staticClass:"item"},[r("div",{staticClass:"item-title",class:{"adjust-title-position":e.isEnterEditPropValue}},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),r("div",{staticClass:"item-value"},[e.isEnterEditPropValue?r("input",{directives:[{name:"model",rawName:"v-model",value:t.PropValue,expression:"prop.PropValue"}],staticClass:"prop-value-input",attrs:{type:"text"},domProps:{value:t.PropValue},on:{input:function(r){r.target.composing||e.$set(t,"PropValue",r.target.value)}}}):r("div",[e._v(e._s(t.PropValue))])])])}))],2):e._e()],1):e._e(),e.isStartEditNestTemp?r("link-project",{attrs:{isTemNestInProp:e.isTemNest,nestNodeFolder:e.nestNodeFolder},on:{enterDistWork:e.enterDistWork}}):e._e()],1),e.isEnterEdit?r("div",{staticClass:"personnel-list-part",class:{"set-personnel-list-width":e.isEnterEdit}},[r("personnel-list",{attrs:{treeList:e.memberTree,selectedKeys:e.selectedMemberKeys},on:{select:e.onSelectMembers}})],1):e._e()]),e.nestNodeFolder?r("el-dialog",{staticClass:"nest-project-modal",attrs:{visible:e.nestProjectModalVisible,center:"",top:"48px",width:"660px"},on:{"update:visible":function(t){e.nestProjectModalVisible=t}},scopedSlots:e._u([{key:"title",fn:function(){return[r("div",{staticClass:"nest-project-modal-title"},[r("span",[e._v(e._s(e.nestNodeFolder.folderName)+"的互链项目")]),r("el-button",{on:{click:function(t){t.stopPropagation(),e.nestProjectModalVisible=!1}}},[e._v("关闭")])],1)]},proxy:!0}],null,!1,1702687869)},[e.nestProjectInfo?r("div",{staticClass:"proj-desc-wrap dialog-detail"},[r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("项目名称")]),r("div",{staticClass:"item-value"},[r("span",{staticStyle:{flex:"1"}},[e._v(e._s(e.nestProjectInfo.projName))])])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("项目负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.projCreateUserName))])]),r("div",{staticClass:"item cover-container"},[r("div",{staticClass:"item-title"},[e._v("封面")]),r("div",{staticClass:"item-value cover-img-wrap use-relative",style:e.showBackground(e.coverSrc)})]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title proj-main-template"},[e._v("项目主要模板")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.tempName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("模板负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.tempCreateUserName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("创建时间")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.projCreateTime))])]),e._l(e.nestProjectInfo.customProps||[],(function(t){return r("div",{key:t.TempPropId,staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),r("div",{staticClass:"item-value"},[e._v(e._s(t.PropValue))])])}))],2):e._e(),r("div",[r("el-button",{staticClass:"remove-button",attrs:{type:"danger",plain:""},on:{click:function(t){return t.stopPropagation(),e.severNestProject(t)}}},[e._v("解除项目互链")])],1)]):e._e()],1)},i=[],n=(r("4de4"),r("7db0"),r("c740"),r("4160"),r("caad"),r("a15b"),r("d81d"),r("fb6a"),r("a434"),r("d3b7"),r("ac1f"),r("2532"),r("3ca3"),r("1276"),r("159b"),r("ddb0"),r("0d21")),a=r("db90"),o=r("06c5"),c=r("3d8c");function l(e){return Object(n["a"])(e)||Object(a["a"])(e)||Object(o["a"])(e)||Object(c["a"])()}var d=r("3835"),u=r("5530"),p=r("2909"),h=(r("96cf"),r("1da1")),m=r("5ab9"),f=r("b1f3"),v=r("f96e"),g=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",e._l(e.folderList,(function(t){return r("div",{key:t.id},[r("div",[r("div",{ref:"activeFolder",refInFor:!0,staticClass:"folder-wrap folder-hover",class:{"active-folder":t.id==e.activeFolderId&&e.isEnterEdit,"folder-click":!e.isEnterEdit},on:{click:function(r){return r.stopPropagation(),e.activeFolderClick(t)}}},[r("div",{staticClass:"folder-name",class:{"opacity-5":!e.isAllowedAssignedStaffFolder}},[r("span",[e._v(e._s(t.folderName))]),e.isProjManager?e._e():r("span",{staticClass:"user-perm-text"})]),e.isEnterEdit&&e.activeFolderId===t.id?e._e():r("div",{staticClass:"clear-fix border-box",class:{"mb-36":t.id===e.activeFolderId&&e.isEnterEdit,"ml-4":!e.isEnterEdit,"adjust-position":e.isEnterEdit}},[r("div",{staticClass:"fl"},[t.manageUser&&0==t.manageUser.length?r("div",[e.isAllowedAssignedFolder(t)?r("div",{staticClass:"use-relative"},[e.isEnterEdit?r("people-item"):r("people-item",{class:{"mr-8":!e.isEnterEdit},nativeOn:{click:function(r){r.stopPropagation(),e.aloneAddUserForFolder(t),e.enterEditFolderClick(t)}}})],1):r("div",{staticClass:"notclick"},[r("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{isShowEmptyAvatar:!0}})],1)]):r("div",{staticClass:"use-flex"},e._l(t.manageUser,(function(s,i){return r("div",{key:s.id},[r("div",{staticClass:"use-relative"},[r("people-item",{class:{notclick:!e.isAllowedAssignedStaffFolder(t),"mr-8":!e.isEnterEdit},attrs:{user:s,isShowManagerMark:e.isEnterEdit}})],1)])})),0)]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),r("div",{staticClass:"use-flex",class:{"mb-6":e.isEnterEdit&&e.activeFolderId!==t.id}},[e._l(e.listUserComputed(t.listUser),(function(s){return r("div",{key:s.id,class:{notclick:!(e.isAllowedAssignedStaffFolder(t)||e.isStaff(t))}},[r("people-item",{attrs:{user:s,isEnterEdit:e.isEnterEdit}})],1)})),t.manageUser&&t.manageUser.length>0&&e.isAllowedAssignedStaffFolder(t)?r("div",{staticClass:"add-btn"},[e.isEnterEdit?e._e():r("people-item",{nativeOn:{click:function(r){r.stopPropagation(),e.aloneAddUserOnlyStaff(t),e.enterEditFolderClick(t)}}})],1):e._e(),e.canNest(t)?r("div",{staticClass:"stand-place"}):e._e(),e.canNest(t)&&!e.isEnterEdit&&e.isAllowedAssignedStaffFolder(t)?r("div",{staticClass:"extra-buttons"},[t.nestProjectId&&"0"!==t.nestProjectId?r("el-button",{staticClass:"extra-button",attrs:{size:"mini"},on:{click:function(r){return r.stopPropagation(),e.checkNestProject(t)}}},[r("icon-triangle-circle",{staticClass:"extra-button-icon",attrs:{size:14,color:"#3C7DFF"}}),r("span",{style:{marginLeft:"13px"}},[e._v("管理互链项目")])],1):r("el-dropdown",{attrs:{trigger:"click"}},[r("el-button",{staticClass:"extra-button",attrs:{size:"mini"}},[r("icon-triangle-circle",{staticClass:"extra-button-icon",attrs:{size:14,color:"#999B9D"}}),r("span",{style:{marginLeft:"13px"}},[e._v("互链项目")])],1),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{nativeOn:{click:function(r){return e.createNestProject(t)}}},[e._v("通过新建项目互链")]),r("el-dropdown-item",{nativeOn:{click:function(r){return e.enterNestTemp(t)}}},[e._v("选择已有项目建立互链")])],1)],1)],1):e._e()],2)]),e.isEnterEdit&&e.activeFolderId==t.id?r("div",{staticClass:"use-relative ml-4 mb-36 use-flex border-box",class:{"adjust-margin":t.id===e.lastFolderId}},[r("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]),t.listChildren&&t.listChildren.length>0?[r("plain-folder-list",{attrs:{folderList:t.listChildren,id:e.id,lastFolderId:e.lastFolderId,allManager:e.allManager,allManagerChild:e.allManagerChild,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists,isEnterEdit:e.isEnterEdit,activeFolderId:e.activeFolderId,selectedUser:e.selectedUser,isProjManager:e.isProjManager,nestNodeList:e.nestNodeList}})]:e._e()],2)})),0)},b=[],j=(r("45fc"),function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"people-item",attrs:{title:e.user.cnName}},[r("div",{staticClass:"people-wrap",class:{"rt-0":e.isShowManagerMark}},[r("div",{staticClass:"people"},[Object.keys(e.user).length>0?r("img",{staticClass:"proj-avatarface",class:{"manager-mark":e.isShowManagerMark},attrs:{src:e._f("resolveAvator")(e.user.headImgUrl),alt:""}}):e.isShowEmptyAvatar?r("img",{staticClass:"proj-avatarface empty",attrs:{src:"/static/img/暂无2.svg",alt:""}}):r("div",{staticClass:"add-btn"},[r("i",{staticClass:"el-icon-plus proj-avatarface"})])]),r("div",{staticClass:"people-name",class:{"rt-2":e.isEnterEdit&&e.isShowManagerMark,"rt-4":e.isEnterEdit&&!e.isShowManagerMark}},[e._v(e._s(e.user.cnName))])])])}),w=[],C={data:function(){return{}},computed:{},props:{user:{type:Object,default:function(){return{}}},isShowManagerMark:{type:Boolean,default:!1},isEnterEdit:{type:Boolean,default:!1},isShowEmptyAvatar:{type:Boolean,defualt:!1}},methods:{}},P=C,k=(r("8015"),r("2877")),y=Object(k["a"])(P,j,w,!1,null,"a9676b70",null),E=y.exports,I=r("6b3d"),U=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"temp-selected-user-list",style:{height:e.showAdjustHeight}},[r("div",{ref:"membersView",staticClass:"use-flex"},[e._l(e.memberList,(function(t){return r("div",{key:t.id,staticClass:"use-relative"},[r("people-item",{class:{"active-manager-mark":2==t.folderPerm},attrs:{user:t},nativeOn:{click:function(r){return r.stopPropagation(),e.changeManagerClick(t)}}}),2==t.folderPerm?r("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")]):e._e()],1)})),0==e.memberList.length?r("div",{staticClass:"use-relative",on:{click:function(t){return t.stopPropagation(),e.openPersonnelListClick(t)}}},[r("people-item",{staticClass:"active-manager-mark"}),r("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")])],1):e._e()],2)])},S=[],_={data:function(){return{selectedUserListEl:null,selectedUserListElWidth:0,selectedUserListElHeight:0,renderHeight:0,isAdjustHeight:!1}},components:{PeopleItem:E},props:{memberList:{type:Array,default:function(){return[]}}},mounted:function(){var e=this;document.body.addEventListener("resize",(function(){e.adjustHeightOperate()})),this.selectedUserListEl=this.$refs.membersView,this.selectedUserListEl&&(this.selectedUserListElWidth=this.selectedUserListEl.clientWidth,this.selectedUserListElHeight=this.selectedUserListEl.clientHeight,this.adjustHeightOperate())},computed:{selectedUserListLength:function(){return this.memberList.length},showAdjustHeight:function(){return this.isAdjustHeight?"".concat(this.selectedUserListElHeight-31,"px"):"auto"}},watch:{memberList:{immediate:!0,handler:function(e){if(e.length>0){var t=e.find((function(e){return e.folderPerm&&2==e.folderPerm}));t||(e[0].folderPerm=2,this.$emit("setFirstPeopleToManager",e[0]))}}},selectedUserListLength:function(e){var t=this;setTimeout((function(){t.selectedUserListElWidth=t.selectedUserListEl.clientWidth,t.selectedUserListElHeight=t.selectedUserListEl.clientHeight,t.adjustHeightOperate()}),50)}},methods:{openPersonnelListClick:function(){this.$bus.$emit("openPersonnelListClick")},changeManagerClick:function(e){this.$emit("changeManagerClick",e),this.adjustHeightOperate()},adjustHeightOperate:function(){this.isAdjustHeight=!1;var e=parseInt(this.selectedUserListElWidth/64),t=this.selectedUserListLength,r=t/e,s=0;if(r<=1)return this.isAdjustHeight=!0,void(this.renderHeight=this.selectedUserListElHeight-31);for(var i=0;i0&&this.allManagerChild.find((function(e){return e.id==t.id}))||this.allChildrenLists.length>0&&this.allChildrenLists.includes(e)},isAllowedAssignedStaffFolder:function(e){return e.manageUser&&e.manageUser.length>0&&e.manageUser[0].id==this.id||this.isAllowedAssignedFolder(e)},isStaff:function(e){var t=this;return e.listUser.some((function(e){return e.id===t.id}))}},computed:{listUserComputed:function(){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}}}},D=x,F=(r("6e2b"),Object(k["a"])(D,g,b,!1,null,"1def7049",null)),T=F.exports,L=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"member-list"},[r("div",{staticClass:"top-title"},[e._v("选择成员")]),e._m(0),r("div",{staticClass:"hori-line"}),r("div",{staticClass:"content-wrap"},[r("div",{staticClass:"people-wrap"},[r("el-collapse",{model:{value:e.activeCompanyName,callback:function(t){e.activeCompanyName=t},expression:"activeCompanyName"}},e._l(e.treeList,(function(t){return r("el-collapse-item",{key:t.id,attrs:{name:t.id}},[r("template",{slot:"title"},[r("span",{staticClass:"company-title"},[e._v(e._s(t.label))])]),t.hasChildren?r("el-collapse",{model:{value:e.activeDeptNameList,callback:function(t){e.activeDeptNameList=t},expression:"activeDeptNameList"}},e._l(t.children,(function(t){return r("el-collapse-item",{directives:[{name:"show",rawName:"v-show",value:t.hasChildren,expression:"deptNode.hasChildren"}],key:t.id,attrs:{name:t.id}},[r("template",{staticClass:"dept-entry",slot:"title"},[r("span",{staticClass:"dept-name"},[e._v(e._s(t.label))]),r("div",{staticClass:"check-all-wrap",on:{click:function(r){return r.stopPropagation(),e.toggleAllDept(t)}}},[r("div",{staticClass:"checkbox",class:{checked:e.deptNodeSelectedMap[t.id]}}),r("span",[e._v("全选")])])]),e._l(t.children,(function(t){return r("div",{key:t.id,staticClass:"user-info-item",attrs:{label:t.label},on:{click:function(r){return r.stopPropagation(),e.toggleMember(t)}}},[r("img",{staticClass:"avatar-img",attrs:{src:e._f("resolveAvator")(t.data.headImgUrl),alt:""}}),r("span",{staticClass:"user-info-name"},[e._v(e._s(t.label))]),r("div",{staticClass:"checkbox",class:{checked:e.isSelected(t.id)}})])}))],2)})),1):r("div",{staticClass:"empty-people-tips"},[e._v("暂未添加人员")])],2)})),1)],1)])])},$=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search-bar"},[r("i",{staticClass:"search-icon"}),r("input",{staticClass:"search-input",attrs:{placeholder:"搜索功能正在内测中",disabled:""}})])}],A={data:function(){var e=this.treeList[0],t=e?[e.id]:[],r=e?e.mapChildren((function(e){return e.id})):[];return this.clacAllSelected(),{ischeckAll:!1,activeCompanyName:t,activeDeptNameList:r}},methods:{isSelected:function(e){return!!this.selectedKeys.find((function(t){return t===e}))},isChildrenAllSelected:function(e){var t=this.selectedKeys;return e.everyChildren((function(e){return t.find((function(t){return t===e.id}))}))},toggleAllDept:function(e){var t=!this.deptNodeSelectedMap[e.id];this.$emit("select",e.children,t)},toggleMember:function(e){var t=!this.isSelected(e.id);this.$emit("select",[e],t)},clacAllSelected:function(){var e=this,t={};this.treeList.forEach((function(r){r.mapChildren((function(r){var s=e.isChildrenAllSelected(r);s&&(t[r.id]=!0)}))})),this.deptNodeSelectedMap=t}},props:{treeList:{type:Array,default:function(){return[]}},selectedKeys:{type:Array,default:function(){return[]}}},watch:{selectedKeys:{immediate:!0,handler:function(e){this.clacAllSelected()}},treeList:{immediate:!0,handler:function(e){this.clacAllSelected()}}}},R=A,B=(r("e040"),r("c8e2"),Object(k["a"])(R,L,$,!1,null,"58e87d7b",null)),W=B.exports,V=r("9e5b"),H=r("93d6"),q=r("2ef0"),z=(r("a623"),r("ade3")),K=r("d4ec");function Y(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:ee;return this.hasChildren?(this.children.sort(e),this):this}},{key:"mapChildren",value:function(e){return this.hasChildren?this.children.map(e):[]}},{key:"everyChildren",value:function(e){return!!this.hasChildren&&this.children.every(e)}},{key:"hasChildren",get:function(){return this.children&&!!this.children.length}}]),e}(),re=r("a06e"),se=r("b0f9"),ie=r("5a0c"),ne=r.n(ie),ae=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.isTemNest?r("div",{staticClass:"template_nest"},[r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isNestTempScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"取消",onBackBtnClick:e.enterDistWork,title:"为“"+e.nestNodeFolder.folderName+"”选择互链项目"},scopedSlots:e._u([{key:"right",fn:function(){return[r("el-button",{attrs:{type:"primary",size:"small",disabled:!e.selectedProjectId},on:{click:function(t){return t.stopPropagation(),e.confirmProject(t)}}},[e._v("选定项目")])]},proxy:!0}],null,!1,4194601008)}),r("div",{ref:"nestTemplateDesc",staticClass:"template_select_content"},[r("div",{staticClass:"template_connect"},[e._m(0),e._l(e.linkableProjectList,(function(t){return r("div",{key:t.projId,staticClass:"template_info",on:{click:function(r){e.selectedProjectId=t.projId}}},[r("div",{staticClass:"check_box",class:{checked:e.selectedProjectId==t.projId}},[r("i",{staticClass:"el-icon-check"})]),r("span",{staticClass:"template_info_name"},[e._v(e._s(t.projName))]),r("span",{staticClass:"template_info_extra"},[e._v("模板: "+e._s(t.templateName))])])}))],2)])],1):e._e()])},oe=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"template_info_title"},[r("span",[e._v("我的项目")])])}],ce={components:{TopHeader:f["a"]},props:{nestNodeFolder:Object,isTemNestInProp:{type:Boolean,default:!1}},data:function(){return{companyId:sessionStorage.companyId,userId:sessionStorage.userId,linkableProjectList:[],selectedProjectId:void 0}},methods:{enterDistWork:function(){this.$emit("enterDistWork")},addNestTemplate:function(){var e=this;this.$confirm("重要提示:一旦确定模板并创建后,您将无法删除模板。","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,se["p"](e.selectTemplate.TemplateId);case 2:return r=t.sent,s=r.Data,i={ProjId:e.nestNodeFolder.projId,NodeId:e.nestNodeFolder.nodeId,FolderId:e.nestNodeFolder.id,TemplateId:e.nestNodeFolder.templateId,NestJsmindData:s},t.next=7,se["b"](i);case 7:n=t.sent,0===n.Code&&(e.$notify({message:"“".concat(e.selectTemplate.TemplateName,"”模板嵌套成功。"),type:["success"]}),e.$emit("enterDistWork"));case 9:case"end":return t.stop()}}),t)})))).catch((function(e){return console.log(e)}))},isChecked:function(e,t){this.checkedIndex=e,this.selectTemplate=t},confirmProject:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(e.nestNodeFolder),t.next=3,e.$fetchApi("project/linkProject",{projectId:e.selectedProjectId,folderId:e.nestNodeFolder.id});case 3:if(r=t.sent,Object(J["c"])(r),0===r.Code){t.next=7;break}return t.abrupt("return");case 7:Q["d"].success("互链成功"),e.$emit("enterDistWork");case 9:case"end":return t.stop()}}),t)})))()},fetchLinkableProjectList:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$fetchApi("project/queryProjectListByProjectManagerUserId",{userId:e.userId});case 2:if(r=t.sent,Object(J["c"])(r),e.linkableProjectList=[],0===r.Code){t.next=7;break}return t.abrupt("return");case 7:e.linkableProjectList=(r.Data||[]).map(Q["b"]);case 8:case"end":return t.stop()}}),t)})))()}},watch:{isTemNestInProp:{handler:function(e){this.isTemNest=e,e&&this.fetchLinkableProjectList()},immediate:!0}}},le=ce,de=(r("2fff"),Object(k["a"])(le,ae,oe,!1,null,"3f290ff7",null)),ue=de.exports,pe=r("de58"),he={data:function(){return{nestNodeFolder:{},nestNodeList:[],nowProject:{},listProjProp:[],cnName:"",selectedUser:[],selectedManageUser:[],isShowFirstPage:!0,isShowSecondPage:!1,isShowThreePage:!1,InitData:{},listNewFolder:[],oldFolderList:[],oldPlainFolderList:[],listDept:[],curProjCreatePeop:[],currWorkName:"",newProjFolderIndex:1,tempIndex:0,isShowdivid2:!1,currSelectData:[],currUser:{},isShowManager:!0,listManagerUser:[],oldListManagerUser:[],isProjManager:!1,isProjCreator:!1,currListDeptUserData:[],userList:[],memberTree:[],finishBtnClickCount:0,userId:sessionStorage.userId,allChildrenLists:[],isShowStartProjDesc:!0,isShowTemplateSummary:!1,isShowDistWorkPage:!1,isEnterEdit:!1,distWorkPartEl:null,isDistWorkPartScroll:!1,dlastScrollTime:null,isProjDescScroll:!1,projDescEl:null,isTemplateDescScroll:!1,templateDescEl:null,tlastScrollTime:null,isEditProjManager:!1,activeFolderId:"",activeFolder:null,coverSrc:"/static/img/faceImg/face01.png",isStartEditNestTemp:!1,isTemNest:!1,activeDeptName:"",isShowManagerTips:!1,isEnterEditPropValue:!1,isDistworkDone:!1,isDistworkSuccess:!1,lastFolderId:"",originPropListCopy:[],selectedMemberKeys:[],projectNameEditFlag:!1,editingProjectName:"",treeNode:null,nestProjectInfo:{},nestProjectModalVisible:!1}},components:{AppHeader:v["a"],TopHeader:f["a"],PlainFolderList:T,PeopleItem:E,PersonnelList:W,TempSelectedUserList:M,FileUploader:V["a"],LinkProject:ue,NodesViewer:pe["a"]},updated:function(){this.$refs.projdesc&&(this.projDescEl=this.$refs.projdesc,this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll),this.projDescEl.addEventListener("scroll",this.watchProjDescScroll)),this.$refs.distworkpart&&(this.distWorkPartEl=this.$refs.distworkpart,this.distWorkPartEl.removeEventListener("scroll",this.watchDistWorkPartScroll),this.distWorkPartEl.addEventListener("scroll",this.watchDistWorkPartScroll)),this.$refs.templateDescEl&&(this.templateDescEl=this.$refs.templatedesc,this.templateDescEl.removeEventListener("scroll",this.watchTemplateDescScroll),this.templateDescEl.addEventListener("scroll",this.watchTemplateDescScroll))},watch:{isEnterEdit:function(e){e&&(this.projectNameEditFlag=!1)},projectNameEditFlag:function(e){e&&(this.editingProjectName=this.nowProject.ProjName)},nestProjectModalVisible:function(e){e||(this.nestProjectInfo={})}},mounted:function(){this.isShowDistWorkPage=this.$route.query.isShowDistworkPage?this.$route.query.isShowDistworkPage:this.isShowDistworkPage,this.isShowStartProjDesc=!this.isShowDistWorkPage,this._getUserInfo(sessionStorage.userId),this.projInfo(sessionStorage.projId),this.cnName=JSON.parse(sessionStorage.user).cnName,this.fetchProjectDetail(),this.getNestNode(sessionStorage.templateID),this.projDescEl=this.$refs.projdesc,this.projDescEl&&this.projDescEl.addEventListener("scroll",this.watchProjDescScroll),this.distWorkPartEl=this.$refs.distworkpart,this.distWorkPartEl&&this.distWorkPartEl.addEventListener("scroll",this.watchDistWorkPartScroll),this.templateDescEl=this.$refs.templatedesc,this.templateDescEl&&this.templateDescEl.addEventListener("scroll",this.watchTemplateDescScroll),this.$bus.$on("enterEditFolderClick",this.enterEditFolderClick),this.$bus.$on("activeFolderClick",this.activeFolderClick),this.$bus.$on("changeManagerClick",this.changeManagerClick),this.$bus.$on("setFirstPeopleToManager",this.setFirstPeopleToManager),this.$bus.$on("enterNestTemp",this.enterNestTemp),this.$bus.$on("checkNestProject",this.checkNestProject)},beforeDestroy:function(){this.projDescEl&&this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll),this.distWorkPartEl&&this.distWorkPartEl.removeEventListener("scroll",this.watchDistWorkPartScroll),this.templateDescEl&&this.templateDescEl.removeEventListener("scroll",this.watchTemplateDescScroll),this.$bus.$off("enterEditFolderClick",this.enterEditFolderClick),this.$bus.$off("activeFolderClick",this.activeFolderClick),this.$bus.$off("changeManagerClick",this.changeManagerClick),this.$bus.$off("setFirstPeopleToManager",this.setFirstPeopleToManager),this.$bus.$off("enterNestTemp",this.enterNestTemp),this.$bus.$off("checkNestProject",this.checkNestProject)},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],r=t(e);return{background:"center/cover no-repeat url(".concat(r,")")}},handleShowDistWorkPage:function(){this.isShowDistWorkPage=!0},handleEditTemplate:function(){this.isEnterEditPropValue=!this.isEnterEditPropValue,this.isEnterEditPropValue||(this.originPropListCopy=this.listProjProp,this.$notify({type:["success"],message:"修改模板概况成功"}))},checkNestProject:function(e){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function r(){var s,i,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s=e.nestProjectId,t.nestNodeFolder=e,t.nestProjectModalVisible=!0,r.next=5,re["c"](s);case 5:if(i=r.sent,Object(J["c"])(i),0===i.Code){r.next=9;break}return r.abrupt("return");case 9:n=Object(Q["b"])(i.Data||{}),n.projCreateTime=ne()(n.projCreateTime).format("YYYY/MM/DD"),t.nestProjectInfo=n;case 12:case"end":return r.stop()}}),r)})))()},severNestProject:function(){var e=this,t=this.nestNodeFolder;this.$confirm("解除互链不会影响双方项目的文件数据,解除后将无法进行文件交付,确定解除吗?",{confirmButtonText:"解除互链关系",cancelButtonText:"取消",type:"danger"}).then(Object(h["a"])(regeneratorRuntime.mark((function r(){var s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.$fetchApi("project/deleteProjectLink",{folderId:t.id,nestProjectId:t.nestProjectId});case 2:if(s=r.sent,Object(J["c"])(s),0===s.Code){r.next=6;break}return r.abrupt("return");case 6:Q["d"].success("互链项目已移除"),e.nestProjectModalVisible=!1,e.fetchProjectDetail();case 9:case"end":return r.stop()}}),r)}))))},enterNestTemp:function(e){this.isShowDistWorkPage=!1,this.isShowStartProjDesc=!1,this.isShowTemplateSummary=!1,this.isStartEditNestTemp=!0,this.isTemNest=!0,this.nestNodeFolder=e},enterDistWork:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isShowDistWorkPage=!0,e.isShowStartProjDesc=!0,e.isShowTemplateSummary=!1,e.isStartEditNestTemp=!1,e.isTemNest=!1,e.fetchProjectDetail();case 6:case"end":return t.stop()}}),t)})))()},returnToProjListPage:function(){this.isDistworkDone&&this.isDistworkSuccess&&this.$notify({message:"工作指派完成。",type:["success"]}),this.$router.push({path:"/index"}).catch((function(e){return console.log(e)}))},getNestNode:function(e){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function r(){var s,i,n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return a=function(e,t){e.forEach(function(){var e=Object(h["a"])(regeneratorRuntime.mark((function e(r){var s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,se["l"](r.TemplateId);case 2:s=e.sent,i=s.Data||[],i.length>0&&t.push.apply(t,Object(p["a"])(i));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},r.next=3,se["l"](e);case 3:s=r.sent,i=s.Data||[],n=Object(p["a"])(s.Data),a(i,n),t.nestNodeList=n;case 8:case"end":return r.stop()}}),r)})))()},projInfo:function(e){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function r(){var s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,re["c"](e);case 2:if(s=r.sent,-1!=s.Code){r.next=6;break}return t.$notify({type:["error"],message:"项目概况信息查询失败"}),r.abrupt("return");case 6:t.nowProject=s.Data||{},t.nowProject.ProjCreateTime=ne()(t.nowProject.ProjCreateTime).format("YYYY/MM/DD"),t.nowProject=Object(u["a"])({},t.nowProject),t.listProjProp=s.Data.CustomProps||[],t.listProjProp=Object(p["a"])(t.listProjProp),t.originPropListCopy=Object(q["cloneDeep"])(t.listProjProp),t.coverSrc=s.Data.ShowImgUrl;case 13:case"end":return r.stop()}}),r)})))()},renameProjectName:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.editingProjectName,s={ProjId:sessionStorage.projId,ProjName:r,ImgUrl:e.coverSrc},t.next=4,Object(re["b"])(s);case 4:if(i=t.sent,-1!=i.Code){t.next=8;break}return e.$notify({message:"修改失败",type:"success"}),t.abrupt("return");case 8:e.projectNameEditFlag=!1,e.nowProject.ProjName=r;case 10:case"end":return t.stop()}}),t)})))()},coverUploadSuccess:function(e){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function r(){var s,i,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s=Object(m["c"])(e.ossUrl),t.coverSrc=s,i={ProjId:sessionStorage.projId,ImgUrl:t.coverSrc,ProjName:t.nowProject.ProjName},r.next=5,Object(re["b"])(i);case 5:n=r.sent,-1==n.Code&&t.$notify({message:"封面修改失败。",type:"success"});case 7:case"end":return r.stop()}}),r)})))()},setSystemCoverRandom:function(){},returnToDistWorkClick:function(){var e=this;this.isEnterEditPropValue?this.$confirm("是否保存当前项目的模板概况信息","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(h["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isShowTemplateSummary=!1,e.originPropListCopy=e.listProjProp;case 2:case"end":return t.stop()}}),t)})))).catch((function(){e.listProjProp=e.originPropListCopy})):this.isShowTemplateSummary=!1},showProjDetailClick:function(){this.isShowDistWorkPage=!1,this.isShowStartProjDesc=!0},setFirstPeopleToManager:function(e){0==this.selectedManageUser.length&&0!==this.selectedUser.length&&this.selectedManageUser.push(e)},filterManageFromListUser:function(e,t){return t.filter((function(t){return t.id!==e}))},watchProjDescScroll:function(){this.isProjDescScroll=this.projDescEl.scrollTop>0},watchTemplateDescScroll:function(){this.isTemplateDescScroll=this.templateDescEl.scrollTop>0},watchDistWorkPartScroll:function(){this.isDistWorkPartScroll=this.distWorkPartEl.scrollTop>0},activeManagerClick:function(){this.isProjCreator&&(this.isEditProjManager=!0,this.enterEditOperate(),this.activeFolderId="",this.activeFolder=null,this.addProjManager())},activeFolderClick:function(e){this.isEditProjManager=!1,this.activeFolderId=e.id,this.activeFolder=e,e.listUser&&0==e.listUser.length?this.aloneAddUserForFolder(e):this.aloneAddUserOnlyStaff(e)},enterEditFolderClick:function(e){this.activeFolderId=e.id,this.activeFolder=e,this.enterEditOperate()},enterEditOperate:function(){this.isEnterEdit=!0},finishEditClick:function(){this.isDistworkDone=!0,this.isEnterEdit=!1,this.selectedManageUser=[],this.selectedUser=[],this.isEditProjManager&&(this.isEditProjManager=!1),this.createFolders(),this.activeDeptName=""},addProjMangerBtnClick:function(){this.isEditProjManager=!0,this.enterEditOperate()},_getUserInfo:function(e){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function r(){var s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(H["f"])(e);case 3:return r.sent,r.next=6,Object(H["f"])(sessionStorage.createUserID);case 6:s=r.sent,t.curProjCreatePeop=s.cnName+" 指派了新工作,请完成工作指派",1==sessionStorage.allocated&&(t.curProjCreatePeop="项目管理"),r.next=14;break;case 11:r.prev=11,r.t0=r["catch"](0),console.log(r.t0);case 14:case"end":return r.stop()}}),r,null,[[0,11]])})))()},isAllowedDelete:function(e){return!(!this.listManagerUser.includes(e)&&this.currUser.id!==e.id&&this.InitData.manageUser&&this.InitData.manageUser.length>0&&this.InitData.manageUser[0].id==sessionStorage.userId&&!this.allChildrenLists.includes(this.InitData)&&e.id==this.InitData.manageUser[0].id)},changeManagerClick:function(e){var t=this;if(this.isEditProjManager)this.$notify({message:"项目负责人无法更换。",type:"warning",offset:100,duration:5e3});else{var r=this.listManagerUser.map((function(e){return e.id}))||[];!r.includes(sessionStorage.userId)&&this.currUser.id!==sessionStorage.userId&&this.InitData.manageUser&&this.InitData.manageUser.length>0&&this.InitData.manageUser[0].id==sessionStorage.userId&&!this.allChildrenLists.includes(this.InitData)?this.$notify({message:"没有权限更换工作负责人。",type:"warning",offset:100,duration:5e3}):this.selectedUser.forEach((function(r){r.folderPerm=r.id===e.id?2:1,2===r.folderPerm&&t.InitData&&t.InitData.manageUser&&t.InitData.manageUser.splice(0,1,r)}))}},aloneAddUserForFolder:function(e){this.currSelectData=e,this.currWorkName=e.folderName,null==e.listUser&&(e.listUser=[]),this.InitData=e,this.setFolderPerm(e),this.selectedUser=e.listUser,this.selectedManageUser=e.manageUser,this.isShowSecondPage=!0,this.isShowFirstPage=!1},setFolderPerm:function(e){var t=e.listUser;this.selectedMemberKeys=t.map((function(e){return e.id}))},aloneAddUserOnlyStaff:function(e){this.isShowManager=!0,this.currWorkName=e.folderName,null==e.listUser&&(e.listUser=[]),this.InitData=e,this.setFolderPerm(e),this.selectedUser=e.listUser,this.selectedManageUser=e.manageUser,this.isShowThreePage=!0,this.isShowFirstPage=!1},addProjManager:function(){var e=this;this.activeFolderId="",this.isEditProjManager=!0,this.enterEditOperate(),this.isShowManager=!1;var t={listUser:[]};t.listUser=this.listManagerUser;var r=t.listUser.find((function(t){return t.id===e.currUser.id}));r&&0!=t.listUser.length||(this.currUser.folderPerm=2,t.listUser.unshift(this.currUser)),this.setFolderPerm(t),this.selectedUser=t.listUser,this.selectedManageUser=this.listManagerUser},onSelectMembers:function(e,t){var r=this,s=Object(p["a"])(this.selectedMemberKeys);e.forEach((function(e){var i=Object(q["cloneDeep"])(e.data),n=function(){r.checkDeptUserName(i,t),i.folderPerm=1,1==r.selectedUser.length&&1==t&&(i.folderPerm=2)};if(t){if(s.find((function(t){return t===e.id})))return;return s.push(e.id),void n()}if(r.isAllowedDelete(i))if(r.isEditProjManager&&i.id===r.currUser.id)r.$notify({message:"不可以移除项目创建者。",type:"warning",offset:100,duration:5e3});else{if(s=s.filter((function(e){return i.id!==e})),r.activeFolder&&r.activeFolder.manageUser.find((function(e){return e.id===i.id})))return r.removeManageUser(i),void r.activeFolder.manageUser.splice(0);if(r.isEditProjManager){var a=r.listManagerUser.findIndex((function(e){return e.id===i.id}));a>-1&&r.listManagerUser.splice(a,1)}n()}else r.$notify({message:"不能移除自己。",type:"warning",offset:100,duration:5e3})})),this.selectedMemberKeys=s},removeManageUser:function(e){e.folderPerm=1,this.selectedManageUser.splice(0,1);for(var t=0;t0&&(e.manageUser[0].folderPerm=2,e.listUser.unshift(e.manageUser[0])),e.listChildren&&e.listChildren.length>0&&t.getfolderPerm(e.listChildren)}))},getPlainOldFolderList:function(){var e=[];function t(r){r.length>0&&r.forEach((function(r){e.push(r),r.listChildren&&r.listChildren.length>0&&t(r.listChildren)}))}t(this.oldFolderList),this.oldPlainFolderList=e,this.lastFolderId=this.oldPlainFolderList[this.oldPlainFolderList.length-1].id},fetchProjectDetail:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i,n,a,o,c,l,u,p,h,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.$store.state.currentCompanyId,t.next=3,Promise.all([e.$fetchApi("folder/queryNodeFolderListByProjectId",{projectId:sessionStorage.projId}),X(r)]);case 3:s=t.sent,i=Object(d["a"])(s,2),n=i[0],a=i[1],o=a.treeList,c=a.memberMap,l=n.Data||{},u=l.folder,p=l.manager,e.memberTree=o,e.listManagerUser=p.map((function(e){var t;return null===(t=c[e.UserId])||void 0===t?void 0:t.data})),e.listManagerUser.length&&(e.currUser=e.listManagerUser[0]||{},e.isProjCreator=e.currUser.id===e.userId,e.listManagerUser=e.listManagerUser.slice(1),e.isProjManager=!!e.listManagerUser.find((function(t){return t.id==e.userId}))||e.currUser.id==e.userId),e.oldListManagerUser=Object(q["cloneDeep"])(e.listManagerUser),h=Object(q["uniqBy"])(u,"Id"),m=me(h,c),e.treeNode=fe(h),e.getfolderPerm(m),e.listNewFolder=m,e.oldFolderList=Object(q["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList(),e.getAllChildrenLists(e.listNewFolder,e.userId,e.allChildrenLists);case 22:case"end":return t.stop()}}),t)})))()},getChildren:function(e,t){var r=this;e.forEach((function(e){t.push(e),e.listChildren.length>0&&r.getChildren(e.listChildren,t)}))},getAllChildrenLists:function(e,t,r){var s=this;e.forEach((function(e){e.manageUser.length>0&&e.manageUser[0].id==t&&e.listChildren&&e.listChildren.length>0&&s.getChildren(e.listChildren,r)}))},createFolders:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=function(e){e.length>0&&e.forEach((function(e){var t={FolderId:"",ManagerUserId:"",GeneralId:"",OldManager:"",OldGeneralId:""};t.FolderId=e.id;var n=[];t.ManagerUserId=e.manageUser.length>0?e.manageUser.map((function(e){return n.push(e.id),e.id})).join(","):"";var a=e.listUser.filter((function(e){return!n.includes(e.id)}));t.GeneralId=e.listUser.length>0?a.map((function(e){return e.id})).join(","):"";var o=s.find((function(t){return t.id==e.id})),c=o.manageUser.length>0?o.manageUser[0].id:"";t.OldManager=c,t.OldGeneralId=o.listUser.length>0?o.listUser.filter((function(e){return e.id!==c})).map((function(e){return e.id})).join(","):"",r.Work.push(t),i(e.listChildren)}))},r={Id:sessionStorage.createUserID,ProjId:sessionStorage.projId,ProjectManagerId:"",OldProjectManagerId:e.oldListManagerUser.map((function(e){return e.id})).join(","),Work:[]},r.ProjectManagerId=e.listManagerUser.length>0?e.listManagerUser.map((function(e){if(e.id!==sessionStorage.createUserID)return e.id})).join(","):"",s=e.oldPlainFolderList,i(e.listNewFolder),t.next=7,Object(re["a"])(r);case 7:n=t.sent,a=e,0===n.Code?(e.isDistworkSuccess=!0,e.oldFolderList=Object(q["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList()):(e.isDistworkSuccess=!1,a.$notify({message:"服务器异常,工作指派失败。",type:["error"],duration:5e3}));case 10:case"end":return t.stop()}}),t)})))()}}};function me(e,t){var r=l(e),s=r[0],i=(r[1],r.slice(2)),n=s.Id,a=[],o={};return i.forEach((function(e){var r=Object(Q["b"])(e);o[r.id]=r,r.listChildren=[],r.listUser=r.oldGeneralId.split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(u["a"])({},t[e].data)})),r.manageUser=("0"===r.oldManager?"":r.oldManager).split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(u["a"])({},t[e].data)}));var s=r.superId;if(s!==n){var i=o[s];i&&i.listChildren.push(r)}else a.push(r)})),a}function fe(e){var t=null,r={};return e.forEach((function(e){if("0"!==e.NodeId){var s=e.LevelId,i={id:e.Id,levelId:s,topic:e.FolderName};if(r[i.levelId]=i,i.levelId===e.FirstFolderId)return t=i,void(t.levelId=t.id);var n=e.LevelId.split("_").slice(0,-1).join("_"),a=r[n];a&&(a.children||(a.children=[]),a.children.push(i))}})),t}var ve=he,ge=(r("dc0c"),r("685f"),Object(k["a"])(ve,s,i,!1,null,"551504ef",null));t["default"]=ge.exports},"5a34":function(e,t,r){var s=r("44e7");e.exports=function(e){if(s(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5be0":function(e,t,r){},"685f":function(e,t,r){"use strict";var s=r("14b7"),i=r.n(s);i.a},"6b3d":function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{style:{width:e.size+"px",height:e.size+"px"}},[r("svg",{attrs:{width:"100%",height:"100%",viewBox:"0 0 100 100"}},[r("circle",{attrs:{cx:"50",cy:"56",r:"39","stroke-width":"10",stroke:e.color,fill:"transparent"}}),r("circle",{attrs:{cx:"50",cy:"16",r:"16",fill:e.color}}),r("circle",{attrs:{cx:"84",cy:"84",r:"16",fill:e.color}}),r("circle",{attrs:{cx:"16",cy:"84",r:"16",fill:e.color}})])])},i=[],n=(r("a9e3"),{props:{color:String,size:Number}}),a=n,o=(r("f94d"),r("2877")),c=Object(o["a"])(a,s,i,!1,null,"dd2d6402",null);t["a"]=c.exports},"6dcf":function(e,t,r){"use strict";var s=r("5be0"),i=r.n(s);i.a},"6e2b":function(e,t,r){"use strict";var s=r("a145"),i=r.n(s);i.a},"7e58":function(e,t,r){},8015:function(e,t,r){"use strict";var s=r("e3e1"),i=r.n(s);i.a},"8a37":function(e,t,r){},"8ed8":function(e,t,r){},a06e:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return u})),r.d(t,"e",(function(){return h}));r("d81d"),r("96cf");var s=r("1da1"),i=r("b775");r("3de1");function n(e){return a.apply(this,arguments)}function a(){return a=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/queryProjectListByUserId",{userId:t});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/queryProjectInfoByProjId",{projId:t});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function l(e){return d.apply(this,arguments)}function d(){return d=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/editProject",t);case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return p=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/assignedWork",t);case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return m=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/searchProject",{projName:t});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}},a145:function(e,t,r){},a623:function(e,t,r){"use strict";var s=r("23e7"),i=r("b727").every,n=r("a640"),a=r("ae40"),o=n("every"),c=a("every");s({target:"Array",proto:!0,forced:!o||!c},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},ab13:function(e,t,r){var s=r("b622"),i=s("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[i]=!1,"/./"[e](t)}catch(s){}}return!1}},b0f9:function(e,t,r){"use strict";r.d(t,"o",(function(){return n})),r.d(t,"m",(function(){return o})),r.d(t,"t",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"n",(function(){return h})),r.d(t,"q",(function(){return f})),r.d(t,"f",(function(){return g})),r.d(t,"s",(function(){return j})),r.d(t,"l",(function(){return C})),r.d(t,"k",(function(){return k})),r.d(t,"b",(function(){return E})),r.d(t,"p",(function(){return U})),r.d(t,"j",(function(){return _})),r.d(t,"h",(function(){return O})),r.d(t,"i",(function(){return x})),r.d(t,"a",(function(){return F})),r.d(t,"g",(function(){return L})),r.d(t,"c",(function(){return A})),r.d(t,"e",(function(){return B})),r.d(t,"r",(function(){return V}));r("4de4"),r("96cf");var s=r("1da1"),i=r("b775");function n(){return a.apply(this,arguments)}function a(){return a=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function l(e){return d.apply(this,arguments)}function d(){return d=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return p=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return m=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function f(e){return v.apply(this,arguments)}function v(){return v=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return b=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function j(e){return w.apply(this,arguments)}function w(){return w=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/updateTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return P=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}function k(e){return y.apply(this,arguments)}function y(){return y=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryNestTemplateIdByProjectId",{projectId:t});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function E(e){return I.apply(this,arguments)}function I(){return I=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/connectNestTemplateFolder",t);case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function U(e){return S.apply(this,arguments)}function S(){return S=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function _(e,t,r){return N.apply(this,arguments)}function N(){return N=Object(s["a"])(regeneratorRuntime.mark((function e(t,r,s){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:r,nestedNodeId:s});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}function O(e){return M.apply(this,arguments)}function M(){return M=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/fileExchange",t);case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function x(e,t){return D.apply(this,arguments)}function D(){return D=Object(s["a"])(regeneratorRuntime.mark((function e(t,r){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t,companyId:r?void 0:"0"});case 2:return s=e.sent,r&&s.Data&&(s.Data=s.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===r}))),e.abrupt("return",Object(i["c"])(s));case 5:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function F(e){return T.apply(this,arguments)}function T(){return T=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/addTemplateNodeModelFile",t);case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function L(e){return $.apply(this,arguments)}function $(){return $=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function A(e){return R.apply(this,arguments)}function R(){return R=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/createNestedRelevance",t);case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function B(e){return W.apply(this,arguments)}function W(){return W=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/deleteNestedRelevance",t);case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function V(e){return H.apply(this,arguments)}function H(){return H=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/renameTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),H.apply(this,arguments)}},b18b:function(e,t,r){},b1f3:function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[r("div",{staticClass:"app-header-content"},[r("div",{staticClass:"app-header-content-left"},[e._t("left",[r("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),r("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),r("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?r("user-center"):e._e()],2)]),r("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},i=[],n=r("1392"),a={components:{UserCenter:n["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean},data:function(){return{isWindowScrollIng:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},o=a,c=(r("6dcf"),r("2877")),l=Object(c["a"])(o,s,i,!1,null,"373b66dc",null);t["a"]=l.exports},c740:function(e,t,r){"use strict";var s=r("23e7"),i=r("b727").findIndex,n=r("44d2"),a=r("ae40"),o="findIndex",c=!0,l=a(o);o in[]&&Array(1)[o]((function(){c=!1})),s({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(o)},c8e2:function(e,t,r){"use strict";var s=r("8ed8"),i=r.n(s);i.a},caad:function(e,t,r){"use strict";var s=r("23e7"),i=r("4d64").includes,n=r("44d2"),a=r("ae40"),o=a("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!o},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("includes")},d4ec:function(e,t,r){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return s}))},db90:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("d3b7"),r("3ca3"),r("ddb0");function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},dc0c:function(e,t,r){"use strict";var s=r("b18b"),i=r.n(s);i.a},de58:function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"mindDom",staticClass:"nodes-viewer",style:{width:e.width,height:e.height},attrs:{id:e.domId},on:{mousewheel:function(t){return t.stopPropagation(),e.onWheel(t)}}})},i=[],n=(r("fb6a"),function(){return"xmind_".concat("".concat(Math.random()).slice(2,8))}),a=window.jsMind,o={props:{node:{type:Object,default:null},width:{type:String,default:""},height:{type:String,default:""}},data:function(){return{domId:n(),mindIns:null,domMindInner:null,zoom:1}},mounted:function(){this.init()},watch:{node:function(e){e&&this.show()}},methods:{init:function(){var e={container:this.domId,editable:!1,theme:"",mode:"side",support_html:!1,view:{engine:"canvas",hmargin:100,vmargin:50,line_width:1,line_color:"#cccdd7"}},t=new a(e);t.disable_edit(),t.end_edit(),this.mindIns=t,this.node&&this.show()},getMindInnerDom:function(){if(this.domMindInner)return this.domMindInner;if(this.$refs.mindDom){var e=this.$refs.mindDom.querySelector(".jsmind-inner");return this.domMindInner=e,e}},onWheel:function(e){if(e.ctrlKey){e.returnValue=!1;var t=-e.wheelDelta||e.detail,r=this.getMindInnerDom();if(r){var s=this.zoom+(t>0?-.1:.1),i=Math.max(.2,Math.min(s,1.8));this.zoom=i,r.style.zoom=this.zoom}}},show:function(){var e={meta:{name:"mindhh",author:"hh",version:"0.2"},format:"node_tree",data:this.node};this.mindIns.show(e)}}},c=o,l=r("2877"),d=Object(l["a"])(c,s,i,!1,null,"2aa6cc14",null);t["a"]=d.exports},e040:function(e,t,r){"use strict";var s=r("30c5"),i=r.n(s);i.a},e3e1:function(e,t,r){},f94d:function(e,t,r){"use strict";var s=r("8a37"),i=r.n(s);i.a},f96e:function(e,t,r){"use strict";var s=r("01a8");r.d(t,"a",(function(){return s["a"]}))}}]); \ No newline at end of file diff --git a/static/js/chunk-59bb5b90.0752f2f1.js b/static/js/chunk-59bb5b90.de1da97a.js similarity index 100% rename from static/js/chunk-59bb5b90.0752f2f1.js rename to static/js/chunk-59bb5b90.de1da97a.js diff --git a/static/js/chunk-63d4ab7f.ea58ad54.js b/static/js/chunk-63d4ab7f.5fecc3f5.js similarity index 100% rename from static/js/chunk-63d4ab7f.ea58ad54.js rename to static/js/chunk-63d4ab7f.5fecc3f5.js diff --git a/static/js/chunk-695cbab1.c30fd6f1.js b/static/js/chunk-695cbab1.989f0123.js similarity index 100% rename from static/js/chunk-695cbab1.c30fd6f1.js rename to static/js/chunk-695cbab1.989f0123.js diff --git a/static/js/chunk-6d72e803.6a9ade2e.js b/static/js/chunk-6d72e803.938baa66.js similarity index 100% rename from static/js/chunk-6d72e803.6a9ade2e.js rename to static/js/chunk-6d72e803.938baa66.js diff --git a/static/js/chunk-6f87105f.064693e6.js b/static/js/chunk-6f87105f.f30c04a7.js similarity index 100% rename from static/js/chunk-6f87105f.064693e6.js rename to static/js/chunk-6f87105f.f30c04a7.js diff --git a/static/js/chunk-873c7c58.f63445b7.js b/static/js/chunk-7125e649.0eab8b52.js similarity index 90% rename from static/js/chunk-873c7c58.f63445b7.js rename to static/js/chunk-7125e649.0eab8b52.js index 4d7a3f48..5c09f2f2 100644 --- a/static/js/chunk-873c7c58.f63445b7.js +++ b/static/js/chunk-7125e649.0eab8b52.js @@ -1,4 +1,4 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-873c7c58"],{"06f0":function(t,e,i){"use strict";var n=i("cdec"),r=i("b0e8"),s=i("a642"),a=i("84a3");function o(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){o(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return o(t),e.data=r(e.data,e.headers,t.transformResponse),e}),(function(e){return s(e)||(o(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"089b":function(t,e,i){"use strict";var n=i("827b");function r(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var i=this;t((function(t){i.reason||(i.reason=new n(t),e(i.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r((function(e){t=e}));return{token:e,cancel:t}},t.exports=r},"0beb":function(t,e,i){"use strict";var n=i("cdec");function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,i){if(!e)return t;var s;if(i)s=i(e);else if(n.isURLSearchParams(e))s=e.toString();else{var a=[];n.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),s=a.join("&")}if(s){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}},"0cf1":function(t,e,i){},"0e15a":function(t,e,i){"use strict";var n=i("cf8f"),r=i.n(n);r.a},"0e97":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._l(t.list,(function(e){return["file"===e.nodeType?i("list-file-item",{key:e.id,attrs:{file:e,readOnly:t.readOnly,checked:t.selectedKeyMap[e.id]},on:{check:t.check}}):i("list-folder-item",{key:e.id,attrs:{folder:e,readOnly:t.readOnly,selectedKeyMap:t.selectedKeyMap},on:{check:t.check}})]}))],2)},r=[],s=i("3906"),a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"list-folder-item"},[i("div",{staticClass:"list-folder-item-header"},[i("div",{staticClass:"list-folder-item-cell",style:{flex:"918"}},[i("img",{staticClass:"list-folder-item-icon",attrs:{src:"static/img/file.png"}}),i("span",[t._v(t._s(t.folder.folderName))]),t.readOnly?t._e():i("div",{staticClass:"list-folder-item-checkall"},[i("el-checkbox",{attrs:{label:"全选",value:t.isChildrenAllChecked},on:{change:function(e){return t.check(t.folder)}}})],1)]),i("div",{staticClass:"list-folder-item-cell list-folder-item-lever",class:{"list-folder-item-expanded":t.expanded},style:{flex:"90"},on:{click:function(e){e.stopPropagation(),t.expanded=!t.expanded}}},[i("span",{style:{marginLeft:"10px"}},[t._v(t._s(t.expanded?"折叠":"展开"))])])]),i("item-list",{staticClass:"list-folder-item-body",class:{"list-folder-item-body-hide":!t.expanded},attrs:{list:t.folder.children,readOnly:t.readOnly,selectedKeyMap:t.selectedKeyMap},on:{check:t.check}})],1)},o=[],l=(i("a623"),i("d3b7"),{components:{ItemList:function(){return Promise.resolve().then(i.bind(null,"0e97"))}},props:{folder:Object,readOnly:Boolean,selectedKeyMap:Object},data:function(){return{expanded:!1}},computed:{isChildrenAllChecked:function(){return c(this.folder.children,this.selectedKeyMap)}},methods:{check:function(t){this.$emit("check",t)}}});function c(t,e){return t.every((function(t){return"file"===t.nodeType?e[t.id]:c(t.children,e)}))}var u=l,h=(i("3470"),i("2877")),d=Object(h["a"])(u,a,o,!1,null,"f2299b76",null),p=d.exports,f={components:{ListFileItem:s["a"],ListFolderItem:p},props:{list:Array,readOnly:Boolean,selectedKeyMap:Object},methods:{check:function(t){this.$emit("check",t)}}},m=f,v=Object(h["a"])(m,n,r,!1,null,null,null);e["default"]=v.exports},"175e":function(t,e,i){"use strict";var n=i("cdec"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,i,s,a={};return t?(n.forEach(t.split("\n"),(function(t){if(s=t.indexOf(":"),e=n.trim(t.substr(0,s)).toLowerCase(),i=n.trim(t.substr(s+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([i]):a[e]?a[e]+", "+i:i}})),a):a}},"194a":function(t,e,i){},"1e53":function(t,e,i){"use strict";var n=i("d160"),r=i.n(n);r.a},2128:function(t,e,i){"use strict";var n=i("2593"),r=i.n(n);r.a},"24d7":function(t,e,i){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},2593:function(t,e,i){},2909:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("6b75");function r(t){if(Array.isArray(t))return Object(n["a"])(t)}var s=i("db90"),a=i("06c5");function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t){return r(t)||Object(s["a"])(t)||Object(a["a"])(t)||o()}},"293a":function(t,e,i){"use strict";var n=i("640e"),r=i.n(n);r.a},"29c8":function(t,e,i){"use strict";t.exports=function(t,e,i,n,r){return t.config=e,i&&(t.code=i),t.request=n,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"2b9b":function(t,e,i){"use strict";var n=i("62d3"),r=i("c61b");t.exports=function(t,e){return t&&!n(e)?r(t,e):e}},"2e60":function(t,e,i){},"2f4c":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"search-bar",class:{"show-search-bar":t.isShowSearchBar}},[i("div",{staticClass:"search-entry",class:{"set-high-index":!t.isShowSearchBar},on:{mouseenter:function(e){t.isSearchHover=!0},mouseleave:function(e){t.isSearchHover=!1},click:function(e){return e.stopPropagation(),t.showSearchBar(e)}}},[i("img",{directives:[{name:"show",rawName:"v-show",value:!t.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),i("img",{directives:[{name:"show",rawName:"v-show",value:t.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[i("i",{staticClass:"search-icon",on:{click:function(e){return e.stopPropagation(),t.goToSearch(e)}}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:t.placeholder,maxlength:"35"},domProps:{value:t.searchContent},on:{keyup:function(e){return e.stopPropagation(),t.enterSearchContent(e)},input:function(e){e.target.composing||(t.searchContent=e.target.value)}}}),i("i",{staticClass:"close-icon",on:{click:function(e){return e.stopPropagation(),t.hideSearchBar(e)}}})])])},r=[],s=(i("fb6a"),i("a9e3"),{data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},model:{prop:"value",event:"input"},props:{placeholder:{type:String,default:"搜索的文本"},maxLength:Number},watch:{searchContent:function(t){if(this.maxLength&&t.length>this.maxLength)return this.$notify({message:"请输入".concat(this.maxLength,"个字之内的搜索内容"),type:["warning"]}),void(this.searchContent=this.searchContent.slice(0,this.maxLength));this.changeSearchContent()}},methods:{enterSearchContent:function(t){this.searchContent&&13==t.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("input",this.searchContent)},goToSearch:function(){this.$emit("search")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("didHide")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("didShow")}}}),a=s,o=(i("3c93"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"f20ebcbc",null);e["a"]=l.exports},3470:function(t,e,i){"use strict";var n=i("e70f"),r=i.n(n);r.a},3792:function(t,e,i){"use strict";var n=i("c22c"),r=i.n(n);r.a},3906:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"list-file-item"},[i("div",{staticClass:"list-file-item-cell",style:{flex:"1"}},[i("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!t.readOnly,expression:"!readOnly"}],staticClass:"list-file-item-checkbox",attrs:{value:t.checked},on:{change:t.onCheckChange}}),i("span",{attrs:{title:t.fileName}},[t._v(t._s(t.fileName))])],1),i("div",{staticClass:"list-file-item-cell",style:{flex:"0 0 80px"},on:{click:t.onCheckChange}},[i("span",[t._v("V"+t._s(t.file.version))])]),i("div",{staticClass:"list-file-item-cell",style:{flex:"0 0 80px"}},[i("span",[t._v(t._s(t.file.createUserName))])]),i("div",{staticClass:"list-file-item-cell",style:{flex:"0 0 180px"}},[i("span",[t._v(t._s(t._f("formatTime")(t.file.modifyTime)))])])])},r=[],s=(i("99af"),i("13d5"),i("5a0c")),a=i.n(s),o=function(){for(var t=arguments.length,e=new Array(t),i=0;i2?i("div",{staticClass:"has-prev-node no-drag",on:{click:function(e){return e.stopPropagation(),t.nowFolderClick(t.nowFolderIndex-1)}}},[i("img",{staticClass:"prev-icon no-drag",attrs:{src:"/static/img/下拉箭头.svg"}})]):t._e(),t._l(t.folderList,(function(e,n){return[i("button",{key:n,ref:"nowFolderEl",refInFor:!0,staticClass:"no-drag",class:{"nowfolder-wrap yiyuntitle nowFolderName":n==t.nowFolderIndex,"yiyuntitle sectitle":n!==t.nowFolderIndex,"hide-folder":Math.abs(n-t.nowFolderIndex)>2},attrs:{type:"button"},on:{click:function(e){return t.nowFolderClick(n)}}},[i("div",{staticClass:"use-ellipsis",class:{"now-folder-text":n===t.nowFolderIndex,"other-folder-text":n!==t.nowFolderIndex}},[t._v(t._s(e.folderName)+" ")]),i("div",{staticClass:"jump-icon-wrap"},[n==t.nowFolderIndex?i("img",{staticClass:"jump-icon",attrs:{src:"/static/img/下拉箭头.svg"},on:{click:function(e){return e.stopPropagation(),t.showWorklinkPage(e)}}}):t._e()])])]})),t.totalNodeNum-t.nowFolderIndex>2?i("div",{staticClass:"has-next-node no-drag",on:{click:function(e){return e.stopPropagation(),t.nowFolderClick(t.nowFolderIndex+1)}}},[i("img",{staticClass:"next-icon no-drag",attrs:{src:"/static/img/下拉箭头.svg"}})]):t._e(),i("div",{style:{display:t.divDisplay?"block":"none"}})],2)])},h=[],d=i("3de1"),p=i("1d40"),f={props:{folderList:Array,currentNodeFolder:Object},data:function(){return{projectId:sessionStorage.projId,isClient:p["a"].isClient,moveX:0,divDisplay:""}},updated:function(){this.nowFolderEl=this.$refs.nowFolderEl?this.$refs.nowFolderEl[this.nowFolderIndex]:null;var t=this.$refs.allFolderWrapEl;if(this.nowFolderEl&&t){var e=this.nowFolderEl.offsetLeft,i=t.clientWidth/2-this.nowFolderEl.clientWidth/2;this.moveX=e-i}},methods:{nowFolderClick:function(t){t<0?d["d"].error("不能再向前了"):t>this.folderList.length-1?d["d"].error("不能再向后了"):this.$emit("changeFolder",this.folderList[t])},showWorklinkPage:function(){this.$emit("showWorkFlow",!0),this.isShowworklink=!0,this.workheight="workheight"}},computed:{nowFolderIndex:function(){return this.folderList.indexOf(this.currentNodeFolder)},setTranslate:function(){var t={transform:"translate(".concat(-this.moveX,"px, 0)")};return t},totalNodeNum:function(){return this.folderList?this.folderList.length:0}},watch:{moveX:function(t){var e=this;setTimeout((function(){e.divDisplay=!e.divDisplay}),500)},nowFolderIndex:function(t){t>-1&&(this.nowFolderEl=this.$refs.nowFolderEl?this.$refs.nowFolderEl[t]:this.nowFolderEl,this.allFolderWrapEl=this.$refs.allFolderWrapEl)}}},m=f,v=(i("e144"),i("2877")),g=Object(v["a"])(m,u,h,!1,null,"7482bf93",null),y=g.exports,b=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"file-explorer"},[t.isShowSearchPage?i("div",{staticClass:"search-res-page"},[i("change-btn",{staticClass:"operate-bar",attrs:{titleList:t.titleList},on:{changeContentBtnClick:t.changeContentBtnClick}}),i("div",{staticClass:"out-wrap"},[i("div",{staticClass:"search-res-page-wrap"},[0==t.currentBtnIndex?i("div",{staticClass:"list-group"},[t._l(t.searchWorkFileList,(function(e){return i("FileItem",{key:e.id,staticClass:"lisy-group-item",attrs:{file:e,clientDownLoad:t.clientDownLoad,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,tempRightFileId:t.tempRightFileId,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{commitFile:t.showCommitWindow,"change-file-status":t.toggleFileShareStatus,dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},copyFileBtnClick:function(i){return t.copyWorkFileBtnClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick,deleteFileClick:t.deleteFileClick,checkMilestoneClick:t.checkMilestoneClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),t.searchWorkFileList&&0==t.searchWorkFileList.length?i("div",{staticClass:"no-file-tips"},[t._v("搜索不到与“"+t._s(t.searchContent)+"”相关的工作文件")]):t._e()],2):1==t.currentBtnIndex?i("div",{staticClass:"list-group"},[t._l(t.searchCoopFileList,(function(e){return i("FileItem",{key:e.id,attrs:{file:e,tempRightFileId:t.tempRightFileId,clientDownLoad:t.clientDownLoad,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),t.searchCoopFileList&&0==t.searchCoopFileList.length?i("div",{staticClass:"no-file-tips"},[t._v("搜索不到与“"+t._s(t.searchContent)+"”相关的协作文件")]):t._e()],2):t._e()])])],1):i("div",[i("div",{staticClass:"listfilewarp mt-0"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"layout_content2"},[i("section",{staticClass:"layerout_H2",class:[t.closepageH+" ",{"set-workarea-height":t.isShowShadow&&!t.closepageH,fullscreen:t.currentNodeFolder.isPublic,fullscreen2:t.enableSelect}],attrs:{id:"workspace"},on:{contextmenu:function(e){return e.preventDefault(),t.rightShowMenu(e,"新建文件夹",4)}}},[i("section",{staticClass:"yiyun_section_warp"},[i("div",{staticClass:"yinyong_warpBox hidescollbar"},[i("div",{staticClass:"titlebar_head",attrs:{id:"bignav"}},[i("div",{staticClass:"section_item section_item_aside_fl"},[i("span",{staticClass:"yiyun_text-title-workspace"},[i("el-breadcrumb",{staticClass:"folder_breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[i("el-breadcrumb-item",{nativeOn:{click:function(e){return t.clickBreadcrumb(-1,0)}}},[t._v(t._s(t.currentNodeFolder.isPublic?"公共文件":"工作文件"))]),t._l(t.breadcrumbFolderList,(function(e,n){return i("el-breadcrumb-item",{key:e.id,nativeOn:{click:function(e){return t.clickBreadcrumb(n,0)}}},[t._v(t._s(e.folderName))])}))],2),!t.isClient||t.enableSelect||t.currentNodeFolder.isPublic?t._e():i("el-button",{staticClass:"enable-select-button",on:{click:function(e){e.stopPropagation(),t.enableSelect=!0}}},[i("i",{staticClass:"font_family icon-icon_status_wenjianbiaojiwancheng enable-select-button-icon"}),i("span",[t._v("批量交付")])])],1)]),i("div",{staticClass:"use-relative scollbarBox nobianju"},[t.isClient&&!t.enableSelect?i("AddFileButton",{attrs:{currentNodeFolder:t.currentNodeFolder,selectSystemFiles:t.selectSystemFiles,selectSystemFolders:t.selectSystemFolders},on:{fileTempClick:t.fileTempClick}}):t._e(),t.uploadFileList&&t.uploadFileList.length>0?i("div",{staticClass:"list-group"},t._l(t.filterFilesInWork(t.uploadFileList),(function(e){return i("FileItem",{key:e.id,staticClass:"lisy-group-item",attrs:{file:e,clientDownLoad:t.clientDownLoad,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id]}})})),1):t._e(),t.workFileList&&t.workFileList.length>0?i("div",{staticClass:"list-group"},t._l(t.filterFilesInWork(t.workFileList),(function(e){return i("FileItem",{key:e.id,staticClass:"lisy-group-item",attrs:{file:e,enableSelect:t.enableSelect,selected:t.selectedFileIdList.some((function(t){return t===e.id})),clientDownLoad:t.clientDownLoad,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,tempRightFileId:t.tempRightFileId,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{select:t.toggleFileSelect,commitFile:t.showCommitWindow,"change-file-status":t.toggleFileShareStatus,dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},copyFileBtnClick:function(i){return t.copyWorkFileBtnClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick,deleteFileClick:t.deleteFileClick,checkMilestoneClick:t.checkMilestoneClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),1):t._e(),i("div",{staticClass:"list-group"},t._l(t.filterFoldersInWork(t.subFolderList),(function(e){return i("FolderItem",{key:e.id,attrs:{folder:e,isLoading:t.localFolderLoadStateMap[e.folderPath],activeRightMenuId:t.tempRightFileId,filterFolderList:t.filterFoldersInTarget(t.subFolderList,e),filterFileList:t.filterFilesInTarget(t.workFileList,e)},on:{onRightMenuActive:t.oneFileRightBtnClick,onDownloadAll:t.downloadFolder,commitFolder:t.commitFolder},nativeOn:{dblclick:function(i){return t.intoSubFolder(e,0)}}})})),1)],1)])])]),t.enableSelect?i("div",{staticClass:"archive_box"},[i("div",{staticClass:"archive_box_header"},[t._v(" 已选交付成果 ")]),i("div",{staticClass:"archive_box_list_container"},[i("div",{staticClass:"archive_box_list"},t._l(t.selectedFileList,(function(e){return i("div",{key:e.id,staticClass:"archive_box_list_item"},[i("span",{attrs:{title:e.archName}},[t._v(t._s(e.archName))]),i("el-button",{staticClass:"archive_box_list_item_button",attrs:{type:"text"},on:{click:function(i){return i.stopPropagation(),t.toggleFileSelect(e)}}},[t._v("移除")])],1)})),0)]),i("div",{staticClass:"archive_box_bottom"},[i("el-button",{staticClass:"archive_box_bottom_button",attrs:{type:"success",disabled:0===t.selectedFileIdList.length},on:{click:function(e){e.stopPropagation(),t.authModalVisible=!0}}},[t._v("交付并认证")]),i("el-button",{staticClass:"archive_box_bottom_button",on:{click:function(e){e.stopPropagation(),t.enableSelect=!1}}},[t._v("取消交付")])],1)]):t._e()]),t.currentNodeFolder.isPublic?i("div",{staticClass:"neibianju public-folder-bottom"},[i("div",{staticClass:"bottom-button-container"},[i("el-button",{staticClass:"bottom-button",on:{click:function(e){return e.stopPropagation(),t.showAchieveView(e)}}},[i("i",{staticClass:"font_family icon-icon_status_wenjianbiaojiwancheng bottom-button-icon"}),i("span",[t._v("交付模板成果")])])],1)]):i("div",{directives:[{name:"show",rawName:"v-show",value:!t.enableSelect,expression:"!enableSelect"}],class:[""+t.neibianju,{"coopBox-max-height":t.isShowShadow&&t.isCollapse}],attrs:{id:"bottomBox"}},[i("div",{staticClass:"titleBox"},[i("span",{staticClass:"yiyun_zhediebtn DevtopIcon"},[i("i",{directives:[{name:"show",rawName:"v-show",value:t.isCollapse,expression:"isCollapse"}],staticClass:"Cicon text_gray icon font_family icon-icon_zhankai",attrs:{title:"展开面板"},on:{click:function(e){return e.stopPropagation(),t.openCopage(e)}}}),i("i",{directives:[{name:"show",rawName:"v-show",value:!t.isCollapse,expression:"!isCollapse"}],staticClass:"Cicon text_gray icon font_family icon-icon_shouqi",attrs:{title:"折叠面板"},on:{click:function(e){return e.stopPropagation(),t.closeCopage(e)}}})]),i("div",{staticClass:"title_warp"},[i("div",{staticClass:" ",attrs:{id:"bignav"}},[i("div",{staticClass:"section_item fl section_item_aside_fl xiangdui"},[i("div",{staticClass:"tabtltlebox"},[i("div",{staticClass:"section_item section_item_aside_fl"},[i("span",{staticClass:"yiyun_text-title-workspace mr-20 ml-8"},[i("el-breadcrumb",{staticClass:"folder_breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[i("el-breadcrumb-item",{nativeOn:{click:function(e){return t.clickBreadcrumb(-1,1)}}},[t._v("协作文件")]),t._l(t.breadcrumbFolderListInCoop,(function(e,n){return i("el-breadcrumb-item",{key:e.id,nativeOn:{click:function(e){return t.clickBreadcrumb(n,1)}}},[t._v(t._s(e.folderName))])}))],2)],1)])])]),t._m(0)]),i("div",{staticClass:"clear"})])]),i("div",{staticClass:"fifleBox",attrs:{id:"coopFileContainer"}},[i("div",{staticClass:"yiyun_section_warp layerout_H3",attrs:{id:"coopFileBox"}},[i("div",{staticClass:"yinyong_warpBox"},[i("div",[i("div",{staticClass:"mt-12"},t._l(t.filterFilesInCoop(t.cooperationFileList),(function(e){return i("FileItem",{key:e.id,attrs:{file:e,tempRightFileId:t.tempRightFileId,clientDownLoad:t.clientDownLoad,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),1),i("div",{staticClass:"list-group"},t._l(t.filterFoldersInCoop(t.coopSubFolderList),(function(e){return i("FolderItem",{key:e.id,attrs:{folder:e,isWorkFolder:!1,isLoading:t.localFolderLoadStateMap[e.folderPath],activeRightMenuId:t.tempRightFileId,filterFolderList:t.filterFoldersInTarget(t.coopSubFolderList,e,!0),filterFileList:t.filterFilesInTarget(t.cooperationFileList,e,!0)},on:{onRightMenuActive:t.oneFileRightBtnClick,onDownloadAll:t.downloadFolder,commitFolder:t.commitFolder},nativeOn:{dblclick:function(i){return i.stopPropagation(),t.intoSubFolder(e,1)}}})})),1)])])])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowShadow,expression:"isShowShadow"}],staticClass:"showdowfix",attrs:{id:"bottomoShadow"}})]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.rightMenuvisible,expression:"rightMenuvisible"}],ref:"right-menu",staticClass:"contextmenu",style:{left:t.rightMenuleft+"px",top:t.rightMenuTop+"px"}},[i("ul",{staticClass:"rightMenu"},[i("li",{on:{click:t.newCreateFolderGroup}},[t._v(" 新建文件夹 ")]),t.isClient&&this.localWorkspacePrefix?i("li",{on:{click:t.openNativeCurrentFolder}},[t._v(" 打开本地工作目录 ")]):t._e()])])])])]),i("el-dialog",{attrs:{width:"900px",visible:t.isVideo,"close-on-click-modal":!1},on:{"update:visible":function(e){t.isVideo=e},close:t.videoClose}},[i("div",{staticClass:"filePreview"},[i("video",{attrs:{src:t.videoSrc,controls:"controls"}})])]),i("el-dialog",{attrs:{title:"创建文件夹",visible:t.dialogNewFolderGroup,width:"460px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogNewFolderGroup=e}},nativeOn:{submit:function(t){t.preventDefault()}}},[i("el-form",[i("div",{staticClass:"appImgiconbox"},[i("img",{attrs:{src:"/static/img/folder.png",alt:""}})]),i("el-form-item",[i("el-input",{nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createSubFolder(e)}},model:{value:t.folderGroupData.FolderName,callback:function(e){t.$set(t.folderGroupData,"FolderName",e)},expression:"folderGroupData.FolderName"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogNewFolderGroup=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.createSubFolder()}}},[t._v("确 定")])],1)],1),t.currentSelectTempFile?i("el-dialog",{staticClass:"temp-file-dialog",attrs:{title:t.showNewTemplateFileDialogTitle,visible:t.isShowNewTemplateFileDialog,width:"460px","show-close":!1,"close-on-click-modal":!1},on:{"update:visible":function(e){t.isShowNewTemplateFileDialog=e}},nativeOn:{submit:function(t){t.preventDefault()}}},[i("el-form",[t.oneOf(t.currentSelectTempFile.extension,["doc","docx","dwg","dxf","gif","jpeg","jpg","max","nwc","pdf","png","ppt","pptx","rar","rvt","skp","txt","xls","xlsx","xmind","zip"])?i("div",{staticClass:"appImgiconbox"},[i("img",{attrs:{src:"/static/img/files/file_sample_"+t.currentSelectTempFile.extension+".svg",alt:""}})]):i("div",{staticClass:"img-container"},[t.notPicIcon()?i("div",{staticClass:"defultImage-small",class:t.currentSelectTempFile.extension+"-mid"}):t.picIcon()?i("div",{staticClass:"defultImage-small img_bg-mid"},[i("div",{staticClass:"file_Im gbox-mid"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.currentSelectTempFile.alias,expression:"currentSelectTempFile.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):i("div",{staticClass:"video-small"})]),i("div",{staticClass:"guide-template-file-name"},[t._v(t._s(t.projectName+"_"+t.currentNodeFolder.folderName+"_"+t.currentSelectTempFile.fileName+"."+t.currentSelectTempFile.extension))]),i("el-form-item",[i("el-input",{nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createTemplateFile(e)}},model:{value:t.currentSelectTempFile.fileName,callback:function(e){t.$set(t.currentSelectTempFile,"fileName",e)},expression:"currentSelectTempFile.fileName"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.isShowNewTemplateFileDialog=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.createTemplateFile()}}},[t._v("完成创建")])],1)],1):t._e(),i("commit-judge",{ref:"commit-judge",attrs:{file:t.commitJudgeFile,fileImgClass:t.fileImgClass,isShowCommitJudgeWindow:t.isShowCommitJudgeWindow},on:{closeCommitJudge:t.closeCommitJudge,finishCommitFile:t.finishCommitFile}}),i("file-milestone",{attrs:{visible:t.checkMilestoneShow,fileMilestoneInfo:t.fileMilestoneInfo,localWorkspacePrefix:t.localWorkspacePrefix,fileHistoryList:t.fileHistoryList,file:t.currentFile},on:{closeMilestonePain:t.closeMilestonePain,makeCopy:t.copyWorkFileBtnClick,openFile:t.fileClick,openFileWith:t.openFileWith}}),i("el-dialog",{staticClass:"auth-modal",attrs:{visible:t.authModalVisible,width:"460px",top:"30vh"},on:{"update:visible":function(e){t.authModalVisible=e}},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",{staticClass:"auth-title"},[t._v("账户认证")]),i("div",{staticClass:"auth-hint"},[t._v("请输入您的账户密码,一旦交付将不可撤回!")])]},proxy:!0}])},[i("el-input",{attrs:{placeholder:"请输入密码",type:"password","auto-complete":"new-password"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doCommit(e)}},model:{value:t.authInpVal,callback:function(e){t.authInpVal=e},expression:"authInpVal"}}),i("el-input",{staticClass:"auth-textarea",attrs:{placeholder:"请输入备注",type:"textarea"},model:{value:t.authRemarkVal,callback:function(e){t.authRemarkVal=e},expression:"authRemarkVal"}}),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.authModalVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{disabled:!t.authInpVal,type:"primary"},on:{click:t.doCommit}},[t._v("认证并提交交付物")])],1)],1)],1)},x=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"section_item fr section_item_aside_fr"},[i("div",{staticClass:"fr ml-10"},[i("span",{staticClass:"bj_label"},[t._v("协作文件均只读")])]),i("div",{staticClass:"fifle_search fr"})])}],S=i("9f19"),C=S["a"],k=(i("ffb0"),i("5644"),i("bd77"),i("7440"),Object(v["a"])(C,b,x,!1,null,"8e6310a4",null)),w=k.exports,V=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"archive-view"},[i("div",{staticClass:"view-left"},[i("el-collapse",{staticClass:"panel-wrapper",model:{value:t.collapseActiveKeys,callback:function(e){t.collapseActiveKeys=e},expression:"collapseActiveKeys"}},[i("el-collapse-item",{staticClass:"panel",attrs:{title:"项目成果",name:"1"}},[i("div",{staticClass:"list-item",class:{"list-item-active":"all"===t.tabKey},on:{click:function(e){return e.stopPropagation(),t.filterArchive()}}},[i("span",[t._v("显示所有勾选文件"+t._s(t.selectedKeyCount?" ("+t.selectedKeyCount+"/"+t.fileTotalCount+")":""))])]),t._l(t.currentArchiveTreeList.filter((function(t){return"folder"===t.nodeType})),(function(e){return i("div",{key:e.id,staticClass:"list-item",class:{"list-item-active":t.tabKey===e.id},on:{click:function(i){return i.stopPropagation(),t.filterArchive(e)}}},[i("span",[t._v(t._s(e.folderName))])])}))],2),i("el-collapse-item",{staticClass:"panel",attrs:{title:"历史提交记录",name:"2"}},t._l(t.commitHisList,(function(e){return i("div",{key:e.id,staticClass:"list-item",class:{"list-item-active":t.tabKey===e.id},on:{click:function(i){return i.stopPropagation(),t.checkCommitHistory(e)}}},[t._v(" "+t._s(t._f("formatTime")(e.createTime))+" ")])})),0)],1),i("div",{staticClass:"button-group"},[i("el-button",{staticClass:"view-left-button",on:{click:function(e){t.receiverModalVisible=!0}}},[t._v("查看接收方信息")]),i("el-button",{staticClass:"view-left-button",attrs:{type:"success",disabled:!t.selectedKeyCount},on:{click:function(e){e.stopPropagation(),t.authModalVisible=!0}}},[t._v(" 交付并认证")]),i("el-button",{staticClass:"view-left-button",on:{click:function(e){return e.stopPropagation(),t.cancelArchive(e)}}},[t._v(" 取消交付")])],1)],1),i("div",{staticClass:"view-right"},[i("div",{staticClass:"table-like"},[t._m(0),t._l(t.rightPanelItemList,(function(e){return["file"===e.nodeType?i("list-file-item",{key:e.id,attrs:{file:e,readOnly:t.readOnly,checked:t.selectedKeyMap[e.id]},on:{check:t.toggleCheck}}):i("div",{key:e.id,staticClass:"table-node"},[i("div",{staticClass:"table-node-header"},[i("div",{staticClass:"table-node-header-th"},[t._v(t._s(e.folderName))]),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.readOnly,expression:"!readOnly"}],staticClass:"table-node-header-extra"},[i("el-checkbox",{staticClass:"table-node-header-checkbox",attrs:{value:t.isChildrenAllChecked(e)},on:{change:function(i){return t.toggleCheck(e)}}}),t._v(" 全选 ")],1)]),i("item-list",{attrs:{list:e.children,readOnly:t.readOnly,selectedKeyMap:t.selectedKeyMap},on:{check:t.toggleCheck}})],1)]}))],2)]),i("el-dialog",{staticClass:"auth-modal",attrs:{visible:t.authModalVisible,width:"460px",top:"30vh"},on:{"update:visible":function(e){t.authModalVisible=e}},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",{staticClass:"auth-title"},[t._v("账户认证")]),i("div",{staticClass:"auth-hint"},[t._v("请输入您的账户密码,一旦交付将不可撤回!")])]},proxy:!0}])},[i("el-input",{attrs:{placeholder:"请输入密码",type:"password","auto-complete":"new-password"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doCommit(e)}},model:{value:t.authInpVal,callback:function(e){t.authInpVal=e},expression:"authInpVal"}}),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.authModalVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{disabled:!t.authInpVal,type:"primary"},on:{click:t.doCommit}},[t._v("认证并提交交付物")])],1)],1),i("el-dialog",{staticClass:"receiver-modal",attrs:{visible:t.receiverModalVisible,width:"660px"},on:{"update:visible":function(e){t.receiverModalVisible=e}}},[i("div",{staticClass:"template-summary"},[i("top-header",{staticClass:"set-header-position header-wrap",attrs:{theme:"",backBtnTitle:"接收方信息",showUserCenter:!1,showBackBtn:!0}},[i("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(e){e.stopPropagation(),t.receiverModalVisible=!1}},slot:"right"},[t._v("关闭")])]),i("div",{staticClass:"summary-wrap"},[i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("企业名称:")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.receiverInfo.compAllName))])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("项目名称:")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.receiverInfo.projName))])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("关联模板名称:")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.receiverInfo.tempName))])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("对接模板节点:")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.receiverInfo.folderName))])])])],1)])],1)},T=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"table-header"},[i("div",{staticClass:"table-th"},[t._v("选择成果")]),i("div",{staticClass:"table-th"},[t._v("版本号")]),i("div",{staticClass:"table-th"},[t._v("创建人")]),i("div",{staticClass:"table-th"},[t._v("提交时间")])])}],P=(i("99af"),i("a623"),i("4160"),i("a15b"),i("fb6a"),i("07ac"),i("159b"),i("ade3")),I=i("0e97"),O=i("b428"),_=i("5a0c"),A=i.n(_),E=i("b332"),D=i("3906"),F=i("b775"),M=i("b1f3"),L={components:{ItemList:I["default"],ListFileItem:D["a"],TopHeader:M["a"]},props:{currentNodeFolder:Object,projectId:String},filters:{formatTime:function(t){return A()(t).format("YYYY年MM月DD日 A HH:mm")}},data:function(){var t=this.$store.state.accountName;return{accountName:t,userId:sessionStorage.userId,collapseActiveKeys:["1","2"],readOnly:!1,commitHisList:[],tabKey:"all",currentArchivePlainList:[],currentArchiveTreeList:[],rightPanelItemList:[],selectedKeyMap:{},authModalVisible:!1,authInpVal:"",receiverModalVisible:!1,receiverInfo:{}}},computed:{selectedKeyCount:function(){return Object.values(this.selectedKeyMap).filter((function(t){return t})).length}},mounted:function(){this.fetchFolderFiles(),this.fetchArchiveHistory(),this.fetchReceiverInfo()},watch:{authModalVisible:function(t){t||(this.authInpVal="")},receiverModalVisible:function(t){t&&this.fetchReceiverInfo()}},methods:{cancelArchive:function(){this.$emit("cancel")},isChildrenAllChecked:function(t){return N(t.children,this.selectedKeyMap)},toggleCheck:function(t){var e=this.selectedKeyMap;if("file"===t.nodeType)this.selectedKeyMap=Object(s["a"])(Object(s["a"])({},e),{},Object(P["a"])({},t.id,!e[t.id]));else{var i=[],n=!0;j(t.children,(function(t){i.push(t.id),n=n&&e[t.id]}));var r=i.reduce((function(t,e){return t[e]=!n,t}),{});this.selectedKeyMap=Object(s["a"])(Object(s["a"])({},e),r)}},filterArchive:function(t){this.tabKey=t?t.id:"all",this.readOnly=!1,this.rightPanelItemList=t?this.currentArchiveTreeList.filter((function(e){return e.id===t.id})):this.currentArchiveTreeList},fetchFolderFiles:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.currentNodeFolder,n=t.userId,i&&i.id){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,O["d"](i.id,n);case 6:if(r=e.sent,r){e.next=9;break}return e.abrupt("return");case 9:if(t.currentNodeFolder.id===i.id){e.next=11;break}return e.abrupt("return");case 11:t.currentArchiveTreeList=B(r.deliverables),t.fileTotalCount=r.deliverables.length,t.currentArchivePlainList=r.deliverables,t.rightPanelItemList=t.currentArchiveTreeList;case 15:case"end":return e.stop()}}),e)})))()},fetchArchiveHistory:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("file/queryProjDeliverablesSubmitByDeliverablesFolderId",{deliverablesFolderId:t.currentNodeFolder.id});case 2:i=e.sent,t.commitHisList=(i.Data||[]).map(d["b"]);case 4:case"end":return e.stop()}}),e)})))()},checkCommitHistory:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e.tabKey=t.id,i.next=3,e.$fetchApi("file/queryProjDeliverablesSubmitDetailByDeliverablesSubmitId",{deliverablesSubmitId:t.id});case 3:n=i.sent,e.rightPanelItemList=B((n.Data||[]).map(d["b"])),e.readOnly=!0;case 6:case"end":return i.stop()}}),i)})))()},doCommit:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("authentication/passwordCheck",{password:t.authInpVal,userName:t.accountName});case 2:if(i=e.sent,Object(F["c"])(i),!i.Code){e.next=6;break}return e.abrupt("return");case 6:return n=t.selectedKeyMap,r=t.currentArchivePlainList.filter((function(t){return n[t.id]})),e.next=10,t.$fetchApi("file/submitDeliverables",{DeliverablesFolderId:t.currentNodeFolder.id,ProjId:t.projectId,DeliverablesFile:r.map(d["c"])});case 10:if(s=e.sent,Object(F["c"])(s),console.log(s),!s.Code){e.next=15;break}return e.abrupt("return");case 15:d["d"].success("交付成功"),t.authModalVisible=!1,t.selectedKeyMap={},t.fetchArchiveHistory();case 19:case"end":return e.stop()}}),e)})))()},fetchReceiverInfo:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("folder/queryProjAcceptInfoByDeliverablesFolderId",{deliverablesFolderId:t.currentNodeFolder.id,projId:t.projectId});case 2:i=e.sent,Object(F["c"])(i),t.receiverInfo=Object(d["b"])(i.Data||{}),t.$emit("on-query-receiver-info",t.receiverInfo);case 6:case"end":return e.stop()}}),e)})))()}}};function j(t,e){t.forEach((function(t){"file"!==t.nodeType?j(t.children,e):e(t)}))}function B(t){var e={},i=[];return t.forEach((function(t){if(t.nodeType="file",t.nodeFolderName=t.nodeName,t.nodeFolderName){var n="".concat(t.nodeFolderName).concat(t.relativePath?"/".concat(t.relativePath):"");$(e,n);var r=e[n];r.children.push(t)}else i.push(t)})),Object.values(e).forEach((function(t){t.parentFolderPath||i.push(t),t.children=t.children.filter((function(t){return"file"===t.nodeType})).concat(t.children.filter((function(t){return"file"!==t.nodeType})))})),i}function $(t,e){var i=e.split("/");i.forEach((function(e,n){var r=i.slice(0,n+1).join("/");if(!t[r]){var s=new E["d"](r);s.children=[],s.nodeType="folder";var a=s.parentFolderPath;t[r]=s,t[a]&&t[a].children.push(s)}}))}function N(t,e){return t.every((function(t){return"file"===t.nodeType?e[t.id]:N(t.children,e)}))}var R=L,H=(i("e895"),Object(v["a"])(R,V,T,!1,null,"0b252784",null)),z=H.exports,G=i("93d6"),W=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"work-flow"},[i("div",{staticClass:"flow-container"},[i("div",{staticClass:"flow-container-inner"},t._l(t.folderList,(function(e,n){return i("div",{key:e.id,staticClass:"yuandian"},[i("div",{staticClass:"upList"},[i("div",{staticClass:"enterPoint"},t._l(e.listsShareFrom[1],(function(e,n){return i("div",{key:n,staticClass:"linkBtn2 leftlinebox",attrs:{type:"button"}},[i("i",{staticClass:"leftline"}),i("span",{staticClass:"worllistt2",attrs:{title:e}},[t._v(t._s(e.nodeName))])])})),0),e.listsShareFrom[1].length>0?i("div",{staticClass:"enterLine"},[i("i",{staticClass:"el-icon-caret-bottom bottomenter"})]):t._e()]),i("div",{staticClass:"conterpoint"},[i("button",{class:{currworkbutton:e==t.currentNodeFolder,workbutton:e!==t.currentNodeFolder},attrs:{type:"button",title:e.folderName},on:{click:function(i){return t.selectFolder(e)}}},[t._v(" "+t._s(e.folderName)+" ")]),n0?i("div",{staticClass:"bottomlist"},[i("div",{staticClass:"leftlin2"}),i("div",{staticClass:"outPoint"},[t._l(e.listsShareFrom[0],(function(e,n){return i("div",{key:n,staticClass:"linkBtn2 leftlinebox",attrs:{type:"button"}},[i("i",{staticClass:"leftline"}),i("span",{staticClass:"worllistt2",attrs:{title:e}},[t._v(t._s(e.nodeName))])])})),t._m(0,!0)],2)]):t._e()])})),0)])])},Y=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"outLine"},[i("i",{staticClass:"el-icon-caret-bottom bottomenter"})])}],U=i("b0f9"),q={props:{projectId:String,currentNodeFolder:Object,folderList:Array},mounted:function(){this.fetchFileExchange()},watch:{folderList:function(){this.fetchFileExchange()}},methods:{selectFolder:function(t){this.$emit("select",t)},fetchFileExchange:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s,o,l,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.folderList&&t.folderList.length){e.next=2;break}return e.abrupt("return");case 2:return n=null===(i=t.folderList[0])||void 0===i?void 0:i.templateId,e.next=5,Promise.all([Object(U["k"])(t.projectId),t.$fetchApi("folder/queryAllNodeFolderListByProjectId",{projectId:t.projectId})]);case 5:r=e.sent,s=Object(a["a"])(r,2),o=s[0],l=s[1],c=(l.Data.folder||[]).reduce((function(t,e){return e.NodeId===n||"公共文件夹"===e.FolderName||(t[e.NodeId]={},t[e.NodeId].nodeName=e.FolderName,t[e.NodeId].id=e.Id),t}),{}),t.nestNodeFileExchangeOperate(n,c),(o.Data||[]).forEach((function(e){var i=e.NestTemplateId;t.nestNodeFileExchangeOperate(i,c)}));case 12:case"end":return e.stop()}}),e)})))()},nestNodeFileExchangeOperate:function(t,e){var i=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(U["j"])(t,t);case 2:if(r=n.sent,0===r.Code){n.next=5;break}return n.abrupt("return");case 5:if(s=r.Data,s){n.next=8;break}return n.abrupt("return");case 8:i.folderList.forEach((function(t){s.forEach((function(i){if(t.nodeId==i.PermCode&&1==i.Permission&&t.nodeId!==i.SysCode){var n=t.listsShareFrom[1].find((function(t){return t.nodeId==i.SysCode}));!n&&e[i.SysCode]&&t.listsShareFrom[1].push(e[i.SysCode])}else if(t.nodeId==i.SysCode&&1==i.Permission&&t.nodeId!==i.PermCode){var r=t.listsShareFrom[0].find((function(t){return t.nodeId==i.PermCode}));!r&&e[i.PermCode]&&t.listsShareFrom[0].push(e[i.PermCode])}}))}));case 9:case"end":return n.stop()}}),n)})))()},getNestItem:function(t,e,i){var n=this;t.forEach((function(t){t.children&&t.children.length>0&&(i=t.id,n.getNestItem(t.children,e,i))}))}}},K=q,X=(i("e659"),Object(v["a"])(K,W,Y,!1,null,"9540a8e6",null)),Z=X.exports,J={components:{AppHeader:l["a"],HeaderFlowTabs:y,SearchBar:c["a"],WorkFlow:Z,FileExplorer:w,ArchiveView:z},data:function(){return{userId:sessionStorage.userId,projectId:sessionStorage.projId,projectName:sessionStorage.projName,nodeFolders:[],currentNodeFolder:null,workFlowVisible:!1,viewType:"file-explorer",searchKeywords:"",selectMode:!1,receiverInfo:{}}},watch:{currentNodeFolder:function(t){console.log(t)}},computed:{appHeaderTitle:function(){return this.workFlowVisible?"回到协作空间":"archive-view"===this.viewType?"返回":"退出"},appHeaderBackBtnClick:function(){return this.workFlowVisible?this.closeWorkFlow:"archive-view"===this.viewType?this.backToFileExplorer:void 0}},mounted:function(){this.getAllNodePeopleInfo(),this.fetchNodeFolders()},methods:{onSelectModeChange:function(t){this.selectMode=t},onQueryReceiverInfo:function(t){this.receiverInfo=t},closeWorkFlow:function(){this.workFlowVisible=!1},backToFileExplorer:function(){this.viewType="file-explorer"},offSearch:function(){this.searchKeywords=""},fetchNodeFolders:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,O["e"](t.projectId,t.userId);case 2:if(i=e.sent,n=i.filter((function(t){return t.nodeId!==t.templateId})),t.nodeFolders=n,t.folderMap=n.reduce((function(t,e){return t[e.id]=e,t}),{}),n.length){e.next=8;break}return e.abrupt("return");case 8:r=t.$route.params.folderId,r?t.currentNodeFolder=n.find((function(t){return t.id===r}))||n[0]:sessionStorage.nowFolderIndex?t.currentNodeFolder=n[sessionStorage.nowFolderIndex]||n[0]:t.currentNodeFolder=n[0];case 10:case"end":return e.stop()}}),e)})))()},getAllNodePeopleInfo:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r,o,l,c,u,h,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(G["g"])({id:t.$store.state.currentCompanyId,nodeType:"company"},1,1e4),t.$fetchApi("folder/queryAllNodeFolderListByProjectId",{projectId:t.projectId})]);case 2:i=e.sent,n=Object(a["a"])(i,2),r=n[0].list,o=n[1],l=r.reduce((function(t,e){return t[e.id]=e,t}),{}),c={},u=o.Data||{},h=u.folder,u.manager,p=h.reduce((function(t,e){if("公共文件夹"===e.FolderName)return t;if(e.NodeId===e.TemplateId)return t;var i=Object(d["b"])(e);i.listChildren=[],i.listUser=i.oldGeneralId.split(",").filter((function(t){return t})).map((function(t){return Object(s["a"])({},l[t])})),i.manageUser=("0"===i.oldManager?"":i.oldManager).split(",").filter((function(t){return t})).map((function(t){return Object(s["a"])({},l[t])})),c[i.id]=i;var n=c[i.superId];return n?(n.listChildren.push(i),t.push(i),t):t}),[]),t.allNodefolderList=p;case 11:case"end":return e.stop()}}),e)})))()},nowFolderClick:function(t){this.workFlowVisible=!1,this.goFolder(t)},goFolder:function(t){var e=this.nodeFolders.indexOf(t);sessionStorage.nowFolderIndex=e,this.currentNodeFolder=t,this.viewType="file-explorer"}}},Q=J,tt=(i("8b98"),i("9362"),i("46aa"),i("565a"),i("8c05"),i("2128"),Object(v["a"])(Q,n,r,!1,null,"0b28e6e9",null));e["default"]=tt.exports},"3b6d":function(t,e,i){t.exports=i("9db1")},"3c68":function(t,e,i){"use strict";var n=i("cdec"),r=i("9133"),s=i("0beb"),a=i("2b9b"),o=i("175e"),l=i("7d48"),c=i("e7e6");t.exports=function(t){return new Promise((function(e,u){var h=t.data,d=t.headers;n.isFormData(h)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+btoa(f+":"+m)}var v=a(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),s(v,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?o(p.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?p.response:p.responseText,s={data:n,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,u,s),p=null}},p.onabort=function(){p&&(u(c("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){u(c("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),u(c(e,t,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var g=i("b391"),y=(t.withCredentials||l(v))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(d[t.xsrfHeaderName]=y)}if("setRequestHeader"in p&&n.forEach(d,(function(t,e){"undefined"===typeof h&&"content-type"===e.toLowerCase()?delete d[e]:p.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),u(t),p=null)})),void 0===h&&(h=null),p.send(h)}))}},"3c93":function(t,e,i){"use strict";var n=i("73d8"),r=i.n(n);r.a},"45fc":function(t,e,i){"use strict";var n=i("23e7"),r=i("b727").some,s=i("a640"),a=i("ae40"),o=s("some"),l=a("some");n({target:"Array",proto:!0,forced:!o||!l},{some:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"46aa":function(t,e,i){"use strict";var n=i("f204"),r=i.n(n);r.a},"51c2":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"change-btn"},t._l(t.titleList,(function(e,n){return i("div",{key:n,staticClass:"btn",class:{"active-btn":t.currentIndex===n},on:{click:function(e){return t.changeContentBtnClick(n)}}},[t._v(" "+t._s(e)+" ")])})),0)},r=[],s={props:{titleList:{type:Array,defualt:function(){return[]}}},data:function(){return{currentIndex:0}},methods:{changeContentBtnClick:function(t){this.currentIndex=t,this.$emit("changeContentBtnClick",t)}}},a=s,o=(i("6fdc"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"d5ff7aba",null);e["a"]=l.exports},"51c6":function(t,e,i){"use strict";var n=i("8957"),r=i.n(n);r.a},5644:function(t,e,i){"use strict";var n=i("b5ee"),r=i.n(n);r.a},"565a":function(t,e,i){"use strict";var n=i("6a98"),r=i.n(n);r.a},5954:function(t,e,i){},"5be0":function(t,e,i){},"5ce4":function(t,e,i){"use strict";var n=i("cdec");t.exports=function(t,e){e=e||{};var i={},r=["url","method","params","data"],s=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(r,(function(t){"undefined"!==typeof e[t]&&(i[t]=e[t])})),n.forEach(s,(function(r){n.isObject(e[r])?i[r]=n.deepMerge(t[r],e[r]):"undefined"!==typeof e[r]?i[r]=e[r]:n.isObject(t[r])?i[r]=n.deepMerge(t[r]):"undefined"!==typeof t[r]&&(i[r]=t[r])})),n.forEach(a,(function(n){"undefined"!==typeof e[n]?i[n]=e[n]:"undefined"!==typeof t[n]&&(i[n]=t[n])}));var o=r.concat(s).concat(a),l=Object.keys(e).filter((function(t){return-1===o.indexOf(t)}));return n.forEach(l,(function(n){"undefined"!==typeof e[n]?i[n]=e[n]:"undefined"!==typeof t[n]&&(i[n]=t[n])})),i}},"5e9c":function(t,e,i){"use strict";var n=i("cdec");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},"62d3":function(t,e,i){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},"640a":function(t,e,i){},"640e":function(t,e,i){},"648a":function(t,e,i){"use strict";var n=i("0cf1"),r=i.n(n);r.a},"6a98":function(t,e,i){},"6b49":function(t,e,i){},"6c26":function(t,e,i){},"6c6a":function(t,e,i){},"6dcf":function(t,e,i){"use strict";var n=i("5be0"),r=i.n(n);r.a},"6fdc":function(t,e,i){"use strict";var n=i("640a"),r=i.n(n);r.a},7162:function(t,e,i){"use strict";var n=function(){var t,e=this,i=e.$createElement,n=e._self._c||i;return n("div",{on:{dblclick:e.dblclickFile}},[n("el-tooltip",{attrs:{content:e.file.modifyName+" 正在编辑中",disabled:!(e.isInWorkFolder&&e.otherUserIsWorking),placement:"right",effect:"light"}},[n("div",{ref:"file",staticClass:"yiyun_wenjian_list loding-mask-parent",class:{yiyun_wenjian_list_add:!e.isLocalIpfsCidValidate&&e.isClient},on:{contextmenu:function(t){return t.preventDefault(),t.stopPropagation(),e.fileRightBtnClick(t)}}},[e.isClient?n("div",{staticClass:"set-loding-mask-position"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isClient&&!e.isLocalIpfsCidValidate,expression:"isClient && !isLocalIpfsCidValidate"}],staticClass:"downloadIcon"})]):e._e(),n("div",{staticClass:"use-relative"},[n("div",[e.oneOf(e.file.extension,e.imgExtensionList)||e.oneOf(e.file.extension,e.VideoExtensionList)?e.oneOf(e.file.extension,e.imgExtensionList)?n("div",{ref:"file-img",staticClass:"defultImage-mid img_bg-mid",class:{toumin:e.showFileIconMask}},[n("div",{staticClass:"file_Im gbox-mid"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.file.alias,expression:"file.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):n("div",{ref:"file-img",staticClass:"defultImage-mid video-mid",class:{toumin:e.showFileIconMask}}):n("div",{ref:"file-img",staticClass:"defultImage-mid",class:(t={},t[e.file.extension+"-mid"]=!0,t.toumin=e.showFileIconMask,t)})]),e.isClient?[e.isInWorkFolder&&e.otherUserIsWorking?n("div",{staticClass:"eidtTip"},[e._v(" 工作中 ")]):e._e(),e.showDownloadMask&&!e.enableSelect?n("div",{staticClass:"downloadIcon",on:{click:function(t){return e.clientDownLoad(e.file,1)}}},[n("div",{staticClass:"readytodownload-icon"},[n("img",{staticClass:"imgjuzhong",attrs:{src:"/static/img/download.svg",alt:""}})])]):e._e(),e.loadingState.type!==e.DOWNLOADING||e.enableSelect?e._e():n("div",{staticClass:"downloadIcon"},[n("div",{staticClass:"progress-circle"},[n("LottieSvg",{staticClass:"bg-pic",attrs:{width:40,height:40,path:"static/img/lottie.download.svg.json"}}),n("el-progress",{attrs:{width:45,height:45,type:"circle","show-text":!1,percentage:e.loadingState.loadProgress,"stroke-width":3,color:"rgb(140, 0, 255)"}})],1)]),e.loadingState.type!==e.UPLOADING||e.enableSelect?e._e():n("div",{staticClass:"downloadIcon"},[n("div",{staticClass:"progress-circle"},[n("img",{staticClass:"bg-pic",style:{width:"24px"},attrs:{src:"/static/img/upload.png",alt:""}}),n("el-progress",{attrs:{width:45,height:45,type:"circle","show-text":!1,percentage:e.loadingState.loadProgress,"stroke-width":3,color:"rgb(140, 0, 255)"}})],1)]),e.fileInLocal&&e.isInWorkFolder&&!e.fileIsLoading?[e.isFileModified||e.isWorking&&!e.otherUserIsWorking?n("div",{staticClass:"file-left-top-icon commit",attrs:{title:"提交当前文件内容"},on:{click:function(t){return t.stopPropagation(),e.commitFile(t)}}},[e._v("同步")]):e.fileEnableShare&&!e.enableSelect?n("div",{staticClass:"yijianxietong isonselect",attrs:{title:"文件已协同"}},[n("i",{staticClass:"icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon"})]):e._e()]:e._e(),e.isFileModified||e.otherUserIsWorking||!e.enableSelect?e._e():n("div",{staticClass:"yijianxietong select-icon",class:{selected:e.selected},on:{click:function(t){return t.stopPropagation(),e.onSelect(t)}}},[e.selected?n("i",{staticClass:"el-icon-check"}):e._e()])]:e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isFileRightMenuVisible,expression:"isFileRightMenuVisible"}],staticClass:"contextmenu",style:{top:e.fileRightMenuTop+"px",left:e.fileRightMenuLeft+"px"}},[n("ul",{ref:"right-menu",staticClass:"rightMenu"},[e.fileInLocal&&e.isClient&&e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.openfileBtnClick(t)}}},[e._v("打开")]):e._e(),e.fileInLocal&&e.isClient&&!e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.openfileBtnClick(t)}}},[e._v("打开")]):e._e(),!e.fileInLocal&&e.isClient?n("li",{staticClass:"function-disabled",attrs:{title:"请先下载文件再打开"}},[e._v("打开")]):e._e(),e.fileInLocal&&e.isClient&&e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.openFileWith(t)}}},[e._v("打开方式")]):e._e(),e.fileInLocal&&e.isClient&&!e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.openFileWith(t)}}},[e._v("打开方式")]):!e.fileInLocal&&e.isClient?n("li",{staticClass:"function-disabled"},[e._v("打开方式")]):e._e(),e.isClient&&e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.copyFileBtnClick(t)}}},[e._v("创建文件副本")]):e._e(),e.isClient&&e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.deleteFileClick(t)}}},[e._v("移动到回收站")]):e._e(),!e.isClient&&e.oneOf(e.file.extension,e.filePreviewList)?n("li",{on:{click:function(t){return t.stopPropagation(),e.filePreview(t)}}},[e._v("在线预览")]):e.isClient||e.oneOf(e.file.extension,e.filePreviewList)?e._e():n("li",{staticClass:"function-disabled",attrs:{title:"暂时不支持此类文件的预览"}},[e._v("在线预览")]),e.isClient&&e.isInWorkFolder&&e.fileInLocal?n("li",{on:{click:function(t){return t.stopPropagation(),e.checkMilestoneClick(t)}}},[e._v("查看历史版本")]):e._e()])]),n("strong",{ref:"file-name",staticClass:"yiyunwenjian_name",attrs:{title:e.file.archName+"."+e.file.extension}},[e._v(e._s(e.file.archName)),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.oneOf(e.file.extension,e.RecExtensionList)&&!e.oneOf(e.file.extension,e.VideoExtensionList),expression:"!oneOf(file.extension, RecExtensionList) && !oneOf(file.extension, VideoExtensionList)"}],staticClass:"file-extension-tip"},[e._v(e._s(e.file.extension))])]),e.isInWorkFolder&&e.file.createUserId!=e.currentUserId?n("span",{staticClass:"yiyunwenjian_infodesc"},[e._v(e._s(e.file.createUserName)+" 创建")]):e._e(),1!=e.file.version?n("span",{staticClass:"visontext",on:{click:e.checkMilestoneClick}},[e._v(" 版本 "+e._s(e.file.version)+" ")]):e._e(),e.isInWorkFolder?e._e():n("span",{staticClass:"yiyunwenjian_infodesc"},[e._v(e._s(e.file.nodeName))]),e.loadingState.type===e.UPLOADING?n("span",{staticClass:"yiyunwenjian_infodesc"},[e._v(e._s((e.loadingState.loadSize||"--")+" "+(e.loadingState.loadUnit||"")+" / "+(e.loadingState.totalSize||"--")+" "+(e.loadingState.unit||"")))]):e._e()],2)])])],1)},r=[],s=(i("c975"),i("ac1f"),i("1276"),i("3835")),a=i("1d40"),o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("LottieAnimation",t._b({staticClass:"lottie-svg"},"LottieAnimation",t.$attrs,!1))},l=[],c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.style?i("div",{ref:"lavContainer",style:t.style}):t._e()},u=[],h=(i("a9e3"),i("96cf"),i("1da1")),d=i("94f1"),p=i.n(d),f=i("3b6d"),m=i.n(f),v={props:{path:{required:!0},speed:{type:Number,required:!1,default:1},width:{type:Number,required:!1,default:-1},height:{type:Number,required:!1,default:-1},loop:{type:Boolean,required:!1,default:!0},autoPlay:{type:Boolean,required:!1,default:!0},loopDelayMin:{type:Number,required:!1,default:0},loopDelayMax:{type:Number,required:!1,default:0}},data:function(){return{name:"lottie-animation",rendererSettings:{scaleMode:"centerCrop",clearCanvas:!0,progressiveLoad:!1,hideOnTransparent:!0},anim:null,style:null}},mounted:function(){this.init()},methods:{loadJsonData:function(t){return Object(h["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.a.get("/"+t).then((function(t){return t.data}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},init:function(){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.style={width:-1!=t.width?"".concat(t.width,"px"):"100%",height:-1!=t.height?"".concat(t.height,"px"):"100%",overflow:"hidden",margin:"0 auto"},e.next=3,t.loadJsonData(t.path);case 3:i=e.sent,t.anim&&t.anim.destroy(),t.anim=p.a.loadAnimation({container:t.$refs.lavContainer,renderer:"svg",loop:t.loop,autoplay:t.autoPlay,animationData:i,rendererSettings:t.rendererSettings}),t.$emit("AnimControl",t.anim),t.anim.setSpeed(t.speed),t.loopDelayMin>0&&(t.anim.loop=!1,t.anim.autoplay=!1,t.executeLoop());case 9:case"end":return e.stop()}}),e)})))()},getRandomInt:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t},executeLoop:function(){var t=this;this.anim.play(),setTimeout((function(){t.anim.stop(),t.executeLoop()}),this.getRandomInt(this.loopDelayMin,0==this.loopDelayMax?this.loopDelayMin:this.loopDelayMax))}},watch:{path:function(t,e){this.init()}}},g=v,y=i("2877"),b=Object(y["a"])(g,c,u,!1,null,null,null),x=b.exports,S={components:{LottieAnimation:x}},C=S,k=(i("d326"),Object(y["a"])(C,o,l,!1,null,"1f22bc7a",null)),w=k.exports,V=i("b332"),T=["jpg","png","bmp","gif","jpeg"],P=["jpg","png","bmp","gif","jpeg","txt","zip","ae","ai","idml","indd","mp3","pr","ps","sketch","xmind","skp","rvt","rar","nwc","max","dxf","dwg","svfzip","map","supermap","pdf","ppt","pptx","excel","xlsx","xls","doc","docx","word","folder","folder1","folder2"],I=["avi","mov","wav","mp4"],O=["doc","docx","ppt","pptx","xls","xlsx"],_=["jpg","png","bmp","gif","jpeg","doc","docx","ppt","pptx","xls","xlsx","avi","mov","wav","mp4","txt","pdf","dwg"],A=function(t,e){return-1!==e.indexOf(t)},E=V["b"].DOWNLOADING,D=V["b"].UPLOADING,F=V["a"].WORKING,M=V["a"].NOT_WORKING,L={components:{LottieSvg:w},props:{file:{type:Object,default:function(){return{}}},enableSelect:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},clientDownLoad:Function,nodeFolder:{type:Object,default:function(){return{}}},currentFolder:{type:Object,default:function(){return{}}},localFileHashMap:{type:Object,default:function(){return{}}},loadingState:{type:Object,default:function(){return{}}},tempRightFileId:{type:String,default:""}},mounted:function(){this.rightMenuEl=this.$refs["right-menu"],this.fileItemeEL=this.$refs["file"],this.workspaceEl=document.querySelector("#workspace"),this.fileImgEl=this.$refs["file-img"],this.fileImgClass=this.fileImgEl.className},data:function(){return{isClient:a["a"].isClient,currentUserId:sessionStorage.userId,WORKING:F,NOT_WORKING:M,DOWNLOADING:E,UPLOADING:D,imgExtensionList:T,RecExtensionList:P,VideoExtensionList:I,office:O,filePreviewList:_,isFileRightMenuVisible:!1,fileRightMenuLeft:0,fileRightMenuTop:0,rightMenuEl:null,fileItemEl:null,workspaceEl:null,fileImgEl:null,fileImgClass:""}},computed:{fileStoreKey:function(){return Object(V["f"])(this.file,this.nodeFolder)},isInWorkFolder:function(){var t=this.file;this.currentFolder;return t.folderId===this.nodeFolder.id},isLocalIpfsCidValidate:function(){return!!this.localFileHashMap},localIpfsCid:function(){return this.localFileHashMap&&this.localFileHashMap[this.fileStoreKey]},isWorking:function(){return this.file.workStatus===F},showFileIconMask:function(){return!this.enableSelect&&(!!this.fileIsLoading||(!(!this.isInWorkFolder||!this.otherUserIsWorking)||!!this.showDownloadMask))},showDownloadMask:function(){return!this.fileIsLoading&&(this.isInWorkFolder?!this.otherUserIsWorking&&(!this.fileInLocal||(!!this.isFileNeedsUpdate||(this.isFileModified,!1))):!this.fileInLocal||!!this.isFileNeedsUpdate)},isFileRemoteUpdate:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0];n[1];return e&&r!==t},isFileNeedsUpdate:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0],a=n[1];return e&&r!==t&&"0"==a},isFileModified:function(){this.file.ipfsCid;var t=this.localIpfsCid,e=(t||"").split(";"),i=Object(s["a"])(e,2),n=(i[0],i[1]);return t&&"1"==n},fileEnableShare:function(){return this.file.ipfsCid===this.file.syncIpfsCid},fileIsDifferent:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0],a=n[1];return e&&"1"==a||e&&r!==t},fileIsLoading:function(){return this.loadingState.type===D||this.loadingState.type===E},fileInLocal:function(){return!!this.localIpfsCid},otherUserIsWorking:function(){var t=this.file,e=t.modifyUserId,i=t.workStatus;return i===F&&e!==this.currentUserId}},methods:{onSelect:function(){this.$emit("select",this.file)},commitFile:function(){this.isFileRightMenuVisible=!1,this.$emit("commitFile",this.file,this.fileImgClass)},toggleFileShareStatus:function(){this.$emit("change-file-status",this.file)},oneOf:A,openFileWith:function(){this.isFileRightMenuVisible=!1,this.$emit("openFileWith")},dblclickFile:function(){this.isClient&&this.isLocalIpfsCidValidate?this.$emit("dblclickFile"):this.isClient||this.filePreview()},fileRightBtnClick:function(t){var e=this;!this.isLocalIpfsCidValidate&&this.isClient||(this.isFileRightMenuVisible=!0,this.$nextTick((function(){e.rightMenuEl=e.$refs["right-menu"],e.fileItemEl=e.$refs["file"];var i=e.fileItemEl.getBoundingClientRect(),n=e.workspaceEl.clientHeight,r=e.workspaceEl.clientWidth,s=e.rightMenuEl.clientHeight,a=e.rightMenuEl.clientWidth,o=document.body.clientHeight,l=document.body.clientWidth-128;e.fileRightMenuLeft=t.clientX-i.left,e.fileRightMenuTop=t.clientY-i.top;var c=e.isInWorkFolder&&t.clientX+a>r,u=e.isInWorkFolder&&t.clientY+s>n,h=t.clientX+a>l,d=t.clientY+s>o;(c||h)&&(e.fileRightMenuLeft=e.fileRightMenuLeft-a),(u||d)&&(e.fileRightMenuTop=e.fileRightMenuTop-s),e.$emit("oneFileRightBtnClick",e.file.id)})))},closeFileRightMenu:function(){this.isFileRightMenuVisible=!1},openfileBtnClick:function(){this.isFileRightMenuVisible=!1,this.$emit("openfileBtnClick",this.file)},copyFileBtnClick:function(){this.isFileRightMenuVisible=!1,this.$emit("copyFileBtnClick",this.file)},deleteFileClick:function(){this.isFileRightMenuVisible=!1,this.$emit("deleteFileClick",this.file.id,this.file.createUserId,this.file.archName,this.file.ipfsCid)},checkMilestoneClick:function(){this.isFileRightMenuVisible=!1,this.$emit("checkMilestoneClick",this.file)},filePreview:function(){var t;t=A(this.file.extension,I)?1:A(this.file.extension,_)?2:0,this.$emit("filePreview",this.file,t),this.isFileRightMenuVisible=!1}},watch:{isFileRightMenuVisible:function(t){t?document.body.addEventListener("click",this.closeFileRightMenu):document.body.removeEventListener("click",this.closeFileRightMenu)},tempRightFileId:function(t){this.isFileRightMenuVisible=t===this.file.id}}},j=L,B=(i("0e15a"),i("51c6"),Object(y["a"])(j,n,r,!1,null,"1b637ced",null));e["a"]=B.exports},"73d8":function(t,e,i){},7440:function(t,e,i){"use strict";var n=i("afd2"),r=i.n(n);r.a},"745f":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShowCommitJudgeWindow?i("div",[i("div",{staticClass:"blur-bg"}),i("div",{staticClass:"commit-judge-box"},[i("div",{staticClass:"commit-wrap"},[i("div",{staticClass:"title-bar"},[t._m(0),i("div",{staticClass:"close-icon"},[i("close-btn",{attrs:{isCloseHover:t.isCommitCloseHover},on:{mouseEnterNow:function(e){t.isCommitCloseHover=!0},mouseLeaveNow:function(e){t.isCommitCloseHover=!1}},nativeOn:{click:function(e){return e.stopPropagation(),t.closeCommitJudge(e)}}})],1)]),i("div",{staticClass:"commit-operate-box"},[i("div",{staticClass:"file-info"},[i("div",{staticClass:"file-img",class:t.fileImgClass}),i("div",{staticClass:"file-name",attrs:{title:t.file.archName}},[t._v(t._s(t.file.archName))])]),i("div",{staticClass:"commit-part"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.remarkContent,expression:"remarkContent"}],staticClass:"remark-content",attrs:{name:"",id:"",placeholder:"创建备注"},domProps:{value:t.remarkContent},on:{input:function(e){e.target.composing||(t.remarkContent=e.target.value)}}}),i("div",{staticClass:"operate-btn"},[i("div",{staticClass:"cancel-btn",on:{click:function(e){return e.stopPropagation(),t.closeCommitJudge(e)}}},[t._v("取消")]),i("div",{staticClass:"commit-btn",on:{click:function(e){return e.stopPropagation(),t.finishCommitFile(e)}}},[t._v("完成提交")])])])])]),t._e(),t.isShowCoopWindow?i("div",{staticClass:"coop-wrap",class:{"mt-16":t.isShowCoopWindow}},[i("div",{staticClass:"title-bar"},[i("div",[t._v("文件协同至")]),i("div",{staticClass:"close-icon"},[i("close-btn",{attrs:{isCloseHover:t.isCoopCloseHover},on:{mouseEnterNow:function(e){t.isCoopCloseHover=!0},mouseLeaveNow:function(e){t.isCoopCloseHover=!1}},nativeOn:{click:function(e){return e.stopPropagation(),t.closeCoopWindow(e)}}})],1)]),i("div",{staticClass:"coop-people-list"},t._l(t.coopFolderList,(function(e){return i("div",{key:e.id,staticClass:"folder-item"},[i("div",{staticClass:"work-name"},[t._v(t._s(e.folderName))]),i("div",{staticClass:"use-flex ml-4"},[t._l(e.manageUser,(function(t){return i("people-item",{key:t.id,staticClass:"mr-8",attrs:{user:t}})})),0==e.manageUser.length?i("people-item",{attrs:{isShowEmptyAvatar:!0}}):t._e(),i("div",{staticClass:"vertical-line"}),i("div",{staticClass:"flex-1"},t._l(e.listUser,(function(t){return i("people-item",{key:t.id,attrs:{user:t}})})),1)],2)])})),0)]):t._e()])]):t._e()},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"left-title"},[i("div",{staticClass:"status-icon"}),i("div",{staticClass:"title-text"},[t._v("提交文件")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("img",{staticClass:"look-icon",attrs:{src:"/static/img/下拉箭头白色.svg"}})])}],s=i("f8c2"),a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"people-item",attrs:{title:t.user.cnName}},[i("div",{staticClass:"people-wrap",class:{"rt-0":t.isShowManagerMark}},[i("div",{staticClass:"people"},[Object.keys(t.user).length>0?i("img",{staticClass:"proj-avatarface",class:{"manager-mark":t.isShowManagerMark},attrs:{src:t._f("resolveAvator")(t.user.headImgUrl),alt:""}}):t.isShowEmptyAvatar?i("img",{staticClass:"proj-avatarface empty",attrs:{src:"/static/img/暂无2.svg",alt:""}}):i("div",{staticClass:"add-btn"},[i("i",{staticClass:"el-icon-plus proj-avatarface"})])]),i("div",{staticClass:"people-name",class:{"rt-2":t.isEnterEdit&&t.isShowManagerMark,"rt-4":t.isEnterEdit&&!t.isShowManagerMark}},[t._v(t._s(t.user.cnName))])])])},o=[],l={data:function(){return{}},computed:{},props:{user:{type:Object,default:function(){return{}}},isShowManagerMark:{type:Boolean,default:!1},isEnterEdit:{type:Boolean,default:!1},isShowEmptyAvatar:{type:Boolean,defualt:!1}},methods:{}},c=l,u=(i("648a"),i("2877")),h=Object(u["a"])(c,a,o,!1,null,"6e81672d",null),d=h.exports,p={data:function(){return{isCommitCloseHover:!1,isCoopCloseHover:!1,isShowCoopWindow:!1,isMileStone:!1,remarkContent:"",switchWidth:52}},components:{CloseBtn:s["a"],PeopleItem:d},mounted:function(){},props:{file:{type:Object,default:function(){return{}}},isShowCommitJudgeWindow:{type:Boolean,default:!1},coopFolderList:{type:Array,default:function(){return[]}},fileImgClass:{type:String,default:""}},methods:{closeCommitJudge:function(){this.$emit("closeCommitJudge"),this.isShowCoopWindow=!1},finishCommitFile:function(){this.$emit("finishCommitFile")},lookCoopTargetClick:function(){this.isShowCoopWindow=!0},closeCoopWindow:function(){this.isShowCoopWindow=!1}}},f=p,m=(i("832b"),i("bde5"),Object(u["a"])(f,n,r,!1,null,"6507fe99",null));e["a"]=m.exports},"7d48":function(t,e,i){"use strict";var n=i("cdec");t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(t){var n=t;return e&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=r(window.location.href),function(e){var i=n.isString(e)?r(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},"7f9f":function(t,e,i){},8005:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"folder",staticClass:"yiyun_wenjian_list lisy-group-item",on:{contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.showRightMenu(e)}}},[i("div",{staticClass:"defultImage-mid foldernew-mid"}),i("strong",{staticClass:"yiyunwenjian_name",attrs:{title:t.folder.folderName}},[t._v(t._s(t.folder.folderName))]),i("strong",{staticClass:"visontext"},[t._v(t._s(t.childNumUnderFolder)+"个项目")]),t.isClient?[(t.isWorkFolder,t._e()),t.isLoading?i("div",{staticClass:"downloadIcon"},[i("img",{staticClass:"keep-sync",attrs:{src:"/static/img/保存同步.svg",alt:""}})]):t._e()]:t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:t.rightMenuVisible,expression:"rightMenuVisible"}],ref:"right-menu",staticClass:"contextmenu",style:{top:t.rightMenuTop+"px",left:t.rightMenuLeft+"px"}},[i("ul",{staticClass:"rightMenu folderRightMenu"},[t.isClient?i("li",{on:{click:function(e){return e.stopPropagation(),t.downloadFolder(e)}}},[t._v("从云端更新")]):t._e()])])],2)},r=[],s=(i("c975"),i("b0c0"),i("1d40")),a={components:{},props:{folder:{type:Object,default:function(){return{}}},activeRightMenuId:String,isLoading:{type:Boolean,default:!1},isWorkFolder:{type:Boolean,default:!0},localFileHashMap:{type:Object,default:function(){return{}}},filterFileList:{type:Array,default:function(){return[]}},filterFolderList:{type:Array,default:function(){return[]}}},data:function(){return{isClient:s["a"].isClient,rightMenuVisible:!1,rightMenuLeft:0,rightMenuTop:0,rightMenuEl:null,folderItemEl:null,workspaceEl:null}},computed:{childNumUnderFolder:function(){return this.filterFileList.length+this.filterFolderList.length}},methods:{showRightMenu:function(t){var e=this;this.rightMenuVisible=!0,this.$nextTick((function(){e.rightMenuEl=e.$refs["right-menu"],e.folderItemEl=e.$refs["folder"];var i=!1;e.workspaceEl=document.querySelector("#workspace");var n=e.workspaceEl.clientHeight,r=e.workspaceEl.clientWidth;e.$route.name.indexOf("workspace")>=0&&(i=!0);var s=e.folderItemEl.getBoundingClientRect(),a=e.rightMenuEl.clientHeight,o=e.rightMenuEl.clientWidth,l=document.body.clientHeight,c=document.body.clientWidth-128;e.rightMenuLeft=t.clientX-s.left,e.rightMenuTop=t.clientY-s.top;var u=e.isWorkFolder&&t.clientX+o>r,h=e.isWorkFolder&&t.clientY+a>n,d=t.clientX+o>c,p=t.clientY+a>l;(u&&i||d)&&(e.rightMenuLeft=e.rightMenuLeft-o),(h&&i||p)&&(e.rightMenuTop=e.rightMenuTop-a),e.$emit("onRightMenuActive",e.folder.id)}))},downloadFolder:function(){this.$emit("onDownloadAll",this.folder)},closeRightMenu:function(){this.rightMenuVisible=!1},commitFolder:function(t){t.stopPropagation(),t.preventDefault(),this.$emit("commitFolder",this.folder)},deleteFolderClick:function(){this.$emit("deleteFolderClick",this.folder.id),this.closeRightMenu()}},watch:{rightMenuVisible:function(t){t?document.body.addEventListener("click",this.closeRightMenu):document.body.removeEventListener("click",this.closeRightMenu)},activeRightMenuId:function(t){this.rightMenuVisible=t===this.folder.id}}},o=a,l=(i("1e53"),i("2877")),c=Object(l["a"])(o,n,r,!1,null,"91acaac8",null);e["a"]=c.exports},"827b":function(t,e,i){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},"832b":function(t,e,i){"use strict";var n=i("5954"),r=i.n(n);r.a},"84a3":function(t,e,i){"use strict";(function(e){var n=i("cdec"),r=i("fc6b"),s={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function o(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=i("3c68")),t}var l={adapter:o(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){l.headers[t]=n.merge(s)})),t.exports=l}).call(this,i("4362"))},8957:function(t,e,i){},"8b98":function(t,e,i){"use strict";var n=i("c0e0"),r=i.n(n);r.a},"8c05":function(t,e,i){"use strict";var n=i("7f9f"),r=i.n(n);r.a},9133:function(t,e,i){"use strict";var n=i("e7e6");t.exports=function(t,e,i){var r=i.config.validateStatus;!r||r(i.status)?t(i):e(n("Request failed with status code "+i.status,i.config,null,i.request,i))}},9362:function(t,e,i){"use strict";var n=i("bbe5"),r=i.n(n);r.a},"94f1":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;"undefined"!==typeof navigator&&function(t,e){__WEBPACK_AMD_DEFINE_RESULT__=function(){return e(t)}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(window||{},(function(window){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}(function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1==e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+i[t]+i[e]+i[n]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t].length,n=0;n=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([i]):a[e]?a[e]+", "+i:i}})),a):a}},"194a":function(t,e,i){},"1e53":function(t,e,i){"use strict";var n=i("d160"),r=i.n(n);r.a},2128:function(t,e,i){"use strict";var n=i("2593"),r=i.n(n);r.a},"24d7":function(t,e,i){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},2593:function(t,e,i){},"293a":function(t,e,i){"use strict";var n=i("640e"),r=i.n(n);r.a},"29c8":function(t,e,i){"use strict";t.exports=function(t,e,i,n,r){return t.config=e,i&&(t.code=i),t.request=n,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"2b9b":function(t,e,i){"use strict";var n=i("62d3"),r=i("c61b");t.exports=function(t,e){return t&&!n(e)?r(t,e):e}},"2e60":function(t,e,i){},"2f4c":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"search-bar",class:{"show-search-bar":t.isShowSearchBar}},[i("div",{staticClass:"search-entry",class:{"set-high-index":!t.isShowSearchBar},on:{mouseenter:function(e){t.isSearchHover=!0},mouseleave:function(e){t.isSearchHover=!1},click:function(e){return e.stopPropagation(),t.showSearchBar(e)}}},[i("img",{directives:[{name:"show",rawName:"v-show",value:!t.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),i("img",{directives:[{name:"show",rawName:"v-show",value:t.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[i("i",{staticClass:"search-icon",on:{click:function(e){return e.stopPropagation(),t.goToSearch(e)}}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:t.placeholder,maxlength:"35"},domProps:{value:t.searchContent},on:{keyup:function(e){return e.stopPropagation(),t.enterSearchContent(e)},input:function(e){e.target.composing||(t.searchContent=e.target.value)}}}),i("i",{staticClass:"close-icon",on:{click:function(e){return e.stopPropagation(),t.hideSearchBar(e)}}})])])},r=[],s=(i("fb6a"),i("a9e3"),{data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},model:{prop:"value",event:"input"},props:{placeholder:{type:String,default:"搜索的文本"},maxLength:Number},watch:{searchContent:function(t){if(this.maxLength&&t.length>this.maxLength)return this.$notify({message:"请输入".concat(this.maxLength,"个字之内的搜索内容"),type:["warning"]}),void(this.searchContent=this.searchContent.slice(0,this.maxLength));this.changeSearchContent()}},methods:{enterSearchContent:function(t){this.searchContent&&13==t.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("input",this.searchContent)},goToSearch:function(){this.$emit("search")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("didHide")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("didShow")}}}),a=s,o=(i("3c93"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"f20ebcbc",null);e["a"]=l.exports},3470:function(t,e,i){"use strict";var n=i("e70f"),r=i.n(n);r.a},3792:function(t,e,i){"use strict";var n=i("c22c"),r=i.n(n);r.a},3906:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"list-file-item"},[i("div",{staticClass:"list-file-item-cell",style:{flex:"1"}},[i("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!t.readOnly,expression:"!readOnly"}],staticClass:"list-file-item-checkbox",attrs:{value:t.checked},on:{change:t.onCheckChange}}),i("span",{attrs:{title:t.fileName}},[t._v(t._s(t.fileName))])],1),i("div",{staticClass:"list-file-item-cell",style:{flex:"0 0 80px"},on:{click:t.onCheckChange}},[i("span",[t._v("V"+t._s(t.file.version))])]),i("div",{staticClass:"list-file-item-cell",style:{flex:"0 0 80px"}},[i("span",[t._v(t._s(t.file.createUserName))])]),i("div",{staticClass:"list-file-item-cell",style:{flex:"0 0 180px"}},[i("span",[t._v(t._s(t._f("formatTime")(t.file.modifyTime)))])])])},r=[],s=(i("99af"),i("13d5"),i("5a0c")),a=i.n(s),o=function(){for(var t=arguments.length,e=new Array(t),i=0;i2?i("div",{staticClass:"has-prev-node no-drag",on:{click:function(e){return e.stopPropagation(),t.nowFolderClick(t.nowFolderIndex-1)}}},[i("img",{staticClass:"prev-icon no-drag",attrs:{src:"/static/img/下拉箭头.svg"}})]):t._e(),t._l(t.folderList,(function(e,n){return[i("button",{key:n,ref:"nowFolderEl",refInFor:!0,staticClass:"no-drag",class:{"nowfolder-wrap yiyuntitle nowFolderName":n==t.nowFolderIndex,"yiyuntitle sectitle":n!==t.nowFolderIndex,"hide-folder":Math.abs(n-t.nowFolderIndex)>2},attrs:{type:"button"},on:{click:function(e){return t.nowFolderClick(n)}}},[i("div",{staticClass:"use-ellipsis",class:{"now-folder-text":n===t.nowFolderIndex,"other-folder-text":n!==t.nowFolderIndex}},[t._v(t._s(e.folderName)+" ")]),i("div",{staticClass:"jump-icon-wrap"},[n==t.nowFolderIndex?i("img",{staticClass:"jump-icon",attrs:{src:"/static/img/下拉箭头.svg"},on:{click:function(e){return e.stopPropagation(),t.showWorklinkPage(e)}}}):t._e()])])]})),t.totalNodeNum-t.nowFolderIndex>2?i("div",{staticClass:"has-next-node no-drag",on:{click:function(e){return e.stopPropagation(),t.nowFolderClick(t.nowFolderIndex+1)}}},[i("img",{staticClass:"next-icon no-drag",attrs:{src:"/static/img/下拉箭头.svg"}})]):t._e(),i("div",{style:{display:t.divDisplay?"block":"none"}})],2)])},h=[],d=i("3de1"),p=i("1d40"),f={props:{folderList:Array,currentNodeFolder:Object},data:function(){return{projectId:sessionStorage.projId,isClient:p["a"].isClient,moveX:0,divDisplay:""}},updated:function(){this.nowFolderEl=this.$refs.nowFolderEl?this.$refs.nowFolderEl[this.nowFolderIndex]:null;var t=this.$refs.allFolderWrapEl;if(this.nowFolderEl&&t){var e=this.nowFolderEl.offsetLeft,i=t.clientWidth/2-this.nowFolderEl.clientWidth/2;this.moveX=e-i}},methods:{nowFolderClick:function(t){t<0?d["d"].error("不能再向前了"):t>this.folderList.length-1?d["d"].error("不能再向后了"):this.$emit("changeFolder",this.folderList[t])},showWorklinkPage:function(){this.$emit("showWorkFlow",!0),this.isShowworklink=!0,this.workheight="workheight"}},computed:{nowFolderIndex:function(){return this.folderList.indexOf(this.currentNodeFolder)},setTranslate:function(){var t={transform:"translate(".concat(-this.moveX,"px, 0)")};return t},totalNodeNum:function(){return this.folderList?this.folderList.length:0}},watch:{moveX:function(t){var e=this;setTimeout((function(){e.divDisplay=!e.divDisplay}),500)},nowFolderIndex:function(t){t>-1&&(this.nowFolderEl=this.$refs.nowFolderEl?this.$refs.nowFolderEl[t]:this.nowFolderEl,this.allFolderWrapEl=this.$refs.allFolderWrapEl)}}},m=f,v=(i("e144"),i("2877")),g=Object(v["a"])(m,u,h,!1,null,"7482bf93",null),y=g.exports,b=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"file-explorer"},[t.isShowSearchPage?i("div",{staticClass:"search-res-page"},[i("change-btn",{staticClass:"operate-bar",attrs:{titleList:t.titleList},on:{changeContentBtnClick:t.changeContentBtnClick}}),i("div",{staticClass:"out-wrap"},[i("div",{staticClass:"search-res-page-wrap"},[0==t.currentBtnIndex?i("div",{staticClass:"list-group"},[t._l(t.searchWorkFileList,(function(e){return i("FileItem",{key:e.id,staticClass:"lisy-group-item",attrs:{file:e,clientDownLoad:t.clientDownLoad,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,tempRightFileId:t.tempRightFileId,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{commitFile:t.showCommitWindow,"change-file-status":t.toggleFileShareStatus,dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},copyFileBtnClick:function(i){return t.copyWorkFileBtnClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick,deleteFileClick:t.deleteFileClick,checkMilestoneClick:t.checkMilestoneClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),t.searchWorkFileList&&0==t.searchWorkFileList.length?i("div",{staticClass:"no-file-tips"},[t._v("搜索不到与“"+t._s(t.searchContent)+"”相关的工作文件")]):t._e()],2):1==t.currentBtnIndex?i("div",{staticClass:"list-group"},[t._l(t.searchCoopFileList,(function(e){return i("FileItem",{key:e.id,attrs:{file:e,tempRightFileId:t.tempRightFileId,clientDownLoad:t.clientDownLoad,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),t.searchCoopFileList&&0==t.searchCoopFileList.length?i("div",{staticClass:"no-file-tips"},[t._v("搜索不到与“"+t._s(t.searchContent)+"”相关的协作文件")]):t._e()],2):t._e()])])],1):i("div",[i("div",{staticClass:"listfilewarp mt-0"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"layout_content2"},[i("section",{staticClass:"layerout_H2",class:[t.closepageH+" ",{"set-workarea-height":t.isShowShadow&&!t.closepageH,fullscreen:t.currentNodeFolder.isPublic,fullscreen2:t.enableSelect}],attrs:{id:"workspace"},on:{contextmenu:function(e){return e.preventDefault(),t.rightShowMenu(e,"新建文件夹",4)}}},[i("section",{staticClass:"yiyun_section_warp"},[i("div",{staticClass:"yinyong_warpBox hidescollbar"},[i("div",{staticClass:"titlebar_head",attrs:{id:"bignav"}},[i("div",{staticClass:"section_item section_item_aside_fl"},[i("span",{staticClass:"yiyun_text-title-workspace"},[i("el-breadcrumb",{staticClass:"folder_breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[i("el-breadcrumb-item",{nativeOn:{click:function(e){return t.clickBreadcrumb(-1,0)}}},[t._v(t._s(t.currentNodeFolder.isPublic?"公共文件":"工作文件"))]),t._l(t.breadcrumbFolderList,(function(e,n){return i("el-breadcrumb-item",{key:e.id,nativeOn:{click:function(e){return t.clickBreadcrumb(n,0)}}},[t._v(t._s(e.folderName))])}))],2),!t.isClient||t.enableSelect||t.currentNodeFolder.isPublic?t._e():i("el-button",{staticClass:"enable-select-button",on:{click:function(e){e.stopPropagation(),t.enableSelect=!0}}},[i("i",{staticClass:"font_family icon-icon_status_wenjianbiaojiwancheng enable-select-button-icon"}),i("span",[t._v("批量交付")])])],1)]),i("div",{staticClass:"use-relative scollbarBox nobianju"},[t.isClient&&!t.enableSelect?i("AddFileButton",{attrs:{currentNodeFolder:t.currentNodeFolder,selectSystemFiles:t.selectSystemFiles,selectSystemFolders:t.selectSystemFolders},on:{fileTempClick:t.fileTempClick}}):t._e(),t.uploadFileList&&t.uploadFileList.length>0?i("div",{staticClass:"list-group"},t._l(t.filterFilesInWork(t.uploadFileList),(function(e){return i("FileItem",{key:e.id,staticClass:"lisy-group-item",attrs:{file:e,clientDownLoad:t.clientDownLoad,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id]}})})),1):t._e(),t.workFileList&&t.workFileList.length>0?i("div",{staticClass:"list-group"},t._l(t.filterFilesInWork(t.workFileList),(function(e){return i("FileItem",{key:e.id,staticClass:"lisy-group-item",attrs:{file:e,enableSelect:t.enableSelect,selected:t.selectedFileIdList.some((function(t){return t===e.id})),clientDownLoad:t.clientDownLoad,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,tempRightFileId:t.tempRightFileId,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{select:t.toggleFileSelect,commitFile:t.showCommitWindow,"change-file-status":t.toggleFileShareStatus,dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},copyFileBtnClick:function(i){return t.copyWorkFileBtnClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick,deleteFileClick:t.deleteFileClick,checkMilestoneClick:t.checkMilestoneClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),1):t._e(),i("div",{staticClass:"list-group"},t._l(t.filterFoldersInWork(t.subFolderList),(function(e){return i("FolderItem",{key:e.id,attrs:{folder:e,isLoading:t.localFolderLoadStateMap[e.folderPath],activeRightMenuId:t.tempRightFileId,filterFolderList:t.filterFoldersInTarget(t.subFolderList,e),filterFileList:t.filterFilesInTarget(t.workFileList,e)},on:{onRightMenuActive:t.oneFileRightBtnClick,onDownloadAll:t.downloadFolder,commitFolder:t.commitFolder},nativeOn:{dblclick:function(i){return t.intoSubFolder(e,0)}}})})),1)],1)])])]),t.enableSelect?i("div",{staticClass:"archive_box"},[i("div",{staticClass:"archive_box_header"},[t._v(" 已选交付成果 ")]),i("div",{staticClass:"archive_box_list_container"},[i("div",{staticClass:"archive_box_list"},t._l(t.selectedFileList,(function(e){return i("div",{key:e.id,staticClass:"archive_box_list_item"},[i("span",{attrs:{title:e.archName}},[t._v(t._s(e.archName))]),i("el-button",{staticClass:"archive_box_list_item_button",attrs:{type:"text"},on:{click:function(i){return i.stopPropagation(),t.toggleFileSelect(e)}}},[t._v("移除")])],1)})),0)]),i("div",{staticClass:"archive_box_bottom"},[i("el-button",{staticClass:"archive_box_bottom_button",attrs:{type:"success",disabled:0===t.selectedFileIdList.length},on:{click:function(e){e.stopPropagation(),t.authModalVisible=!0}}},[t._v("交付并认证")]),i("el-button",{staticClass:"archive_box_bottom_button",on:{click:function(e){e.stopPropagation(),t.enableSelect=!1}}},[t._v("取消交付")])],1)]):t._e()]),t.currentNodeFolder.isPublic?i("div",{staticClass:"neibianju public-folder-bottom"},[i("div",{staticClass:"bottom-button-container"},[i("el-button",{staticClass:"bottom-button",on:{click:function(e){return e.stopPropagation(),t.showAchieveView(e)}}},[i("i",{staticClass:"font_family icon-icon_status_wenjianbiaojiwancheng bottom-button-icon"}),i("span",[t._v("交付模板成果")])])],1)]):i("div",{directives:[{name:"show",rawName:"v-show",value:!t.enableSelect,expression:"!enableSelect"}],class:[""+t.neibianju,{"coopBox-max-height":t.isShowShadow&&t.isCollapse}],attrs:{id:"bottomBox"}},[i("div",{staticClass:"titleBox"},[i("span",{staticClass:"yiyun_zhediebtn DevtopIcon"},[i("i",{directives:[{name:"show",rawName:"v-show",value:t.isCollapse,expression:"isCollapse"}],staticClass:"Cicon text_gray icon font_family icon-icon_zhankai",attrs:{title:"展开面板"},on:{click:function(e){return e.stopPropagation(),t.openCopage(e)}}}),i("i",{directives:[{name:"show",rawName:"v-show",value:!t.isCollapse,expression:"!isCollapse"}],staticClass:"Cicon text_gray icon font_family icon-icon_shouqi",attrs:{title:"折叠面板"},on:{click:function(e){return e.stopPropagation(),t.closeCopage(e)}}})]),i("div",{staticClass:"title_warp"},[i("div",{staticClass:" ",attrs:{id:"bignav"}},[i("div",{staticClass:"section_item fl section_item_aside_fl xiangdui"},[i("div",{staticClass:"tabtltlebox"},[i("div",{staticClass:"section_item section_item_aside_fl"},[i("span",{staticClass:"yiyun_text-title-workspace mr-20 ml-8"},[i("el-breadcrumb",{staticClass:"folder_breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[i("el-breadcrumb-item",{nativeOn:{click:function(e){return t.clickBreadcrumb(-1,1)}}},[t._v("协作文件")]),t._l(t.breadcrumbFolderListInCoop,(function(e,n){return i("el-breadcrumb-item",{key:e.id,nativeOn:{click:function(e){return t.clickBreadcrumb(n,1)}}},[t._v(t._s(e.folderName))])}))],2)],1)])])]),t._m(0)]),i("div",{staticClass:"clear"})])]),i("div",{staticClass:"fifleBox",attrs:{id:"coopFileContainer"}},[i("div",{staticClass:"yiyun_section_warp layerout_H3",attrs:{id:"coopFileBox"}},[i("div",{staticClass:"yinyong_warpBox"},[i("div",[i("div",{staticClass:"mt-12"},t._l(t.filterFilesInCoop(t.cooperationFileList),(function(e){return i("FileItem",{key:e.id,attrs:{file:e,tempRightFileId:t.tempRightFileId,clientDownLoad:t.clientDownLoad,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),1),i("div",{staticClass:"list-group"},t._l(t.filterFoldersInCoop(t.coopSubFolderList),(function(e){return i("FolderItem",{key:e.id,attrs:{folder:e,isWorkFolder:!1,isLoading:t.localFolderLoadStateMap[e.folderPath],activeRightMenuId:t.tempRightFileId,filterFolderList:t.filterFoldersInTarget(t.coopSubFolderList,e,!0),filterFileList:t.filterFilesInTarget(t.cooperationFileList,e,!0)},on:{onRightMenuActive:t.oneFileRightBtnClick,onDownloadAll:t.downloadFolder,commitFolder:t.commitFolder},nativeOn:{dblclick:function(i){return i.stopPropagation(),t.intoSubFolder(e,1)}}})})),1)])])])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowShadow,expression:"isShowShadow"}],staticClass:"showdowfix",attrs:{id:"bottomoShadow"}})]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.rightMenuvisible,expression:"rightMenuvisible"}],ref:"right-menu",staticClass:"contextmenu",style:{left:t.rightMenuleft+"px",top:t.rightMenuTop+"px"}},[i("ul",{staticClass:"rightMenu"},[i("li",{on:{click:t.newCreateFolderGroup}},[t._v(" 新建文件夹 ")]),t.isClient&&this.localWorkspacePrefix?i("li",{on:{click:t.openNativeCurrentFolder}},[t._v(" 打开本地工作目录 ")]):t._e()])])])])]),i("el-dialog",{attrs:{width:"900px",visible:t.isVideo,"close-on-click-modal":!1},on:{"update:visible":function(e){t.isVideo=e},close:t.videoClose}},[i("div",{staticClass:"filePreview"},[i("video",{attrs:{src:t.videoSrc,controls:"controls"}})])]),i("el-dialog",{attrs:{title:"创建文件夹",visible:t.dialogNewFolderGroup,width:"460px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogNewFolderGroup=e}},nativeOn:{submit:function(t){t.preventDefault()}}},[i("el-form",[i("div",{staticClass:"appImgiconbox"},[i("img",{attrs:{src:"/static/img/folder.png",alt:""}})]),i("el-form-item",[i("el-input",{nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createSubFolder(e)}},model:{value:t.folderGroupData.FolderName,callback:function(e){t.$set(t.folderGroupData,"FolderName",e)},expression:"folderGroupData.FolderName"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogNewFolderGroup=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.createSubFolder()}}},[t._v("确 定")])],1)],1),t.currentSelectTempFile?i("el-dialog",{staticClass:"temp-file-dialog",attrs:{title:t.showNewTemplateFileDialogTitle,visible:t.isShowNewTemplateFileDialog,width:"460px","show-close":!1,"close-on-click-modal":!1},on:{"update:visible":function(e){t.isShowNewTemplateFileDialog=e}},nativeOn:{submit:function(t){t.preventDefault()}}},[i("el-form",[t.oneOf(t.currentSelectTempFile.extension,["doc","docx","dwg","dxf","gif","jpeg","jpg","max","nwc","pdf","png","ppt","pptx","rar","rvt","skp","txt","xls","xlsx","xmind","zip"])?i("div",{staticClass:"appImgiconbox"},[i("img",{attrs:{src:"/static/img/files/file_sample_"+t.currentSelectTempFile.extension+".svg",alt:""}})]):i("div",{staticClass:"img-container"},[t.notPicIcon()?i("div",{staticClass:"defultImage-small",class:t.currentSelectTempFile.extension+"-mid"}):t.picIcon()?i("div",{staticClass:"defultImage-small img_bg-mid"},[i("div",{staticClass:"file_Im gbox-mid"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.currentSelectTempFile.alias,expression:"currentSelectTempFile.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):i("div",{staticClass:"video-small"})]),i("div",{staticClass:"guide-template-file-name"},[t._v(t._s(t.projectName+"_"+t.currentNodeFolder.folderName+"_"+t.currentSelectTempFile.fileName+"."+t.currentSelectTempFile.extension))]),i("el-form-item",[i("el-input",{nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createTemplateFile(e)}},model:{value:t.currentSelectTempFile.fileName,callback:function(e){t.$set(t.currentSelectTempFile,"fileName",e)},expression:"currentSelectTempFile.fileName"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.isShowNewTemplateFileDialog=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.createTemplateFile()}}},[t._v("完成创建")])],1)],1):t._e(),i("commit-judge",{ref:"commit-judge",attrs:{file:t.commitJudgeFile,fileImgClass:t.fileImgClass,isShowCommitJudgeWindow:t.isShowCommitJudgeWindow},on:{closeCommitJudge:t.closeCommitJudge,finishCommitFile:t.finishCommitFile}}),i("file-milestone",{attrs:{visible:t.checkMilestoneShow,fileMilestoneInfo:t.fileMilestoneInfo,localWorkspacePrefix:t.localWorkspacePrefix,fileHistoryList:t.fileHistoryList,file:t.currentFile},on:{closeMilestonePain:t.closeMilestonePain,makeCopy:t.copyWorkFileBtnClick,openFile:t.fileClick,openFileWith:t.openFileWith}}),i("el-dialog",{staticClass:"auth-modal",attrs:{visible:t.authModalVisible,width:"460px",top:"30vh"},on:{"update:visible":function(e){t.authModalVisible=e}},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",{staticClass:"auth-title"},[t._v("账户认证")]),i("div",{staticClass:"auth-hint"},[t._v("请输入您的账户密码,一旦交付将不可撤回!")])]},proxy:!0}])},[i("el-input",{attrs:{placeholder:"请输入密码",type:"password","auto-complete":"new-password"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doCommit(e)}},model:{value:t.authInpVal,callback:function(e){t.authInpVal=e},expression:"authInpVal"}}),i("el-input",{staticClass:"auth-textarea",attrs:{placeholder:"请输入备注",type:"textarea"},model:{value:t.authRemarkVal,callback:function(e){t.authRemarkVal=e},expression:"authRemarkVal"}}),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.authModalVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{disabled:!t.authInpVal,type:"primary"},on:{click:t.doCommit}},[t._v("认证并提交交付物")])],1)],1)],1)},x=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"section_item fr section_item_aside_fr"},[i("div",{staticClass:"fr ml-10"},[i("span",{staticClass:"bj_label"},[t._v("协作文件均只读")])]),i("div",{staticClass:"fifle_search fr"})])}],S=i("9f19"),C=S["a"],k=(i("ffb0"),i("5644"),i("bd77"),i("7440"),Object(v["a"])(C,b,x,!1,null,"8e6310a4",null)),w=k.exports,V=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"archive-view"},[i("div",{staticClass:"view-left"},[i("el-collapse",{staticClass:"panel-wrapper",model:{value:t.collapseActiveKeys,callback:function(e){t.collapseActiveKeys=e},expression:"collapseActiveKeys"}},[i("el-collapse-item",{staticClass:"panel",attrs:{title:"项目成果",name:"1"}},[i("div",{staticClass:"list-item",class:{"list-item-active":"all"===t.tabKey},on:{click:function(e){return e.stopPropagation(),t.filterArchive()}}},[i("span",[t._v("显示所有勾选文件"+t._s(t.selectedKeyCount?" ("+t.selectedKeyCount+"/"+t.fileTotalCount+")":""))])]),t._l(t.currentArchiveTreeList.filter((function(t){return"folder"===t.nodeType})),(function(e){return i("div",{key:e.id,staticClass:"list-item",class:{"list-item-active":t.tabKey===e.id},on:{click:function(i){return i.stopPropagation(),t.filterArchive(e)}}},[i("span",[t._v(t._s(e.folderName))])])}))],2),i("el-collapse-item",{staticClass:"panel",attrs:{title:"历史提交记录",name:"2"}},t._l(t.commitHisList,(function(e){return i("div",{key:e.id,staticClass:"list-item",class:{"list-item-active":t.tabKey===e.id},on:{click:function(i){return i.stopPropagation(),t.checkCommitHistory(e)}}},[t._v(" "+t._s(t._f("formatTime")(e.createTime))+" ")])})),0)],1),i("div",{staticClass:"button-group"},[i("el-button",{staticClass:"view-left-button",on:{click:function(e){t.receiverModalVisible=!0}}},[t._v("查看接收方信息")]),i("el-button",{staticClass:"view-left-button",attrs:{type:"success",disabled:!t.selectedKeyCount},on:{click:function(e){e.stopPropagation(),t.authModalVisible=!0}}},[t._v(" 交付并认证")]),i("el-button",{staticClass:"view-left-button",on:{click:function(e){return e.stopPropagation(),t.cancelArchive(e)}}},[t._v(" 取消交付")])],1)],1),i("div",{staticClass:"view-right"},[i("div",{staticClass:"table-like"},[t._m(0),t._l(t.rightPanelItemList,(function(e){return["file"===e.nodeType?i("list-file-item",{key:e.id,attrs:{file:e,readOnly:t.readOnly,checked:t.selectedKeyMap[e.id]},on:{check:t.toggleCheck}}):i("div",{key:e.id,staticClass:"table-node"},[i("div",{staticClass:"table-node-header"},[i("div",{staticClass:"table-node-header-th"},[t._v(t._s(e.folderName))]),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.readOnly,expression:"!readOnly"}],staticClass:"table-node-header-extra"},[i("el-checkbox",{staticClass:"table-node-header-checkbox",attrs:{value:t.isChildrenAllChecked(e)},on:{change:function(i){return t.toggleCheck(e)}}}),t._v(" 全选 ")],1)]),i("item-list",{attrs:{list:e.children,readOnly:t.readOnly,selectedKeyMap:t.selectedKeyMap},on:{check:t.toggleCheck}})],1)]}))],2)]),i("el-dialog",{staticClass:"auth-modal",attrs:{visible:t.authModalVisible,width:"460px",top:"30vh"},on:{"update:visible":function(e){t.authModalVisible=e}},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",{staticClass:"auth-title"},[t._v("账户认证")]),i("div",{staticClass:"auth-hint"},[t._v("请输入您的账户密码,一旦交付将不可撤回!")])]},proxy:!0}])},[i("el-input",{attrs:{placeholder:"请输入密码",type:"password","auto-complete":"new-password"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doCommit(e)}},model:{value:t.authInpVal,callback:function(e){t.authInpVal=e},expression:"authInpVal"}}),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.authModalVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{disabled:!t.authInpVal,type:"primary"},on:{click:t.doCommit}},[t._v("认证并提交交付物")])],1)],1),i("el-dialog",{staticClass:"receiver-modal",attrs:{visible:t.receiverModalVisible,width:"660px"},on:{"update:visible":function(e){t.receiverModalVisible=e}}},[i("div",{staticClass:"template-summary"},[i("top-header",{staticClass:"set-header-position header-wrap",attrs:{theme:"",backBtnTitle:"接收方信息",showUserCenter:!1,showBackBtn:!0}},[i("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(e){e.stopPropagation(),t.receiverModalVisible=!1}},slot:"right"},[t._v("关闭")])]),i("div",{staticClass:"summary-wrap"},[i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("企业名称:")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.receiverInfo.compAllName))])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("项目名称:")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.receiverInfo.projName))])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("关联模板名称:")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.receiverInfo.tempName))])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("对接模板节点:")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.receiverInfo.folderName))])])])],1)])],1)},P=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"table-header"},[i("div",{staticClass:"table-th"},[t._v("选择成果")]),i("div",{staticClass:"table-th"},[t._v("版本号")]),i("div",{staticClass:"table-th"},[t._v("创建人")]),i("div",{staticClass:"table-th"},[t._v("提交时间")])])}],T=(i("99af"),i("a623"),i("4160"),i("a15b"),i("fb6a"),i("07ac"),i("159b"),i("ade3")),I=i("0e97"),_=i("b428"),O=i("5a0c"),A=i.n(O),E=i("b332"),D=i("3906"),F=i("b775"),M=i("b1f3"),L={components:{ItemList:I["default"],ListFileItem:D["a"],TopHeader:M["a"]},props:{currentNodeFolder:Object,projectId:String},filters:{formatTime:function(t){return A()(t).format("YYYY年MM月DD日 A HH:mm")}},data:function(){var t=this.$store.state.accountName;return{accountName:t,userId:sessionStorage.userId,collapseActiveKeys:["1","2"],readOnly:!1,commitHisList:[],tabKey:"all",currentArchivePlainList:[],currentArchiveTreeList:[],rightPanelItemList:[],selectedKeyMap:{},authModalVisible:!1,authInpVal:"",receiverModalVisible:!1,receiverInfo:{}}},computed:{selectedKeyCount:function(){return Object.values(this.selectedKeyMap).filter((function(t){return t})).length}},mounted:function(){this.fetchFolderFiles(),this.fetchArchiveHistory(),this.fetchReceiverInfo()},watch:{authModalVisible:function(t){t||(this.authInpVal="")},receiverModalVisible:function(t){t&&this.fetchReceiverInfo()}},methods:{cancelArchive:function(){this.$emit("cancel")},isChildrenAllChecked:function(t){return N(t.children,this.selectedKeyMap)},toggleCheck:function(t){var e=this.selectedKeyMap;if("file"===t.nodeType)this.selectedKeyMap=Object(s["a"])(Object(s["a"])({},e),{},Object(T["a"])({},t.id,!e[t.id]));else{var i=[],n=!0;j(t.children,(function(t){i.push(t.id),n=n&&e[t.id]}));var r=i.reduce((function(t,e){return t[e]=!n,t}),{});this.selectedKeyMap=Object(s["a"])(Object(s["a"])({},e),r)}},filterArchive:function(t){this.tabKey=t?t.id:"all",this.readOnly=!1,this.rightPanelItemList=t?this.currentArchiveTreeList.filter((function(e){return e.id===t.id})):this.currentArchiveTreeList},fetchFolderFiles:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.currentNodeFolder,n=t.userId,i&&i.id){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,_["d"](i.id,n);case 6:if(r=e.sent,r){e.next=9;break}return e.abrupt("return");case 9:if(t.currentNodeFolder.id===i.id){e.next=11;break}return e.abrupt("return");case 11:t.currentArchiveTreeList=B(r.deliverables),t.fileTotalCount=r.deliverables.length,t.currentArchivePlainList=r.deliverables,t.rightPanelItemList=t.currentArchiveTreeList;case 15:case"end":return e.stop()}}),e)})))()},fetchArchiveHistory:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("file/queryProjDeliverablesSubmitByDeliverablesFolderId",{deliverablesFolderId:t.currentNodeFolder.id});case 2:i=e.sent,t.commitHisList=(i.Data||[]).map(d["b"]);case 4:case"end":return e.stop()}}),e)})))()},checkCommitHistory:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e.tabKey=t.id,i.next=3,e.$fetchApi("file/queryProjDeliverablesSubmitDetailByDeliverablesSubmitId",{deliverablesSubmitId:t.id});case 3:n=i.sent,e.rightPanelItemList=B((n.Data||[]).map(d["b"])),e.readOnly=!0;case 6:case"end":return i.stop()}}),i)})))()},doCommit:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("authentication/passwordCheck",{password:t.authInpVal,userName:t.accountName});case 2:if(i=e.sent,Object(F["c"])(i),!i.Code){e.next=6;break}return e.abrupt("return");case 6:return n=t.selectedKeyMap,r=t.currentArchivePlainList.filter((function(t){return n[t.id]})),e.next=10,t.$fetchApi("file/submitDeliverables",{DeliverablesFolderId:t.currentNodeFolder.id,ProjId:t.projectId,DeliverablesFile:r.map(d["c"])});case 10:if(s=e.sent,Object(F["c"])(s),console.log(s),!s.Code){e.next=15;break}return e.abrupt("return");case 15:d["d"].success("交付成功"),t.authModalVisible=!1,t.selectedKeyMap={},t.fetchArchiveHistory();case 19:case"end":return e.stop()}}),e)})))()},fetchReceiverInfo:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("folder/queryProjAcceptInfoByDeliverablesFolderId",{deliverablesFolderId:t.currentNodeFolder.id,projId:t.projectId});case 2:i=e.sent,Object(F["c"])(i),t.receiverInfo=Object(d["b"])(i.Data||{}),t.$emit("on-query-receiver-info",t.receiverInfo);case 6:case"end":return e.stop()}}),e)})))()}}};function j(t,e){t.forEach((function(t){"file"!==t.nodeType?j(t.children,e):e(t)}))}function B(t){var e={},i=[];return t.forEach((function(t){if(t.nodeType="file",t.nodeFolderName=t.nodeName,t.nodeFolderName){var n="".concat(t.nodeFolderName).concat(t.relativePath?"/".concat(t.relativePath):"");$(e,n);var r=e[n];r.children.push(t)}else i.push(t)})),Object.values(e).forEach((function(t){t.parentFolderPath||i.push(t),t.children=t.children.filter((function(t){return"file"===t.nodeType})).concat(t.children.filter((function(t){return"file"!==t.nodeType})))})),i}function $(t,e){var i=e.split("/");i.forEach((function(e,n){var r=i.slice(0,n+1).join("/");if(!t[r]){var s=new E["d"](r);s.children=[],s.nodeType="folder";var a=s.parentFolderPath;t[r]=s,t[a]&&t[a].children.push(s)}}))}function N(t,e){return t.every((function(t){return"file"===t.nodeType?e[t.id]:N(t.children,e)}))}var R=L,H=(i("e895"),Object(v["a"])(R,V,P,!1,null,"0b252784",null)),z=H.exports,G=i("93d6"),W=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"work-flow"},[i("div",{staticClass:"flow-container"},[i("div",{staticClass:"flow-container-inner"},t._l(t.folderList,(function(e,n){return i("div",{key:e.id,staticClass:"yuandian"},[i("div",{staticClass:"upList"},[i("div",{staticClass:"enterPoint"},t._l(e.listsShareFrom[1],(function(e,n){return i("div",{key:n,staticClass:"linkBtn2 leftlinebox",attrs:{type:"button"}},[i("i",{staticClass:"leftline"}),i("span",{staticClass:"worllistt2",attrs:{title:e}},[t._v(t._s(e.nodeName))])])})),0),e.listsShareFrom[1].length>0?i("div",{staticClass:"enterLine"},[i("i",{staticClass:"el-icon-caret-bottom bottomenter"})]):t._e()]),i("div",{staticClass:"conterpoint"},[i("button",{class:{currworkbutton:e==t.currentNodeFolder,workbutton:e!==t.currentNodeFolder},attrs:{type:"button",title:e.folderName},on:{click:function(i){return t.selectFolder(e)}}},[t._v(" "+t._s(e.folderName)+" ")]),n0?i("div",{staticClass:"bottomlist"},[i("div",{staticClass:"leftlin2"}),i("div",{staticClass:"outPoint"},[t._l(e.listsShareFrom[0],(function(e,n){return i("div",{key:n,staticClass:"linkBtn2 leftlinebox",attrs:{type:"button"}},[i("i",{staticClass:"leftline"}),i("span",{staticClass:"worllistt2",attrs:{title:e}},[t._v(t._s(e.nodeName))])])})),e.nestProjectId&&"0"!==e.nestProjectId?i("div",{staticClass:"linkBtn2 leftlinebox nest-project-node",on:{click:function(i){return t.checkNestProject(e)}}},[i("i",{staticClass:"leftline"}),i("icon-triangle-circle",{attrs:{size:12,color:"#3C7DFF"}}),i("span",{staticClass:"worllistt2",attrs:{title:e.nestProjectName}},[t._v(t._s(e.nestProjectName))])],1):t._e(),t._m(0,!0)],2)]):t._e()])})),0)]),t.nestNodeFolder?i("el-dialog",{staticClass:"nest-project-modal",attrs:{visible:t.nestProjectModalVisible,center:"",top:"48px",width:"660px"},on:{"update:visible":function(e){t.nestProjectModalVisible=e}},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",{staticClass:"nest-project-modal-title"},[i("span",[t._v(t._s(t.nestNodeFolder.folderName)+"的互链项目")]),i("el-button",{on:{click:function(e){e.stopPropagation(),t.nestProjectModalVisible=!1}}},[t._v("关闭")])],1)]},proxy:!0}],null,!1,1702687869)},[t.nestProjectInfo?i("div",{staticClass:"proj-desc-wrap dialog-detail"},[i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("项目名称")]),i("div",{staticClass:"item-value"},[i("span",{staticStyle:{flex:"1"}},[t._v(t._s(t.nestProjectInfo.projName))])])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("项目负责")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.nestProjectInfo.projCreateUserName))])]),i("div",{staticClass:"item cover-container"},[i("div",{staticClass:"item-title"},[t._v("封面")]),i("div",{staticClass:"item-value cover-img-wrap use-relative",style:t.showBackground(t.nestProjectInfo.showImgUrl)})]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title proj-main-template"},[t._v("项目主要模板")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.nestProjectInfo.tempName))])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("模板负责")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.nestProjectInfo.tempCreateUserName))])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("创建时间")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.nestProjectInfo.projCreateTime))])]),t._l(t.nestProjectInfo.customProps||[],(function(e){return i("div",{key:e.TempPropId,staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v(t._s(e.PropertyName?e.PropertyName:"自定义字段"))]),i("div",{staticClass:"item-value"},[t._v(t._s(e.PropValue))])])}))],2):t._e(),i("div")]):t._e()],1)},Y=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"outLine"},[i("i",{staticClass:"el-icon-caret-bottom bottomenter"})])}],U=i("b0f9"),q=i("6b3d"),K=i("a06e"),X={components:{IconTriangleCircle:q["a"]},props:{projectId:String,currentNodeFolder:Object,folderList:Array},data:function(){return{nestNodeFolder:{},nestProjectInfo:{},nestProjectModalVisible:!1}},mounted:function(){this.fetchFileExchange()},watch:{folderList:function(){this.fetchFileExchange()},nestProjectModalVisible:function(t){t||(this.nestProjectInfo={})}},methods:{showBackground:function(t){var e=this.$options.filters["resolveImg"],i=e(t);return{background:"center/cover no-repeat url(".concat(i,")")}},selectFolder:function(t){this.$emit("select",t)},checkNestProject:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=t.nestProjectId,e.nestNodeFolder=t,e.nestProjectModalVisible=!0,i.next=5,K["c"](n);case 5:if(r=i.sent,Object(F["c"])(r),0===r.Code){i.next=9;break}return i.abrupt("return");case 9:s=Object(d["b"])(r.Data||{}),s.projCreateTime=A()(s.projCreateTime).format("YYYY/MM/DD"),e.nestProjectInfo=s,console.log(s);case 13:case"end":return i.stop()}}),i)})))()},fetchFileExchange:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s,o,l,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.folderList&&t.folderList.length){e.next=2;break}return e.abrupt("return");case 2:return n=null===(i=t.folderList[0])||void 0===i?void 0:i.templateId,e.next=5,Promise.all([Object(U["k"])(t.projectId),t.$fetchApi("folder/queryAllNodeFolderListByProjectId",{projectId:t.projectId})]);case 5:r=e.sent,s=Object(a["a"])(r,2),o=s[0],l=s[1],c=(l.Data.folder||[]).reduce((function(t,e){return e.NodeId===n||"公共文件夹"===e.FolderName||(t[e.NodeId]={},t[e.NodeId].nodeName=e.FolderName,t[e.NodeId].id=e.Id),t}),{}),t.nestNodeFileExchangeOperate(n,c),(o.Data||[]).forEach((function(e){var i=e.NestTemplateId;t.nestNodeFileExchangeOperate(i,c)}));case 12:case"end":return e.stop()}}),e)})))()},nestNodeFileExchangeOperate:function(t,e){var i=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(U["j"])(t,t);case 2:if(r=n.sent,0===r.Code){n.next=5;break}return n.abrupt("return");case 5:if(s=r.Data,s){n.next=8;break}return n.abrupt("return");case 8:i.folderList.forEach((function(t){s.forEach((function(i){if(t.nodeId==i.PermCode&&1==i.Permission&&t.nodeId!==i.SysCode){var n=t.listsShareFrom[1].find((function(t){return t.nodeId==i.SysCode}));!n&&e[i.SysCode]&&t.listsShareFrom[1].push(e[i.SysCode])}else if(t.nodeId==i.SysCode&&1==i.Permission&&t.nodeId!==i.PermCode){var r=t.listsShareFrom[0].find((function(t){return t.nodeId==i.PermCode}));!r&&e[i.PermCode]&&t.listsShareFrom[0].push(e[i.PermCode])}}))}));case 9:case"end":return n.stop()}}),n)})))()},getNestItem:function(t,e,i){var n=this;t.forEach((function(t){t.children&&t.children.length>0&&(i=t.id,n.getNestItem(t.children,e,i))}))}}},Z=X,J=(i("0431"),Object(v["a"])(Z,W,Y,!1,null,"d37cb1e8",null)),Q=J.exports,tt={components:{AppHeader:l["a"],HeaderFlowTabs:y,SearchBar:c["a"],WorkFlow:Q,FileExplorer:w,ArchiveView:z},data:function(){return{userId:sessionStorage.userId,projectId:sessionStorage.projId,projectName:sessionStorage.projName,nodeFolders:[],currentNodeFolder:null,workFlowVisible:!1,viewType:"file-explorer",searchKeywords:"",selectMode:!1,receiverInfo:{}}},watch:{currentNodeFolder:function(t){console.log(t)}},computed:{appHeaderTitle:function(){return this.workFlowVisible?"回到协作空间":"archive-view"===this.viewType?"返回":"退出"},appHeaderBackBtnClick:function(){return this.workFlowVisible?this.closeWorkFlow:"archive-view"===this.viewType?this.backToFileExplorer:void 0}},mounted:function(){this.getAllNodePeopleInfo(),this.fetchNodeFolders()},methods:{onSelectModeChange:function(t){this.selectMode=t},onQueryReceiverInfo:function(t){this.receiverInfo=t},closeWorkFlow:function(){this.workFlowVisible=!1},backToFileExplorer:function(){this.viewType="file-explorer"},offSearch:function(){this.searchKeywords=""},fetchNodeFolders:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,_["e"](t.projectId,t.userId);case 2:if(i=e.sent,n=i.filter((function(t){return t.nodeId!==t.templateId})),t.nodeFolders=n,t.folderMap=n.reduce((function(t,e){return t[e.id]=e,t}),{}),n.length){e.next=8;break}return e.abrupt("return");case 8:r=t.$route.params.folderId,r?t.currentNodeFolder=n.find((function(t){return t.id===r}))||n[0]:sessionStorage.nowFolderIndex?t.currentNodeFolder=n[sessionStorage.nowFolderIndex]||n[0]:t.currentNodeFolder=n[0];case 10:case"end":return e.stop()}}),e)})))()},getAllNodePeopleInfo:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r,o,l,c,u,h,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(G["g"])({id:t.$store.state.currentCompanyId,nodeType:"company"},1,1e4),t.$fetchApi("folder/queryAllNodeFolderListByProjectId",{projectId:t.projectId})]);case 2:i=e.sent,n=Object(a["a"])(i,2),r=n[0].list,o=n[1],l=r.reduce((function(t,e){return t[e.id]=e,t}),{}),c={},u=o.Data||{},h=u.folder,u.manager,p=h.reduce((function(t,e){if("公共文件夹"===e.FolderName)return t;if(e.NodeId===e.TemplateId)return t;var i=Object(d["b"])(e);i.listChildren=[],i.listUser=i.oldGeneralId.split(",").filter((function(t){return t})).map((function(t){return Object(s["a"])({},l[t])})),i.manageUser=("0"===i.oldManager?"":i.oldManager).split(",").filter((function(t){return t})).map((function(t){return Object(s["a"])({},l[t])})),c[i.id]=i;var n=c[i.superId];return n?(n.listChildren.push(i),t.push(i),t):t}),[]),t.allNodefolderList=p;case 11:case"end":return e.stop()}}),e)})))()},nowFolderClick:function(t){this.workFlowVisible=!1,this.goFolder(t)},goFolder:function(t){var e=this.nodeFolders.indexOf(t);sessionStorage.nowFolderIndex=e,this.currentNodeFolder=t,this.viewType="file-explorer"}}},et=tt,it=(i("8b98"),i("9362"),i("46aa"),i("565a"),i("8c05"),i("2128"),Object(v["a"])(et,n,r,!1,null,"0b28e6e9",null));e["default"]=it.exports},"3b6d":function(t,e,i){t.exports=i("9db1")},"3c68":function(t,e,i){"use strict";var n=i("cdec"),r=i("9133"),s=i("0beb"),a=i("2b9b"),o=i("175e"),l=i("7d48"),c=i("e7e6");t.exports=function(t){return new Promise((function(e,u){var h=t.data,d=t.headers;n.isFormData(h)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+btoa(f+":"+m)}var v=a(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),s(v,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?o(p.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?p.response:p.responseText,s={data:n,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,u,s),p=null}},p.onabort=function(){p&&(u(c("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){u(c("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),u(c(e,t,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var g=i("b391"),y=(t.withCredentials||l(v))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(d[t.xsrfHeaderName]=y)}if("setRequestHeader"in p&&n.forEach(d,(function(t,e){"undefined"===typeof h&&"content-type"===e.toLowerCase()?delete d[e]:p.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),u(t),p=null)})),void 0===h&&(h=null),p.send(h)}))}},"3c93":function(t,e,i){"use strict";var n=i("73d8"),r=i.n(n);r.a},"46aa":function(t,e,i){"use strict";var n=i("f204"),r=i.n(n);r.a},"51c2":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"change-btn"},t._l(t.titleList,(function(e,n){return i("div",{key:n,staticClass:"btn",class:{"active-btn":t.currentIndex===n},on:{click:function(e){return t.changeContentBtnClick(n)}}},[t._v(" "+t._s(e)+" ")])})),0)},r=[],s={props:{titleList:{type:Array,defualt:function(){return[]}}},data:function(){return{currentIndex:0}},methods:{changeContentBtnClick:function(t){this.currentIndex=t,this.$emit("changeContentBtnClick",t)}}},a=s,o=(i("6fdc"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"d5ff7aba",null);e["a"]=l.exports},"51c6":function(t,e,i){"use strict";var n=i("8957"),r=i.n(n);r.a},5644:function(t,e,i){"use strict";var n=i("b5ee"),r=i.n(n);r.a},"565a":function(t,e,i){"use strict";var n=i("6a98"),r=i.n(n);r.a},5954:function(t,e,i){},"5ce4":function(t,e,i){"use strict";var n=i("cdec");t.exports=function(t,e){e=e||{};var i={},r=["url","method","params","data"],s=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(r,(function(t){"undefined"!==typeof e[t]&&(i[t]=e[t])})),n.forEach(s,(function(r){n.isObject(e[r])?i[r]=n.deepMerge(t[r],e[r]):"undefined"!==typeof e[r]?i[r]=e[r]:n.isObject(t[r])?i[r]=n.deepMerge(t[r]):"undefined"!==typeof t[r]&&(i[r]=t[r])})),n.forEach(a,(function(n){"undefined"!==typeof e[n]?i[n]=e[n]:"undefined"!==typeof t[n]&&(i[n]=t[n])}));var o=r.concat(s).concat(a),l=Object.keys(e).filter((function(t){return-1===o.indexOf(t)}));return n.forEach(l,(function(n){"undefined"!==typeof e[n]?i[n]=e[n]:"undefined"!==typeof t[n]&&(i[n]=t[n])})),i}},"5e9c":function(t,e,i){"use strict";var n=i("cdec");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},"62d3":function(t,e,i){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},"640a":function(t,e,i){},"640e":function(t,e,i){},"648a":function(t,e,i){"use strict";var n=i("0cf1"),r=i.n(n);r.a},"6a98":function(t,e,i){},"6c26":function(t,e,i){},"6c6a":function(t,e,i){},"6fdc":function(t,e,i){"use strict";var n=i("640a"),r=i.n(n);r.a},7162:function(t,e,i){"use strict";var n=function(){var t,e=this,i=e.$createElement,n=e._self._c||i;return n("div",{on:{dblclick:e.dblclickFile}},[n("el-tooltip",{attrs:{content:e.file.modifyName+" 正在编辑中",disabled:!(e.isInWorkFolder&&e.otherUserIsWorking),placement:"right",effect:"light"}},[n("div",{ref:"file",staticClass:"yiyun_wenjian_list loding-mask-parent",class:{yiyun_wenjian_list_add:!e.isLocalIpfsCidValidate&&e.isClient},on:{contextmenu:function(t){return t.preventDefault(),t.stopPropagation(),e.fileRightBtnClick(t)}}},[e.isClient?n("div",{staticClass:"set-loding-mask-position"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isClient&&!e.isLocalIpfsCidValidate,expression:"isClient && !isLocalIpfsCidValidate"}],staticClass:"downloadIcon"})]):e._e(),n("div",{staticClass:"use-relative"},[n("div",[e.oneOf(e.file.extension,e.imgExtensionList)||e.oneOf(e.file.extension,e.VideoExtensionList)?e.oneOf(e.file.extension,e.imgExtensionList)?n("div",{ref:"file-img",staticClass:"defultImage-mid img_bg-mid",class:{toumin:e.showFileIconMask}},[n("div",{staticClass:"file_Im gbox-mid"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.file.alias,expression:"file.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):n("div",{ref:"file-img",staticClass:"defultImage-mid video-mid",class:{toumin:e.showFileIconMask}}):n("div",{ref:"file-img",staticClass:"defultImage-mid",class:(t={},t[e.file.extension+"-mid"]=!0,t.toumin=e.showFileIconMask,t)})]),e.isClient?[e.isInWorkFolder&&e.otherUserIsWorking?n("div",{staticClass:"eidtTip"},[e._v(" 工作中 ")]):e._e(),e.showDownloadMask&&!e.enableSelect?n("div",{staticClass:"downloadIcon",on:{click:function(t){return e.clientDownLoad(e.file,1)}}},[n("div",{staticClass:"readytodownload-icon"},[n("img",{staticClass:"imgjuzhong",attrs:{src:"/static/img/download.svg",alt:""}})])]):e._e(),e.loadingState.type!==e.DOWNLOADING||e.enableSelect?e._e():n("div",{staticClass:"downloadIcon"},[n("div",{staticClass:"progress-circle"},[n("LottieSvg",{staticClass:"bg-pic",attrs:{width:40,height:40,path:"static/img/lottie.download.svg.json"}}),n("el-progress",{attrs:{width:45,height:45,type:"circle","show-text":!1,percentage:e.loadingState.loadProgress,"stroke-width":3,color:"rgb(140, 0, 255)"}})],1)]),e.loadingState.type!==e.UPLOADING||e.enableSelect?e._e():n("div",{staticClass:"downloadIcon"},[n("div",{staticClass:"progress-circle"},[n("img",{staticClass:"bg-pic",style:{width:"24px"},attrs:{src:"/static/img/upload.png",alt:""}}),n("el-progress",{attrs:{width:45,height:45,type:"circle","show-text":!1,percentage:e.loadingState.loadProgress,"stroke-width":3,color:"rgb(140, 0, 255)"}})],1)]),e.fileInLocal&&e.isInWorkFolder&&!e.fileIsLoading?[e.isFileModified||e.isWorking&&!e.otherUserIsWorking?n("div",{staticClass:"file-left-top-icon commit",attrs:{title:"提交当前文件内容"},on:{click:function(t){return t.stopPropagation(),e.commitFile(t)}}},[e._v("同步")]):e.fileEnableShare&&!e.enableSelect?n("div",{staticClass:"yijianxietong isonselect",attrs:{title:"文件已协同"}},[n("i",{staticClass:"icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon"})]):e._e()]:e._e(),e.isFileModified||e.otherUserIsWorking||!e.enableSelect?e._e():n("div",{staticClass:"yijianxietong select-icon",class:{selected:e.selected},on:{click:function(t){return t.stopPropagation(),e.onSelect(t)}}},[e.selected?n("i",{staticClass:"el-icon-check"}):e._e()])]:e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isFileRightMenuVisible,expression:"isFileRightMenuVisible"}],staticClass:"contextmenu",style:{top:e.fileRightMenuTop+"px",left:e.fileRightMenuLeft+"px"}},[n("ul",{ref:"right-menu",staticClass:"rightMenu"},[e.fileInLocal&&e.isClient&&e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.openfileBtnClick(t)}}},[e._v("打开")]):e._e(),e.fileInLocal&&e.isClient&&!e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.openfileBtnClick(t)}}},[e._v("打开")]):e._e(),!e.fileInLocal&&e.isClient?n("li",{staticClass:"function-disabled",attrs:{title:"请先下载文件再打开"}},[e._v("打开")]):e._e(),e.fileInLocal&&e.isClient&&e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.openFileWith(t)}}},[e._v("打开方式")]):e._e(),e.fileInLocal&&e.isClient&&!e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.openFileWith(t)}}},[e._v("打开方式")]):!e.fileInLocal&&e.isClient?n("li",{staticClass:"function-disabled"},[e._v("打开方式")]):e._e(),e.isClient&&e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.copyFileBtnClick(t)}}},[e._v("创建文件副本")]):e._e(),e.isClient&&e.isInWorkFolder?n("li",{on:{click:function(t){return t.stopPropagation(),e.deleteFileClick(t)}}},[e._v("移动到回收站")]):e._e(),!e.isClient&&e.oneOf(e.file.extension,e.filePreviewList)?n("li",{on:{click:function(t){return t.stopPropagation(),e.filePreview(t)}}},[e._v("在线预览")]):e.isClient||e.oneOf(e.file.extension,e.filePreviewList)?e._e():n("li",{staticClass:"function-disabled",attrs:{title:"暂时不支持此类文件的预览"}},[e._v("在线预览")]),e.isClient&&e.isInWorkFolder&&e.fileInLocal?n("li",{on:{click:function(t){return t.stopPropagation(),e.checkMilestoneClick(t)}}},[e._v("查看历史版本")]):e._e()])]),n("strong",{ref:"file-name",staticClass:"yiyunwenjian_name",attrs:{title:e.file.archName+"."+e.file.extension}},[e._v(e._s(e.file.archName)),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.oneOf(e.file.extension,e.RecExtensionList)&&!e.oneOf(e.file.extension,e.VideoExtensionList),expression:"!oneOf(file.extension, RecExtensionList) && !oneOf(file.extension, VideoExtensionList)"}],staticClass:"file-extension-tip"},[e._v(e._s(e.file.extension))])]),e.isInWorkFolder&&e.file.createUserId!=e.currentUserId?n("span",{staticClass:"yiyunwenjian_infodesc"},[e._v(e._s(e.file.createUserName)+" 创建")]):e._e(),1!=e.file.version?n("span",{staticClass:"visontext",on:{click:e.checkMilestoneClick}},[e._v(" 版本 "+e._s(e.file.version)+" ")]):e._e(),e.isInWorkFolder?e._e():n("span",{staticClass:"yiyunwenjian_infodesc"},[e._v(e._s(e.file.nodeName))]),e.loadingState.type===e.UPLOADING?n("span",{staticClass:"yiyunwenjian_infodesc"},[e._v(e._s((e.loadingState.loadSize||"--")+" "+(e.loadingState.loadUnit||"")+" / "+(e.loadingState.totalSize||"--")+" "+(e.loadingState.unit||"")))]):e._e()],2)])])],1)},r=[],s=(i("c975"),i("ac1f"),i("1276"),i("3835")),a=i("1d40"),o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("LottieAnimation",t._b({staticClass:"lottie-svg"},"LottieAnimation",t.$attrs,!1))},l=[],c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.style?i("div",{ref:"lavContainer",style:t.style}):t._e()},u=[],h=(i("a9e3"),i("96cf"),i("1da1")),d=i("94f1"),p=i.n(d),f=i("3b6d"),m=i.n(f),v={props:{path:{required:!0},speed:{type:Number,required:!1,default:1},width:{type:Number,required:!1,default:-1},height:{type:Number,required:!1,default:-1},loop:{type:Boolean,required:!1,default:!0},autoPlay:{type:Boolean,required:!1,default:!0},loopDelayMin:{type:Number,required:!1,default:0},loopDelayMax:{type:Number,required:!1,default:0}},data:function(){return{name:"lottie-animation",rendererSettings:{scaleMode:"centerCrop",clearCanvas:!0,progressiveLoad:!1,hideOnTransparent:!0},anim:null,style:null}},mounted:function(){this.init()},methods:{loadJsonData:function(t){return Object(h["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.a.get("/"+t).then((function(t){return t.data}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},init:function(){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.style={width:-1!=t.width?"".concat(t.width,"px"):"100%",height:-1!=t.height?"".concat(t.height,"px"):"100%",overflow:"hidden",margin:"0 auto"},e.next=3,t.loadJsonData(t.path);case 3:i=e.sent,t.anim&&t.anim.destroy(),t.anim=p.a.loadAnimation({container:t.$refs.lavContainer,renderer:"svg",loop:t.loop,autoplay:t.autoPlay,animationData:i,rendererSettings:t.rendererSettings}),t.$emit("AnimControl",t.anim),t.anim.setSpeed(t.speed),t.loopDelayMin>0&&(t.anim.loop=!1,t.anim.autoplay=!1,t.executeLoop());case 9:case"end":return e.stop()}}),e)})))()},getRandomInt:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t},executeLoop:function(){var t=this;this.anim.play(),setTimeout((function(){t.anim.stop(),t.executeLoop()}),this.getRandomInt(this.loopDelayMin,0==this.loopDelayMax?this.loopDelayMin:this.loopDelayMax))}},watch:{path:function(t,e){this.init()}}},g=v,y=i("2877"),b=Object(y["a"])(g,c,u,!1,null,null,null),x=b.exports,S={components:{LottieAnimation:x}},C=S,k=(i("d326"),Object(y["a"])(C,o,l,!1,null,"1f22bc7a",null)),w=k.exports,V=i("b332"),P=["jpg","png","bmp","gif","jpeg"],T=["jpg","png","bmp","gif","jpeg","txt","zip","ae","ai","idml","indd","mp3","pr","ps","sketch","xmind","skp","rvt","rar","nwc","max","dxf","dwg","svfzip","map","supermap","pdf","ppt","pptx","excel","xlsx","xls","doc","docx","word","folder","folder1","folder2"],I=["avi","mov","wav","mp4"],_=["doc","docx","ppt","pptx","xls","xlsx"],O=["jpg","png","bmp","gif","jpeg","doc","docx","ppt","pptx","xls","xlsx","avi","mov","wav","mp4","txt","pdf","dwg"],A=function(t,e){return-1!==e.indexOf(t)},E=V["b"].DOWNLOADING,D=V["b"].UPLOADING,F=V["a"].WORKING,M=V["a"].NOT_WORKING,L={components:{LottieSvg:w},props:{file:{type:Object,default:function(){return{}}},enableSelect:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},clientDownLoad:Function,nodeFolder:{type:Object,default:function(){return{}}},currentFolder:{type:Object,default:function(){return{}}},localFileHashMap:{type:Object,default:function(){return{}}},loadingState:{type:Object,default:function(){return{}}},tempRightFileId:{type:String,default:""}},mounted:function(){this.rightMenuEl=this.$refs["right-menu"],this.fileItemeEL=this.$refs["file"],this.workspaceEl=document.querySelector("#workspace"),this.fileImgEl=this.$refs["file-img"],this.fileImgClass=this.fileImgEl.className},data:function(){return{isClient:a["a"].isClient,currentUserId:sessionStorage.userId,WORKING:F,NOT_WORKING:M,DOWNLOADING:E,UPLOADING:D,imgExtensionList:P,RecExtensionList:T,VideoExtensionList:I,office:_,filePreviewList:O,isFileRightMenuVisible:!1,fileRightMenuLeft:0,fileRightMenuTop:0,rightMenuEl:null,fileItemEl:null,workspaceEl:null,fileImgEl:null,fileImgClass:""}},computed:{fileStoreKey:function(){return Object(V["f"])(this.file,this.nodeFolder)},isInWorkFolder:function(){var t=this.file;this.currentFolder;return t.folderId===this.nodeFolder.id},isLocalIpfsCidValidate:function(){return!!this.localFileHashMap},localIpfsCid:function(){return this.localFileHashMap&&this.localFileHashMap[this.fileStoreKey]},isWorking:function(){return this.file.workStatus===F},showFileIconMask:function(){return!this.enableSelect&&(!!this.fileIsLoading||(!(!this.isInWorkFolder||!this.otherUserIsWorking)||!!this.showDownloadMask))},showDownloadMask:function(){return!this.fileIsLoading&&(this.isInWorkFolder?!this.otherUserIsWorking&&(!this.fileInLocal||(!!this.isFileNeedsUpdate||(this.isFileModified,!1))):!this.fileInLocal||!!this.isFileNeedsUpdate)},isFileRemoteUpdate:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0];n[1];return e&&r!==t},isFileNeedsUpdate:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0],a=n[1];return e&&r!==t&&"0"==a},isFileModified:function(){this.file.ipfsCid;var t=this.localIpfsCid,e=(t||"").split(";"),i=Object(s["a"])(e,2),n=(i[0],i[1]);return t&&"1"==n},fileEnableShare:function(){return this.file.ipfsCid===this.file.syncIpfsCid},fileIsDifferent:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0],a=n[1];return e&&"1"==a||e&&r!==t},fileIsLoading:function(){return this.loadingState.type===D||this.loadingState.type===E},fileInLocal:function(){return!!this.localIpfsCid},otherUserIsWorking:function(){var t=this.file,e=t.modifyUserId,i=t.workStatus;return i===F&&e!==this.currentUserId}},methods:{onSelect:function(){this.$emit("select",this.file)},commitFile:function(){this.isFileRightMenuVisible=!1,this.$emit("commitFile",this.file,this.fileImgClass)},toggleFileShareStatus:function(){this.$emit("change-file-status",this.file)},oneOf:A,openFileWith:function(){this.isFileRightMenuVisible=!1,this.$emit("openFileWith")},dblclickFile:function(){this.isClient&&this.isLocalIpfsCidValidate?this.$emit("dblclickFile"):this.isClient||this.filePreview()},fileRightBtnClick:function(t){var e=this;!this.isLocalIpfsCidValidate&&this.isClient||(this.isFileRightMenuVisible=!0,this.$nextTick((function(){e.rightMenuEl=e.$refs["right-menu"],e.fileItemEl=e.$refs["file"];var i=e.fileItemEl.getBoundingClientRect(),n=e.workspaceEl.clientHeight,r=e.workspaceEl.clientWidth,s=e.rightMenuEl.clientHeight,a=e.rightMenuEl.clientWidth,o=document.body.clientHeight,l=document.body.clientWidth-128;e.fileRightMenuLeft=t.clientX-i.left,e.fileRightMenuTop=t.clientY-i.top;var c=e.isInWorkFolder&&t.clientX+a>r,u=e.isInWorkFolder&&t.clientY+s>n,h=t.clientX+a>l,d=t.clientY+s>o;(c||h)&&(e.fileRightMenuLeft=e.fileRightMenuLeft-a),(u||d)&&(e.fileRightMenuTop=e.fileRightMenuTop-s),e.$emit("oneFileRightBtnClick",e.file.id)})))},closeFileRightMenu:function(){this.isFileRightMenuVisible=!1},openfileBtnClick:function(){this.isFileRightMenuVisible=!1,this.$emit("openfileBtnClick",this.file)},copyFileBtnClick:function(){this.isFileRightMenuVisible=!1,this.$emit("copyFileBtnClick",this.file)},deleteFileClick:function(){this.isFileRightMenuVisible=!1,this.$emit("deleteFileClick",this.file.id,this.file.createUserId,this.file.archName,this.file.ipfsCid)},checkMilestoneClick:function(){this.isFileRightMenuVisible=!1,this.$emit("checkMilestoneClick",this.file)},filePreview:function(){var t;t=A(this.file.extension,I)?1:A(this.file.extension,O)?2:0,this.$emit("filePreview",this.file,t),this.isFileRightMenuVisible=!1}},watch:{isFileRightMenuVisible:function(t){t?document.body.addEventListener("click",this.closeFileRightMenu):document.body.removeEventListener("click",this.closeFileRightMenu)},tempRightFileId:function(t){this.isFileRightMenuVisible=t===this.file.id}}},j=L,B=(i("0e15a"),i("51c6"),Object(y["a"])(j,n,r,!1,null,"1b637ced",null));e["a"]=B.exports},"73d8":function(t,e,i){},7440:function(t,e,i){"use strict";var n=i("afd2"),r=i.n(n);r.a},"745f":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShowCommitJudgeWindow?i("div",[i("div",{staticClass:"blur-bg"}),i("div",{staticClass:"commit-judge-box"},[i("div",{staticClass:"commit-wrap"},[i("div",{staticClass:"title-bar"},[t._m(0),i("div",{staticClass:"close-icon"},[i("close-btn",{attrs:{isCloseHover:t.isCommitCloseHover},on:{mouseEnterNow:function(e){t.isCommitCloseHover=!0},mouseLeaveNow:function(e){t.isCommitCloseHover=!1}},nativeOn:{click:function(e){return e.stopPropagation(),t.closeCommitJudge(e)}}})],1)]),i("div",{staticClass:"commit-operate-box"},[i("div",{staticClass:"file-info"},[i("div",{staticClass:"file-img",class:t.fileImgClass}),i("div",{staticClass:"file-name",attrs:{title:t.file.archName}},[t._v(t._s(t.file.archName))])]),i("div",{staticClass:"commit-part"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.remarkContent,expression:"remarkContent"}],staticClass:"remark-content",attrs:{name:"",id:"",placeholder:"创建备注"},domProps:{value:t.remarkContent},on:{input:function(e){e.target.composing||(t.remarkContent=e.target.value)}}}),i("div",{staticClass:"operate-btn"},[i("div",{staticClass:"cancel-btn",on:{click:function(e){return e.stopPropagation(),t.closeCommitJudge(e)}}},[t._v("取消")]),i("div",{staticClass:"commit-btn",on:{click:function(e){return e.stopPropagation(),t.finishCommitFile(e)}}},[t._v("完成提交")])])])])]),t._e(),t.isShowCoopWindow?i("div",{staticClass:"coop-wrap",class:{"mt-16":t.isShowCoopWindow}},[i("div",{staticClass:"title-bar"},[i("div",[t._v("文件协同至")]),i("div",{staticClass:"close-icon"},[i("close-btn",{attrs:{isCloseHover:t.isCoopCloseHover},on:{mouseEnterNow:function(e){t.isCoopCloseHover=!0},mouseLeaveNow:function(e){t.isCoopCloseHover=!1}},nativeOn:{click:function(e){return e.stopPropagation(),t.closeCoopWindow(e)}}})],1)]),i("div",{staticClass:"coop-people-list"},t._l(t.coopFolderList,(function(e){return i("div",{key:e.id,staticClass:"folder-item"},[i("div",{staticClass:"work-name"},[t._v(t._s(e.folderName))]),i("div",{staticClass:"use-flex ml-4"},[t._l(e.manageUser,(function(t){return i("people-item",{key:t.id,staticClass:"mr-8",attrs:{user:t}})})),0==e.manageUser.length?i("people-item",{attrs:{isShowEmptyAvatar:!0}}):t._e(),i("div",{staticClass:"vertical-line"}),i("div",{staticClass:"flex-1"},t._l(e.listUser,(function(t){return i("people-item",{key:t.id,attrs:{user:t}})})),1)],2)])})),0)]):t._e()])]):t._e()},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"left-title"},[i("div",{staticClass:"status-icon"}),i("div",{staticClass:"title-text"},[t._v("提交文件")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("img",{staticClass:"look-icon",attrs:{src:"/static/img/下拉箭头白色.svg"}})])}],s=i("f8c2"),a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"people-item",attrs:{title:t.user.cnName}},[i("div",{staticClass:"people-wrap",class:{"rt-0":t.isShowManagerMark}},[i("div",{staticClass:"people"},[Object.keys(t.user).length>0?i("img",{staticClass:"proj-avatarface",class:{"manager-mark":t.isShowManagerMark},attrs:{src:t._f("resolveAvator")(t.user.headImgUrl),alt:""}}):t.isShowEmptyAvatar?i("img",{staticClass:"proj-avatarface empty",attrs:{src:"/static/img/暂无2.svg",alt:""}}):i("div",{staticClass:"add-btn"},[i("i",{staticClass:"el-icon-plus proj-avatarface"})])]),i("div",{staticClass:"people-name",class:{"rt-2":t.isEnterEdit&&t.isShowManagerMark,"rt-4":t.isEnterEdit&&!t.isShowManagerMark}},[t._v(t._s(t.user.cnName))])])])},o=[],l={data:function(){return{}},computed:{},props:{user:{type:Object,default:function(){return{}}},isShowManagerMark:{type:Boolean,default:!1},isEnterEdit:{type:Boolean,default:!1},isShowEmptyAvatar:{type:Boolean,defualt:!1}},methods:{}},c=l,u=(i("648a"),i("2877")),h=Object(u["a"])(c,a,o,!1,null,"6e81672d",null),d=h.exports,p={data:function(){return{isCommitCloseHover:!1,isCoopCloseHover:!1,isShowCoopWindow:!1,isMileStone:!1,remarkContent:"",switchWidth:52}},components:{CloseBtn:s["a"],PeopleItem:d},mounted:function(){},props:{file:{type:Object,default:function(){return{}}},isShowCommitJudgeWindow:{type:Boolean,default:!1},coopFolderList:{type:Array,default:function(){return[]}},fileImgClass:{type:String,default:""}},methods:{closeCommitJudge:function(){this.$emit("closeCommitJudge"),this.isShowCoopWindow=!1},finishCommitFile:function(){this.$emit("finishCommitFile")},lookCoopTargetClick:function(){this.isShowCoopWindow=!0},closeCoopWindow:function(){this.isShowCoopWindow=!1}}},f=p,m=(i("832b"),i("bde5"),Object(u["a"])(f,n,r,!1,null,"6507fe99",null));e["a"]=m.exports},7945:function(t,e,i){},"7d48":function(t,e,i){"use strict";var n=i("cdec");t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(t){var n=t;return e&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=r(window.location.href),function(e){var i=n.isString(e)?r(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},"7f9f":function(t,e,i){},8005:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"folder",staticClass:"yiyun_wenjian_list lisy-group-item",on:{contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.showRightMenu(e)}}},[i("div",{staticClass:"defultImage-mid foldernew-mid"}),i("strong",{staticClass:"yiyunwenjian_name",attrs:{title:t.folder.folderName}},[t._v(t._s(t.folder.folderName))]),i("strong",{staticClass:"visontext"},[t._v(t._s(t.childNumUnderFolder)+"个项目")]),t.isClient?[(t.isWorkFolder,t._e()),t.isLoading?i("div",{staticClass:"downloadIcon"},[i("img",{staticClass:"keep-sync",attrs:{src:"/static/img/保存同步.svg",alt:""}})]):t._e()]:t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:t.rightMenuVisible,expression:"rightMenuVisible"}],ref:"right-menu",staticClass:"contextmenu",style:{top:t.rightMenuTop+"px",left:t.rightMenuLeft+"px"}},[i("ul",{staticClass:"rightMenu folderRightMenu"},[t.isClient?i("li",{on:{click:function(e){return e.stopPropagation(),t.downloadFolder(e)}}},[t._v("从云端更新")]):t._e()])])],2)},r=[],s=(i("c975"),i("b0c0"),i("1d40")),a={components:{},props:{folder:{type:Object,default:function(){return{}}},activeRightMenuId:String,isLoading:{type:Boolean,default:!1},isWorkFolder:{type:Boolean,default:!0},localFileHashMap:{type:Object,default:function(){return{}}},filterFileList:{type:Array,default:function(){return[]}},filterFolderList:{type:Array,default:function(){return[]}}},data:function(){return{isClient:s["a"].isClient,rightMenuVisible:!1,rightMenuLeft:0,rightMenuTop:0,rightMenuEl:null,folderItemEl:null,workspaceEl:null}},computed:{childNumUnderFolder:function(){return this.filterFileList.length+this.filterFolderList.length}},methods:{showRightMenu:function(t){var e=this;this.rightMenuVisible=!0,this.$nextTick((function(){e.rightMenuEl=e.$refs["right-menu"],e.folderItemEl=e.$refs["folder"];var i=!1;e.workspaceEl=document.querySelector("#workspace");var n=e.workspaceEl.clientHeight,r=e.workspaceEl.clientWidth;e.$route.name.indexOf("workspace")>=0&&(i=!0);var s=e.folderItemEl.getBoundingClientRect(),a=e.rightMenuEl.clientHeight,o=e.rightMenuEl.clientWidth,l=document.body.clientHeight,c=document.body.clientWidth-128;e.rightMenuLeft=t.clientX-s.left,e.rightMenuTop=t.clientY-s.top;var u=e.isWorkFolder&&t.clientX+o>r,h=e.isWorkFolder&&t.clientY+a>n,d=t.clientX+o>c,p=t.clientY+a>l;(u&&i||d)&&(e.rightMenuLeft=e.rightMenuLeft-o),(h&&i||p)&&(e.rightMenuTop=e.rightMenuTop-a),e.$emit("onRightMenuActive",e.folder.id)}))},downloadFolder:function(){this.$emit("onDownloadAll",this.folder)},closeRightMenu:function(){this.rightMenuVisible=!1},commitFolder:function(t){t.stopPropagation(),t.preventDefault(),this.$emit("commitFolder",this.folder)},deleteFolderClick:function(){this.$emit("deleteFolderClick",this.folder.id),this.closeRightMenu()}},watch:{rightMenuVisible:function(t){t?document.body.addEventListener("click",this.closeRightMenu):document.body.removeEventListener("click",this.closeRightMenu)},activeRightMenuId:function(t){this.rightMenuVisible=t===this.folder.id}}},o=a,l=(i("1e53"),i("2877")),c=Object(l["a"])(o,n,r,!1,null,"91acaac8",null);e["a"]=c.exports},"827b":function(t,e,i){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},"832b":function(t,e,i){"use strict";var n=i("5954"),r=i.n(n);r.a},"84a3":function(t,e,i){"use strict";(function(e){var n=i("cdec"),r=i("fc6b"),s={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function o(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=i("3c68")),t}var l={adapter:o(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){l.headers[t]=n.merge(s)})),t.exports=l}).call(this,i("4362"))},8957:function(t,e,i){},"8b98":function(t,e,i){"use strict";var n=i("c0e0"),r=i.n(n);r.a},"8c05":function(t,e,i){"use strict";var n=i("7f9f"),r=i.n(n);r.a},9133:function(t,e,i){"use strict";var n=i("e7e6");t.exports=function(t,e,i){var r=i.config.validateStatus;!r||r(i.status)?t(i):e(n("Request failed with status code "+i.status,i.config,null,i.request,i))}},9362:function(t,e,i){"use strict";var n=i("bbe5"),r=i.n(n);r.a},"94f1":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;"undefined"!==typeof navigator&&function(t,e){__WEBPACK_AMD_DEFINE_RESULT__=function(){return e(t)}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(window||{},(function(window){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}(function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1==e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+i[t]+i[e]+i[n]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t].length,n=0;n0||t>-1e-6&&t<0?n(t*e)/e:t}function E(){var t=this.props,e=A(t[0]),i=A(t[1]),n=A(t[4]),r=A(t[5]),s=A(t[12]),a=A(t[13]);return"matrix("+e+","+i+","+n+","+r+","+s+","+a+")"}return function(){this.reset=r,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=u,this.skewFromAxis=h,this.shear=c,this.scale=d,this.setTransform=p,this.translate=f,this.transform=m,this.applyToPoint=x,this.applyToX=S,this.applyToY=C,this.applyToZ=k,this.applyToPointArray=I,this.applyToTriplePoints=P,this.applyToPointStringified=O,this.toCSS=_,this.to2dCSS=E,this.clone=y,this.cloneFromProps=b,this.equals=g,this.inversePoints=T,this.inversePoint=V,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();(function(t,e){var i,n=this,r=256,s=6,a=52,o="random",l=e.pow(r,s),c=e.pow(2,a),u=2*c,h=r-1;function d(i,n,a){var h=[];n=!0===n?{entropy:!0}:n||{};var d=v(m(n.entropy?[i,y(t)]:null===i?g():i,3),h),b=new p(h),x=function(){var t=b.g(s),e=l,i=0;while(t=u)t/=2,e/=2,i>>>=1;return(t+i)/e};return x.int32=function(){return 0|b.g(4)},x.quick=function(){return b.g(4)/4294967296},x.double=x,v(y(b.S),t),(n.pass||a||function(t,i,n,r){return r&&(r.S&&f(r,b),t.state=function(){return f(b,{})}),n?(e[o]=t,i):t})(x,d,"global"in n?n.global:this==e,n.state)}function p(t){var e,i=t.length,n=this,s=0,a=n.i=n.j=0,o=n.S=[];i||(t=[i++]);while(s0?i=l:e=l}while(Math.abs(o)>s&&++c=r?v(t,h,e,i):0===d?h:m(t,s,s+l,e,i)}},t}();function extendPrototype(t,e){var i,n,r=t.length;for(i=0;i-.001&&a<.001}function e(e,i,n,r,s,a,o,l,c){if(0===n&&0===a&&0===c)return t(e,i,r,s,o,l);var u,h=Math.sqrt(Math.pow(r-e,2)+Math.pow(s-i,2)+Math.pow(a-n,2)),d=Math.sqrt(Math.pow(o-e,2)+Math.pow(l-i,2)+Math.pow(c-n,2)),p=Math.sqrt(Math.pow(o-r,2)+Math.pow(l-s,2)+Math.pow(c-a,2));return u=h>d?h>p?h-d-p:p-d-h:p>d?p-d-h:d-h-p,u>-1e-4&&u<1e-4}var i=function(){return function(t,e,i,n){var r,s,a,o,l,c,u=defaultCurveSegments,h=0,d=[],p=[],f=bezier_length_pool.newElement();for(a=i.length,r=0;ra?-1:1,c=!0;while(c)if(n[s]<=a&&n[s+1]>a?(o=(a-n[s])/(n[s+1]-n[s]),c=!1):s+=l,s<0||s>=r-1){if(s===r-1)return i[s];c=!1}return i[s]+(i[s+1]-i[s])*o}function l(t,e,i,n,r,s){var a=o(r,s),l=1-a,c=Math.round(1e3*(l*l*l*t[0]+(a*l*l+l*a*l+l*l*a)*i[0]+(a*a*l+l*a*a+a*l*a)*n[0]+a*a*a*e[0]))/1e3,u=Math.round(1e3*(l*l*l*t[1]+(a*l*l+l*a*l+l*l*a)*i[1]+(a*a*l+l*a*a+a*l*a)*n[1]+a*a*a*e[1]))/1e3;return[c,u]}var c=createTypedArray("float32",8);function u(t,e,i,n,r,s,a){r=r<0?0:r>1?1:r;var l=o(r,a);s=s>1?1:s;var u,h=o(s,a),d=t.length,p=1-l,f=1-h,m=p*p*p,v=l*p*p*3,g=l*l*p*3,y=l*l*l,b=p*p*f,x=l*p*f+p*l*f+p*p*h,S=l*l*f+p*l*h+l*p*h,C=l*l*h,k=p*f*f,w=l*f*f+p*h*f+p*f*h,V=l*h*f+p*h*h+l*f*h,T=l*h*h,P=f*f*f,I=h*f*f+f*h*f+f*f*h,O=h*h*f+f*h*h+h*f*h,_=h*h*h;for(u=0;u=0;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)n(t[e].ks.k);else for(s=t[e].ks.k.length,r=0;ri[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&void 0))}var s=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,n=t.length;for(i=0;i=0;i-=1)if("sh"==t[i].ty){if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,n=0;n0&&(u=!1),u){var h=createTag("style");h.setAttribute("f-forigin",n[i].fOrigin),h.setAttribute("f-origin",n[i].origin),h.setAttribute("f-family",n[i].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+n[i].fFamily+"; font-style: normal; src: url('"+n[i].fPath+"');}",e.appendChild(h)}}else if("g"===n[i].fOrigin||1===n[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c=l.t-a){o.h&&(o=l),m=0;break}if(l.t-a>t){m=v;break}v=x||t=x?C.points.length-1:0;for(u=C.points[k].point.length,c=0;c=T&&V=x)i[0]=b[0],i[1]=b[1],i[2]=b[2];else if(t<=S)i[0]=o.s[0],i[1]=o.s[1],i[2]=o.s[2];else{var E=s(o.s),D=s(b),F=(t-S)/(x-S);r(i,n(E,D,F))}else for(v=0;v=x?h=1:t1e-6?(n=Math.acos(r),s=Math.sin(n),a=Math.sin((1-i)*n)/s,o=Math.sin(i*n)/s):(a=1-i,o=i),l[0]=a*c+o*p,l[1]=a*u+o*f,l[2]=a*h+o*m,l[3]=a*d+o*v,l}function r(t,e){var i=e[0],n=e[1],r=e[2],s=e[3],a=Math.atan2(2*n*s-2*i*r,1-2*n*n-2*r*r),o=Math.asin(2*i*n+2*r*s),l=Math.atan2(2*i*s-2*n*r,1-2*i*i-2*r*r);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}function s(t){var e=t[0]*degToRads,i=t[1]*degToRads,n=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(n/2),o=Math.sin(e/2),l=Math.sin(i/2),c=Math.sin(n/2),u=r*s*a-o*l*c,h=o*l*a+r*s*c,d=o*s*a+r*l*c,p=r*l*a-o*s*c;return[h,d,p,u]}function a(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function o(t){var i;if("unidimensional"===this.propType)i=t*this.mult,e(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else{var n=0,r=this.v.length;while(n1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}}function l(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[0]=s.getValueAtTime(s.keyframes[0].t/r,0),n[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[s.pv,a.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=n=t;this.v.rotate(-Math.atan2(i[1]-n[1],i[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function r(){}function s(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function a(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,r=e.or.k.length;for(n=0;n=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break}(!s[n]||s[n]&&!r)&&(s[n]=point_pool.newElement()),s[n][0]=t,s[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,n,r,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,n,"o",a,o),this.setXYAt(r,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),r=1);var s,a=this._length-1,o=this._length;for(s=r;s=p[p.length-1].t-this.offsetTime)n=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],s=!0;else{var f,m,v=d,g=p.length-1,y=!0;while(y){if(f=p[v],m=p[v+1],m.t-this.offsetTime>t)break;v=m.t-this.offsetTime)u=1;else if(tn&&e>n)||(this._caching.lastIndex=r=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],c=s.length;for(a=0;an+i);else u=o.s*r<=n?0:(o.s*r-n)/i,h=o.e*r>=n+i?1:(o.e*r-n)/i,l.push([u,h])}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?1:this.s.v<0?0:this.s.v)+r,i=(this.e.v>1?1:this.e.v<0?0:this.e.v)+r,e>i){var s=e;e=i,i=s}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var a,o,l,c,u,h,d=this.shapes.length,p=0;if(i===e)for(a=0;a=0;a-=1)if(f=this.shapes[a],f.shape._mdf){for(m=f.localShapeCollection,m.releaseShapes(),2===this.m&&d>1?(g=this.calculateShapeEdges(e,i,f.totalShapeLength,x,p),x+=f.totalShapeLength):g=[[y,b]],l=g.length,o=0;o=1?v.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(v.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),v.push({s:0,e:f.totalShapeLength*(b-1)}));var S=this.addShapes(f,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var C=f.shape.paths.shapes[f.shape.paths._length-1];if(C.c){var k=S.pop();this.addPaths(S,m),S=this.addShapes(f,v[1],k)}else this.addPaths(S,m),S=this.addShapes(f,v[1])}this.addPaths(S,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;ie.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[r],d[n].v[r],i,o,v),v=!1):(c=bez.getNewSegment(d[n].v[r-1],d[n].v[r],d[n].o[r-1],d[n].i[r],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,l[r-1]),this.addSegmentFromArray(c,i,o,v),v=!1,i.c=!1),f+=a.addedLength,o+=1}if(d[n].c&&l.length){if(a=l[r-1],f<=e.e){var g=l[r-1].addedLength;e.s<=f&&e.e>=f+g?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[0],d[n].v[0],i,o,v),v=!1):(c=bez.getNewSegment(d[n].v[r-1],d[n].v[0],d[n].o[r-1],d[n].i[0],(e.s-f)/g,(e.e-f)/g,l[r-1]),this.addSegmentFromArray(c,i,o,v),v=!1,i.c=!1)}else i.c=!1;f+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[u][0],i.v[u][1],"i",u),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;n0)i-=1,this._elements.unshift(e[i]),1;this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(c):Math.ceil(c),d=(this.tr.v.props,this.pMatrix.props),p=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m,v,g=0;if(c>0){while(gh)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),g-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),g-=u)}n=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,s=this._currentCopies;while(s){if(e=this.elemsData[n].it,i=e[e.length-1].transform.mProps.v.props,v=i.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==g){for((0!==n&&1===r||n!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),m=0;m.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s){var t=0,e=this.data.k.k.length;while(t=o+lt||!f?(y=(o+lt-c)/l.partialLength,$=p.point[0]+(l.point[0]-p.point[0])*y,N=p.point[1]+(l.point[1]-p.point[1])*y,w.translate(-S[0]*P[r].an/200,-S[1]*M/100),u=!1):f&&(c+=l.partialLength,h+=1,h>=f.length&&(h=0,d+=1,m[d]?f=m[d].points:x.v.c?(h=0,d=0,f=m[d].points):(c-=l.partialLength,f=null)),f&&(p=l,l=f[h],v=l.partialLength));B=P[r].an/2-P[r].add,w.translate(-B,0,0)}else B=P[r].an/2-P[r].add,w.translate(-B,0,0),w.translate(-S[0]*P[r].an/200,-S[1]*M/100,0);for(P[r].l/2,E=0;E1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;var n,r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(n=0;ne)break;i+=1}return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){var e,i=FontManager.getCombinedCharacterCodes(),n=[],r=0,s=t.length;while(r=55296&&e<=56319?(e=t.charCodeAt(r+1),e>=56320&&e<=57343?(n.push(t.substr(r,2)),++r):n.push(t.charAt(r))):n.push(t.charAt(r)),r+=1;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,r,s,a,o,l,c=this.elem.globalData.fontManager,u=this.data,h=[],d=0,p=u.m.g,f=0,m=0,v=0,g=[],y=0,b=0,x=c.getFontByName(t.f),S=0,C=x.fStyle?x.fStyle.split(" "):[],k="normal",w="normal";for(i=C.length,e=0;e_&&" "!==I[e]?(-1===E?i+=1:e=E,P+=t.finalLineHeight||1.2*t.finalSize,I.splice(e,E===e?1:0,"\r"),E=-1,y=0):(y+=S,y+=T);P+=x.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Ab?y:b,y=-2*T,r="",n=!0,v+=1):r=D,c.chars?(o=c.getCharData(D,x.fStyle,c.getFontByName(t.f).fFamily),S=n?0:o.w*t.finalSize/100):S=c.measureText(r,t.f,t.finalSize)," "===D?F+=S+T:(y+=S+T+F,F=0),h.push({l:S,an:S,add:f,n:n,anIndexes:[],val:r,line:v,animatorJustifyOffset:0}),2==p){if(f+=S,""===r||" "===r||e===i-1){""!==r&&" "!==r||(f-=S);while(m<=e)h[m].an=f,h[m].ind=d,h[m].extra=S,m+=1;d+=1,f=0}}else if(3==p){if(f+=S,""===r||e===i-1){""===r&&(f-=S);while(m<=e)h[m].an=f,h[m].ind=d,h[m].extra=S,m+=1;f=0,d+=1}}else h[d].ind=d,h[d].extra=0,d+=1;if(t.l=h,b=y>b?y:b,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=b,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var M,L,j=u.a;a=j.length;var B,$,N=[];for(s=0;s0?r=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(r,s,a,o).get,c=0,u=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)c=h===u?n>=h?1:0:t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c=l(c);else if(3===d)c=h===u?n>=h?0:1:1-t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c=l(c);else if(4===d)h===u?c=0:(c=t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c<.5?c*=2:c=1-2*(c-.5)),c=l(c);else if(5===d){if(h===u)c=0;else{var p=h-u;n=e(t(0,n+.5-u),h-u);var f=-p/2+n,m=p/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===d?(h===u?c=0:(n=e(t(0,n+.5-u),h-u),c=(1+Math.cos(Math.PI+2*Math.PI*n/(h-u)))/2),c=l(c)):(n>=i(u)&&(c=t(0,e(n-u<0?e(h,1)-(u-n):h-n,1))),c=l(c));return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,n=this.s.v/e+i,r=this.e.v/e+i;if(n>r){var s=n;n=r,r=s}this.finalS=n,this.finalE=r}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:r}}(),pool_factory=function(){return function(t,e,i,n){var r=0,s=t,a=createSizedArray(s),o={newElement:l,release:c};function l(){var t;return r?(r-=1,t=a[r]):t=e(),t}function c(t){r===s&&(a=pooling.double(a),s*=2),i&&i(t),a[r]=t,r+=1}return o}}(),pooling=function(){function t(t){return t.concat(createSizedArray(t.length))}return{double:t}}(),point_pool=function(){function t(){return createTypedArray("float32",2)}return pool_factory(8,t)}(),shape_pool=function(){function t(){return new ShapePath}function e(t){var e,i=t._length;for(e=0;e0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(y,"url("+locationHref+"#"+v+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;var n=0,r=t.length;while(n=0;e--)this.elements[e]||(i=this.layers[e],i.ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t)}return this.createNull(t)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;ei&&"meet"===s||ni&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(ni&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(n>i&&"meet"===s||ni&&"meet"===s||n=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}},HybridRenderer.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var n=this.layers[e];if(n.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{var r,s,a,o=0;while(o=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t,e){var i=createTag("div");styleDiv(i);var n=createTag("div");styleDiv(n),"3d"===e&&(i.style.width=this.globalData.compSize.w+"px",i.style.height=this.globalData.compSize.h+"px",i.style.transformOrigin=i.style.mozTransformOrigin=i.style.webkitTransformOrigin="50% 50%",n.style.transform=n.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),i.appendChild(n);var r={container:n,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(r),r},HybridRenderer.prototype.build3dContainers=function(){var t,e,i=this.layers.length,n="";for(t=0;t=0;t--)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){var i=0,n=this.threeDElements.length;while(ia?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,n=(s-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,n=0),this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+n+",0,1)"},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,n=this.threeDElements.length;for(t=0;t1&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",a)),i.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,n=this.dynamicProperties.length;for(i=0;it?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t0)l=n.transformers[m].mProps._mdf||l,f--,m--;if(l){f=g-n.styles[u].lvl,m=n.transformers.length-1;while(f>0)p=n.transformers[m].mProps.v.props,d.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),f--,m--}}else d=t;if(h=n.sh.paths,a=h._length,l){for(o="",s=0;s=1?.99:e.h.v<=-1?-.99:e.h.v,b=o*y,x=Math.cos(g+e.a.v)*b+u[0],S=Math.sin(g+e.a.v)*b+u[1];l.setAttribute("fx",x),l.setAttribute("fy",S),c&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",S))}}function c(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(n.pElem.setAttribute("stroke-dasharray",r.dashStr),n.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&n.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return i}();function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(t,e,i,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;"rc"==e.ty?r=5:"el"==e.ty?r=6:"sr"==e.ty&&(r=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,r,t);var s,a,o=i.length;for(s=0;s=0;n-=1)i=t.transforms[n].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=s},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e=0;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){var e=this.processedElements,i=0,n=e.length;while(i=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this.audio.volume(t)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextElement),SVGTextElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextElement.prototype.buildTextContents=function(t){var e=0,i=t.length,n=[],r="";while(et?this.textSpans[t]:createNS(l?"path":"text"),b<=t&&(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=a,this.layerElement.appendChild(a)),a.style.display="inherit"),u.reset(),u.scale(i.finalSize/100,i.finalSize/100),d&&(o[t].n&&(p=-v,f+=i.yOffset,f+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,u,o[t].line,p,f),p+=o[t].l||0,p+=v),l?(y=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily),g=y&&y.data||{},c=g.shapes?g.shapes[0].it:[],d?h+=this.createPathShape(u,c):a.setAttribute("d",this.createPathShape(u,c))):(d&&a.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));d&&a&&a.setAttribute("d",h)}else{var x=this.textContainer,S="start";switch(i.j){case 1:S="end";break;case 2:S="middle";break}x.setAttribute("text-anchor",S),x.setAttribute("letter-spacing",v);var C=this.buildTextContents(i.finalText);for(e=C.length,f=i.ps?i.ps[1]+i.ascent:0,t=0;t1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(d=this.searchProcessedElement(t[o]),d?e[o]=i[d-1]:t[o]._render=a,"fl"==t[o].ty||"st"==t[o].ty||"gf"==t[o].ty||"gs"==t[o].ty)d?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],r),t[o]._render&&n.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"==t[o].ty){if(d)for(c=e[o].it.length,l=0;l=u?f<0?n:r:n+p*Math.pow((s-t)/f,1/i),h[d++]=a,o+=256/(l-1);return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(n),s=i*Math.sin(n);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGEffects(t){var e,i,n=t.data.ef?t.data.ef.length:0,r=createElementID(),s=filtersFactory.createFilter(r),a=0;for(this.filters=[],e=0;eo&&"xMidYMid slice"===l||a=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,n,r=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t=0;s-=1){if(l=this.searchProcessedElement(t[s]),l?e[s]=i[l-1]:t[s]._shouldRender=n,"fl"==t[s].ty||"st"==t[s].ty||"gf"==t[s].ty||"gs"==t[s].ty)l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],f),d.push(e[s].style);else if("gr"==t[s].ty){if(l)for(o=e[s].it.length,a=0;a=0;r-=1)"tr"==e[r].ty?(s=i[r].transform,this.renderShapeTransform(t,s)):"sh"==e[r].ty||"el"==e[r].ty||"rc"==e[r].ty||"sr"==e[r].ty?this.renderPath(e[r],i[r]):"fl"==e[r].ty?this.renderFill(e[r],i[r],s):"st"==e[r].ty?this.renderStroke(e[r],i[r],s):"gf"==e[r].ty||"gs"==e[r].ty?this.renderGradientFill(e[r],i[r],s):"gr"==e[r].ty?this.renderShape(s,e[r].it,i[r].it):e[r].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,n,r,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(r=0;r=1?.99:e.h.v<=-1?-.99:e.h.v,u=o*c,h=Math.cos(l+e.a.v)*u+s[0],d=Math.sin(l+e.a.v)*u+s[1],p=r.createRadialGradient(h,d,0,s[0],s[1],o);var f,m=t.g.p,v=e.g.c,g=1;for(f=0;f=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),a=[r[0]/s,r[1]/s,r[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var h;for(e=this.comp.threeDElements.length,t=0;t=0;i-=1)e[i].animation.destroy(t)}function w(t,e,i){var n,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=r.length;for(n=0;nthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,n=this.animationData.layers,r=n.length,s=t.layers,a=s.length;for(i=0;ithis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,i){i&&this.name!=i||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,i){this.goToAndStop(t,e,i),this.play()},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===typeof t[0]){var i,n=t.length;for(i=0;ii){var n=i;i=e,e=n}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"===typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,n=Math.min(t.length,e.length),r=0;for(i=0;i.5?c/(2-a-o):c/(a+o),a){case n:e=(r-s)/c+(r1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,n,r=t[0],s=t[1],a=t[2];if(0===s)e=i=n=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,r+1/3),i=hue2rgb(l,o,r),n=hue2rgb(l,o,r-1/3)}return[e,i,n,t[3]]}function linear(t,e,i,n,r){if(void 0!==n&&void 0!==r||(n=e,r=i,e=0,i=1),i=i)return r;var a=i===e?0:(t-e)/(i-e);if(!n.length)return n+(r-n)*a;var o,l=n.length,c=createTypedArray("float32",l);for(o=0;o1){for(n=0;n1?1:e<0?0:e;var a=t(e);if($bm_isInstanceOfArray(r)){var o,l=r.length,c=createTypedArray("float32",l);for(o=0;odata.k[e].t&&tdata.k[e+1].t-t?(i=e+2,n=data.k[e+1].t):(i=e+1,n=data.k[e].t);break}}-1===i&&(i=e+1,n=data.k[e].t)}else i=0,n=0;var s={};return s.index=i,s.time=n/elem.comp.globalData.frameRate,s}function key(t){var e,i,n;if(!data.k.length||"number"===typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=data.k[t].hasOwnProperty("s")?data.k[t].s:data.k[t-1].e;for(n=r.length,i=0;ic.length-1)&&(e=c.length-1),r=c[c.length-1-e].t,n=u-r),"pingpong"===t){var h=Math.floor((l-r)/n);if(h%2!==0)return this.getValueAtTime((n-(l-r)%n+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(r/this.comp.globalData.frameRate,0),p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-r)%n+r)/this.comp.globalData.frameRate,0),m=Math.floor((l-r)/n);if(this.pv.length){for(o=new Array(d.length),a=o.length,s=0;s=u)return this.pv;if(i?(n=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-u),r=u+n):((!e||e>c.length-1)&&(e=c.length-1),r=c[e].t,n=r-u),"pingpong"===t){var h=Math.floor((u-l)/n);if(h%2===0)return this.getValueAtTime(((u-l)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(r/this.comp.globalData.frameRate,0),f=this.getValueAtTime((n-(u-l)%n+u)/this.comp.globalData.frameRate,0),m=Math.floor((u-l)/n)+1;if(this.pv.length){for(o=new Array(d.length),a=o.length,s=0;s1?(a-s)/(e-1):1,l=0,c=0;i=this.pv.length?createTypedArray("float32",this.pv.length):0;while(la){var u=o,h=i.c&&o===l-1?0:o+1,d=(a-c)/s[o].addedLength;n=bez.getPointInSegment(i.v[u],i.v[h],i.o[u],i.i[h],d,s[o]);break}c+=s[o].addedLength,o+=1}return n||(n=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),n},vectorOnPath:function(t,e,i){t=1==t?this.v.c?0:.999:t;var n=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),s=r[0]-n[0],a=r[1]-n[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));if(0===o)return[0,0];var l="tangent"===i?[s/o,a/o]:[-a/o,s/o];return l},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],l),extendPrototype([u],c),c.prototype.getValueAtTime=o,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,n,r){var s=h(t,e,i,n,r);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}})(),function(){function t(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0}TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var n={};return this.copyData(n,t),n.t=i.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=t}();var ShapePathInterface=function(){return function(t,e,i){var n=e.sh;function r(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return r.path}var s=propertyGroupFactory(r,i);return n.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(r,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r}}(),propertyGroupFactory=function(){return function(t,e){return function(i){return i=void 0===i?1:i,i<=0?t:e(i-1)}}}(),PropertyInterface=function(){return function(t,e){var i={_name:t};function n(t){return t=void 0===t?1:t,t<=0?i:e(--t)}return n}}(),ShapeExpressionInterface=function(){function t(t,e,a){var d,p=[],f=t?t.length:0;for(d=0;d1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!==typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i0?r.map((function(t){return Object(g["b"])(t)})):[],this.searchCoopFileList=s.length>0?s.map((function(t){return Object(g["b"])(t)})):[],this.currentBtnIndex=0):this.$notify({type:["error"],message:"查询数据失败, 请稍后重试。"});case 10:case"end":return t.stop()}}),t,this)}))),500),notPicIcon:function(){return!this.oneOf(this.currentSelectTempFile.extension,x["g"])&&!this.oneOf(this.currentSelectTempFile.extension,x["c"])},picIcon:function(){return this.oneOf(this.currentSelectTempFile.extension,x["g"])},createTemplateFile:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s,a,o,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.currentSelectTempFile.fileName,n=t.currentSelectTempFile.extension,r=t.workFileList.findIndex((function(t){return t.archName===i&&t.extension==n})),!(r>-1)){e.next=6;break}return t.$notify({type:"warning",message:"文件名重复 请重新输入。",offset:100,duration:2500}),e.abrupt("return");case 6:return s=new Date,a=t.currentFolder.folderPath?t.currentFolder.folderPath:"",o={id:t.currentSelectTempFile.id,projId:t.projectId,folderId:t.currentNodeFolder.id,archName:i,extension:n,ipfsCid:t.currentSelectTempFile.hash,fileSize:t.currentSelectTempFile.fileSize,folderLevelId:t.currentNodeFolder.levelId,status:0,workStatus:0,commonStatus:0,deleted:t.currentSelectTempFile.deleted,milestone:0,version:0,showUrl:"",createUserId:t.userId,createTime:s,modifyUserId:t.userId,modifyTime:s,isShowRecycle:0,relativePath:a},e.next=11,b["a"](o);case 11:if(l=e.sent,0!=l.Code){e.next=19;break}return t.fetchFolderFiles(),t.isShowNewTemplateFileDialog=!1,t.$notify({message:"文件 “".concat(i,"” 创建成功。"),type:"success",offset:100,duration:2500}),e.abrupt("return");case 19:return t.isShowNewTemplateFileDialog=!1,t.$notify({message:"文件 “".concat(i,"” 创建失败 请稍后重试。"),type:"error",offset:100,duration:2500}),e.abrupt("return");case 22:case"end":return e.stop()}}),e)})))()},fileTempClick:function(t){this.isShowNewTemplateFileDialog=!0,this.currentSelectTempFile=Object(a["a"])({},t)},filePreview:function(t,e){var i=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,l,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,b["f"](sessionStorage.companyId);case 2:if(r=n.sent,s={API:"company/queryFileOnlineUrlByCompanyId",Action:"打开文件",CompanyName:sessionStorage.CompanyName,Subject:t.archName+"."+t.extension,Source:sessionStorage.client,ProjectName:sessionStorage.projName},i.$fetchApi("operation/record",s),a="http://"+r.Data,2!=e){n.next=14;break}o="http://www.lockingos.org:8012/onlinePreview?url=",l="?fullfilename="+t.archName+"."+t.extension,console.log(o+a+t.ipfsCid+l),c=o+encodeURIComponent(a+t.ipfsCid+l)+"&officePreviewType=pdf",window.open(c,""),n.next=20;break;case 14:if(1!=e){n.next=19;break}i.isVideo=!0,i.videoSrc=a+t.ipfsCid,n.next=20;break;case 19:return n.abrupt("return");case 20:case"end":return n.stop()}}),n)})))()},videoClose:function(){this.videoSrc=""},deleteFolderClick:function(t){var e=this.isClient,i=this.subFolderList,n=this.workFileList,r=this.subFolderMap,a=this.userId,l=this.localFileHashMap,c=this.reverseLocalFileHashMap,u=r[t].folderName,h=this,d=[];function p(t){var e=i.filter((function(e){return e.parentFolderPath==t}));if(0==e.length){var a=n.filter((function(e){return e.relativePath==t})),o=r[t].parentFolderPath;if(""!==o){var l=n.filter((function(t){return t.relativePath==o}));a.push.apply(a,Object(s["a"])(l))}d.push.apply(d,Object(s["a"])(a))}e.forEach((function(t){p(t.id)}))}this.$confirm("确认删除文件夹“".concat(u,"”吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:p(t),n=d.length,console.log("要删除的文件总数是",n),r=d.find((function(t){return 2==t.workStatus&&t.modifyUserId!==a})),r?h.$notify({message:"“".concat(u,"”文件夹下存在“工作中”文件,删除失败。"),type:"error",offset:100,duration:2500}):(s=0,d.forEach(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e&&delete l[c[i.ipfsCid]],t.next=3,b["c"](i.id);case 3:r=t.sent,s=0==r.Code?s+1:s,s==n&&h.$notify({message:"“".concat(u,"”文件夹已删除。"),type:["success"],duration:2500}),h.fetchFolderFiles();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 5:case"end":return i.stop()}}),i)}))))},getExchangeNodesChild:function(){var t=this,e={};this.exchangeNodeListsInCoop.forEach(function(){var i=Object(o["a"])(regeneratorRuntime.mark((function i(n){var r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:r={},r.realChildFileLists=[],r.realChildFolderLists=[],r.realChildFolderLists=t.filterFoldersInTarget(t.coopSubFolderList,n,n,!0),r.realChildFileLists=t.filterFilesInTarget(t.cooperationFileList,n,n,!0),e[n.id]=r,t.exchangeNodeInfoMap=e;case 7:case"end":return i.stop()}}),i)})));return function(t){return i.apply(this,arguments)}}())},dealWithCoopFiles:function(t,e){var i=[],n={},r=function(t){var e=t.relativePath,r=e.split("/");r.forEach((function(t,e){var s=r.slice(0,e+1).join("/");if(!n[s]){var a=new x["d"](s),o=a.parentFolderPath;i.push(a),n[s]=a,n[o]&&n[o].childCount++}}))};return t.forEach((function(t){var e=[t.nodeName,t.relativePath].filter((function(t){return t})).join("/");t.relativePath=e,r(t)})),e.forEach(r),i},oneFileRightBtnClick:function(t){this.tempRightFileId=t,this.rightMenuvisible=!1},filterFilesInWork:function(t){var e=this.currentFolder.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.relativePath===i}))},filterFilesInCoop:function(t){var e=this.currentFolderInCoop.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.relativePath==i}))},filterFilesInTarget:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.topFolderInCoop,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.folderPath,s=void 0===r?"":r;return t.filter((function(t){if(t.relativePath==s){if(!n)return!0;if(t.folderId==i.id)return!0}return!1}))},filterFoldersInWork:function(t){var e=this.currentFolder.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.parentFolderPath===i}))},filterFoldersInCoop:function(t){var e=this.currentFolderInCoop.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.parentFolderPath==i}))},filterFoldersInTarget:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.topFolderInCoop,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.folderPath,s=void 0===r?"":r;return t.filter((function(t){if(t.parentFolderPath==s){if(!n)return!0;if(t.topFolderId==i.id)return!0}return!1}))},oneOf:function(t,e){return-1!==e.indexOf(t)},initWorkspaceDropEvent:function(){var t=document.getElementById("workspace");t.addEventListener("dragenter",this.stopPropagation),t.addEventListener("dragover",this.stopPropagation),t.addEventListener("dragleave",this.stopPropagation),t.addEventListener("drop",this.fileDropEvent,!1)},fileDropEvent:function(t){var e=Object(S["propertyOf"])(t)("dataTransfer.files");if(e&&0!==e.length&&"copyLink"!=t.dataTransfer.effectAllowed){var i=Array.from(e).map((function(t){return t.path}));this.clientUpload(i)}},stopPropagation:function(t){t.stopPropagation(),t.preventDefault()},onfileDragStart:function(e,i){var n=this;if(i.dataTransfer.effectAllowed="move",this.stopPropagation(i),this.isClient){var r=e.nodeName,s=e.id,a=!!r,o=Object(x["f"])(e,this.currentNodeFolder);if(this.localFileHashMap[o]){if(!a){if(e.workStatus===V&&sessionStorage.userId!==e.modifyUserId)return;b["b"](s,V).then((function(t){0===t.Code&&(e.workStatus=V,e.modifyUserId=sessionStorage.userId,n.fetchFolderFiles())}))}var l=t.electron.ipcRenderer;l.invoke("project-file-dnd","".concat(this.localWorkspacePrefix,"\\").concat(o))}}},intervalTask:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.fetchFolderFiles();case 2:t.timerIns&&setTimeout((function(){t.intervalTask()}),3e3);case 3:case"end":return e.stop()}}),e)})))()},onscroll:function(){},listenBottomHeight:function(){var t=document.getElementById("coopFileBox")?document.getElementById("coopFileBox").offsetHeight:0;this.isShowShadow=t>259},onSocketFileChangeDetected:function(t){var e=t.data;try{var i=JSON.parse(e);Object.entries(i).forEach((function(t){var e=Object(r["a"])(t,2),n=e[0],s=e[1];1===s.split(";").length&&(i[n]="".concat(s,";0"))})),this.localFileHashMap=i,this.fetchFolderFiles()}catch(n){console.log("socket file change message error:",n)}},addLocalFileRecord:function(t,e){this.localFileHashMap=Object(a["a"])(Object(a["a"])({},this.localFileHashMap),{},Object(n["a"])({},t,"".concat(e,";0")))},updateFileLoadState:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0;t.id;var c={type:e,loadProgress:i,loadSize:r,totalSize:o,unit:l,loadUnit:s,fileRelativePath:t.relativePath||""};this.localFileLoadStateMap=Object(a["a"])(Object(a["a"])({},this.localFileLoadStateMap),{},Object(n["a"])({},t.id,c))},removeFileLoadingState:function(t){console.log("going to remove file: ".concat(t)),delete this.localFileLoadStateMap[t],this.localFileLoadStateMap=Object(a["a"])({},this.localFileLoadStateMap)},intoSubFolder:function(t,e){var i=this;0==e?(this.currentFolder=t,this.breadcrumbFolderList.push(t)):1==e&&(this.currentFolderInCoop=t,this.breadcrumbFolderListInCoop.push(t),this.$nextTick((function(){i.listenBottomHeight()})))},fetchFolderFiles:Object(S["throttle"])(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.currentNodeFolder,i=this.userId,e&&e.id){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,b["d"](e.id,i);case 6:if(n=t.sent,n){t.next=9;break}return t.abrupt("return");case 9:if(this.currentNodeFolder.id===e.id){t.next=11;break}return t.abrupt("return");case 11:this.workFileList=n.file,this.subFolderMap=Object(a["a"])(Object(a["a"])({},this.subFolderMap),n.folderMap),this.resolveUploadFileList(this.workFileList),this.workSubFolderList=n.folder,this.tempWorkSubFolderList=this.tempWorkSubFolderList.filter((function(t){return!n.folder.some((function(e){return e.id===t.id}))})),this.cooperationFileList=n.coordinationFiles.concat(n.nestCoordinationFiles),this.coopSubFolderList=this.dealWithCoopFiles(n.coordinationFiles,n.nestCoordinationFiles),this.resolveUploadFileList(this.cooperationFileList);case 19:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),1e3),resolveUploadFileList:function(t){var e=this;this.uploadFileList=this.uploadFileList.filter((function(i){var n=t.find((function(t){return t.relativePath===i.relativePath&&t.archName===i.archName&&t.extension===i.extension}));return e.removeFileLoadingState(i.id),!n}))},createSubFolder:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.folderGroupData.FolderName){e.next=3;break}return g["d"].warning("请输入文件夹名称!"),e.abrupt("return");case 3:if(i=t.folderGroupData.FolderName,n=t.currentFolder.folderPath||"",r=n?"".concat(n,"/").concat(i):i,!t.subFolderMap[r]){e.next=9;break}return g["d"].warning("创建失败,已存在同名文件夹!"),e.abrupt("return");case 9:s=new x["d"](r),t.subFolderMap[r]=s,t.tempWorkSubFolderList.push(s),g["d"].success("文件夹创建成功!"),t.dialogNewFolderGroup=!1;case 14:case"end":return e.stop()}}),e)})))()},newCreateFolderGroup:function(){this.dialogNewFolderGroup=!0,this.folderGroupData=P()},clearCurrentFolderFiles:function(){this.uploadFileList=[],this.workFileList=[],this.workSubFolderList=[],this.tempWorkSubFolderList=[],this.cooperationFileList=[],this.localFileLoadStateMap={},this.localFolderLoadStateMap={},this.tempRightFileId=""},clickBreadcrumb:function(t,e){var i=this;if(0==e){var n=-1===t?this.currentNodeFolder:this.breadcrumbFolderList[t];this.currentFolder=n,this.breadcrumbFolderList=this.breadcrumbFolderList.slice(0,t+1)}else if(1==e){var r=-1===t?this.currentNodeFolder:this.breadcrumbFolderListInCoop[t];this.currentFolderInCoop=r,this.isShowStartNodeFolders=-1===t,this.breadcrumbFolderListInCoop=this.breadcrumbFolderListInCoop.slice(0,t+1),this.$nextTick((function(){i.listenBottomHeight()}))}},selectSystemFiles:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isClient){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,v["a"].chooseFiles();case 4:if(i=e.sent,i){e.next=7;break}return e.abrupt("return");case 7:t.clientUpload(i);case 8:case"end":return e.stop()}}),e)})))()},selectSystemFolders:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isClient){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,v["a"].chooseFolders();case 4:if(i=e.sent,i){e.next=7;break}return e.abrupt("return");case 7:t.clientUpload(i);case 8:case"end":return e.stop()}}),e)})))()},generateVirtualFolder:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t){var i={},n=[],r=this.subFolderMap;Object(x["e"])(t,e,(function(t){if(!r[t]){var e=new x["d"](t);i[e.folderPath]=e,n.push(e)}})),this.subFolderMap=Object(a["a"])(Object(a["a"])({},r),i),this.tempWorkSubFolderList=this.tempWorkSubFolderList.concat(n)}},clientUpload:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s,c,u,h,d,p,f,m,y,b,x;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Promise.all(t.map((function(t){return v["a"].analyzeSystemPath(t)})));case 2:if(n=i.sent,r=Object(S["flatten"])(n),s=e.currentNodeFolder,c=s.folderName,u=s.levelId,h=s.id,d=e.currentFolder.folderPath,p=void 0===d?"":d,f=e.workFileList,m=r.some((function(t){var e=t.fileName,i=t.extension,n=t.relativePath,r=i?"".concat(e,".").concat(i):e,s="".concat(p?"".concat(p,"\\"):"").concat(n?"".concat(n):"").replace(/(\\)+/g,"/");return f.some((function(t){return s===t.relativePath&&"".concat(t.archName).concat(t.extension?".".concat(t.extension):"")===r}))})),!m){i.next=21;break}return y=!1,i.prev=10,i.next=13,l["default"].prototype.$confirm("监测到文件夹存在同名文件,是否继续上传并覆盖同名文件?","",{showClose:!1,type:"warning"});case 13:y=!0,i.next=19;break;case 16:i.prev=16,i.t0=i["catch"](10),console.log("user canceled");case 19:if(y){i.next=21;break}return i.abrupt("return");case 21:b={tempNumCount:0},x=r?r.length:0,r.forEach((function(t){var i=t.fullPath,n=t.fileName,r=t.extension,s=t.relativePath;e.generateVirtualFolder(s,p);var l=sessionStorage.getItem("accountName"),d={creator:l,projectId:e.projectId,projectName:e.projectName,folderId:h,folderName:c,folderLevelId:u,distFileRelativePath:[p,s].filter((function(t){return t})).join("\\").replace(/(\\)+/g,"/"),fileName:n,fileExtension:r,sourceFilePath:i,fileList:f,onSuccess:function(t){var i=t.ArchName,n=t.IpfsCid,r=t.Extension,s=t.RelativePath,a="".concat(c,"\\").concat(s?"".concat(s.replace(/\//g,"\\"),"\\"):"").concat(i).concat(r?".".concat(r):"");e.addLocalFileRecord(a,n),e.removeFileLoadingState(t.Id),e.fetchFolderFiles()},onProgress:function(t,i){var n=t.process,r=t.hash,s=t.size,a=t.currentSize,o=t.currentUnit,l=t.unit,c=Object(g["b"])(i);r||e.updateFileLoadState(c,w,n,a,o,s,l),-1!==c.id.indexOf("upload:")&&(e.uploadFileList.find((function(t){return t.id===c.id}))||e.uploadFileList.push(c))},onError:function(t,i){e.removeFileLoadingState(i.Id),e.uploadFileList=e.uploadFileList.filter((function(t){return t.id!==i.Id}))},successAllHandler:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}()};v["a"].uploadFile(Object(a["a"])(Object(a["a"])({},d),{},{totalReadyUploadNum:x,tempNumWrap:b}))}));case 24:case"end":return i.stop()}}),i,null,[[10,16]])})))()},clientDownLoad:function(t){var e=this;if(this.isClient){var i=t.ipfsCid,n=t.archName,r=t.extension,s=(t.folderId,t.nodeName),a=t.relativePath,o=(this.folderMap,this.currentNodeFolder.folderName),l="".concat(n).concat(r?".".concat(r):""),c=!!s,u="".concat(o).concat(c?"\\协作文件":""),h="".concat(u).concat(a?"\\".concat(a):"").replace(/\//g,"\\"),d=Object(x["f"])(t,this.currentNodeFolder),p=function(){e.removeFileLoadingState(t.id)};this.updateFileLoadState(t,k,0),v["a"].downloadFile(i,sessionStorage.projName,l,h,(function(r,s){console.log("receive download file message:",r,s);try{var a=JSON.parse(r.data),o=a.process;a.hash;if(e.updateFileLoadState(t,k,o),100!==o)return;e.addLocalFileRecord(d,i),e.removeFileLoadingState(t.id),e.$notify({type:["success","download"],title:"文件已下载",message:"".concat(n)}),s.close()}catch(l){console.error("socket-download-file parse data have error:",l),p(),s.close()}}),p)}},downloadFolder:function(t){var e=this;this.workFileList.forEach((function(i){0===i.relativePath.indexOf(t.folderPath)&&e.clientDownLoad(i)}))},openNativeCurrentFolder:function(){var t=this.currentNodeFolder.folderName,e="".concat(this.localWorkspacePrefix,"\\").concat(t);v["a"].openFolder(e)},closeCommitJudge:function(){var t=this;this.$confirm("确定取消此次文件 “".concat(this.commitJudgeFile.archName,"” 的提交吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.commitFileControlIpfsCid="",t.isShowCommitJudgeWindow=!1,t.comitJudgeCom=null})).catch((function(t){console.log(t)}))},finishCommitFile:function(){if(this.commitJudgeCom=this.$refs["commit-judge"],this.commitJudgeCom&&0==this.commitJudgeCom.remarkContent.length)this.$notify({type:"warning",message:"提交备注不能为空"});else{var t=this.commitJudgeFile,e=Object(x["f"])(t,this.currentNodeFolder),i=this.localFileHashMap[e],n=t.ipfsCid,s=i.split(";"),a=Object(r["a"])(s,2),o=a[0],l=a[1],c=i&&"1"==l&&o!==n;console.log(c),this.commitFile(c),this.isShowCommitJudgeWindow=!1,this.commitFileControlIpfsCid="",this.comitJudgeCom=null}},showCommitWindow:function(t,e){this.isShowCommitJudgeWindow=!0,this.commitJudgeFile=t,this.fileImgClass=e},toggleFileShareStatus:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=2==t.status?1:2,r=2===n?"开启":"关闭",i.next=4,e.$fetchApi("file/changeFileStatus",{fileId:t.id,status:n});case 4:if(s=i.sent,Object(C["c"])(s),!s.Code){i.next=8;break}return i.abrupt("return");case 8:g["d"].success("文件已".concat(r,"协同")),t.status=n;case 10:case"end":return i.stop()}}),i)})))()},commitFile:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s,l,c,u,h,d,p;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e.isClient){i.next=2;break}return i.abrupt("return");case 2:return n=e.commitJudgeFile,i.next=5,b["h"](n.id);case 5:r=i.sent,s=r.Data||{},Object.keys(s).length>0&&(s=Object(g["b"])(s)),e.commitFileControlIpfsCid=s.currentIpfsCid?s.currentIpfsCid:"",l=e.currentNodeFolder,c=l.folderName,l.levelId,l.id,n.archName,n.extension,u=n.id,h=n.relativePath,e.updateFileLoadState(n,w,0),d=function(){e.removeFileLoadingState(n.id)},p=Object(x["f"])(n,e.currentNodeFolder),e.uploadCommandInfo,v["a"].updateFile(n,e.localWorkspacePrefix,e.projectName,"".concat(c).concat(h?"\\".concat(h).replace(/\//g,"\\"):""),e.commitFileControlIpfsCid,e.commitJudgeCom.remarkContent,sessionStorage.getItem("accountName"),e.commitJudgeCom.isMileStone,t,function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:g["d"].success("".concat(n.archName,",已更新。")),r=i.IpfsCid,e.addLocalFileRecord(p,r),e.removeFileLoadingState(u),e.workFileList=e.workFileList.map((function(t){return t.id===n.id?Object(a["a"])(Object(a["a"])({},t),{},{ipfsCid:r,workStatus:T}):t})),0==e.currentBtnIndex&&e.isShowSearchPage&&(e.searchWorkFileList=e.searchWorkFileList.map((function(t){return t.id===n.id?Object(a["a"])(Object(a["a"])({},t),{},{ipfsCid:r,workStatus:T}):t})));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){var i=t.process,r=t.hash,s=t.size,a=t.currentSize,o=t.currentUnit,l=t.unit;r||e.updateFileLoadState(n,w,i,a,o,s,l)}),d);case 16:case"end":return i.stop()}}),i)})))()},getHistoryFileList:function(t){var e=this,i=function(t){e.fileHistoryList=t};v["a"].queryCommitHistory(t.path,t.hash,i)},commitFolder:function(t){var e="".concat(this.localWorkspacePrefix,"\\").concat(this.currentNodeFolder.folderName).concat(t.folderPath?"\\".concat(t.folderPath):"").replace(/\//g,"\\");this.clientUpload([e])},openFile:function(t){var e=arguments,i=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,l,c,u,h,d;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.length>1&&void 0!==e[1]?e[1]:"open",i.isClient){n.next=3;break}return n.abrupt("return");case 3:if(t.archName,t.extension,s=t.id,a=t.nodeName,o=i.localWorkspacePrefix,l=!!a,c=Object(x["f"])(t,i.currentNodeFolder),i.localFileHashMap[c]){n.next=9;break}return n.abrupt("return");case 9:if(u="".concat(o,"\\").concat(c),h="open"===r?"openFile":"clientOpenFileWith",l||2!==t.workStatus||sessionStorage.userId===t.modifyUserId){n.next=14;break}return i.$notify({type:["warning"],title:"暂不能打开此文件",message:"".concat(t.modifyName,"正在编辑此文件,请在“工作中”标识消失后再尝试打开。")}),n.abrupt("return");case 14:if(!l){n.next=17;break}return v["a"][h](u),n.abrupt("return");case 17:if(2===t.workStatus){n.next=24;break}return t.workStatus=2,n.next=21,b["b"](s,2);case 21:if(d=n.sent,0===d.Code){n.next=24;break}return n.abrupt("return");case 24:t.modifyUserId=sessionStorage.userId,v["a"][h](u),i.fetchFolderFiles();case 27:case"end":return n.stop()}}),n)})))()},openFileWith:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:e.openFile(t,"openWith");case 1:case"end":return i.stop()}}),i)})))()},fileClick:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.openFile(e,"open");case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),rightShowMenu:function(t,e,i){var n=this;this.$nextTick((function(){n.rightMenuvisible=!0,n.tempRightFileId="currentWorkFolder",n.rightMenuleft=t.clientX,n.rightMenuTop=t.clientY,n.rightMenuEl=n.$refs["right-menu"];var e=document.querySelector("#workspace"),i=e.clientWidth,r=n.rightMenuEl?n.rightMenuEl.clientWidth:0;t.clientX+r>i&&(n.rightMenuleft=t.clientX-r)}))},closeShowMenu:function(){this.rightMenuvisible=!1},openCopage:function(){this.isShowpageIcon=!1,this.isCollapse=!1,this.neibianju="neibianju1",this.closepageH="closepageH"},closeCopage:function(){this.isShowpageIcon=!0,this.isCollapse=!0,this.neibianju="neibianju",this.closepageH=""},copyWorkFileBtnClick:function(t,e){var i=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,l,c,u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=Object(S["cloneDeep"])(t),s=1,a="",e&&(r.archName="".concat(r.archName,"-版本").concat(e)),a=r.archName+"-副本",o=i.workFileList.find((function(t){return t.archName===a}));while(o)a=r.archName+"-副本(".concat(++s,")"),o=i.workFileList.find((function(t){return t.archName===a}));return l="0"+(new Date).getHours(),c="0"+(new Date).getMinutes(),u="0"+(new Date).getSeconds(),l=l.substr(l.length-2),c=c.substr(c.length-2),u=u.substr(u.length-2),r.archName=a+"-"+l+c+u,r.modifyUserId=sessionStorage.userId,r.modifyTime=new Date,r.createUserId=sessionStorage.userId,r.createTime=new Date,r.historyCurrentIpfsCid="",n.next=20,b["a"](r);case 20:i.fetchFolderFiles();case 21:case"end":return n.stop()}}),n)})))()},deleteFileClick:function(t,e,i,n){var r=this;e==sessionStorage.userId?this.$confirm("确认删除“".concat(i,"”吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,b["c"](t);case 2:if(s=e.sent,0!==s.Code){e.next=14;break}r.$notify({message:"“".concat(i,"”文件已移除。"),type:["success"],duration:2500}),e.t0=regeneratorRuntime.keys(r.localFileHashMap);case 6:if((e.t1=e.t0()).done){e.next=13;break}if(a=e.t1.value,r.localFileHashMap[a]!==n){e.next=11;break}return delete r.localFileHashMap[a],e.abrupt("break",13);case 11:e.next=6;break;case 13:r.fetchFolderFiles();case 14:case"end":return e.stop()}}),e)})))):r.$notify({message:"不能删除其他用户创建的文件。",type:["error"],duration:2500})},checkMilestoneClick:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s,a,o;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e.checkMilestoneShow=!0,n=e.localWorkspacePrefix,r=Object(x["f"])(t,e.currentNodeFolder),e.localFileHashMap[r]){i.next=5;break}return i.abrupt("return");case 5:return s="".concat(n,"\\").concat(r),e.fileMilestoneInfo.path=s,i.next=9,b["h"](t.id);case 9:a=i.sent,0==a.Code&&(e.fileMilestoneInfo.hash=(null===(o=a.Data)||void 0===o?void 0:o.CurrentIpfsCid)||""),e.getHistoryFileList(e.fileMilestoneInfo),e.currentFile=t;case 13:case"end":return i.stop()}}),i)})))()},closeMilestonePain:function(t){this.checkMilestoneShow=t}}}}).call(this,i("c8ba"))},a623:function(t,e,i){"use strict";var n=i("23e7"),r=i("b727").every,s=i("a640"),a=i("ae40"),o=s("every"),l=a("every");n({target:"Array",proto:!0,forced:!o||!l},{every:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},a642:function(t,e,i){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},afc6:function(t,e,i){},afd2:function(t,e,i){},b0e8:function(t,e,i){"use strict";var n=i("cdec");t.exports=function(t,e,i){return n.forEach(i,(function(i){t=i(t,e)})),t}},b0f9:function(t,e,i){"use strict";i.d(e,"o",(function(){return s})),i.d(e,"m",(function(){return o})),i.d(e,"t",(function(){return c})),i.d(e,"d",(function(){return h})),i.d(e,"n",(function(){return p})),i.d(e,"q",(function(){return m})),i.d(e,"f",(function(){return g})),i.d(e,"s",(function(){return b})),i.d(e,"l",(function(){return S})),i.d(e,"k",(function(){return k})),i.d(e,"b",(function(){return V})),i.d(e,"p",(function(){return P})),i.d(e,"j",(function(){return O})),i.d(e,"h",(function(){return A})),i.d(e,"i",(function(){return D})),i.d(e,"a",(function(){return M})),i.d(e,"g",(function(){return j})),i.d(e,"c",(function(){return $})),i.d(e,"e",(function(){return R})),i.d(e,"r",(function(){return z}));i("4de4"),i("96cf");var n=i("1da1"),r=i("b775");function s(){return a.apply(this,arguments)}function a(){return a=Object(n["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/queryTemplateList");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),a.apply(this,arguments)}function o(t){return l.apply(this,arguments)}function l(){return l=Object(n["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/queryTemplateByCompanyId",{companyId:e});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)}function c(t){return u.apply(this,arguments)}function u(){return u=Object(n["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/uploadingXmind",e,{headers:{"Content-Type":"application/octet-stream"}});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),u.apply(this,arguments)}function h(t){return d.apply(this,arguments)}function d(){return d=Object(n["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/createTemplate",e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),d.apply(this,arguments)}function p(t){return f.apply(this,arguments)}function f(){return f=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/queryTemplateByTemplateId",{id:e});case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)}function m(t){return v.apply(this,arguments)}function v(){return v=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/queryTemplateQuoteCountByTempId",{templateId:e});case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)}))),v.apply(this,arguments)}function g(t){return y.apply(this,arguments)}function y(){return y=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/deleteTemplateByTemplateId",{id:e});case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),y.apply(this,arguments)}function b(t){return x.apply(this,arguments)}function x(){return x=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/updateTemplate",e);case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),x.apply(this,arguments)}function S(t){return C.apply(this,arguments)}function C(){return C=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/queryNestTemplateByTemplateId",{id:e});case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),C.apply(this,arguments)}function k(t){return w.apply(this,arguments)}function w(){return w=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/queryNestTemplateIdByProjectId",{projectId:e});case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),w.apply(this,arguments)}function V(t){return T.apply(this,arguments)}function T(){return T=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/connectNestTemplateFolder",e);case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),T.apply(this,arguments)}function P(t){return I.apply(this,arguments)}function I(){return I=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/queryTemplateNodeByTemplateId",{templateId:e});case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),I.apply(this,arguments)}function O(t,e,i){return _.apply(this,arguments)}function _(){return _=Object(n["a"])(regeneratorRuntime.mark((function t(e,i,n){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/queryFileExchange",{currentTemplateId:e,currentNodeId:i,nestedNodeId:n});case 2:return s=t.sent,t.abrupt("return",Object(r["c"])(s));case 4:case"end":return t.stop()}}),t)}))),_.apply(this,arguments)}function A(t){return E.apply(this,arguments)}function E(){return E=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/fileExchange",e);case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),E.apply(this,arguments)}function D(t,e){return F.apply(this,arguments)}function F(){return F=Object(n["a"])(regeneratorRuntime.mark((function t(e,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:e,companyId:i?void 0:"0"});case 2:return n=t.sent,i&&n.Data&&(n.Data=n.Data.filter((function(t){return"0"===t.CompanyId||t.CompanyId===i}))),t.abrupt("return",Object(r["c"])(n));case 5:case"end":return t.stop()}}),t)}))),F.apply(this,arguments)}function M(t){return L.apply(this,arguments)}function L(){return L=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/addTemplateNodeModelFile",e);case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),L.apply(this,arguments)}function j(t){return B.apply(this,arguments)}function B(){return B=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/deleteTemplateNodeModelFile",{id:e});case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),B.apply(this,arguments)}function $(t){return N.apply(this,arguments)}function N(){return N=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/createNestedRelevance",e);case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),N.apply(this,arguments)}function R(t){return H.apply(this,arguments)}function H(){return H=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/deleteNestedRelevance",e);case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),H.apply(this,arguments)}function z(t){return G.apply(this,arguments)}function G(){return G=Object(n["a"])(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["b"])("template/renameTemplate",e);case 2:return i=t.sent,t.abrupt("return",Object(r["c"])(i));case 4:case"end":return t.stop()}}),t)}))),G.apply(this,arguments)}},b1f3:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-header",class:{white:"white"===t.theme||t.isWindowScrollIng,black:"black"===t.theme,"black-bg-color":t.isWindowScrollIng&&"black"===t.theme}},[i("div",{staticClass:"app-header-content"},[i("div",{staticClass:"app-header-content-left"},[t._t("left",[i("i",{directives:[{name:"show",rawName:"v-show",value:t.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===t.theme||"basis"===t.theme,icon_topback_left_baise:"black"===t.theme},on:{click:function(e){return t.navBack()}}}),i("span",{directives:[{name:"show",rawName:"v-show",value:t.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(e){return t.navBack()}}},[t._v(t._s(t.backBtnTitle))])])],2),i("div",{staticClass:"app-header-content-right"},[t._t("right"),t.showUserCenter?i("user-center"):t._e()],2)]),i("div",{staticClass:"app-header-center"},[t._t("center",[t._v(t._s(t.title))])],2)])},r=[],s=i("1392"),a={components:{UserCenter:s["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean},data:function(){return{isWindowScrollIng:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},handleScroll:function(){var t=document.getElementById("bigbody");this.isWindowScrollIng=t.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},o=a,l=(i("6dcf"),i("2877")),c=Object(l["a"])(o,n,r,!1,null,"373b66dc",null);e["a"]=c.exports},b391:function(t,e,i){"use strict";var n=i("cdec");t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,i,r,s,a){var o=[];o.push(t+"="+encodeURIComponent(e)),n.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),n.isString(r)&&o.push("path="+r),n.isString(s)&&o.push("domain="+s),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},b5ee:function(t,e,i){},bbe5:function(t,e,i){},bd77:function(t,e,i){"use strict";var n=i("afc6"),r=i.n(n);r.a},bde5:function(t,e,i){"use strict";var n=i("6c26"),r=i.n(n);r.a},bf4b:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"yiyun_wenjian_list nohover no-left-margin"},[i("div",{staticClass:"yiyunwenjian_imgbox ",on:{click:t.showNewFiledialog}},[t._m(0),i("span",{staticClass:"newbtn-text"},[t._v("导入文件")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.isShowNewFiledialog,expression:"isShowNewFiledialog == true"}],staticClass:"dia_8",on:{click:t.hideNewFiledialog}}),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.isShowNewFiledialog,expression:"isShowNewFiledialog == true"}],staticClass:"newfiledialog"},[i("div",{staticClass:"dragareaBox"},[i("div",{staticClass:"dragarea_top uploadBtn",on:{click:function(e){t.selectSystemFiles(),t.isShowNewFiledialog=!1}}},[i("img",{staticClass:"uploadBtnImg",attrs:{src:"static\\img\\upload.png",alt:""}}),i("span",{staticClass:"uploadText"},[t._v("点击上传本地文件")])]),i("div",{staticClass:"right-line"}),i("div",{staticClass:"dragarea_top uploadBtn",on:{click:function(e){t.selectSystemFolders(),t.isShowNewFiledialog=!1}}},[i("img",{staticClass:"uploadBtnImg",attrs:{src:"static\\img\\文件夹.svg",alt:""}}),i("span",{staticClass:"uploadText"},[t._v("点击上传本地文件夹")])])]),t.listTempFiles.length>0?i("div",{staticClass:"creatbox_mid mt-10"},[t._m(1),i("div",{staticClass:"temp-file-container"},[i("ul",{staticClass:"listTemplateList"},t._l(t.listTempFiles,(function(e,n){return i("li",{key:e.id,staticClass:"temp-file",on:{click:function(i){return i.stopPropagation(),t.fileTempClick(e,n)}}},[i("span",{staticClass:"listTemplateTextBig",attrs:{title:e.extension}},[t._v(t._s(e.extension))]),i("span",{staticClass:"listTemplateText"},[t._v(t._s(e.fileName))])])})),0)])]):t._e()])])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"new-btn"},[i("div",{staticClass:"hori draw-line"}),i("div",{staticClass:"vert draw-line"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title-head"},[i("div",{staticClass:"title-text"},[t._v("从样板文件中创建")])])}],s=(i("d81d"),i("96cf"),i("1da1")),a=i("3de1"),o=i("b0f9"),l={props:{oneOf:Function,onButtnClick:Function,selectSystemFiles:Function,selectSystemFolders:Function,currentNodeFolder:Object},data:function(){return{selectedFileIndex:0,isShowNewFiledialog:!1,isShowNewTemplateFileDialog:!1,listTempFiles:[],companyId:sessionStorage.companyId}},mounted:function(){this.loadListTempFiles()},methods:{showNewFiledialog:function(){this.isShowNewFiledialog=!0},hideNewFiledialog:function(){this.isShowNewFiledialog=!1},fileTempClick:function(t,e){this.$emit("fileTempClick",t),this.hideNewFiledialog()},loadListTempFiles:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=null===(i=t.currentNodeFolder)||void 0===i?void 0:i.nodeId,n){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,Object(o["i"])(n,t.companyId);case 5:if(r=e.sent,0===r.Code){e.next=8;break}return e.abrupt("return");case 8:t.listTempFiles=(r.Data||[]).map((function(t){return Object(a["b"])(t)}));case 9:case"end":return e.stop()}}),e)})))()}},watch:{currentNodeFolder:function(){this.loadListTempFiles()}}},c=l,u=(i("293a"),i("2877")),h=Object(u["a"])(c,n,r,!1,null,"d9a808d6",null);e["a"]=h.exports},c0e0:function(t,e,i){},c22c:function(t,e,i){},c51c:function(t,e,i){},c61b:function(t,e,i){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},c740:function(t,e,i){"use strict";var n=i("23e7"),r=i("b727").findIndex,s=i("44d2"),a=i("ae40"),o="findIndex",l=!0,c=a(o);o in[]&&Array(1)[o]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!c},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s(o)},cdec:function(t,e,i){"use strict";var n=i("fb32"),r=Object.prototype.toString;function s(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function o(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function h(t){return"string"===typeof t}function d(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){return"[object Date]"===r.call(t)}function m(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function g(t){return"[object Function]"===r.call(t)}function y(t){return p(t)&&g(t.pipe)}function b(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function x(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function S(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),s(t))for(var i=0,n=t.length;i0||t>-1e-6&&t<0?n(t*e)/e:t}function E(){var t=this.props,e=A(t[0]),i=A(t[1]),n=A(t[4]),r=A(t[5]),s=A(t[12]),a=A(t[13]);return"matrix("+e+","+i+","+n+","+r+","+s+","+a+")"}return function(){this.reset=r,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=u,this.skewFromAxis=h,this.shear=c,this.scale=d,this.setTransform=p,this.translate=f,this.transform=m,this.applyToPoint=x,this.applyToX=S,this.applyToY=C,this.applyToZ=k,this.applyToPointArray=I,this.applyToTriplePoints=T,this.applyToPointStringified=_,this.toCSS=O,this.to2dCSS=E,this.clone=y,this.cloneFromProps=b,this.equals=g,this.inversePoints=P,this.inversePoint=V,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();(function(t,e){var i,n=this,r=256,s=6,a=52,o="random",l=e.pow(r,s),c=e.pow(2,a),u=2*c,h=r-1;function d(i,n,a){var h=[];n=!0===n?{entropy:!0}:n||{};var d=v(m(n.entropy?[i,y(t)]:null===i?g():i,3),h),b=new p(h),x=function(){var t=b.g(s),e=l,i=0;while(t=u)t/=2,e/=2,i>>>=1;return(t+i)/e};return x.int32=function(){return 0|b.g(4)},x.quick=function(){return b.g(4)/4294967296},x.double=x,v(y(b.S),t),(n.pass||a||function(t,i,n,r){return r&&(r.S&&f(r,b),t.state=function(){return f(b,{})}),n?(e[o]=t,i):t})(x,d,"global"in n?n.global:this==e,n.state)}function p(t){var e,i=t.length,n=this,s=0,a=n.i=n.j=0,o=n.S=[];i||(t=[i++]);while(s0?i=l:e=l}while(Math.abs(o)>s&&++c=r?v(t,h,e,i):0===d?h:m(t,s,s+l,e,i)}},t}();function extendPrototype(t,e){var i,n,r=t.length;for(i=0;i-.001&&a<.001}function e(e,i,n,r,s,a,o,l,c){if(0===n&&0===a&&0===c)return t(e,i,r,s,o,l);var u,h=Math.sqrt(Math.pow(r-e,2)+Math.pow(s-i,2)+Math.pow(a-n,2)),d=Math.sqrt(Math.pow(o-e,2)+Math.pow(l-i,2)+Math.pow(c-n,2)),p=Math.sqrt(Math.pow(o-r,2)+Math.pow(l-s,2)+Math.pow(c-a,2));return u=h>d?h>p?h-d-p:p-d-h:p>d?p-d-h:d-h-p,u>-1e-4&&u<1e-4}var i=function(){return function(t,e,i,n){var r,s,a,o,l,c,u=defaultCurveSegments,h=0,d=[],p=[],f=bezier_length_pool.newElement();for(a=i.length,r=0;ra?-1:1,c=!0;while(c)if(n[s]<=a&&n[s+1]>a?(o=(a-n[s])/(n[s+1]-n[s]),c=!1):s+=l,s<0||s>=r-1){if(s===r-1)return i[s];c=!1}return i[s]+(i[s+1]-i[s])*o}function l(t,e,i,n,r,s){var a=o(r,s),l=1-a,c=Math.round(1e3*(l*l*l*t[0]+(a*l*l+l*a*l+l*l*a)*i[0]+(a*a*l+l*a*a+a*l*a)*n[0]+a*a*a*e[0]))/1e3,u=Math.round(1e3*(l*l*l*t[1]+(a*l*l+l*a*l+l*l*a)*i[1]+(a*a*l+l*a*a+a*l*a)*n[1]+a*a*a*e[1]))/1e3;return[c,u]}var c=createTypedArray("float32",8);function u(t,e,i,n,r,s,a){r=r<0?0:r>1?1:r;var l=o(r,a);s=s>1?1:s;var u,h=o(s,a),d=t.length,p=1-l,f=1-h,m=p*p*p,v=l*p*p*3,g=l*l*p*3,y=l*l*l,b=p*p*f,x=l*p*f+p*l*f+p*p*h,S=l*l*f+p*l*h+l*p*h,C=l*l*h,k=p*f*f,w=l*f*f+p*h*f+p*f*h,V=l*h*f+p*h*h+l*f*h,P=l*h*h,T=f*f*f,I=h*f*f+f*h*f+f*f*h,_=h*h*f+f*h*h+h*f*h,O=h*h*h;for(u=0;u=0;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)n(t[e].ks.k);else for(s=t[e].ks.k.length,r=0;ri[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&void 0))}var s=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,n=t.length;for(i=0;i=0;i-=1)if("sh"==t[i].ty){if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,n=0;n0&&(u=!1),u){var h=createTag("style");h.setAttribute("f-forigin",n[i].fOrigin),h.setAttribute("f-origin",n[i].origin),h.setAttribute("f-family",n[i].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+n[i].fFamily+"; font-style: normal; src: url('"+n[i].fPath+"');}",e.appendChild(h)}}else if("g"===n[i].fOrigin||1===n[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c=l.t-a){o.h&&(o=l),m=0;break}if(l.t-a>t){m=v;break}v=x||t=x?C.points.length-1:0;for(u=C.points[k].point.length,c=0;c=P&&V=x)i[0]=b[0],i[1]=b[1],i[2]=b[2];else if(t<=S)i[0]=o.s[0],i[1]=o.s[1],i[2]=o.s[2];else{var E=s(o.s),D=s(b),F=(t-S)/(x-S);r(i,n(E,D,F))}else for(v=0;v=x?h=1:t1e-6?(n=Math.acos(r),s=Math.sin(n),a=Math.sin((1-i)*n)/s,o=Math.sin(i*n)/s):(a=1-i,o=i),l[0]=a*c+o*p,l[1]=a*u+o*f,l[2]=a*h+o*m,l[3]=a*d+o*v,l}function r(t,e){var i=e[0],n=e[1],r=e[2],s=e[3],a=Math.atan2(2*n*s-2*i*r,1-2*n*n-2*r*r),o=Math.asin(2*i*n+2*r*s),l=Math.atan2(2*i*s-2*n*r,1-2*i*i-2*r*r);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}function s(t){var e=t[0]*degToRads,i=t[1]*degToRads,n=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(n/2),o=Math.sin(e/2),l=Math.sin(i/2),c=Math.sin(n/2),u=r*s*a-o*l*c,h=o*l*a+r*s*c,d=o*s*a+r*l*c,p=r*l*a-o*s*c;return[h,d,p,u]}function a(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function o(t){var i;if("unidimensional"===this.propType)i=t*this.mult,e(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else{var n=0,r=this.v.length;while(n1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}}function l(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[0]=s.getValueAtTime(s.keyframes[0].t/r,0),n[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[s.pv,a.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=n=t;this.v.rotate(-Math.atan2(i[1]-n[1],i[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function r(){}function s(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function a(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,r=e.or.k.length;for(n=0;n=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break}(!s[n]||s[n]&&!r)&&(s[n]=point_pool.newElement()),s[n][0]=t,s[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,n,r,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,n,"o",a,o),this.setXYAt(r,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),r=1);var s,a=this._length-1,o=this._length;for(s=r;s=p[p.length-1].t-this.offsetTime)n=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],s=!0;else{var f,m,v=d,g=p.length-1,y=!0;while(y){if(f=p[v],m=p[v+1],m.t-this.offsetTime>t)break;v=m.t-this.offsetTime)u=1;else if(tn&&e>n)||(this._caching.lastIndex=r=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],c=s.length;for(a=0;an+i);else u=o.s*r<=n?0:(o.s*r-n)/i,h=o.e*r>=n+i?1:(o.e*r-n)/i,l.push([u,h])}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?1:this.s.v<0?0:this.s.v)+r,i=(this.e.v>1?1:this.e.v<0?0:this.e.v)+r,e>i){var s=e;e=i,i=s}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var a,o,l,c,u,h,d=this.shapes.length,p=0;if(i===e)for(a=0;a=0;a-=1)if(f=this.shapes[a],f.shape._mdf){for(m=f.localShapeCollection,m.releaseShapes(),2===this.m&&d>1?(g=this.calculateShapeEdges(e,i,f.totalShapeLength,x,p),x+=f.totalShapeLength):g=[[y,b]],l=g.length,o=0;o=1?v.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(v.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),v.push({s:0,e:f.totalShapeLength*(b-1)}));var S=this.addShapes(f,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var C=f.shape.paths.shapes[f.shape.paths._length-1];if(C.c){var k=S.pop();this.addPaths(S,m),S=this.addShapes(f,v[1],k)}else this.addPaths(S,m),S=this.addShapes(f,v[1])}this.addPaths(S,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;ie.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[r],d[n].v[r],i,o,v),v=!1):(c=bez.getNewSegment(d[n].v[r-1],d[n].v[r],d[n].o[r-1],d[n].i[r],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,l[r-1]),this.addSegmentFromArray(c,i,o,v),v=!1,i.c=!1),f+=a.addedLength,o+=1}if(d[n].c&&l.length){if(a=l[r-1],f<=e.e){var g=l[r-1].addedLength;e.s<=f&&e.e>=f+g?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[0],d[n].v[0],i,o,v),v=!1):(c=bez.getNewSegment(d[n].v[r-1],d[n].v[0],d[n].o[r-1],d[n].i[0],(e.s-f)/g,(e.e-f)/g,l[r-1]),this.addSegmentFromArray(c,i,o,v),v=!1,i.c=!1)}else i.c=!1;f+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[u][0],i.v[u][1],"i",u),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;n0)i-=1,this._elements.unshift(e[i]),1;this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(c):Math.ceil(c),d=(this.tr.v.props,this.pMatrix.props),p=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m,v,g=0;if(c>0){while(gh)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),g-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),g-=u)}n=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,s=this._currentCopies;while(s){if(e=this.elemsData[n].it,i=e[e.length-1].transform.mProps.v.props,v=i.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==g){for((0!==n&&1===r||n!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),m=0;m.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s){var t=0,e=this.data.k.k.length;while(t=o+lt||!f?(y=(o+lt-c)/l.partialLength,$=p.point[0]+(l.point[0]-p.point[0])*y,N=p.point[1]+(l.point[1]-p.point[1])*y,w.translate(-S[0]*T[r].an/200,-S[1]*M/100),u=!1):f&&(c+=l.partialLength,h+=1,h>=f.length&&(h=0,d+=1,m[d]?f=m[d].points:x.v.c?(h=0,d=0,f=m[d].points):(c-=l.partialLength,f=null)),f&&(p=l,l=f[h],v=l.partialLength));B=T[r].an/2-T[r].add,w.translate(-B,0,0)}else B=T[r].an/2-T[r].add,w.translate(-B,0,0),w.translate(-S[0]*T[r].an/200,-S[1]*M/100,0);for(T[r].l/2,E=0;E1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;var n,r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(n=0;ne)break;i+=1}return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){var e,i=FontManager.getCombinedCharacterCodes(),n=[],r=0,s=t.length;while(r=55296&&e<=56319?(e=t.charCodeAt(r+1),e>=56320&&e<=57343?(n.push(t.substr(r,2)),++r):n.push(t.charAt(r))):n.push(t.charAt(r)),r+=1;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,r,s,a,o,l,c=this.elem.globalData.fontManager,u=this.data,h=[],d=0,p=u.m.g,f=0,m=0,v=0,g=[],y=0,b=0,x=c.getFontByName(t.f),S=0,C=x.fStyle?x.fStyle.split(" "):[],k="normal",w="normal";for(i=C.length,e=0;eO&&" "!==I[e]?(-1===E?i+=1:e=E,T+=t.finalLineHeight||1.2*t.finalSize,I.splice(e,E===e?1:0,"\r"),E=-1,y=0):(y+=S,y+=P);T+=x.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Ab?y:b,y=-2*P,r="",n=!0,v+=1):r=D,c.chars?(o=c.getCharData(D,x.fStyle,c.getFontByName(t.f).fFamily),S=n?0:o.w*t.finalSize/100):S=c.measureText(r,t.f,t.finalSize)," "===D?F+=S+P:(y+=S+P+F,F=0),h.push({l:S,an:S,add:f,n:n,anIndexes:[],val:r,line:v,animatorJustifyOffset:0}),2==p){if(f+=S,""===r||" "===r||e===i-1){""!==r&&" "!==r||(f-=S);while(m<=e)h[m].an=f,h[m].ind=d,h[m].extra=S,m+=1;d+=1,f=0}}else if(3==p){if(f+=S,""===r||e===i-1){""===r&&(f-=S);while(m<=e)h[m].an=f,h[m].ind=d,h[m].extra=S,m+=1;f=0,d+=1}}else h[d].ind=d,h[d].extra=0,d+=1;if(t.l=h,b=y>b?y:b,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=b,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var M,L,j=u.a;a=j.length;var B,$,N=[];for(s=0;s0?r=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(r,s,a,o).get,c=0,u=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)c=h===u?n>=h?1:0:t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c=l(c);else if(3===d)c=h===u?n>=h?0:1:1-t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c=l(c);else if(4===d)h===u?c=0:(c=t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c<.5?c*=2:c=1-2*(c-.5)),c=l(c);else if(5===d){if(h===u)c=0;else{var p=h-u;n=e(t(0,n+.5-u),h-u);var f=-p/2+n,m=p/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===d?(h===u?c=0:(n=e(t(0,n+.5-u),h-u),c=(1+Math.cos(Math.PI+2*Math.PI*n/(h-u)))/2),c=l(c)):(n>=i(u)&&(c=t(0,e(n-u<0?e(h,1)-(u-n):h-n,1))),c=l(c));return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,n=this.s.v/e+i,r=this.e.v/e+i;if(n>r){var s=n;n=r,r=s}this.finalS=n,this.finalE=r}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:r}}(),pool_factory=function(){return function(t,e,i,n){var r=0,s=t,a=createSizedArray(s),o={newElement:l,release:c};function l(){var t;return r?(r-=1,t=a[r]):t=e(),t}function c(t){r===s&&(a=pooling.double(a),s*=2),i&&i(t),a[r]=t,r+=1}return o}}(),pooling=function(){function t(t){return t.concat(createSizedArray(t.length))}return{double:t}}(),point_pool=function(){function t(){return createTypedArray("float32",2)}return pool_factory(8,t)}(),shape_pool=function(){function t(){return new ShapePath}function e(t){var e,i=t._length;for(e=0;e0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(y,"url("+locationHref+"#"+v+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;var n=0,r=t.length;while(n=0;e--)this.elements[e]||(i=this.layers[e],i.ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t)}return this.createNull(t)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;ei&&"meet"===s||ni&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(ni&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(n>i&&"meet"===s||ni&&"meet"===s||n=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}},HybridRenderer.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var n=this.layers[e];if(n.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{var r,s,a,o=0;while(o=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t,e){var i=createTag("div");styleDiv(i);var n=createTag("div");styleDiv(n),"3d"===e&&(i.style.width=this.globalData.compSize.w+"px",i.style.height=this.globalData.compSize.h+"px",i.style.transformOrigin=i.style.mozTransformOrigin=i.style.webkitTransformOrigin="50% 50%",n.style.transform=n.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),i.appendChild(n);var r={container:n,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(r),r},HybridRenderer.prototype.build3dContainers=function(){var t,e,i=this.layers.length,n="";for(t=0;t=0;t--)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){var i=0,n=this.threeDElements.length;while(ia?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,n=(s-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,n=0),this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+n+",0,1)"},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,n=this.threeDElements.length;for(t=0;t1&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",a)),i.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,n=this.dynamicProperties.length;for(i=0;it?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t0)l=n.transformers[m].mProps._mdf||l,f--,m--;if(l){f=g-n.styles[u].lvl,m=n.transformers.length-1;while(f>0)p=n.transformers[m].mProps.v.props,d.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),f--,m--}}else d=t;if(h=n.sh.paths,a=h._length,l){for(o="",s=0;s=1?.99:e.h.v<=-1?-.99:e.h.v,b=o*y,x=Math.cos(g+e.a.v)*b+u[0],S=Math.sin(g+e.a.v)*b+u[1];l.setAttribute("fx",x),l.setAttribute("fy",S),c&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",S))}}function c(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(n.pElem.setAttribute("stroke-dasharray",r.dashStr),n.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&n.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return i}();function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(t,e,i,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;"rc"==e.ty?r=5:"el"==e.ty?r=6:"sr"==e.ty&&(r=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,r,t);var s,a,o=i.length;for(s=0;s=0;n-=1)i=t.transforms[n].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=s},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e=0;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){var e=this.processedElements,i=0,n=e.length;while(i=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this.audio.volume(t)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextElement),SVGTextElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextElement.prototype.buildTextContents=function(t){var e=0,i=t.length,n=[],r="";while(et?this.textSpans[t]:createNS(l?"path":"text"),b<=t&&(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=a,this.layerElement.appendChild(a)),a.style.display="inherit"),u.reset(),u.scale(i.finalSize/100,i.finalSize/100),d&&(o[t].n&&(p=-v,f+=i.yOffset,f+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,u,o[t].line,p,f),p+=o[t].l||0,p+=v),l?(y=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily),g=y&&y.data||{},c=g.shapes?g.shapes[0].it:[],d?h+=this.createPathShape(u,c):a.setAttribute("d",this.createPathShape(u,c))):(d&&a.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));d&&a&&a.setAttribute("d",h)}else{var x=this.textContainer,S="start";switch(i.j){case 1:S="end";break;case 2:S="middle";break}x.setAttribute("text-anchor",S),x.setAttribute("letter-spacing",v);var C=this.buildTextContents(i.finalText);for(e=C.length,f=i.ps?i.ps[1]+i.ascent:0,t=0;t1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(d=this.searchProcessedElement(t[o]),d?e[o]=i[d-1]:t[o]._render=a,"fl"==t[o].ty||"st"==t[o].ty||"gf"==t[o].ty||"gs"==t[o].ty)d?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],r),t[o]._render&&n.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"==t[o].ty){if(d)for(c=e[o].it.length,l=0;l=u?f<0?n:r:n+p*Math.pow((s-t)/f,1/i),h[d++]=a,o+=256/(l-1);return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(n),s=i*Math.sin(n);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGEffects(t){var e,i,n=t.data.ef?t.data.ef.length:0,r=createElementID(),s=filtersFactory.createFilter(r),a=0;for(this.filters=[],e=0;eo&&"xMidYMid slice"===l||a=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,n,r=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t=0;s-=1){if(l=this.searchProcessedElement(t[s]),l?e[s]=i[l-1]:t[s]._shouldRender=n,"fl"==t[s].ty||"st"==t[s].ty||"gf"==t[s].ty||"gs"==t[s].ty)l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],f),d.push(e[s].style);else if("gr"==t[s].ty){if(l)for(o=e[s].it.length,a=0;a=0;r-=1)"tr"==e[r].ty?(s=i[r].transform,this.renderShapeTransform(t,s)):"sh"==e[r].ty||"el"==e[r].ty||"rc"==e[r].ty||"sr"==e[r].ty?this.renderPath(e[r],i[r]):"fl"==e[r].ty?this.renderFill(e[r],i[r],s):"st"==e[r].ty?this.renderStroke(e[r],i[r],s):"gf"==e[r].ty||"gs"==e[r].ty?this.renderGradientFill(e[r],i[r],s):"gr"==e[r].ty?this.renderShape(s,e[r].it,i[r].it):e[r].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,n,r,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(r=0;r=1?.99:e.h.v<=-1?-.99:e.h.v,u=o*c,h=Math.cos(l+e.a.v)*u+s[0],d=Math.sin(l+e.a.v)*u+s[1],p=r.createRadialGradient(h,d,0,s[0],s[1],o);var f,m=t.g.p,v=e.g.c,g=1;for(f=0;f=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),a=[r[0]/s,r[1]/s,r[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var h;for(e=this.comp.threeDElements.length,t=0;t=0;i-=1)e[i].animation.destroy(t)}function w(t,e,i){var n,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=r.length;for(n=0;nthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,n=this.animationData.layers,r=n.length,s=t.layers,a=s.length;for(i=0;ithis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,i){i&&this.name!=i||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,i){this.goToAndStop(t,e,i),this.play()},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===typeof t[0]){var i,n=t.length;for(i=0;ii){var n=i;i=e,e=n}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"===typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,n=Math.min(t.length,e.length),r=0;for(i=0;i.5?c/(2-a-o):c/(a+o),a){case n:e=(r-s)/c+(r1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,n,r=t[0],s=t[1],a=t[2];if(0===s)e=i=n=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,r+1/3),i=hue2rgb(l,o,r),n=hue2rgb(l,o,r-1/3)}return[e,i,n,t[3]]}function linear(t,e,i,n,r){if(void 0!==n&&void 0!==r||(n=e,r=i,e=0,i=1),i=i)return r;var a=i===e?0:(t-e)/(i-e);if(!n.length)return n+(r-n)*a;var o,l=n.length,c=createTypedArray("float32",l);for(o=0;o1){for(n=0;n1?1:e<0?0:e;var a=t(e);if($bm_isInstanceOfArray(r)){var o,l=r.length,c=createTypedArray("float32",l);for(o=0;odata.k[e].t&&tdata.k[e+1].t-t?(i=e+2,n=data.k[e+1].t):(i=e+1,n=data.k[e].t);break}}-1===i&&(i=e+1,n=data.k[e].t)}else i=0,n=0;var s={};return s.index=i,s.time=n/elem.comp.globalData.frameRate,s}function key(t){var e,i,n;if(!data.k.length||"number"===typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=data.k[t].hasOwnProperty("s")?data.k[t].s:data.k[t-1].e;for(n=r.length,i=0;ic.length-1)&&(e=c.length-1),r=c[c.length-1-e].t,n=u-r),"pingpong"===t){var h=Math.floor((l-r)/n);if(h%2!==0)return this.getValueAtTime((n-(l-r)%n+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(r/this.comp.globalData.frameRate,0),p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-r)%n+r)/this.comp.globalData.frameRate,0),m=Math.floor((l-r)/n);if(this.pv.length){for(o=new Array(d.length),a=o.length,s=0;s=u)return this.pv;if(i?(n=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-u),r=u+n):((!e||e>c.length-1)&&(e=c.length-1),r=c[e].t,n=r-u),"pingpong"===t){var h=Math.floor((u-l)/n);if(h%2===0)return this.getValueAtTime(((u-l)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(r/this.comp.globalData.frameRate,0),f=this.getValueAtTime((n-(u-l)%n+u)/this.comp.globalData.frameRate,0),m=Math.floor((u-l)/n)+1;if(this.pv.length){for(o=new Array(d.length),a=o.length,s=0;s1?(a-s)/(e-1):1,l=0,c=0;i=this.pv.length?createTypedArray("float32",this.pv.length):0;while(la){var u=o,h=i.c&&o===l-1?0:o+1,d=(a-c)/s[o].addedLength;n=bez.getPointInSegment(i.v[u],i.v[h],i.o[u],i.i[h],d,s[o]);break}c+=s[o].addedLength,o+=1}return n||(n=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),n},vectorOnPath:function(t,e,i){t=1==t?this.v.c?0:.999:t;var n=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),s=r[0]-n[0],a=r[1]-n[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));if(0===o)return[0,0];var l="tangent"===i?[s/o,a/o]:[-a/o,s/o];return l},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],l),extendPrototype([u],c),c.prototype.getValueAtTime=o,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,n,r){var s=h(t,e,i,n,r);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}})(),function(){function t(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0}TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var n={};return this.copyData(n,t),n.t=i.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=t}();var ShapePathInterface=function(){return function(t,e,i){var n=e.sh;function r(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return r.path}var s=propertyGroupFactory(r,i);return n.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(r,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r}}(),propertyGroupFactory=function(){return function(t,e){return function(i){return i=void 0===i?1:i,i<=0?t:e(i-1)}}}(),PropertyInterface=function(){return function(t,e){var i={_name:t};function n(t){return t=void 0===t?1:t,t<=0?i:e(--t)}return n}}(),ShapeExpressionInterface=function(){function t(t,e,a){var d,p=[],f=t?t.length:0;for(d=0;d1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!==typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i0?r.map((function(t){return Object(g["b"])(t)})):[],this.searchCoopFileList=s.length>0?s.map((function(t){return Object(g["b"])(t)})):[],this.currentBtnIndex=0):this.$notify({type:["error"],message:"查询数据失败, 请稍后重试。"});case 10:case"end":return t.stop()}}),t,this)}))),500),notPicIcon:function(){return!this.oneOf(this.currentSelectTempFile.extension,x["g"])&&!this.oneOf(this.currentSelectTempFile.extension,x["c"])},picIcon:function(){return this.oneOf(this.currentSelectTempFile.extension,x["g"])},createTemplateFile:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s,a,o,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.currentSelectTempFile.fileName,n=t.currentSelectTempFile.extension,r=t.workFileList.findIndex((function(t){return t.archName===i&&t.extension==n})),!(r>-1)){e.next=6;break}return t.$notify({type:"warning",message:"文件名重复 请重新输入。",offset:100,duration:2500}),e.abrupt("return");case 6:return s=new Date,a=t.currentFolder.folderPath?t.currentFolder.folderPath:"",o={id:t.currentSelectTempFile.id,projId:t.projectId,folderId:t.currentNodeFolder.id,archName:i,extension:n,ipfsCid:t.currentSelectTempFile.hash,fileSize:t.currentSelectTempFile.fileSize,folderLevelId:t.currentNodeFolder.levelId,status:0,workStatus:0,commonStatus:0,deleted:t.currentSelectTempFile.deleted,milestone:0,version:0,showUrl:"",createUserId:t.userId,createTime:s,modifyUserId:t.userId,modifyTime:s,isShowRecycle:0,relativePath:a},e.next=11,b["a"](o);case 11:if(l=e.sent,0!=l.Code){e.next=19;break}return t.fetchFolderFiles(),t.isShowNewTemplateFileDialog=!1,t.$notify({message:"文件 “".concat(i,"” 创建成功。"),type:"success",offset:100,duration:2500}),e.abrupt("return");case 19:return t.isShowNewTemplateFileDialog=!1,t.$notify({message:"文件 “".concat(i,"” 创建失败 请稍后重试。"),type:"error",offset:100,duration:2500}),e.abrupt("return");case 22:case"end":return e.stop()}}),e)})))()},fileTempClick:function(t){this.isShowNewTemplateFileDialog=!0,this.currentSelectTempFile=Object(a["a"])({},t)},filePreview:function(t,e){var i=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,l,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,b["f"](sessionStorage.companyId);case 2:if(r=n.sent,s={API:"company/queryFileOnlineUrlByCompanyId",Action:"打开文件",CompanyName:sessionStorage.CompanyName,Subject:t.archName+"."+t.extension,Source:sessionStorage.client,ProjectName:sessionStorage.projName},i.$fetchApi("operation/record",s),a="http://"+r.Data,2!=e){n.next=14;break}o="http://www.lockingos.org:8012/onlinePreview?url=",l="?fullfilename="+t.archName+"."+t.extension,console.log(o+a+t.ipfsCid+l),c=o+encodeURIComponent(a+t.ipfsCid+l)+"&officePreviewType=pdf",window.open(c,""),n.next=20;break;case 14:if(1!=e){n.next=19;break}i.isVideo=!0,i.videoSrc=a+t.ipfsCid,n.next=20;break;case 19:return n.abrupt("return");case 20:case"end":return n.stop()}}),n)})))()},videoClose:function(){this.videoSrc=""},deleteFolderClick:function(t){var e=this.isClient,i=this.subFolderList,n=this.workFileList,r=this.subFolderMap,a=this.userId,l=this.localFileHashMap,c=this.reverseLocalFileHashMap,u=r[t].folderName,h=this,d=[];function p(t){var e=i.filter((function(e){return e.parentFolderPath==t}));if(0==e.length){var a=n.filter((function(e){return e.relativePath==t})),o=r[t].parentFolderPath;if(""!==o){var l=n.filter((function(t){return t.relativePath==o}));a.push.apply(a,Object(s["a"])(l))}d.push.apply(d,Object(s["a"])(a))}e.forEach((function(t){p(t.id)}))}this.$confirm("确认删除文件夹“".concat(u,"”吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:p(t),n=d.length,console.log("要删除的文件总数是",n),r=d.find((function(t){return 2==t.workStatus&&t.modifyUserId!==a})),r?h.$notify({message:"“".concat(u,"”文件夹下存在“工作中”文件,删除失败。"),type:"error",offset:100,duration:2500}):(s=0,d.forEach(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e&&delete l[c[i.ipfsCid]],t.next=3,b["c"](i.id);case 3:r=t.sent,s=0==r.Code?s+1:s,s==n&&h.$notify({message:"“".concat(u,"”文件夹已删除。"),type:["success"],duration:2500}),h.fetchFolderFiles();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 5:case"end":return i.stop()}}),i)}))))},getExchangeNodesChild:function(){var t=this,e={};this.exchangeNodeListsInCoop.forEach(function(){var i=Object(o["a"])(regeneratorRuntime.mark((function i(n){var r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:r={},r.realChildFileLists=[],r.realChildFolderLists=[],r.realChildFolderLists=t.filterFoldersInTarget(t.coopSubFolderList,n,n,!0),r.realChildFileLists=t.filterFilesInTarget(t.cooperationFileList,n,n,!0),e[n.id]=r,t.exchangeNodeInfoMap=e;case 7:case"end":return i.stop()}}),i)})));return function(t){return i.apply(this,arguments)}}())},dealWithCoopFiles:function(t,e){var i=[],n={},r=function(t){var e=t.relativePath,r=e.split("/");r.forEach((function(t,e){var s=r.slice(0,e+1).join("/");if(!n[s]){var a=new x["d"](s),o=a.parentFolderPath;i.push(a),n[s]=a,n[o]&&n[o].childCount++}}))};return t.forEach((function(t){var e=[t.nodeName,t.relativePath].filter((function(t){return t})).join("/");t.relativePath=e,r(t)})),e.forEach(r),i},oneFileRightBtnClick:function(t){this.tempRightFileId=t,this.rightMenuvisible=!1},filterFilesInWork:function(t){var e=this.currentFolder.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.relativePath===i}))},filterFilesInCoop:function(t){var e=this.currentFolderInCoop.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.relativePath==i}))},filterFilesInTarget:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.topFolderInCoop,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.folderPath,s=void 0===r?"":r;return t.filter((function(t){if(t.relativePath==s){if(!n)return!0;if(t.folderId==i.id)return!0}return!1}))},filterFoldersInWork:function(t){var e=this.currentFolder.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.parentFolderPath===i}))},filterFoldersInCoop:function(t){var e=this.currentFolderInCoop.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.parentFolderPath==i}))},filterFoldersInTarget:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.topFolderInCoop,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.folderPath,s=void 0===r?"":r;return t.filter((function(t){if(t.parentFolderPath==s){if(!n)return!0;if(t.topFolderId==i.id)return!0}return!1}))},oneOf:function(t,e){return-1!==e.indexOf(t)},initWorkspaceDropEvent:function(){var t=document.getElementById("workspace");t.addEventListener("dragenter",this.stopPropagation),t.addEventListener("dragover",this.stopPropagation),t.addEventListener("dragleave",this.stopPropagation),t.addEventListener("drop",this.fileDropEvent,!1)},fileDropEvent:function(t){var e=Object(S["propertyOf"])(t)("dataTransfer.files");if(e&&0!==e.length&&"copyLink"!=t.dataTransfer.effectAllowed){var i=Array.from(e).map((function(t){return t.path}));this.clientUpload(i)}},stopPropagation:function(t){t.stopPropagation(),t.preventDefault()},onfileDragStart:function(e,i){var n=this;if(i.dataTransfer.effectAllowed="move",this.stopPropagation(i),this.isClient){var r=e.nodeName,s=e.id,a=!!r,o=Object(x["f"])(e,this.currentNodeFolder);if(this.localFileHashMap[o]){if(!a){if(e.workStatus===V&&sessionStorage.userId!==e.modifyUserId)return;b["b"](s,V).then((function(t){0===t.Code&&(e.workStatus=V,e.modifyUserId=sessionStorage.userId,n.fetchFolderFiles())}))}var l=t.electron.ipcRenderer;l.invoke("project-file-dnd","".concat(this.localWorkspacePrefix,"\\").concat(o))}}},intervalTask:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.fetchFolderFiles();case 2:t.timerIns&&setTimeout((function(){t.intervalTask()}),3e3);case 3:case"end":return e.stop()}}),e)})))()},onscroll:function(){},listenBottomHeight:function(){var t=document.getElementById("coopFileBox")?document.getElementById("coopFileBox").offsetHeight:0;this.isShowShadow=t>259},onSocketFileChangeDetected:function(t){var e=t.data;try{var i=JSON.parse(e);Object.entries(i).forEach((function(t){var e=Object(r["a"])(t,2),n=e[0],s=e[1];1===s.split(";").length&&(i[n]="".concat(s,";0"))})),this.localFileHashMap=i,this.fetchFolderFiles()}catch(n){console.log("socket file change message error:",n)}},addLocalFileRecord:function(t,e){this.localFileHashMap=Object(a["a"])(Object(a["a"])({},this.localFileHashMap),{},Object(n["a"])({},t,"".concat(e,";0")))},updateFileLoadState:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0;t.id;var c={type:e,loadProgress:i,loadSize:r,totalSize:o,unit:l,loadUnit:s,fileRelativePath:t.relativePath||""};this.localFileLoadStateMap=Object(a["a"])(Object(a["a"])({},this.localFileLoadStateMap),{},Object(n["a"])({},t.id,c))},removeFileLoadingState:function(t){console.log("going to remove file: ".concat(t)),delete this.localFileLoadStateMap[t],this.localFileLoadStateMap=Object(a["a"])({},this.localFileLoadStateMap)},intoSubFolder:function(t,e){var i=this;0==e?(this.currentFolder=t,this.breadcrumbFolderList.push(t)):1==e&&(this.currentFolderInCoop=t,this.breadcrumbFolderListInCoop.push(t),this.$nextTick((function(){i.listenBottomHeight()})))},fetchFolderFiles:Object(S["throttle"])(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.currentNodeFolder,i=this.userId,e&&e.id){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,b["d"](e.id,i);case 6:if(n=t.sent,n){t.next=9;break}return t.abrupt("return");case 9:if(this.currentNodeFolder.id===e.id){t.next=11;break}return t.abrupt("return");case 11:this.workFileList=n.file,this.subFolderMap=Object(a["a"])(Object(a["a"])({},this.subFolderMap),n.folderMap),this.resolveUploadFileList(this.workFileList),this.workSubFolderList=n.folder,this.tempWorkSubFolderList=this.tempWorkSubFolderList.filter((function(t){return!n.folder.some((function(e){return e.id===t.id}))})),this.cooperationFileList=n.coordinationFiles.concat(n.nestCoordinationFiles),this.coopSubFolderList=this.dealWithCoopFiles(n.coordinationFiles,n.nestCoordinationFiles),this.resolveUploadFileList(this.cooperationFileList);case 19:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),1e3),resolveUploadFileList:function(t){var e=this;this.uploadFileList=this.uploadFileList.filter((function(i){var n=t.find((function(t){return t.relativePath===i.relativePath&&t.archName===i.archName&&t.extension===i.extension}));return e.removeFileLoadingState(i.id),!n}))},createSubFolder:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.folderGroupData.FolderName){e.next=3;break}return g["d"].warning("请输入文件夹名称!"),e.abrupt("return");case 3:if(i=t.folderGroupData.FolderName,n=t.currentFolder.folderPath||"",r=n?"".concat(n,"/").concat(i):i,!t.subFolderMap[r]){e.next=9;break}return g["d"].warning("创建失败,已存在同名文件夹!"),e.abrupt("return");case 9:s=new x["d"](r),t.subFolderMap[r]=s,t.tempWorkSubFolderList.push(s),g["d"].success("文件夹创建成功!"),t.dialogNewFolderGroup=!1;case 14:case"end":return e.stop()}}),e)})))()},newCreateFolderGroup:function(){this.dialogNewFolderGroup=!0,this.folderGroupData=T()},clearCurrentFolderFiles:function(){this.uploadFileList=[],this.workFileList=[],this.workSubFolderList=[],this.tempWorkSubFolderList=[],this.cooperationFileList=[],this.localFileLoadStateMap={},this.localFolderLoadStateMap={},this.tempRightFileId=""},clickBreadcrumb:function(t,e){var i=this;if(0==e){var n=-1===t?this.currentNodeFolder:this.breadcrumbFolderList[t];this.currentFolder=n,this.breadcrumbFolderList=this.breadcrumbFolderList.slice(0,t+1)}else if(1==e){var r=-1===t?this.currentNodeFolder:this.breadcrumbFolderListInCoop[t];this.currentFolderInCoop=r,this.isShowStartNodeFolders=-1===t,this.breadcrumbFolderListInCoop=this.breadcrumbFolderListInCoop.slice(0,t+1),this.$nextTick((function(){i.listenBottomHeight()}))}},selectSystemFiles:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isClient){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,v["a"].chooseFiles();case 4:if(i=e.sent,i){e.next=7;break}return e.abrupt("return");case 7:t.clientUpload(i);case 8:case"end":return e.stop()}}),e)})))()},selectSystemFolders:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isClient){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,v["a"].chooseFolders();case 4:if(i=e.sent,i){e.next=7;break}return e.abrupt("return");case 7:t.clientUpload(i);case 8:case"end":return e.stop()}}),e)})))()},generateVirtualFolder:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t){var i={},n=[],r=this.subFolderMap;Object(x["e"])(t,e,(function(t){if(!r[t]){var e=new x["d"](t);i[e.folderPath]=e,n.push(e)}})),this.subFolderMap=Object(a["a"])(Object(a["a"])({},r),i),this.tempWorkSubFolderList=this.tempWorkSubFolderList.concat(n)}},clientUpload:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s,c,u,h,d,p,f,m,y,b,x;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Promise.all(t.map((function(t){return v["a"].analyzeSystemPath(t)})));case 2:if(n=i.sent,r=Object(S["flatten"])(n),s=e.currentNodeFolder,c=s.folderName,u=s.levelId,h=s.id,d=e.currentFolder.folderPath,p=void 0===d?"":d,f=e.workFileList,m=r.some((function(t){var e=t.fileName,i=t.extension,n=t.relativePath,r=i?"".concat(e,".").concat(i):e,s="".concat(p?"".concat(p,"\\"):"").concat(n?"".concat(n):"").replace(/(\\)+/g,"/");return f.some((function(t){return s===t.relativePath&&"".concat(t.archName).concat(t.extension?".".concat(t.extension):"")===r}))})),!m){i.next=21;break}return y=!1,i.prev=10,i.next=13,l["default"].prototype.$confirm("监测到文件夹存在同名文件,是否继续上传并覆盖同名文件?","",{showClose:!1,type:"warning"});case 13:y=!0,i.next=19;break;case 16:i.prev=16,i.t0=i["catch"](10),console.log("user canceled");case 19:if(y){i.next=21;break}return i.abrupt("return");case 21:b={tempNumCount:0},x=r?r.length:0,r.forEach((function(t){var i=t.fullPath,n=t.fileName,r=t.extension,s=t.relativePath;e.generateVirtualFolder(s,p);var l=sessionStorage.getItem("accountName"),d={creator:l,projectId:e.projectId,projectName:e.projectName,folderId:h,folderName:c,folderLevelId:u,distFileRelativePath:[p,s].filter((function(t){return t})).join("\\").replace(/(\\)+/g,"/"),fileName:n,fileExtension:r,sourceFilePath:i,fileList:f,onSuccess:function(t){var i=t.ArchName,n=t.IpfsCid,r=t.Extension,s=t.RelativePath,a="".concat(c,"\\").concat(s?"".concat(s.replace(/\//g,"\\"),"\\"):"").concat(i).concat(r?".".concat(r):"");e.addLocalFileRecord(a,n),e.removeFileLoadingState(t.Id),e.fetchFolderFiles()},onProgress:function(t,i){var n=t.process,r=t.hash,s=t.size,a=t.currentSize,o=t.currentUnit,l=t.unit,c=Object(g["b"])(i);r||e.updateFileLoadState(c,w,n,a,o,s,l),-1!==c.id.indexOf("upload:")&&(e.uploadFileList.find((function(t){return t.id===c.id}))||e.uploadFileList.push(c))},onError:function(t,i){e.removeFileLoadingState(i.Id),e.uploadFileList=e.uploadFileList.filter((function(t){return t.id!==i.Id}))},successAllHandler:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}()};v["a"].uploadFile(Object(a["a"])(Object(a["a"])({},d),{},{totalReadyUploadNum:x,tempNumWrap:b}))}));case 24:case"end":return i.stop()}}),i,null,[[10,16]])})))()},clientDownLoad:function(t){var e=this;if(this.isClient){var i=t.ipfsCid,n=t.archName,r=t.extension,s=(t.folderId,t.nodeName),a=t.relativePath,o=(this.folderMap,this.currentNodeFolder.folderName),l="".concat(n).concat(r?".".concat(r):""),c=!!s,u="".concat(o).concat(c?"\\协作文件":""),h="".concat(u).concat(a?"\\".concat(a):"").replace(/\//g,"\\"),d=Object(x["f"])(t,this.currentNodeFolder),p=function(){e.removeFileLoadingState(t.id)};this.updateFileLoadState(t,k,0),v["a"].downloadFile(i,sessionStorage.projName,l,h,(function(r,s){console.log("receive download file message:",r,s);try{var a=JSON.parse(r.data),o=a.process;a.hash;if(e.updateFileLoadState(t,k,o),100!==o)return;e.addLocalFileRecord(d,i),e.removeFileLoadingState(t.id),e.$notify({type:["success","download"],title:"文件已下载",message:"".concat(n)}),s.close()}catch(l){console.error("socket-download-file parse data have error:",l),p(),s.close()}}),p)}},downloadFolder:function(t){var e=this;this.workFileList.forEach((function(i){0===i.relativePath.indexOf(t.folderPath)&&e.clientDownLoad(i)}))},openNativeCurrentFolder:function(){var t=this.currentNodeFolder.folderName,e="".concat(this.localWorkspacePrefix,"\\").concat(t);v["a"].openFolder(e)},closeCommitJudge:function(){var t=this;this.$confirm("确定取消此次文件 “".concat(this.commitJudgeFile.archName,"” 的提交吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.commitFileControlIpfsCid="",t.isShowCommitJudgeWindow=!1,t.comitJudgeCom=null})).catch((function(t){console.log(t)}))},finishCommitFile:function(){if(this.commitJudgeCom=this.$refs["commit-judge"],this.commitJudgeCom&&0==this.commitJudgeCom.remarkContent.length)this.$notify({type:"warning",message:"提交备注不能为空"});else{var t=this.commitJudgeFile,e=Object(x["f"])(t,this.currentNodeFolder),i=this.localFileHashMap[e],n=t.ipfsCid,s=i.split(";"),a=Object(r["a"])(s,2),o=a[0],l=a[1],c=i&&"1"==l&&o!==n;console.log(c),this.commitFile(c),this.isShowCommitJudgeWindow=!1,this.commitFileControlIpfsCid="",this.comitJudgeCom=null}},showCommitWindow:function(t,e){this.isShowCommitJudgeWindow=!0,this.commitJudgeFile=t,this.fileImgClass=e},toggleFileShareStatus:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=2==t.status?1:2,r=2===n?"开启":"关闭",i.next=4,e.$fetchApi("file/changeFileStatus",{fileId:t.id,status:n});case 4:if(s=i.sent,Object(C["c"])(s),!s.Code){i.next=8;break}return i.abrupt("return");case 8:g["d"].success("文件已".concat(r,"协同")),t.status=n;case 10:case"end":return i.stop()}}),i)})))()},commitFile:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s,l,c,u,h,d,p;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e.isClient){i.next=2;break}return i.abrupt("return");case 2:return n=e.commitJudgeFile,i.next=5,b["h"](n.id);case 5:r=i.sent,s=r.Data||{},Object.keys(s).length>0&&(s=Object(g["b"])(s)),e.commitFileControlIpfsCid=s.currentIpfsCid?s.currentIpfsCid:"",l=e.currentNodeFolder,c=l.folderName,l.levelId,l.id,n.archName,n.extension,u=n.id,h=n.relativePath,e.updateFileLoadState(n,w,0),d=function(){e.removeFileLoadingState(n.id)},p=Object(x["f"])(n,e.currentNodeFolder),e.uploadCommandInfo,v["a"].updateFile(n,e.localWorkspacePrefix,e.projectName,"".concat(c).concat(h?"\\".concat(h).replace(/\//g,"\\"):""),e.commitFileControlIpfsCid,e.commitJudgeCom.remarkContent,sessionStorage.getItem("accountName"),e.commitJudgeCom.isMileStone,t,function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:g["d"].success("".concat(n.archName,",已更新。")),r=i.IpfsCid,e.addLocalFileRecord(p,r),e.removeFileLoadingState(u),e.workFileList=e.workFileList.map((function(t){return t.id===n.id?Object(a["a"])(Object(a["a"])({},t),{},{ipfsCid:r,workStatus:P}):t})),0==e.currentBtnIndex&&e.isShowSearchPage&&(e.searchWorkFileList=e.searchWorkFileList.map((function(t){return t.id===n.id?Object(a["a"])(Object(a["a"])({},t),{},{ipfsCid:r,workStatus:P}):t})));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){var i=t.process,r=t.hash,s=t.size,a=t.currentSize,o=t.currentUnit,l=t.unit;r||e.updateFileLoadState(n,w,i,a,o,s,l)}),d);case 16:case"end":return i.stop()}}),i)})))()},getHistoryFileList:function(t){var e=this,i=function(t){e.fileHistoryList=t};v["a"].queryCommitHistory(t.path,t.hash,i)},commitFolder:function(t){var e="".concat(this.localWorkspacePrefix,"\\").concat(this.currentNodeFolder.folderName).concat(t.folderPath?"\\".concat(t.folderPath):"").replace(/\//g,"\\");this.clientUpload([e])},openFile:function(t){var e=arguments,i=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,l,c,u,h,d;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.length>1&&void 0!==e[1]?e[1]:"open",i.isClient){n.next=3;break}return n.abrupt("return");case 3:if(t.archName,t.extension,s=t.id,a=t.nodeName,o=i.localWorkspacePrefix,l=!!a,c=Object(x["f"])(t,i.currentNodeFolder),i.localFileHashMap[c]){n.next=9;break}return n.abrupt("return");case 9:if(u="".concat(o,"\\").concat(c),h="open"===r?"openFile":"clientOpenFileWith",l||2!==t.workStatus||sessionStorage.userId===t.modifyUserId){n.next=14;break}return i.$notify({type:["warning"],title:"暂不能打开此文件",message:"".concat(t.modifyName,"正在编辑此文件,请在“工作中”标识消失后再尝试打开。")}),n.abrupt("return");case 14:if(!l){n.next=17;break}return v["a"][h](u),n.abrupt("return");case 17:if(2===t.workStatus){n.next=24;break}return t.workStatus=2,n.next=21,b["b"](s,2);case 21:if(d=n.sent,0===d.Code){n.next=24;break}return n.abrupt("return");case 24:t.modifyUserId=sessionStorage.userId,v["a"][h](u),i.fetchFolderFiles();case 27:case"end":return n.stop()}}),n)})))()},openFileWith:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:e.openFile(t,"openWith");case 1:case"end":return i.stop()}}),i)})))()},fileClick:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.openFile(e,"open");case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),rightShowMenu:function(t,e,i){var n=this;this.$nextTick((function(){n.rightMenuvisible=!0,n.tempRightFileId="currentWorkFolder",n.rightMenuleft=t.clientX,n.rightMenuTop=t.clientY,n.rightMenuEl=n.$refs["right-menu"];var e=document.querySelector("#workspace"),i=e.clientWidth,r=n.rightMenuEl?n.rightMenuEl.clientWidth:0;t.clientX+r>i&&(n.rightMenuleft=t.clientX-r)}))},closeShowMenu:function(){this.rightMenuvisible=!1},openCopage:function(){this.isShowpageIcon=!1,this.isCollapse=!1,this.neibianju="neibianju1",this.closepageH="closepageH"},closeCopage:function(){this.isShowpageIcon=!0,this.isCollapse=!0,this.neibianju="neibianju",this.closepageH=""},copyWorkFileBtnClick:function(t,e){var i=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,l,c,u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=Object(S["cloneDeep"])(t),s=1,a="",e&&(r.archName="".concat(r.archName,"-版本").concat(e)),a=r.archName+"-副本",o=i.workFileList.find((function(t){return t.archName===a}));while(o)a=r.archName+"-副本(".concat(++s,")"),o=i.workFileList.find((function(t){return t.archName===a}));return l="0"+(new Date).getHours(),c="0"+(new Date).getMinutes(),u="0"+(new Date).getSeconds(),l=l.substr(l.length-2),c=c.substr(c.length-2),u=u.substr(u.length-2),r.archName=a+"-"+l+c+u,r.modifyUserId=sessionStorage.userId,r.modifyTime=new Date,r.createUserId=sessionStorage.userId,r.createTime=new Date,r.historyCurrentIpfsCid="",n.next=20,b["a"](r);case 20:i.fetchFolderFiles();case 21:case"end":return n.stop()}}),n)})))()},deleteFileClick:function(t,e,i,n){var r=this;e==sessionStorage.userId?this.$confirm("确认删除“".concat(i,"”吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,b["c"](t);case 2:if(s=e.sent,0!==s.Code){e.next=14;break}r.$notify({message:"“".concat(i,"”文件已移除。"),type:["success"],duration:2500}),e.t0=regeneratorRuntime.keys(r.localFileHashMap);case 6:if((e.t1=e.t0()).done){e.next=13;break}if(a=e.t1.value,r.localFileHashMap[a]!==n){e.next=11;break}return delete r.localFileHashMap[a],e.abrupt("break",13);case 11:e.next=6;break;case 13:r.fetchFolderFiles();case 14:case"end":return e.stop()}}),e)})))):r.$notify({message:"不能删除其他用户创建的文件。",type:["error"],duration:2500})},checkMilestoneClick:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var n,r,s,a,o;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e.checkMilestoneShow=!0,n=e.localWorkspacePrefix,r=Object(x["f"])(t,e.currentNodeFolder),e.localFileHashMap[r]){i.next=5;break}return i.abrupt("return");case 5:return s="".concat(n,"\\").concat(r),e.fileMilestoneInfo.path=s,i.next=9,b["h"](t.id);case 9:a=i.sent,0==a.Code&&(e.fileMilestoneInfo.hash=(null===(o=a.Data)||void 0===o?void 0:o.CurrentIpfsCid)||""),e.getHistoryFileList(e.fileMilestoneInfo),e.currentFile=t;case 13:case"end":return i.stop()}}),i)})))()},closeMilestonePain:function(t){this.checkMilestoneShow=t}}}}).call(this,i("c8ba"))},a642:function(t,e,i){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},afc6:function(t,e,i){},afd2:function(t,e,i){},b0e8:function(t,e,i){"use strict";var n=i("cdec");t.exports=function(t,e,i){return n.forEach(i,(function(i){t=i(t,e)})),t}},b391:function(t,e,i){"use strict";var n=i("cdec");t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,i,r,s,a){var o=[];o.push(t+"="+encodeURIComponent(e)),n.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),n.isString(r)&&o.push("path="+r),n.isString(s)&&o.push("domain="+s),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},b5ee:function(t,e,i){},bbe5:function(t,e,i){},bd77:function(t,e,i){"use strict";var n=i("afc6"),r=i.n(n);r.a},bde5:function(t,e,i){"use strict";var n=i("6c26"),r=i.n(n);r.a},bf4b:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"yiyun_wenjian_list nohover no-left-margin"},[i("div",{staticClass:"yiyunwenjian_imgbox ",on:{click:t.showNewFiledialog}},[t._m(0),i("span",{staticClass:"newbtn-text"},[t._v("导入文件")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.isShowNewFiledialog,expression:"isShowNewFiledialog == true"}],staticClass:"dia_8",on:{click:t.hideNewFiledialog}}),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.isShowNewFiledialog,expression:"isShowNewFiledialog == true"}],staticClass:"newfiledialog"},[i("div",{staticClass:"dragareaBox"},[i("div",{staticClass:"dragarea_top uploadBtn",on:{click:function(e){t.selectSystemFiles(),t.isShowNewFiledialog=!1}}},[i("img",{staticClass:"uploadBtnImg",attrs:{src:"static\\img\\upload.png",alt:""}}),i("span",{staticClass:"uploadText"},[t._v("点击上传本地文件")])]),i("div",{staticClass:"right-line"}),i("div",{staticClass:"dragarea_top uploadBtn",on:{click:function(e){t.selectSystemFolders(),t.isShowNewFiledialog=!1}}},[i("img",{staticClass:"uploadBtnImg",attrs:{src:"static\\img\\文件夹.svg",alt:""}}),i("span",{staticClass:"uploadText"},[t._v("点击上传本地文件夹")])])]),t.listTempFiles.length>0?i("div",{staticClass:"creatbox_mid mt-10"},[t._m(1),i("div",{staticClass:"temp-file-container"},[i("ul",{staticClass:"listTemplateList"},t._l(t.listTempFiles,(function(e,n){return i("li",{key:e.id,staticClass:"temp-file",on:{click:function(i){return i.stopPropagation(),t.fileTempClick(e,n)}}},[i("span",{staticClass:"listTemplateTextBig",attrs:{title:e.extension}},[t._v(t._s(e.extension))]),i("span",{staticClass:"listTemplateText"},[t._v(t._s(e.fileName))])])})),0)])]):t._e()])])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"new-btn"},[i("div",{staticClass:"hori draw-line"}),i("div",{staticClass:"vert draw-line"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title-head"},[i("div",{staticClass:"title-text"},[t._v("从样板文件中创建")])])}],s=(i("d81d"),i("96cf"),i("1da1")),a=i("3de1"),o=i("b0f9"),l={props:{oneOf:Function,onButtnClick:Function,selectSystemFiles:Function,selectSystemFolders:Function,currentNodeFolder:Object},data:function(){return{selectedFileIndex:0,isShowNewFiledialog:!1,isShowNewTemplateFileDialog:!1,listTempFiles:[],companyId:sessionStorage.companyId}},mounted:function(){this.loadListTempFiles()},methods:{showNewFiledialog:function(){this.isShowNewFiledialog=!0},hideNewFiledialog:function(){this.isShowNewFiledialog=!1},fileTempClick:function(t,e){this.$emit("fileTempClick",t),this.hideNewFiledialog()},loadListTempFiles:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=null===(i=t.currentNodeFolder)||void 0===i?void 0:i.nodeId,n){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,Object(o["i"])(n,t.companyId);case 5:if(r=e.sent,0===r.Code){e.next=8;break}return e.abrupt("return");case 8:t.listTempFiles=(r.Data||[]).map((function(t){return Object(a["b"])(t)}));case 9:case"end":return e.stop()}}),e)})))()}},watch:{currentNodeFolder:function(){this.loadListTempFiles()}}},c=l,u=(i("293a"),i("2877")),h=Object(u["a"])(c,n,r,!1,null,"d9a808d6",null);e["a"]=h.exports},c0e0:function(t,e,i){},c22c:function(t,e,i){},c51c:function(t,e,i){},c61b:function(t,e,i){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},cdec:function(t,e,i){"use strict";var n=i("fb32"),r=Object.prototype.toString;function s(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function o(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function h(t){return"string"===typeof t}function d(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){return"[object Date]"===r.call(t)}function m(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function g(t){return"[object Function]"===r.call(t)}function y(t){return p(t)&&g(t.pipe)}function b(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function x(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function S(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),s(t))for(var i=0,n=t.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(t,e){var i="function"===typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),a=[];try{while((void 0===e||e-- >0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},o=100,l=5,c=1.7,u=function(t,e,i){var o=Object(n["getOverlapGroupHandler"])(e);return function(t,e,l,c){var u,d,p,g,x,C;if(!l)return o.getVisuals(t,e,l,c);var k=Object(r["getTimestampIdentifier"])(t),w=Object(n["getVisuals"])(e,k),V=y(w,k);try{for(var T=s(V),P=T.next();!P.done;P=T.next()){var I=P.value,O=[];try{for(var _=(p=void 0,s(I.visuals)),A=_.next();!A.done;A=_.next()){var E=A.value,D=b(E,k),F=f(D,O);if(!1===F){var M=v(D,O);M&&(D.parent=M,D.sibling=Object(n["hasOverlap"])(D.start,D.end,M.start,S(M.start,i)),D.index=M.index+1,M.children.push(D))}else{var L=a(m(D,O,F-1,F-1),1),j=(M=L[0],m(D,O,F+1,F+O.length,!0));D.children=j,D.index=F,M&&(D.parent=M,D.sibling=Object(n["hasOverlap"])(D.start,D.end,M.start,S(M.start,i)),M.children.push(D));try{for(var B=(x=void 0,s(j)),$=B.next();!$.done;$=B.next()){var N=$.value;N.parent===M&&(N.parent=D);var R=N.index-D.index<=1;R&&D.sibling&&Object(n["hasOverlap"])(D.start,S(D.start,i),N.start,N.end)&&(N.sibling=!0)}}catch(H){x={error:H}}finally{try{$&&!$.done&&(C=B.return)&&C.call(B)}finally{if(x)throw x.error}}}O.push(D)}}catch(z){p={error:z}}finally{try{A&&!A.done&&(g=_.return)&&g.call(_)}finally{if(p)throw p.error}}h(O,i)}}catch(G){u={error:G}}finally{try{P&&!P.done&&(d=T.return)&&d.call(T)}finally{if(u)throw u.error}}return w.sort((function(t,e){return t.left-e.left||t.event.startTimestampIdentifier-e.event.startTimestampIdentifier})),w}};function h(t,e){var i,n;try{for(var r=s(t),a=r.next();!a.done;a=r.next()){var u=a.value,h=u.visual,p=u.parent,f=x(u)+1,m=p?p.visual.left:0,v=o-m,y=Math.min(l,o/f),b=d(u,t),S=v/(f-u.index+1),C=v/(f-u.index+(u.sibling?1:0))*b;p&&(h.left=u.sibling?m+S:m+y),h.width=g(u,t,e)?o-h.left:Math.min(o-h.left,C*c)}}catch(k){i={error:k}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}}function d(t,e){if(!t.children.length)return 1;var i=t.index+e.length,n=t.children.reduce((function(t,e){return Math.min(t,e.index)}),i);return n-t.index}function p(t,e){var i,r,a=[];try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;Object(n["hasOverlap"])(t.start,t.end,c.start,c.end)&&a.push(c.index)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function f(t,e){var i=p(t,e);i.sort();for(var n=0;n=i&&d.index<=r&&Object(n["hasOverlap"])(t.start,t.end,d.start,d.end)&&c.push(d)}}catch(f){o={error:f}}finally{try{h&&!h.done&&(l=u.return)&&l.call(u)}finally{if(o)throw o.error}}if(a&&c.length>0){var p=c.reduce((function(t,e){return Math.min(t,e.index)}),c[0].index);return c.filter((function(t){return t.index===p}))}return c}function v(t,e){var i,r,a=null;try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;Object(n["hasOverlap"])(t.start,t.end,c.start,c.end)&&(null===a||c.index>a.index)&&(a=c)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function g(t,e,i){var r,a;try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;if(c!==t&&c.index>t.index&&Object(n["hasOverlap"])(t.start,S(t.start,i),c.start,c.end))return!1}}catch(u){r={error:u}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return!0}function y(t,e){var i,r,o,l,c=[];try{for(var u=s(t),h=u.next();!h.done;h=u.next()){var d=h.value,p=a(Object(n["getNormalizedRange"])(d.event,e),2),f=p[0],m=p[1],v=!1;try{for(var g=(o=void 0,s(c)),y=g.next();!y.done;y=g.next()){var b=y.value;if(Object(n["hasOverlap"])(f,m,b.start,b.end)){b.visuals.push(d),b.end=Math.max(b.end,m),v=!0;break}}}catch(x){o={error:x}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}v||c.push({start:f,end:m,visuals:[d]})}}catch(S){i={error:S}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return c}function b(t,e){var i=a(Object(n["getNormalizedRange"])(t.event,e),2),r=i[0],s=i[1];return{parent:null,sibling:!0,index:0,visual:t,start:r,end:s,children:[]}}function x(t){var e,i,n=t.index;try{for(var r=s(t.children),a=r.next();!a.done;a=r.next()){var o=a.value,l=x(o);l>n&&(n=l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}return n}function S(t,e){var i=t%100,n=i+e,r=Math.floor(n/60),s=n%60;return t-i+100*r+s}},"./src/components/VCalendar/util/events.ts": +/*! exports provided: stack */function(t,e,i){"use strict";i.r(e),i.d(e,"stack",(function(){return u}));var n=i(/*! ./common */"./src/components/VCalendar/modes/common.ts"),r=i(/*! ../util/timestamp */"./src/components/VCalendar/util/timestamp.ts"),s=function(t){var e="function"===typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(t,e){var i="function"===typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),a=[];try{while((void 0===e||e-- >0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},o=100,l=5,c=1.7,u=function(t,e,i){var o=Object(n["getOverlapGroupHandler"])(e);return function(t,e,l,c){var u,d,p,g,x,C;if(!l)return o.getVisuals(t,e,l,c);var k=Object(r["getTimestampIdentifier"])(t),w=Object(n["getVisuals"])(e,k),V=y(w,k);try{for(var P=s(V),T=P.next();!T.done;T=P.next()){var I=T.value,_=[];try{for(var O=(p=void 0,s(I.visuals)),A=O.next();!A.done;A=O.next()){var E=A.value,D=b(E,k),F=f(D,_);if(!1===F){var M=v(D,_);M&&(D.parent=M,D.sibling=Object(n["hasOverlap"])(D.start,D.end,M.start,S(M.start,i)),D.index=M.index+1,M.children.push(D))}else{var L=a(m(D,_,F-1,F-1),1),j=(M=L[0],m(D,_,F+1,F+_.length,!0));D.children=j,D.index=F,M&&(D.parent=M,D.sibling=Object(n["hasOverlap"])(D.start,D.end,M.start,S(M.start,i)),M.children.push(D));try{for(var B=(x=void 0,s(j)),$=B.next();!$.done;$=B.next()){var N=$.value;N.parent===M&&(N.parent=D);var R=N.index-D.index<=1;R&&D.sibling&&Object(n["hasOverlap"])(D.start,S(D.start,i),N.start,N.end)&&(N.sibling=!0)}}catch(H){x={error:H}}finally{try{$&&!$.done&&(C=B.return)&&C.call(B)}finally{if(x)throw x.error}}}_.push(D)}}catch(z){p={error:z}}finally{try{A&&!A.done&&(g=O.return)&&g.call(O)}finally{if(p)throw p.error}}h(_,i)}}catch(G){u={error:G}}finally{try{T&&!T.done&&(d=P.return)&&d.call(P)}finally{if(u)throw u.error}}return w.sort((function(t,e){return t.left-e.left||t.event.startTimestampIdentifier-e.event.startTimestampIdentifier})),w}};function h(t,e){var i,n;try{for(var r=s(t),a=r.next();!a.done;a=r.next()){var u=a.value,h=u.visual,p=u.parent,f=x(u)+1,m=p?p.visual.left:0,v=o-m,y=Math.min(l,o/f),b=d(u,t),S=v/(f-u.index+1),C=v/(f-u.index+(u.sibling?1:0))*b;p&&(h.left=u.sibling?m+S:m+y),h.width=g(u,t,e)?o-h.left:Math.min(o-h.left,C*c)}}catch(k){i={error:k}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}}function d(t,e){if(!t.children.length)return 1;var i=t.index+e.length,n=t.children.reduce((function(t,e){return Math.min(t,e.index)}),i);return n-t.index}function p(t,e){var i,r,a=[];try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;Object(n["hasOverlap"])(t.start,t.end,c.start,c.end)&&a.push(c.index)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function f(t,e){var i=p(t,e);i.sort();for(var n=0;n=i&&d.index<=r&&Object(n["hasOverlap"])(t.start,t.end,d.start,d.end)&&c.push(d)}}catch(f){o={error:f}}finally{try{h&&!h.done&&(l=u.return)&&l.call(u)}finally{if(o)throw o.error}}if(a&&c.length>0){var p=c.reduce((function(t,e){return Math.min(t,e.index)}),c[0].index);return c.filter((function(t){return t.index===p}))}return c}function v(t,e){var i,r,a=null;try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;Object(n["hasOverlap"])(t.start,t.end,c.start,c.end)&&(null===a||c.index>a.index)&&(a=c)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function g(t,e,i){var r,a;try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;if(c!==t&&c.index>t.index&&Object(n["hasOverlap"])(t.start,S(t.start,i),c.start,c.end))return!1}}catch(u){r={error:u}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return!0}function y(t,e){var i,r,o,l,c=[];try{for(var u=s(t),h=u.next();!h.done;h=u.next()){var d=h.value,p=a(Object(n["getNormalizedRange"])(d.event,e),2),f=p[0],m=p[1],v=!1;try{for(var g=(o=void 0,s(c)),y=g.next();!y.done;y=g.next()){var b=y.value;if(Object(n["hasOverlap"])(f,m,b.start,b.end)){b.visuals.push(d),b.end=Math.max(b.end,m),v=!0;break}}}catch(x){o={error:x}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}v||c.push({start:f,end:m,visuals:[d]})}}catch(S){i={error:S}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return c}function b(t,e){var i=a(Object(n["getNormalizedRange"])(t.event,e),2),r=i[0],s=i[1];return{parent:null,sibling:!0,index:0,visual:t,start:r,end:s,children:[]}}function x(t){var e,i,n=t.index;try{for(var r=s(t.children),a=r.next();!a.done;a=r.next()){var o=a.value,l=x(o);l>n&&(n=l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}return n}function S(t,e){var i=t%100,n=i+e,r=Math.floor(n/60),s=n%60;return t-i+100*r+s}},"./src/components/VCalendar/util/events.ts": /*!*************************************************!*\ !*** ./src/components/VCalendar/util/events.ts ***! \*************************************************/ @@ -250,7 +250,7 @@ /*!****************************************************!*\ !*** ./src/components/VCalendar/util/timestamp.ts ***! \****************************************************/ -/*! exports provided: PARSE_REGEX, PARSE_TIME, DAYS_IN_MONTH, DAYS_IN_MONTH_LEAP, DAYS_IN_MONTH_MIN, DAYS_IN_MONTH_MAX, MONTH_MAX, MONTH_MIN, DAY_MIN, DAYS_IN_WEEK, MINUTES_IN_HOUR, MINUTE_MAX, MINUTES_IN_DAY, HOURS_IN_DAY, HOUR_MAX, FIRST_HOUR, OFFSET_YEAR, OFFSET_MONTH, OFFSET_HOUR, OFFSET_TIME, getStartOfWeek, getEndOfWeek, getStartOfMonth, getEndOfMonth, validateTime, parseTime, validateTimestamp, parseTimestamp, parseDate, getDayIdentifier, getTimeIdentifier, getTimestampIdentifier, updateRelative, isTimedless, updateHasTime, updateMinutes, updateWeekday, updateFormatted, getWeekday, daysInMonth, copyTimestamp, padNumber, getDate, getTime, nextMinutes, nextDay, prevDay, relativeDays, diffMinutes, findWeekday, getWeekdaySkips, timestampToDate, createDayList, createIntervalList, createNativeLocaleFormatter */function(t,e,i){"use strict";i.r(e),i.d(e,"PARSE_REGEX",(function(){return s})),i.d(e,"PARSE_TIME",(function(){return a})),i.d(e,"DAYS_IN_MONTH",(function(){return o})),i.d(e,"DAYS_IN_MONTH_LEAP",(function(){return l})),i.d(e,"DAYS_IN_MONTH_MIN",(function(){return c})),i.d(e,"DAYS_IN_MONTH_MAX",(function(){return u})),i.d(e,"MONTH_MAX",(function(){return h})),i.d(e,"MONTH_MIN",(function(){return d})),i.d(e,"DAY_MIN",(function(){return p})),i.d(e,"DAYS_IN_WEEK",(function(){return f})),i.d(e,"MINUTES_IN_HOUR",(function(){return m})),i.d(e,"MINUTE_MAX",(function(){return v})),i.d(e,"MINUTES_IN_DAY",(function(){return g})),i.d(e,"HOURS_IN_DAY",(function(){return y})),i.d(e,"HOUR_MAX",(function(){return b})),i.d(e,"FIRST_HOUR",(function(){return x})),i.d(e,"OFFSET_YEAR",(function(){return S})),i.d(e,"OFFSET_MONTH",(function(){return C})),i.d(e,"OFFSET_HOUR",(function(){return k})),i.d(e,"OFFSET_TIME",(function(){return w})),i.d(e,"getStartOfWeek",(function(){return V})),i.d(e,"getEndOfWeek",(function(){return T})),i.d(e,"getStartOfMonth",(function(){return P})),i.d(e,"getEndOfMonth",(function(){return I})),i.d(e,"validateTime",(function(){return O})),i.d(e,"parseTime",(function(){return _})),i.d(e,"validateTimestamp",(function(){return A})),i.d(e,"parseTimestamp",(function(){return E})),i.d(e,"parseDate",(function(){return D})),i.d(e,"getDayIdentifier",(function(){return F})),i.d(e,"getTimeIdentifier",(function(){return M})),i.d(e,"getTimestampIdentifier",(function(){return L})),i.d(e,"updateRelative",(function(){return j})),i.d(e,"isTimedless",(function(){return B})),i.d(e,"updateHasTime",(function(){return $})),i.d(e,"updateMinutes",(function(){return N})),i.d(e,"updateWeekday",(function(){return R})),i.d(e,"updateFormatted",(function(){return H})),i.d(e,"getWeekday",(function(){return z})),i.d(e,"daysInMonth",(function(){return G})),i.d(e,"copyTimestamp",(function(){return W})),i.d(e,"padNumber",(function(){return Y})),i.d(e,"getDate",(function(){return U})),i.d(e,"getTime",(function(){return q})),i.d(e,"nextMinutes",(function(){return K})),i.d(e,"nextDay",(function(){return X})),i.d(e,"prevDay",(function(){return Z})),i.d(e,"relativeDays",(function(){return J})),i.d(e,"diffMinutes",(function(){return Q})),i.d(e,"findWeekday",(function(){return tt})),i.d(e,"getWeekdaySkips",(function(){return et})),i.d(e,"timestampToDate",(function(){return it})),i.d(e,"createDayList",(function(){return nt})),i.d(e,"createIntervalList",(function(){return rt})),i.d(e,"createNativeLocaleFormatter",(function(){return st}));var n=i(/*! ../../../util/dateTimeUtils */"./src/util/dateTimeUtils.ts");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var s=/^(\d{4})-(\d{1,2})(-(\d{1,2}))?([^\d]+(\d{1,2}))?(:(\d{1,2}))?(:(\d{1,2}))?$/,a=/(\d\d?)(:(\d\d?)|)(:(\d\d?)|)/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],l=[0,31,29,31,30,31,30,31,31,30,31,30,31],c=28,u=31,h=12,d=1,p=1,f=7,m=60,v=59,g=1440,y=24,b=23,x=0,S=1e4,C=100,k=100,w=1e4;function V(t,e,i){var n=W(t);return tt(n,e[0],Z),H(n),i&&j(n,i,n.hasTime),n}function T(t,e,i){var n=W(t);return tt(n,e[e.length-1]),H(n),i&&j(n,i,n.hasTime),n}function P(t){var e=W(t);return e.day=p,R(e),H(e),e}function I(t){var e=W(t);return e.day=G(e.year,e.month),R(e),H(e),e}function O(t){return"number"===typeof t&&isFinite(t)||!!a.exec(t)||"object"===r(t)&&isFinite(t.hour)&&isFinite(t.minute)}function _(t){if("number"===typeof t)return t;if("string"===typeof t){var e=a.exec(t);return!!e&&60*parseInt(e[1])+parseInt(e[3]||0)}return"object"===r(t)&&("number"===typeof t.hour&&"number"===typeof t.minute&&60*t.hour+t.minute)}function A(t){return"number"===typeof t&&isFinite(t)||"string"===typeof t&&!!s.exec(t)||t instanceof Date}function E(t,e,i){if(void 0===e&&(e=!1),"number"===typeof t&&isFinite(t)&&(t=new Date(t)),t instanceof Date){var n=D(t);return i&&j(n,i,n.hasTime),n}if("string"!==typeof t){if(e)throw new Error(t+" is not a valid timestamp. It must be a Date, number of seconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored.");return null}var r=s.exec(t);if(!r){if(e)throw new Error(t+" is not a valid timestamp. It must be a Date, number of seconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored.");return null}var a={date:t,time:"",year:parseInt(r[1]),month:parseInt(r[2]),day:parseInt(r[4])||1,hour:parseInt(r[6])||0,minute:parseInt(r[8])||0,weekday:0,hasDay:!!r[4],hasTime:!(!r[6]||!r[8]),past:!1,present:!1,future:!1};return R(a),H(a),i&&j(a,i,a.hasTime),a}function D(t){return H({date:"",time:"",year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),weekday:t.getDay(),hour:t.getHours(),minute:t.getMinutes(),hasDay:!0,hasTime:!0,past:!1,present:!0,future:!1})}function F(t){return t.year*S+t.month*C+t.day}function M(t){return t.hour*k+t.minute}function L(t){return F(t)*w+M(t)}function j(t,e,i){void 0===i&&(i=!1);var n=F(e),r=F(t),s=n===r;return t.hasTime&&i&&s&&(n=M(e),r=M(t),s=n===r),t.past=rn,t}function B(t){return t instanceof Date||"number"===typeof t&&isFinite(t)}function $(t,e,i){return t.hasTime!==e&&(t.hasTime=e,e||(t.hour=b,t.minute=v,t.time=q(t)),i&&j(t,i,t.hasTime)),t}function N(t,e,i){return t.hasTime=!0,t.hour=Math.floor(e/m),t.minute=e%m,t.time=q(t),i&&j(t,i,!0),t}function R(t){return t.weekday=z(t),t}function H(t){return t.time=q(t),t.date=U(t),t}function z(t){if(t.hasDay){var e=Math.floor,i=t.day,n=(t.month+9)%h+1,r=e(t.year/100),s=t.year%100-(t.month<=2?1:0);return((i+e(2.6*n-.2)-2*r+s+e(s/4)+e(r/4))%7+7)%7}return t.weekday}function G(t,e){return Object(n["isLeapYear"])(t)?l[e]:o[e]}function W(t){var e=t.date,i=t.time,n=t.year,r=t.month,s=t.day,a=t.weekday,o=t.hour,l=t.minute,c=t.hasDay,u=t.hasTime,h=t.past,d=t.present,p=t.future;return{date:e,time:i,year:n,month:r,day:s,weekday:a,hour:o,minute:l,hasDay:c,hasTime:u,past:h,present:d,future:p}}function Y(t,e){var i=String(t);while(i.lengthm)t.minute-=m,t.hour++,t.hour>=y&&(X(t),t.hour=x);return t}function X(t){return t.day++,t.weekday=(t.weekday+1)%f,t.day>c&&t.day>G(t.year,t.month)&&(t.day=p,t.month++,t.month>h&&(t.month=d,t.year++)),t}function Z(t){return t.day--,t.weekday=(t.weekday+6)%f,t.day=0)e(t);return t}function Q(t,e){var i=525600*(e.year-t.year),n=43800*(e.month-t.month),r=1440*(e.day-t.day),s=60*(e.hour-t.hour),a=e.minute-t.minute;return i+n+r+s+a}function tt(t,e,i,n){void 0===i&&(i=X),void 0===n&&(n=6);while(t.weekday!==e&&--n>=0)i(t);return t}function et(t){for(var e=[1,1,1,1,1,1,1],i=[0,0,0,0,0,0,0],n=0;nn,t}function B(t){return t instanceof Date||"number"===typeof t&&isFinite(t)}function $(t,e,i){return t.hasTime!==e&&(t.hasTime=e,e||(t.hour=b,t.minute=v,t.time=q(t)),i&&j(t,i,t.hasTime)),t}function N(t,e,i){return t.hasTime=!0,t.hour=Math.floor(e/m),t.minute=e%m,t.time=q(t),i&&j(t,i,!0),t}function R(t){return t.weekday=z(t),t}function H(t){return t.time=q(t),t.date=U(t),t}function z(t){if(t.hasDay){var e=Math.floor,i=t.day,n=(t.month+9)%h+1,r=e(t.year/100),s=t.year%100-(t.month<=2?1:0);return((i+e(2.6*n-.2)-2*r+s+e(s/4)+e(r/4))%7+7)%7}return t.weekday}function G(t,e){return Object(n["isLeapYear"])(t)?l[e]:o[e]}function W(t){var e=t.date,i=t.time,n=t.year,r=t.month,s=t.day,a=t.weekday,o=t.hour,l=t.minute,c=t.hasDay,u=t.hasTime,h=t.past,d=t.present,p=t.future;return{date:e,time:i,year:n,month:r,day:s,weekday:a,hour:o,minute:l,hasDay:c,hasTime:u,past:h,present:d,future:p}}function Y(t,e){var i=String(t);while(i.lengthm)t.minute-=m,t.hour++,t.hour>=y&&(X(t),t.hour=x);return t}function X(t){return t.day++,t.weekday=(t.weekday+1)%f,t.day>c&&t.day>G(t.year,t.month)&&(t.day=p,t.month++,t.month>h&&(t.month=d,t.year++)),t}function Z(t){return t.day--,t.weekday=(t.weekday+6)%f,t.day=0)e(t);return t}function Q(t,e){var i=525600*(e.year-t.year),n=43800*(e.month-t.month),r=1440*(e.day-t.day),s=60*(e.hour-t.hour),a=e.minute-t.minute;return i+n+r+s+a}function tt(t,e,i,n){void 0===i&&(i=X),void 0===n&&(n=6);while(t.weekday!==e&&--n>=0)i(t);return t}function et(t){for(var e=[1,1,1,1,1,1,1],i=[0,0,0,0,0,0,0],n=0;n0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},d=function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};e["default"]=Object(o["default"])(Object(s["provide"])("treeview"),r["default"]).extend({name:"v-treeview",provide:function(){return{treeview:this}},props:u({active:{type:Array,default:function(){return[]}},dense:Boolean,filter:Function,hoverable:Boolean,items:{type:Array,default:function(){return[]}},multipleActive:Boolean,open:{type:Array,default:function(){return[]}},openAll:Boolean,returnObject:{type:Boolean,default:!1},search:String,value:{type:Array,default:function(){return[]}}},n["VTreeviewNodeProps"]),data:function(){return{level:-1,activeCache:new Set,nodes:{},openCache:new Set,selectedCache:new Set}},computed:{excludedItems:function(){var t=new Set;if(!this.search)return t;for(var e=0;e0||n[1]>0);return{isSelected:r,isIndeterminate:s}},emitOpen:function(){this.emitNodeCache("update:open",this.openCache)},emitSelected:function(){this.emitNodeCache("input",this.selectedCache)},emitActive:function(){this.emitNodeCache("update:active",this.activeCache)},emitNodeCache:function(t,e){var i=this;this.$emit(t,this.returnObject?d(e).map((function(t){return i.nodes[t].item})):d(e))},handleNodeCacheWatcher:function(t,e,i,n){var r=this;t=this.returnObject?t.map((function(t){return Object(a["getObjectValueByPath"])(t,r.itemKey)})):t;var s=d(e);Object(a["deepEqual"])(s,t)||(s.forEach((function(t){return i(t,!1)})),t.forEach((function(t){return i(t,!0)})),n())},getDescendants:function(t,e){void 0===e&&(e=[]);var i=this.nodes[t].children;e.push.apply(e,d(i));for(var n=0;n0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},d=function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};e["default"]=Object(o["default"])(Object(s["provide"])("treeview"),r["default"]).extend({name:"v-treeview",provide:function(){return{treeview:this}},props:u({active:{type:Array,default:function(){return[]}},dense:Boolean,filter:Function,hoverable:Boolean,items:{type:Array,default:function(){return[]}},multipleActive:Boolean,open:{type:Array,default:function(){return[]}},openAll:Boolean,returnObject:{type:Boolean,default:!1},search:String,value:{type:Array,default:function(){return[]}}},n["VTreeviewNodeProps"]),data:function(){return{level:-1,activeCache:new Set,nodes:{},openCache:new Set,selectedCache:new Set}},computed:{excludedItems:function(){var t=new Set;if(!this.search)return t;for(var e=0;e0||n[1]>0);return{isSelected:r,isIndeterminate:s}},emitOpen:function(){this.emitNodeCache("update:open",this.openCache)},emitSelected:function(){this.emitNodeCache("input",this.selectedCache)},emitActive:function(){this.emitNodeCache("update:active",this.activeCache)},emitNodeCache:function(t,e){var i=this;this.$emit(t,this.returnObject?d(e).map((function(t){return i.nodes[t].item})):d(e))},handleNodeCacheWatcher:function(t,e,i,n){var r=this;t=this.returnObject?t.map((function(t){return Object(a["getObjectValueByPath"])(t,r.itemKey)})):t;var s=d(e);Object(a["deepEqual"])(s,t)||(s.forEach((function(t){return i(t,!1)})),t.forEach((function(t){return i(t,!0)})),n())},getDescendants:function(t,e){void 0===e&&(e=[]);var i=this.nodes[t].children;e.push.apply(e,d(i));for(var n=0;n0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},a=function(){for(var t=[],e=0;e0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},a=function(){for(var t=[],e=0;e0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a};function l(t){return!!t&&!!t.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function c(t){var e;if("number"===typeof t)e=t;else{if("string"!==typeof t)throw new TypeError("Colors can only be numbers or strings, recieved "+(null==t?t:t.constructor.name)+" instead");var i="#"===t[0]?t.substring(1):t;3===i.length&&(i=i.split("").map((function(t){return t+t})).join("")),6!==i.length&&Object(n["consoleWarn"])("'"+t+"' is not a valid rgb color"),e=parseInt(i,16)}return e<0?(Object(n["consoleWarn"])("Colors cannot be negative: '"+t+"'"),e=0):(e>16777215||isNaN(e))&&(Object(n["consoleWarn"])("'"+t+"' is not a valid rgb color"),e=16777215),e}function u(t,e,i){var n=o(t.toString().trim().replace("-","").split(" ",2),2),r=n[0],s=n[1],a="";return r&&r in e?s&&s in e[r]?a=e[r][s]:"base"in e[r]&&(a=e[r].base):r&&r in i&&(a=i[r]),a}function h(t){var e=t.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}function d(t){return h(c(t))}function p(t){var e=t.h,i=t.s,n=t.v,r=t.a,s=function(t){var r=(t+e/60)%6;return n-n*i*Math.max(Math.min(r,4-r,1),0)},a=[s(5),s(3),s(1)].map((function(t){return Math.round(255*t)}));return{r:a[0],g:a[1],b:a[2],a:r}}function f(t){if(!t)return{h:0,s:1,v:1,a:1};var e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),s=Math.min(e,i,n),a=0;r!==s&&(r===e?a=60*(0+(i-n)/(r-s)):r===i?a=60*(2+(n-e)/(r-s)):r===n&&(a=60*(4+(e-i)/(r-s)))),a<0&&(a+=360);var o=0===r?0:(r-s)/r,l=[a,o,r];return{h:l[0],s:l[1],v:l[2],a:t.a}}function m(t){var e=t.h,i=t.s,n=t.v,r=t.a,s=n-n*i/2,a=1===s||0===s?0:(n-s)/Math.min(s,1-s);return{h:e,s:a,l:s,a:r}}function v(t){var e=t.h,i=t.s,n=t.l,r=t.a,s=n+i*Math.min(n,1-n),a=0===s?0:2-2*n/s;return{h:e,s:a,v:s,a:r}}function g(t){return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"}function y(t){return g(a(a({},t),{a:1}))}function b(t){var e=function(t){var e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()};return"#"+[e(t.r),e(t.g),e(t.b),e(Math.round(255*t.a))].join("")}function x(t){var e=Object(r["chunk"])(t.slice(1),2).map((function(t){return parseInt(t,16)}));return{r:e[0],g:e[1],b:e[2],a:Math.round(e[3]/255*100)/100}}function S(t){var e=x(t);return f(e)}function C(t){return b(p(t))}function k(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),3!==t.length&&4!==t.length||(t=t.split("").map((function(t){return t+t})).join("")),t=6===t.length?Object(r["padEnd"])(t,8,"F"):Object(r["padEnd"])(Object(r["padEnd"])(t,6),8,"F"),("#"+t).toUpperCase().substr(0,9)}function w(t,e,i){return t.replace(/([a-z]+(\s[a-z]+-[1-5])?)(?=$|,)/gi,(function(t){return u(t,e,i)||t})).replace(/(rgba\()#[0-9a-f]+(?=,)/gi,(function(t){return"rgba("+Object.values(x(k(t.replace(/rgba\(/,"")))).slice(0,3).join(",")}))}function V(t){return(t.r<<16)+(t.g<<8)+t.b}function T(t,e){var i=o(Object(s["toXYZ"])(V(t)),2),n=i[1],r=o(Object(s["toXYZ"])(V(e)),2),a=r[1];return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}},"./src/util/colors.ts": +/*! exports provided: isCssColor, colorToInt, classToHex, intToHex, colorToHex, HSVAtoRGBA, RGBAtoHSVA, HSVAtoHSLA, HSLAtoHSVA, RGBAtoCSS, RGBtoCSS, RGBAtoHex, HexToRGBA, HexToHSVA, HSVAtoHex, parseHex, parseGradient, RGBtoInt, contrastRatio */function(t,e,i){"use strict";i.r(e),i.d(e,"isCssColor",(function(){return l})),i.d(e,"colorToInt",(function(){return c})),i.d(e,"classToHex",(function(){return u})),i.d(e,"intToHex",(function(){return h})),i.d(e,"colorToHex",(function(){return d})),i.d(e,"HSVAtoRGBA",(function(){return p})),i.d(e,"RGBAtoHSVA",(function(){return f})),i.d(e,"HSVAtoHSLA",(function(){return m})),i.d(e,"HSLAtoHSVA",(function(){return v})),i.d(e,"RGBAtoCSS",(function(){return g})),i.d(e,"RGBtoCSS",(function(){return y})),i.d(e,"RGBAtoHex",(function(){return b})),i.d(e,"HexToRGBA",(function(){return x})),i.d(e,"HexToHSVA",(function(){return S})),i.d(e,"HSVAtoHex",(function(){return C})),i.d(e,"parseHex",(function(){return k})),i.d(e,"parseGradient",(function(){return w})),i.d(e,"RGBtoInt",(function(){return V})),i.d(e,"contrastRatio",(function(){return P}));var n=i(/*! ./console */"./src/util/console.ts"),r=i(/*! ./helpers */"./src/util/helpers.ts"),s=i(/*! ./color/transformSRGB */"./src/util/color/transformSRGB.ts"),a=function(){return a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a};function l(t){return!!t&&!!t.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function c(t){var e;if("number"===typeof t)e=t;else{if("string"!==typeof t)throw new TypeError("Colors can only be numbers or strings, recieved "+(null==t?t:t.constructor.name)+" instead");var i="#"===t[0]?t.substring(1):t;3===i.length&&(i=i.split("").map((function(t){return t+t})).join("")),6!==i.length&&Object(n["consoleWarn"])("'"+t+"' is not a valid rgb color"),e=parseInt(i,16)}return e<0?(Object(n["consoleWarn"])("Colors cannot be negative: '"+t+"'"),e=0):(e>16777215||isNaN(e))&&(Object(n["consoleWarn"])("'"+t+"' is not a valid rgb color"),e=16777215),e}function u(t,e,i){var n=o(t.toString().trim().replace("-","").split(" ",2),2),r=n[0],s=n[1],a="";return r&&r in e?s&&s in e[r]?a=e[r][s]:"base"in e[r]&&(a=e[r].base):r&&r in i&&(a=i[r]),a}function h(t){var e=t.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}function d(t){return h(c(t))}function p(t){var e=t.h,i=t.s,n=t.v,r=t.a,s=function(t){var r=(t+e/60)%6;return n-n*i*Math.max(Math.min(r,4-r,1),0)},a=[s(5),s(3),s(1)].map((function(t){return Math.round(255*t)}));return{r:a[0],g:a[1],b:a[2],a:r}}function f(t){if(!t)return{h:0,s:1,v:1,a:1};var e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),s=Math.min(e,i,n),a=0;r!==s&&(r===e?a=60*(0+(i-n)/(r-s)):r===i?a=60*(2+(n-e)/(r-s)):r===n&&(a=60*(4+(e-i)/(r-s)))),a<0&&(a+=360);var o=0===r?0:(r-s)/r,l=[a,o,r];return{h:l[0],s:l[1],v:l[2],a:t.a}}function m(t){var e=t.h,i=t.s,n=t.v,r=t.a,s=n-n*i/2,a=1===s||0===s?0:(n-s)/Math.min(s,1-s);return{h:e,s:a,l:s,a:r}}function v(t){var e=t.h,i=t.s,n=t.l,r=t.a,s=n+i*Math.min(n,1-n),a=0===s?0:2-2*n/s;return{h:e,s:a,v:s,a:r}}function g(t){return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"}function y(t){return g(a(a({},t),{a:1}))}function b(t){var e=function(t){var e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()};return"#"+[e(t.r),e(t.g),e(t.b),e(Math.round(255*t.a))].join("")}function x(t){var e=Object(r["chunk"])(t.slice(1),2).map((function(t){return parseInt(t,16)}));return{r:e[0],g:e[1],b:e[2],a:Math.round(e[3]/255*100)/100}}function S(t){var e=x(t);return f(e)}function C(t){return b(p(t))}function k(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),3!==t.length&&4!==t.length||(t=t.split("").map((function(t){return t+t})).join("")),t=6===t.length?Object(r["padEnd"])(t,8,"F"):Object(r["padEnd"])(Object(r["padEnd"])(t,6),8,"F"),("#"+t).toUpperCase().substr(0,9)}function w(t,e,i){return t.replace(/([a-z]+(\s[a-z]+-[1-5])?)(?=$|,)/gi,(function(t){return u(t,e,i)||t})).replace(/(rgba\()#[0-9a-f]+(?=,)/gi,(function(t){return"rgba("+Object.values(x(k(t.replace(/rgba\(/,"")))).slice(0,3).join(",")}))}function V(t){return(t.r<<16)+(t.g<<8)+t.b}function P(t,e){var i=o(Object(s["toXYZ"])(V(t)),2),n=i[1],r=o(Object(s["toXYZ"])(V(e)),2),a=r[1];return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}},"./src/util/colors.ts": /*!****************************!*\ !*** ./src/util/colors.ts ***! \****************************/ @@ -1834,7 +1834,7 @@ /*!*****************************!*\ !*** ./src/util/helpers.ts ***! \*****************************/ -/*! exports provided: createSimpleFunctional, directiveConfig, addOnceEventListener, passiveSupported, addPassiveEventListener, getNestedValue, deepEqual, getObjectValueByPath, getPropertyFromItem, createRange, getZIndex, escapeHTML, filterObjectOnKeys, convertToUnit, kebabCase, isObject, keyCodes, remapInternalIcon, keys, camelize, arrayDiff, upperFirst, groupItems, wrapInArray, sortItems, defaultFilter, searchItems, getSlotType, debounce, throttle, getPrefixedScopedSlots, getSlot, clamp, padEnd, chunk, humanReadableFileSize, camelizeObjectKeys, mergeDeep, fillArray */function(t,e,i){"use strict";i.r(e),i.d(e,"createSimpleFunctional",(function(){return c})),i.d(e,"directiveConfig",(function(){return u})),i.d(e,"addOnceEventListener",(function(){return h})),i.d(e,"passiveSupported",(function(){return d})),i.d(e,"addPassiveEventListener",(function(){return f})),i.d(e,"getNestedValue",(function(){return m})),i.d(e,"deepEqual",(function(){return v})),i.d(e,"getObjectValueByPath",(function(){return g})),i.d(e,"getPropertyFromItem",(function(){return y})),i.d(e,"createRange",(function(){return b})),i.d(e,"getZIndex",(function(){return x})),i.d(e,"escapeHTML",(function(){return C})),i.d(e,"filterObjectOnKeys",(function(){return k})),i.d(e,"convertToUnit",(function(){return w})),i.d(e,"kebabCase",(function(){return V})),i.d(e,"isObject",(function(){return T})),i.d(e,"keyCodes",(function(){return P})),i.d(e,"remapInternalIcon",(function(){return I})),i.d(e,"keys",(function(){return O})),i.d(e,"camelize",(function(){return A})),i.d(e,"arrayDiff",(function(){return E})),i.d(e,"upperFirst",(function(){return D})),i.d(e,"groupItems",(function(){return F})),i.d(e,"wrapInArray",(function(){return M})),i.d(e,"sortItems",(function(){return L})),i.d(e,"defaultFilter",(function(){return j})),i.d(e,"searchItems",(function(){return B})),i.d(e,"getSlotType",(function(){return $})),i.d(e,"debounce",(function(){return N})),i.d(e,"throttle",(function(){return R})),i.d(e,"getPrefixedScopedSlots",(function(){return H})),i.d(e,"getSlot",(function(){return z})),i.d(e,"clamp",(function(){return G})),i.d(e,"padEnd",(function(){return W})),i.d(e,"chunk",(function(){return Y})),i.d(e,"humanReadableFileSize",(function(){return U})),i.d(e,"camelizeObjectKeys",(function(){return q})),i.d(e,"mergeDeep",(function(){return K})),i.d(e,"fillArray",(function(){return X}));var n=i(/*! vue */"vue"),r=i.n(n);function s(t){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var a=function(){return a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},l=function(){for(var t=[],e=0;e":">"};function C(t){return t.replace(/[&<>]/g,(function(t){return S[t]||t}))}function k(t,e){for(var i={},n=0;n=i&&r0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},l=function(){for(var t=[],e=0;e":">"};function C(t){return t.replace(/[&<>]/g,(function(t){return S[t]||t}))}function k(t,e){for(var i={},n=0;n=i&&r1?arguments[1]:void 0)}})},"5be0":function(e,t,r){},"6b3d":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"icon-triangle-circle",style:{width:e.size+"px",height:e.size+"px"}},[r("svg",{attrs:{width:"100%",height:"100%",viewBox:"0 0 100 100"}},[r("circle",{attrs:{cx:"50",cy:"56",r:"39","stroke-width":"10",stroke:e.color,fill:"transparent"}}),r("circle",{attrs:{cx:"50",cy:"16",r:"16",fill:e.color}}),r("circle",{attrs:{cx:"84",cy:"84",r:"16",fill:e.color}}),r("circle",{attrs:{cx:"16",cy:"84",r:"16",fill:e.color}})])])},a=[],c=(r("a9e3"),{props:{color:String,size:Number}}),u=c,i=(r("be84"),r("2877")),o=Object(i["a"])(u,n,a,!1,null,"cc170c78",null);t["a"]=o.exports},"6dcf":function(e,t,r){"use strict";var n=r("5be0"),a=r.n(n);a.a},a06e:function(e,t,r){"use strict";r.d(t,"d",(function(){return c})),r.d(t,"c",(function(){return i})),r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"e",(function(){return d}));r("d81d"),r("96cf");var n=r("1da1"),a=r("b775");r("3de1");function c(e){return u.apply(this,arguments)}function u(){return u=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("project/queryProjectListByUserId",{userId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function i(e){return o.apply(this,arguments)}function o(){return o=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("project/queryProjectInfoByProjId",{projId:t});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function s(e){return p.apply(this,arguments)}function p(){return p=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("project/editProject",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function l(e){return f.apply(this,arguments)}function f(){return f=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("project/assignedWork",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function d(e){return b.apply(this,arguments)}function b(){return b=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("project/searchProject",{projName:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}},a623:function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").every,c=r("a640"),u=r("ae40"),i=c("every"),o=u("every");n({target:"Array",proto:!0,forced:!i||!o},{every:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},b0f9:function(e,t,r){"use strict";r.d(t,"o",(function(){return c})),r.d(t,"m",(function(){return i})),r.d(t,"t",(function(){return s})),r.d(t,"d",(function(){return l})),r.d(t,"n",(function(){return d})),r.d(t,"q",(function(){return h})),r.d(t,"f",(function(){return w})),r.d(t,"s",(function(){return v})),r.d(t,"l",(function(){return g})),r.d(t,"k",(function(){return x})),r.d(t,"b",(function(){return R})),r.d(t,"p",(function(){return B})),r.d(t,"j",(function(){return C})),r.d(t,"h",(function(){return N})),r.d(t,"i",(function(){return q})),r.d(t,"a",(function(){return E})),r.d(t,"g",(function(){return P})),r.d(t,"c",(function(){return D})),r.d(t,"e",(function(){return U})),r.d(t,"r",(function(){return M}));r("4de4"),r("96cf");var n=r("1da1"),a=r("b775");function c(){return u.apply(this,arguments)}function u(){return u=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function i(e){return o.apply(this,arguments)}function o(){return o=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function s(e){return p.apply(this,arguments)}function p(){return p=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function l(e){return f.apply(this,arguments)}function f(){return f=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function d(e){return b.apply(this,arguments)}function b(){return b=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return m=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function w(e){return y.apply(this,arguments)}function y(){return y=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function v(e){return j.apply(this,arguments)}function j(){return j=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function g(e){return O.apply(this,arguments)}function O(){return O=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return k=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateIdByProjectId",{projectId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function R(e){return I.apply(this,arguments)}function I(){return I=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/connectNestTemplateFolder",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function B(e){return T.apply(this,arguments)}function T(){return T=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function C(e,t,r){return _.apply(this,arguments)}function _(){return _=Object(n["a"])(regeneratorRuntime.mark((function e(t,r,n){var c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:r,nestedNodeId:n});case 2:return c=e.sent,e.abrupt("return",Object(a["c"])(c));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function N(e){return S.apply(this,arguments)}function S(){return S=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function q(e,t){return A.apply(this,arguments)}function A(){return A=Object(n["a"])(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t,companyId:r?void 0:"0"});case 2:return n=e.sent,r&&n.Data&&(n.Data=n.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===r}))),e.abrupt("return",Object(a["c"])(n));case 5:case"end":return e.stop()}}),e)}))),A.apply(this,arguments)}function E(e){return F.apply(this,arguments)}function F(){return F=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function P(e){return W.apply(this,arguments)}function W(){return W=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function D(e){return L.apply(this,arguments)}function L(){return L=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function U(e){return z.apply(this,arguments)}function z(){return z=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function M(e){return $.apply(this,arguments)}function $(){return $=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/renameTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}},b1f3:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[r("div",{staticClass:"app-header-content"},[r("div",{staticClass:"app-header-content-left"},[e._t("left",[r("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),r("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),r("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?r("user-center"):e._e()],2)]),r("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},a=[],c=r("1392"),u={components:{UserCenter:c["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean},data:function(){return{isWindowScrollIng:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},i=u,o=(r("6dcf"),r("2877")),s=Object(o["a"])(i,n,a,!1,null,"373b66dc",null);t["a"]=s.exports},be84:function(e,t,r){"use strict";var n=r("d025"),a=r.n(n);a.a},c740:function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").findIndex,c=r("44d2"),u=r("ae40"),i="findIndex",o=!0,s=u(i);i in[]&&Array(1)[i]((function(){o=!1})),n({target:"Array",proto:!0,forced:o||!s},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),c(i)},d025:function(e,t,r){},db90:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("d3b7"),r("3ca3"),r("ddb0");function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},f96e:function(e,t,r){"use strict";var n=r("01a8");r.d(t,"a",(function(){return n["a"]}))}}]); \ No newline at end of file diff --git a/static/js/chunk-78390ace.c2dfa981.js b/static/js/chunk-78390ace.d2afa718.js similarity index 100% rename from static/js/chunk-78390ace.c2dfa981.js rename to static/js/chunk-78390ace.d2afa718.js diff --git a/static/js/chunk-7b356701.a93f9abf.js b/static/js/chunk-7b356701.ee6ee252.js similarity index 100% rename from static/js/chunk-7b356701.a93f9abf.js rename to static/js/chunk-7b356701.ee6ee252.js diff --git a/static/js/chunk-7d913a8a.7b5f2374.js b/static/js/chunk-7d913a8a.561502d6.js similarity index 100% rename from static/js/chunk-7d913a8a.7b5f2374.js rename to static/js/chunk-7d913a8a.561502d6.js diff --git a/static/js/chunk-7db1403b.0e9842b0.js b/static/js/chunk-7db1403b.d1dc164c.js similarity index 100% rename from static/js/chunk-7db1403b.0e9842b0.js rename to static/js/chunk-7db1403b.d1dc164c.js diff --git a/static/js/chunk-7e46145d.c5e8cc95.js b/static/js/chunk-7e46145d.41f8a344.js similarity index 100% rename from static/js/chunk-7e46145d.c5e8cc95.js rename to static/js/chunk-7e46145d.41f8a344.js diff --git a/static/js/chunk-84f66ece.74b6d6a3.js b/static/js/chunk-84f66ece.48423cc0.js similarity index 100% rename from static/js/chunk-84f66ece.74b6d6a3.js rename to static/js/chunk-84f66ece.48423cc0.js diff --git a/static/js/chunk-94641ab6.f1787c72.js b/static/js/chunk-94641ab6.89bd7c39.js similarity index 100% rename from static/js/chunk-94641ab6.f1787c72.js rename to static/js/chunk-94641ab6.89bd7c39.js diff --git a/static/js/chunk-d1bd5818.eb22a592.js b/static/js/chunk-d1bd5818.a624a0aa.js similarity index 100% rename from static/js/chunk-d1bd5818.eb22a592.js rename to static/js/chunk-d1bd5818.a624a0aa.js diff --git a/static/js/chunk-d4bc3576.9ac0d4e7.js b/static/js/chunk-d4bc3576.916ab4f7.js similarity index 100% rename from static/js/chunk-d4bc3576.9ac0d4e7.js rename to static/js/chunk-d4bc3576.916ab4f7.js diff --git a/static/js/chunk-d4e6d2d8.4128db4b.js b/static/js/chunk-d4e6d2d8.f937e7b4.js similarity index 100% rename from static/js/chunk-d4e6d2d8.4128db4b.js rename to static/js/chunk-d4e6d2d8.f937e7b4.js diff --git a/static/js/chunk-504bef5f.7e244c37.js b/static/js/chunk-d9ddb9e6.882a86b4.js similarity index 84% rename from static/js/chunk-504bef5f.7e244c37.js rename to static/js/chunk-d9ddb9e6.882a86b4.js index c95be835..5da475bd 100644 --- a/static/js/chunk-504bef5f.7e244c37.js +++ b/static/js/chunk-d9ddb9e6.882a86b4.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-504bef5f"],{"011a":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"app"}},[r("app-header",{attrs:{showUserCenter:!0,id:"proj-list-page",showRecycleBin:""},scopedSlots:t._u([{key:"left",fn:function(){return[r("el-button",{staticClass:"org-button no-drag",on:{click:function(e){return e.stopPropagation(),t.navBack(e)}}},[t._v(" "+t._s(t.currentPlatform.orgName)+" "),r("i",{staticClass:"el-icon-sort org-button-icon"})])]},proxy:!0},{key:"center",fn:function(){return[r("div",{staticClass:"main-title"},[t._v(t._s(t.showCenterTitle))])]},proxy:!0},{key:"right",fn:function(){return[r("search-bar",{staticClass:"proj-search-bar",attrs:{placeholder:"搜索项目名称",maxLength:35},on:{didHide:t.hideSearchBar,didShow:t.showSearchBar,search:t.searchForProj},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}})]},proxy:!0}])}),r("div",{staticClass:"layout_content"},[r("section",{staticClass:"yiyun_warpContent"},[r("div",{staticClass:"yiyun-rows mt-20",attrs:{id:"new"}},[r("div",{staticClass:"yiyun-col-4 timer-part"},[r("div",{staticClass:"yiyun_row",staticStyle:{width:"95%"}},[r("timer",{attrs:{cnName:t.cnName}})],1)]),t._m(0)]),t.noProjTip?r("div",{staticStyle:{"margin-left":"50%","margin-top":"25%"}},[r("h1",[t._v("空空如也")])]):t._e()]),t.isUserPerm?r("button",{staticClass:"yiyun_btn_new new-btn-margin",attrs:{id:"buttonbtn"},on:{click:function(e){return e.stopPropagation(),t.createNewProjectClick(e)}}},[t._v("新建项目")]):t._e(),t.linkApplyList&&t.linkApplyList.length?[r("div",{staticClass:"group-title"},[t._v("待互链的项目")]),r("div",{staticClass:"linkItem-list"},[r("el-row",{attrs:{gutter:64}},t._l(t.linkApplyList,(function(e){return r("el-col",{key:e.id,attrs:{xs:24,sm:12,md:12,lg:8,xl:6}},[r("div",{staticClass:"linkItem",on:{click:function(r){t.linkDialogContextData=e,t.linkDialogVisible=!0}}},[r("div",[r("icon-triangle-circle",{staticClass:"icon-models",attrs:{size:30,color:"#3C7DFF"}}),r("span",[t._v("项目互链邀请")])],1),r("div",[t._v(" 项目名称 ")]),r("div",[t._v(" 由“企业简称”的“负责人”邀请 ")])])])})),1)],1)]:t._e(),r("div",{staticClass:"group-title"},[t._v("最近的项目")]),r("proj-list",{attrs:{id:"proj-list",projList:t.showProjList,isUserPerm:t.isUserPerm},on:{watchAllBtnClick:t.watchAllBtnClick,lookProjDetailClick:t.lookProjDetailClick,"on-remove":t.onRemoveProject}}),r("el-dialog",{staticClass:"linkDialog",attrs:{width:"460px",visible:t.linkDialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.linkDialogVisible=e}}},[r("icon-triangle-circle",{staticClass:"icon-models",attrs:{size:24,color:"#3C7DFF"}}),r("i",{staticClass:"el-icon-close",on:{click:function(e){t.linkDialogVisible=!1}}}),r("span",{staticClass:"main-text"},[t._v('"企业简称"建立的“项目名称”,邀请您互链节点“节点名称”')]),r("el-button",{staticClass:"block-button",attrs:{type:"primary"}},[t._v("通过新建项目互链")]),r("el-button",{staticClass:"block-button"},[t._v("选择已有项目建立互链")]),r("el-button",{staticClass:"block-button"},[t._v("拒绝互链邀请")])],1)],2)],1)},o=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"yiyun-col-4"},[r("div",{staticClass:"yiyun_row"},[r("div",{staticClass:"section_item fr section_item_aside_fr"})])])}],i=(r("d3b7"),r("3ca3"),r("ddb0"),r("3835")),s=(r("96cf"),r("1da1")),a=r("f96e"),c=r("2f4c"),l=r("0f13"),u=r("a06e"),h=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.cnName?r("div",[r("div",{staticClass:"big-time"},[t._v(t._s(t.nowTime))]),r("div",{staticClass:"now-time"},[r("span",{staticClass:"nowshijian"},[t._v(t._s(t.nowDate.substr(5))+" "+t._s(t.welcome)+t._s(t.cnName))])])]):t._e()},p=[],d=(r("fb6a"),r("4d63"),r("ac1f"),r("25f0"),r("466d"),r("5319"),r("841c"),{getDateTimeString:function(t){var e=t.getFullYear(),r=t.getMonth()+1;r=r<10?"0"+r:r;var n=t.getDate();n=n<10?"0"+n:n;var o=t.getHours();o=o<10?"0"+o:o;var i=t.getMinutes();i=i<10?"0"+i:i;var s=t.getSeconds();s=s<10?"0"+s:s;var a=e+"-"+r+"-"+n+" "+o+":"+i+":"+s;return a},getDateTimeStringByStr:function(t){var e=new Date(t),r=e.getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;var o=e.getDate();o=o<10?"0"+o:o;var i=e.getHours();i=i<10?"0"+i:i;var s=e.getMinutes();s=s<10?"0"+s:s;var a=e.getSeconds();a=a<10?"0"+a:a;var c=r+"-"+n+"-"+o+" "+i+":"+s+":"+a;return c},formatDate:function(t){var e=t.getFullYear(),r=t.getMonth()+1,n=t.getDate();r=r<10?"0"+r:r,n=n<10?"0"+n:n;var o=e+"-"+r+"-"+n;return o},convertToDate:function(t){var e=t.slice(6,19),r=new Date(parseInt(e));return this.formatDate(r)},unixToDate:function(t,e){t=t.replace(/[^0-9]/gi,""),10==t.length&&(t*=1e3);var r=parseInt(t),n=new Date(r),o="";o+=n.getFullYear()+"-";var i=n.getMonth()+1;o+=i<10?"0"+i+"-":i+"-";var s=n.getDate();return o+=s<10?"0"+s:s,!0===e&&(o+=" "+n.getHours()+":",o+=n.getMinutes()+":",o+=n.getSeconds()),o},getUrlParams:function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),r=window.location.search.substr(1).match(e);return null!=r?r[2]:null},validNumber:function(t,e,r){e?/^([0-9]+)$/.test(e)?r():r(new Error("只能输入整数")):e?r():r(new Error("这里不能为空"))},validNullOrNumber:function(t,e,r){e?/^([0-9]+)$/.test(e)?r():r(new Error("只能输入整数")):r()},validNullOrNumber2:function(t,e,r){e?/^([0-9]+)$/.test(e)?r():r(new Error(" ")):r()},validDecimal:function(t,e,r){e?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(e)?r():r(new Error("只能输入数字")):e?r():r(new Error("这里不能为空"))},validNullOrDecimal:function(t,e,r){e?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(e)?r():r(new Error("只能输入数字")):r()},validNullOrDecimal2:function(t,e,r){e?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(e)?r():r(new Error(" ")):r()},validRequired:function(t,e,r){e?r():r(new Error("这里不能为空"))},validEmail:function(t,e,r){if(""!=e){var n=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;n.test(e)?r():r(new Error("邮箱格式不正确!"))}else r()},validPhoneNum:function(t,e,r){if(""!=e){var n=/(^\d{11}$)/;n.test(e)?r():r(new Error("请输入11位有效手机号码!"))}else r(new Error("请输入手机号"))},validVerificationCode:function(t,e,r){if(""!=e){var n=/(^\d{6}$)/;n.test(e)?r():r(new Error("请输入有效的验证码!"))}else r(new Error("请输入验证码"))},validPhone:function(t,e,r){""!=e&&11!=e.length?r(new Error("请输入11位有效手机号码!")):r()},validPhoneAndRequired:function(t,e,r){""!=e?11!=e.length?r(new Error("请输入11位有效手机号码!")):r():r(new Error("请输入手机号"))},pathSubString:function(t){var e=t.slice(-22);return e},pageData:function(t,e,r){""!=e&&null!=e||(e=1),""!=t&&null!=t||(t=10);var n=(e-1)*t,o=n+t;o>r.length&&(o=r.length);var i=[];if(null!=r&&r.length>0)for(var s=n;s0?this.welcome="上午好! ":12==t?this.welcome="中午好! ":t>12&&t>20?this.welcome="晚上好,注意休息! ":t>12&&t<20&&(this.welcome="下午好!")}},mounted:function(){this.setDateTime(),this.timer=setInterval(this.setDateTime,1e3)},beforeDestroy:function(){clearInterval(this.timer),this.timer=null}},f=m,v=(r("9d0d"),r("63b7"),r("2877")),g=Object(v["a"])(f,h,p,!1,null,"0481b847",null),w=g.exports,j=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("section",{staticClass:"yiyun_warpContent"},[r("div",{staticClass:"yiyun-rows",attrs:{id:"alone"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[r("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),r("span",{staticClass:"noprotext"},[t._v("暂无项目")])]),r("div",{staticClass:"prjitemList"},[r("el-row",{attrs:{gutter:64}},t._l(t.projList,(function(e,n){return r("el-col",{key:e.Id,attrs:{xs:24,sm:12,md:12,lg:8,xl:6}},[r("proj-item",{attrs:{projItem:e,isUserPerm:t.isUserPerm},on:{lookProjDetailClick:function(r){return t.lookProjDetailClick(e)},watchAllBtnClick:function(r){return t.watchAllBtnClick(e,n)},"on-remove":t.onRemoveProject}})],1)})),1)],1)])])])},b=[],C=r("b775"),S=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"prjitem"},[r("div",{ref:"projitem",staticClass:"prjitem_content",style:t.showBackground(t.projItem.ShowImgUrl),on:{mouseenter:function(e){t.showSetIcon(t.projItem.Id),t.isMouseHover=!0},mouseleave:function(e){t.hiddenSetIcon,t.isMouseHover=!1},click:function(e){return e.stopPropagation(),t.goFilePage(t.projItem)}}},[t.isUserPerm?r("el-dropdown",{staticClass:"prjitem_settings_wrapper",attrs:{placement:"bottom"}},[r("span",{staticClass:"prjitem_settings",on:{click:function(t){t.stopPropagation()}}},[r("i",{staticClass:"el-icon-s-tools"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{staticClass:"danger_button"},[r("span",{on:{click:function(e){return e.stopPropagation(),t.removeProject()}}},[t._v("删除")])])],1)],1):t._e(),1==t.projItem.newProjStatus?r("div",{staticClass:"newprj_icon"},[t._v("新项目")]):t._e(),r("div",{staticClass:"prjitem_title",class:{"move-item-name":t.focusProjId==t.projItem.Id&&t.isMouseHover},attrs:{title:t.projItem.ProjName}},[t._v(t._s(t.subProjName(t.projItem.ProjName)))]),r("div",{staticClass:"operate-bar",class:{"show-operate-bar":t.isMouseHover&&t.focusProjId==t.projItem.Id}},[r("div",{staticClass:"bar-item",on:{click:function(e){return e.stopPropagation(),t.watchAllBtnClick(e)}}},[t._v("观全局")]),r("div",{staticClass:"bar-item",on:{click:function(e){return e.stopPropagation(),t.lookProjDetailClick(e)}}},[t._v("项目管理")])])],1)])},k=[],y=r("3de1"),P={data:function(){return{focusProjId:"",isEmpty:!1,isMouseHover:!1}},props:{projItem:{type:Object,default:function(){return{}}},isUserPerm:Boolean},methods:{showBackground:function(t){var e=this.$options.filters["resolveImg"],r=e(t);return{background:"center/cover no-repeat url(".concat(r,")")}},lookProjDetailClick:function(){this.$emit("lookProjDetailClick")},manageProj:function(){this.$router.push("/newproject")},removeProject:function(){var t=this;this.projItem.ProjName;this.$confirm("删除项目后所有文件将被置入回收站中,但您可在回收站操作拷贝转移,确定删除项目?","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(s["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("project/deleteProject",{id:t.projItem.Id});case 2:if(r=e.sent,Object(C["c"])(r),!r.Code){e.next=6;break}return e.abrupt("return");case 6:y["d"].success("".concat(t.projItem.ProjName,"已删除")),t.$emit("on-remove",t.projItem);case 8:case"end":return e.stop()}}),e)}))))},subProjName:function(t){var e=t.length;if(e>13){var r=t.slice(0,7),n=t.slice(e-6,e);return r+"..."+n}return t},watchAllBtnClick:function(){this.$emit("watchAllBtnClick")},showSetIcon:function(t){this.focusProjId=t},hiddenSetIcon:function(){this.focusProjId=""},goFilePage:function(t){sessionStorage.createUserID=t.CreateUserId,sessionStorage.templateID=t.TemplateId,sessionStorage.projId=t.Id,sessionStorage.nowFolderIndex="",sessionStorage.comFolderId=t.ComFolderId,sessionStorage.newProjStatus=t.NewProjStatus,sessionStorage.projName!=t.ProjName&&(sessionStorage.projName=t.ProjName),this.$router.push({name:"workspace"}).catch((function(t){return console.log(t)}));var e={API:"folder/queryNodeFolderListByProjectId",Action:"打开项目",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.projName,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(C["b"])("operation/record",e),sessionStorage.pageName="workspace"}}},I=P,x=(r("17cf"),r("d76a"),Object(v["a"])(I,S,k,!1,null,"3516a822",null)),_=x.exports,D={data:function(){return{isEmpty:!1}},components:{ProjItem:_},props:{projList:{type:Array,default:function(){return[]}},isUserPerm:Boolean},watch:{projListLength:{immediate:!0,handler:function(t){this.isEmpty=!(t>0)}}},computed:{projListLength:function(){return this.projList?this.projList.length:0}},methods:{onRemoveProject:function(t){this.$emit("on-remove",t)},lookProjDetailClick:function(t){this.$emit("lookProjDetailClick",t)},manageProj:function(){this.$router.push("/newproject")},subProjName:function(t){var e=t.length;if(e>13){var r=t.slice(0,7),n=t.slice(e-6,e);return r+"..."+n}return t},watchAllBtnClick:function(t,e){this.$emit("watchAllBtnClick",t,e)}}},N=D,B=(r("846f"),Object(v["a"])(N,j,b,!1,null,"d9269f9e",null)),E=B.exports,T=r("6b3d"),$=r("2ef0"),O={elNew:"#new",components:{SearchBar:c["a"],Timer:w,AppHeader:a["a"],ProjList:E,IconTriangleCircle:T["a"]},data:function(){var t=this.$store.state.currentPlatform;return{companyId:t.orgId,currentPlatform:t,isUserPerm:Object(l["c"])(t.accessList,l["a"].ProjectManager),cnName:"",projList:[],linkApplyList:[],noProjTip:!1,isShowProjSetting:!1,fetchTickIns:null,searchContent:"",searchProjList:[],isShowSearchBar:!1,isSearching:!1,homeScrollTop:0,contentBodyEl:null,linkDialogVisible:!1,linkDialogContextData:null}},computed:{showProjList:function(){return this.isShowSearchBar&&this.searchContent&&this.isSearching?this.searchProjList:this.projList},showCenterTitle:function(){return this.isShowSearchBar&&this.searchContent?"“".concat(this.searchContent,"”搜索结果"):"我的项目"}},watch:{searchContent:function(){this.searchForProj()}},mounted:function(){this.cnName=JSON.parse(sessionStorage.user).userName,sessionStorage.setItem("pageTitle","我的项目"),this.listProjects(!0),this.contentBodyEl=document.getElementById("bigbody"),this.contentBodyEl&&this.contentBodyEl.addEventListener("scroll",this.recordContentScrollTop)},beforeDestroy:function(){sessionStorage.dotIndex=this.ind,this.fetchTickIns&&(clearTimeout(this.fetchTickIns),this.fetchTickIns=null),this.contentBodyEl&&this.contentBodyEl.removeEventListener("scroll",this.recordContentScrollTop)},methods:{navBack:function(){this.$router.push({name:"platform"})},recordContentScrollTop:function(){this.homeScrollTop=this.contentBodyEl.scrollTop,sessionStorage.setItem("homeScrollTop",this.homeScrollTop)},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent=""},showSearchBar:function(){this.isShowSearchBar=!0},searchForProj:Object($["debounce"])(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=/^\s*$/,!e.test(this.searchContent)){t.next=5;break}return t.abrupt("return");case 5:return this.isSearching=!0,t.next=8,u["e"](this.searchContent);case 8:r=t.sent,0==r.Code?this.searchProjList=r.Data:this.$notify({type:["error"],message:"查询数据失败, 请稍后重试。"});case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),500),createNewProjectClick:function(){this.$router.push("/newproject").catch((function(t){return console.log(t)}))},lookProjDetailClick:function(t){sessionStorage.projId=t.Id,sessionStorage.createUserID=t.CreateUserId,sessionStorage.templateID=t.TemplateId,sessionStorage.allocated=t.Allocated,this.$router.push({name:"projdetail"}).catch((function(t){console.log(t)}))},watchAllBtnClick:function(t,e){this.toWatchPageClick(t)},toWatchPageClick:function(t){this.$router.push({path:"watch"}),sessionStorage.removeItem("projName"),sessionStorage.removeItem("projId"),sessionStorage.setItem("projName",t.ProjName),sessionStorage.setItem("projId",t.Id)},toLinkPageClick:function(t){this.$router.push({path:"watchlink"}),sessionStorage.removeItem("projName"),sessionStorage.removeItem("projId"),sessionStorage.setItem("projName",t.ProjName),sessionStorage.setItem("projId",t.Id)},toRecycle:function(){this.$router.push({name:"recycle",params:{title:"我的项目"}})},onRemoveProject:function(){this.listProjects()},listProjects:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var n,o,s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.$store.state.accountId,e.companyId,r.next=4,Promise.all([u["d"](e.$store.state.accountId)]);case 4:n=r.sent,o=Object(i["a"])(n,2),s=o[0],o[1],e.projList=s.Data,e.$nextTick((function(){var t=document.getElementById("bigbody");e.homeScrollTop=parseInt(sessionStorage.getItem("homeScrollTop")||0),t&&t.scrollTo(0,e.homeScrollTop)})),t&&(e.fetchTickIns=setTimeout((function(){return e.listProjects(!0)}),6e4));case 11:case"end":return r.stop()}}),r)})))()},refuseLinkApply:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.linkDialogContextData;case 2:case"end":return e.stop()}}),e)})))()}}},L=O,R=(r("c95a"),r("394e"),r("ec82"),r("1108"),Object(v["a"])(L,n,o,!1,null,"291d7b4a",null));e["default"]=R.exports},1108:function(t,e,r){"use strict";var n=r("8471"),o=r.n(n);o.a},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"17cf":function(t,e,r){"use strict";var n=r("8d09"),o=r.n(n);o.a},"2f4c":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"search-bar",class:{"show-search-bar":t.isShowSearchBar}},[r("div",{staticClass:"search-entry",class:{"set-high-index":!t.isShowSearchBar},on:{mouseenter:function(e){t.isSearchHover=!0},mouseleave:function(e){t.isSearchHover=!1},click:function(e){return e.stopPropagation(),t.showSearchBar(e)}}},[r("img",{directives:[{name:"show",rawName:"v-show",value:!t.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),r("img",{directives:[{name:"show",rawName:"v-show",value:t.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[r("i",{staticClass:"search-icon",on:{click:function(e){return e.stopPropagation(),t.goToSearch(e)}}}),r("input",{directives:[{name:"model",rawName:"v-model",value:t.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:t.placeholder,maxlength:"35"},domProps:{value:t.searchContent},on:{keyup:function(e){return e.stopPropagation(),t.enterSearchContent(e)},input:function(e){e.target.composing||(t.searchContent=e.target.value)}}}),r("i",{staticClass:"close-icon",on:{click:function(e){return e.stopPropagation(),t.hideSearchBar(e)}}})])])},o=[],i=(r("fb6a"),r("a9e3"),{data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},model:{prop:"value",event:"input"},props:{placeholder:{type:String,default:"搜索的文本"},maxLength:Number},watch:{searchContent:function(t){if(this.maxLength&&t.length>this.maxLength)return this.$notify({message:"请输入".concat(this.maxLength,"个字之内的搜索内容"),type:["warning"]}),void(this.searchContent=this.searchContent.slice(0,this.maxLength));this.changeSearchContent()}},methods:{enterSearchContent:function(t){this.searchContent&&13==t.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("input",this.searchContent)},goToSearch:function(){this.$emit("search")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("didHide")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("didShow")}}}),s=i,a=(r("3c93"),r("2877")),c=Object(a["a"])(s,n,o,!1,null,"f20ebcbc",null);e["a"]=c.exports},"394e":function(t,e,r){"use strict";var n=r("77e2"),o=r.n(n);o.a},"3c93":function(t,e,r){"use strict";var n=r("73d8"),o=r.n(n);o.a},"466d":function(t,e,r){"use strict";var n=r("d784"),o=r("825a"),i=r("50c4"),s=r("1d80"),a=r("8aa5"),c=r("14c3");n("match",1,(function(t,e,r){return[function(e){var r=s(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var s=o(t),l=String(this);if(!s.global)return c(s,l);var u=s.unicode;s.lastIndex=0;var h,p=[],d=0;while(null!==(h=c(s,l))){var m=String(h[0]);p[d]=m,""===m&&(s.lastIndex=a(l,i(s.lastIndex),u)),d++}return 0===d?null:p}]}))},"4d63":function(t,e,r){var n=r("83ab"),o=r("da84"),i=r("94ca"),s=r("7156"),a=r("9bf2").f,c=r("241c").f,l=r("44e7"),u=r("ad6d"),h=r("9f7f"),p=r("6eeb"),d=r("d039"),m=r("69f3").set,f=r("2626"),v=r("b622"),g=v("match"),w=o.RegExp,j=w.prototype,b=/a/g,C=/a/g,S=new w(b)!==b,k=h.UNSUPPORTED_Y,y=n&&i("RegExp",!S||k||d((function(){return C[g]=!1,w(b)!=b||w(C)==C||"/a/i"!=w(b,"i")})));if(y){var P=function(t,e){var r,n=this instanceof P,o=l(t),i=void 0===e;if(!n&&o&&t.constructor===P&&i)return t;S?o&&!i&&(t=t.source):t instanceof P&&(i&&(e=u.call(t)),t=t.source),k&&(r=!!e&&e.indexOf("y")>-1,r&&(e=e.replace(/y/g,"")));var a=s(S?new w(t,e):w(t,e),n?this:j,P);return k&&r&&m(a,{sticky:r}),a},I=function(t){t in P||a(P,t,{configurable:!0,get:function(){return w[t]},set:function(e){w[t]=e}})},x=c(w),_=0;while(x.length>_)I(x[_++]);j.constructor=P,P.prototype=j,p(o,"RegExp",P)}f("RegExp")},5122:function(t,e,r){},"63b7":function(t,e,r){"use strict";var n=r("fabf"),o=r.n(n);o.a},"6b3d":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{style:{width:t.size+"px",height:t.size+"px"}},[r("svg",{attrs:{width:"100%",height:"100%",viewBox:"0 0 100 100"}},[r("circle",{attrs:{cx:"50",cy:"56",r:"39","stroke-width":"10",stroke:t.color,fill:"transparent"}}),r("circle",{attrs:{cx:"50",cy:"16",r:"16",fill:t.color}}),r("circle",{attrs:{cx:"84",cy:"84",r:"16",fill:t.color}}),r("circle",{attrs:{cx:"16",cy:"84",r:"16",fill:t.color}})])])},o=[],i=(r("a9e3"),{props:{color:String,size:Number}}),s=i,a=(r("f94d"),r("2877")),c=Object(a["a"])(s,n,o,!1,null,"dd2d6402",null);e["a"]=c.exports},"6d1d":function(t,e,r){},"73d8":function(t,e,r){},"77e2":function(t,e,r){},"841c":function(t,e,r){"use strict";var n=r("d784"),o=r("825a"),i=r("1d80"),s=r("129f"),a=r("14c3");n("search",1,(function(t,e,r){return[function(e){var r=i(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var i=o(t),c=String(this),l=i.lastIndex;s(l,0)||(i.lastIndex=0);var u=a(i,c);return s(i.lastIndex,l)||(i.lastIndex=l),null===u?-1:u.index}]}))},"846f":function(t,e,r){"use strict";var n=r("a62a"),o=r.n(n);o.a},8471:function(t,e,r){},"89f7":function(t,e,r){},"8a37":function(t,e,r){},"8d09":function(t,e,r){},"9d0d":function(t,e,r){"use strict";var n=r("cf15"),o=r.n(n);o.a},a06e:function(t,e,r){"use strict";r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"b",(function(){return l})),r.d(e,"a",(function(){return h})),r.d(e,"e",(function(){return d}));r("d81d"),r("96cf");var n=r("1da1"),o=r("b775");r("3de1");function i(t){return s.apply(this,arguments)}function s(){return s=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/queryProjectListByUserId",{userId:e});case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),s.apply(this,arguments)}function a(t){return c.apply(this,arguments)}function c(){return c=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/queryProjectInfoByProjId",{projId:e});case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),c.apply(this,arguments)}function l(t){return u.apply(this,arguments)}function u(){return u=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/editProject",e);case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),u.apply(this,arguments)}function h(t){return p.apply(this,arguments)}function p(){return p=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/assignedWork",e);case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),p.apply(this,arguments)}function d(t){return m.apply(this,arguments)}function m(){return m=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/searchProject",{projName:e});case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),m.apply(this,arguments)}},a62a:function(t,e,r){},c95a:function(t,e,r){"use strict";var n=r("5122"),o=r.n(n);o.a},cf15:function(t,e,r){},d76a:function(t,e,r){"use strict";var n=r("89f7"),o=r.n(n);o.a},ec82:function(t,e,r){"use strict";var n=r("6d1d"),o=r.n(n);o.a},f94d:function(t,e,r){"use strict";var n=r("8a37"),o=r.n(n);o.a},f96e:function(t,e,r){"use strict";var n=r("01a8");r.d(e,"a",(function(){return n["a"]}))},fabf:function(t,e,r){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d9ddb9e6"],{"011a":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"app"}},[r("app-header",{attrs:{showUserCenter:!0,id:"proj-list-page",showRecycleBin:""},scopedSlots:t._u([{key:"left",fn:function(){return[r("el-button",{staticClass:"org-button no-drag",on:{click:function(e){return e.stopPropagation(),t.navBack(e)}}},[t._v(" "+t._s(t.currentPlatform.orgName)+" "),r("i",{staticClass:"el-icon-sort org-button-icon"})])]},proxy:!0},{key:"center",fn:function(){return[r("div",{staticClass:"main-title"},[t._v(t._s(t.showCenterTitle))])]},proxy:!0},{key:"right",fn:function(){return[r("search-bar",{staticClass:"proj-search-bar",attrs:{placeholder:"搜索项目名称",maxLength:35},on:{didHide:t.hideSearchBar,didShow:t.showSearchBar,search:t.searchForProj},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}})]},proxy:!0}])}),r("div",{staticClass:"layout_content"},[r("section",{staticClass:"yiyun_warpContent"},[r("div",{staticClass:"yiyun-rows mt-20",attrs:{id:"new"}},[r("div",{staticClass:"yiyun-col-4 timer-part"},[r("div",{staticClass:"yiyun_row",staticStyle:{width:"95%"}},[r("timer",{attrs:{cnName:t.cnName}})],1)]),t._m(0)]),t.noProjTip?r("div",{staticStyle:{"margin-left":"50%","margin-top":"25%"}},[r("h1",[t._v("空空如也")])]):t._e()]),t.isUserPerm?r("button",{staticClass:"yiyun_btn_new new-btn-margin",attrs:{id:"buttonbtn"},on:{click:function(e){return e.stopPropagation(),t.createNewProjectClick(e)}}},[t._v("新建项目")]):t._e(),t.linkApplyList&&t.linkApplyList.length?[r("div",{staticClass:"group-title"},[t._v("待互链的项目")]),r("div",{staticClass:"linkItem-list"},[r("el-row",{attrs:{gutter:64}},t._l(t.linkApplyList,(function(e){return r("el-col",{key:e.id,attrs:{xs:24,sm:12,md:12,lg:8,xl:6}},[r("div",{staticClass:"linkItem",on:{click:function(r){t.linkDialogContextData=e,t.linkDialogVisible=!0}}},[r("div",[r("icon-triangle-circle",{staticClass:"icon-models",attrs:{size:30,color:"#3C7DFF"}}),r("span",[t._v("项目互链邀请")])],1),r("div",[t._v(" 项目名称 ")]),r("div",[t._v(" 由“企业简称”的“负责人”邀请 ")])])])})),1)],1)]:t._e(),r("div",{staticClass:"group-title"},[t._v("最近的项目")]),r("proj-list",{attrs:{id:"proj-list",projList:t.showProjList,isUserPerm:t.isUserPerm},on:{watchAllBtnClick:t.watchAllBtnClick,lookProjDetailClick:t.lookProjDetailClick,"on-remove":t.onRemoveProject}}),r("el-dialog",{staticClass:"linkDialog",attrs:{width:"460px",visible:t.linkDialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.linkDialogVisible=e}}},[r("icon-triangle-circle",{staticClass:"icon-models",attrs:{size:24,color:"#3C7DFF"}}),r("i",{staticClass:"el-icon-close",on:{click:function(e){t.linkDialogVisible=!1}}}),r("span",{staticClass:"main-text"},[t._v('"企业简称"建立的“项目名称”,邀请您互链节点“节点名称”')]),r("el-button",{staticClass:"block-button",attrs:{type:"primary"}},[t._v("通过新建项目互链")]),r("el-button",{staticClass:"block-button"},[t._v("选择已有项目建立互链")]),r("el-button",{staticClass:"block-button"},[t._v("拒绝互链邀请")])],1)],2)],1)},o=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"yiyun-col-4"},[r("div",{staticClass:"yiyun_row"},[r("div",{staticClass:"section_item fr section_item_aside_fr"})])])}],i=(r("d3b7"),r("3ca3"),r("ddb0"),r("3835")),s=(r("96cf"),r("1da1")),a=r("f96e"),c=r("2f4c"),l=r("0f13"),u=r("a06e"),h=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.cnName?r("div",[r("div",{staticClass:"big-time"},[t._v(t._s(t.nowTime))]),r("div",{staticClass:"now-time"},[r("span",{staticClass:"nowshijian"},[t._v(t._s(t.nowDate.substr(5))+" "+t._s(t.welcome)+t._s(t.cnName))])])]):t._e()},p=[],d=(r("fb6a"),r("4d63"),r("ac1f"),r("25f0"),r("466d"),r("5319"),r("841c"),{getDateTimeString:function(t){var e=t.getFullYear(),r=t.getMonth()+1;r=r<10?"0"+r:r;var n=t.getDate();n=n<10?"0"+n:n;var o=t.getHours();o=o<10?"0"+o:o;var i=t.getMinutes();i=i<10?"0"+i:i;var s=t.getSeconds();s=s<10?"0"+s:s;var a=e+"-"+r+"-"+n+" "+o+":"+i+":"+s;return a},getDateTimeStringByStr:function(t){var e=new Date(t),r=e.getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;var o=e.getDate();o=o<10?"0"+o:o;var i=e.getHours();i=i<10?"0"+i:i;var s=e.getMinutes();s=s<10?"0"+s:s;var a=e.getSeconds();a=a<10?"0"+a:a;var c=r+"-"+n+"-"+o+" "+i+":"+s+":"+a;return c},formatDate:function(t){var e=t.getFullYear(),r=t.getMonth()+1,n=t.getDate();r=r<10?"0"+r:r,n=n<10?"0"+n:n;var o=e+"-"+r+"-"+n;return o},convertToDate:function(t){var e=t.slice(6,19),r=new Date(parseInt(e));return this.formatDate(r)},unixToDate:function(t,e){t=t.replace(/[^0-9]/gi,""),10==t.length&&(t*=1e3);var r=parseInt(t),n=new Date(r),o="";o+=n.getFullYear()+"-";var i=n.getMonth()+1;o+=i<10?"0"+i+"-":i+"-";var s=n.getDate();return o+=s<10?"0"+s:s,!0===e&&(o+=" "+n.getHours()+":",o+=n.getMinutes()+":",o+=n.getSeconds()),o},getUrlParams:function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),r=window.location.search.substr(1).match(e);return null!=r?r[2]:null},validNumber:function(t,e,r){e?/^([0-9]+)$/.test(e)?r():r(new Error("只能输入整数")):e?r():r(new Error("这里不能为空"))},validNullOrNumber:function(t,e,r){e?/^([0-9]+)$/.test(e)?r():r(new Error("只能输入整数")):r()},validNullOrNumber2:function(t,e,r){e?/^([0-9]+)$/.test(e)?r():r(new Error(" ")):r()},validDecimal:function(t,e,r){e?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(e)?r():r(new Error("只能输入数字")):e?r():r(new Error("这里不能为空"))},validNullOrDecimal:function(t,e,r){e?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(e)?r():r(new Error("只能输入数字")):r()},validNullOrDecimal2:function(t,e,r){e?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(e)?r():r(new Error(" ")):r()},validRequired:function(t,e,r){e?r():r(new Error("这里不能为空"))},validEmail:function(t,e,r){if(""!=e){var n=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;n.test(e)?r():r(new Error("邮箱格式不正确!"))}else r()},validPhoneNum:function(t,e,r){if(""!=e){var n=/(^\d{11}$)/;n.test(e)?r():r(new Error("请输入11位有效手机号码!"))}else r(new Error("请输入手机号"))},validVerificationCode:function(t,e,r){if(""!=e){var n=/(^\d{6}$)/;n.test(e)?r():r(new Error("请输入有效的验证码!"))}else r(new Error("请输入验证码"))},validPhone:function(t,e,r){""!=e&&11!=e.length?r(new Error("请输入11位有效手机号码!")):r()},validPhoneAndRequired:function(t,e,r){""!=e?11!=e.length?r(new Error("请输入11位有效手机号码!")):r():r(new Error("请输入手机号"))},pathSubString:function(t){var e=t.slice(-22);return e},pageData:function(t,e,r){""!=e&&null!=e||(e=1),""!=t&&null!=t||(t=10);var n=(e-1)*t,o=n+t;o>r.length&&(o=r.length);var i=[];if(null!=r&&r.length>0)for(var s=n;s0?this.welcome="上午好! ":12==t?this.welcome="中午好! ":t>12&&t>20?this.welcome="晚上好,注意休息! ":t>12&&t<20&&(this.welcome="下午好!")}},mounted:function(){this.setDateTime(),this.timer=setInterval(this.setDateTime,1e3)},beforeDestroy:function(){clearInterval(this.timer),this.timer=null}},f=m,v=(r("9d0d"),r("63b7"),r("2877")),g=Object(v["a"])(f,h,p,!1,null,"0481b847",null),w=g.exports,j=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("section",{staticClass:"yiyun_warpContent"},[r("div",{staticClass:"yiyun-rows",attrs:{id:"alone"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[r("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),r("span",{staticClass:"noprotext"},[t._v("暂无项目")])]),r("div",{staticClass:"prjitemList"},[r("el-row",{attrs:{gutter:64}},t._l(t.projList,(function(e,n){return r("el-col",{key:e.Id,attrs:{xs:24,sm:12,md:12,lg:8,xl:6}},[r("proj-item",{attrs:{projItem:e,isUserPerm:t.isUserPerm},on:{lookProjDetailClick:function(r){return t.lookProjDetailClick(e)},watchAllBtnClick:function(r){return t.watchAllBtnClick(e,n)},"on-remove":t.onRemoveProject}})],1)})),1)],1)])])])},b=[],C=r("b775"),S=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"prjitem"},[r("div",{ref:"projitem",staticClass:"prjitem_content",style:t.showBackground(t.projItem.ShowImgUrl),on:{mouseenter:function(e){t.showSetIcon(t.projItem.Id),t.isMouseHover=!0},mouseleave:function(e){t.hiddenSetIcon,t.isMouseHover=!1},click:function(e){return e.stopPropagation(),t.goFilePage(t.projItem)}}},[t.isUserPerm?r("el-dropdown",{staticClass:"prjitem_settings_wrapper",attrs:{placement:"bottom"}},[r("span",{staticClass:"prjitem_settings",on:{click:function(t){t.stopPropagation()}}},[r("i",{staticClass:"el-icon-s-tools"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{staticClass:"danger_button"},[r("span",{on:{click:function(e){return e.stopPropagation(),t.removeProject()}}},[t._v("删除")])])],1)],1):t._e(),1==t.projItem.newProjStatus?r("div",{staticClass:"newprj_icon"},[t._v("新项目")]):t._e(),r("div",{staticClass:"prjitem_title",class:{"move-item-name":t.focusProjId==t.projItem.Id&&t.isMouseHover},attrs:{title:t.projItem.ProjName}},[t._v(t._s(t.subProjName(t.projItem.ProjName)))]),r("div",{staticClass:"operate-bar",class:{"show-operate-bar":t.isMouseHover&&t.focusProjId==t.projItem.Id}},[r("div",{staticClass:"bar-item",on:{click:function(e){return e.stopPropagation(),t.watchAllBtnClick(e)}}},[t._v("观全局")]),r("div",{staticClass:"bar-item",on:{click:function(e){return e.stopPropagation(),t.lookProjDetailClick(e)}}},[t._v("项目管理")])])],1)])},k=[],y=r("3de1"),P={data:function(){return{focusProjId:"",isEmpty:!1,isMouseHover:!1}},props:{projItem:{type:Object,default:function(){return{}}},isUserPerm:Boolean},methods:{showBackground:function(t){var e=this.$options.filters["resolveImg"],r=e(t);return{background:"center/cover no-repeat url(".concat(r,")")}},lookProjDetailClick:function(){this.$emit("lookProjDetailClick")},manageProj:function(){this.$router.push("/newproject")},removeProject:function(){var t=this;this.projItem.ProjName;this.$confirm("删除项目后所有文件将被置入回收站中,但您可在回收站操作拷贝转移,确定删除项目?","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(s["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("project/deleteProject",{id:t.projItem.Id});case 2:if(r=e.sent,Object(C["c"])(r),!r.Code){e.next=6;break}return e.abrupt("return");case 6:y["d"].success("".concat(t.projItem.ProjName,"已删除")),t.$emit("on-remove",t.projItem);case 8:case"end":return e.stop()}}),e)}))))},subProjName:function(t){var e=t.length;if(e>13){var r=t.slice(0,7),n=t.slice(e-6,e);return r+"..."+n}return t},watchAllBtnClick:function(){this.$emit("watchAllBtnClick")},showSetIcon:function(t){this.focusProjId=t},hiddenSetIcon:function(){this.focusProjId=""},goFilePage:function(t){sessionStorage.createUserID=t.CreateUserId,sessionStorage.templateID=t.TemplateId,sessionStorage.projId=t.Id,sessionStorage.nowFolderIndex="",sessionStorage.comFolderId=t.ComFolderId,sessionStorage.newProjStatus=t.NewProjStatus,sessionStorage.projName!=t.ProjName&&(sessionStorage.projName=t.ProjName),this.$router.push({name:"workspace"}).catch((function(t){return console.log(t)}));var e={API:"folder/queryNodeFolderListByProjectId",Action:"打开项目",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.projName,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(C["b"])("operation/record",e),sessionStorage.pageName="workspace"}}},I=P,x=(r("17cf"),r("d76a"),Object(v["a"])(I,S,k,!1,null,"3516a822",null)),_=x.exports,D={data:function(){return{isEmpty:!1}},components:{ProjItem:_},props:{projList:{type:Array,default:function(){return[]}},isUserPerm:Boolean},watch:{projListLength:{immediate:!0,handler:function(t){this.isEmpty=!(t>0)}}},computed:{projListLength:function(){return this.projList?this.projList.length:0}},methods:{onRemoveProject:function(t){this.$emit("on-remove",t)},lookProjDetailClick:function(t){this.$emit("lookProjDetailClick",t)},manageProj:function(){this.$router.push("/newproject")},subProjName:function(t){var e=t.length;if(e>13){var r=t.slice(0,7),n=t.slice(e-6,e);return r+"..."+n}return t},watchAllBtnClick:function(t,e){this.$emit("watchAllBtnClick",t,e)}}},N=D,B=(r("846f"),Object(v["a"])(N,j,b,!1,null,"d9269f9e",null)),E=B.exports,T=r("6b3d"),$=r("2ef0"),O={elNew:"#new",components:{SearchBar:c["a"],Timer:w,AppHeader:a["a"],ProjList:E,IconTriangleCircle:T["a"]},data:function(){var t=this.$store.state.currentPlatform;return{companyId:t.orgId,currentPlatform:t,isUserPerm:Object(l["c"])(t.accessList,l["a"].ProjectManager),cnName:"",projList:[],linkApplyList:[],noProjTip:!1,isShowProjSetting:!1,fetchTickIns:null,searchContent:"",searchProjList:[],isShowSearchBar:!1,isSearching:!1,homeScrollTop:0,contentBodyEl:null,linkDialogVisible:!1,linkDialogContextData:null}},computed:{showProjList:function(){return this.isShowSearchBar&&this.searchContent&&this.isSearching?this.searchProjList:this.projList},showCenterTitle:function(){return this.isShowSearchBar&&this.searchContent?"“".concat(this.searchContent,"”搜索结果"):"我的项目"}},watch:{searchContent:function(){this.searchForProj()}},mounted:function(){this.cnName=JSON.parse(sessionStorage.user).userName,sessionStorage.setItem("pageTitle","我的项目"),this.listProjects(!0),this.contentBodyEl=document.getElementById("bigbody"),this.contentBodyEl&&this.contentBodyEl.addEventListener("scroll",this.recordContentScrollTop)},beforeDestroy:function(){sessionStorage.dotIndex=this.ind,this.fetchTickIns&&(clearTimeout(this.fetchTickIns),this.fetchTickIns=null),this.contentBodyEl&&this.contentBodyEl.removeEventListener("scroll",this.recordContentScrollTop)},methods:{navBack:function(){this.$router.push({name:"platform"})},recordContentScrollTop:function(){this.homeScrollTop=this.contentBodyEl.scrollTop,sessionStorage.setItem("homeScrollTop",this.homeScrollTop)},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent=""},showSearchBar:function(){this.isShowSearchBar=!0},searchForProj:Object($["debounce"])(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=/^\s*$/,!e.test(this.searchContent)){t.next=5;break}return t.abrupt("return");case 5:return this.isSearching=!0,t.next=8,u["e"](this.searchContent);case 8:r=t.sent,0==r.Code?this.searchProjList=r.Data:this.$notify({type:["error"],message:"查询数据失败, 请稍后重试。"});case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),500),createNewProjectClick:function(){this.$router.push("/newproject").catch((function(t){return console.log(t)}))},lookProjDetailClick:function(t){sessionStorage.projId=t.Id,sessionStorage.createUserID=t.CreateUserId,sessionStorage.templateID=t.TemplateId,sessionStorage.allocated=t.Allocated,this.$router.push({name:"projdetail"}).catch((function(t){console.log(t)}))},watchAllBtnClick:function(t,e){this.toWatchPageClick(t)},toWatchPageClick:function(t){this.$router.push({path:"watch"}),sessionStorage.removeItem("projName"),sessionStorage.removeItem("projId"),sessionStorage.setItem("projName",t.ProjName),sessionStorage.setItem("projId",t.Id)},toLinkPageClick:function(t){this.$router.push({path:"watchlink"}),sessionStorage.removeItem("projName"),sessionStorage.removeItem("projId"),sessionStorage.setItem("projName",t.ProjName),sessionStorage.setItem("projId",t.Id)},toRecycle:function(){this.$router.push({name:"recycle",params:{title:"我的项目"}})},onRemoveProject:function(){this.listProjects()},listProjects:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var n,o,s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.$store.state.accountId,e.companyId,r.next=4,Promise.all([u["d"](e.$store.state.accountId)]);case 4:n=r.sent,o=Object(i["a"])(n,2),s=o[0],o[1],e.projList=s.Data,e.$nextTick((function(){var t=document.getElementById("bigbody");e.homeScrollTop=parseInt(sessionStorage.getItem("homeScrollTop")||0),t&&t.scrollTo(0,e.homeScrollTop)})),t&&(e.fetchTickIns=setTimeout((function(){return e.listProjects(!0)}),6e4));case 11:case"end":return r.stop()}}),r)})))()},refuseLinkApply:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.linkDialogContextData;case 2:case"end":return e.stop()}}),e)})))()}}},L=O,R=(r("c95a"),r("394e"),r("ec82"),r("1108"),Object(v["a"])(L,n,o,!1,null,"291d7b4a",null));e["default"]=R.exports},1108:function(t,e,r){"use strict";var n=r("8471"),o=r.n(n);o.a},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"17cf":function(t,e,r){"use strict";var n=r("8d09"),o=r.n(n);o.a},"2f4c":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"search-bar",class:{"show-search-bar":t.isShowSearchBar}},[r("div",{staticClass:"search-entry",class:{"set-high-index":!t.isShowSearchBar},on:{mouseenter:function(e){t.isSearchHover=!0},mouseleave:function(e){t.isSearchHover=!1},click:function(e){return e.stopPropagation(),t.showSearchBar(e)}}},[r("img",{directives:[{name:"show",rawName:"v-show",value:!t.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),r("img",{directives:[{name:"show",rawName:"v-show",value:t.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[r("i",{staticClass:"search-icon",on:{click:function(e){return e.stopPropagation(),t.goToSearch(e)}}}),r("input",{directives:[{name:"model",rawName:"v-model",value:t.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:t.placeholder,maxlength:"35"},domProps:{value:t.searchContent},on:{keyup:function(e){return e.stopPropagation(),t.enterSearchContent(e)},input:function(e){e.target.composing||(t.searchContent=e.target.value)}}}),r("i",{staticClass:"close-icon",on:{click:function(e){return e.stopPropagation(),t.hideSearchBar(e)}}})])])},o=[],i=(r("fb6a"),r("a9e3"),{data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},model:{prop:"value",event:"input"},props:{placeholder:{type:String,default:"搜索的文本"},maxLength:Number},watch:{searchContent:function(t){if(this.maxLength&&t.length>this.maxLength)return this.$notify({message:"请输入".concat(this.maxLength,"个字之内的搜索内容"),type:["warning"]}),void(this.searchContent=this.searchContent.slice(0,this.maxLength));this.changeSearchContent()}},methods:{enterSearchContent:function(t){this.searchContent&&13==t.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("input",this.searchContent)},goToSearch:function(){this.$emit("search")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("didHide")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("didShow")}}}),s=i,a=(r("3c93"),r("2877")),c=Object(a["a"])(s,n,o,!1,null,"f20ebcbc",null);e["a"]=c.exports},"394e":function(t,e,r){"use strict";var n=r("77e2"),o=r.n(n);o.a},"3c93":function(t,e,r){"use strict";var n=r("73d8"),o=r.n(n);o.a},"466d":function(t,e,r){"use strict";var n=r("d784"),o=r("825a"),i=r("50c4"),s=r("1d80"),a=r("8aa5"),c=r("14c3");n("match",1,(function(t,e,r){return[function(e){var r=s(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var s=o(t),l=String(this);if(!s.global)return c(s,l);var u=s.unicode;s.lastIndex=0;var h,p=[],d=0;while(null!==(h=c(s,l))){var m=String(h[0]);p[d]=m,""===m&&(s.lastIndex=a(l,i(s.lastIndex),u)),d++}return 0===d?null:p}]}))},"4d63":function(t,e,r){var n=r("83ab"),o=r("da84"),i=r("94ca"),s=r("7156"),a=r("9bf2").f,c=r("241c").f,l=r("44e7"),u=r("ad6d"),h=r("9f7f"),p=r("6eeb"),d=r("d039"),m=r("69f3").set,f=r("2626"),v=r("b622"),g=v("match"),w=o.RegExp,j=w.prototype,b=/a/g,C=/a/g,S=new w(b)!==b,k=h.UNSUPPORTED_Y,y=n&&i("RegExp",!S||k||d((function(){return C[g]=!1,w(b)!=b||w(C)==C||"/a/i"!=w(b,"i")})));if(y){var P=function(t,e){var r,n=this instanceof P,o=l(t),i=void 0===e;if(!n&&o&&t.constructor===P&&i)return t;S?o&&!i&&(t=t.source):t instanceof P&&(i&&(e=u.call(t)),t=t.source),k&&(r=!!e&&e.indexOf("y")>-1,r&&(e=e.replace(/y/g,"")));var a=s(S?new w(t,e):w(t,e),n?this:j,P);return k&&r&&m(a,{sticky:r}),a},I=function(t){t in P||a(P,t,{configurable:!0,get:function(){return w[t]},set:function(e){w[t]=e}})},x=c(w),_=0;while(x.length>_)I(x[_++]);j.constructor=P,P.prototype=j,p(o,"RegExp",P)}f("RegExp")},5122:function(t,e,r){},"63b7":function(t,e,r){"use strict";var n=r("fabf"),o=r.n(n);o.a},"6b3d":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"icon-triangle-circle",style:{width:t.size+"px",height:t.size+"px"}},[r("svg",{attrs:{width:"100%",height:"100%",viewBox:"0 0 100 100"}},[r("circle",{attrs:{cx:"50",cy:"56",r:"39","stroke-width":"10",stroke:t.color,fill:"transparent"}}),r("circle",{attrs:{cx:"50",cy:"16",r:"16",fill:t.color}}),r("circle",{attrs:{cx:"84",cy:"84",r:"16",fill:t.color}}),r("circle",{attrs:{cx:"16",cy:"84",r:"16",fill:t.color}})])])},o=[],i=(r("a9e3"),{props:{color:String,size:Number}}),s=i,a=(r("be84"),r("2877")),c=Object(a["a"])(s,n,o,!1,null,"cc170c78",null);e["a"]=c.exports},"6d1d":function(t,e,r){},"73d8":function(t,e,r){},"77e2":function(t,e,r){},"841c":function(t,e,r){"use strict";var n=r("d784"),o=r("825a"),i=r("1d80"),s=r("129f"),a=r("14c3");n("search",1,(function(t,e,r){return[function(e){var r=i(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var i=o(t),c=String(this),l=i.lastIndex;s(l,0)||(i.lastIndex=0);var u=a(i,c);return s(i.lastIndex,l)||(i.lastIndex=l),null===u?-1:u.index}]}))},"846f":function(t,e,r){"use strict";var n=r("a62a"),o=r.n(n);o.a},8471:function(t,e,r){},"89f7":function(t,e,r){},"8d09":function(t,e,r){},"9d0d":function(t,e,r){"use strict";var n=r("cf15"),o=r.n(n);o.a},a06e:function(t,e,r){"use strict";r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"b",(function(){return l})),r.d(e,"a",(function(){return h})),r.d(e,"e",(function(){return d}));r("d81d"),r("96cf");var n=r("1da1"),o=r("b775");r("3de1");function i(t){return s.apply(this,arguments)}function s(){return s=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/queryProjectListByUserId",{userId:e});case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),s.apply(this,arguments)}function a(t){return c.apply(this,arguments)}function c(){return c=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/queryProjectInfoByProjId",{projId:e});case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),c.apply(this,arguments)}function l(t){return u.apply(this,arguments)}function u(){return u=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/editProject",e);case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),u.apply(this,arguments)}function h(t){return p.apply(this,arguments)}function p(){return p=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/assignedWork",e);case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),p.apply(this,arguments)}function d(t){return m.apply(this,arguments)}function m(){return m=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/searchProject",{projName:e});case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),m.apply(this,arguments)}},a62a:function(t,e,r){},be84:function(t,e,r){"use strict";var n=r("d025"),o=r.n(n);o.a},c95a:function(t,e,r){"use strict";var n=r("5122"),o=r.n(n);o.a},cf15:function(t,e,r){},d025:function(t,e,r){},d76a:function(t,e,r){"use strict";var n=r("89f7"),o=r.n(n);o.a},ec82:function(t,e,r){"use strict";var n=r("6d1d"),o=r.n(n);o.a},f96e:function(t,e,r){"use strict";var n=r("01a8");r.d(e,"a",(function(){return n["a"]}))},fabf:function(t,e,r){}}]); \ No newline at end of file diff --git a/static/js/chunk-ec554b20.83dba556.js b/static/js/chunk-ec554b20.c634c73c.js similarity index 100% rename from static/js/chunk-ec554b20.83dba556.js rename to static/js/chunk-ec554b20.c634c73c.js diff --git a/static/js/chunk-edf65c70.e805da3a.js b/static/js/chunk-edf65c70.aede5837.js similarity index 100% rename from static/js/chunk-edf65c70.e805da3a.js rename to static/js/chunk-edf65c70.aede5837.js