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AE4B,KAAK,MACnE,4BAAAyK,OAA2ByG,GAC3BmG,KAAMjS,GAAS8R,EACf,eAAcC,GAEbD,EAASpa,MAAAkH,cAAA,UAAQC,UAAU,iBAC3BnH,MAAAkH,cAAA,OAAKE,IAAKgT,KACCpa,MAAAkH,cAACI,IAAc,CAACc,MAAO,IAAKwB,SAAUtB,EAAOqB,eAAgB,IAE3E,MAIJ,C","sources":["webpack://video-gallery-block/../block-directory/node_modules/react-dom/client.js","webpack://video-gallery-block/../block-directory/node_modules/react-video-thumbnail/dist/bundle.js","webpack://video-gallery-block/external var \"React\"","webpack://video-gallery-block/external var \"ReactDOM\"","webpack://video-gallery-block/webpack/bootstrap","webpack://video-gallery-block/webpack/runtime/compat get default export","webpack://video-gallery-block/webpack/runtime/define property getters","webpack://video-gallery-block/webpack/runtime/hasOwnProperty shorthand","webpack://video-gallery-block/../Components/utils/getCSS.js","webpack://video-gallery-block/./src/Style.js","webpack://video-gallery-block/./src/VideoGalleryFilter.js","webpack://video-gallery-block/./src/script.js","webpack://video-gallery-block/./src/utils/functions.js"],"sourcesContent":["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","'use strict';\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar React = _interopDefault(require('react'));\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nvar emptyFunction_1 = emptyFunction;\n\nvar emptyFunction$1 = /*#__PURE__*/Object.freeze({\n\tdefault: emptyFunction_1,\n\t__moduleExports: emptyFunction_1\n});\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nvar invariant_1 = invariant;\n\nvar invariant$1 = /*#__PURE__*/Object.freeze({\n\tdefault: invariant_1,\n\t__moduleExports: invariant_1\n});\n\nvar emptyFunction$2 = ( emptyFunction$1 && emptyFunction_1 ) || emptyFunction$1;\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction$2;\n\nif (process.env.NODE_ENV !== 'production') {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nvar warning_1 = warning;\n\nvar warning$1 = /*#__PURE__*/Object.freeze({\n\tdefault: warning_1,\n\t__moduleExports: warning_1\n});\n\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nvar objectAssign = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\nvar objectAssign$1 = /*#__PURE__*/Object.freeze({\n\tdefault: objectAssign,\n\t__moduleExports: objectAssign\n});\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nvar ReactPropTypesSecret_1 = ReactPropTypesSecret;\n\nvar ReactPropTypesSecret$1 = /*#__PURE__*/Object.freeze({\n\tdefault: ReactPropTypesSecret_1,\n\t__moduleExports: ReactPropTypesSecret_1\n});\n\nvar require$$0 = ( invariant$1 && invariant_1 ) || invariant$1;\n\nvar require$$1 = ( warning$1 && warning_1 ) || warning$1;\n\nvar require$$2 = ( ReactPropTypesSecret$1 && ReactPropTypesSecret_1 ) || ReactPropTypesSecret$1;\n\nif (process.env.NODE_ENV !== 'production') {\n var invariant$2 = require$$0;\n var warning$2 = require$$1;\n var ReactPropTypesSecret$2 = require$$2;\n var loggedTypeFailures = {};\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n invariant$2(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);\n } catch (ex) {\n error = ex;\n }\n warning$2(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n warning$2(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');\n }\n }\n }\n }\n}\n\nvar checkPropTypes_1 = checkPropTypes;\n\nvar checkPropTypes$1 = /*#__PURE__*/Object.freeze({\n\tdefault: checkPropTypes_1,\n\t__moduleExports: checkPropTypes_1\n});\n\nvar assign = ( objectAssign$1 && objectAssign ) || objectAssign$1;\n\nvar checkPropTypes$2 = ( checkPropTypes$1 && checkPropTypes_1 ) || checkPropTypes$1;\n\nvar factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== require$$2) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n require$$0(\n false,\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n require$$1(\n false,\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `%s` prop on `%s`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',\n propFullName,\n componentName\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunction$2.thatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', require$$2);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n process.env.NODE_ENV !== 'production' ? require$$1(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;\n return emptyFunction$2.thatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (propValue.hasOwnProperty(key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, require$$2);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? require$$1(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunction$2.thatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n require$$1(\n false,\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received %s at index %s.',\n getPostfixForTypeWarning(checker),\n i\n );\n return emptyFunction$2.thatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, require$$2) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, require$$2);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, require$$2);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes$2;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\nvar factoryWithTypeCheckers$1 = /*#__PURE__*/Object.freeze({\n\tdefault: factoryWithTypeCheckers,\n\t__moduleExports: factoryWithTypeCheckers\n});\n\nvar factoryWithThrowingShims = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === require$$2) {\n // It is still safe when called from React.\n return;\n }\n require$$0(\n false,\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n } shim.isRequired = shim;\n function getShim() {\n return shim;\n } // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim\n };\n\n ReactPropTypes.checkPropTypes = emptyFunction$2;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\nvar factoryWithThrowingShims$1 = /*#__PURE__*/Object.freeze({\n\tdefault: factoryWithThrowingShims,\n\t__moduleExports: factoryWithThrowingShims\n});\n\nvar require$$0$1 = ( factoryWithTypeCheckers$1 && factoryWithTypeCheckers ) || factoryWithTypeCheckers$1;\n\nvar require$$1$1 = ( factoryWithThrowingShims$1 && factoryWithThrowingShims ) || factoryWithThrowingShims$1;\n\nvar propTypes = createCommonjsModule(function (module) {\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n Symbol.for &&\n Symbol.for('react.element')) ||\n 0xeac7;\n\n var isValidElement = function(object) {\n return typeof object === 'object' &&\n object !== null &&\n object.$$typeof === REACT_ELEMENT_TYPE;\n };\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require$$0$1(isValidElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require$$1$1();\n}\n});\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar inherits = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\nvar possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n/**\n * React Video Thumbnail Component\n * @author mike trieu\n */\n\n/**\n * Simple component that renders thumbnail url\n * @param {string} snapshot\n */\nvar ThumbnailImage = function ThumbnailImage(_ref) {\n var snapshot = _ref.snapshot;\n\n return React.createElement(\n 'div',\n { className: 'react-thumbnail-generator' },\n React.createElement('img', { src: snapshot, alt: 'my video thumbnail' })\n );\n};\n\nvar VideoThumbnail = function (_React$Component) {\n inherits(VideoThumbnail, _React$Component);\n\n function VideoThumbnail(props) {\n classCallCheck(this, VideoThumbnail);\n\n var _this = possibleConstructorReturn(this, (VideoThumbnail.__proto__ || Object.getPrototypeOf(VideoThumbnail)).call(this, props));\n\n _this.getSnapShot = function () {\n try {\n var _this$props = _this.props,\n width = _this$props.width,\n height = _this$props.height;\n\n var video = _this.refs.videoEl;\n var canvas = _this.refs.canvas;\n canvas.height = video.videoHeight;\n canvas.width = video.videoWidth;\n\n // resize thumbnail or no ?\n if (!width || !height) {\n canvas.getContext('2d').drawImage(video, 0, 0);\n } else {\n canvas.getContext('2d').drawImage(video, 0, 0, width, height);\n }\n\n var thumbnail = canvas.toDataURL('image/png');\n\n // Remove video & canvas elements (no longer needed)\n video.src = \"\"; // setting to empty string stops video from loading\n video.remove();\n canvas.remove();\n\n _this.setState({\n snapshot: thumbnail\n });\n\n // pass the thumbnail url back to parent component's thumbnail handler (if any)\n if (_this.state.thumbnailHandler) {\n _this.state.thumbnailHandler(thumbnail);\n }\n } catch (e) {\n console.error(e);\n }\n };\n\n _this.state = {\n dataLoaded: false, // boolean\n metadataLoaded: false, // boolean\n seeked: false, // boolean\n snapshot: false, // string thumbnail url || false\n suspended: false, // boolean\n // props\n cors: props.cors, // boolean\n width: props.width, // number\n height: props.height, // number\n renderThumbnail: props.renderThumbnail, // boolean\n snapshotAtTime: props.snapshotAtTime, // number\n thumbnailHandler: props.thumbnailHandler, // callback function\n videoUrl: props.videoUrl // string\n };\n return _this;\n }\n\n createClass(VideoThumbnail, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n renderThumbnail = _state.renderThumbnail,\n snapshot = _state.snapshot,\n videoUrl = _state.videoUrl;\n\n if (!snapshot) {\n return React.createElement(\n 'div',\n { className: 'react-thumbnail-generator' },\n React.createElement('canvas', { className: 'snapshot-generator', ref: 'canvas' }),\n React.createElement('video', { muted: true,\n className: 'snapshot-generator',\n ref: 'videoEl',\n src: videoUrl,\n onLoadedMetadata: function onLoadedMetadata() {\n return _this2.setState({ metadataLoaded: true });\n },\n onLoadedData: function onLoadedData() {\n return _this2.setState({ dataLoaded: true });\n },\n onSuspend: function onSuspend() {\n return _this2.setState({ suspended: true });\n },\n onSeeked: function onSeeked() {\n return _this2.setState({ seeked: true });\n }\n })\n );\n } else {\n if (renderThumbnail) {\n return React.createElement(ThumbnailImage, { snapshot: snapshot });\n } else {\n return null;\n }\n }\n }\n\n /**\n * Update any props that may have changed\n */\n\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n var stateChanged = false;\n var data = {};\n for (var prop in nextProps) {\n if (nextProps[prop] !== this.props[prop]) {\n data[prop] = nextProps[prop];\n if (!stateChanged) {\n stateChanged = true;\n }\n }\n }\n if (stateChanged) {\n this.setState(data);\n }\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (!this.state.cors) this.refs.videoEl.setAttribute('crossOrigin', 'Anonymous');\n // console.log('mount state: ', this.state)\n }\n\n /**\n * (fires every time setState() gets called)\n */\n\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps, prevState) {\n if (!this.state.snapshot) {\n var _state2 = this.state,\n metadataLoaded = _state2.metadataLoaded,\n dataLoaded = _state2.dataLoaded,\n suspended = _state2.suspended,\n seeked = _state2.seeked,\n snapshot = _state2.snapshot,\n snapshotAtTime = _state2.snapshotAtTime;\n\n // check if all 3 required events fired\n\n if (metadataLoaded && dataLoaded && suspended) {\n if (!this.refs.videoEl.currentTime || this.refs.videoEl.currentTime < this.state.snapshotAtTime) {\n this.refs.videoEl.currentTime = snapshotAtTime;\n }\n\n if (seeked && !snapshot) {\n // attempt to generate thumbnail\n this.getSnapShot();\n }\n }\n }\n }\n\n /**\n * Create a canvas and video element to \"draw\" the\n * image, then convert it to a data url\n */\n\n }]);\n return VideoThumbnail;\n}(React.Component);\nVideoThumbnail.propTypes = {\n cors: propTypes.bool,\n width: propTypes.number,\n height: propTypes.number,\n renderThumbnail: propTypes.bool,\n snapshotAtTime: propTypes.number,\n thumbnailHandler: propTypes.func,\n videoUrl: propTypes.string.isRequired\n\n /**\n * Default Properties\n */\n};VideoThumbnail.defaultProps = {\n cors: false,\n renderThumbnail: true,\n snapshotAtTime: 2\n};\n\n/**\n * src/index.js\n * @author mike trieu\n */\n\nmodule.exports = VideoThumbnail;\n","module.exports = React;","module.exports = ReactDOM;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","export const getBackgroundCSS = (bg, isSolid = true, isGradient = true, isImage = true) => {\r\n\tconst { type = 'solid', color = '#000000b3', gradient = 'linear-gradient(135deg, #4527a4, #8344c5)', image = {}, position = 'center center', attachment = 'initial', repeat = 'no-repeat', size = 'cover', overlayColor = '#000000b3' } = bg || {};\r\n\r\n\tconst styles = ('gradient' === type && isGradient) ? `background: ${gradient};` :\r\n\t\t('image' === type && isImage) ?\r\n\t\t\t`background: url(${image?.url});\r\n\t\t\t\tbackground-color: ${overlayColor};\r\n\t\t\t\tbackground-position: ${position};\r\n\t\t\t\tbackground-size: ${size};\r\n\t\t\t\tbackground-repeat: ${repeat};\r\n\t\t\t\tbackground-attachment: ${attachment};\r\n\t\t\t\tbackground-blend-mode: overlay;` :\r\n\t\t\tisSolid && `background: ${color};`;\r\n\r\n\treturn styles;\r\n} // PHP version in Stepped Content\r\n\r\nexport const getBorderCSS = (border) => {\r\n\tconst { width = '0px', style = 'solid', color = '#0000', side = 'all', radius = '0px' } = border || {};\r\n\r\n\tconst borderSideCheck = s => {\r\n\t\tconst bSide = side?.toLowerCase();\r\n\t\treturn bSide?.includes('all') || bSide?.includes(s);\r\n\t}\r\n\r\n\tconst noWidth = width === '0px' || !width;\r\n\tconst borderCSS = `${width} ${style} ${color}`;\r\n\r\n\tconst styles = `\r\n\t\t${noWidth ? '' : ['top', 'right', 'bottom', 'left'].map(side => borderSideCheck(side) ? `border-${side}: ${borderCSS};` : '').join('')}\r\n\t\t${!radius ? '' : `border-radius: ${radius};`}\r\n\t`;\r\n\r\n\treturn styles;\r\n}\r\n\r\nexport const getColorsCSS = (colors) => {\r\n\tconst { color = '#333', bgType = 'solid', bg = '#0000', gradient = 'linear-gradient(135deg, #4527a4, #8344c5)' } = colors || {};\r\n\r\n\tconst styles = `\r\n\t\t${color ? `color: ${color};` : ''}\r\n\t\t${gradient || bg ? `background: ${'gradient' === bgType ? gradient : bg};` : ''}\r\n\t`;\r\n\r\n\treturn styles;\r\n}\r\n\r\nexport const getIconCSS = (icon, isSize = true, isColor = true) => {\r\n\tconst { fontSize = 16, colorType = 'solid', color = 'inherit', gradient = 'linear-gradient(135deg, #4527a4, #8344c5)' } = icon || {};\r\n\r\n\tconst colorCSS = 'gradient' === colorType ?\r\n\t\t`color: transparent; background-image: ${gradient}; -webkit-background-clip: text; background-clip: text;` :\r\n\t\t`color: ${color};`;\r\n\r\n\tconst styles = `\r\n\t\t${!fontSize || !isSize ? '' : `font-size: ${fontSize}px;`}\r\n\t\t${isColor ? colorCSS : ''}\r\n\t`;\r\n\r\n\treturn styles;\r\n}\r\n\r\nexport const getMultiShadowCSS = (value, type = 'box') => {\r\n\tlet styles = '';\r\n\r\n\tvalue?.map((item, index) => {\r\n\t\tconst { hOffset = '0px', vOffset = '0px', blur = '0px', spreed = '0px', color = '#7090b0', isInset = false } = item || {};\r\n\r\n\t\tconst inset = isInset ? 'inset' : '';\r\n\t\tconst offsetBlur = `${hOffset} ${vOffset} ${blur}`;\r\n\t\tconst isComa = index + 1 >= value.length ? '' : ', ';\r\n\r\n\t\tstyles += 'text' === type ? `${offsetBlur} ${color}${isComa}` : `${offsetBlur} ${spreed} ${color} ${inset}${isComa}`;\r\n\t});\r\n\r\n\treturn styles || 'none';\r\n}\r\n\r\nexport const getSeparatorCSS = (separator) => {\r\n\tconst { width = '50%', height = '2px', style = 'solid', color = '#bbb' } = separator || {};\r\n\r\n\tconst styles = `\r\n\t\twidth: ${width};\r\n\t\t${'0px' === height && '0em' === height && '0rem' === height ? '' : `border-top: ${height} ${style} ${color};`}\r\n\t`;\r\n\r\n\treturn styles;\r\n}\r\n\r\nexport const getShadowCSS = (shadow) => {\r\n\tconst { type = 'box', hOffset = '0px', vOffset = '0px', blur = '0px', spreed = '0px', color = '#7090b0', isInset = false } = shadow || {};\r\n\r\n\tconst inset = isInset ? 'inset' : '';\r\n\tconst offsetBlur = `${hOffset} ${vOffset} ${blur}`;\r\n\r\n\tconst styles = 'text' === type ? `${offsetBlur} ${color}` : `${offsetBlur} ${spreed} ${color} ${inset}`;\r\n\r\n\treturn styles || 'none';\r\n}\r\n\r\nexport const getSpaceCSS = (space) => {\r\n\tconst { side = 2, vertical = '0px', horizontal = '0px', top = '0px', right = '0px', bottom = '0px', left = '0px' } = space || {};\r\n\r\n\tconst styles = 2 === side ? `${vertical} ${horizontal}` : `${top} ${right} ${bottom} ${left}`;\r\n\r\n\treturn styles;\r\n}\r\n\r\nexport const getTypoCSS = (selector, typo, isFamily = true) => {\r\n\tconst { fontFamily = 'Default', fontCategory = 'sans-serif', fontVariant = 400, fontWeight = 400, isUploadFont = true, fontSize = { desktop: 15, tablet: 15, mobile: 15 }, fontStyle = 'normal', textTransform = 'none', textDecoration = 'auto', lineHeight = '135%', letterSpace = '0px' } = typo || {};\r\n\r\n\tconst generateCss = (value, cssProperty) => !value ? '' : `${cssProperty}: ${value};`;\r\n\r\n\tconst isEmptyFamily = !isFamily || !fontFamily || 'Default' === fontFamily;\r\n\tconst desktopFontSize = fontSize?.desktop || fontSize;\r\n\tconst tabletFontSize = fontSize?.tablet || desktopFontSize;\r\n\tconst mobileFontSize = fontSize?.mobile || tabletFontSize;\r\n\r\n\tconst styles = `\r\n\t\t${isEmptyFamily ? '' : `font-family: '${fontFamily}', ${fontCategory};`}\r\n\t\t${generateCss(fontWeight, 'font-weight')}\r\n\t\t${`font-size: ${desktopFontSize}px;`}\r\n\t\t${generateCss(fontStyle, 'font-style')}\r\n\t\t${generateCss(textTransform, 'text-transform')}\r\n\t\t${generateCss(textDecoration, 'text-decoration')}\r\n\t\t${generateCss(lineHeight, 'line-height')}\r\n\t\t${generateCss(letterSpace, 'letter-spacing')}\r\n\t`;\r\n\r\n\t// Google font link\r\n\tconst linkQuery = !fontVariant || 400 === fontVariant ? '' : '400i' === fontVariant ? ':ital@1' : fontVariant?.includes('00i') ? `: ital, wght@1, ${fontVariant?.replace('00i', '00')} ` : `: wght@${fontVariant} `;\r\n\r\n\tconst link = isEmptyFamily ? '' : `https://fonts.googleapis.com/css2?family=${fontFamily?.split(' ').join('+')}${linkQuery.replace(/ /g, '')}&display=swap`;\r\n\r\n\treturn {\r\n\t\tgoogleFontLink: !isUploadFont || isEmptyFamily ? '' : `@import url(${link});`,\r\n\t\tstyles: `${selector}{\r\n\t\t\t${styles}\r\n\t\t}\r\n\t\t@media (max-width: 768px) {\r\n\t\t\t${selector}{\r\n\t\t\t\t${`font-size: ${tabletFontSize}px;`}\r\n\t\t\t}\r\n\t\t}\r\n\t\t@media (max-width: 576px) {\r\n\t\t\t${selector}{\r\n\t\t\t\t${`font-size: ${mobileFontSize}px;`}\r\n\t\t\t}\r\n\t\t}`.replace(/\\s+/g, ' ').trim()\r\n\t}\r\n}\r\n\r\nexport const getBoxCSS = (val = {}) => Object.values(val).join(' ');","import { getBackgroundCSS, getBorderCSS, getColorsCSS, getMultiShadowCSS, getSpaceCSS, getTypoCSS } from '../../Components/utils/getCSS';\r\n\r\nconst Style = ({ attributes, clientId, itemWidth }) => {\r\n\tconst { columnGap, rowGap, isPopupWidthAsRatio, background, padding, border, shadow, filterBtnTypo, filterBtnColors, filterBtnHoverColors, itemHeight } = attributes;\r\n\r\n\tconst videoGallerySl = `#vgbVideoGallery-${clientId} .vgbVideoGallery`;\r\n\tconst buttonSl = `${videoGallerySl} .filter button`;\r\n\tconst fancyMainSl = `.vgbFancyBox-${clientId}`;\r\n\r\n\treturn <style dangerouslySetInnerHTML={{\r\n\t\t__html: `\r\n\t\t${getTypoCSS('', filterBtnTypo)?.googleFontLink}\r\n\t\t${getTypoCSS(buttonSl, filterBtnTypo)?.styles}\r\n\r\n\t\t${videoGallerySl}{\r\n\t\t\t${getBackgroundCSS(background)}\r\n\t\t\tpadding: ${getSpaceCSS(padding)};\r\n\t\t\t${getBorderCSS(border)}\r\n\t\t\tbox-shadow: ${shadow ? getMultiShadowCSS(shadow) : '0px 25px 30px -20px #0003'};\r\n\t\t}\r\n\t\t${buttonSl}{\r\n\t\t\t${getColorsCSS(filterBtnColors)}\r\n\t\t}\r\n\t\t${buttonSl}:hover,\r\n\t\t${buttonSl}.current{\r\n\t\t\t${getColorsCSS(filterBtnHoverColors)}\r\n\t\t}\r\n\t\t${videoGallerySl} .vgbColumnSizer {\r\n\t\t\tgrid-column-gap: ${columnGap}px;\r\n\t\t}\r\n\t\t${videoGallerySl} .videoGallery .galleryItem{\r\n\t\t\twidth: ${itemWidth}px;\r\n\t\t\theight: ${itemHeight};\r\n\t\t\tmargin-bottom: ${rowGap}px;\r\n\t\t}\r\n\r\n\t\t${isPopupWidthAsRatio ? `\r\n\t\t\t${fancyMainSl} .fancybox-content{\r\n\t\t\t\tbackground: #0000 !important;\r\n\t\t\t}\r\n\t\t\t${fancyMainSl} .plyr{\r\n\t\t\t\twidth: fit-content;\r\n\t\t\t}\r\n\t\t\t${fancyMainSl} .plyr .plyr__controls{\r\n\t\t\t\tjustify-content: flex-start;\r\n\t\t\t}\r\n\t\t` : ''}\r\n\t\t`.replace(/\\s+/g, ' ')\r\n\t}} />\r\n}\r\nexport default Style;","import { useEffect, useRef } from 'react';\r\nconst $ = jQuery;\r\n\r\nconst VideoGalleryFilter = ({ attributes, clientId, itemWidth, setItemWidth }) => {\r\n\tconst { align, albums, videos, columns, columnGap, rowGap, filter = { show: true, commonLabel: 'All Videos' }, padding, border, itemHeight } = attributes;\r\n\r\n\tconst vgbColumn = useRef(null);\r\n\r\n\tuseEffect(() => {\r\n\t\tsetItemWidth(vgbColumn.current.clientWidth);\r\n\t}, [vgbColumn.current, align, columns, columnGap, rowGap, padding, border]);\r\n\r\n\t// Icotope\r\n\tuseEffect(() => {\r\n\t\tconst isoOptions = {\r\n\t\t\tfilter: '*',\r\n\t\t\titemSelector: '.galleryItem',\r\n\t\t\tmasonry: {\r\n\t\t\t\tfitWidth: true, // When enabled, you can center the container with CSS.\r\n\t\t\t\tgutter: columnGap\r\n\t\t\t},\r\n\t\t\tstagger: 30,\r\n\t\t\ttransitionDuration: '0.5s'\r\n\t\t}\r\n\r\n\t\tconst vgbIso = $(`#videoGallery-${clientId}`).isotope(isoOptions);\r\n\t\tvgbIso.isotope('destroy');\r\n\t\tvgbIso.isotope(isoOptions);\r\n\r\n\t\t// Filter items on button click\r\n\t\t$(`#filter-${clientId}`).on('click', 'button', function () {\r\n\t\t\t$(`#filter-${clientId} .current`).removeClass('current');\r\n\t\t\t$(this).addClass('current');\r\n\r\n\t\t\tconst filterValue = $(this).attr('data-filter');\r\n\t\t\tvgbIso.isotope({ ...isoOptions, filter: filterValue });\r\n\t\t});\r\n\t}, [align, videos?.length, columns, columnGap, rowGap, itemHeight, itemWidth, padding, border]);\r\n\r\n\treturn <>\r\n\t\t<div id={`filter-${clientId}`} className='filter'>\r\n\t\t\t<button data-filter='*' className='current'>{filter?.commonLabel}</button>\r\n\t\t\t{albums?.map(alb => <button key={lodash.camelCase(alb)} data-filter={`.${lodash.camelCase(alb)}`}>{alb}</button>)}\r\n\t\t</div>\r\n\r\n\t\t<div className={`vgbColumnSizer columns-${columns.desktop} columns-tablet-${columns.tablet} columns-mobile-${columns.mobile}`}>\r\n\t\t\t<div className='vgbColumn' ref={vgbColumn}></div>\r\n\t\t</div>\r\n\t</>\r\n}\r\nexport default VideoGalleryFilter;","import { useState, useEffect } from 'react';\r\nimport { createRoot } from 'react-dom/client';\r\nimport VideoThumbnail from 'react-video-thumbnail';\r\nconst $ = jQuery;\r\n\r\nimport './style.scss';\r\nimport Style from './Style';\r\nimport VideoGalleryFilter from './VideoGalleryFilter';\r\nimport { controlsHandler } from './utils/functions';\r\n\r\n// Video Gallery\r\ndocument.addEventListener('DOMContentLoaded', () => {\r\n\tconst galleryEls = document.querySelectorAll('.wp-block-vgb-video-gallery');\r\n\tgalleryEls.forEach(galleryEl => {\r\n\t\tconst attributes = JSON.parse(galleryEl.dataset.attributes);\r\n\r\n\t\tcreateRoot(galleryEl).render(<RenderVideoGallery attributes={attributes} clientId={attributes.cId} />);\r\n\r\n\t\tgalleryEl?.removeAttribute('data-attributes');\r\n\t});\r\n});\r\n\r\nconst RenderVideoGallery = ({ attributes, clientId }) => {\r\n\tconst { videos } = attributes;\r\n\r\n\tconst [itemWidth, setItemWidth] = useState('');\r\n\r\n\tuseEffect(() => {\r\n\t\t// Initial fancybox\r\n\t\t$('.galleryItem').fancybox({\r\n\t\t\tbaseClass: `vgbFancyBox vgbFancyBox-${clientId}`,\r\n\t\t\tbuttons: [\r\n\t\t\t\t'slideShow',\r\n\t\t\t\t// 'thumbs',\r\n\t\t\t\t// 'zoom',\r\n\t\t\t\t// 'fullScreen',\r\n\t\t\t\t// 'share',\r\n\t\t\t\t'close'\r\n\t\t\t],\r\n\t\t\tloop: false,\r\n\t\t\tprotect: true,\r\n\t\t\tafterShow: () => {\r\n\t\t\t\t// Initial Plyr after fancybox popup display\r\n\t\t\t\tnew Plyr(`.vgbFancyBox-${clientId} .fancybox-video`, {\r\n\t\t\t\t\tcontrols: controlsHandler({\r\n\t\t\t\t\t\t'play-large': true,\r\n\t\t\t\t\t\trestart: false,\r\n\t\t\t\t\t\trewind: true,\r\n\t\t\t\t\t\tplay: true,\r\n\t\t\t\t\t\t'fast-forward': true,\r\n\t\t\t\t\t\tprogress: true,\r\n\t\t\t\t\t\t'current-time': true,\r\n\t\t\t\t\t\tduration: false,\r\n\t\t\t\t\t\tmute: true,\r\n\t\t\t\t\t\tvolume: true,\r\n\t\t\t\t\t\tpip: false,\r\n\t\t\t\t\t\tairplay: false,\r\n\t\t\t\t\t\tsettings: true,\r\n\t\t\t\t\t\tdownload: false,\r\n\t\t\t\t\t\tfullscreen: true\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tclickToPlay: false,\r\n\t\t\t\t\tloop: { active: false },\r\n\t\t\t\t\tmuted: false,\r\n\t\t\t\t\tautoplay: false,\r\n\t\t\t\t\tresetOnEnd: false,\r\n\t\t\t\t\thideControls: true,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t}, []);\r\n\r\n\treturn <>\r\n\t\t<Style attributes={attributes} clientId={clientId} itemWidth={itemWidth} />\r\n\r\n\t\t<div className='vgbVideoGallery'>\r\n\t\t\t<VideoGalleryFilter attributes={attributes} clientId={clientId} itemWidth={itemWidth} setItemWidth={setItemWidth} />\r\n\r\n\t\t\t<div id={`videoGallery-${clientId}`} className='videoGallery'>\r\n\t\t\t\t{videos?.map((item, index) => {\r\n\t\t\t\t\tconst { video, poster, caption, albs } = item;\r\n\r\n\t\t\t\t\treturn <a\r\n\t\t\t\t\t\tkey={index}\r\n\t\t\t\t\t\tclassName={`galleryItem ${albs?.map(c => lodash.camelCase(c)).join(' ')}`}\r\n\t\t\t\t\t\tdata-fancybox={`fancybox-${clientId}`}\r\n\t\t\t\t\t\thref={video || poster}\r\n\t\t\t\t\t\tdata-caption={caption}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{poster ? <figure className='galleryFigure'>\r\n\t\t\t\t\t\t\t<img src={poster} />\r\n\t\t\t\t\t\t</figure> : <VideoThumbnail width={600} videoUrl={video} snapshotAtTime={2} />}\r\n\t\t\t\t\t</a>;\r\n\t\t\t\t})}\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</>\r\n}","export const controlsHandler = (controls) => {\r\n\tconst newControls = [];\r\n\tObject.keys(controls).map(item => {\r\n\t\tif (controls[item]) {\r\n\t\t\tnewControls.push(item);\r\n\t\t}\r\n\t});\r\n\treturn newControls;\r\n};"],"names":["m","exports","createRoot","hydrateRoot","ex","React","makeEmptyFunction","arg","emptyFunction","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsNull","thatReturnsThis","this","thatReturnsArgument","emptyFunction_1","emptyFunction$1","Object","freeze","default","__moduleExports","invariant_1","condition","format","a","b","c","d","e","f","error","undefined","Error","args","argIndex","replace","name","framesToPop","invariant$1","emptyFunction$2","getOwnPropertySymbols","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","map","n","join","test3","split","forEach","letter","keys","err","shouldUseNative","ReactPropTypesSecret_1","ReactPropTypesSecret$1","require$$0","require$$2","factoryWithThrowingShims","shim","props","propName","componentName","location","propFullName","secret","getShim","isRequired","ReactPropTypes","array","bool","func","number","object","string","symbol","any","arrayOf","element","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","factoryWithThrowingShims$1","require$$1$1","propTypes","fn","module","createCommonjsModule","createClass","defineProperties","target","length","descriptor","enumerable","configurable","writable","defineProperty","key","Constructor","protoProps","staticProps","ThumbnailImage","_ref","snapshot","createElement","className","src","alt","VideoThumbnail","_React$Component","instance","TypeError","classCallCheck","_this","self","call","ReferenceError","possibleConstructorReturn","__proto__","getPrototypeOf","getSnapShot","_this$props","width","height","video","refs","videoEl","canvas","videoHeight","videoWidth","getContext","drawImage","thumbnail","toDataURL","remove","setState","state","thumbnailHandler","console","dataLoaded","metadataLoaded","seeked","suspended","cors","renderThumbnail","snapshotAtTime","videoUrl","subClass","superClass","create","constructor","value","setPrototypeOf","inherits","_this2","_state","ref","muted","onLoadedMetadata","onLoadedData","onSuspend","onSeeked","nextProps","stateChanged","data","prop","setAttribute","prevProps","prevState","_state2","currentTime","Component","defaultProps","ReactDOM","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","__esModule","definition","o","get","obj","getBackgroundCSS","bg","isSolid","arguments","isGradient","isImage","_ref$type","type","_ref$color","color","_ref$gradient","gradient","_ref$image","image","_ref$position","position","_ref$attachment","attachment","_ref$repeat","repeat","_ref$size","size","_ref$overlayColor","overlayColor","concat","url","getBorderCSS","border","_ref2","_ref2$width","_ref2$style","style","_ref2$color","_ref2$side","side","_ref2$radius","radius","borderSideCheck","s","bSide","toLowerCase","includes","noWidth","borderCSS","styles","getColorsCSS","colors","_ref3","_ref3$color","_ref3$bgType","bgType","_ref3$bg","_ref3$gradient","getMultiShadowCSS","item","index","_ref5","_ref5$hOffset","hOffset","_ref5$vOffset","vOffset","_ref5$blur","blur","_ref5$spreed","spreed","_ref5$color","_ref5$isInset","isInset","inset","offsetBlur","isComa","getTypoCSS","selector","typo","isFamily","_ref9","_ref9$fontFamily","fontFamily","_ref9$fontCategory","fontCategory","_ref9$fontVariant","fontVariant","_ref9$fontWeight","fontWeight","_ref9$isUploadFont","isUploadFont","_ref9$fontSize","fontSize","desktop","tablet","mobile","_ref9$fontStyle","fontStyle","_ref9$textTransform","textTransform","_ref9$textDecoration","textDecoration","_ref9$lineHeight","lineHeight","_ref9$letterSpace","letterSpace","generateCss","cssProperty","isEmptyFamily","desktopFontSize","tabletFontSize","mobileFontSize","linkQuery","link","googleFontLink","trim","_getTypoCSS","_getTypoCSS2","space","_ref8","_ref8$side","_ref8$vertical","vertical","_ref8$horizontal","horizontal","_ref8$top","top","_ref8$right","right","_ref8$bottom","bottom","_ref8$left","left","attributes","clientId","itemWidth","columnGap","rowGap","isPopupWidthAsRatio","background","padding","shadow","filterBtnTypo","filterBtnColors","filterBtnHoverColors","itemHeight","videoGallerySl","buttonSl","fancyMainSl","dangerouslySetInnerHTML","__html","$","jQuery","setItemWidth","align","albums","videos","columns","_attributes$filter","filter","show","commonLabel","vgbColumn","useRef","useEffect","current","clientWidth","isoOptions","itemSelector","masonry","fitWidth","gutter","stagger","transitionDuration","vgbIso","isotope","on","removeClass","addClass","filterValue","attr","_objectSpread","Fragment","id","alb","lodash","camelCase","document","addEventListener","querySelectorAll","galleryEl","JSON","parse","dataset","render","RenderVideoGallery","cId","removeAttribute","_useState2","_slicedToArray","useState","fancybox","baseClass","buttons","loop","protect","afterShow","controls","newControls","Plyr","restart","rewind","play","progress","duration","mute","volume","pip","airplay","settings","download","fullscreen","push","clickToPlay","active","autoplay","resetOnEnd","hideControls","Style","VideoGalleryFilter","poster","caption","albs","href"],"sourceRoot":""}