{"version":3,"file":"904.chunk.js","mappings":"4KAKMA,EAAWC,EAAAA,MAAW,kBAAM,uHAErBC,EAAa,SAACC,GACzB,OACE,SAAC,EAAAC,SAAD,CAAUC,SAAU,KAApB,UACE,SAACL,EAAD,CAAUM,OAAQH,EAAMG,a,qGCLxBC,EAASN,EAAAA,MAAW,kBAAM,uHAEnBO,EAAK,SAACL,GACjB,OACE,SAAC,EAAAC,SAAD,CAAUC,SAAU,KAApB,UACE,SAACE,EAAD,CAAQD,OAAQH,EAAMG,a,+FCVfG,EAA6C,WACxD,OAAO,+BACJC,MAAK,YACJ,OADKC,EAAEC,wBACwBC,0BAEhCH,MAAMI,SAAAA,GACL,OAAOC,QAAQC,QACbF,EAAkBG,aAClBH,EAAkBI,cAClBJ,EAAkBK,iBAClBL,EAAkBM,qB,+JCH1B,IAAMC,GAASC,EAAAA,EAAAA,GAAa,UAEtBC,EAAS,WACb,OAAKC,EAAAA,EAAAA,KAGIC,EAAAA,EAAAA,cAAuBC,OAAOhB,MAAK,WACxCiB,EAAAA,EAAAA,QAAiBC,EAAAA,EAAAA,OAAe,OAC/BC,OAAOC,SAAAA,GACRT,EAAOU,MAAMD,MALRf,QAAQiB,OAAO,IAAIC,EAAAA,K","sources":["VmWidgetUi.tsx","widgets/ConfiguratorsWidget/UI.tsx","../node_modules/@luxottica/virtual-mirror/src/app/functions/IsBrowserSupported.ts","../node_modules/@luxottica/virtual-mirror/src/app/functions/Resume.ts"],"sourcesContent":["import React, { Suspense } from 'react'\nimport { Config } from './types/config'\n\ntype VmWidgetUiProps = { config: Config }\n\nconst VMWidget = React.lazy(() => import('./VMWidget'))\n\nexport const VmWidgetUi = (props: VmWidgetUiProps) => {\n return (\n \n \n \n )\n}\n","import { Config } from '@customTypes/config'\nimport React, { Suspense } from 'react'\n\ntype Props = { config: Config }\n\nconst Widget = React.lazy(() => import('./Widget'))\n\nexport const Ui = (props: Props) => {\n return (\n \n \n \n )\n}\n","export const isBrowserSupported: () => Promise = () => {\n return import('../../helpers/SupportedFeaturesHelper')\n .then(({ SupportedFeaturesHelper }) => {\n return SupportedFeaturesHelper.getSupportedFeatures();\n })\n .then((supportedFeatures): Promise => {\n return Promise.resolve(\n supportedFeatures.wasmSupport &&\n supportedFeatures.webcamAccess &&\n supportedFeatures.webcamAvailable &&\n supportedFeatures.webglRendering\n );\n });\n};\n","import { EventBus } from '@luxottica/vm-eventbus';\nimport { Events } from '../../constants/Events';\nimport { NotInitializedError } from '../../errors/errors';\nimport { createLogger } from '../../remotelog/VmLogger';\nimport { VmWebCam } from '../mirror/VmWebCam';\nimport { vmIsInitialized } from '../VmCore';\n\nconst logger = createLogger('Resume');\n\nconst resume = (): Promise => {\n if (!vmIsInitialized()) {\n return Promise.reject(new NotInitializedError());\n } else {\n return VmWebCam.getInstance().play().then(() => {\n EventBus.publish(Events.RESUME, {});\n }).catch((e) => {\n logger.error(e);\n });\n }\n};\n\nexport {\n resume\n};\n"],"names":["VMWidget","React","VmWidgetUi","props","Suspense","fallback","config","Widget","Ui","isBrowserSupported","then","_ref","SupportedFeaturesHelper","getSupportedFeatures","supportedFeatures","Promise","resolve","wasmSupport","webcamAccess","webcamAvailable","webglRendering","logger","createLogger","resume","vmIsInitialized","VmWebCam","play","EventBus","Events","catch","e","error","reject","NotInitializedError"],"sourceRoot":""}