@capillarytech/blaze-ui 2.0.5 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CapImage/index.js","mappings":";;;;;;;AAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACa,MAAM,mBAAO,CAAC,IAAO,6KAA6K;AAC/M,kBAAkB,UAAU,eAAe,qBAAqB,6BAA6B,0BAA0B,0DAA0D,4EAA4E,OAAO,wDAAwD,gBAAgB,GAAG,WAAW,GAAG,YAAY;;;;;;;;;ACV5V;;AAEb;AACA;AACA,E;;;;;;;;;;;;ACJA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,mBAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,mBAAA;AAGAA,mBAAA;AAAuB,IAAAE,WAAA,GAAAF,mBAAA;AAAA,MAAAG,SAAA;AAAA,SAAAJ,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAAA,SAAAO,8BAAAJ,CAAA,EAAAX,CAAA,gBAAAW,CAAA,iBAAAD,CAAA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AACA;AACA;AACA,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,wB;;;;;;;;ACrFa;;AAEb,IAAI,IAAqC;AACzC,EAAE,0CAAqE;AACvE,EAAE,KAAK;AAAA,EAEN;;;;;;;;;ACNY;;AAEb;AACA;AACA,cAAc,KAAwC,GAAG,sBAAiB,GAAG,CAAI;AACjF;AACA;AACA;AACA;AACA,gD;;;;;;;;ACTa;;AAEb;AACA;AACA;AACA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;AACA;AACA,qBAAqB,6BAA6B;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClFA,MAAkG;AAClG,MAAiG;AACjG,MAA+F;AAC/F,MAAkH;AAClH,MAA2G;AAC3G;AACA,MAA2M;AAC3M;AACA;;AAEA;;AAEA;AACA,wBAAwB,kHAAa;AACrC,iBAAiB,uGAAa;AAC9B,iBAAiB,wGAAM;AACvB,6BAA6B,sGAAkB;;AAE/C,aAAa,0GAAG,CAAC,8KAAO;;;;AAIqJ;AAC7K,OAAO,iEAAe,8KAAO,IAAI,qLAAc,GAAG,qLAAc,YAAY,EAAC;;;;;;;;;ACxBhE;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA,gDAAgD;AAChD;AACA;AACA,qFAAqF;AACrF;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E;;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB;;AAEhB;AACA;;AAEA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK,KAA6B;AAClC;AACA;AACA,GAAG,SAAS,IAA4E;AACxF;AACA,EAAE,iCAAqB,EAAE,mCAAE;AAC3B;AACA,GAAG;AAAA,kGAAC;AACJ,GAAG,KAAK;AAAA,EAEN;AACF,CAAC;;;;;;;;;AC5EY;;AAEb;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;;;;;;;;ACjCA,kC;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,mC;;;;;;;;;;;;;ACAA,IAAAU,SAAA,GAAAjC,sBAAA,CAAAC,mBAAA;AAAqC+B,kBAAA,GAAAC,SAAA,CAAA1B,OAAA;AAAA,SAAAP,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA,K","sources":["webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@capillarytech/blaze-ui/./node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://@capillarytech/blaze-ui/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://@capillarytech/blaze-ui/./components/CapImage/CapImage.tsx","webpack://@capillarytech/blaze-ui/./components/CapImage/styles.scss","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js","webpack://@capillarytech/blaze-ui/./node_modules/react/jsx-runtime.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@capillarytech/blaze-ui/./components/CapImage/styles.scss?6a77","webpack://@capillarytech/blaze-ui/./node_modules/css-loader/dist/runtime/api.js","webpack://@capillarytech/blaze-ui/./node_modules/classnames/index.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@capillarytech/blaze-ui/external commonjs2 {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"amd\":\"react\",\"root\":\"React\"}","webpack://@capillarytech/blaze-ui/webpack/bootstrap","webpack://@capillarytech/blaze-ui/webpack/runtime/compat get default export","webpack://@capillarytech/blaze-ui/webpack/runtime/define property getters","webpack://@capillarytech/blaze-ui/webpack/runtime/hasOwnProperty shorthand","webpack://@capillarytech/blaze-ui/webpack/runtime/make namespace object","webpack://@capillarytech/blaze-ui/webpack/runtime/nonce","webpack://@capillarytech/blaze-ui/./components/CapImage/index.ts"],"sourcesContent":["\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import classNames from 'classnames';\nimport React from 'react';\n\nimport { CapImageProps } from './CapImage.interfaces';\nimport './styles.scss';\n\nconst clsPrefix = 'cap-image-v2';\n\nconst CapImage: React.FC<CapImageProps> = ({ className, src, alt, ...rest }) => {\n // Only render if src is provided\n if (!src) {\n return null;\n }\n\n return <img className={classNames(clsPrefix, className)} src={src} alt={alt} {...rest} />;\n};\n\nexport default CapImage;\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-image-v2{background-repeat:no-repeat}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"cap-image-v2\": `blaze-ui-cap-image-v2`\n};\nmodule.exports = ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/* istanbul ignore next */\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join(\"\\n\");\n };\n}();\n\n/* istanbul ignore next */\nfunction apply(styleElement, index, remove, obj) {\n var css;\n if (remove) {\n css = \"\";\n } else {\n css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n }\n\n // For old IE\n /* istanbul ignore if */\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = styleElement.childNodes;\n if (childNodes[index]) {\n styleElement.removeChild(childNodes[index]);\n }\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index]);\n } else {\n styleElement.appendChild(cssNode);\n }\n }\n}\nvar singletonData = {\n singleton: null,\n singletonCounter: 0\n};\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") return {\n update: function update() {},\n remove: function remove() {}\n };\n\n // eslint-disable-next-line no-undef,no-use-before-define\n var styleIndex = singletonData.singletonCounter++;\n var styleElement =\n // eslint-disable-next-line no-undef,no-use-before-define\n singletonData.singleton || (\n // eslint-disable-next-line no-undef,no-use-before-define\n singletonData.singleton = options.insertStyleElement(options));\n return {\n update: function update(obj) {\n apply(styleElement, styleIndex, false, obj);\n },\n remove: function remove(obj) {\n apply(styleElement, styleIndex, true, obj);\n }\n };\n}\nmodule.exports = domAPI;","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n \n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./styles.scss\";\n \n \n\nvar options = {};\n\n;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./styles.scss\";\n export default content && content.locals ? content.locals : undefined;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","export { default } from './CapImage';\nexport type { CapImageProps } from './CapImage.interfaces';\n"],"names":["_classnames","_interopRequireDefault","require","_react","_jsxRuntime","_excluded","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutPropertiesLoose","indexOf","clsPrefix","CapImage","_ref","className","src","alt","rest","jsx","classNames","_default","exports","_CapImage"],"sourceRoot":""}
@@ -0,0 +1,59 @@
1
+ export declare const mockImageUrls: {
2
+ valid: string;
3
+ valid2: string;
4
+ validHttps: string;
5
+ validHttp: string;
6
+ dataUri: string;
7
+ relative: string;
8
+ broken: string;
9
+ empty: string;
10
+ };
11
+ export declare const mockAltTexts: {
12
+ normal: string;
13
+ descriptive: string;
14
+ empty: string;
15
+ long: string;
16
+ };
17
+ export declare const mockClassNames: {
18
+ single: string;
19
+ multiple: string;
20
+ withSpace: string;
21
+ };
22
+ export declare const mockHtmlAttributes: {
23
+ standard: {
24
+ width: string;
25
+ height: string;
26
+ title: string;
27
+ loading: "lazy";
28
+ crossOrigin: "anonymous";
29
+ };
30
+ style: {
31
+ style: {
32
+ border: string;
33
+ borderRadius: string;
34
+ };
35
+ };
36
+ data: {
37
+ 'data-testid': string;
38
+ 'data-category': string;
39
+ };
40
+ };
41
+ export declare const defaultProps: {
42
+ src: string;
43
+ alt: string;
44
+ };
45
+ export declare const propsWithClassName: {
46
+ src: string;
47
+ alt: string;
48
+ className: string;
49
+ };
50
+ export declare const propsWithHtmlAttributes: {
51
+ width: string;
52
+ height: string;
53
+ title: string;
54
+ loading: "lazy";
55
+ crossOrigin: "anonymous";
56
+ src: string;
57
+ alt: string;
58
+ };
59
+ //# sourceMappingURL=CapImage.mockData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CapImage.mockData.d.ts","sourceRoot":"","sources":["../../../components/CapImage/tests/CapImage.mockData.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;CAUzB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;CAKxB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;CAe9B,CAAC;AAEF,eAAO,MAAM,YAAY;;;CAGxB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;CAInC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CapImage.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CapImage.test.d.ts","sourceRoot":"","sources":["../../../components/CapImage/tests/CapImage.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="152" height="152" viewBox="0 0 152 152">
2
+ <g fill="none">
3
+ <path fill="#FFD24B" d="M25.212 46.122s-3.37-.85-3.25 3.07c.12 3.92 3.79 2.17 4.87 1.39s2.8-3.62-1.62-4.46zm9.89-15.47s-7.32 8-2.61 12.19c3.64 3.26 15-2.61 15.63-8.13.51-3.96-5.7-11.04-12.99-4.06h-.03zm106.22 14.09c-10.6-30.12-34.83-37.66-54.41-27.44-11.16 5.83-23.94 14.53-36 22.83-8.196 5.482-16.84 10.262-25.84 14.29-3.27 1.454-6.303 3.389-9 5.74-7.32 6.46-17 19.69-6.35 39.57.05.08.09.17.13.24 6.47 11.92 18.56 21.65 33 27.94l.35.16c16.36 7 35.73 9.63 53.48 6 .48-.08 1-.19 1.45-.3 4.849-1.065 9.57-2.647 14.08-4.72 11.78-5.45 20.1-13.15 25.6-22.11 11.27-18.35 10.62-41.96 3.51-62.2z"/>
4
+ <path fill="#000" d="M57.042 61.592c-3.34-.09-1.69-.35 2.43-1.21 3.51-.73 8.16-1.89 10.66-3.68 9-6.44 18-6.58 23.1 5.54 10.78 25.68 21.29 51.26 6.62 72.53 0 0 4.11-19.74.37-30 0 0-6.87 9.38-17.32 8.69 0 0 17-22.64 9-30.42 0 0-19.39-10-17.47 8.69 0 0 2.18 12.12 6.55 18.07 0 0-7.65-.46-11.86-6.17 0 0-2.38 9.27.76 32 0 0-14.68-17.43-1.77-51.53 2.29-5.98 16.1-21.74-11.07-22.51z"/>
5
+ <path fill="#FFF" d="M69.452 132.792c-3.14-22.69-.24-29.19-.24-29.19 2.91 3.94 7.46 5.38 10 5.9.333.026.651-.139.822-.424.172-.286.167-.645-.012-.926-3.66-6.28-5.49-16.45-5.49-16.45-2.48-19.69 15.45-14 18.16-9.89 5.74 8.84-5.06 25-8.72 30.2-.197.265-.235.615-.1.916.135.3.422.505.75.534 9.51-.34 15.65-8.72 15.65-8.72 3.74 10.29-.47 29.73-.47 29.73l-.43 4.09-29.46-2.94-.46-2.83z"/>
6
+ <path fill="#A61426" d="M90.212 132.702c-.005 2.76-1.964 5.13-4.674 5.654-2.71.524-5.412-.944-6.446-3.504-.27-.67-.41-1.387-.41-2.11 0-3.18 2.59-9.1 5.77-9.1 1.322.141 2.508.877 3.22 2 .375.5.71 1.028 1 1.58.026.065.056.129.09.19.866 1.636 1.361 3.442 1.45 5.29z"/>
7
+ <path fill="#D5192E" d="M89.822 131.882c0 2.592-1.726 4.867-4.222 5.566-2.496.698-5.152-.35-6.498-2.566-.27-.67-.41-1.387-.41-2.11 0-3.18 2.59-9.1 5.77-9.1 1.322.141 2.508.877 3.22 2 .375.5.71 1.028 1 1.58.026.065.056.129.09.19.622 1.403.978 2.908 1.05 4.44z"/>
8
+ <path fill="#ED1D34" d="M89.212 130.992c0 1.53-.608 2.998-1.69 4.08-1.082 1.082-2.55 1.69-4.08 1.69-1.648.002-3.216-.709-4.3-1.95-.27-.67-.41-1.387-.41-2.11 0-3.18 2.59-9.1 5.77-9.1 1.322.141 2.508.877 3.22 2 .89 1.665 1.399 3.505 1.49 5.39z"/>
9
+ <circle cx="78.262" cy="58.312" r="1.34" fill="#FFF"/>
10
+ <circle cx="78.262" cy="58.312" r="1" fill="#000"/>
11
+ <ellipse cx="82.553" cy="126.552" fill="#F47988" rx="1.51" ry="1" transform="rotate(-62.05 82.553 126.552)"/>
12
+ </g>
13
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="152" height="152" viewBox="0 0 152 152">
2
+ <g fill="none">
3
+ <path fill="#FFD24B" d="M25.212 46.122s-3.37-.85-3.25 3.07c.12 3.92 3.79 2.17 4.87 1.39s2.8-3.62-1.62-4.46zm9.89-15.47s-7.32 8-2.61 12.19c3.64 3.26 15-2.61 15.63-8.13.51-3.96-5.7-11.04-12.99-4.06h-.03zm106.22 14.09c-10.6-30.12-34.83-37.66-54.41-27.44-11.16 5.83-23.94 14.53-36 22.83-8.196 5.482-16.84 10.262-25.84 14.29-3.27 1.454-6.303 3.389-9 5.74-7.32 6.46-17 19.69-6.35 39.57.05.08.09.17.13.24 6.47 11.92 18.56 21.65 33 27.94l.35.16c16.36 7 35.73 9.63 53.48 6 .48-.08 1-.19 1.45-.3 4.849-1.065 9.57-2.647 14.08-4.72 11.78-5.45 20.1-13.15 25.6-22.11 11.27-18.35 10.62-41.96 3.51-62.2z"/>
4
+ <path fill="#000" d="M57.042 61.592c-3.34-.09-1.69-.35 2.43-1.21 3.51-.73 8.16-1.89 10.66-3.68 9-6.44 18-6.58 23.1 5.54 10.78 25.68 21.29 51.26 6.62 72.53 0 0 4.11-19.74.37-30 0 0-6.87 9.38-17.32 8.69 0 0 17-22.64 9-30.42 0 0-19.39-10-17.47 8.69 0 0 2.18 12.12 6.55 18.07 0 0-7.65-.46-11.86-6.17 0 0-2.38 9.27.76 32 0 0-14.68-17.43-1.77-51.53 2.29-5.98 16.1-21.74-11.07-22.51z"/>
5
+ <path fill="#FFF" d="M69.452 132.792c-3.14-22.69-.24-29.19-.24-29.19 2.91 3.94 7.46 5.38 10 5.9.333.026.651-.139.822-.424.172-.286.167-.645-.012-.926-3.66-6.28-5.49-16.45-5.49-16.45-2.48-19.69 15.45-14 18.16-9.89 5.74 8.84-5.06 25-8.72 30.2-.197.265-.235.615-.1.916.135.3.422.505.75.534 9.51-.34 15.65-8.72 15.65-8.72 3.74 10.29-.47 29.73-.47 29.73l-.43 4.09-29.46-2.94-.46-2.83z"/>
6
+ <path fill="#A61426" d="M90.212 132.702c-.005 2.76-1.964 5.13-4.674 5.654-2.71.524-5.412-.944-6.446-3.504-.27-.67-.41-1.387-.41-2.11 0-3.18 2.59-9.1 5.77-9.1 1.322.141 2.508.877 3.22 2 .375.5.71 1.028 1 1.58.026.065.056.129.09.19.866 1.636 1.361 3.442 1.45 5.29z"/>
7
+ <path fill="#D5192E" d="M89.822 131.882c0 2.592-1.726 4.867-4.222 5.566-2.496.698-5.152-.35-6.498-2.566-.27-.67-.41-1.387-.41-2.11 0-3.18 2.59-9.1 5.77-9.1 1.322.141 2.508.877 3.22 2 .375.5.71 1.028 1 1.58.026.065.056.129.09.19.622 1.403.978 2.908 1.05 4.44z"/>
8
+ <path fill="#ED1D34" d="M89.212 130.992c0 1.53-.608 2.998-1.69 4.08-1.082 1.082-2.55 1.69-4.08 1.69-1.648.002-3.216-.709-4.3-1.95-.27-.67-.41-1.387-.41-2.11 0-3.18 2.59-9.1 5.77-9.1 1.322.141 2.508.877 3.22 2 .89 1.665 1.399 3.505 1.49 5.39z"/>
9
+ <circle cx="78.262" cy="58.312" r="1.34" fill="#FFF"/>
10
+ <circle cx="78.262" cy="58.312" r="1" fill="#000"/>
11
+ <ellipse cx="82.553" cy="126.552" fill="#F47988" rx="1.51" ry="1" transform="rotate(-62.05 82.553 126.552)"/>
12
+ </g>
13
+ </svg>
package/dist/index.d.ts CHANGED
@@ -18,6 +18,8 @@ export { default as CapFormItem } from './CapFormItem';
18
18
  export type { CapFormItemProps } from './CapFormItem';
