(window["webpackJsonp_name_"] = window["webpackJsonp_name_"] || []).push([[57,60,78],{
/***/ 169:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getIcon;
/**
*
* @param setting
* @param key - file, date, select, range, number
* @param direction - only for type number ['dec', 'inc']
*/
function getIcon(setting, key) {
var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
var iconType = direction ? direction + '_icon_type' : 'icon_type';
var iconClass = direction ? direction + '_icon_' : 'icon_';
// icon_type: "", icon_font-awesome: "", icon_ios: "", icon_small: ""
var span = document.createElement('SPAN');
span.classList.add('project-input__icon');
var template = '';
switch (setting[iconType]) {
case 'custom':
span.classList.add('has-svg');
template = '\n \n \n \n ';
break;
case 'ios':
case 'font-awesome':
case 'small':
span.classList.add('has-font');
span.classList.add('' + setting[iconType]);
template = '';
break;
default:
span.classList.add('font-awesome');
template = '';
}
span.innerHTML = template;
return span;
}
var ICONS = {
'select': 'ib-289',
'file': 'ib-218',
'date': 'ib-136',
'number': {
'inc': 'ib-289',
'dec': 'ib-288'
},
'radio': 'ib-300',
'range': 'ib-300',
'accordion': {
'open': 'ib-289',
'close': 'ib-288'
}
};
/***/ }),
/***/ 188:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _importCss2 = __webpack_require__(46);
var _importCss3 = _interopRequireDefault(_importCss2);
exports.default = initNumber;
var _getIcon = __webpack_require__(169);
var _getIcon2 = _interopRequireDefault(_getIcon);
__webpack_require__(419);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function initNumber(item, template, setting) {
// item.setAttribute('type', 'text');
// item.setAttribute('pattern', '/[0-9]/');
// pattern
Promise.all([__webpack_require__.e(/* import() | lib/SpinBox.src */ 102).then(function() { var module = __webpack_require__(458); return typeof module === "object" && module && module.__esModule ? module : Object.assign({/* fake namespace object */}, typeof module === "object" && module, { "default": module }); }), (0, _importCss3.default)('lib/SpinBox.src')]).then(function (proms) {
return proms[0];
}).then(function (SpinBox) {
new SpinBox.SpinBox(template, {}, setting, {
inc: (0, _getIcon2.default)(setting, 'number', 'inc'),
dec: (0, _getIcon2.default)(setting, 'number', 'dec')
});
});
}
/***/ }),
/***/ 419:
/***/ (function(module, exports, __webpack_require__) {
var content = __webpack_require__(438);
if(typeof content === 'string') content = [[module.i, content, '']];
var transform;
var insertInto;
var options = {"hmr":true}
options.transform = transform
options.insertInto = undefined;
var update = __webpack_require__(167)(content, options);
if(content.locals) module.exports = content.locals;
if(false) {}
/***/ }),
/***/ 438:
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(168)(false);
// imports
// module
exports.push([module.i, ".project-input.spinBox{position:relative;display:flex;flex-wrap:nowrap;align-items:center}.project-input.spinBox .default-number,.project-input.spinBox .focused-number,.project-input.spinBox .hover-number{top:50%;left:50%;transform:translate(-50%,-50%);position:absolute;width:100%;height:100%;background-size:contain;background-repeat:no-repeat;background-position:50%;transition:opacity .2s ease}.project-input.spinBox .default-number{opacity:1}.project-input.spinBox .focused-number,.project-input.spinBox .hover-number{opacity:0}.project-input.spinBox:hover .hover-number{opacity:1}.project-input.spinBox.project-input_focused .default-number,.project-input.spinBox:hover .default-number{opacity:0}.project-input.spinBox.project-input_focused .focused-number{opacity:1}.spinBox input{display:block;flex-grow:1}.spinBoxDown,.spinBoxUp{display:block;cursor:pointer;z-index:3}.spinBox input[disabled]+span,.spinBox input[disabled]+span+span{cursor:auto}.spinBoxDown span,.spinBoxUp span{display:block}.spinBox-separately .spinBoxDown,.spinBoxDown.spinBox-custom{padding-right:inherit;padding-top:0;padding-bottom:0;padding-left:0}.spinBox-separately .spinBoxUp,.spinBoxUp.spinBox-custom{padding-right:0;padding-top:0;padding-bottom:0;padding-left:inherit}.spinBoxDown.spinBox-custom,.spinBoxUp.spinBox-custom{transform:none}.spinBox-arrow-wrapper_left{padding-right:inherit}.spinBox-arrow-wrapper_right{padding-left:inherit}.spinBoxDown span,.spinBoxUp span{height:100%;display:flex;align-items:center;justify-content:center}.spinBoxDown span>i,.spinBoxUp span>i{padding:0!important}.slider-icon{position:relative}.slider-icon:before{content:\"\";position:absolute;top:0;left:0;bottom:0;right:0;z-index:2;width:100%;height:100%;background-color:rgba(0,0,0,1e-05);cursor:pointer}.spinBox-arrow-wrapper{position:relative;display:flex;flex-direction:column;flex-shrink:0;align-items:center}", ""]);
// exports
/***/ })
}]);