{"version":3,"sources":["webpack:///./src/views/onlinecare/OnlineCareVideo.vue?4cb4","webpack:///./src/views/onlinecare/OnlineCareVideo.vue?d454","webpack:///./src/views/onlinecare/OnlineCareVideo.vue","webpack:///./src/views/onlinecare/OnlineCareVideo.vue?93af"],"names":["_withId","_hoisted_1","key","render","_ctx","_cache","$props","$setup","$data","$options","_directive_noneFooter","_directive_simpleHeader","state","isLoading","src","iframe","style","allow","class","name","props","id","type","String","required","setup","store","userName","getters","getAccountInfo","UserName","roomId","value","toString","width","wrapperStyle","window","addEventListener","e","data","router","go","__exports__"],"mappings":"gKACMA,EAAuB,eAAa,mBAE1C,eAAa,mBACb,IAAMC,EAAa,CAAEC,IAAK,GAC1B,iBAEO,IAAMC,EAAsBH,GAAQ,SAACI,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GACnG,IAAMC,EAAwB,eAAkB,cAC1CC,EAA0B,eAAkB,gBAElD,OAASP,EAAKQ,MAAMC,UAYhB,eAAoB,IAAI,GAXxB,gBAAiB,iBAAc,eAAa,MAAOZ,EAAY,CAC7D,eAAa,SAAU,CACrBa,IAAKV,EAAKQ,MAAMG,OAAOD,IACvBE,MAAOZ,EAAKQ,MAAMG,OAAOC,MACzBC,MAAO,oCACPC,MAAO,eACN,KAAM,GAAI,CAAC,SACb,MAAO,CACR,CAACR,GACD,CAACC,Q,oECfM,iBAAgB,CAC7BQ,KAAM,oBACNC,MAAO,CACLC,GAAI,CACFC,KAAMC,OACNC,UAAU,IAGdC,MAR6B,SAQvBL,GAAK,MACHM,EAAQ,iBAERC,EAAW,eAAG,UAACD,EAAME,QAAQC,sBAAf,aAAC,EAA8BC,UAE7CC,EAAS,eAAY,IAE3BA,EAAOC,MAAQZ,EAAMC,GAAGY,WAExB,IAAMjB,EAAQ,eAAS,CACrBkB,MAAO,SAEHnB,EAAS,eAAS,CACtBD,IAAK,GACLE,QACAmB,aAAc,OAGhB,gBAAU,WACRC,OAAOC,iBAAiB,WAAW,SAACC,GACR,SAAtBA,EAAEC,KAAKN,YAAuBO,EAAA,KAAOC,IAAI,MAE/C1B,EAAOD,IAAP,UAAgB,OAAhB,sBAAwCM,EAAMC,GAA9C,wBAAgEM,EAASK,OACzEpB,EAAMC,WAAY,KAEpB,IAAMD,EAAQ,eAAS,CAAEG,SAAQF,WAAW,IAE5C,MAAO,CAAED,QAAOmB,SAAQJ,e,iCClC5B,MAAMe,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASvC,GAAQ,CAAC,YAAY,qBAE1E,gB,kCCTf","file":"js/chunk-02e2b498.74e67f50.js","sourcesContent":["import { createVNode as _createVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-faef86d6\")\n\n_pushScopeId(\"data-v-faef86d6\")\nconst _hoisted_1 = { key: 0 }\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n const _directive_noneFooter = _resolveDirective(\"noneFooter\")\n const _directive_simpleHeader = _resolveDirective(\"simpleHeader\")\n\n return (!_ctx.state.isLoading)\n ? _withDirectives((_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"iframe\", {\n src: _ctx.state.iframe.src,\n style: _ctx.state.iframe.style,\n allow: \"display-capture;camera;microphone\",\n class: \"video-frame\"\n }, null, 12, [\"src\"])\n ], 512)), [\n [_directive_noneFooter],\n [_directive_simpleHeader]\n ])\n : _createCommentVNode(\"\", true)\n})","\r\nimport { VIDEO_HOST } from \"@/api/api\";\r\nimport router from \"@/router\";\r\nimport { useStore } from \"@/store\";\r\nimport { defineComponent, onMounted, reactive, ref } from \"vue\";\r\n\r\nexport default defineComponent({\r\n name: \"Online Care Video\",\r\n props: {\r\n id: {\r\n type: String,\r\n required: true,\r\n },\r\n },\r\n setup(props) {\r\n const store = useStore();\r\n\r\n const userName = ref(store.getters.getAccountInfo?.UserName);\r\n\r\n const roomId = ref(\"\");\r\n\r\n roomId.value = props.id.toString();\r\n\r\n const style = reactive({\r\n width: \"100%\",\r\n });\r\n const iframe = reactive({\r\n src: \"\",\r\n style,\r\n wrapperStyle: null,\r\n });\r\n\r\n onMounted(() => {\r\n window.addEventListener(\"message\", (e: any) => {\r\n if (e.data.toString() === \"exit\") router.go(-1);\r\n });\r\n iframe.src = `${VIDEO_HOST}/room/CASE_${props.id}?displayName=${userName.value}`;\r\n state.isLoading = false;\r\n });\r\n const state = reactive({ iframe, isLoading: true });\r\n\r\n return { state, roomId, userName };\r\n },\r\n});\r\n","import { render } from \"./OnlineCareVideo.vue?vue&type=template&id=faef86d6&scoped=true&ts=true\"\nimport script from \"./OnlineCareVideo.vue?vue&type=script&lang=ts\"\nexport * from \"./OnlineCareVideo.vue?vue&type=script&lang=ts\"\n\nimport \"./OnlineCareVideo.vue?vue&type=style&index=0&id=faef86d6&lang=scss&scoped=true\"\n\nimport exportComponent from \"D:\\\\deul\\\\dev\\\\heselCare\\\\hesel-care\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-faef86d6\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./OnlineCareVideo.vue?vue&type=style&index=0&id=faef86d6&lang=scss&scoped=true\""],"sourceRoot":""}