module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 10);
/******/ })
/************************************************************************/
/******/ ({
/***/ 10:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var base64_1 = __webpack_require__(11);
var icondata_1 = __webpack_require__(12);
Component({
options: {
addGlobalClass: true
},
properties: {
extClass: {
type: String,
value: ''
},
type: {
type: String,
value: 'outline',
observer: '_genSrcByType'
},
icon: {
type: String,
value: '',
observer: '_genSrcByIcon'
},
size: {
type: Number,
value: 20
},
color: {
type: String,
value: '#000000'
}
},
data: {
src: '',
height: 20,
width: 20
},
methods: {
_genSrcByIcon: function _genSrcByIcon(v) {
this._genSrc(icondata_1.default[v][this.data.type]);
},
_genSrcByType: function _genSrcByType(v) {
this._genSrc(icondata_1.default[this.data.icon][v]);
},
_genSrc: function _genSrc(rawData) {
if (!rawData) return;
var base64 = base64_1.default.encode(rawData);
this.setData({
src: 'data:image/svg+xml;base64,' + base64
});
}
}
});
/***/ }),
/***/ 11:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var b64chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
var cb_encode = function cb_encode(ccc) {
var padlen = [0, 2, 1][ccc.length % 3],
ord = ccc.charCodeAt(0) << 16 | (ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8 | (ccc.length > 2 ? ccc.charCodeAt(2) : 0),
chars = [b64chars.charAt(ord >>> 18), b64chars.charAt(ord >>> 12 & 63), padlen >= 2 ? '=' : b64chars.charAt(ord >>> 6 & 63), padlen >= 1 ? '=' : b64chars.charAt(ord & 63)];
return chars.join('');
};
var btoa = global.btoa ? function (b) {
return global.btoa(b);
} : function (b) {
return b.replace(/[\s\S]{1,3}/g, cb_encode);
};
var fromCharCode = String.fromCharCode;
var cb_utob = function cb_utob(c) {
var cc;
if (c.length < 2) {
cc = c.charCodeAt(0);
return cc < 0x80 ? c : cc < 0x800 ? fromCharCode(0xc0 | cc >>> 6) + fromCharCode(0x80 | cc & 0x3f) : fromCharCode(0xe0 | cc >>> 12 & 0x0f) + fromCharCode(0x80 | cc >>> 6 & 0x3f) + fromCharCode(0x80 | cc & 0x3f);
} else {
cc = 0x10000 + (c.charCodeAt(0) - 0xD800) * 0x400 + (c.charCodeAt(1) - 0xDC00);
return fromCharCode(0xf0 | cc >>> 18 & 0x07) + fromCharCode(0x80 | cc >>> 12 & 0x3f) + fromCharCode(0x80 | cc >>> 6 & 0x3f) + fromCharCode(0x80 | cc & 0x3f);
}
};
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
var utob = function utob(u) {
return u.replace(re_utob, cb_utob);
};
var _encode = function _encode(u) {
var isUint8Array = Object.prototype.toString.call(u) === '[object Uint8Array]';
return isUint8Array ? u.toString('base64') : btoa(utob(String(u)));
};
var encode = function encode(u) {
var urisafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
return !urisafe ? _encode(u) : _encode(String(u)).replace(/[+\/]/g, function (m0) {
return m0 == '+' ? '-' : '_';
}).replace(/=/g, '');
};
exports.default = {
encode: encode
};
/***/ }),
/***/ 12:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
"add-friends": { outline: "", field: "" },
"add": { outline: "", field: "" },
"add2": { outline: "", field: "" },
"album": { outline: "", field: "" },
"arrow": { outline: "", field: "" },
"at": { outline: "", field: "" },
"back": { outline: "", field: "" },
"back2": { outline: "", field: "" },
"bellring-off": { outline: "", field: "" },
"bellring-on": { outline: "", field: "" },
"camera": { outline: "", field: "" },
"cellphone": { outline: "", field: "" },
"clip": { outline: "", field: "" },
"close": { outline: "", field: "" },
"close2": { outline: "", field: "" },
"comment": { outline: "", field: "" },
"contacts": { outline: "", field: "" },
"copy": { outline: "", field: "" },
"delete-on": { outline: "", field: "" },
"delete": { outline: "", field: "" },
"discover": { outline: "", field: "" },
"display": { outline: "", field: "" },
"done": { outline: "", field: "" },
"done2": { outline: "", field: "" },
"download": { outline: "", field: "" },
"email": { outline: "", field: "" },
"error": { outline: "", field: "" },
"eyes-off": { outline: "", field: "" },
"eyes-on": { outline: "", field: "" },
"folder": { outline: "", field: "" },
"group-detail": { outline: "", field: "" },
"help": { outline: "", field: "" },
"home": { outline: "", field: "" },
"imac": { outline: "", field: "" },
"info": { outline: "", field: "" },
"keyboard": { outline: "", field: "" },
"like": { outline: "", field: "" },
"link": { outline: "", field: "" },
"location": { outline: "", field: "" },
"lock": { outline: "", field: "" },
"max-window": { outline: "", field: "" },
"me": { outline: "", field: "" },
"mike": { outline: "", field: "" },
"mike2": { outline: "", field: "" },
"mobile-contacts": { outline: "", field: "" },
"more": { outline: "", field: "" },
"more2": { outline: "", field: "" },
"mosaic": { outline: "", field: "" },
"music-off": { outline: "", field: "" },
"music": { outline: "", field: "" },
"note": { outline: "", field: "" },
"pad": { outline: "", field: "" },
"pause": { outline: "", field: "" },
"pencil": { outline: "", field: "" },
"photo-wall": { outline: "", field: "" },
"play": { outline: "", field: "" },
"play2": { outline: "", field: "" },
"previous": { outline: "", field: "" },
"previous2": { outline: "", field: "" },
"qr-code": { outline: "", field: "" },
"refresh": { outline: "", field: "" },
"report-problem": { outline: "", field: "" },
"search": { outline: "", field: "" },
"sending": { outline: "", field: "" },
"setting": { outline: "", field: "" },
"share": { outline: "", field: "" },
"shop": { outline: "", field: "" },
"star": { outline: "", field: "" },
"sticker": { outline: "", field: "" },
"tag": { outline: "", field: "" },
"text": { outline: "", field: "" },
"time": { outline: "", field: "" },
"transfer-text": { outline: "", field: "" },
"transfer2": { outline: "", field: "" },
"translate": { outline: "", field: "" },
"tv": { outline: "", field: "" },
"video-call": { outline: "", field: "" },
"voice": { outline: "", field: "" },
"volume-down": { outline: "", field: "" },
"volume-off": { outline: "", field: "" },
"volume-up": { outline: "", field: "" }
};
/***/ })
/******/ });