!function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define("UiBottomSheet",["vue"],t):"object"===typeof exports?exports.UiBottomSheet=t(require("vue")):e.UiBottomSheet=t(e.Vue)}("undefined"!==typeof self?self:this,(function(e){return function(){"use strict";var t={996:function(e){var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,r){return e.concat(t).map((function(e){return o(e,r)}))}function c(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(r){return!1}}function a(e,t,r){var n={};return r.isMergeableObject(e)&&c(e).forEach((function(t){n[t]=o(e[t],r)})),c(t).forEach((function(c){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,c)||(i(e,c)&&r.isMergeableObject(t[c])?n[c]=function(e,t){if(!t.customMerge)return u;var r=t.customMerge(e);return"function"===typeof r?r:u}(c,r)(e[c],t[c],r):n[c]=o(t[c],r))})),n}function u(e,r,c){(c=c||{}).arrayMerge=c.arrayMerge||n,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(r);return i===Array.isArray(e)?i?c.arrayMerge(e,r,c):a(e,r,c):o(r,c)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return u(e,r,t)}),{})};var s=u;e.exports=s},895:function(t){t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var c=r[e]={exports:{}};return t[e](c,c.exports,o),c.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var n={};return function(){o.d(n,{default:function(){return d}});var e=o(996),t=o.n(e);const r=/(?:^\[object\s(.*?)\]$)/;var c=e=>Object.prototype.toString.call(e).replace(r,"$1").toLowerCase();const i=e=>{let{componentProps:r,propName:o,props:n}=e,i=n[o];if("object"===c(i)){const e=r[o].default;r[o].default=()=>t()(e,i)}else Array.isArray(i)?r[o].default=()=>i:r[o].default=i},a=e=>{let{componentMixins:t,propName:r,props:o}=e;if(t.length){let e=t.length;for(;e--;)if(t[e].props&&void 0!==t[e].props[r]){i({componentProps:t[e].props,propName:r,props:o});break}}};var u=(e,t)=>{for(const r of Object.keys(t))e.props?void 0===e.props[r]?a({componentMixins:e.mixins,propName:r,props:t}):i({componentProps:e.props,propName:r,props:t}):a({componentMixins:e.mixins,propName:r,props:t})};var s=e=>{const t={install(t){u(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),t.component(e.name,e)}};return t},p=o(895);const l={key:0,class:"mdc-bottom-sheet__content"},f={EVENTS:{CHANGE:"update:modelValue"}},m={name:"UiBottomSheet",customOptions:{UI_BOTTOM_SHEET:f}};var d=s(Object.assign(m,{props:{modelValue:{type:Boolean,default:!1}},emits:[f.EVENTS.CHANGE],setup(e,t){let{emit:r}=t;const o=e,n=(0,p.reactive)({closing:!1}),c=(0,p.computed)((()=>({"mdc-bottom-sheet":!0,"mdc-bottom-sheet--open":o.modelValue,"mdc-bottom-sheet--closing":n.closing})));function i(){n.closing=!0,setTimeout((()=>{r(f.EVENTS.CHANGE,!1),n.closing=!1}),300)}return(t,r)=>((0,p.openBlock)(),(0,p.createElementBlock)("div",{class:(0,p.normalizeClass)((0,p.unref)(c))},[(0,p.createVNode)(p.Transition,{name:"mdc-slide"},{default:(0,p.withCtx)((()=>[e.modelValue?((0,p.openBlock)(),(0,p.createElementBlock)("div",l,[(0,p.renderSlot)(t.$slots,"default")])):(0,p.createCommentVNode)("",!0)])),_:3}),(0,p.createElementVNode)("div",{class:"mdc-bottom-sheet__scrim",onClick:i})],2))}}))}(),n=n.default}()}));