HEX
Server: Apache/2.4.63 (Unix)
System: Linux Synopilou92 4.4.302+ #72806 SMP Mon Jul 21 23:16:00 CST 2025 x86_64
User: pilou92 (1026)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /volume1/@appstore/HyperBackup/ui/hyperbackup-vue-lib.js
(function(Y,_){"use strict";const G="";function r(n,e,t,s,a,d,u,L){var l=typeof n=="function"?n.options:n;e&&(l.render=e,l.staticRenderFns=t,l._compiled=!0),s&&(l.functional=!0),d&&(l._scopeId="data-v-"+d);var o;if(u?(o=function(c){c=c||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!c&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(c=__VUE_SSR_CONTEXT__),a&&a.call(this,c),c&&c._registeredComponents&&c._registeredComponents.add(u)},l._ssrRegister=o):a&&(o=L?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),o)if(l.functional){l._injectStyles=o;var z=l.render;l.render=function(M,p){return o.call(p),z(M,p)}}else{var v=l.beforeCreate;l.beforeCreate=v?[].concat(v,o):[o]}return{exports:n,options:l}}const f={props:{title:{type:String,required:!0},selected:{type:Boolean,default:!1},isBeta:{type:Boolean,default:!1}},emits:["click"]};var y=function(){var e=this,t=e._self._c;return t("div",{staticClass:"out",class:{selected:e.selected},on:{click:function(s){return e.$emit("click")}}},[t("div",{staticClass:"icon"},[e._t("icon")],2),t("div",[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticClass:"title"},[e._v(" "+e._s(e.title)+" ")]),e.isBeta?t("div",{staticClass:"icon-beta"}):e._e()]),t("div",{staticClass:"desc"},[e._t("default")],2)])])},h=[],m=r(f,y,h,!1,null,"9dc46692",null,null);const k=m.exports,A="",C={props:{title:{type:String,required:!0},selected:{type:Boolean,default:!1}},emits:["click"]};var S=function(){var e=this,t=e._self._c;return t("div",{staticClass:"out",class:{selected:e.selected},on:{click:function(s){return e.$emit("click")}}},[t("div",{staticClass:"icon"},[e._t("icon")],2),t("div",{staticClass:"title"},[e._v(" "+e._s(e.title)+" ")])])},g=[],$=r(C,S,g,!1,null,"bfd9a786",null,null);const D=$.exports,i=(n,e)=>window._TT("SYNO.SDS.Backup.Application",n,e),U="",w="https://sy.to/hb2c2storage",B={components:{SynologyDestination:k,OtherDestination:D},props:{destinations:{type:Array,required:!0},showOtherDestinations:{type:Boolean,required:!0},showBetaForC2:{type:Boolean,required:!0},onSelect:{type:Function,default:null}},emits:["select"],data(){return{selected:null}},computed:{hasC2(){return this.destinations.some(n=>n=="c2")},hasRemote(){return this.destinations.some(n=>n=="remote")},hasLocal(){return this.destinations.some(n=>n=="local")},hasSynologyDest(){return this.hasC2||this.hasRemote||this.hasLocal},c2Dest(){return i("app","backup_desc_c2").replace("{0}",`<a href="${w}" target="_blank">`).replace("{1}","</a>")},synologyServices(){return[...this.hasC2?[{key:"c2",iconClass:"icon-c2",isBeta:this.showBetaForC2,title:i("synocloud","repo_type_name_2"),htmlDesc:this.c2Dest}]:[],...this.hasRemote?[{key:"remote",iconClass:"icon-remote",isBeta:!1,title:i("app","all_cap_remote_nas_device"),desc:i("app","backup_desc_remote_device")}]:[],...this.hasLocal?[{key:"local",iconClass:"icon-local",isBeta:!1,title:i("app","all_cap_local_device"),desc:i("app","backup_desc_local_device")}]:[]]},cloudServices(){return this.showOtherDestinations?[{key:"dropbox",iconClass:"icon-dropbox",title:i("dropbox","name")},{key:"google_drive",iconClass:"icon-google-drive",title:i("google_drive","name")},{key:"hidrive",iconClass:"icon-hidrive",title:i("hidrive","name")},{key:"jd_cloud",iconClass:"icon-jd-cloud",title:i("jdcloud_s3","name")},{key:"azure",iconClass:"icon-azure",title:i("azure","name")},{key:"rackspace",iconClass:"icon-rackspace",title:i("rackspace","name")},{key:"s3_storage",iconClass:"icon-s3-storage",title:i("aws_s3","repo_type_name")},{key:"hicloud_s3",iconClass:"icon-hicloud-s3",title:i("hicloud_s3","name")}]:[]},fileServers(){return this.showOtherDestinations?[{key:"rsync",iconClass:"icon-rsync",title:i("rsync","repo_type_name_2")},{key:"webdav",iconClass:"icon-webdav",title:i("webdav","repo_type_name")},{key:"openstack_swift",iconClass:"icon-openstack-swift",title:i("openstack","name")}]:[]}},watch:{selected(n){this.$emit("select",n),this.onSelect&&this.onSelect(n)}},methods:{TT:i}};var T=function(){var e=this,t=e._self._c;return t("div",[e.hasSynologyDest?t("div",[e.showOtherDestinations?t("div",{staticClass:"section-title"},[e._v(" "+e._s(e.TT("app","repo_field_syno_nas"))+" ")]):e._e(),e._l(e.synologyServices,function(s){return t("SynologyDestination",{key:s.key,staticClass:"syno-dest",attrs:{title:s.title,selected:e.selected===s.key,"is-beta":s.isBeta},on:{click:function(a){e.selected=s.key}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("div",{class:s.iconClass})]},proxy:!0}],null,!0)},[s.desc?t("div",[e._v(" "+e._s(s.desc)+" ")]):e._e(),s.htmlDesc?t("div",{domProps:{innerHTML:e._s(s.htmlDesc)}}):e._e()])})],2):e._e(),e.fileServers.length>0?t("div",{staticStyle:{"margin-bottom":"12px"}},[t("div",{staticClass:"section-title"},[e._v(" "+e._s(e.TT("app","repo_field_cloud"))+" ")]),t("div",{staticClass:"other-dest-row"},e._l(e.cloudServices,function(s){return t("OtherDestination",{key:s.key,staticClass:"other-dest",attrs:{title:s.title,selected:e.selected==s.key},on:{click:function(a){e.selected=s.key}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("div",{class:s.iconClass})]},proxy:!0}],null,!0)})}),1)]):e._e(),e.fileServers.length>0?t("div",[t("div",{staticClass:"section-title"},[e._v(" "+e._s(e.TT("app","repo_field_file_server"))+" ")]),t("div",{staticClass:"other-dest-row"},e._l(e.fileServers,function(s){return t("OtherDestination",{key:s.key,staticClass:"other-dest",attrs:{title:s.title,selected:e.selected===s.key},on:{click:function(a){e.selected=s.key}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("div",{class:s.iconClass})]},proxy:!0}],null,!0)})}),1)]):e._e()])},b=[],R=r(B,T,b,!1,null,"e113f59a",null,null);const O=R.exports,X="",x={components:{vRadio:_.vRadio,vRadioGroup:_.vRadioGroup},props:{onSelect:{type:Function,default:null}},emits:["select"],data(){return{selected:null}},computed:{options(){return[{value:"multiple",text:i("app","multi_version"),desc:i("app","desc_multi_version")},{value:"single",text:i("app","single_version"),desc:i("app","desc_single_version")}]}},watch:{selected(n){this.$emit("select",n),this.onSelect&&this.onSelect(n)}},mounted(){this.selected="multiple"}};var F=function(){var e=this,t=e._self._c;return t("div",[t("vRadioGroup",{attrs:{"syno-id":"select-single-multi-group"},model:{value:e.selected,callback:function(s){e.selected=s},expression:"selected"}},e._l(e.options,function(s){return t("div",{key:s.value,staticClass:"single-or-multiple-option"},[t("vRadio",{attrs:{"syno-id":"select-single-multi-"+s.value,value:s.value}},[e._v(" "+e._s(s.text)+" ")]),t("p",{staticClass:"single-or-multiple-desc"},[e._v(" "+e._s(s.desc)+" ")])],1)}),0)],1)},N=[],V=r(x,F,N,!1,null,"cd80f0e4",null,null);const q=V.exports;Ext.ns("SYNO.SDS.Backup.Vue"),SYNO.SDS.Backup.Vue.SelectBackupDestination=O,SYNO.SDS.Backup.Vue.SelectSingleOrMultiple=q})(Vue,window["syno-vue-components"].components);