"use strict"; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; !function i(o, a, r) { function l(n, e) { if (!a[n]) { if (!o[n]) { var t = "function" == typeof require && require; if (!e && t) return t(n, !0); if (s) return s(n, !0); throw (e = new Error("Cannot find module '" + n + "'")).code = "MODULE_NOT_FOUND", e; } t = a[n] = { exports: {} }, o[n][0].call(t.exports, function (e) { var t = o[n][1][e]; return l(t || e); }, t, t.exports, i, o, a, r); } return a[n].exports; } for (var s = "function" == typeof require && require, e = 0; e < r.length; e++) { l(r[e]); }return l; }({ 1: [function (e, t, n) { try { var i = new window.CustomEvent("test"); if (i.preventDefault(), !0 !== i.defaultPrevented) throw new Error("Could not prevent default"); } catch (e) { var o = function o(e, t) { var n, i; return t = t || { bubbles: !1, cancelable: !1, detail: void 0 }, (n = document.createEvent("CustomEvent")).initCustomEvent(e, t.bubbles, t.cancelable, t.detail), i = n.preventDefault, n.preventDefault = function () { i.call(this); try { Object.defineProperty(this, "defaultPrevented", { get: function get() { return !0; } }); } catch (e) { this.defaultPrevented = !0; } }, n; }; o.prototype = window.Event.prototype, window.CustomEvent = o; } }, {}], 2: [function (e, t, n) { "use strict"; function i(e, t) { if (null == e) throw new TypeError("Cannot convert first argument to object"); for (var n = Object(e), i = 1; i < arguments.length; i++) { var o = arguments[i]; if (null != o) for (var a = Object.keys(Object(o)), r = 0, l = a.length; r < l; r++) { var s = a[r], d = Object.getOwnPropertyDescriptor(o, s); void 0 !== d && d.enumerable && (n[s] = o[s]); } } return n; } t.exports = { assign: i, polyfill: function polyfill() { Object.assign || Object.defineProperty(Object, "assign", { enumerable: !1, configurable: !0, writable: !0, value: i }); } }; }, {}], 3: [function (e, t, n) { "use strict"; function i(e) { e.fn.modalVideo = function (e) { return "strings" != typeof e && new o(this, e), this; }; } var o = e("../index"); "function" == typeof define && define.amd ? define(["jquery"], i) : void 0 !== (e = window.jQuery || window.$) && i(e), t.exports = i; }, { "../index": 5 }], 4: [function (e, t, n) { "use strict"; Object.defineProperty(n, "__esModule", { value: !0 }); var i = function i(e, t, n) { return t && o(e.prototype, t), n && o(e, n), e; }; function o(e, t) { for (var n = 0; n < t.length; n++) { var i = t[n]; i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i); } } e("custom-event-polyfill"); var f = e("../lib/util"); var a = e("es6-object-assign").assign, r = { channel: "youtube", facebook: {}, youtube: { autoplay: 1, cc_load_policy: 1, color: null, controls: 1, disablekb: 0, enablejsapi: 0, end: null, fs: 1, h1: null, iv_load_policy: 1, loop: 0, modestbranding: null, mute: 0, origin: null, playsinline: null, rel: 0, showinfo: 1, start: 0, wmode: "transparent", theme: "dark", nocookie: !1 }, ratio: "16:9", vimeo: { api: !1, autopause: !0, autoplay: !0, byline: !0, callback: null, color: null, controls: !0, height: null, loop: !1, maxheight: null, maxwidth: null, muted: !1, player_id: null, portrait: !0, title: !0, width: null, xhtml: !1 }, allowFullScreen: !0, allowAutoplay: !0, animationSpeed: 300, classNames: { modalVideo: "modal-video", modalVideoClose: "modal-video-close", modalVideoBody: "modal-video-body", modalVideoInner: "modal-video-inner", modalVideoIframeWrap: "modal-video-movie-wrap", modalVideoCloseBtn: "modal-video-close-btn" }, aria: { openMessage: "You just openned the modal video", dismissBtnMessage: "Close the modal by clicking here" } }, e = (i(l, [{ key: "getPadding", value: function value(e) { var e = e.split(":"), t = Number(e[0]); return 100 * Number(e[1]) / t + "%"; } }, { key: "getWidthFulfillAspectRatio", value: function value(e, t, n) { var e = e.split(":"), i = Number(e[0]), e = Number(e[1]); return t < n * (e / i) ? Math.floor(i / e * t) + "px" : "100%"; } }, { key: "getQueryString", value: function value(t) { var n = ""; return Object.keys(t).forEach(function (e) { n += e + "=" + t[e] + "&"; }), console.log(n), n.substr(0, n.length - 1); } }, { key: "getVideoUrl", value: function value(e, t, n) { return "youtube" === t ? this.getYoutubeUrl(e.youtube, n) : "vimeo" === t ? this.getVimeoUrl(e.vimeo, n) : "facebook" === t ? this.getFacebookUrl(e.facebook, n) : "custom" === t ? e.url : ""; } }, { key: "getVimeoUrl", value: function value(e, t) { return "//player.vimeo.com/video/" + t + "?" + this.getQueryString(e); } }, { key: "getYoutubeUrl", value: function value(e, t) { var n = this.getQueryString(e); return !0 === e.nocookie ? "//www.youtube-nocookie.com/embed/" + t + "?" + n : "//www.youtube.com/embed/" + t + "?" + n; } }, { key: "getFacebookUrl", value: function value(e, t) { return "//www.facebook.com/v2.10/plugins/video.php?href=https://www.facebook.com/facebook/videos/" + t + "&" + this.getQueryString(e); } }, { key: "getHtml", value: function value(e, t, n) { var i = this.getPadding(e.ratio), o = e.classNames; return '\n