mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-15 11:01:10 +01:00
3 lines
34 KiB
JavaScript
3 lines
34 KiB
JavaScript
|
/*! Capacitor: https://capacitor.ionicframework.com/ - MIT License */
|
||
|
var capacitorExports=function(e){"use strict";var t,r,n,i,o,s,a,u,c,l,d,p,h,f;(t=e.CameraSource||(e.CameraSource={})).Prompt="PROMPT",t.Camera="CAMERA",t.Photos="PHOTOS",(r=e.CameraDirection||(e.CameraDirection={})).Rear="REAR",r.Front="FRONT",(n=e.CameraResultType||(e.CameraResultType={})).Uri="uri",n.Base64="base64",n.DataUrl="dataUrl",(i=e.FilesystemDirectory||(e.FilesystemDirectory={})).Documents="DOCUMENTS",i.Data="DATA",i.Cache="CACHE",i.External="EXTERNAL",i.ExternalStorage="EXTERNAL_STORAGE",(o=e.FilesystemEncoding||(e.FilesystemEncoding={})).UTF8="utf8",o.ASCII="ascii",o.UTF16="utf16",(s=e.HapticsImpactStyle||(e.HapticsImpactStyle={})).Heavy="HEAVY",s.Medium="MEDIUM",s.Light="LIGHT",(a=e.HapticsNotificationType||(e.HapticsNotificationType={})).SUCCESS="SUCCESS",a.WARNING="WARNING",a.ERROR="ERROR",(u=e.KeyboardStyle||(e.KeyboardStyle={})).Dark="DARK",u.Light="LIGHT",(c=e.KeyboardResize||(e.KeyboardResize={})).Body="body",c.Ionic="ionic",c.Native="native",c.None="none",(l=e.ActionSheetOptionStyle||(e.ActionSheetOptionStyle={})).Default="DEFAULT",l.Destructive="DESTRUCTIVE",l.Cancel="CANCEL",(d=e.PermissionType||(e.PermissionType={})).Camera="camera",d.Photos="photos",d.Geolocation="geolocation",d.Notifications="notifications",d.ClipboardRead="clipboard-read",d.ClipboardWrite="clipboard-write",d.Microphone="microphone",(p=e.PhotosAlbumType||(e.PhotosAlbumType={})).Smart="smart",p.Shared="shared",p.User="user",(h=e.StatusBarStyle||(e.StatusBarStyle={})).Dark="DARK",h.Light="LIGHT",(f=e.StatusBarAnimation||(e.StatusBarAnimation={})).None="NONE",f.Slide="SLIDE",f.Fade="FADE";var m,v=function(){function e(){var e=this;this.platform="web",this.isNative=!1,this.Plugins={},"undefined"!=typeof Proxy&&(this.Plugins=new Proxy(this.Plugins,{get:function(t,r){if(void 0===t[r]){var n=e;return new Proxy({},{get:function(e,t){return void 0===e[t]?n.pluginMethodNoop.bind(n,e,t,r):e[t]}})}return t[r]}}))}return e.prototype.pluginMethodNoop=function(e,t,r){return Promise.reject(r+" does not have web implementation.")},e.prototype.getPlatform=function(){return this.platform},e.prototype.isPluginAvailable=function(e){return this.Plugins.hasOwnProperty(e)},e.prototype.convertFileSrc=function(e){return e},e.prototype.handleError=function(e){console.error(e)},e}(),y=(m="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).Capacitor=m.Capacitor||new v,g=y.Plugins,w=function(){function e(){this.plugins={},this.loadedPlugins={}}return e.prototype.addPlugin=function(e){this.plugins[e.config.name]=e},e.prototype.getPlugin=function(e){return this.plugins[e]},e.prototype.loadPlugin=function(e){var t=this.getPlugin(e);t?t.load():console.error("Unable to load web plugin "+e+", no such plugin found.")},e.prototype.getPlugins=function(){var e=[];for(var t in this.plugins)e.push(this.plugins[t]);return e},e}(),b=new w,P=function(){function e(e,t){this.config=e,this.loaded=!1,this.listeners={},this.windowListeners={},t?t.addPlugin(this):b.addPlugin(this)}return e.prototype.addWindowListener=function(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0},e.prototype.removeWindowListener=function(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)},e.prototype.addListener=function(e,t){var r=this;this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);var n=this.windowListeners[e];return n&&!n.registered&&this.addWindowListener(n),{remove:function(){r.removeListener(e,t)}}},e.prototype.removeListener=function(e,t){var r=this.listeners[e];if(r){var n=r.indexOf(t);this.listeners[e].splice(n,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}},e.prototype.removeAllListeners=function(){for(var e in this.listeners={},this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}},e.prototype.notifyListeners=function(e,t){var r=this.listeners[e];r&&r.forEach((function(e){return e(t)}))},e.prototype.hasListeners=function(e){return!!this.listeners[e].length},e.prototype.registerWindowListener=f
|
||
|
//# sourceMappingURL=capacitor.js.map
|