{"version":3,"file":"icon.0xnpJ7hOBf.js","sources":["../../../../src/atoms/icons/Icon.tsx"],"sourcesContent":["import { getModifiers } from '@helpers/functions';\nimport { IconModel } from '@_types/types';\n\nconst Icon = (model: IconModel) => {\n const { height, iconPath, viewBoxHeight, viewBoxWidth, width, onClick, className, ignoreTransformHref } = model;\n const styleModifiers = getModifiers(model, 'arjo-a-icon') + ' ' + className;\n const href = ignoreTransformHref ? iconPath : iconPath.startsWith('#') ? '/assets/images/eshop.svg' + iconPath : iconPath;\n\n let viewBox;\n\n if (viewBoxWidth && viewBoxHeight) {\n viewBox = `0 0 ${viewBoxWidth} ${viewBoxHeight}`;\n }\n\n return (\n \n \n \n );\n};\n\nexport { Icon };\nexport default Icon;\n"],"names":["Icon","model","height","iconPath","viewBoxHeight","viewBoxWidth","width","onClick","className","ignoreTransformHref","styleModifiers","getModifiers","href","viewBox","jsx"],"mappings":"8FAGM,MAAAA,EAAQC,GAAqB,CAC3B,KAAA,CAAE,OAAAC,EAAQ,SAAAC,EAAU,cAAAC,EAAe,aAAAC,EAAc,MAAAC,EAAO,QAAAC,EAAS,UAAAC,EAAW,oBAAAC,CAAwB,EAAAR,EACpGS,EAAiBC,EAAaV,EAAO,aAAa,EAAI,IAAMO,EAC5DI,EAAOH,EAAsBN,EAAWA,EAAS,WAAW,GAAG,EAAI,2BAA6BA,EAAWA,EAE7G,IAAAU,EAEJ,OAAIR,GAAgBD,IACRS,EAAA,OAAOR,CAAY,IAAID,CAAa,IAI9CU,EAAA,IAAC,MAAA,CACC,UAAWJ,EACX,cAAY,OACZ,QAAAH,EACA,QAAAM,EACA,MAAOP,GAASD,EAChB,OAAQH,GAAUE,EAElB,SAAAU,EAAAA,IAAC,MAAI,CAAA,UAAWF,CAAM,CAAA,CAAA,CAAA,CAG5B"}