/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
'use strict';

var wrappers_pb = require('./wrappers_pb-Dupo3Hcb.js');
var bundle = require('./bundle-96sYCpzz.js');
var streamAttributes = require('./streamAttributes-ce88H9XR.js');

var paging_pbExports = wrappers_pb.requirePaging_pb();

var uuid_pbExports = wrappers_pb.requireUuid_pb();

const mapModelView = bundle.mapper.defineMapper(bundle.mapper.read(bundle.mapper.mapRequiredProp('id', streamAttributes.fromPbUuid2l), bundle.mapper.getProp('displayName'), bundle.mapper.mapRequiredProp('partRevisionId', streamAttributes.fromPbUuid2l), bundle.mapper.mapRequiredProp('camera', streamAttributes.fromPbCamera)), ([id, displayName, partRevisionId, camera]) => ({
    id,
    displayName,
    partRevisionId,
    camera,
}));
const mapListItemModelViewsResponse = bundle.mapper.defineMapper(bundle.mapper.read(bundle.mapper.mapProp('modelViewsList', bundle.mapper.mapArray(mapModelView)), bundle.mapper.mapProp('nextPageCursor', streamAttributes.mapCursor)), ([modelViews, next]) => ({ modelViews, paging: { next } }));
const mapListItemModelViewsResponseOrThrow = bundle.mapper.ifInvalidThrow(mapListItemModelViewsResponse);
const mapItemModelView = bundle.mapper.defineMapper(bundle.mapper.read(bundle.mapper.mapProp('modelViewId', streamAttributes.toPbJsUuid2l), bundle.mapper.mapProp('sceneItemId', streamAttributes.toPbJsUuid2l)), ([modelViewId, sceneItemId]) => ({ modelViewId, sceneItemId }));
const mapItemModelViewOrThrow = bundle.mapper.ifInvalidThrow(mapItemModelView);

const mapPmiAnnotation = bundle.mapper.defineMapper(bundle.mapper.read(bundle.mapper.mapRequiredProp('id', streamAttributes.fromPbUuid2l), bundle.mapper.getProp('displayName')), ([id, displayName]) => ({ id, displayName }));
const mapListPmiAnnotationsResponse = bundle.mapper.defineMapper(bundle.mapper.read(bundle.mapper.mapProp('annotationsList', bundle.mapper.mapArray(mapPmiAnnotation)), bundle.mapper.mapProp('nextPageCursor', streamAttributes.mapCursor)), ([annotations, next]) => ({ annotations, paging: { next } }));
const mapListPmiAnnotationsResponseOrThrow = bundle.mapper.ifInvalidThrow(mapListPmiAnnotationsResponse);

var representation_pbExports = wrappers_pb.requireRepresentation_pb();

exports.mapItemModelViewOrThrow = mapItemModelViewOrThrow;
exports.mapListItemModelViewsResponseOrThrow = mapListItemModelViewsResponseOrThrow;
exports.mapListPmiAnnotationsResponseOrThrow = mapListPmiAnnotationsResponseOrThrow;
exports.paging_pbExports = paging_pbExports;
exports.representation_pbExports = representation_pbExports;
exports.uuid_pbExports = uuid_pbExports;
//# sourceMappingURL=representation_pb-BLtsGtEC.js.map

//# sourceMappingURL=representation_pb-BLtsGtEC.js.map