!function(s){var e,i=s.app=s.app||{};e=kendo.data.ObservableObject.extend({shareMessageAndSubject:function(){this.share("The message","The subject",null,null)},shareMessageAndImage:function(){this.share("The message","The subject","http://www.telerik.com/sfimages/default-source/productsimages/mobilecraft/telerik-platform.png",null)},shareMessageAndURL:function(){this.share("The message","The subject",null,"http://www.telerik.com")},share:function(s,e,i,o){this.checkSimulator()||window.plugins.socialsharing.share(s,e,i,o,this.onSuccess,this.onError)},shareMessageAndURLViaTwitter:function(){this.checkSimulator()||window.plugins.socialsharing.shareViaTwitter("The message",null,"http://www.telerik.com",this.onSuccess,this.onError)},shareImagesViaFacebook:function(){this.checkSimulator()||window.plugins.socialsharing.shareViaFacebook("The message",["www/styles/images/logo.png","http://www.telerik.com/sfimages/default-source/productsimages/mobilecraft/telerik-platform.png"],null,this.onSuccess,this.onError)},shareMessageViaWhatsApp:function(){this.checkSimulator()||window.plugins.socialsharing.shareViaWhatsApp("The message",null,null,this.onSuccess,this.onError)},shareMessageViaSMS:function(){this.checkSimulator()||window.plugins.socialsharing.shareViaSMS("The message","+31612345678,+31623456789",this.onSuccess,this.onError)},shareViaEmail:function(){this.checkSimulator()||window.plugins.socialsharing.shareViaEmail("The message","The subject",["to@person1.com","to@person2.com"],["cc@person1.com"],null,["https://www.google.nl/images/srpr/logo4w.png"],this.onSuccess,this.onError)},checkSimulator:function(){return window.navigator.simulator===!0?(alert("This plugin is not available in the simulator."),!0):void 0===window.plugins||void 0===window.plugins.socialsharing?(alert("Plugin not found. Maybe you are running in AppBuilder Companion app which currently does not support this plugin."),!0):!1},onSuccess:function(s){console.log("SocialSharing success: "+s)},onError:function(s){alert("SocialSharing error: "+s)}}),i.demoService={viewModel:new e}}(window);