{"version":3,"file":"js/responsive_iframe.0175213a.js","mappings":"qJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAEJ,EAAmB,gBAAEI,EAAG,MAAM,CAACE,YAAY,6BAA6BC,MAAMP,EAAIQ,kBAAkB,CAACJ,EAAG,SAAS,CAACK,MAAM,CAAC,IAAMT,EAAIU,UAAU,gBAAkB,GAAG,MAAQV,EAAIW,aAAaX,EAAIY,KAAOZ,EAAIa,gBAAiTb,EAAIY,KAApSR,EAAG,MAAM,CAACE,YAAY,8BAA8B,CAACF,EAAG,IAAI,CAACK,MAAM,CAAC,KAAO,IAAI,aAAaT,EAAIc,OAAO,8BAA8BC,GAAG,CAAC,MAAQ,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBjB,EAAIkB,cAAcF,EAAO,IAAI,CAACZ,EAAG,MAAM,CAACK,MAAM,CAAC,IAAMT,EAAImB,aAAa,IAAMnB,EAAIW,gBAAyB,EAC5mBS,EAAkB,GCYtB,GACAC,KAAAA,mBACAC,MAAAA,CACAZ,UAAAA,CAAAa,KAAAA,OAAAC,QAAAA,IACAC,YAAAA,CAAAF,KAAAA,QAAAC,SAAAA,GACAL,aAAAA,CAAAI,KAAAA,OAAAC,QAAAA,IACAE,YAAAA,CAAAH,KAAAA,OAAAC,QAAAA,IACAb,QAAAA,CAAAY,KAAAA,OAAAC,QAAAA,KAEAG,OACA,OACAC,uBAAAA,EAEA,EACAC,QAAAA,CACAX,gBACA,sDACA,GAEAY,SAAAA,CACAtB,mBACA,mEACA,EACAK,kBACA,mDACA,ICtC+S,I,WCO3SkB,GAAY,OACd,EACAhC,EACAqB,GACA,EACA,KACA,KACA,MAIF,EAAeW,EAAiB,O","sources":["webpack://vero/./src/shared/js/components/ResponsiveIframe.vue?a512","webpack://vero/src/shared/js/components/ResponsiveIframe.vue","webpack://vero/./src/shared/js/components/ResponsiveIframe.vue?8cc2","webpack://vero/./src/shared/js/components/ResponsiveIframe.vue"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isIframeVisible)?_c('div',{staticClass:\"responsive-iframe__wrapper\",class:_vm.aspectRatioClass},[_c('iframe',{attrs:{\"src\":_vm.iframeUrl,\"allowfullscreen\":\"\",\"title\":_vm.altText}})]):_vm._e(),(!_vm.isIframeVisible)?_c('div',{staticClass:\"responsive-iframe__preview\"},[_c('a',{attrs:{\"href\":\"#\",\"aria-label\":_vm.$trans('/accessibility/OpenIframe')},on:{\"click\":function($event){$event.preventDefault();return _vm.iframeClicked($event)}}},[_c('img',{attrs:{\"src\":_vm.previewImage,\"alt\":_vm.altText}})])]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <div class=\"responsive-iframe__wrapper\" :class=\"aspectRatioClass\" v-if=\"isIframeVisible\">\r\n <iframe :src=\"iframeUrl\" allowfullscreen :title=\"altText\"></iframe>\r\n </div>\r\n <div class=\"responsive-iframe__preview\" v-if=\"!isIframeVisible\">\r\n <a href=\"#\" @click.prevent=\"iframeClicked\" :aria-label=\"$trans('/accessibility/OpenIframe')\"\r\n ><img :src=\"previewImage\" :alt=\"altText\"\r\n /></a>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nexport default {\r\n name: 'ResponsiveIframe',\r\n props: {\r\n iframeUrl: { type: String, default: '' },\r\n previewMode: { type: Boolean, default: false },\r\n previewImage: { type: String, default: '' },\r\n aspectRatio: { type: String, default: '' },\r\n altText: { type: String, default: '' }\r\n },\r\n data() {\r\n return {\r\n isPreviewImageClicked: false\r\n };\r\n },\r\n methods: {\r\n iframeClicked() {\r\n this.isPreviewImageClicked = !this.isPreviewImageClicked;\r\n }\r\n },\r\n computed: {\r\n aspectRatioClass() {\r\n return this.aspectRatio === 'AspectRatio43' ? 'responsive-iframe__43' : '';\r\n },\r\n isIframeVisible() {\r\n return !this.previewMode ? true : this.isPreviewImageClicked;\r\n }\r\n }\r\n};\r\n</script>\r\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ResponsiveIframe.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ResponsiveIframe.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ResponsiveIframe.vue?vue&type=template&id=616beb28\"\nimport script from \"./ResponsiveIframe.vue?vue&type=script&lang=js\"\nexport * from \"./ResponsiveIframe.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","class","aspectRatioClass","attrs","iframeUrl","altText","_e","isIframeVisible","$trans","on","$event","preventDefault","iframeClicked","previewImage","staticRenderFns","name","props","type","default","previewMode","aspectRatio","data","isPreviewImageClicked","methods","computed","component"],"sourceRoot":""}