import"./Index-IwnOmiU7.js";import{c as b}from"./Blocks-TG5xkcR2.js";import{M as w}from"./Example.svelte_svelte_type_style_lang-BK-adyHR.js";const{SvelteComponent:z,action_destroyer:M,attr:f,create_component:y,destroy_component:j,detach:C,element:q,flush:r,init:x,insert:D,mount_component:E,safe_not_equal:S,toggle_class:o,transition_in:A,transition_out:B}=window.__gradio__svelte__internal,{createEventDispatcher:F}=window.__gradio__svelte__internal;function G(l){let e,s,_,m,u,a,g,d;return s=new w({props:{message:l[2],latex_delimiters:l[7],sanitize_html:l[5],line_breaks:l[6],chatbot:!1,header_links:l[8]}}),{c(){e=q("div"),y(s.$$.fragment),f(e,"class",_="prose "+l[0].join(" ")+" svelte-1yrv54"),f(e,"data-testid","markdown"),f(e,"dir",m=l[4]?"rtl":"ltr"),f(e,"style",u=l[9]?`max-height: ${l[10](l[9])}; overflow-y: auto;`:""),o(e,"min",l[3]),o(e,"hide",!l[1])},m(i,n){D(i,e,n),E(s,e,null),a=!0,g||(d=M(b.call(null,e)),g=!0)},p(i,[n]){const h={};n&4&&(h.message=i[2]),n&128&&(h.latex_delimiters=i[7]),n&32&&(h.sanitize_html=i[5]),n&64&&(h.line_breaks=i[6]),n&256&&(h.header_links=i[8]),s.$set(h),(!a||n&1&&_!==(_="prose "+i[0].join(" ")+" svelte-1yrv54"))&&f(e,"class",_),(!a||n&16&&m!==(m=i[4]?"rtl":"ltr"))&&f(e,"dir",m),(!a||n&512&&u!==(u=i[9]?`max-height: ${i[10](i[9])}; overflow-y: auto;`:""))&&f(e,"style",u),(!a||n&9)&&o(e,"min",i[3]),(!a||n&3)&&o(e,"hide",!i[1])},i(i){a||(A(s.$$.fragment,i),a=!0)},o(i){B(s.$$.fragment,i),a=!1},d(i){i&&C(e),j(s),g=!1,d()}}}function H(l,e,s){let{elem_classes:_=[]}=e,{visible:m=!0}=e,{value:u}=e,{min_height:a=!1}=e,{rtl:g=!1}=e,{sanitize_html:d=!0}=e,{line_breaks:i=!1}=e,{latex_delimiters:n}=e,{header_links:h=!1}=e,{height:c=void 0}=e;const k=F(),v=t=>typeof t=="number"?t+"px":t;return l.$$set=t=>{"elem_classes"in t&&s(0,_=t.elem_classes),"visible"in t&&s(1,m=t.visible),"value"in t&&s(2,u=t.value),"min_height"in t&&s(3,a=t.min_height),"rtl"in t&&s(4,g=t.rtl),"sanitize_html"in t&&s(5,d=t.sanitize_html),"line_breaks"in t&&s(6,i=t.line_breaks),"latex_delimiters"in t&&s(7,n=t.latex_delimiters),"header_links"in t&&s(8,h=t.header_links),"height"in t&&s(9,c=t.height)},l.$$.update=()=>{l.$$.dirty&4&&k("change")},[_,m,u,a,g,d,i,n,h,c,v]}class I extends z{constructor(e){super(),x(this,e,H,G,S,{elem_classes:0,visible:1,value:2,min_height:3,rtl:4,sanitize_html:5,line_breaks:6,latex_delimiters:7,header_links:8,height:9})}get elem_classes(){return this.$$.ctx[0]}set elem_classes(e){this.$$set({elem_classes:e}),r()}get visible(){return this.$$.ctx[1]}set visible(e){this.$$set({visible:e}),r()}get value(){return this.$$.ctx[2]}set value(e){this.$$set({value:e}),r()}get min_height(){return this.$$.ctx[3]}set min_height(e){this.$$set({min_height:e}),r()}get rtl(){return this.$$.ctx[4]}set rtl(e){this.$$set({rtl:e}),r()}get sanitize_html(){return this.$$.ctx[5]}set sanitize_html(e){this.$$set({sanitize_html:e}),r()}get line_breaks(){return this.$$.ctx[6]}set line_breaks(e){this.$$set({line_breaks:e}),r()}get latex_delimiters(){return this.$$.ctx[7]}set latex_delimiters(e){this.$$set({latex_delimiters:e}),r()}get header_links(){return this.$$.ctx[8]}set header_links(e){this.$$set({header_links:e}),r()}get height(){return this.$$.ctx[9]}set height(e){this.$$set({height:e}),r()}}const N=I;export{N as M};
//# sourceMappingURL=Index.svelte_svelte_type_style_lang-DF8PvcSQ.js.map
