!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/Loading/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/helpers.js","@xysfe/actui/es/Loading/index.js"],e):"object"==typeof exports?exports.Button=e(require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/Loading/index.js")):t.Button=e(t["@xysfe/actui/es/assets/utils/helpers.js"],t["@xysfe/actui/es/Loading/index.js"])}("undefined"!=typeof self?self:this,function(t,e){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../",e(e.s=1778)}({1164:function(t,e,n){"use strict";var o=n(38),i=(n.n(o),n(264)),s=n.n(i);e.a={name:"ActButton",props:{text:{type:String,default:""},color:{type:String,default:""},fontSize:{type:[Number,String],default:"14px"},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},borderRadius:{type:[Number,String],default:"6px"},plain:{type:Boolean,default:!1},block:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingSize:{type:Number,default:20},loadingType:{type:String,default:"cir1"},loadingText:{type:String,default:""}},components:{Loading:s.a},computed:{actButtonStyle:function(){var t={};return(this.color||this.loading&&"default"!==this.type)&&(t.color=this.plain?this.color:"#fff"),this.plain||(t.background=this.color),-1===this.color.indexOf("gradient")&&(t.borderColor=this.color),this.fontSize&&(t.fontSize=Object(o.formatFontSize)(this.fontSize)),this.borderRadius&&(t.borderRadius=Object(o.formatFontSize)(this.borderRadius)),t},loadingColor:function(){return this.color||"default"!==this.type?this.plain?this.color:"#fff":"#000"},iStyle:function(){var t={};return t.borderRadius=2*window.parseFloat(this.borderRadius)+"px",-1!==this.color.indexOf("gradient")&&(t.borderWidth=0),t}},methods:{handerClick:function(t){this.$emit("click",t)}}}},1778:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1779);o.a.install=function(t){t.component(o.a.name,o.a)},e.default=o.a},1779:function(t,e,n){"use strict";function o(t){r||n(1780)}var i=n(1164),s=n(1781),a=n(7),r=!1,u=o,l=Object(a.a)(i.a,s.a,s.b,!1,u,"data-v-aa3f6280",null);l.options.__file="src\\components\\Button\\src\\index.vue",e.a=l.exports},1780:function(t,e){},1781:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"act-button act-button-padding",class:[t.type?"act-button-"+t.type:"act-button-default",{"is-plain":t.plain,"is-disabled":t.disabled,"is-block":t.block,"is-loading":t.loading}],style:t.actButtonStyle,on:{click:t.handerClick}},[t.$slots.default?t._t("default"):n("div",{staticClass:"act-button-content"},[t.loading?[n("div",{staticClass:"act-button-loading"},[n("loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:t.loadingType,size:t.loadingSize,color:t.loadingColor}})],1),t._v(" "),n("span",{class:["act-button-text",{"loading-text-margin":t.loadingText}]},[t._v("\n        "+t._s(t.loadingText)+"\n      ")])]:n("span",{staticClass:"act-button-text"},[t._v("\n      "+t._s(t.text)+"\n    ")])],2),t._v(" "),n("i",{staticClass:"i-class",style:t.iStyle})],2)},i=[];o._withStripped=!0},264:function(t,n){t.exports=e},38:function(e,n){e.exports=t},7:function(t,e,n){"use strict";function o(t,e,n,o,i,s,a,r){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),s&&(l._scopeId=s);var c;if(a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=r?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(t,e){return c.call(e),d(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:l}}e.a=o}})});