Files
est-frame/node_modules/react-player/lazy/props.js
2025-10-22 05:38:27 +00:00

256 lines
5.9 KiB
JavaScript
Executable File

var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var props_exports = {};
__export(props_exports, {
defaultProps: () => defaultProps,
propTypes: () => propTypes
});
module.exports = __toCommonJS(props_exports);
var import_prop_types = __toESM(require("prop-types"));
const { string, bool, number, array, oneOfType, shape, object, func, node } = import_prop_types.default;
const propTypes = {
url: oneOfType([string, array, object]),
playing: bool,
loop: bool,
controls: bool,
volume: number,
muted: bool,
playbackRate: number,
width: oneOfType([string, number]),
height: oneOfType([string, number]),
style: object,
progressInterval: number,
playsinline: bool,
pip: bool,
stopOnUnmount: bool,
light: oneOfType([bool, string, object]),
playIcon: node,
previewTabIndex: number,
previewAriaLabel: string,
fallback: node,
oEmbedUrl: string,
wrapper: oneOfType([
string,
func,
shape({ render: func.isRequired })
]),
config: shape({
soundcloud: shape({
options: object
}),
youtube: shape({
playerVars: object,
embedOptions: object,
onUnstarted: func
}),
facebook: shape({
appId: string,
version: string,
playerId: string,
attributes: object
}),
dailymotion: shape({
params: object
}),
vimeo: shape({
playerOptions: object,
title: string
}),
mux: shape({
attributes: object,
version: string
}),
file: shape({
attributes: object,
tracks: array,
forceVideo: bool,
forceAudio: bool,
forceHLS: bool,
forceSafariHLS: bool,
forceDisableHls: bool,
forceDASH: bool,
forceFLV: bool,
hlsOptions: object,
hlsVersion: string,
dashVersion: string,
flvVersion: string
}),
wistia: shape({
options: object,
playerId: string,
customControls: array
}),
mixcloud: shape({
options: object
}),
twitch: shape({
options: object,
playerId: string
}),
vidyard: shape({
options: object
})
}),
onReady: func,
onStart: func,
onPlay: func,
onPause: func,
onBuffer: func,
onBufferEnd: func,
onEnded: func,
onError: func,
onDuration: func,
onSeek: func,
onPlaybackRateChange: func,
onPlaybackQualityChange: func,
onProgress: func,
onClickPreview: func,
onEnablePIP: func,
onDisablePIP: func
};
const noop = () => {
};
const defaultProps = {
playing: false,
loop: false,
controls: false,
volume: null,
muted: false,
playbackRate: 1,
width: "640px",
height: "360px",
style: {},
progressInterval: 1e3,
playsinline: false,
pip: false,
stopOnUnmount: true,
light: false,
fallback: null,
wrapper: "div",
previewTabIndex: 0,
previewAriaLabel: "",
oEmbedUrl: "https://noembed.com/embed?url={url}",
config: {
soundcloud: {
options: {
visual: true,
// Undocumented, but makes player fill container and look better
buying: false,
liking: false,
download: false,
sharing: false,
show_comments: false,
show_playcount: false
}
},
youtube: {
playerVars: {
playsinline: 1,
showinfo: 0,
rel: 0,
iv_load_policy: 3,
modestbranding: 1
},
embedOptions: {},
onUnstarted: noop
},
facebook: {
appId: "1309697205772819",
version: "v3.3",
playerId: null,
attributes: {}
},
dailymotion: {
params: {
api: 1,
"endscreen-enable": false
}
},
vimeo: {
playerOptions: {
autopause: false,
byline: false,
portrait: false,
title: false
},
title: null
},
mux: {
attributes: {},
version: "2"
},
file: {
attributes: {},
tracks: [],
forceVideo: false,
forceAudio: false,
forceHLS: false,
forceDASH: false,
forceFLV: false,
hlsOptions: {},
hlsVersion: "1.1.4",
dashVersion: "3.1.3",
flvVersion: "1.5.0",
forceDisableHls: false
},
wistia: {
options: {},
playerId: null,
customControls: null
},
mixcloud: {
options: {
hide_cover: 1
}
},
twitch: {
options: {},
playerId: null
},
vidyard: {
options: {}
}
},
onReady: noop,
onStart: noop,
onPlay: noop,
onPause: noop,
onBuffer: noop,
onBufferEnd: noop,
onEnded: noop,
onError: noop,
onDuration: noop,
onSeek: noop,
onPlaybackRateChange: noop,
onPlaybackQualityChange: noop,
onProgress: noop,
onClickPreview: noop,
onEnablePIP: noop,
onDisablePIP: noop
};