text: !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["owl-create-api"]=n():e["owl-create-api"]=n()}(window,function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s=0)}([function(e,n,t){"use strict";t.r(n);var r="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},o=/-(\w)/g;function i(e){return(e+"").replace(o,function(e,n){return n?n.toUpperCase():""})}function u(e){return"boolean"==typeof e}function a(e){return void 0===e}var c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};function f(e,n,t,r,o){var i=void 0,u=void 0,a=new e(c({},o,{render:function(e){var t=u&&u(e);return t&&!Array.isArray(t)&&(t=[t]),e(n,c({},i),t||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),this.$el.parentNode.removeChild(this.$el)}}}));a.updateRenderData=function(e,n){i=e,u=n},a.updateRenderData(t,r),a.$mount(),a.init();var f=a.$children[0];return f.$updateProps=function(e){c(i.props,e),a.$forceUpdate()},f}var p=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var n={};return e.forEach(function(e){n[e]=i("on-"+e)}),n}(n);var t,o=null!==(t=e)&&"object"===(void 0===t?"undefined":r(t)),u=o?p({},e):{value:e},a={};for(var c in n)if(n.hasOwnProperty(c)){var f=n[c];u[f]&&o&&(a[c]=u[f],delete u[f])}return{props:u,on:a}}var l="hook:beforeDestroy";function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments[3],o=this,i={},u=[];return{before:function(e){u.push(e)},create:function(c,p,d){"function"!=typeof p&&a(d)&&(d=p,p=null),a(d)&&(d=t);var v=this,h=!!v.$on,y={};h&&(y.parent=v,v.__unwatchFns__||(v.__unwatchFns__=[]));var b=s(c,n),_=null;return function(e,n,t,r){var o=n.props.$props;if(o){delete n.props.$props;var i=[],u=[];if(Object.keys(o).forEach(function(t){var r=o[t];"string"==typeof r&&r in e?(n.props[t]=e[r],i.push(t),u.push(r)):n.props[t]=r}),t){var a=e.$watch(function(){var n={};return i.forEach(function(t,r){n[t]=e[u[r]]}),n},r);e.__unwatchFns__.push(a)}}}(v,b,h,function(e){_&&_.$updateProps(e)}),function(e,n){var t=e.props.$events;t&&(delete e.props.$events,Object.keys(t).forEach(function(r){var o=t[r];"string"==typeof o&&(o=n[o]),e.on[r]=o}))}(b,v),function(e){var n=e.props;Object.keys(n).forEach(function(t){"$"===t.charAt(0)&&(e[t.slice(1)]=n[t],delete n[t])})}(b),_=function(n,t,r,a){u.forEach(function(e){e(n,t,a)});var c=r.parent?r.parent._uid:-1,p=i[c]?i[c]:{},s=p.comp,l=p.ins;if(a&&s&&l)return l.updateRenderData(n,t),l.$forceUpdate(),s;var d=f(o,e,n,t,r),v=d.$parent,h=d.remove;d.remove=function(){if(a){if(!i[c])return;i[c]=null}h&&h.apply(this,arguments),v.destroy()};var y=d.show;d.show=function(){return y&&y.apply(this,arguments),this};var b=d.hide;return d.hide=function(){return b&&b.apply(this,arguments),this},a&&(i[c]={comp:d,ins:v}),d}(b,p,y,d),h&&!r&&v.$on(l,function(){(function(e){e.__unwatchFns__&&(e.__unwatchFns__.forEach(function(e){e()}),e.__unwatchFns__=null)})(v),_.remove(),_=null}),_}}}function v(e,n){var t,r=n.componentPrefix,o=n.apiPrefix,u=e.name;return!u&&function(e){throw new Error("[create-api error]: "+e)}("Component must have name while using create-api!"),""+i(""+o+((t=u.replace(r,"")).charAt(0).toLowerCase()+t.slice(1)))}n.default={install:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.componentPrefix,r=void 0===t?"":t,o=n.apiPrefix,i=void 0===o?"$":o;e.createAPI=function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];u(t)&&(o=t,t=[]);var c=d.call(this,n,t,o,a),f=v(n,{componentPrefix:r,apiPrefix:i});return e.prototype[f]=n.$create=c.create,c}},instantiateComponent:f,version:"__VERSION__"}}])});