{"version":3,"file":"web-DH4zMFgz.js","sources":["../../node_modules/@capacitor/screen-orientation/dist/esm/web.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class ScreenOrientationWeb extends WebPlugin {\n constructor() {\n super();\n if (typeof screen !== 'undefined' &&\n typeof screen.orientation !== 'undefined') {\n screen.orientation.addEventListener('change', () => {\n const type = screen.orientation.type;\n this.notifyListeners('screenOrientationChange', { type });\n });\n }\n }\n async orientation() {\n if (typeof screen === 'undefined' || !screen.orientation) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n return { type: screen.orientation.type };\n }\n async lock(options) {\n if (typeof screen === 'undefined' ||\n !screen.orientation ||\n !screen.orientation.lock) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n try {\n await screen.orientation.lock(options.orientation);\n }\n catch (_a) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n }\n async unlock() {\n if (typeof screen === 'undefined' ||\n !screen.orientation ||\n !screen.orientation.unlock) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n try {\n screen.orientation.unlock();\n }\n catch (_a) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["ScreenOrientationWeb","WebPlugin","type","options"],"mappings":"wCACO,MAAMA,UAA6BC,CAAU,CAChD,aAAc,CACV,MAAO,EACH,OAAO,OAAW,KAClB,OAAO,OAAO,YAAgB,KAC9B,OAAO,YAAY,iBAAiB,SAAU,IAAM,CAChD,MAAMC,EAAO,OAAO,YAAY,KAChC,KAAK,gBAAgB,0BAA2B,CAAE,KAAAA,CAAI,CAAE,CACxE,CAAa,CAEb,CACI,MAAM,aAAc,CAChB,GAAI,OAAO,OAAW,KAAe,CAAC,OAAO,YACzC,MAAM,KAAK,YAAY,qDAAqD,EAEhF,MAAO,CAAE,KAAM,OAAO,YAAY,IAAM,CAChD,CACI,MAAM,KAAKC,EAAS,CAChB,GAAI,OAAO,OAAW,KAClB,CAAC,OAAO,aACR,CAAC,OAAO,YAAY,KACpB,MAAM,KAAK,YAAY,qDAAqD,EAEhF,GAAI,CACA,MAAM,OAAO,YAAY,KAAKA,EAAQ,WAAW,CAC7D,MACmB,CACP,MAAM,KAAK,YAAY,qDAAqD,CACxF,CACA,CACI,MAAM,QAAS,CACX,GAAI,OAAO,OAAW,KAClB,CAAC,OAAO,aACR,CAAC,OAAO,YAAY,OACpB,MAAM,KAAK,YAAY,qDAAqD,EAEhF,GAAI,CACA,OAAO,YAAY,OAAQ,CACvC,MACmB,CACP,MAAM,KAAK,YAAY,qDAAqD,CACxF,CACA,CACA","x_google_ignoreList":[0]}