!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/svgicon.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/svgicon.js"],e):"object"==typeof exports?exports["assets/common/input.js"]=e(require("@xysfe/actui/es/assets/svgicon.js")):t["assets/common/input.js"]=e(t["@xysfe/actui/es/assets/svgicon.js"])}("undefined"!=typeof self?self:this,function(t){return function(t){function e(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,s){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:s})},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="../es",e(e.s=918)}({550:function(e,n){e.exports=t},678:function(t,e,n){"use strict";var s=n(550),o=n.n(s);e.a={name:"ActInput",components:{svgIcon:o.a},props:{value:{type:String,default:""},showdel:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},tips:{type:String,default:""},tipscolor:{type:String,default:""},inputstyle:{type:String,default:""},type:{type:String,default:"text"},inputmode:{type:String,default:""}},computed:{delIsShow:function(){return this.showdel&&Boolean(this.value)&&this.focused}},data:function(){return{focused:!1,scrollY:0,openShake:!1}},model:{prop:"value",event:"change"},methods:{focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},handlerInput:function(t){var e=t.target.value;this.setCurrentValue(e)},delValue:function(){this.setCurrentValue(""),this.$emit("clear",this.value),this.focus()},handlerChange:function(t){var e=t.target.value;this.$emit("change",e)},handlerBlur:function(t){this.focused=!1,this.$emit("blur",t)},handlerFocus:function(t){this.focused=!0,this.$emit("focus",t)},setCurrentValue:function(t){this.$emit("input",t),t!==this.value&&this.$emit("change",t)},addShake:function(){var t=this;this.openShake=!0,setTimeout(function(){t.openShake=!1},1200)}},watch:{tips:function(t){t&&this.addShake()}}}},8:function(t,e,n){"use strict";function s(t,e,n,s,o,i,a,u){t=t||{};var r=typeof t.default;"object"!==r&&"function"!==r||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),s&&(c.functional=!0),i&&(c._scopeId=i);var l;if(a?(l=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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):o&&(l=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:c}}e.a=s},918:function(t,e,n){"use strict";function s(t){u||n(919)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(678),i=n(920),a=n(8),u=!1,r=s,c=Object(a.a)(o.a,i.a,i.b,!1,r,"data-v-77b8ac09",null);c.options.__file="src\\components\\common\\input.vue",e.default=c.exports},919:function(t,e){},920:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return o});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"act-input"},[n("div",{staticClass:"act-input-box act-row act-middle",style:t.inputstyle},[t._t("left"),t._v(" "),n("div",{staticClass:"act-input-content act-row act-middle act-col"},[n("div",{staticClass:"act-input-wrap act-row act-middle"},[t.disabled?n("input",t._b({ref:"input",staticClass:"act-col disabled",attrs:{disabled:"",placeholder:t.placeholder,type:t.type},domProps:{value:t.value}},"input",t.inputmode?{inputmode:t.inputmode}:{},!1)):n("input",t._b({ref:"input",staticClass:"act-col",class:{paddingR:t.delIsShow,shake:t.openShake},attrs:{type:t.type,placeholder:t.placeholder},domProps:{value:t.value},on:{input:t.handlerInput,change:t.handlerChange,focus:t.handlerFocus,blur:t.handlerBlur}},"input",t.inputmode?{inputmode:t.inputmode}:{},!1))]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.delIsShow,expression:"delIsShow"}],staticClass:"act-input-del act-row",on:{click:t.delValue,mousedown:function(t){t.preventDefault()}}},[n("svg-icon",{attrs:{iconClass:"del",className:"del-icon"}})],1),t._v(" "),n("div",{staticClass:"act-input-tips",style:{color:t.tipscolor}},[n("span",[t._v(t._s(t.tips))])])]),t._v(" "),t._t("right")],2)])},o=[];s._withStripped=!0}})});