import { OutputBlockModel } from "./output-block.model" ; /**
 * It's a set of OutputBlocks, also called "Ouput template" in the UI
 */ export class OutputProfileModel { public name : string ; /**
     * Contains the Barcode to PC version of the server (used when exporting/imp
     * porting Output Templates)
     */ public version : string ; public outputBlocks : OutputBlockModel [ ] = [ ] ; returns static ContainsDialogComponents ( outputProfile ) { return outputProfile . outputBlocks . findIndex ( x => x . value == 'number' || x . value == 'text' || x . value == 'quantity' ) != - 1 ; } returns static ContainsBlockingComponents ( outputProfile ) { return outputProfile . outputBlocks . findIndex ( x => x . value == 'number' || x . value == 'text' || x . type == 'select_option' || x . type == 'http' || x . type == 'run' || x . type == 'csv_lookup' || x . type == 'csv_update' || x . type == 'alert' || x . value == 'quantity' ) != - 1 ; } returns returns static ContainsMultipleBarcodeFormats ( outputProfile ) { let count = 0 ; for ( let i = 0 ; i < outputProfile . outputBlocks . length ; i ++ ) { if ( outputProfile . outputBlocks [ i ] . type == 'barcode' ) { count ++ ; } if ( count >= 2 ) { return true ; } } return false ; } }