moodle_local_treestudyplan/amd/build/vue-class-component.min.js

3 lines
6.3 KiB
JavaScript
Raw Normal View History

define("local_treestudyplan/vue-class-component",["exports","./vue"],(function(_exports,_vue){var obj;function _toConsumableArray(arr){return function(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function forwardMetadata(to,from,propertyKey){(propertyKey?Reflect.getOwnMetadataKeys(from,propertyKey):Reflect.getOwnMetadataKeys(from)).forEach((function(metaKey){var metadata=propertyKey?Reflect.getOwnMetadata(metaKey,from,propertyKey):Reflect.getOwnMetadata(metaKey,from);propertyKey?Reflect.defineMetadata(metaKey,metadata,to,propertyKey):Reflect.defineMetadata(metaKey,metadata,to)}))}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.Component=Component,_exports.createDecorator=function(factory){return function(target,key,index){var Ctor="function"==typeof target?target:target.constructor;Ctor.__decorators__||(Ctor.__decorators__=[]),"number"!=typeof index&&(index=void 0),Ctor.__decorators__.push((function(options){return factory(options,key,index)}))}},_exports.mixins=function(){for(var _len=arguments.length,Ctors=new Array(_len),_key=0;_key<_len;_key++)Ctors[_key]=arguments[_key];return _vue.default.extend({mixins:Ctors})},_vue=(obj=_vue)&&obj.__esModule?obj:{default:obj};var hasProto={__proto__:[]}instanceof Array;function warn(message){"undefined"!=typeof console&&console.warn("[vue-class-component] "+message)}var $internalHooks=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function componentFactory(Component){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};options.name=options.name||Component._componentTag||Component.name;var proto=Component.prototype;Object.getOwnPropertyNames(proto).forEach((function(key){if("constructor"!==key)if($internalHooks.indexOf(key)>-1)options[key]=proto[key];else{var descriptor=Object.getOwnPropertyDescriptor(proto,key);void 0!==descriptor.value?"function"==typeof descriptor.value?(options.methods||(options.methods={}))[key]=descriptor.value:(options.mixins||(options.mixins=[])).push({data:function(){return function(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},key,descriptor.value)}}):(descriptor.get||descriptor.set)&&((options.computed||(options.computed={}))[key]={get:descriptor.get,set:descriptor.set})}})),(options.mixins||(options.mixins=[])).push({data:function(){return function(vm,Component){var originalInit=Component.prototype._init;Component.prototype._init=function(){var _this=this,keys=Object.getOwnPropertyNames(vm);if(vm.$options.props)for(var key in vm.$options.props)vm.hasOwnProperty(key)||keys.push(key);keys.forEach((function(key){Object.defineProperty(_this,key,{get:function(){return vm[key]},set:function(value){vm[key]=value},configurable:!0})}))};var data=new Component;Component.prototype._init=originalInit;var plainData={};return Object.keys(da
//# sourceMappingURL=vue-class-component.min.js.map