1import{m as P,i as O,N as v}from"./atlas-e4733cd3.js";import{v as j}from"./react-de6ab386.js";import"./howler-0e133350.js";import"./emotion-995b0316.js";import"./reactSpring-d9faa63d.js";import"./misc-9daf13f0.js";import"./zustand-4995811c.js";import"./supabase-84ccf5ef.js";function D(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const n=Object.getOwnPropertyDescriptor(a,o);n&&Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,T=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},y=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of _(e))!S.call(t,o)&&o!==r&&s(t,o,{get:()=>e[o],enumerable:!(a=w(e,o))||a.enumerable});return t},E=(t,e,r)=>(r=t!=null?M(T(t)):{},y(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),N=t=>y(s({},"__esModule",{value:!0}),t),i=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),d={};C(d,{default:()=>p});var m=N(d),c=E(j),l=P,f=O;const k="https://api.dmcdn.net/all.js",I="DM",L="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),i(this,"callPlayer",l.callPlayer),i(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),i(this,"mute",()=>{this.callPlayer("setMuted",!0)}),i(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:a,onError:o,playing:n}=this.props,[,h]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(h,{start:(0,l.parseStartTime)(e),autoplay:n});return}(0,l.getSDK)(k,I,L,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:h,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...a.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:b=>o(b)}})},o)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}i(p,"displayName","DailyMotion");i(p,"canPlay",f.canPlay.dailymotion);i(p,"loopOnEnded",!0);const x=v(m),q=D({__proto__:null,default:x},[m]);export{q as D};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.