(window.webpackJsonp=window.webpackJsonp||[]).push([[160],{1852:function(e,t,r){"use strict";r.r(t);var a=r(3960),o=r(2726);for(var n in o)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return o[e]}))}(n);var u=r(0),s=r(3722),i=r.n(s),c=Object(u.a)(o.default,a.a,a.b,!1,null,null,null);"function"==typeof i.a&&i()(c),t.default=c.exports},1998:function(e,t,r){"use strict";var a=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.updateName=t.unprotectDirectory=t.deleteUsers=t.addUser=t.getDirectoryInfo=t.getDirectoryStatus=t.getDirectories=t.protectDirectory=void 0;var o=a(r(78)),n="/CMD_FILE_MANAGER",u=o.default.post({url:n,params:{action:"protect",enabled:!0},schema:{path:o.default.REQUIRED_STRING,user:o.default.REQUIRED_STRING,passwd:o.default.REQUIRED_STRING,passwd2:o.default.REQUIRED_STRING}});t.protectDirectory=u;var s=o.default.get({id:"PROTECTED_DIRECTORIES",url:"/CMD_PROTECTED_DIRECTORIES",domain:!0,response:[]});t.getDirectories=s;var i=o.default.get({id:"PROTECTED_DIRECTORY_STATUS",url:n,params:{action:"protect"},schema:{path:o.default.REQUIRED_STRING},response:{protected:!1},after:function(){return function(e){return{protected:!!e.ENABLED}}}});t.getDirectoryStatus=i;var c=i.extend({id:"PROTECTED_DIRECTORY_INFO",pagination:!0,response:{},after:function(e){return e.flow(e.deleteProp("ENABLED"),e.deleteProp("domain"),e.deleteProp("path"),e.processTableInfo("users"),e.moveProp({users:"rows",NAME:"name"}),e.mapProp("rows",e.toArray))}});t.getDirectoryInfo=c;var d=o.default.post({url:n,params:{action:"protect",enabled:!0},schema:{name:o.default.REQUIRED_STRING,path:o.default.REQUIRED_STRING,user:o.default.REQUIRED_STRING,passwd:o.default.REQUIRED_STRING,passwd2:o.default.REQUIRED_STRING}});t.addUser=d;var l=o.default.select({url:n,params:{action:"delete"},schema:{path:o.default.REQUIRED_STRING}});t.deleteUsers=l;var p=o.default.post({url:n,params:{action:"protect"},schema:{name:o.default.REQUIRED_STRING,path:o.default.REQUIRED_STRING}});t.unprotectDirectory=p;var f=o.default.post({url:n,params:{action:"protect",enabled:!0},schema:{name:o.default.REQUIRED_STRING,path:o.default.REQUIRED_STRING}});t.updateName=f},2726:function(e,t,r){"use strict";r.r(t);var a=r(2727),o=r.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(n);t.default=o.a},2727:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(34);var a=r(1998),o={preload:a.getDirectories,api:[{command:a.getDirectories,bind:"dirs"}],computed:{rows:function(){return this.$api.dirs.map((function(e){return{path:e}}))}},watch:{$domain:function(){(0,a.getDirectories)()}}};t.default=o},3722:function(e,t){},3960:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o}));var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("app-page",[r("app-page-section",[r("ui-r-table",{attrs:{rows:e.rows,columns:[{id:"path",label:e.$gettext("Current Protected Directories")}],"is-checkable":!1,"disable-pagination":""},scopedSlots:e._u([{key:"col:path",fn:function(t){var a=t.path;return r("ui-link",{attrs:{name:"user/protected-directories/view",query:{path:a}}},[e._v("\n                "+e._s(a)+"\n            ")])}}])})],1),e._v(" "),r("ui-link",{attrs:{slot:"bottom:links",bullet:"",href:"/CMD_FILE_MANAGER?path=/domains/"+e.$domain+"/public_html",target:"_blank"},slot:"bottom:links"},[r("translate",[e._v("Find a Directory to Password Protect")])],1)],1)},o=[]}}]);