(element, styles)
| 355 | } |
| 356 | |
| 357 | function applyInlineStyles(element, styles) { |
| 358 | Object.entries(styles || {}).forEach(([propertyName, propertyValue]) => { |
| 359 | if (propertyValue === undefined || propertyValue === null || propertyValue === "") { |
| 360 | return; |
| 361 | } |
| 362 | element.style[propertyName] = propertyValue; |
| 363 | }); |
| 364 | } |
| 365 | |
| 366 | class BaseConsumer { |
| 367 | constructor() { |