{"version":3,"sources":["node_modules/@arcgis/core/renderers/support/styleUtils.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { result as e } from \"../../core/asyncUtils.js\";\nimport { throwIfAborted as r } from \"../../core/promiseUtils.js\";\nimport o from \"../../core/Warning.js\";\nasync function t(t, i, n) {\n const s = t && t.getAtOrigin && t.getAtOrigin(\"renderer\", i.origin);\n if (s && \"unique-value\" === s.type && s.styleOrigin) {\n const a = await e(s.populateFromStyle());\n if (r(n), !1 === a.ok) {\n const e = a.error;\n i?.messages && i.messages.push(new o(\"renderer:style-reference\", `Failed to create unique value renderer from style reference: ${e.message}`, {\n error: e,\n context: i\n })), t.clear(\"renderer\", i?.origin);\n }\n }\n}\nexport { t as loadStyleRenderer };"],"mappings":"gKAOA,SAAeA,EAAEA,EAAGC,EAAGC,EAAG,QAAAC,EAAA,sBACxB,IAAMC,EAAIJ,GAAKA,EAAE,aAAeA,EAAE,YAAY,WAAYC,EAAE,MAAM,EAClE,GAAIG,GAAwBA,EAAE,OAArB,gBAA6BA,EAAE,YAAa,CACnD,IAAMC,EAAI,MAAMC,EAAEF,EAAE,kBAAkB,CAAC,EACvC,GAAIA,EAAEF,CAAC,EAAUG,EAAE,KAAT,GAAa,CACrB,IAAME,EAAIF,EAAE,MACZJ,GAAG,UAAYA,EAAE,SAAS,KAAK,IAAIG,EAAE,2BAA4B,gEAAgEG,EAAE,OAAO,GAAI,CAC5I,MAAOA,EACP,QAASN,CACX,CAAC,CAAC,EAAGD,EAAE,MAAM,WAAYC,GAAG,MAAM,CACpC,CACF,CACF","names":["t","i","n","__async","s","a","_","e"],"x_google_ignoreList":[0]}