/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports"],(function(e){"use strict";var n,t;function r(n){switch(n){case"left":return e.HAlign.Left;case"right":return e.HAlign.Right;case"center":return e.HAlign.Center}}function i(n){switch(n){case"top":return e.VAlign.Top;case"middle":return e.VAlign.Center;case"baseline":return e.VAlign.Baseline;case"bottom":return e.VAlign.Bottom}}function l(n){switch(n){case"above-left":case"esriServerPointLabelPlacementAboveLeft":return[e.HAlign.Right,e.VAlign.Bottom];case"above-center":case"above-along":case"esriServerPointLabelPlacementAboveCenter":case"esriServerLinePlacementAboveAlong":return[e.HAlign.Center,e.VAlign.Bottom];case"above-right":case"esriServerPointLabelPlacementAboveRight":return[e.HAlign.Left,e.VAlign.Bottom];case"center-left":case"esriServerPointLabelPlacementCenterLeft":return[e.HAlign.Right,e.VAlign.Center];case"center-center":case"center-along":case"esriServerPointLabelPlacementCenterCenter":case"esriServerLinePlacementCenterAlong":case"always-horizontal":case"esriServerPolygonPlacementAlwaysHorizontal":return[e.HAlign.Center,e.VAlign.Center];case"center-right":case"esriServerPointLabelPlacementCenterRight":return[e.HAlign.Left,e.VAlign.Center];case"below-left":case"esriServerPointLabelPlacementBelowLeft":return[e.HAlign.Right,e.VAlign.Top];case"below-center":case"below-along":case"esriServerPointLabelPlacementBelowCenter":case"esriServerLinePlacementBelowAlong":return[e.HAlign.Center,e.VAlign.Top];case"below-right":case"esriServerPointLabelPlacementBelowRight":return[e.HAlign.Left,e.VAlign.Top];default:return console.debug(`Found invalid placement type ${n}`),[e.HAlign.Center,e.VAlign.Center]}}function a(n){switch(n){case e.HAlign.Right:return-1;case e.HAlign.Center:return 0;case e.HAlign.Left:return 1;default:return console.debug(`Found invalid horizontal alignment ${n}`),0}}function o(n){switch(n){case e.VAlign.Top:return 1;case e.VAlign.Center:return 0;case e.VAlign.Bottom:case e.VAlign.Baseline:return-1;default:return console.debug(`Found invalid vertical alignment ${n}`),0}}function c(n){switch(n){case"left":return e.HAlign.Left;case"right":return e.HAlign.Right;case"center":return e.HAlign.Center}}function s(e){switch(e){case"above-along":case"below-along":case"center-along":case"esriServerLinePlacementAboveAlong":case"esriServerLinePlacementBelowAlong":case"esriServerLinePlacementCenterAlong":return!0;default:return!1}}e.HAlign=void 0,(n=e.HAlign||(e.HAlign={}))[n.Left=-1]="Left",n[n.Center=0]="Center",n[n.Right=1]="Right",e.VAlign=void 0,(t=e.VAlign||(e.VAlign={}))[t.Top=1]="Top",t[t.Center=0]="Center",t[t.Bottom=-1]="Bottom",t[t.Baseline=2]="Baseline",e.getAlignmentFromPlacement=l,e.getJustification=c,e.getXAnchorDirection=r,e.getXDirection=a,e.getYAnchorDirection=i,e.getYDirection=o,e.isMapAligned=s,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
