{"version":3,"sources":["jsdelivr-header.js","/npm/vue-youtube-iframe-gene@0.1.0/src/main.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNS,UAAW,UAAa,kBAC1B,WAAY,sBAEnB,MAAM,OAAS,CACb,OAAA,CAAS,GAAK,MAAC,EAAK,OAAE,EAAM,cAAE,GAAgB,GAAQ,CAAC,GACrD,QAAQ,IAAI,OACR,GAAS,EAAQ,UAAU,QAC7B,MAAM,MAAQ,GAGZ,GAAU,EAAS,UAAU,SAC/B,MAAM,OAAS,GAIjB,MAAM,EAAM,SAAS,cAAc,UACnC,EAAI,IAAM,qCAEV,MAAM,EAAe,SAAS,qBAAqB,UAAU,GAC7D,EAAa,WAAW,aAAa,EAAK,GAG1C,GAAiB,EAAI,UAAU,cAAe,OAChD,GAGoB,mBAAf,OAAO,KAAsB,OAAO,IAAI,IAAI,uBAEpC,cAEb","file":"/npm/vue-youtube-iframe-gene@0.1.0/src/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/vue-youtube-iframe-gene@0.1.0/src/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { MIN_SIZES, SIZES } from './config'\r\nimport Player from './components/Player'\r\n\r\nconst plugin = {\r\n  install (Vue, {width, height, loadComponent = true} = {}) {\r\n    console.log('yes')\r\n    if (width && width > MIN_SIZES.WIDTH) {\r\n      SIZES.WIDTH = width\r\n    }\r\n\r\n    if (height && height > MIN_SIZES.HEIGHT) {\r\n      SIZES.HEIGHT = height\r\n    }\r\n\r\n    // load iframe api\r\n    const tag = document.createElement('script')\r\n    tag.src = 'https://www.youtube.com/iframe_api'\r\n\r\n    const first_script = document.getElementsByTagName('script')[0]\r\n    first_script.parentNode.insertBefore(tag, first_script)\r\n\r\n    // load component globally\r\n    loadComponent && Vue.component('VytiaPlayer', Player)\r\n  }\r\n}\r\n\r\ntypeof window.Vue === 'function' && window.Vue.use(plugin) \r\n\r\nexport default plugin\r\nexport {\r\n  Player\r\n}\r\n"]}