carbon-components-svelte/assets/ModalExtraSmall.1837c0ca.js
2020-10-03 09:06:20 -07:00

1 line
1.2 KiB
JavaScript

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