19
19
  export { default as CapIcon } from './CapIcon';
20
20
  export type { CapIconProps } from './CapIcon';
21
+ export { default as CapImage } from './CapImage';
22
+ export type { CapImageProps } from './CapImage';
21
23
  export { default as CapInput } from './CapInput';
22
24
  export type { CapInputProps } from './CapInput';
23
25
  export { default as CapLabel } from './CapLabel';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,W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,aAAa,CAAC;AAGnD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,cAAc,gBAAgB,CAAC;AAG/B,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -7011,6 +7011,44 @@ var locale = _objectSpread(_objectSpread({}, commonLocale), {}, {
7011
7011
 
7012
7012
  /***/ }),
7013
7013
 
7014
+ /***/ 2011:
7015
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7016
+
7017
+ "use strict";
7018
+
7019
+
7020
+ exports.__esModule = true;
7021
+ exports["default"] = void 0;
7022
+ var _classnames = _interopRequireDefault(__webpack_require__(6942));
7023
+ var _react = _interopRequireDefault(__webpack_require__(9206));
7024
+ __webpack_require__(5158);
7025
+ var _jsxRuntime = __webpack_require__(4848);
7026
+ const _excluded = ["className", "src", "alt"];
7027
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7028
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
7029
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
7030
+ const clsPrefix = 'cap-image-v2';
7031
+ const CapImage = _ref => {
7032
+ let {
7033
+ className,
7034
+ src,
7035
+ alt
7036
+ } = _ref,
7037
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
7038
+ // Only render if src is provided
7039
+ if (!src) {
7040
+ return null;
7041
+ }
7042
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("img", _extends({
7043
+ className: (0, _classnames.default)(clsPrefix, className),
7044
+ src: src,
7045
+ alt: alt
7046
+ }, rest));
7047
+ };
7048
+ var _default = exports["default"] = CapImage;
7049
+
7050
+ /***/ }),
7051
+
7014
7052
  /***/ 2077:
