chunk-5GYJGY4C.js 772 B

1234567891011121314151617181920212223242526
  1. import {
  2. b
  3. } from "./chunk-2ZSOO377.js";
  4. import {
  5. t5 as t
  6. } from "./chunk-2Z2TG5CU.js";
  7. import {
  8. f
  9. } from "./chunk-V6P2MAQQ.js";
  10. // node_modules/@arcgis/core/renderers/support/styleUtils.js
  11. async function t2(t3, i, n) {
  12. const s = t3 && t3.getAtOrigin && t3.getAtOrigin("renderer", i.origin);
  13. if (s && "unique-value" === s.type && s.styleOrigin) {
  14. const a = await b(s.populateFromStyle());
  15. if (f(n), false === a.ok) {
  16. const e = a.error;
  17. i && i.messages && i.messages.push(new t("renderer:style-reference", `Failed to create unique value renderer from style reference: ${e.message}`, { error: e, context: i })), t3.clear("renderer", i == null ? void 0 : i.origin);
  18. }
  19. }
  20. }
  21. export {
  22. t2 as t
  23. };
  24. //# sourceMappingURL=chunk-5GYJGY4C.js.map