/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
function e(e,i){switch(i.type){case"object-id":case"unique-id-simple":return e.attributes[i.fieldName];case"unique-id-composite":{const t=[];for(const u of i.fieldNames)t.push(e.attributes[u]??null);return JSON.stringify(t)}}}function i(e,i){if("uniqueIdFields"in i&&i.uniqueIdFields?.length){if(1===i.uniqueIdFields.length)return e.attributes?.[i.uniqueIdFields[0]];const t=i.uniqueIdFields.map(i=>e.attributes?.[i]);return JSON.stringify(t)}return"objectIdField"in i&&i.objectIdField?e.attributes?.[i.objectIdField]:null}export{e as createFeatureId,i as createFeatureIdFromLayer};