7015
7053
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7016
7054
 
@@ -7521,6 +7559,7 @@ var _exportNames = {
7521
7559
  CapForm: true,
7522
7560
  CapFormItem: true,
7523
7561
  CapIcon: true,
7562
+ CapImage: true,
7524
7563
  CapInput: true,
7525
7564
  CapLabel: true,
7526
7565
  CapMenu: true,
@@ -7541,7 +7580,7 @@ var _exportNames = {
7541
7580
  getCapUIFontLinks: true,
7542
7581
  styledVars: true
7543
7582
  };
7544
- exports.styledVars = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapUnifiedSelect = exports.CapTooltipWithInfo = exports.CapTooltip = exports.CapTable = exports.CapTab = exports.CapSwitch = exports.CapSpin = exports.CapSkeleton = exports.CapRow = exports.CapRadio = exports.CapMenu = exports.CapLabel = exports.CapInput = exports.CapIcon = exports.CapFormItem = exports.CapForm = exports.CapDropdown = exports.CapDivider = exports.CapColumn = exports.CapCheckbox = exports.CapCard = exports.CapButton = exports.CapAlert = void 0;
7583
+ exports.styledVars = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapUnifiedSelect = exports.CapTooltipWithInfo = exports.CapTooltip = exports.CapTable = exports.CapTab = exports.CapSwitch = exports.CapSpin = exports.CapSkeleton = exports.CapRow = exports.CapRadio = exports.CapMenu = exports.CapLabel = exports.CapInput = exports.CapImage = exports.CapIcon = exports.CapFormItem = exports.CapForm = exports.CapDropdown = exports.CapDivider = exports.CapColumn = exports.CapCheckbox = exports.CapCard = exports.CapButton = exports.CapAlert = void 0;
7545
7584
  var _CapAlert = _interopRequireDefault(__webpack_require__(8501));
7546
7585
  exports.CapAlert = _CapAlert.default;
7547
7586
  var _CapButton = _interopRequireDefault(__webpack_require__(8793));
@@ -7562,6 +7601,8 @@ var _CapFormItem = _interopRequireDefault(__webpack_require__(3884));
7562
7601
  exports.CapFormItem = _CapFormItem.default;
7563
7602
  var _CapIcon = _interopRequireDefault(__webpack_require__(8244));
7564
7603
  exports.CapIcon = _CapIcon.default;
7604
+ var _CapImage = _interopRequireDefault(__webpack_require__(5842));
7605
+ exports.CapImage = _CapImage.default;
7565
7606
  var _CapInput = _interopRequireDefault(__webpack_require__(3991));
7566
7607
  exports.CapInput = _CapInput.default;
7567
7608
  var _CapLabel = _interopRequireDefault(__webpack_require__(3737));
@@ -28183,6 +28224,24 @@ if (false) // removed by dead control flow
28183
28224
  {}
28184
28225
  var _default = exports["default"] = Icon;
28185
28226
 
28227
+ /***/ }),
28228
+
28229
+ /***/ 3833:
28230
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
28231
+
28232
+ // Imports
28233
+ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
28234
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
28235
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
28236
+ // Module
28237
+ ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-image-v2{background-repeat:no-repeat}`, ""]);
28238
+ // Exports
28239
+ ___CSS_LOADER_EXPORT___.locals = {
28240
+ "cap-image-v2": `blaze-ui-cap-image-v2`
28241
+ };
28242
+ module.exports = ___CSS_LOADER_EXPORT___;
28243
+
28244
+
28186
28245
  /***/ }),
28187
28246
 
28188
28247
  /***/ 3837:
@@ -34190,6 +34249,58 @@ const CapSwitch = _ref => {
34190
34249
  };
34191
34250
  var _default = exports["default"] = CapSwitch;
34192
34251
 
34252
+ /***/ }),
34253
+
34254
+ /***/ 5158:
34255
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
34256
+
34257
+ "use strict";
34258
+ __webpack_require__.r(__webpack_exports__);
34259
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
34260
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
34261
+ /* harmony export */ });
34262
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5072);
34263
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
34264
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4284);
34265
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
34266
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7659);
34267
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
34268
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5056);
34269
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
34270
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(540);
34271
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
34272
+ /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3833);
34273
+ /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
34274
+ /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
34275
+ /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
34276
+ /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
34277
+
34278
+
34279
+
34280
+
34281
+
34282
+
34283
+
34284
+
34285
+
34286
+
34287
+
34288
+ var options = {};
34289
+
34290
+ ;
34291
+ options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
34292
+ options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
34293
+ options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
34294
+ options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
34295
+
34296
+ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
34297
+
34298
+
34299
+
34300
+
34301
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
34302
+
34303
+
34193
34304
  /***/ }),
34194
34305
 
34195
34306
  /***/ 5175:
@@ -46639,6 +46750,20 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
46639
46750
 
46640
46751
  /***/ }),
46641
46752
 
46753
+ /***/ 5842:
46754
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
46755
+
46756
+ "use strict";
46757
+
46758
+
46759
+ exports.__esModule = true;
46760
+ exports["default"] = void 0;
46761
+ var _CapImage = _interopRequireDefault(__webpack_require__(2011));
46762
+ exports["default"] = _CapImage.default;
46763
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
46764
+
46765
+ /***/ }),
46766
+
46642
46767
  /***/ 5910:
46643
46768
  /***/ ((__unused_webpack_module, exports) => {
46644
46769