"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4487],{4487:(h,s,o)=>{o.r(s),o.d(s,{pwa_camera_modal:()=>d});var r=o(8239),i=o(5127);const d=class{constructor(e){(0,i.r)(this,e),this.onPhoto=(0,i.c)(this,"onPhoto",7),this.noDeviceError=(0,i.c)(this,"noDeviceError",7),this.facingMode="user",this.hidePicker=!1}present(){var e=this;return(0,r.Z)(function*(){const t=document.createElement("pwa-camera-modal-instance");t.facingMode=e.facingMode,t.hidePicker=e.hidePicker,t.addEventListener("onPhoto",function(){var a=(0,r.Z)(function*(n){e._modal&&e.onPhoto.emit(n.detail)});return function(n){return a.apply(this,arguments)}}()),t.addEventListener("noDeviceError",function(){var a=(0,r.Z)(function*(n){e.noDeviceError.emit(n)});return function(n){return a.apply(this,arguments)}}()),document.body.append(t),e._modal=t})()}dismiss(){var e=this;return(0,r.Z)(function*(){!e._modal||(e._modal&&e._modal.parentNode.removeChild(e._modal),e._modal=null)})()}render(){return(0,i.h)("div",null)}};d.style=":host{z-index:1000;position:fixed;top:0;left:0;width:100%;height:100%;display:-ms-flexbox;display:flex;contain:strict}.wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:rgba(0, 0, 0, 0.15)}.content{-webkit-box-shadow:0px 0px 5px rgba(0, 0, 0, 0.2);box-shadow:0px 0px 5px rgba(0, 0, 0, 0.2);width:600px;height:600px}"}}]);