(window.webpackJsonp=window.webpackJsonp||[]).push([[170],{1781:function(e,t,a){"use strict";a.r(t);var n=a(3890),r=a(2314);for(var o in r)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return r[e]}))}(o);var c=a(0),u=a(3377),s=a.n(u),i=Object(c.a)(r.default,n.a,n.b,!1,null,null,null);"function"==typeof s.a&&s()(i),t.default=i.exports},2314:function(e,t,a){"use strict";a.r(t);var n=a(2315),r=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t.default=r.a},2315:function(e,t,a){"use strict";a(7),a(10),a(5),a(6),a(8),a(11);var n=a(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(36)),o=n(a(2)),c=n(a(37)),u=a(1925);function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){(0,o.default)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var p,l={components:{UserPackage:n(a(2017)).default},props:{p:{type:String,required:!0}},data:function(){return{packageData:{},packageName:this.p,rename:!1}},methods:{updatePackage:(p=(0,c.default)(r.default.mark((function e(){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.updatePackage)(i({packagename:this.packageName,old_packagename:this.p,rename:this.rename||null},this.packageData));case 2:e.sent&&this.$router.push({name:"reseller/user-packages"});case 4:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})}};t.default=l},3377:function(e,t){},3890:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("app-page",{attrs:{id:"view-user-package"}},[a("app-page-section",[a("user-package",{attrs:{package:e.p},on:{update:function(t){e.packageData=t}}}),e._v(" "),a("ui-form-element",[a("translate",{attrs:{slot:"title"},slot:"title"},[e._v("\n                Package Name\n            ")]),e._v(" "),a("input-text",{attrs:{slot:"content",disabled:!e.rename},slot:"content",model:{value:e.packageName,callback:function(t){e.packageName=t},expression:"packageName"}},[a("input-checkbox-button",{attrs:{slot:"additions:right"},slot:"additions:right",model:{value:e.rename,callback:function(t){e.rename=t},expression:"rename"}},[a("translate",[e._v("Rename")])],1)],1)],1)],1),e._v(" "),a("ui-button",{attrs:{slot:"footer:buttons",theme:"safe"},on:{click:e.updatePackage},slot:"footer:buttons"},[a("translate",[e._v("Save")])],1)],1)},r=[]}}]);