PageSourceSearch

https://sambanovasystems-sambanova-qwen2-5-coder-artifacts.hf.space/assets/ImagePreview-9hRpgOBE.js

js sambanovasystems-sambanova-qwen2-5-coder-artifacts.hf.space collected 2026-10-03 10:22:45 UTC 7,894 bytes, 2 lines download raw bytes

vendor: 7,894 bytes, lines 1-2
1import"./IconButtonWrapper.svelte_svelte_type_style_lang-DAP8_Zsr.js";import{u as Q}from"./utils-BsGrhMNe.js";import"./MarkdownCode.svelte_svelte_type_style_lang-CaEo_I2i.js";import{B as R}from"./BlockLabel-CnzaitFN.js";import{I as L}from"./IconButton-DtUbToT-.js";import{E as U}from"./Empty-CMV1fpYf.js";import{S as X}from"./ShareButton-BhT5Qc-O.js";import{D as Y}from"./Download-DVtk-Jv3.js";import{M as Z,a as y}from"./Minimize-OAHZO2Ge.js";import{I as T}from"./Image-Bsh8Umrh.js";import{I as x}from"./IconButtonWrapper-fdTarNL8.js";import{g as ee}from"./utils-Gtzs_Zla.js";import{I as te}from"./Image-BRVH1yXn.js";import{D as ne}from"./DownloadLink-IzUam-rM.js";import"./index-Ya43XIXp.js";/* empty css                                                   */import"./prism-python-DMUsXzi0.js";import"./Community-Dw1micSV.js";import"./file-url-DgijyRSD.js";import"./context-TgWPFwN2.js";/* empty css                                                   */import"./svelte/svelte.js";const{SvelteComponent:le,append:z,attr:M,binding_callbacks:oe,bubble:V,check_outros:I,create_component:h,destroy_component:w,detach:k,element:F,empty:W,flush:p,group_outros:E,init:re,insert:v,listen:se,mount_component:d,safe_not_equal:ie,space:B,toggle_class:S,transition_in:m,transition_out:b}=window.__gradio__svelte__internal,{createEventDispatcher:ue,onMount:ae}=window.__gradio__svelte__internal;function fe(r){let e,l,t,o,s,u,f,a,_;return l=new x({props:{$$slots:{default:[me]},$$scope:{ctx:r}}}),u=new te({props:{src:r[0].url,alt:"",loading:"lazy"}}),u.$on("load",r[15]),{c(){e=F("div"),h(l.$$.fragment),t=B(),o=F("button"),s=F("div"),h(u.$$.fragment),M(s,"class","image-frame svelte-1kpcxni"),S(s,"selectable",r[4]),M(o,"class","svelte-1kpcxni"),M(e,"class","image-container svelte-1kpcxni")},m(n,i){v(n,e,i),d(l,e,null),z(e,t),z(e,o),z(o,s),d(u,s,null),r[16](e),f=!0,a||(_=se(o,"click",r[10]),a=!0)},p(n,i){const $={};i&262633&&($.$$scope={dirty:i,ctx:n}),l.$set($);const g={};i&1&&(g.src=n[0].url),u.$set(g),(!f||i&16)&&S(s,"selectable",n[4])},i(n){f||(m(l.$$.fragment,n),m(u.$$.fragment,n),f=!0)},o(n){b(l.$$.fragment,n),b(u.$$.fragment,n),f=!1},d(n){n&&k(e),w(l),w(u),r[16](null),a=!1,_()}}}function ce(r){let e,l;return e=new U({props:{unpadded_box:!0,size:"large",$$slots:{default:[be]},$$scope:{ctx:r}}}),{c(){h(e.$$.fragment)},m(t,o){d(e,t,o),l=!0},p(t,o){const s={};o&262144&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function q(r){let e,l;return e=new L({props:{Icon:Z,label:r[8]?"Exit full screen":"View in full screen"}}),e.$on("click",r[11]),{c(){h(e.$$.fragment)},m(t,o){d(e,t,o),l=!0},p(t,o){const s={};o&256&&(s.label=t[8]?"Exit full screen":"View in full screen"),e.$set(s)},i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function C(r){let e,l;return e=new L({props:{Icon:y,label:r[8]?"Exit full screen":"View in full screen"}}),e.$on("click",r[11]),{c(){h(e.$$.fragment)},m(t,o){d(e,t,o),l=!0},p(t,o){const s={};o&256&&(s.label=t[8]?"Exit full screen":"View in full screen"),e.$set(s)},i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function H(r){let e,l;return e=new ne({props:{href:r[0].url,download:r[0].orig_name||"image",$$slots:{default:[_e]},$$scope:{ctx:r}}}),{c(){h(e.$$.fragment)},m(t,o){d(e,t,o),l=!0},p(t,o){const s={};o&1&&(s.href=t[0].url),o&1&&(s.download=t[0].orig_name||"image"),o&262208&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function _e(r){let e,l;return e=new L({props:{Icon:Y,label:r[6]("common.download")}}),{c(){h(e.$$.fragment)},m(t,o){d(e,t,o),l=!0},p(t,o){const s={};o&64&&(s.label=t[6]("common.download")),e.$set(s)},i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function P(r){let e,l;return e=new X({props:{i18n:r[6],formatter:r[12],value:r[0]}}),e.$on("share",r[13]),e.$on("error",r[14]),{c(){h(e.$$.fragment)},m(t,o){d(e,t,o),l=!0},p(t,o){const s={};o&64&&(s.i18n=t[6]),o&1&&(s.value=t[0]),e.$set(s)},i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function me(r){let e,l,t,o,s,u=!r[8]&&r[7]&&q(r),f=r[8]&&r[7]&&C(r),a=r[3]&&H(r),_=r[5]&&P(r);return{c(){u&&u.c(),e=B(),f&&f.c(),l=B(),a&&a.c(),t=B(),_&&_.c(),o=W()},m(n,i){u&&u.m(n,i),v(n,e,i),f&&f.m(n,i),v(n,l,i),a&&a.m(n,i),v(n,t,i),_&&_.m(n,i),v(n,o,i),s=!0},p(n,i){!n[8]&&n[7]?u?(u.p(n,i),i&384&&m(u,1)):(u=q(n),u.c(),m(u,1),u.m(e.parentNode,e)):u&&(E(),b(u,1,1,()=>{u=null}),I()),n[8]&&n[7]?f?(f.p(n,i),i&384&&m(f,1)):(f=C(n),f.c(),m(f,1),f.m(l.parentNode,l)):f&&(E(),b(f,1,1,()=>{f=null}),I()),n[3]?a?(a.p(n,i),i&8&&m(a,1)):(a=H(n),a.c(),m(a,1),a.m(t.parentNode,t)):a&&(E(),b(a,1,1,()=>{a=null}),I()),n[5]?_?(_.p(n,i),i&32&&m(_,1)):(_=P(n),_.c(),m(_,1),_.m(o.parentNode,o)):_&&(E(),b(_,1,1,()=>{_=null}),I())},i(n){s||(m(u),m(f),m(a),m(_),s=!0)},o(n){b(u),b(f),b(a),b(_),s=!1},d(n){n&&(k(e),k(l),k(t),k(o)),u&&u.d(n),f&&f.d(n),a&&a.d(n),_&&_.d(n)}}}function be(r){let e,l;return e=new T({}),{c(){h(e.$$.fragment)},m(t,o){d(e,t,o),l=!0},i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){w(e,t)}}}function ge(r){let e,l,t,o,s,u;e=new R({props:{show_label:r[2],Icon:T,label:r[2]?r[1]||r[6]("image.image"):""}});const f=[ce,fe],a=[];function _(n,i){return n[0]===null||!n[0].url?0:1}return t=_(r),o=a[t]=f[t](r),{c(){h(e.$$.fragment),l=B(),o.c(),s=W()},m(n,i){d(e,n,i),v(n,l,i),a[t].m(n,i),v(n,s,i),u=!0},p(n,[i]){const $={};i&4&&($.show_label=n[2]),i&70&&($.label=n[2]?n[1]||n[6]("image.image"):""),e.$set($);let g=t;t=_(n),t===g?a[t].p(n,i):(E(),b(a[g],1,1,()=>{a[g]=null}),I(),o=a[t],o?o.p(n,i):(o=a[t]=f[t](n),o.c()),m(o,1),o.m(s.parentNode,s))},i(n){u||(m(e.$$.fragment,n),m(o),u=!0)},o(n){b(e.$$.fragment,n),b(o),u=!1},d(n){n&&(k(l),k(s)),w(e,n),a[t].d(n)}}}function he(r,e,l){let{value:t}=e,{label:o=void 0}=e,{show_label:s}=e,{show_download_button:u=!0}=e,{selectable:f=!1}=e,{show_share_button:a=!1}=e,{i18n:_}=e,{show_fullscreen_button:n=!0}=e;const i=ue(),$=c=>{let N=ee(c);N&&i("select",{index:N,value:null})};let g=!1,D;ae(()=>{document.addEventListener("fullscreenchange",()=>{l(8,g=!!document.fullscreenElement)})});const j=async()=>{g?(await document.exitFullscreen(),l(8,g=!g)):await D.requestFullscreen()},A=async c=>c?`<img src="${await Q(c)}" />`:"";function G(c){V.call(this,r,c)}function J(c){V.call(this,r,c)}function K(c){V.call(this,r,c)}function O(c){oe[c?"unshift":"push"](()=>{D=c,l(9,D)})}return r.$$set=c=>{"value"in c&&l(0,t=c.value),"label"in c&&l(1,o=c.label),"show_label"in c&&l(2,s=c.show_label),"show_download_button"in c&&l(3,u=c.show_download_button),"selectable"in c&&l(4,f=c.selectable),"show_share_button"in c&&l(5,a=c.show_share_button),"i18n"in c&&l(6,_=c.i18n),"show_fullscreen_button"in c&&l(7,n=c.show_fullscreen_button)},[t,o,s,u,f,a,_,n,g,D,$,j,A,G,J,K,O]}class We extends le{constructor(e){super(),re(this,e,he,ge,ie,{value:0,label:1,show_label:2,show_download_button:3,selectable:4,show_share_button:5,i18n:6,show_fullscreen_button:7})}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),p()}get label(){return this.$$.ctx[1]}set label(e){this.$$set({label:e}),p()}get show_label(){return this.$$.ctx[2]}set show_label(e){this.$$set({show_label:e}),p()}get show_download_button(){return this.$$.ctx[3]}set show_download_button(e){this.$$set({show_download_button:e}),p()}get selectable(){return this.$$.ctx[4]}set selectable(e){this.$$set({selectable:e}),p()}get show_share_button(){return this.$$.ctx[5]}set show_share_button(e){this.$$set({show_share_button:e}),p()}get i18n(){return this.$$.ctx[6]}set i18n(e){this.$$set({i18n:e}),p()}get show_fullscreen_button(){return this.$$.ctx[7]}set show_fullscreen_button(e){this.$$set({show_fullscreen_button:e}),p()}}export{We as default};
2//# sourceMappingURL=ImagePreview-9hRpgOBE.js.map

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.