1import { p as prop, e as init, i as if_block, b as set_class } from './i18n-dpAHICcw.js'; 2import { R as push, t as template_effect, a as append, T as pop, U as flushSync, W as from_html, V as child, I as deep_read_state, z as untrack, Y as reset } from './index-CDZuCcOm.js'; 3import { I as Image } from './Image-CJziNDBt.js'; 4/* empty css */ 5import './misc-C2MjMwBX.js'; 6/* empty css */ 7 8var root = from_html(`<div><!></div>`); 9 10function Example($$anchor, $$props) { 11 push($$props, false); 12 13 let value = prop($$props, 'value', 12); 14 let type = prop($$props, 'type', 12); 15 let selected = prop($$props, 'selected', 12, false); 16 17 var $$exports = { 18 get value() { 19 return value(); 20 }, 21 22 set value($$value) { 23 value($$value); 24 flushSync(); 25 }, 26 27 get type() { 28 return type(); 29 }, 30 31 set type($$value) { 32 type($$value); 33 flushSync(); 34 }, 35 36 get selected() { 37 return selected(); 38 }, 39 40 set selected($$value) { 41 selected($$value); 42 flushSync(); 43 } 44 }; 45 46 init(); 47 48 var div = root(); 49 let classes; 50 var node = child(div); 51 52 { 53 var consequent = ($$anchor) => { 54 Image($$anchor, { 55 get src() { 56 return (deep_read_state(value()), untrack(() => value().url)); 57 }, 58 alt: '' 59 }); 60 }; 61 62 if_block(node, ($$render) => { 63 if (value()) $$render(consequent); 64 }); 65 } 66 67 reset(div); 68 69 template_effect(() => classes = set_class(div, 1, 'container svelte-bs74gu', null, classes, { 70 table: type() === "table", 71 gallery: type() === "gallery", 72 selected: selected(), 73 border: value() 74 })); 75 76 append($$anchor, div); 77 78 return pop($$exports); 79} 80 81export { Example as default }; 82//# sourceMappingURL=Example-BegbK5fq.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.