/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as t}from"tslib";import{ClonableMixin as o}from"../../../core/Clonable.js";import{JSONSupportMixin as e}from"../../../core/JSONSupport.js";import{property as r,subclass as i}from"../../../core/accessorSupport/decorators.js";import n from"./CameraOrientation.js";let s=class extends(o(e(n))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:t,focalLength:o,principalOffsetPoint:e,radialDistortionCoefficients:r,tangentialDistortionCoefficients:i}=this;return t?.length>1||!Number.isNaN(o)||e?.length>1||r?.length>1||i?.length>1}toString(){const{type:t,horizontalWKID:o,verticalWKID:e,x:r,y:i,z:n,yaw:s,pitch:p,roll:a,affineTransformations:f,focalLength:c,principalOffsetPoint:y,radialDistortionCoefficients:m,tangentialDistortionCoefficients:l}=this,u=[t,o,e,r,i,n,s,p,a];return this.isAdvanced&&(f?.forEach(t=>u.push(t)),u.push(c),y?.forEach(t=>u.push(t)),y?.forEach(t=>u.push(t)),m?.forEach(t=>u.push(t)),l?.forEach(t=>u.push(t))),u.map(t=>Number.isNaN(t)?"":t).join("|")}};t([r({json:{write:!0}})],s.prototype,"type",void 0),t([r({type:[Number],json:{write:!0}})],s.prototype,"affineTransformations",void 0),t([r({type:Number,json:{write:!0}})],s.prototype,"focalLength",void 0),t([r({type:[Number],json:{write:!0}})],s.prototype,"principalOffsetPoint",void 0),t([r({type:[Number],json:{write:!0}})],s.prototype,"radialDistortionCoefficients",void 0),t([r({type:[Number],json:{write:!0}})],s.prototype,"tangentialDistortionCoefficients",void 0),t([r({type:Number,json:{write:!0}})],s.prototype,"yaw",void 0),t([r({type:Number,json:{write:!0}})],s.prototype,"pitch",void 0),t([r({type:Number,json:{write:!0}})],s.prototype,"roll",void 0),t([r({type:Number,json:{write:!0}})],s.prototype,"x",void 0),t([r({type:Number,json:{write:!0}})],s.prototype,"y",void 0),t([r({type:Number,json:{write:!0}})],s.prototype,"z",void 0),s=t([i("esri.layers.orientedImagery.core.CameraOrientationYPR")],s);const p=s;export{p as default};
