(window.webpackJsonp=window.webpackJsonp||[]).push([[138],{1771:function(e,t,r){"use strict";r.r(t);var n=r(3880),o=r(2284);for(var a in o)["default"].indexOf(a)<0&&function(e){r.d(t,e,(function(){return o[e]}))}(a);var i=r(0),c=r(3357),u=r.n(c),s=Object(i.a)(o.default,n.a,n.b,!1,null,null,null);"function"==typeof u.a&&u()(s),t.default=s.exports},1933:function(e,t,r){"use strict";r(7),r(10),r(5),r(6),r(8),r(11);var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.free=t.share=t.getConfig=void 0,r(50);var o=n(r(2)),a=n(r(78));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var c="/CMD_IP_CONFIG",u=a.default.get({id:"IP_CONFIG",url:c,response:{},after:function(e){return e.flow((function(e){return{ips:e.data,hideUsersCount:"1"===e.hide_ip_user_numbers,haveShared:"1"===e.have_shared||!0,select:e.ip_list||{}}}),e.mapProp("ips",e.flow(e.mapValues((function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ip:t},e)})),Object.values,e.mapArrayProps({linked_ips:function(t){return Object.values(e.mapValues(t,(function(t,r){return{ip:r,apache:e.convert.toAppBoolean(t.apache),dns:e.convert.toAppBoolean(t.dns)}})))},value:function(t){return e.convert.toAppNumber(t)||t}}))),e.mapProp("select",e.toSelect))}});t.getConfig=u;var s=a.default.select({url:c,params:{share:!0}});t.share=s;var f=a.default.select({url:c,params:{free:"Free Selected"}});t.free=f},2284:function(e,t,r){"use strict";r.r(t);var n=r(2285),o=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(a);t.default=o.a},2285:function(e,t,r){"use strict";r(16),r(14),r(23),r(25),r(18),r(6);var n=r(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(34),r(27);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var u=i?Object.getOwnPropertyDescriptor(e,c):null;u&&(u.get||u.set)?Object.defineProperty(o,c,u):o[c]=e[c]}o.default=e,r&&r.set(e,o);return o}(r(1933));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}var i={preload:o.getConfig,api:[{command:o.getConfig,bind:"config"}],data:function(){return{checkedRows:[]}},computed:{rows:function(){return this.$api.config.ips},hideUsersColumn:function(){return this.$api.config.hideUsersCount},checkedIPs:function(){return this.checkedRows.map((function(e){return e.ip}))},freeActionShown:function(){return this.hideUsersColumn||this.checkedRows.reduce((function(e,t){return e&&0===t.value}),!0)}},methods:{reloadRows:function(){o.getConfig(),this.checkedRows=[]},share:function(){o.share({select:this.checkedIPs}).then(this.reloadRows)},free:function(){o.free({select:this.checkedIPs}).then(this.reloadRows)}}};t.default=i},3357:function(e,t){},3880:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("app-page",[r("app-page-section",[r("ui-r-table",e._b({attrs:{"checked-rows":e.checkedRows,"disable-pagination":"","equal-width-layout":""},on:{"update:checkedRows":[function(t){e.checkedRows=t},function(t){e.checkedRows=t}],"update:checked-rows":function(t){e.checkedRows=t}}},"ui-r-table",{columns:[{id:"ip",label:e.$gettext("IP Address"),editable:!1},{id:"status",label:e.$gettext("Status")},e.hideUsersColumn?{id:""}:{id:"value",label:e.$gettext("User(s)")},{id:"ns",label:e.$gettext("Name Server")}],rows:e.rows,verticalLayout:e.$_Client.isPhone},!1),[r("template",{slot:"table:actions"},[r("ui-table-action",{on:{click:e.share}},[r("translate",[e._v("Share")])],1),e._v(" "),r("ui-table-action",{on:{click:e.free}},[r("translate",[e._v("Free")])],1)],1)],2)],1)],1)},o=[]}}]);