(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{677:function(e,t,n){"use strict";n.r(t);var o=n(16),l=(n(75),n(3)),r=n(55);function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var f=l.a.extend({props:{show:Boolean,editingCollection:{type:Object,default:()=>{}},editingCollectionIndex:{type:Number,default:null}},data:()=>({name:null}),methods:{saveCollection(){if(this.name){var e=d(d({},this.$props.editingCollection),{},{name:this.name});Object(r.g)(this.editingCollectionIndex,e),this.hideModal()}else this.$toast.info(this.$t("invalid_collection_name").toString())},hideModal(){this.name=null,this.$emit("hide-modal")}}}),m=n(15),component=Object(m.a)(f,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("SmartModal",{on:{close:e.hideModal},scopedSlots:e._u([{key:"header",fn:function(){return[n("h3",{staticClass:"heading"},[e._v(e._s(e.$t("edit_collection")))]),e._v(" "),n("div",[n("button",{staticClass:"icon button",on:{click:e.hideModal}},[n("i",{staticClass:"material-icons"},[e._v("close")])])])]},proxy:!0},{key:"body",fn:function(){return[n("label",{attrs:{for:"selectLabelGqlEdit"}},[e._v(e._s(e.$t("label")))]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],staticClass:"input",attrs:{id:"selectLabelGqlEdit",type:"text",placeholder:e.editingCollection.name},domProps:{value:e.name},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.saveCollection.apply(null,arguments)},input:function(t){t.target.composing||(e.name=t.target.value)}}})]},proxy:!0},{key:"footer",fn:function(){return[n("span"),e._v(" "),n("span",[n("button",{staticClass:"icon button",on:{click:e.hideModal}},[e._v("\n        "+e._s(e.$t("cancel"))+"\n      ")]),e._v(" "),n("button",{staticClass:"icon button primary",on:{click:e.saveCollection}},[e._v("\n        "+e._s(e.$t("save"))+"\n      ")])])]},proxy:!0}],null,!1,652584479)}):e._e()}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{SmartModal:n(163).default})}}]);