File: //usr/syno/synoman/webman/modules/VolEncKeepKeyNotification/VolEncKeepKeyNotification.js
!function(){"use strict";var e={n:function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,{a:t}),t},d:function(n,t){for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},n=Vue,t=e.n(n),o=function(){var e=this,n=e.$createElement;return(e._self._c||n)("v-app-instance",{attrs:{"class-name":"SYNO.SDS.App.VolEncKeepKeyNotification.Instance","syno-id":"vol-enc-keep-key-app-instance","can-open":e.canOpen,"should-launch":e.shouldLaunch}})};function i(e,n,t,o,i,r,c,a){var s,p="function"==typeof e?e.options:e;if(n&&(p.render=n,p.staticRenderFns=t,p._compiled=!0),o&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),c?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},p._ssrRegister=s):i&&(s=a?function(){i.call(this,(p.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(p.functional){p._injectStyles=s;var l=p.render;p.render=function(e,n){return s.call(n),l(e,n)}}else{var u=p.beforeCreate;p.beforeCreate=u?[].concat(u,s):[s]}return{exports:e,options:p}}o._withStripped=!0;var r=i({mixins:[],data(){return{}},methods:{canOpen(){return!0===SYNO.SDS.App.VolEncKeepKeyNotification.notified||(SYNO.SDS.App.VolEncKeepKeyNotification.notified=!0,this.volEncKeepKeyInfoLoad()),!1},volEncKeepKeyInfoLoad(){synowebapi.promises.request({api:"SYNO.Core.VolEncKeepKey",method:"get",version:1}).then((e=>{e.notify_vol_enc_keep_key&&SYNO.SDS.NotifyMgr.notifyVueCustomizeMsg("",new SYNO.SDS.App.VolEncKeepKeyNotification.VolEncKeepKeyTray)})).catch((e=>{SYNO.Debug.error(e)}))},shouldLaunch(){return!0}}},o,[],!1,null,null,null);r.options.__file="src/App.vue";var c=r.exports,a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-notification",{ref:"notification",attrs:{icon:"important",fbar:!0,"active-duration":0,"ease-out-duration":0,"has-cancel-btn":!1,confirm:e.onConfirm,"confirm-text":e.$i18n("common","apply"),"on-close":e.onClose,title:e.$i18n("volume_encryption","keep_key_notice_title")},scopedSlots:e._u([{key:"body",fn:function(){return[t("div",{staticClass:"v-notification-body"},[t("div",[t("v-rich-text",{attrs:{text:e.$i18n("volume_encryption","keep_key_notice_desc"),"allow-attrs":["href","target"]}})],1),e._v(" "),t("v-checkbox",{attrs:{"syno-id":"syno-vol-enc-keep-key-ignore-checkbox"},model:{value:e.isIgnore,callback:function(n){e.isIgnore=n},expression:"isIgnore"}},[e._v("\n\t\t\t"+e._s(e.$i18n("common","dont_alert_again"))+"\n\t\t")])],1)]},proxy:!0}])})};a._withStripped=!0;var s=i({data(){return{isIgnore:!1}},methods:{onConfirm(){const e=this.$refs.notification;this.isIgnore?(synowebapi.request({api:"SYNO.Core.VolEncKeepKey",method:"ignore",version:1}),e.close()):e.close()}}},a,[],!1,null,null,null);s.options.__file="src/vol-enc-keep-key-tray.vue";var p=s.exports;Ext.namespace("SYNO.SDS.App.VolEncKeepKeyNotification"),SYNO.SDS.App.VolEncKeepKeyNotification.Instance=t().extend({template:"<App/>",components:{App:c}}),SYNO.SDS.App.VolEncKeepKeyNotification.VolEncKeepKeyTray=t().extend({template:"<VolEncKeepKeyTray/>",components:{VolEncKeepKeyTray:p}})}();