(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/xfl-select/xfl-select"],{"1e8a":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return l})),i.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement;t._self._c},l=[]},"3f19":function(t,e,i){"use strict";var n=i("b309"),o=i.n(n);o.a},"4a0c":function(t,e,i){"use strict";i.r(e);var n=i("1e8a"),o=i("b027");for(var l in o)"default"!==l&&function(t){i.d(e,t,(function(){return o[t]}))}(l);i("3f19");var s,r=i("f0c5"),u=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"ce8b158a",null,!1,n["a"],s);e["default"]=u.exports},"8e63":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("66fd"));function o(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;it.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&void 0!==arguments[0]&&arguments[0];t?this.switchMgr.open():this.switchMgr.close(100)},onFocus:function(t){this.focusShowList__&&this.switchMgr.open(),this.$emit("focus",t)},onBlur:function(t){this.focusShowList__&&this.switchMgr.close(100),this.$emit("blur",t)},onUpperClick:function(){this.disabled||(this.switchMgr.toggle("auto",-1,100),this.$emit("input-click"))},onClear:function(){this.clearItemActive(),this.clearInput(),this.$emit("clear")},onInput:function(t){var e=t.detail.value;this.changeActiveIndex(e),this.$emit("input",t)},clearInput:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.placeholder=null==t?this.placeholder:t,this.selectText=this.showInput?"":this.placeholder},setInput:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!=t&&(this.selectText=t)},changeActiveIndex:function(t){if(null!=t){var e=t,i=t;"number"!==typeof t?e=this.getIndex(i):i=this.innerList[e].value,e>-1?!this.itemIsActive(e)&&this.setItemActive(e,i):this.clearItemActive(),this.setInput(i)}},clearItemActive:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;t<0&&(this.activeIndex=-1)},setItemActive:function(t,e){this.itemIsDisabled(t)||(this.activeIndex=t)},onListClick:function(){},onClickItem:function(t,e){this.itemIsDisabled(t)?this.switchMgr.open():(this.switchMgr.close(100),this.disabled||this.itemIsActive(t)||(this.clearItemActive(),this.setItemActive(t,e),this.$emit("change",{newVal:e,oldVal:this.selectText,index:t,orignItem:this.list[t]}),this.setInput(e)))},onListHide:function(){this.isRotate=!1,this.isShowList=!1,this.$emit("visible-change",!1)},onListShow:function(){this.isShowList=!0,this.isRotate=!0,this.$emit("visible-change",!0),"independent"!==this.selectHideType&&"hideSelf"!==this.selectHideType&&n.default.__xfl_select.$emit("open",this)}}};function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.selector,o=void 0===i?"selector":i,l=e.component,s=void 0===l?null:l,r=e.attemptSpaceTime,c=void 0===r?16:r,a=e.attemptSpaceRate,h=void 0===a?1.5:a,f=e.totalAttemptNum,d=void 0===f?8:f,p=e.id,v=void 0===p||p,g=e.dataset,m=void 0===g||g,y=e.rect,b=void 0===y||y,I=e.size,S=void 0===I||I,_=e.scrollOffset,x=void 0===_||_,T=e.properties,A=void 0===T?[]:T,O=e.computedStyle,L=void 0===O?[]:O,k=e.context,$=void 0===k||k,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,j=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,C=arguments;o="string"===typeof C[0]?C[0]:String(o),"function"!==typeof C[1]&&(s=C[1],M=C[2],j=C[3]),!s instanceof n.default&&(s=null);var H={selector:o,attemptSpaceTime:c,totalAttemptNum:d,attemptSpaceRate:h,id:v,dataset:m,rect:b,size:S,scrollOffset:x,properties:A,computedStyle:L,context:$},B=t.createSelectorQuery();s&&B.in(s);var D,N="viewport"===o?B.selectViewport():B.selectAll(o);return N.fields(H),"function"!==typeof M&&(D=new Promise((function(t){return M=t}))),w((function(t,e){B.exec((function(i){var n=u(i,1),o=n[0];o&&0===o.length&&(o=null),o||d<=e?"function"===typeof M&&M.call(j,o):t(c),c=Math.round(c*h)}))}))(),D}e.default=p;var g=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;l(this,t),this.onopen=e,this.onclose=i,this.isOpen=!1}return r(t,[{key:"toggle",value:function(){var t,e,i,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";"close"!==o&&"open"!==o&&(o=this.isOpen?"close":"open");for(var l,s=0;s<(arguments.length<=1?0:arguments.length-1);s++)switch(l=s+1<1||arguments.length<=s+1?void 0:arguments[s+1],typeof l){case"number":null==t?t=l:e=l;break;case"string":null==i?i=l:n=l;break}var r="open"===o?t:e,u="open"===o?i:n;this.change(o,null==r?-1:r,null==u?"both":u)}},{key:"open",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";this.change("open",t,e)}},{key:"close",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";this.change("close",t,e)}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"both";"open"===t?(clearTimeout(this.openTimer),this.openTimer=null):"close"===t?(clearTimeout(this.closeTimer),this.closeTimer=null):"both"===t&&(clearTimeout(this.closeTimer),this.closeTimer=null,clearTimeout(this.openTimer),this.openTimer=null)}},{key:"change",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"both";if(this.cancel(n),!(this.isOpen&&"open"===t||!this.isOpen&&"close"===t)){var o="on"+t;i<0?(this.isOpen="open"===t,"function"===typeof this[o]&&this[o]()):this[t+"Timer"]=setTimeout((function(){e.isOpen="open"===t,"function"===typeof e[o]&&e[o]()}),i)}}}]),t}();function m(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=-1;return i&&("string"===typeof i?i=i.split(/\s*[\,\.]\s*/):Array.isArray(i)||(i="")),y(t,(function(t,l,s){if(i&&(t=b(t,i)),"function"===typeof n?n(t,e,arrElem,l,s):t===e)return o=l,!1})),o}function y(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null==t||"function"===typeof t||"function"!==typeof e)return t;var n=Object.keys(t),o=t.length,l="number"==typeof o&&o>-1&&o%1==0&&o<=9007199254740991;if(l){for(var s,r=/^(?:0|[1-9]\d*)$/,u=9007199254740991,c=[],a=0;a2&&void 0!==arguments[2]?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=0,s=t,r=e.length;l1&&void 0!==arguments[1]?arguments[1]:null,i=function(t){return t=parseInt(t),!isNaN(t)&&isFinite(t)||(t=-1),t},n=[],o=function(t){if(null==t){for(var e=0;e-1&&(clearTimeout(n[i]),n.splice(i,1))}},l=0,s=function s(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if("new"===u)o();else if("old"===u&&n.length>0)return;if(r=i(r),r<0)t.call(e,s,++l,n);else{var c=setTimeout((function(){o(c),t.call(e,s,++l,n)}),r);n.push(c)}};return s}}).call(this,i("543d")["default"])},b027:function(t,e,i){"use strict";i.r(e);var n=i("8e63"),o=i.n(n);for(var l in n)"default"!==l&&function(t){i.d(e,t,(function(){return n[t]}))}(l);e["default"]=o.a},b309:function(t,e,i){}}]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'components/xfl-select/xfl-select-create-component', { 'components/xfl-select/xfl-select-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('543d')['createComponent'](__webpack_require__("4a0c")) }) }, [['components/xfl-select/xfl-select-create-component']] ]);