Your IP : 216.73.216.79


Current Path : /var/www/html/dynaweb.blunetdev.com/node_modules/vuesax/dist/vsCheckbox/
Upload File :
Current File : /var/www/html/dynaweb.blunetdev.com/node_modules/vuesax/dist/vsCheckbox/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.vsCheckbox=t(require("vue")):e.vsCheckbox=t(e.Vue)}("undefined"!=typeof self?self:this,function(n){return(o={},i.m=r={0:function(e,t,n){"use strict";var r=n(4),c=n.n(r),l="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function u(n,r,i){(i?Reflect.getOwnMetadataKeys(r,i):Reflect.getOwnMetadataKeys(r)).forEach(function(e){var t=i?Reflect.getOwnMetadata(e,r,i):Reflect.getOwnMetadata(e,r);i?Reflect.defineMetadata(e,t,n,i):Reflect.defineMetadata(e,t,n)})}var s={__proto__:[]}instanceof Array;function a(i){return function(e,t,n){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof n&&(n=void 0),r.__decorators__.push(function(e){return i(e,t,n)})}}var f=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function i(e,r){void 0===r&&(r={}),r.name=r.name||e._componentTag||e.name;var i=e.prototype;Object.getOwnPropertyNames(i).forEach(function(t){if("constructor"!==t)if(-1<f.indexOf(t))r[t]=i[t];else{var n=Object.getOwnPropertyDescriptor(i,t);void 0!==n.value?"function"==typeof n.value?(r.methods||(r.methods={}))[t]=n.value:(r.mixins||(r.mixins=[])).push({data:function(){var e;return(e={})[t]=n.value,e}}):(n.get||n.set)&&((r.computed||(r.computed={}))[t]={get:n.get,set:n.set})}}),(r.mixins||(r.mixins=[])).push({data:function(){return function(r,e){var t=e.prototype._init;e.prototype._init=function(){var e=this,t=Object.getOwnPropertyNames(r);if(r.$options.props)for(var n in r.$options.props)r.hasOwnProperty(n)||t.push(n);t.forEach(function(t){"_"!==t.charAt(0)&&Object.defineProperty(e,t,{get:function(){return r[t]},set:function(e){r[t]=e},configurable:!0})})};var n=new e;e.prototype._init=t;var i={};return Object.keys(n).forEach(function(e){void 0!==n[e]&&(i[e]=n[e])}),i}(this,e)}});var t=e.__decorators__;t&&(t.forEach(function(e){return e(r)}),delete e.__decorators__);var n=Object.getPrototypeOf(e.prototype),o=n instanceof c.a?n.constructor:c.a,a=o.extend(r);return function(i,o,a){Object.getOwnPropertyNames(o).forEach(function(e){if(!d[e]){var t=Object.getOwnPropertyDescriptor(i,e);if(!t||t.configurable){var n=Object.getOwnPropertyDescriptor(o,e);if(!s){if("cid"===e)return;var r=Object.getOwnPropertyDescriptor(a,e);if(!function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(n.value)&&r&&r.value===n.value)return}0,Object.defineProperty(i,e,n)}}})}(a,e,o),l&&function(t,n){u(t,n),Object.getOwnPropertyNames(n.prototype).forEach(function(e){u(t.prototype,n.prototype,e)}),Object.getOwnPropertyNames(n).forEach(function(e){u(t,n,e)})}(a,e),a}var d={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){f.push.apply(f,e)};var p=o;n.d(t,"b",function(){return y}),n.d(t,"c",function(){return v}),n.d(t,"a",function(){return p});var b="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function h(e,t,n){b&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,n)))}function y(n){return void 0===n&&(n={}),function(e,t){h(n,e,t),a(function(e,t){(e.props||(e.props={}))[t]=n})(e,t)}}function v(r,e){void 0===e&&(e={});var t=e.deep,i=void 0!==t&&t,n=e.immediate,o=void 0!==n&&n;return a(function(e,t){"object"!=typeof e.watch&&(e.watch=Object.create(null));var n=e.watch;"object"!=typeof n[r]||Array.isArray(n[r])?void 0===n[r]&&(n[r]=[]):n[r]=[n[r]],n[r].push({handler:t,deep:i,immediate:o})})}},1:function(e,t){e.exports=function(n,r,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(n,r,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(n,r,o),o=null),o}},10:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},11:function(e,t,n){},14:function(e,t,n){"use strict";n.d(t,"a",function(){return O});var r,i,o,a,c=n(10),l=n.n(c),u=n(2),s=n.n(u),f=n(3),d=n.n(f),p=n(5),b=n.n(p),h=n(1),y=n.n(h),v=(n(8),n(4)),g=n.n(v),m=n(0);n(11);function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var O=(r=Object(m.b)({type:Boolean,default:!1}),Object(m.a)((o=function(i){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=i.call.apply(i,[this].concat(n))||this,s()(e,"indeterminate",a,d()(e)),e}return b()(e,i),e.prototype.render=function(e){return e("i",{staticClass:"vs-icon-check",on:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(n,!0).forEach(function(e){l()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},this.$listeners),class:[{indeterminate:this.indeterminate}]},[e("span",{},[e("div",{staticClass:"line1"}),e("div",{staticClass:"line2"})])])},e}(g.a),a=y()(o.prototype,"indeterminate",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=o))||i)},15:function(e,t,n){},2:function(e,t){e.exports=function(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):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=n},5:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}},50:function(e,t,n){"use strict";n.r(t);n(15);var r,i,o,a,c,l,u,s,f,d,p,b,h,y,v,g,m,w,O,j,x,k=n(10),P=n.n(k),_=n(2),C=n.n(_),B=n(6),z=n.n(B),$=n(3),R=n.n($),S=n(5),E=n.n(S),L=n(1),D=n.n(L),M=(n(8),n(0)),N=n(14),A=n(9);function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(n,!0).forEach(function(e){P()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var V=(r=Object(M.b)({default:""}),i=Object(M.b)({default:""}),o=Object(M.b)({default:""}),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}),s=Object(M.b)({type:Boolean,default:!1}),f=Object(M.b)({type:Boolean,default:!1}),d=Object(M.c)("indeterminate"),Object(M.a)((b=function(i){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))||this)._uid=void 0,C()(e,"value",h,R()(e)),C()(e,"val",y,R()(e)),C()(e,"notValue",v,R()(e)),C()(e,"indeterminate",g,R()(e)),C()(e,"lineThrough",m,R()(e)),C()(e,"checked",w,R()(e)),C()(e,"checkedForce",O,R()(e)),C()(e,"loading",j,R()(e)),C()(e,"labelBefore",x,R()(e)),e}E()(e,i);var t=e.prototype;return t.handleIndeterminate=function(e){e?this.$emit("input",!0):this.$emit("input",!1)},t.mounted=function(){this.checked&&"boolean"==typeof this.value&&this.$emit("input",!0)},t.render=function(e){var t,n,r,i,o,a,c=this,l=e("input",{staticClass:"vs-checkbox",attrs:J({},this.$attrs,{type:"checkbox",id:this._uid}),domProps:{checked:this.checkedForce||this.isChecked},on:J({},this.$listeners,{input:function(e){if("boolean"==typeof c.value)c.$emit("input",!c.value);else if("object"==typeof c.value&&null!==c.value){var t=c.value,n=-1===t.indexOf(c.val)&&-1===JSON.stringify(t).indexOf(JSON.stringify(c.val)),r=0;t.forEach(function(e,t){JSON.stringify(e)==JSON.stringify(c.val)&&(r=t)}),n?t.push(c.val):t.splice(r,1),c.$emit("input",t)}else c.val!==c.value?c.$emit("input",c.val):c.$emit("input",c.notValue||null);c.$emit("mousedown",e)},blur:function(e){c.$emit("blur",e)}})}),u=e("div",{staticClass:"vs-checkbox-mask"},[!this.$slots.icon&&e(N.a,{props:{indeterminate:this.indeterminate}}),this.$slots.icon]),s=e("label",{staticClass:"vs-checkbox-label",class:[{lineThrough:this.lineThrough}],attrs:{for:this._uid}},[this.$slots.default]),f=e("div",{staticClass:"vs-checkbox-con"},[l,u]);return e("div",{staticClass:"vs-checkbox-content",style:(t={},t["--vs-color"]=this.color?this.getColor:"",t),class:[{"vs-checkbox--checked":this.isChecked},{"vs-checkbox--disabled":this.$attrs.hasOwnProperty("disabled")},{"vs-checkbox--loading":this.loading},{"vs-checkbox--label-before":this.labelBefore},(n={},n["vs-component--primary"]=!(this.danger||this.success||this.warn||this.dark||this.color),n),(r={},r["vs-component--danger"]=!!this.danger,r),(i={},i["vs-component--warn"]=!!this.warn,i),(o={},o["vs-component--success"]=!!this.success,o),(a={},a["vs-component--dark"]=!!this.dark,a)]},[f,this.$slots.default&&s])},z()(e,[{key:"isChecked",get:function(){var n=this,e=!1;if(this.value){if("boolean"==typeof this.value)e=this.value;else if("object"==typeof this.value&&null!==this.value){var t=this.value,r=-1===t.indexOf(this.val)&&-1===JSON.stringify(t).indexOf(JSON.stringify(this.val));return t.forEach(function(e,t){JSON.stringify(e)==JSON.stringify(n.val)&&t}),!r}}else e=!1;return e}}]),e}(A.a),h=D()(b.prototype,"value",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=D()(b.prototype,"val",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=D()(b.prototype,"notValue",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=D()(b.prototype,"indeterminate",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=D()(b.prototype,"lineThrough",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=D()(b.prototype,"checked",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=D()(b.prototype,"checkedForce",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=D()(b.prototype,"loading",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=D()(b.prototype,"labelBefore",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D()(b.prototype,"handleIndeterminate",[d],Object.getOwnPropertyDescriptor(b.prototype,"handleIndeterminate"),b.prototype),p=b))||p);V.install=function(e){e.component("vs-checkbox",V)},"undefined"!=typeof window&&window.Vue&&V.install(window.Vue);t.default=V},6:function(e,t){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},7:function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"d",function(){return a}),n.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 f(e,t,n){n?"#comment"!==n.nodeName&&n.style.setProperty("--vs-"+e,t):document.documentElement.style.setProperty("--vs-"+e,t)}var r=function(e,t,n,r){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&&n&&n.classList.add("vs-component-dark"),o){var l=t.replace(/[rgba()]/g,"").split(",");i=l[0]+","+l[1]+","+l[2],f(e,i,n),r&&n.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,n,r){return t+t+n+n+r+r});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,f(e,i,n),r&&n.classList.add("vs-change-color")}else if(s(t)){i=window.getComputedStyle(document.body).getPropertyValue("--vs-"+t),f(e,i,n),r&&n.classList.add("vs-change-color")}else a&&(f(e,t,n),r&&n.classList.add("vs-change-color"))},i=function(e){var t,n=/^(rgb|rgba)/.test(e),r=/^(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(n){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,n,r){return t+t+n+n+r+r});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 r&&(t=e);return t},o=function(e,t){var n=t||document.body;n.insertBefore(e,n.lastChild)},a=function(e,t){var n=t.getBoundingClientRect(),r=n.x,i=n.y,o=n.width,a=n.height,c=e.style,l=window.pageYOffset,u=e.clientHeight+n.y+l;l+window.innerHeight-u<30?(c.top=i+l-e.clientHeight-4+"px",c.left=r+"px",c.width=o+"px",e.classList.add("top"),t.classList.add("top")):(c.top=i+l+a-4+"px",c.left=r+"px",c.width=o+"px",e.classList.remove("top"),t.classList.remove("top"))},c=function(e,t,n){var r=t.getBoundingClientRect(),i=r.x,o=r.y,a=r.width,c=r.height,l=e.style,u=window.pageYOffset,s=e.clientHeight+r.y+u,f=u+window.innerHeight;if(i+a+10+e.getBoundingClientRect().width>window.innerWidth&&"right"==n&&(n="left",e.classList.remove("right"),e.classList.add("left")),i-10<e.getBoundingClientRect().width&&"left"==n&&(n="top",e.classList.remove("left"),e.classList.add("top")),f-s<30||"top"==n){l.top=o+u-e.clientHeight-8+"px";var d=i+(a-e.getBoundingClientRect().width)/2;d+e.getBoundingClientRect().width<window.innerWidth?0<d?l.left=d+"px":(l.left="10px",e.classList.add("notArrow")):(l.left="auto",l.right="10px",e.classList.add("notArrow"))}else if("bottom"==n){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"==n?(l.top=o+u+(c-e.getBoundingClientRect().height)/2+"px",l.left=i-e.getBoundingClientRect().width-8+"px"):"right"==n&&(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,n){"use strict";n.d(t,"a",function(){return D});var r,i,o,a,c,l,u,s,f,d,p,b,h,y,v,g,m,w,O=n(2),j=n.n(O),x=n(6),k=n.n(x),P=n(3),_=n.n(P),C=n(5),B=n.n(C),z=n(1),$=n.n(z),R=(n(8),n(4)),S=n.n(R),E=n(0),L=n(7),D=(r=Object(E.b)({type:String,default:null}),i=Object(E.b)({type:Boolean,default:!1}),o=Object(E.b)({type:Boolean,default:!1}),a=Object(E.b)({type:Boolean,default:!1}),c=Object(E.b)({type:Boolean,default:!1}),l=Object(E.b)({type:Boolean,default:!1}),u=Object(E.b)({type:Boolean,default:!1}),Object(E.a)((w=m=function(i){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))||this).componentColor=null,e.getColor=null,j()(e,"color",d,_()(e)),j()(e,"danger",p,_()(e)),j()(e,"success",b,_()(e)),j()(e,"warn",h,_()(e)),j()(e,"dark",y,_()(e)),j()(e,"primary",v,_()(e)),j()(e,"active",g,_()(e)),e}return B()(e,i),e.prototype.mounted=function(){this.getColor=Object(L.a)(this.color)},k()(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}(S.a),m.install=void 0,m.use=void 0,f=w,d=$()(f.prototype,"color",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=$()(f.prototype,"danger",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=$()(f.prototype,"success",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=$()(f.prototype,"warn",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=$()(f.prototype,"dark",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=$()(f.prototype,"primary",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=$()(f.prototype,"active",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=f))||s)}},i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},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=50)).default;function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var r,o});