carbon-components-svelte/assets/ModalExtraSmall.f3623e5f.js
2020-10-02 19:51:57 -07:00

1 line
1.2 KiB
JavaScript

let t=document.createElement("style");t.innerHTML="",document.head.appendChild(t);import{S as e,i as a,s as n,c as o,a as s,m as r,t as c,b as i,d,g as u,h as l,k as m,l as $,n as f,o as p,q as h,r as C,G as g}from"./index.e7d8faec.js";import"./Button.2d988908.js";import"./Close20.3ed6365a.js";import{M as x}from"./Modal.d9ba04e9.js";function b(t){let e,a;return{c(){e=u("p"),a=l("Create a new Cloudant database in the US South region.")},l(t){e=m(t,"P",{});var n=$(e);a=f(n,"Create a new Cloudant database in the US South region."),n.forEach(p)},m(t,n){h(t,e,n),C(e,a)},d(t){t&&p(e)}}}function y(t){let e,a;return e=new x({props:{size:"xs",open:!0,modalHeading:"Create database",primaryButtonText:"Confirm",secondaryButtonText:"Cancel",$$slots:{default:[b]},$$scope:{ctx:t}}}),e.$on("click:button--secondary",t[0]),e.$on("open",t[1]),e.$on("close",t[2]),e.$on("submit",t[3]),{c(){o(e.$$.fragment)},l(t){s(e.$$.fragment,t)},m(t,n){r(e,t,n),a=!0},p(t,[a]){const n={};16&a&&(n.$$scope={dirty:a,ctx:t}),e.$set(n)},i(t){a||(c(e.$$.fragment,t),a=!0)},o(t){i(e.$$.fragment,t),a=!1},d(t){d(e,t)}}}function S(t){return[function(e){g(t,e)},function(e){g(t,e)},function(e){g(t,e)},function(e){g(t,e)}]}export default class extends e{constructor(t){super(),a(this,t,S,y,n,{})}}