{"version":3,"sources":["webpack:///./resources/js/src/app/components/common/BackgroundImg.vue?ee5a","webpack:///./resources/js/src/app/components/common/BackgroundImg.vue?3e11","webpack:///resources/js/src/app/components/common/BackgroundImg.vue","webpack:///./resources/js/src/app/components/common/BackgroundImg.vue"],"names":["render","_h","this","$createElement","_self","_c","class","pictureClass","style","backgroundSource","_withStripped","component","options","__file"],"mappings":"kGAAA,IAAIA,EAAS,WACX,IACIC,EADMC,KACGC,eAEb,OAHUD,KAEGE,MAAMC,IAAMJ,GACf,MAAO,CAAEK,MAHTJ,KAGoBK,aAAcC,MAHlCN,KAG6CO,oBAGzDT,EAAOU,eAAgB,E,mBCP8L,ECSrN,CACE,MACF,CACI,IAAJ,GACI,YAAJ,GACI,aAAJ,IAEE,KAPF,WAQI,MAAJ,CACM,eAAN,IAGE,YAZF,WAaI,IAAJ,OACI,OAAJ,IAAI,EAAJ,YAEM,EAAN,gBAGE,SAAF,CAII,iBAJJ,WAKM,IAAN,SAEQ,OAAR,KAGQ,IAAR,EADM,GAAN,+BAEA,mEACU,MAAV,CAAY,gBAAZ,6BAGM,MAAN,CAAQ,gBAAR,wB,OCpCIC,EAAY,YACd,EACAX,EHHoB,IGKpB,EACA,KACA,KACA,MAuBFW,EAAUC,QAAQC,OAAS,2DACZ,UAAAF,E","file":"chunks/ceres-client-23.min.js","sourcesContent":["var render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _c(\"div\", { class: _vm.pictureClass, style: _vm.backgroundSource })\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BackgroundImg.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BackgroundImg.vue?vue&type=script&lang=js&\"","<template>\n  <div :class=\"pictureClass\"  :style=\"backgroundSource\">\n  </div>\n</template>\n\n<script>\nimport { detectWebP } from \"../../helper/featureDetect\";\nimport { isDefined } from \"../../helper/utils\";\n\nexport default {\n    props:\n    {\n        url: \"\",\n        fallbackUrl: \"\",\n        pictureClass: \"\"\n    },\n    data(){\n        return {\n            supported: undefined\n        }\n    },\n    beforeMount()\n    {\n        detectWebP(((supported) =>\n        {\n            this.supported = supported;\n        }));\n    },\n    computed: {\n        /**\n         *  Determine appropriate image url to use as background source\n         */\n        backgroundSource() {\n            if (!this.url)\n            {\n                return null;\n            }\n            if (isDefined(this.supported))\n            {\n                if (!this.supported && this.fallbackUrl?.length) {\n                    return { backgroundImage: 'url(' + this.fallbackUrl + ')' };\n                }\n            }\n            return { backgroundImage: 'url(' + this.url + ')' };\n        }\n    }\n}\n</script>\n","import { render, staticRenderFns } from \"./BackgroundImg.vue?vue&type=template&id=0570c6a3&\"\nimport script from \"./BackgroundImg.vue?vue&type=script&lang=js&\"\nexport * from \"./BackgroundImg.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/home/runner/work/plugin-ceres/plugin-ceres/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('0570c6a3')) {\n      api.createRecord('0570c6a3', component.options)\n    } else {\n      api.reload('0570c6a3', component.options)\n    }\n    module.hot.accept(\"./BackgroundImg.vue?vue&type=template&id=0570c6a3&\", function () {\n      api.rerender('0570c6a3', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/common/BackgroundImg.vue\"\nexport default component.exports"],"sourceRoot":""}