mirror of
https://github.com/Ladebeze66/projetcbaollm.git
synced 2025-12-18 19:47:50 +01:00
3 lines
2.9 KiB
JavaScript
3 lines
2.9 KiB
JavaScript
import{V as w}from"./Video-DiLYgEjl.js";import"./index-C7PS0jJm.js";import"./file-url-DgijyRSD.js";import"./context-TgWPFwN2.js";/* empty css */import"./hls-CnVhpNcu.js";import"./svelte/svelte.js";const{SvelteComponent:V,add_flush_callback:q,append:z,attr:A,bind:C,binding_callbacks:E,check_outros:I,create_component:N,destroy_component:S,detach:m,element:h,empty:k,flush:d,group_outros:j,init:B,insert:b,is_function:g,mount_component:D,noop:y,safe_not_equal:F,set_data:G,text:H,toggle_class:_,transition_in:c,transition_out:p}=window.__gradio__svelte__internal;function v(n){let e,t,l,o;const r=[K,J],f=[];function i(s,u){return 0}return e=i(),t=f[e]=r[e](n),{c(){t.c(),l=k()},m(s,u){f[e].m(s,u),b(s,l,u),o=!0},p(s,u){t.p(s,u)},i(s){o||(c(t),o=!0)},o(s){p(t),o=!1},d(s){s&&m(l),f[e].d(s)}}}function J(n){let e,t;return{c(){e=h("div"),t=H(n[2])},m(l,o){b(l,e,o),z(e,t)},p(l,o){o&4&&G(t,l[2])},i:y,o:y,d(l){l&&m(e)}}}function K(n){let e,t,l,o;function r(i){n[6](i)}let f={muted:!0,playsinline:!0,src:n[2]?.video.url,is_stream:!1,loop:n[3]};return n[4]!==void 0&&(f.node=n[4]),t=new w({props:f}),E.push(()=>C(t,"node",r)),t.$on("loadeddata",n[5]),t.$on("mouseover",function(){g(n[4].play.bind(n[4]))&&n[4].play.bind(n[4]).apply(this,arguments)}),t.$on("mouseout",function(){g(n[4].pause.bind(n[4]))&&n[4].pause.bind(n[4]).apply(this,arguments)}),{c(){e=h("div"),N(t.$$.fragment),A(e,"class","container svelte-1de9zxs"),_(e,"table",n[0]==="table"),_(e,"gallery",n[0]==="gallery"),_(e,"selected",n[1])},m(i,s){b(i,e,s),D(t,e,null),o=!0},p(i,s){n=i;const u={};s&4&&(u.src=n[2]?.video.url),s&8&&(u.loop=n[3]),!l&&s&16&&(l=!0,u.node=n[4],q(()=>l=!1)),t.$set(u),(!o||s&1)&&_(e,"table",n[0]==="table"),(!o||s&1)&&_(e,"gallery",n[0]==="gallery"),(!o||s&2)&&_(e,"selected",n[1])},i(i){o||(c(t.$$.fragment,i),o=!0)},o(i){p(t.$$.fragment,i),o=!1},d(i){i&&m(e),S(t)}}}function L(n){let e,t,l=n[2]&&v(n);return{c(){l&&l.c(),e=k()},m(o,r){l&&l.m(o,r),b(o,e,r),t=!0},p(o,[r]){o[2]?l?(l.p(o,r),r&4&&c(l,1)):(l=v(o),l.c(),c(l,1),l.m(e.parentNode,e)):l&&(j(),p(l,1,1,()=>{l=null}),I())},i(o){t||(c(l),t=!0)},o(o){p(l),t=!1},d(o){o&&m(e),l&&l.d(o)}}}function M(n,e,t){let{type:l}=e,{selected:o=!1}=e,{value:r}=e,{loop:f}=e,i;async function s(){t(4,i.muted=!0,i),t(4,i.playsInline=!0,i),t(4,i.controls=!1,i),i.setAttribute("muted",""),await i.play(),i.pause()}function u(a){i=a,t(4,i)}return n.$$set=a=>{"type"in a&&t(0,l=a.type),"selected"in a&&t(1,o=a.selected),"value"in a&&t(2,r=a.value),"loop"in a&&t(3,f=a.loop)},[l,o,r,f,i,s,u]}class X extends V{constructor(e){super(),B(this,e,M,L,F,{type:0,selected:1,value:2,loop:3})}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),d()}get selected(){return this.$$.ctx[1]}set selected(e){this.$$set({selected:e}),d()}get value(){return this.$$.ctx[2]}set value(e){this.$$set({value:e}),d()}get loop(){return this.$$.ctx[3]}set loop(e){this.$$set({loop:e}),d()}}export{X as default};
|
|
//# sourceMappingURL=Example-BOrrc-La.js.map
|