carbon-components-svelte/assets/ModalExtraSmall.cfec2867.js
2020-10-02 20:26:53 -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 n,s as a,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.c2c9d961.js";import"./Button.37430222.js";import"./Close20.452e634c.js";import{M as x}from"./Modal.ec0cd758.js";function b(t){let e,n;return{c(){e=u("p"),n=l("Create a new Cloudant database in the US South region.")},l(t){e=m(t,"P",{});var a=$(e);n=f(a,"Create a new Cloudant database in the US South region."),a.forEach(p)},m(t,a){h(t,e,a),C(e,n)},d(t){t&&p(e)}}}function y(t){let e,n;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,a){r(e,t,a),n=!0},p(t,[n]){const a={};16&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i(t){n||(c(e.$$.fragment,t),n=!0)},o(t){i(e.$$.fragment,t),n=!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(),n(this,t,S,y,a,{})}}