/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import i from"../../../core/Collection.js";import h from"../../support/HighlightOptions.js";function t(i){if(!i.highlights)return null;const h=i.highlights.findIndex(i=>"default"===i.name);return-1===h?null:i.highlights.items[h]}function g(t,g){if(!t.highlights){if(!g)return;t.highlights=new i([new h])}const n=t.highlights.findIndex(i=>"default"===i.name);g?t.highlights.items[n].assignFrom(g):(t.highlights.removeAt(n),0===t.highlights.length&&(t.highlights=null))}export{t as getDefaultHighlightOptions,g as setDefaultHighlightOptions};
