define(["require","exports","vue","../require/css.amd!../assets/extra.css"],(function(p,l,e){"use strict";if(typeof e>"u")var e=window.Vue;function d(o){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(a,n,t.get?t:{enumerable:!0,get:()=>o[n]})}}return a.default=o,Object.freeze(a)}const v=e.defineComponent({__name:"rive",props:{src:{},buffer:{},riveFile:{},artboard:{},animations:{},stateMachines:{},layout:{},autoplay:{type:Boolean,default:!0},useOffscreenRenderer:{type:Boolean},enableRiveAssetCDN:{type:Boolean},shouldDisableRiveListeners:{type:Boolean},isTouchScrollEnabled:{type:Boolean},automaticallyHandleEvents:{type:Boolean},autoBind:{type:Boolean},onLoad:{},onLoadError:{},onPlay:{},onPause:{},onStop:{},onLoop:{},onStateChange:{},onAdvance:{},assetLoader:{},onload:{},onloaderror:{},onplay:{},onpause:{},onstop:{},onloop:{},onstatechange:{}},setup(o,{expose:a}){let n;const t=o,s=e.ref(),r={riveInstance:void 0};return e.watch([s,t],async()=>{n||(n=await new Promise((c,f)=>p(["@rive-app/canvas-lite"],y=>c(d(y)),f)));const i=s.value;if(!i)return;r.riveInstance?.cleanup();const u={...t,canvas:i,onLoad:c=>{t.onLoad?.(c),r.riveInstance?.resizeDrawingSurfaceToCanvas()}};r.riveInstance=new n.Rive(u)}),e.onUnmounted(()=>{r.riveInstance?.cleanup()}),a(r),(i,u)=>(e.openBlock(),e.createElementBlock("canvas",{ref_key:"el",ref:s,class:"top-rive"},null,512))}});l.TopRive=v,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
//# sourceMappingURL=extra.amd.js.map
