Your IP : 216.73.216.79


Current Path : /var/www/html/learn/node_modules/vuesax/dist/vsSidebarItem/
Upload File :
Current File : /var/www/html/learn/node_modules/vuesax/dist/vsSidebarItem/index.js

/*!
  * Vuesax v4.0.1-alpha.24 🖖 (https://lusaxweb.github.io/vuesax/)
  * Forged by Luis Daniel Rovira
  * Released under the MIT License.
  * Donate: https://www.patreon.com/bePatron?c=1567892
  * © 2019, Lusaxweb. (https://lusaxweb.net)
  */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.vsSidebarItem=t(require("vue")):e.vsSidebarItem=t(e.Vue)}("undefined"!=typeof self?self:this,function(r){return(o={},i.m=n={0:function(e,t,r){"use strict";var n=r(4),c=r.n(n),l="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function u(r,n,i){(i?Reflect.getOwnMetadataKeys(n,i):Reflect.getOwnMetadataKeys(n)).forEach(function(e){var t=i?Reflect.getOwnMetadata(e,n,i):Reflect.getOwnMetadata(e,n);i?Reflect.defineMetadata(e,t,r,i):Reflect.defineMetadata(e,t,r)})}var s={__proto__:[]}instanceof Array;function a(i){return function(e,t,r){var n="function"==typeof e?e:e.constructor;n.__decorators__||(n.__decorators__=[]),"number"!=typeof r&&(r=void 0),n.__decorators__.push(function(e){return i(e,t,r)})}}var d=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function i(e,n){void 0===n&&(n={}),n.name=n.name||e._componentTag||e.name;var i=e.prototype;Object.getOwnPropertyNames(i).forEach(function(t){if("constructor"!==t)if(-1<d.indexOf(t))n[t]=i[t];else{var r=Object.getOwnPropertyDescriptor(i,t);void 0!==r.value?"function"==typeof r.value?(n.methods||(n.methods={}))[t]=r.value:(n.mixins||(n.mixins=[])).push({data:function(){var e;return(e={})[t]=r.value,e}}):(r.get||r.set)&&((n.computed||(n.computed={}))[t]={get:r.get,set:r.set})}}),(n.mixins||(n.mixins=[])).push({data:function(){return function(n,e){var t=e.prototype._init;e.prototype._init=function(){var e=this,t=Object.getOwnPropertyNames(n);if(n.$options.props)for(var r in n.$options.props)n.hasOwnProperty(r)||t.push(r);t.forEach(function(t){"_"!==t.charAt(0)&&Object.defineProperty(e,t,{get:function(){return n[t]},set:function(e){n[t]=e},configurable:!0})})};var r=new e;e.prototype._init=t;var i={};return Object.keys(r).forEach(function(e){void 0!==r[e]&&(i[e]=r[e])}),i}(this,e)}});var t=e.__decorators__;t&&(t.forEach(function(e){return e(n)}),delete e.__decorators__);var r=Object.getPrototypeOf(e.prototype),o=r instanceof c.a?r.constructor:c.a,a=o.extend(n);return function(i,o,a){Object.getOwnPropertyNames(o).forEach(function(e){if(!f[e]){var t=Object.getOwnPropertyDescriptor(i,e);if(!t||t.configurable){var r=Object.getOwnPropertyDescriptor(o,e);if(!s){if("cid"===e)return;var n=Object.getOwnPropertyDescriptor(a,e);if(!function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(r.value)&&n&&n.value===r.value)return}0,Object.defineProperty(i,e,r)}}})}(a,e,o),l&&function(t,r){u(t,r),Object.getOwnPropertyNames(r.prototype).forEach(function(e){u(t.prototype,r.prototype,e)}),Object.getOwnPropertyNames(r).forEach(function(e){u(t,r,e)})}(a,e),a}var f={prototype:!0,arguments:!0,callee:!0,caller:!0};function o(t){return"function"==typeof t?i(t):function(e){return i(e,t)}}o.registerHooks=function(e){d.push.apply(d,e)};var p=o;r.d(t,"b",function(){return g}),r.d(t,"c",function(){return h}),r.d(t,"a",function(){return p});var b="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function y(e,t,r){b&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,r)))}function g(r){return void 0===r&&(r={}),function(e,t){y(r,e,t),a(function(e,t){(e.props||(e.props={}))[t]=r})(e,t)}}function h(n,e){void 0===e&&(e={});var t=e.deep,i=void 0!==t&&t,r=e.immediate,o=void 0!==r&&r;return a(function(e,t){"object"!=typeof e.watch&&(e.watch=Object.create(null));var r=e.watch;"object"!=typeof r[n]||Array.isArray(r[n])?void 0===r[n]&&(r[n]=[]):r[n]=[r[n]],r[n].push({handler:t,deep:i,immediate:o})})}},1:function(e,t){e.exports=function(r,n,e,t,i){var o={};return Object.keys(t).forEach(function(e){o[e]=t[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=e.slice().reverse().reduce(function(e,t){return t(r,n,e)||e},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(r,n,o),o=null),o}},10:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},11:function(e,t,r){},12:function(e,t,r){"use strict";r.d(t,"a",function(){return O});var n,i,o,a,c=r(10),l=r.n(c),u=r(2),s=r.n(u),d=r(3),f=r.n(d),p=r(5),b=r.n(p),y=r(1),g=r.n(y),h=(r(8),r(4)),v=r.n(h),w=r(0);r(11);function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var O=(n=Object(w.b)({type:Boolean,default:!1}),Object(w.a)((o=function(i){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e=i.call.apply(i,[this].concat(r))||this,s()(e,"less",a,f()(e)),e}return b()(e,i),e.prototype.render=function(e){return e("i",{staticClass:"vs-icon-arrow",class:{less:this.less},ref:"icon",on:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(r,!0).forEach(function(e){l()(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},this.$listeners)})},e}(v.a),a=g()(o.prototype,"less",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=o))||i)},2:function(e,t){e.exports=function(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}},3:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},4:function(e,t){e.exports=r},41:function(e,t,r){},5:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}},6:function(e,t){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},67:function(e,t,r){"use strict";r.r(t);r(41);var n,i,o,a,c,l,u,s,d,f,p,b,y,g,h,v=r(2),w=r.n(v),m=r(3),O=r.n(m),j=r(5),_=r.n(j),x=r(1),P=r.n(x),C=(r(8),r(0)),R=r(9),k=r(12),z=(n=Object(C.b)({}),i=Object(C.b)({}),o=Object(C.b)({default:"_blank"}),a=Object(C.b)({type:String}),c=Object(C.b)({type:String}),l=Object(C.b)({type:Boolean}),u=Object(C.c)("$parent.reduce"),Object(C.a)((d=function(i){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e=i.call.apply(i,[this].concat(r))||this,w()(e,"to",f,O()(e)),w()(e,"href",p,O()(e)),w()(e,"target",b,O()(e)),w()(e,"value",y,O()(e)),w()(e,"id",g,O()(e)),w()(e,"arrow",h,O()(e)),e}_()(e,i);var t=e.prototype;return t.handleReduce=function(e){e&&console.log("reduce")},t.handleClick=function(){this.to?this.$router.push(this.to):this.href&&window.open(this.href,this.target)},t.render=function(e){var t=this,r=e("div",{staticClass:"vs-sidebar__item__icon"},[this.$slots.icon]),n=e("div",{staticClass:"vs-sidebar__item__text-tooltip"},[this.$slots.default]),i=e("div",{staticClass:"vs-sidebar__item__text"},[this.$slots.default]),o=e(k.a),a=e("div",{staticClass:"vs-sidebar__item__arrow"},[this.$slots.arrow||o]);return e("button",{staticClass:"vs-sidebar__item",class:{active:this.$parent.getValue&&this.id==this.$parent.getValue,hasIcon:!!this.$slots.icon},on:{click:function(){t.id&&t.$parent.handleClickItem(t.id),t.handleClick()}}},[this.$slots.icon&&r,i,n,this.$slots.arrow||this.arrow&&a])},e}(R.a),f=P()(d.prototype,"to",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=P()(d.prototype,"href",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=P()(d.prototype,"target",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=P()(d.prototype,"value",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=P()(d.prototype,"id",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=P()(d.prototype,"arrow",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P()(d.prototype,"handleReduce",[u],Object.getOwnPropertyDescriptor(d.prototype,"handleReduce"),d.prototype),s=d))||s);z.install=function(e){e.component("vs-sidebar-item",z)},"undefined"!=typeof window&&window.Vue&&z.install(window.Vue);t.default=z},7:function(e,t,r){"use strict";r.d(t,"c",function(){return n}),r.d(t,"a",function(){return i}),r.d(t,"b",function(){return o}),r.d(t,"d",function(){return a}),r.d(t,"e",function(){return c});function s(e){return["primary","secondary","success","danger","warning","dark","light","warn","facebook","twitter","youtube","pinterest","linkedin","snapchat","whatsapp","tumblr","reddit","spotify","amazon","medium","vimeo","skype","dribbble","slack","yahoo","twitch","discord","telegram","google-plus","messenger"].includes(e)}function d(e,t,r){r?"#comment"!==r.nodeName&&r.style.setProperty("--vs-"+e,t):document.documentElement.style.setProperty("--vs-"+e,t)}var n=function(e,t,r,n){var i,o=/^(rgb|rgba)/.test(t),a=/^(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d)$/.test(t),c=/^(#)/.test(t);if("dark"==t&&r&&r.classList.add("vs-component-dark"),o){var l=t.replace(/[rgba()]/g,"").split(",");i=l[0]+","+l[1]+","+l[2],d(e,i,r),n&&r.classList.add("vs-change-color")}else if(c){var u=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,r,n){return t+t+r+r+n+n});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}(t);i=u.r+","+u.g+","+u.b,d(e,i,r),n&&r.classList.add("vs-change-color")}else if(s(t)){i=window.getComputedStyle(document.body).getPropertyValue("--vs-"+t),d(e,i,r),n&&r.classList.add("vs-change-color")}else a&&(d(e,t,r),n&&r.classList.add("vs-change-color"))},i=function(e){var t,r=/^(rgb|rgba)/.test(e),n=/^(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d)$/.test(e),i=/^(#)/.test(e);if(r){var o=e.replace(/[rgba()]/g,"").split(",");t=o[0]+","+o[1]+","+o[2]}else if(i){var a=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,r,n){return t+t+r+r+n+n});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}(e);t=a.r+","+a.g+","+a.b}else if(s(e)){t=window.getComputedStyle(document.body).getPropertyValue("--vs-"+e)}else n&&(t=e);return t},o=function(e,t){var r=t||document.body;r.insertBefore(e,r.lastChild)},a=function(e,t){var r=t.getBoundingClientRect(),n=r.x,i=r.y,o=r.width,a=r.height,c=e.style,l=window.pageYOffset,u=e.clientHeight+r.y+l;l+window.innerHeight-u<30?(c.top=i+l-e.clientHeight-4+"px",c.left=n+"px",c.width=o+"px",e.classList.add("top"),t.classList.add("top")):(c.top=i+l+a-4+"px",c.left=n+"px",c.width=o+"px",e.classList.remove("top"),t.classList.remove("top"))},c=function(e,t,r){var n=t.getBoundingClientRect(),i=n.x,o=n.y,a=n.width,c=n.height,l=e.style,u=window.pageYOffset,s=e.clientHeight+n.y+u,d=u+window.innerHeight;if(i+a+10+e.getBoundingClientRect().width>window.innerWidth&&"right"==r&&(r="left",e.classList.remove("right"),e.classList.add("left")),i-10<e.getBoundingClientRect().width&&"left"==r&&(r="top",e.classList.remove("left"),e.classList.add("top")),d-s<30||"top"==r){l.top=o+u-e.clientHeight-8+"px";var f=i+(a-e.getBoundingClientRect().width)/2;f+e.getBoundingClientRect().width<window.innerWidth?0<f?l.left=f+"px":(l.left="10px",e.classList.add("notArrow")):(l.left="auto",l.right="10px",e.classList.add("notArrow"))}else if("bottom"==r){l.top=o+u+c+8+"px";var p=i+(a-e.getBoundingClientRect().width)/2;p+e.getBoundingClientRect().width<window.innerWidth?0<p?l.left=p+"px":(l.left="10px",e.classList.add("notArrow")):(l.left="auto",l.right="10px",e.classList.add("notArrow"))}else"left"==r?(l.top=o+u+(c-e.getBoundingClientRect().height)/2+"px",l.left=i-e.getBoundingClientRect().width-8+"px"):"right"==r&&(l.top=o+u+(c-e.getBoundingClientRect().height)/2+"px",l.left=i+a+8+"px")}},8:function(e,t){e.exports=function(e,t){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}},9:function(e,t,r){"use strict";r.d(t,"a",function(){return S});var n,i,o,a,c,l,u,s,d,f,p,b,y,g,h,v,w,m,O=r(2),j=r.n(O),_=r(6),x=r.n(_),P=r(3),C=r.n(P),R=r(5),k=r.n(R),z=r(1),$=r.n(z),B=(r(8),r(4)),L=r.n(B),M=r(0),E=r(7),S=(n=Object(M.b)({type:String,default:null}),i=Object(M.b)({type:Boolean,default:!1}),o=Object(M.b)({type:Boolean,default:!1}),a=Object(M.b)({type:Boolean,default:!1}),c=Object(M.b)({type:Boolean,default:!1}),l=Object(M.b)({type:Boolean,default:!1}),u=Object(M.b)({type:Boolean,default:!1}),Object(M.a)((m=w=function(i){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))||this).componentColor=null,e.getColor=null,j()(e,"color",f,C()(e)),j()(e,"danger",p,C()(e)),j()(e,"success",b,C()(e)),j()(e,"warn",y,C()(e)),j()(e,"dark",g,C()(e)),j()(e,"primary",h,C()(e)),j()(e,"active",v,C()(e)),e}return k()(e,i),e.prototype.mounted=function(){this.getColor=Object(E.a)(this.color)},x()(e,[{key:"isColorDark",get:function(){return"dark"===this.color||this.dark||"dark"===this.componentColor}},{key:"isColor",get:function(){return!!(this.color||this.primary||this.success||this.warn||this.danger||this.dark)}}]),e}(L.a),w.install=void 0,w.use=void 0,d=m,f=$()(d.prototype,"color",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=$()(d.prototype,"danger",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=$()(d.prototype,"success",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=$()(d.prototype,"warn",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=$()(d.prototype,"dark",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=$()(d.prototype,"primary",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=$()(d.prototype,"active",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=d))||s)}},i.c=o,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/dist/",i(i.s=67)).default;function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,o});