!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function n(t,r,n){var o;return o=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(r,"string"),(r="symbol"==e(o)?o:String(o))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}System.register(["./index-legacy-DF2p3puw.js","./dialog-hooks-legacy-DOFuqomg.js"],(function(e,t){"use strict";var n,o,i,s,l,c,a;return{setters:[function(e){n=e.r,o=e.R,i=e.X,s=e.j,l=e.N},function(e){c=e.c,a=e.u}],execute:function(){function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=n.forwardRef((function(e,r){var n=e.color,i=void 0===n?"currentColor":n,s=e.size,l=void 0===s?24:s,c=u(e,["color","size"]);return o.createElement("svg",t({ref:r,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))}));f.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},f.displayName="X";var p=e("X",f);e("u",c((function(e){var t=e.isOpen,n=void 0!==t&&t,o=e.close,i=e.heading,c=e.subheading,u=e.children,f=e.className,y=e.onClosed,d=a({isOpen:n,onClosed:y,onOpenStart:function(e){setTimeout((function(){e.classList.add("opacity-100"),e.classList.add("translate-y-0")}),0)},onCloseStart:function(e){e.classList.remove("translate-y-0"),e.classList.remove("opacity-100")}}),m=d.dialogProps,b=d.mountDialog,g=d.dialogClassName;return b?s.jsxs("dialog",r(r({},m),{},{className:l(g,"rounded-lg shadow-2xl m-auto p-0 -translate-y-10 opacity-0 transition-[opacity,transform]","grid grid-flow-row grid-rows-[max-content_1fr] h-full",f),children:[s.jsxs("header",{className:"grid grid-flow-col grid-cols-[1fr_30px] pl-6 pr-3 py-4 items-start border-b border-theme-seperator",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-medium",children:i}),c?s.jsx("div",{className:"col-span-2 text-theme-helptext text-sm",children:c}):null]}),s.jsx("button",{onClick:o,className:"text-theme-icon","aria-label":"Close dialog",children:s.jsx(p,{size:24})})]}),u]})):null})))}}}))}();
