mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
17 KiB
Plaintext
1 line
17 KiB
Plaintext
{"dependencies":[{"name":"react","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":45,"index":45}}],"key":"RtGiGa+/H7VrI7GDQDLhO1UbpU8=","exportNames":["*"],"imports":1}},{"name":"./createIconSet","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":46},"end":{"line":2,"column":44,"index":90}}],"key":"PQt9ucTb+ABlKWjDhj7L4XHxOIA=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return createMultiStyleIconSet;\n }\n });\n var _react = require(_dependencyMap[0], \"react\");\n var React = _interopDefault(_react);\n var _createIconSet = require(_dependencyMap[1], \"./createIconSet\");\n var createIconSet = _interopDefault(_createIconSet);\n function createMultiStyleIconSet(styles, optionsInput = {}) {\n const styleNames = Object.keys(styles);\n if (styleNames.length === 0) {\n throw new Error('You need to add at least one style');\n }\n const options = {\n defaultStyle: styleNames[0],\n fallbackFamily: _unused => styleNames[0],\n glyphValidator: (_unused, __unused) => true,\n ...optionsInput\n };\n const iconSets = styleNames.reduce((acc, name) => {\n const style = styles[name];\n acc[name] = (0, createIconSet.default)(style.glyphMap || {}, style.fontFamily || '', style.fontFile || '', style.fontStyle || {});\n return acc;\n }, {});\n function styleFromProps(props) {\n return Object.keys(props).reduce((result, propName) => styleNames.indexOf(propName) !== -1 && props[propName] === true ? propName : result, options.defaultStyle);\n }\n function getIconSetForProps(props) {\n const {\n name\n } = props;\n const style = styleFromProps(props);\n if (options.glyphValidator(name, style)) return iconSets[style];\n const family = options.fallbackFamily(name);\n if (styleNames.indexOf(family) === -1) {\n return options.defaultStyle;\n }\n return iconSets[family];\n }\n function selectIconClass(iconSet, iconClass) {\n return iconClass.length > 0 ? iconSet[iconClass] : iconSet;\n }\n function reduceProps(props) {\n return Object.keys(props).reduce((acc, prop) => {\n if (styleNames.indexOf(prop) === -1) {\n acc[prop] = props[prop];\n }\n return acc;\n }, {});\n }\n function getStyledIconSet(style, name = '') {\n if (styleNames.indexOf(style) === -1) {\n return iconSets[options.defaultStyle];\n }\n return !name ? iconSets[styleFromProps({\n [style]: true\n })] : getIconSetForProps({\n name,\n [style]: true\n });\n }\n function getFontFamily(style = options.defaultStyle) {\n return getStyledIconSet(style).getFontFamily();\n }\n function getRawGlyphMap(style = options.defaultStyle) {\n return getStyledIconSet(style).getRawGlyphMap();\n }\n function hasIcon(name, style = options.defaultStyle) {\n return options.glyphValidator(name, style);\n }\n function createStyledIconClass(selectClass = '') {\n class IconClass extends _react.PureComponent {\n static defaultProps = styleNames.reduce((acc, name) => {\n acc[name] = false;\n return acc;\n }, {});\n static font = Object.values(styles).reduce((acc, style) => {\n acc[style.fontFamily] = style.fontFile;\n return acc;\n }, {});\n static StyledIconSet = getStyledIconSet;\n static getFontFamily = getFontFamily;\n static getRawGlyphMap = getRawGlyphMap;\n static hasIcon = hasIcon;\n render() {\n const selectedIconSet = getIconSetForProps(this.props);\n const SelectedIconClass = selectIconClass(selectedIconSet, selectClass);\n const props = reduceProps(this.props);\n return /*#__PURE__*/React.default.createElement(SelectedIconClass, props);\n }\n }\n return IconClass;\n }\n const Icon = createStyledIconClass();\n Icon.Button = createStyledIconClass('Button');\n return Icon;\n }\n});","lineCount":111,"map":[[12,2,3,15,"Object"],[12,8,3,15],[12,9,3,15,"defineProperty"],[12,23,3,15],[12,24,3,15,"exports"],[12,31,3,15],[13,4,3,15,"enumerable"],[13,14,3,15],[14,4,3,15,"get"],[14,7,3,15],[14,18,3,15,"get"],[14,19,3,15],[15,6,3,15],[15,13,3,15,"createMultiStyleIconSet"],[15,36,3,15],[16,4,3,15],[17,2,3,15],[18,2,1,0],[18,6,1,0,"_react"],[18,12,1,0],[18,15,1,0,"require"],[18,22,1,0],[18,23,1,0,"_dependencyMap"],[18,37,1,0],[19,2,1,0],[19,6,1,0,"React"],[19,11,1,0],[19,14,1,0,"_interopDefault"],[19,29,1,0],[19,30,1,0,"_react"],[19,36,1,0],[20,2,2,0],[20,6,2,0,"_createIconSet"],[20,20,2,0],[20,23,2,0,"require"],[20,30,2,0],[20,31,2,0,"_dependencyMap"],[20,45,2,0],[21,2,2,0],[21,6,2,0,"createIconSet"],[21,19,2,0],[21,22,2,0,"_interopDefault"],[21,37,2,0],[21,38,2,0,"_createIconSet"],[21,52,2,0],[22,2,3,15],[22,11,3,24,"createMultiStyleIconSet"],[22,34,3,47,"createMultiStyleIconSet"],[22,35,3,48,"styles"],[22,41,3,54],[22,43,3,56,"optionsInput"],[22,55,3,68],[22,58,3,71],[22,59,3,72],[22,60,3,73],[22,62,3,75],[23,4,4,4],[23,10,4,10,"styleNames"],[23,20,4,20],[23,23,4,23,"Object"],[23,29,4,29],[23,30,4,30,"keys"],[23,34,4,34],[23,35,4,35,"styles"],[23,41,4,41],[23,42,4,42],[24,4,5,4],[24,8,5,8,"styleNames"],[24,18,5,18],[24,19,5,19,"length"],[24,25,5,25],[24,30,5,30],[24,31,5,31],[24,33,5,33],[25,6,6,8],[25,12,6,14],[25,16,6,18,"Error"],[25,21,6,23],[25,22,6,24],[25,58,6,60],[25,59,6,61],[26,4,7,4],[27,4,8,4],[27,10,8,10,"options"],[27,17,8,17],[27,20,8,20],[28,6,9,8,"defaultStyle"],[28,18,9,20],[28,20,9,22,"styleNames"],[28,30,9,32],[28,31,9,33],[28,32,9,34],[28,33,9,35],[29,6,10,8,"fallbackFamily"],[29,20,10,22],[29,22,10,25,"_unused"],[29,29,10,32],[29,33,10,37,"styleNames"],[29,43,10,47],[29,44,10,48],[29,45,10,49],[29,46,10,50],[30,6,11,8,"glyphValidator"],[30,20,11,22],[30,22,11,24,"glyphValidator"],[30,23,11,25,"_unused"],[30,30,11,32],[30,32,11,34,"__unused"],[30,40,11,42],[30,45,11,47],[30,49,11,51],[31,6,12,8],[31,9,12,11,"optionsInput"],[32,4,13,4],[32,5,13,5],[33,4,14,4],[33,10,14,10,"iconSets"],[33,18,14,18],[33,21,14,21,"styleNames"],[33,31,14,31],[33,32,14,32,"reduce"],[33,38,14,38],[33,39,14,39],[33,40,14,40,"acc"],[33,43,14,43],[33,45,14,45,"name"],[33,49,14,49],[33,54,14,54],[34,6,15,8],[34,12,15,14,"style"],[34,17,15,19],[34,20,15,22,"styles"],[34,26,15,28],[34,27,15,29,"name"],[34,31,15,33],[34,32,15,34],[35,6,16,8,"acc"],[35,9,16,11],[35,10,16,12,"name"],[35,14,16,16],[35,15,16,17],[35,18,16,20],[35,22,16,20,"createIconSet"],[35,35,16,33],[35,36,16,33,"default"],[35,43,16,33],[35,45,16,34,"style"],[35,50,16,39],[35,51,16,40,"glyphMap"],[35,59,16,48],[35,63,16,52],[35,64,16,53],[35,65,16,54],[35,67,16,56,"style"],[35,72,16,61],[35,73,16,62,"fontFamily"],[35,83,16,72],[35,87,16,76],[35,89,16,78],[35,91,16,80,"style"],[35,96,16,85],[35,97,16,86,"fontFile"],[35,105,16,94],[35,109,16,98],[35,111,16,100],[35,113,16,102,"style"],[35,118,16,107],[35,119,16,108,"fontStyle"],[35,128,16,117],[35,132,16,121],[35,133,16,122],[35,134,16,123],[35,135,16,124],[36,6,17,8],[36,13,17,15,"acc"],[36,16,17,18],[37,4,18,4],[37,5,18,5],[37,7,18,7],[37,8,18,8],[37,9,18,9],[37,10,18,10],[38,4,19,4],[38,13,19,13,"styleFromProps"],[38,27,19,27,"styleFromProps"],[38,28,19,28,"props"],[38,33,19,33],[38,35,19,35],[39,6,20,8],[39,13,20,15,"Object"],[39,19,20,21],[39,20,20,22,"keys"],[39,24,20,26],[39,25,20,27,"props"],[39,30,20,32],[39,31,20,33],[39,32,20,34,"reduce"],[39,38,20,40],[39,39,20,41],[39,40,20,42,"result"],[39,46,20,48],[39,48,20,50,"propName"],[39,56,20,58],[39,61,20,63,"styleNames"],[39,71,20,73],[39,72,20,74,"indexOf"],[39,79,20,81],[39,80,20,82,"propName"],[39,88,20,90],[39,89,20,91],[39,94,20,96],[39,95,20,97],[39,96,20,98],[39,100,20,102,"props"],[39,105,20,107],[39,106,20,108,"propName"],[39,114,20,116],[39,115,20,117],[39,120,20,122],[39,124,20,126],[39,127,20,129,"propName"],[39,135,20,137],[39,138,20,140,"result"],[39,144,20,146],[39,146,20,148,"options"],[39,153,20,155],[39,154,20,156,"defaultStyle"],[39,166,20,168],[39,167,20,169],[40,4,21,4],[41,4,22,4],[41,13,22,13,"getIconSetForProps"],[41,31,22,31,"getIconSetForProps"],[41,32,22,32,"props"],[41,37,22,37],[41,39,22,39],[42,6,23,8],[42,12,23,14],[43,8,23,16,"name"],[44,6,23,21],[44,7,23,22],[44,10,23,25,"props"],[44,15,23,30],[45,6,24,8],[45,12,24,14,"style"],[45,17,24,19],[45,20,24,22,"styleFromProps"],[45,34,24,36],[45,35,24,37,"props"],[45,40,24,42],[45,41,24,43],[46,6,25,8],[46,10,25,12,"options"],[46,17,25,19],[46,18,25,20,"glyphValidator"],[46,32,25,34],[46,33,25,35,"name"],[46,37,25,39],[46,39,25,41,"style"],[46,44,25,46],[46,45,25,47],[46,47,26,12],[46,54,26,19,"iconSets"],[46,62,26,27],[46,63,26,28,"style"],[46,68,26,33],[46,69,26,34],[47,6,27,8],[47,12,27,14,"family"],[47,18,27,20],[47,21,27,23,"options"],[47,28,27,30],[47,29,27,31,"fallbackFamily"],[47,43,27,45],[47,44,27,46,"name"],[47,48,27,50],[47,49,27,51],[48,6,28,8],[48,10,28,12,"styleNames"],[48,20,28,22],[48,21,28,23,"indexOf"],[48,28,28,30],[48,29,28,31,"family"],[48,35,28,37],[48,36,28,38],[48,41,28,43],[48,42,28,44],[48,43,28,45],[48,45,28,47],[49,8,29,12],[49,15,29,19,"options"],[49,22,29,26],[49,23,29,27,"defaultStyle"],[49,35,29,39],[50,6,30,8],[51,6,31,8],[51,13,31,15,"iconSets"],[51,21,31,23],[51,22,31,24,"family"],[51,28,31,30],[51,29,31,31],[52,4,32,4],[53,4,33,4],[53,13,33,13,"selectIconClass"],[53,28,33,28,"selectIconClass"],[53,29,33,29,"iconSet"],[53,36,33,36],[53,38,33,38,"iconClass"],[53,47,33,47],[53,49,33,49],[54,6,34,8],[54,13,34,15,"iconClass"],[54,22,34,24],[54,23,34,25,"length"],[54,29,34,31],[54,32,34,34],[54,33,34,35],[54,36,34,38,"iconSet"],[54,43,34,45],[54,44,34,46,"iconClass"],[54,53,34,55],[54,54,34,56],[54,57,34,59,"iconSet"],[54,64,34,66],[55,4,35,4],[56,4,36,4],[56,13,36,13,"reduceProps"],[56,24,36,24,"reduceProps"],[56,25,36,25,"props"],[56,30,36,30],[56,32,36,32],[57,6,37,8],[57,13,37,15,"Object"],[57,19,37,21],[57,20,37,22,"keys"],[57,24,37,26],[57,25,37,27,"props"],[57,30,37,32],[57,31,37,33],[57,32,37,34,"reduce"],[57,38,37,40],[57,39,37,41],[57,40,37,42,"acc"],[57,43,37,45],[57,45,37,47,"prop"],[57,49,37,51],[57,54,37,56],[58,8,38,12],[58,12,38,16,"styleNames"],[58,22,38,26],[58,23,38,27,"indexOf"],[58,30,38,34],[58,31,38,35,"prop"],[58,35,38,39],[58,36,38,40],[58,41,38,45],[58,42,38,46],[58,43,38,47],[58,45,38,49],[59,10,39,16,"acc"],[59,13,39,19],[59,14,39,20,"prop"],[59,18,39,24],[59,19,39,25],[59,22,39,28,"props"],[59,27,39,33],[59,28,39,34,"prop"],[59,32,39,38],[59,33,39,39],[60,8,40,12],[61,8,41,12],[61,15,41,19,"acc"],[61,18,41,22],[62,6,42,8],[62,7,42,9],[62,9,42,11],[62,10,42,12],[62,11,42,13],[62,12,42,14],[63,4,43,4],[64,4,44,4],[64,13,44,13,"getStyledIconSet"],[64,29,44,29,"getStyledIconSet"],[64,30,44,30,"style"],[64,35,44,35],[64,37,44,37,"name"],[64,41,44,41],[64,44,44,44],[64,46,44,46],[64,48,44,48],[65,6,45,8],[65,10,45,12,"styleNames"],[65,20,45,22],[65,21,45,23,"indexOf"],[65,28,45,30],[65,29,45,31,"style"],[65,34,45,36],[65,35,45,37],[65,40,45,42],[65,41,45,43],[65,42,45,44],[65,44,45,46],[66,8,46,12],[66,15,46,19,"iconSets"],[66,23,46,27],[66,24,46,28,"options"],[66,31,46,35],[66,32,46,36,"defaultStyle"],[66,44,46,48],[66,45,46,49],[67,6,47,8],[68,6,48,8],[68,13,48,15],[68,14,48,16,"name"],[68,18,48,20],[68,21,49,14,"iconSets"],[68,29,49,22],[68,30,49,23,"styleFromProps"],[68,44,49,37],[68,45,49,38],[69,8,49,40],[69,9,49,41,"style"],[69,14,49,46],[69,17,49,49],[70,6,49,54],[70,7,49,55],[70,8,49,56],[70,9,49,57],[70,12,50,14,"getIconSetForProps"],[70,30,50,32],[70,31,50,33],[71,8,50,35,"name"],[71,12,50,39],[72,8,50,41],[72,9,50,42,"style"],[72,14,50,47],[72,17,50,50],[73,6,50,55],[73,7,50,56],[73,8,50,57],[74,4,51,4],[75,4,52,4],[75,13,52,13,"getFontFamily"],[75,26,52,26,"getFontFamily"],[75,27,52,27,"style"],[75,32,52,32],[75,35,52,35,"options"],[75,42,52,42],[75,43,52,43,"defaultStyle"],[75,55,52,55],[75,57,52,57],[76,6,53,8],[76,13,53,15,"getStyledIconSet"],[76,29,53,31],[76,30,53,32,"style"],[76,35,53,37],[76,36,53,38],[76,37,53,39,"getFontFamily"],[76,50,53,52],[76,51,53,53],[76,52,53,54],[77,4,54,4],[78,4,55,4],[78,13,55,13,"getRawGlyphMap"],[78,27,55,27,"getRawGlyphMap"],[78,28,55,28,"style"],[78,33,55,33],[78,36,55,36,"options"],[78,43,55,43],[78,44,55,44,"defaultStyle"],[78,56,55,56],[78,58,55,58],[79,6,56,8],[79,13,56,15,"getStyledIconSet"],[79,29,56,31],[79,30,56,32,"style"],[79,35,56,37],[79,36,56,38],[79,37,56,39,"getRawGlyphMap"],[79,51,56,53],[79,52,56,54],[79,53,56,55],[80,4,57,4],[81,4,58,4],[81,13,58,13,"hasIcon"],[81,20,58,20,"hasIcon"],[81,21,58,21,"name"],[81,25,58,25],[81,27,58,27,"style"],[81,32,58,32],[81,35,58,35,"options"],[81,42,58,42],[81,43,58,43,"defaultStyle"],[81,55,58,55],[81,57,58,57],[82,6,59,8],[82,13,59,15,"options"],[82,20,59,22],[82,21,59,23,"glyphValidator"],[82,35,59,37],[82,36,59,38,"name"],[82,40,59,42],[82,42,59,44,"style"],[82,47,59,49],[82,48,59,50],[83,4,60,4],[84,4,61,4],[84,13,61,13,"createStyledIconClass"],[84,34,61,34,"createStyledIconClass"],[84,35,61,35,"selectClass"],[84,46,61,46],[84,49,61,49],[84,51,61,51],[84,53,61,53],[85,6,62,8],[85,12,62,14,"IconClass"],[85,21,62,23],[85,30,62,32,"PureComponent"],[85,36,62,45],[85,37,62,45,"PureComponent"],[85,50,62,45],[85,51,62,46],[86,8,63,12],[86,15,63,19,"defaultProps"],[86,27,63,31],[86,30,63,34,"styleNames"],[86,40,63,44],[86,41,63,45,"reduce"],[86,47,63,51],[86,48,63,52],[86,49,63,53,"acc"],[86,52,63,56],[86,54,63,58,"name"],[86,58,63,62],[86,63,63,67],[87,10,64,16,"acc"],[87,13,64,19],[87,14,64,20,"name"],[87,18,64,24],[87,19,64,25],[87,22,64,28],[87,27,64,33],[88,10,65,16],[88,17,65,23,"acc"],[88,20,65,26],[89,8,66,12],[89,9,66,13],[89,11,66,15],[89,12,66,16],[89,13,66,17],[89,14,66,18],[90,8,67,12],[90,15,67,19,"font"],[90,19,67,23],[90,22,67,26,"Object"],[90,28,67,32],[90,29,67,33,"values"],[90,35,67,39],[90,36,67,40,"styles"],[90,42,67,46],[90,43,67,47],[90,44,67,48,"reduce"],[90,50,67,54],[90,51,67,55],[90,52,67,56,"acc"],[90,55,67,59],[90,57,67,61,"style"],[90,62,67,66],[90,67,67,71],[91,10,68,16,"acc"],[91,13,68,19],[91,14,68,20,"style"],[91,19,68,25],[91,20,68,26,"fontFamily"],[91,30,68,36],[91,31,68,37],[91,34,68,40,"style"],[91,39,68,45],[91,40,68,46,"fontFile"],[91,48,68,54],[92,10,69,16],[92,17,69,23,"acc"],[92,20,69,26],[93,8,70,12],[93,9,70,13],[93,11,70,15],[93,12,70,16],[93,13,70,17],[93,14,70,18],[94,8,72,12],[94,15,72,19,"StyledIconSet"],[94,28,72,32],[94,31,72,35,"getStyledIconSet"],[94,47,72,51],[95,8,73,12],[95,15,73,19,"getFontFamily"],[95,28,73,32],[95,31,73,35,"getFontFamily"],[95,44,73,48],[96,8,74,12],[96,15,74,19,"getRawGlyphMap"],[96,29,74,33],[96,32,74,36,"getRawGlyphMap"],[96,46,74,50],[97,8,75,12],[97,15,75,19,"hasIcon"],[97,22,75,26],[97,25,75,29,"hasIcon"],[97,32,75,36],[98,8,76,12,"render"],[98,14,76,18,"render"],[98,15,76,18],[98,17,76,21],[99,10,77,16],[99,16,77,22,"selectedIconSet"],[99,31,77,37],[99,34,77,40,"getIconSetForProps"],[99,52,77,58],[99,53,77,59],[99,57,77,63],[99,58,77,64,"props"],[99,63,77,69],[99,64,77,70],[100,10,78,16],[100,16,78,22,"SelectedIconClass"],[100,33,78,39],[100,36,78,42,"selectIconClass"],[100,51,78,57],[100,52,78,58,"selectedIconSet"],[100,67,78,73],[100,69,78,75,"selectClass"],[100,80,78,86],[100,81,78,87],[101,10,79,16],[101,16,79,22,"props"],[101,21,79,27],[101,24,79,30,"reduceProps"],[101,35,79,41],[101,36,79,42],[101,40,79,46],[101,41,79,47,"props"],[101,46,79,52],[101,47,79,53],[102,10,80,16],[102,30,80,23,"React"],[102,35,80,28],[102,36,80,28,"default"],[102,43,80,28],[102,44,80,29,"createElement"],[102,57,80,42],[102,58,80,43,"SelectedIconClass"],[102,75,80,60],[102,77,80,62,"props"],[102,82,80,67],[102,83,80,68],[103,8,81,12],[104,6,82,8],[105,6,83,8],[105,13,83,15,"IconClass"],[105,22,83,24],[106,4,84,4],[107,4,85,4],[107,10,85,10,"Icon"],[107,14,85,14],[107,17,85,17,"createStyledIconClass"],[107,38,85,38],[107,39,85,39],[107,40,85,40],[108,4,86,4,"Icon"],[108,8,86,8],[108,9,86,9,"Button"],[108,15,86,15],[108,18,86,18,"createStyledIconClass"],[108,39,86,39],[108,40,86,40],[108,48,86,48],[108,49,86,49],[109,4,87,4],[109,11,87,11,"Icon"],[109,15,87,15],[110,2,88,0],[111,0,88,1],[111,3]],"functionMap":{"names":["<global>","createMultiStyleIconSet","options.fallbackFamily","options.glyphValidator","styleNames.reduce$argument_0","styleFromProps","Object.keys.reduce$argument_0","getIconSetForProps","selectIconClass","reduceProps","getStyledIconSet","getFontFamily","getRawGlyphMap","hasIcon","createStyledIconClass","IconClass","Object.values.reduce$argument_0","IconClass#render"],"mappings":"AAA;eCE;wBCO,0BD;wBEC,2BF;uCGG;KHI;IIC;yCCC,yGD;KJC;IMC;KNU;IOC;KPE;IQC;yCHC;SGK;KRC;ISC;KTO;IUC;KVE;IWC;KXE;IYC;KZE;IaC;QCC;oDXC;aWG;uDCC;aDG;YEM;aFK;SDC;KbE;CDI"},"hasCjsExports":false},"type":"js/module"}]} |