(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{477:function(t,e,n){var content=n(483);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(14).default)("53f95094",content,!0,{sourceMap:!1})},482:function(t,e,n){"use strict";n(477)},483:function(t,e,n){var r=n(13)(!1);r.push([t.i,".save-changes .w-alert{font-weight:400;padding:.75rem .75rem .75rem 1rem;margin-bottom:.75rem;border-radius:.75rem;color:#fff;display:flex;min-width:500px;background-color:var(--color-misc-1);justify-content:space-between;align-items:center;border:none;box-shadow:3px 3px 20px rgba(48,60,77,.65)}.w-app--dark .save-changes .w-alert{box-shadow:4.5px 4.5px 30px rgba(20,23,27,.85)}",""]),t.exports=r},486:function(t,e,n){"use strict";n.r(e);n(33),n(7);var r=n(18),o=n(0),c=function(t,e,n,r){return new(n||(n=Promise))((function(o,c){function l(t){try{v(r.next(t))}catch(t){c(t)}}function h(t){try{v(r.throw(t))}catch(t){c(t)}}function v(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(l,h)}v((r=r.apply(t,e||[])).next())}))},l=o.a.extend({props:{value:{type:Object,required:!0},onSave:{type:Function,required:!0}},data:function(){return{original:null,changed:!1,isSaving:!1}},watch:{value:{deep:!0,handler:function(){this.changed=!Object(r.isEqual)(this.value,this.original)}}},created:function(){this.original=Object.assign({},this.value)},methods:{revert:function(){this.$emit("input",Object.assign({},this.original))},save:function(){return c(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isSaving=!0,t.next=3,Promise.resolve(this.onSave());case 3:this.changed=!1,this.isSaving=!1,this.original=Object.assign({},this.value);case 6:case"end":return t.stop()}}),t,this)})))}}}),h=(n(482),n(2)),component=Object(h.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("w-notification",{staticClass:"save-changes",attrs:{value:t.changed,bottom:"",center:"",plain:""}},[n("span",{staticClass:"save-changes__title"},[n("w-icon",{staticClass:"left",attrs:{size:"1.25rem"}},[t._v("\n\t\t\tmdi mdi-alert-circle\n\t\t")]),t._v("\n\t\t"+t._s(t.$t("GENERAL_UNSAVED_CHANGES"))+"\n\t")],1),t._v(" "),n("div",[n("w-button",{attrs:{text:"",color:"white"},on:{click:t.revert}},[n("span",[t._v("Revert")])]),t._v(" "),n("w-button",{attrs:{color:"white","bg-color":"primary",loading:t.isSaving},on:{click:t.save}},[t._v("\n\t\t\tSave\n\t\t\t"),n("w-icon",{staticClass:"right"},[t._v("\n\t\t\t\tmdi mdi-check\n\t\t\t")])],1)],1)])}),[],!1,null,null,null);e.default=component.exports}}]);