
管理员
站长
- UID
- 1
- 积分
- 224394
- 余额
- 13 R
- Moe币
- 84875
- 在线时间
- 279 小时
- 注册时间
- 2025-12-28
- 最后登录
- 2026-11-3
|
|
(function(){"use strict";var e={3658:function(e,t,n){n(6992),n(8674),n(9601),n(7727),n(2222);var o=n(5393),r=n(6774),a=n(1815),i=(n(5666),(0,o.HX)("data-v-dd239d32"));(0,o.dD)("data-v-dd239d32");var s={class:"set__header"},u=(0,o.Uk)(" 设置密码 "),c=(0,o.Wm)("div",{class:"set__tip"},"首次启用私密文件夹需要设置密码",-1),l={class:"set__body"},d={class:"set__input-wrapper"},f={class:"set__input-wrapper"},p={class:"set__footer"},g=(0,o.Uk)("确认"),m=(0,o.Uk)("取消"),M=(0,o.Uk)(" 私密文件夹密码还未设置成功,是否放弃设置? ");(0,o.Cn)();var v=i((function(e,t,n,r,a,v){var w=(0,o.up)("Icon"),D=(0,o.up)("Input"),y=(0,o.up)("Button"),k=(0,o.up)("Dialog");return(0,o.wg)(),(0,o.j4)("div",{class:"set",onDragstart:t[3]||(t[3]=(0,o.iM)((function(){}),["prevent"]))},[(0,o.Wm)("div",s,[u,(0,o.Wm)(w,{type:"close",dark:e.$isDark.value,onOnClick:v.closeIconClick},null,8,["dark","onOnClick"])]),c,(0,o.Wm)("div",l,[(0,o.Wm)("div",d,[(0,o.Wm)(D,{placeholder:"密码为8-16位,字母、数字或字符的组合",type:"password",ref:"password",autofocus:"",rules:a.passwordRules,modelValue:a.password,"onUpdate:modelValue":t[1]||(t[1]=function(e){return a.password=e})},null,8,["rules","modelValue"])]),(0,o.Wm)("div",f,[(0,o.Wm)(D,{placeholder:"确认密码",type:"password",ref:"dbpassword",rules:a.dbpasswordRules,modelValue:a.dbpassword,"onUpdate:modelValue":t[2]||(t[2]=function(e){return a.dbpassword=e}),onKeydown:(0,o.D2)(v.onKeydownEnter,["enter"])},null,8,["rules","modelValue","onKeydown"])])]),(0,o.Wm)("div",p,[(0,o.Wm)(y,{ref:"confirmButton",loading:a.buttonLoading,onClick:v.confirmButtonClick,size:"small",type:"primary"},{default:i((function(){return[g]})),_:1},8,["loading","onClick"]),(0,o.Wm)(y,{onClick:v.cancelButtonClick,size:"small"},{default:i((function(){return[m]})),_:1},8,["onClick"])]),(0,o.Wm)(o.uT,{name:"fade"},{default:i((function(){return[a.showExitDialog?((0,o.wg)(),(0,o.j4)(k,{key:0,title:"放弃设置",confirmBtntext:"继续设置",cancelBtntext:"放弃设置",onOnConfirm:v.dialogConfirm,onOnCancel:v.dialogCancel,onOnClose:v.dialogClose},{default:i((function(){return[M]})),_:1},8,["onOnConfirm","onOnCancel","onOnClose"])):(0,o.ry)("",!0)]})),_:1})],32)})),w=(n(6699),n(2023),(0,o.HX)("data-v-145fc281"));(0,o.dD)("data-v-145fc281");var D={key:0,class:"input__error"};(0,o.Cn)();var y=w((function(e,t,n,r,a,i){return(0,o.wg)(),(0,o.j4)(o.HY,null,[(0,o.Wm)("input",(0,o.dG)({ref:"input"},e.$attrs,{value:n.modelValue,class:{"input--error":a.errMsg},onInput:t[1]||(t[1]=function(){return i.onInput&&i.onInput.apply(i,arguments)}),onFocus:t[2]||(t[2]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)})}),null,16,["value"]),(0,o.Wm)(o.uT,{name:"fade"},{default:w((function(){return[a.errMsg?((0,o.wg)(),(0,o.j4)("span",D,(0,o.zw)(a.errMsg),1)):(0,o.ry)("",!0)]})),_:1})],64)})),k=n(2620),h={inheritAttrs:!1,props:{modelValue:{type:String,default:""},rules:{type:Array,default:function(){return[]}}},data:function(){return{errMsg:""}},methods:{onInput:function(e){this.$emit("update:modelValue",e.target.value)},onFocus:function(){this.errMsg=""},validate:function(e){var t=this;return this.errMsg="",!this.rules.some((function(n){var o=n.customParams?e:[];return!(!n.validator||n.validator.apply(n,(0,k.Z)(o).concat([t.modelValue])))&&(t.errMsg=n.message,!0)}))},blur:function(){this.$refs.input.blur()}}};h.render=y,h.__scopeId="data-v-145fc281";var N=h,I={key:0,class:"icon-loading"},b={key:2};function j(e,t,n,r,a,i){return(0,o.wg)(),(0,o.j4)("button",{class:["button",[n.type?"button--"+n.type:"",n.size?"button--"+n.size:"",{"is-disabled":n.disabled,"is-loading":n.loading,"is-plain":n.plain,"is-round":n.round,"is-circle":n.circle}]],disabled:n.disabled||n.loading,autofocus:n.autofocus,type:n.nativeType},[n.loading?((0,o.wg)(),(0,o.j4)("i",I)):(0,o.ry)("",!0),n.icon&&!n.loading?((0,o.wg)(),(0,o.j4)("i",{key:1,class:n.icon},null,2)):(0,o.ry)("",!0),e.$slots.default?((0,o.wg)(),(0,o.j4)("span",b,[(0,o.WI)(e.$slots,"default")])):(0,o.ry)("",!0)],10,["disabled","autofocus","type"])}var C={name:"Button",props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean}};C.render=j;var z=C,T=(0,o.HX)("data-v-0bd8bb10");(0,o.dD)("data-v-0bd8bb10");var x={class:"dialog__overlay"},L={class:"dialog__header"},F={class:"dialog__body"},S={class:"dialog__footer"},A={class:"dialog__error"},E={class:"dialog__btns"};(0,o.Cn)();var O=T((function(e,t,n,r,a,i){var s=(0,o.up)("Icon"),u=(0,o.up)("Button");return(0,o.wg)(),(0,o.j4)("div",x,[(0,o.Wm)("div",{class:"dialog",style:i.configStyle,onClick:t[1]||(t[1]=(0,o.iM)((function(){}),["stop"]))},[(0,o.Wm)("div",L,[(0,o.Uk)((0,o.zw)(n.title)+" ",1),(0,o.Wm)(s,{type:"close",dark:e.$isDark.value,onOnClick:i.onClose},null,8,["dark","onOnClick"])]),(0,o.Wm)("div",F,[(0,o.WI)(e.$slots,"default")]),(0,o.Wm)("div",S,[(0,o.Wm)("div",A,(0,o.zw)(n.errorText),1),(0,o.Wm)("div",E,[(0,o.Wm)(u,{type:"primary",size:"mini",disabled:n.btnDisabled,onClick:i.onConfirm},{default:T((function(){return[(0,o.Uk)((0,o.zw)(n.confirmBtntext),1)]})),_:1},8,["disabled","onClick"]),(0,o.Wm)(u,{size:"mini",onClick:i.onCancel},{default:T((function(){return[(0,o.Uk)((0,o.zw)(n.cancelBtntext),1)]})),_:1},8,["onClick"])])])],4)])})),_=(0,o.HX)("data-v-049d9926");(0,o.dD)("data-v-049d9926");var B=(0,o.Wm)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[(0,o.Wm)("g",null,[(0,o.Wm)("rect",{"fill-opacity":"0.1",fill:"#D0021B","fill-rule":"nonzero",opacity:"0",x:"0",y:"0",width:"16",height:"16"}),(0,o.Wm)("path",{d:"M8,7.15147186 L13.0757359,2.07573593 C13.3100505,1.84142136 13.6899495,1.84142136 13.9242641,2.07573593 C14.1585786,2.31005051 14.1585786,2.68994949 13.9242641,2.92426407 L8.84852814,8 L13.9242641,13.0757359 C14.1585786,13.3100505 14.1585786,13.6899495 13.9242641,13.9242641 C13.6899495,14.1585786 13.3100505,14.1585786 13.0757359,13.9242641 L8,8.84852814 L2.92426407,13.9242641 C2.68994949,14.1585786 2.31005051,14.1585786 2.07573593,13.9242641 C1.84142136,13.6899495 1.84142136,13.3100505 2.07573593,13.0757359 L7.15147186,8 L2.07573593,2.92426407 C1.84142136,2.68994949 1.84142136,2.31005051 2.07573593,2.07573593 C2.31005051,1.84142136 2.68994949,1.84142136 2.92426407,2.07573593 L8,7.15147186 Z",id:"路径",fill:"#8B97AF"})])],-1);(0,o.Cn)();var Z=_((function(e,t,n,r,a,i){return"close"===n.type?((0,o.wg)(),(0,o.j4)("svg",{key:0,onClick:t[1]||(t[1]=function(){return i.onClick&&i.onClick.apply(i,arguments)}),id:["close".concat(n.dark?"-dark":"")],width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[B],8,["id"])):((0,o.wg)(),(0,o.j4)("i",{key:1,class:["icon",n.type,{dark:n.dark}],onClick:t[2]||(t[2]=function(){return i.onClick&&i.onClick.apply(i,arguments)})},null,2))})),Y={props:{type:{type:String,required:!0},dark:{type:Boolean,default:!1}},methods:{onClick:function(e){this.$emit("on-click",e)}}};Y.render=Z,Y.__scopeId="data-v-049d9926";var U=Y,Q={name:"Dialog",components:{Button:z,Icon:U},props:{title:{type:String,default:"重命名"},confirmBtntext:{type:String,default:"确定"},cancelBtntext:{type:String,default:"取消"},btnDisabled:{type:Boolean,default:!1},config:{type:Object,default:function(){return{width:420,height:158}}},errorText:{type:String,default:""}},computed:{configStyle:function(){return{height:"".concat(this.config.height,"px"),width:"".concat(this.config.width,"px")}}},methods:{onConfirm:function(){this.$emit("on-confirm")},onCancel:function(){this.$emit("on-cancel")},onClose:function(){this.$emit("on-close")}}};Q.render=O,Q.__scopeId="data-v-0bd8bb10";var W=Q,P=n(6022),G=n(6411),R=n(3465),$=(n(9600),n(520)),X=n(5695),H=function(){function e(){(0,P.Z)(this,e),this.setCookie(),this.setDomain()}return(0,G.Z)(e,[{key:"setCookie",value:function(){var e=(0,a.Z)(regeneratorRuntime.mark((function e(){var t,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,X.Z.getUserInfo();case 3:t=e.sent,n=t.extrainfo,o=void 0===n?{}:n,this.cookie=o.cookie,e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](0),console.warn(e.t0),this.cookie="";case 13:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"setDomain",value:function(){var e=(0,a.Z)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,$.Z.getDomainUrl(["drive","account","plussvr","plus","get"]);case 3:t=e.sent,n=t.domain,this.hosts=n,e.next=12;break;case 8:e.prev=8,e.t0=e["catch"](0),console.warn(e.t0),this.hosts={drive:"https://drive.wps.cn",account:"https://account.wps.cn",plussvr:"https://plussvr.wps.cn",plus:"https://plus.wps.cn",sharefolder:"https://sharefolder.wps.cn",get:"https://get.wps.cn"};case 12:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"objToQuerys",value:function(e){var t=[];for(var n in e)t.push("".concat(n,"=").concat(e[n]));return t.join("&")}},{key:"requestQing",value:function(){var e=(0,a.Z)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.timeout=1e4,"object"===(0,R.Z)(t.params)&&(t.params=this.objToQuerys(t.params)),e.abrupt("return",$.Z.httpRequestQing(t));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"request",value:function(){var e=(0,a.Z)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.timeout=1e4,t.auth_type=3,t.header=Object.assign({"content-type":"application/json","Client-Type":"pc-win",cookie:"csrf=1234567890;".concat(this.cookie)},t.header||{}),console.log(t),"object"===(0,R.Z)(t.params)&&(t.params=this.objToQuerys(t.params)),e.abrupt("return",$.Z.httpRequest(t));case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}(),J=new H,V=function(){function e(){(0,P.Z)(this,e)}return(0,G.Z)(e,null,[{key:"createPrivateFoler",value:function(e){return J.requestQing({header:JSON.stringify({"content-type":"application/json","Client-Type":"pc-win",cookie:"csrf=1234567890;"}),request_key:"createSecretFolder",method:"post",host:J.hosts.drive,api:"/api/v3/groups/secret",data:JSON.stringify({password:e})})}},{key:"unlockPrivateFolder",value:function(e){return J.requestQing({header:JSON.stringify({"content-type":"application/json","Client-Type":"pc-win",cookie:"csrf=1234567890;"}),request_key:"unlockSecretFolder",method:"put",host:J.hosts.drive,api:"/api/v3/groups/secret/unlock",data:JSON.stringify({password:e})})}}]),e}(),K=(n(4916),n(3406)),q=n(4276),ee=function(){function e(){(0,P.Z)(this,e),this.apis={addEventListener:"common.event.addEventListener",removeEventListener:"common.event.removeEventListener",setPasswordSuccess:"setPasswordSuccess",setPasswordCancel:"setPasswordCancel",unlockPrivateFolderSuccess:"unlockPrivateFolderSuccess",openPage:"openPage",getCollectInfo:"getCollectInfo",getCurSkin:"getCurSkin"}}return(0,G.Z)(e,[{key:"setPasswordSuccess",value:function(){K.Z.exec(this.apis.setPasswordSuccess,{userId:""})}},{key:"setPasswordCancel",value:function(){K.Z.exec(this.apis.setPasswordCancel,{userId:""})}},{key:"unlockPrivateFolderSuccess",value:function(){K.Z.exec(this.apis.unlockPrivateFolderSuccess,{userId:""})}},{key:"openPage",value:function(e){K.Z.exec(this.apis.openPage,{url:e})}},{key:"getCollectInfo",value:function(){return K.Z.execPromise(this.apis.getCollectInfo,{userId:""})}},{key:"getCurSkin",value:function(e){return K.Z.execPromise(this.apis.getCurSkin,e)}},{key:"addSkinChangeListener",value:function(e){var t="addSkinChangeListener_callback";window[t]=function(t){var n=q.DS.decode(t),o=JSON.parse(n);e(o)},K.Z.exec(this.apis.removeEventListener,{eventName:"event.skin.change"}),K.Z.exec(this.apis.addEventListener,{eventName:"event.skin.change",callbackName:t})}}]),e}(),te=new ee,ne=n(1334),oe={components:{Input:N,Button:z,Dialog:W,Icon:U},data:function(){var e=function(e){return e},t=function(e){return e&&!e.includes(" ")},n=function(e){return/((?=.*\d)(?=.*\D)|(?=.*[a-zA-Z])(?=.*[^a-zA-Z]))(?!^.*[\u4E00-\u9FA5].*$)^\S{8,16}$/.test(e)},o=function |
|