mirror of
https://github.com/Ladebeze66/projetcbaollm.git
synced 2025-12-18 22:37:50 +01:00
3 lines
2.8 KiB
JavaScript
3 lines
2.8 KiB
JavaScript
import"./IconButtonWrapper.svelte_svelte_type_style_lang-BOpxTcdu.js";import"./MarkdownCode.svelte_svelte_type_style_lang-3tofWDHK.js";import{I as k}from"./IconButton-B-aAVSzy.js";import{M as y,a as q}from"./Minimize-OAHZO2Ge.js";const{SvelteComponent:C,append:_,attr:l,detach:E,init:F,insert:M,noop:m,safe_not_equal:B,svg_element:f}=window.__gradio__svelte__internal;function S(c){let e,o,t,r;return{c(){e=f("svg"),o=f("rect"),t=f("circle"),r=f("polyline"),l(o,"x","3"),l(o,"y","3"),l(o,"width","18"),l(o,"height","18"),l(o,"rx","2"),l(o,"ry","2"),l(t,"cx","8.5"),l(t,"cy","8.5"),l(t,"r","1.5"),l(r,"points","21 15 16 10 5 21"),l(e,"xmlns","http://www.w3.org/2000/svg"),l(e,"width","100%"),l(e,"height","100%"),l(e,"viewBox","0 0 24 24"),l(e,"fill","none"),l(e,"stroke","currentColor"),l(e,"stroke-width","1.5"),l(e,"stroke-linecap","round"),l(e,"stroke-linejoin","round"),l(e,"class","feather feather-image")},m(n,i){M(n,e,i),_(e,o),_(e,t),_(e,r)},p:m,i:m,o:m,d(n){n&&E(e)}}}class R extends C{constructor(e){super(),F(this,e,null,S,B,{})}}const{SvelteComponent:z,check_outros:p,create_component:v,destroy_component:b,detach:d,empty:N,flush:j,group_outros:g,init:D,insert:$,mount_component:I,noop:x,safe_not_equal:L,space:V,transition_in:a,transition_out:u}=window.__gradio__svelte__internal,{onMount:A,createEventDispatcher:G}=window.__gradio__svelte__internal;function h(c){let e,o;return e=new k({props:{Icon:y,label:"View in full screen"}}),e.$on("click",c[1]),{c(){v(e.$$.fragment)},m(t,r){I(e,t,r),o=!0},p:x,i(t){o||(a(e.$$.fragment,t),o=!0)},o(t){u(e.$$.fragment,t),o=!1},d(t){b(e,t)}}}function w(c){let e,o;return e=new k({props:{Icon:q,label:"Exit full screen"}}),e.$on("click",c[1]),{c(){v(e.$$.fragment)},m(t,r){I(e,t,r),o=!0},p:x,i(t){o||(a(e.$$.fragment,t),o=!0)},o(t){u(e.$$.fragment,t),o=!1},d(t){b(e,t)}}}function H(c){let e,o,t,r=!c[0]&&h(c),n=c[0]&&w(c);return{c(){r&&r.c(),e=V(),n&&n.c(),o=N()},m(i,s){r&&r.m(i,s),$(i,e,s),n&&n.m(i,s),$(i,o,s),t=!0},p(i,[s]){i[0]?r&&(g(),u(r,1,1,()=>{r=null}),p()):r?(r.p(i,s),s&1&&a(r,1)):(r=h(i),r.c(),a(r,1),r.m(e.parentNode,e)),i[0]?n?(n.p(i,s),s&1&&a(n,1)):(n=w(i),n.c(),a(n,1),n.m(o.parentNode,o)):n&&(g(),u(n,1,1,()=>{n=null}),p())},i(i){t||(a(r),a(n),t=!0)},o(i){u(r),u(n),t=!1},d(i){i&&(d(e),d(o)),r&&r.d(i),n&&n.d(i)}}}function J(c,e,o){let{container:t=void 0}=e;const r=G();let n=!1;A(()=>{document.addEventListener("fullscreenchange",()=>{o(0,n=!!document.fullscreenElement),r("fullscreenchange",n)})});const i=async()=>{t&&(n?(await document.exitFullscreen(),o(0,n=!n)):await t.requestFullscreen())};return c.$$set=s=>{"container"in s&&o(2,t=s.container)},[n,i,t]}class T extends z{constructor(e){super(),D(this,e,J,H,L,{container:2})}get container(){return this.$$.ctx[2]}set container(e){this.$$set({container:e}),j()}}export{T as F,R as I};
|
|
//# sourceMappingURL=FullscreenButton-CqFNG1Hv.js.map
|