// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
define(["dojo/_base/array"],function(e){return{unitCodesToLabels:function(b,d){var a=[];e.forEach(d,function(c){switch(c){case "CENTIMETERS":a.push(b.centimeters);break;case "INCHES":a.push(b.inches);break;case "FEET":a.push(b.feet);break;case "YARDS":a.push(b.yards);break;case "METERS":a.push(b.meters);break;case "KILOMETERS":a.push(b.kilometers);break;case "MILES":a.push(b.miles);break;default:a.push(c)}});return a},labelsToUnitCodes:function(b,d){var a=[];e.forEach(d,function(c){switch(c){case b.centimeters:a.push("CENTIMETERS");
break;case b.inches:a.push("INCHES");break;case b.feet:a.push("FEET");break;case b.yards:a.push("YARDS");break;case b.meters:a.push("METERS");break;case b.kilometers:a.push("KILOMETERS");break;case b.miles:a.push("MILES");break;default:a.push(c)}});return a},toolCodesToLabels:function(b,d){var a=[];e.forEach(d,function(c){switch(c){case "POINT":a.push(b.drawingToolsPoint);break;case "LINE":a.push(b.drawingToolsLine);break;case "POLYLINE":a.push(b.drawingToolsPolyline);break;case "POLYGON":a.push(b.drawingToolsPolygon);
break;case "FREEHAND_POLYGON":a.push(b.drawingToolsFreehandPolygon);break;default:a.push(c)}});return a},labelsToToolCodes:function(b,d){var a=[];e.forEach(d,function(c){switch(c){case b.drawingToolsPoint:a.push("POINT");break;case b.drawingToolsLine:a.push("LINE");break;case b.drawingToolsPolyline:a.push("POLYLINE");break;case b.drawingToolsPolygon:a.push("POLYGON");break;case b.drawingToolsFreehandPolygon:a.push("FREEHAND_POLYGON");break;default:a.push(c)}});return a}}});