import{c as e,d as t,b as s,D as n,o as i,E as o,p as r,F as a,l as c,A as l,y as m,G as $,j as p,e as u,g as f,h as g,k as d,m as h,f as k,i as b}from"./chunk.82446879.js";import{g as v,e as x}from"./chunk.f5a3f321.js";import"./chunk.e8a2e241.js";import{a as j}from"./chunk.4b4ee497.js";import"./chunk.b01e898f.js";import{a as w}from"./chunk.fb378401.js";function y(e){let t;return{c(){t=k("Toggle")},l(e){t=b(e,"Toggle")},m(e,s){c(e,t,s)},d(e){e&&p(t)}}}function D(e){let t;return{c(){t=k("Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n      Fusce id fermentum quam. Proin sagittis, nibh id\n      hendrerit imperdiet, elit sapien laoreet elit")},l(e){t=b(e,"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n      Fusce id fermentum quam. Proin sagittis, nibh id\n      hendrerit imperdiet, elit sapien laoreet elit")},m(e,s){c(e,t,s)},d(e){e&&p(t)}}}function F(e){let t,s,k;const b=new v({props:{class:"block",$$slots:{default:[y]},$$scope:{ctx:e}}});b.$on("click",e[1]);const j=new x({props:{active:!e[0],title:"Default",$$slots:{default:[D]},$$scope:{ctx:e}}});return j.$on("close",e[2]),{c(){t=u("div"),n(b.$$.fragment),s=i(),n(j.$$.fragment),this.h()},l(e){t=f(e,"DIV",{slot:!0});var n=g(t);o(b.$$.fragment,n),s=r(n),o(j.$$.fragment,n),n.forEach(p),this.h()},h(){d(t,"slot","preview")},m(e,n){c(e,t,n),a(b,t,null),h(t,s),a(j,t,null),k=!0},p(e,t){const s={};8&t&&(s.$$scope={dirty:t,ctx:e}),b.$set(s);const n={};1&t&&(n.active=!e[0]),8&t&&(n.$$scope={dirty:t,ctx:e}),j.$set(n)},i(e){k||(l(b.$$.fragment,e),l(j.$$.fragment,e),k=!0)},o(e){m(b.$$.fragment,e),m(j.$$.fragment,e),k=!1},d(e){e&&p(t),$(b),$(j)}}}function M(e){let t,s;const u=new j({props:{title:"Message",subtitle:"传递信息的消息块"}}),f=new w({props:{code:'<script>\n  import { Button, Message } from \'svelma-pro\'\n\n  let open\n<\/script>\n\n<Button class="block" on:click={() => open = !open}>Toggle</Button>\n<Message active={!open} title="Default"\n  on:close={active => open = active}>\n  Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n  Fusce id fermentum quam. Proin sagittis, nibh id\n  hendrerit imperdiet, elit sapien laoreet elit\n</Message>',$$slots:{preview:[F]},$$scope:{ctx:e}}});return{c(){n(u.$$.fragment),t=i(),n(f.$$.fragment)},l(e){o(u.$$.fragment,e),t=r(e),o(f.$$.fragment,e)},m(e,n){a(u,e,n),c(e,t,n),a(f,e,n),s=!0},p(e,[t]){const s={};9&t&&(s.$$scope={dirty:t,ctx:e}),f.$set(s)},i(e){s||(l(u.$$.fragment,e),l(f.$$.fragment,e),s=!0)},o(e){m(u.$$.fragment,e),m(f.$$.fragment,e),s=!1},d(e){$(u,e),e&&p(t),$(f,e)}}}function q(e,t,s){let n;return[n,()=>s(0,n=!n),e=>s(0,n=e)]}export default class extends e{constructor(e){super(),t(this,e,q,M,s,{})}}
//# sourceMappingURL=message.91d66577.js.map
