{"ast":null,"code":"import { HttpHeaders } from '@angular/common/http';\nimport { environment } from '../environments/environment';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nimport * as i2 from \"../services/client.service\";\nimport * as i3 from \"@angular/common\";\nimport * as i4 from \"@angular/forms\";\nfunction ConfiguracaoMensagensComponent_option_5_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"option\", 15);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const display_r1 = ctx.$implicit;\n    i0.ɵɵproperty(\"value\", display_r1.physical_name_io_device);\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate1(\" \", display_r1.physical_name_io_device, \" \");\n  }\n}\nfunction ConfiguracaoMensagensComponent_button_86_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r2 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"button\", 16);\n    i0.ɵɵlistener(\"click\", function ConfiguracaoMensagensComponent_button_86_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r2);\n      const ctx_r2 = i0.ɵɵnextContext();\n      return i0.ɵɵresetView(ctx_r2.onEditMessage());\n    });\n    i0.ɵɵtext(1, \"Editar Mensagem\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction ConfiguracaoMensagensComponent_button_87_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r4 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"button\", 17);\n    i0.ɵɵlistener(\"click\", function ConfiguracaoMensagensComponent_button_87_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r4);\n      const ctx_r2 = i0.ɵɵnextContext();\n      return i0.ɵɵresetView(ctx_r2.saveConfigurations());\n    });\n    i0.ɵɵtext(1, \"Salvar\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction ConfiguracaoMensagensComponent_button_88_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r5 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"button\", 18);\n    i0.ɵɵlistener(\"click\", function ConfiguracaoMensagensComponent_button_88_Template_button_click_0_listener() {\n      i0.ɵɵrestoreView(_r5);\n      const ctx_r2 = i0.ɵɵnextContext();\n      return i0.ɵɵresetView(ctx_r2.onCancelEdit());\n    });\n    i0.ɵɵtext(1, \"Cancelar\");\n    i0.ɵɵelementEnd();\n  }\n}\nexport let ConfiguracaoMensagensComponent = /*#__PURE__*/(() => {\n  class ConfiguracaoMensagensComponent {\n    constructor(http, clientService) {\n      this.http = http;\n      this.clientService = clientService;\n      this.availableDisplays = [];\n      this.selectedDisplay = '';\n      // Configurações\n      this.v_id_type_operation_message = 0;\n      this.v_id_type_directions_message = 0;\n      this.v_shine_message = 0;\n      this.v_velocity_text_message = 0;\n      this.v_r_type_color = 0;\n      this.v_g_type_color = 0;\n      this.v_b_type_color = 0;\n      this.textMessage = '';\n      // Estado\n      this.saved = false;\n      this.isEditMode = false;\n      // Cliente selecionado\n      this.selectedClientId = '';\n      // IDs do display escolhido\n      this.idDevice = null;\n      this.idIODevice = null;\n    }\n    ngOnInit() {\n      this.clientService.selectedClient$.subscribe(clientId => {\n        this.selectedClientId = clientId;\n        console.log('Cliente selecionado:', this.selectedClientId);\n        this.getAvailableDisplays();\n      });\n      this.resetConfiguration();\n    }\n    getAvailableDisplays() {\n      if (!this.selectedClientId) {\n        console.error('Nenhum cliente selecionado');\n        return;\n      }\n      const apiUrl = environment.apiUrlBackEndExternaApiDB; // ex.: https://spark.engetera.com.br/apiDB\n      const url = `${apiUrl}/v1/available-displays?customer=${this.selectedClientId}-1`;\n      console.log(`GET displays: ${url}`);\n      const headers = new HttpHeaders({\n        device: 'manager'\n      });\n      this.http.get(url, {\n        headers\n      }).subscribe({\n        next: data => {\n          console.log('Displays recebidos:', data);\n          this.availableDisplays = data ?? [];\n          if (this.availableDisplays.length > 0) {\n            this.selectedDisplay = this.availableDisplays[0].physical_name_io_device;\n            this.applyDisplayConfiguration(this.availableDisplays[0]);\n          }\n        },\n        error: err => {\n          console.error('Erro ao buscar displays disponíveis:', err);\n        }\n      });\n    }\n    // Ao trocar no combo, usamos o array já carregado\n    onDisplayChange(event) {\n      const selectedPhysicalName = event?.target?.value ?? '';\n      const selected = this.availableDisplays.find(d => d.physical_name_io_device === selectedPhysicalName);\n      if (!selected) {\n        console.error('Display não encontrado:', selectedPhysicalName);\n        return;\n      }\n      this.applyDisplayConfiguration(selected);\n    }\n    applyDisplayConfiguration(displayData) {\n      const idDevice = displayData?.id_device_io_device;\n      const idIODevice = displayData?.id_io_device;\n      console.log('Aplicando configuração do display:', displayData);\n      this.v_id_type_operation_message = displayData?.id_type_operation_message ?? 0;\n      this.v_id_type_directions_message = displayData?.id_type_directions_message ?? 0;\n      this.v_shine_message = displayData?.shine_message ?? 0;\n      this.v_velocity_text_message = displayData?.velocity_text_message ?? 0;\n      this.v_r_type_color = displayData?.r_type_color ?? 0;\n      this.v_g_type_color = displayData?.g_type_color ?? 0;\n      this.v_b_type_color = displayData?.b_type_color ?? 0;\n      this.textMessage = displayData?.text_message ?? '';\n      this.idDevice = idDevice ?? null;\n      this.idIODevice = idIODevice ?? null;\n    }\n    onRadioChange(option) {\n      switch (option) {\n        case 'lotado':\n          this.v_id_type_operation_message = 1;\n          break;\n        case 'personalizado':\n          this.v_id_type_operation_message = 2;\n          break;\n        case 'vagas':\n          this.v_id_type_operation_message = 3;\n          break;\n        case 'dinamico':\n          this.v_id_type_directions_message = 2;\n          break;\n        case 'fixo':\n          this.v_id_type_directions_message = 3;\n          break;\n        case '0':\n          this.v_shine_message = 0;\n          break;\n        case '25':\n          this.v_shine_message = 25;\n          break;\n        case '50':\n          this.v_shine_message = 50;\n          break;\n        case '75':\n          this.v_shine_message = 75;\n          break;\n        case '100':\n          this.v_shine_message = 100;\n          break;\n        case 'alto':\n          this.v_velocity_text_message = 100;\n          break;\n        case 'medio':\n          this.v_velocity_text_message = 50;\n          break;\n        case 'baixo':\n          this.v_velocity_text_message = 0;\n          break;\n        case 'white':\n          this.v_r_type_color = 255;\n          this.v_g_type_color = 255;\n          this.v_b_type_color = 255;\n          break;\n        case 'red':\n          this.v_r_type_color = 255;\n          this.v_g_type_color = 0;\n          this.v_b_type_color = 0;\n          break;\n        case 'green':\n          this.v_r_type_color = 0;\n          this.v_g_type_color = 255;\n          this.v_b_type_color = 0;\n          break;\n        case 'blue':\n          this.v_r_type_color = 0;\n          this.v_g_type_color = 0;\n          this.v_b_type_color = 255;\n          break;\n        case 'yellow':\n          this.v_r_type_color = 255;\n          this.v_g_type_color = 255;\n          this.v_b_type_color = 0;\n          break;\n        default:\n          console.error('Opção inválida:', option);\n      }\n    }\n    saveConfigurations() {\n      if (!this.selectedClientId) {\n        console.error('Nenhum cliente selecionado');\n        return;\n      }\n      if (this.idDevice == null || this.idIODevice == null) {\n        console.error('idDevice ou idIODevice não definido');\n        return;\n      }\n      const apiUrl = environment.apiUrlBackEndExternaApiDB; // ex.: https://spark.engetera.com.br/apiDB\n      const id_customer = Number(this.selectedClientId); // garante número\n      // >>> JSON vai no PATH <<<\n      const pathParams = {\n        id_customer,\n        id_park: 1,\n        id_device: this.idDevice,\n        id_io_device: this.idIODevice\n      };\n      const encoded = encodeURIComponent(JSON.stringify(pathParams));\n      const url = `${apiUrl}/v1/update-display/${encoded}`;\n      // body SOMENTE com os campos de mensagem (como no seu cURL)\n      const body = {\n        text_message: this.textMessage,\n        r_type_color: this.v_r_type_color,\n        g_type_color: this.v_g_type_color,\n        b_type_color: this.v_b_type_color,\n        shine_message: this.v_shine_message,\n        id_type_size_message: 1,\n        id_type_operation_message: this.v_id_type_operation_message,\n        velocity_text_message: this.v_velocity_text_message,\n        id_io_device: this.idIODevice,\n        id_device_io_device: this.idDevice,\n        physical_name_io_device: this.selectedDisplay,\n        id_type_directions_message: this.v_id_type_directions_message\n        // Os dois abaixo só inclua se sua API realmente exigir sempre:\n        // id_type_directions_pointer_fk_message_pointer: 3,\n        // id_type_position_pointer_id_fk_message_pointer: 1,\n        // st_color_fk_message_pointer: 16777215,\n        // nd_color_fk_message_pointer: 16777215\n      };\n      const headers = new HttpHeaders({\n        'Content-Type': 'application/json',\n        'device': 'manager'\n      });\n      console.log('POST', url, 'BODY:', body);\n      this.http.post(url, body, {\n        headers\n      }).subscribe({\n        next: response => {\n          console.log('Configurações atualizadas com sucesso!', response);\n          alert('Configurações atualizadas com sucesso!');\n          this.saved = true;\n          this.isEditMode = false;\n        },\n        error: error => {\n          console.error('Erro ao atualizar as configurações:', error);\n          alert('Ocorreu um erro ao atualizar as configurações.');\n        }\n      });\n    }\n    resetConfiguration() {\n      this.v_id_type_operation_message = 0;\n      this.v_id_type_directions_message = 0;\n      this.v_shine_message = 0;\n      this.v_velocity_text_message = 0;\n      this.v_r_type_color = 0;\n      this.v_g_type_color = 0;\n      this.v_b_type_color = 0;\n      this.textMessage = '';\n      this.saved = false;\n      // não zera idDevice/idIODevice aqui para não perder a seleção atual\n    }\n    onEditMessage() {\n      this.isEditMode = true;\n    }\n    onCancelEdit() {\n      this.isEditMode = false;\n      this.resetConfiguration();\n    }\n    static #_ = this.ɵfac = function ConfiguracaoMensagensComponent_Factory(t) {\n      return new (t || ConfiguracaoMensagensComponent)(i0.ɵɵdirectiveInject(i1.HttpClient), i0.ɵɵdirectiveInject(i2.ClientService));\n    };\n    static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n      type: ConfiguracaoMensagensComponent,\n      selectors: [[\"app-configuracao-mensagens\"]],\n      decls: 89,\n      vars: 42,\n      consts: [[1, \"configuration-group\"], [\"for\", \"displaySelect\"], [\"id\", \"displaySelect\", 1, \"form-control\", 3, \"change\"], [3, \"value\", 4, \"ngFor\", \"ngForOf\"], [1, \"radio-buttons-group\"], [\"type\", \"radio\", \"name\", \"operation\", 3, \"change\", \"checked\", \"disabled\"], [\"type\", \"radio\", \"name\", \"direcao\", 3, \"change\", \"checked\", \"disabled\"], [\"type\", \"radio\", \"name\", \"shine\", 3, \"change\", \"checked\", \"disabled\"], [\"type\", \"radio\", \"name\", \"velocidade\", 3, \"change\", \"checked\", \"disabled\"], [\"type\", \"radio\", \"name\", \"cor\", 3, \"change\", \"checked\", \"disabled\"], [\"rows\", \"4\", \"placeholder\", \"Digite o texto personalizado...\", 1, \"custom-textbox\", 3, \"ngModelChange\", \"ngModel\", \"disabled\"], [1, \"button-group\"], [\"class\", \"btn btn-primary\", 3, \"click\", 4, \"ngIf\"], [\"class\", \"btn btn-success\", 3, \"click\", 4, \"ngIf\"], [\"class\", \"btn btn-danger\", 3, \"click\", 4, \"ngIf\"], [3, \"value\"], [1, \"btn\", \"btn-primary\", 3, \"click\"], [1, \"btn\", \"btn-success\", 3, \"click\"], [1, \"btn\", \"btn-danger\", 3, \"click\"]],\n      template: function ConfiguracaoMensagensComponent_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵelementStart(0, \"div\", 0)(1, \"div\")(2, \"label\", 1);\n          i0.ɵɵtext(3, \"Selecione um Display:\");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(4, \"select\", 2);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_select_change_4_listener($event) {\n            return ctx.onDisplayChange($event);\n          });\n          i0.ɵɵtemplate(5, ConfiguracaoMensagensComponent_option_5_Template, 2, 2, \"option\", 3);\n          i0.ɵɵelementEnd()()();\n          i0.ɵɵelementStart(6, \"div\", 0)(7, \"h3\");\n          i0.ɵɵtext(8, \"Modo de Opera\\u00E7\\u00E3o\");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(9, \"div\", 4)(10, \"label\")(11, \"input\", 5);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_11_listener() {\n            return ctx.onRadioChange(\"lotado\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(12, \" Lotado \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(13, \"label\")(14, \"input\", 5);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_14_listener() {\n            return ctx.onRadioChange(\"personalizado\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(15, \" Personalizado \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(16, \"label\")(17, \"input\", 5);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_17_listener() {\n            return ctx.onRadioChange(\"vagas\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(18, \" Vagas \");\n          i0.ɵɵelementEnd()()();\n          i0.ɵɵelementStart(19, \"div\", 0)(20, \"h3\");\n          i0.ɵɵtext(21, \"Dire\\u00E7\\u00E3o da Mensagem\");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(22, \"div\", 4)(23, \"label\")(24, \"input\", 6);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_24_listener() {\n            return ctx.onRadioChange(\"dinamico\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(25, \" Din\\u00E2mico \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(26, \"label\")(27, \"input\", 6);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_27_listener() {\n            return ctx.onRadioChange(\"fixo\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(28, \" Fixo \");\n          i0.ɵɵelementEnd()()();\n          i0.ɵɵelementStart(29, \"div\", 0)(30, \"h3\");\n          i0.ɵɵtext(31, \"Brilho da Mensagem\");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(32, \"div\", 4)(33, \"label\")(34, \"input\", 7);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_34_listener() {\n            return ctx.onRadioChange(\"0\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(35, \" 0% \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(36, \"label\")(37, \"input\", 7);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_37_listener() {\n            return ctx.onRadioChange(\"25\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(38, \" 25% \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(39, \"label\")(40, \"input\", 7);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_40_listener() {\n            return ctx.onRadioChange(\"50\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(41, \" 50% \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(42, \"label\")(43, \"input\", 7);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_43_listener() {\n            return ctx.onRadioChange(\"75\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(44, \" 75% \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(45, \"label\")(46, \"input\", 7);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_46_listener() {\n            return ctx.onRadioChange(\"100\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(47, \" 100% \");\n          i0.ɵɵelementEnd()()();\n          i0.ɵɵelementStart(48, \"div\", 0)(49, \"h3\");\n          i0.ɵɵtext(50, \"Velocidade da Mensagem\");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(51, \"div\", 4)(52, \"label\")(53, \"input\", 8);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_53_listener() {\n            return ctx.onRadioChange(\"alto\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(54, \" Alto \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(55, \"label\")(56, \"input\", 8);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_56_listener() {\n            return ctx.onRadioChange(\"medio\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(57, \" M\\u00E9dio \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(58, \"label\")(59, \"input\", 8);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_59_listener() {\n            return ctx.onRadioChange(\"baixo\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(60, \" Baixo \");\n          i0.ɵɵelementEnd()()();\n          i0.ɵɵelementStart(61, \"div\", 0)(62, \"h3\");\n          i0.ɵɵtext(63, \"Cor da Mensagem\");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(64, \"div\", 4)(65, \"label\")(66, \"input\", 9);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_66_listener() {\n            return ctx.onRadioChange(\"white\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(67, \" Branco \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(68, \"label\")(69, \"input\", 9);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_69_listener() {\n            return ctx.onRadioChange(\"red\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(70, \" Vermelho \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(71, \"label\")(72, \"input\", 9);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_72_listener() {\n            return ctx.onRadioChange(\"green\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(73, \" Verde \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(74, \"label\")(75, \"input\", 9);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_75_listener() {\n            return ctx.onRadioChange(\"blue\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(76, \" Azul \");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(77, \"label\")(78, \"input\", 9);\n          i0.ɵɵlistener(\"change\", function ConfiguracaoMensagensComponent_Template_input_change_78_listener() {\n            return ctx.onRadioChange(\"yellow\");\n          });\n          i0.ɵɵelementEnd();\n          i0.ɵɵtext(79, \" Amarelo \");\n          i0.ɵɵelementEnd()()();\n          i0.ɵɵelementStart(80, \"div\", 0)(81, \"h3\");\n          i0.ɵɵtext(82, \"Texto Personalizado\");\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(83, \"textarea\", 10);\n          i0.ɵɵtwoWayListener(\"ngModelChange\", function ConfiguracaoMensagensComponent_Template_textarea_ngModelChange_83_listener($event) {\n            i0.ɵɵtwoWayBindingSet(ctx.textMessage, $event) || (ctx.textMessage = $event);\n            return $event;\n          });\n          i0.ɵɵelementEnd()();\n          i0.ɵɵelementStart(84, \"div\", 0)(85, \"div\", 11);\n          i0.ɵɵtemplate(86, ConfiguracaoMensagensComponent_button_86_Template, 2, 0, \"button\", 12)(87, ConfiguracaoMensagensComponent_button_87_Template, 2, 0, \"button\", 13)(88, ConfiguracaoMensagensComponent_button_88_Template, 2, 0, \"button\", 14);\n          i0.ɵɵelementEnd()();\n        }\n        if (rf & 2) {\n          i0.ɵɵadvance(5);\n          i0.ɵɵproperty(\"ngForOf\", ctx.availableDisplays);\n          i0.ɵɵadvance(6);\n          i0.ɵɵproperty(\"checked\", ctx.v_id_type_operation_message === 1)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_id_type_operation_message === 2)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_id_type_operation_message === 3)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(7);\n          i0.ɵɵproperty(\"checked\", ctx.v_id_type_directions_message === 2)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_id_type_directions_message === 3)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(7);\n          i0.ɵɵproperty(\"checked\", ctx.v_shine_message === 0)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_shine_message === 25)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_shine_message === 50)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_shine_message === 75)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_shine_message === 100)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(7);\n          i0.ɵɵproperty(\"checked\", ctx.v_velocity_text_message === 100)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_velocity_text_message === 50)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_velocity_text_message === 0)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(7);\n          i0.ɵɵproperty(\"checked\", ctx.v_r_type_color === 255 && ctx.v_g_type_color === 255 && ctx.v_b_type_color === 255)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_r_type_color === 255 && ctx.v_g_type_color === 0 && ctx.v_b_type_color === 0)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_r_type_color === 0 && ctx.v_g_type_color === 255 && ctx.v_b_type_color === 0)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_r_type_color === 0 && ctx.v_g_type_color === 0 && ctx.v_b_type_color === 255)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"checked\", ctx.v_r_type_color === 255 && ctx.v_g_type_color === 255 && ctx.v_b_type_color === 0)(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(5);\n          i0.ɵɵtwoWayProperty(\"ngModel\", ctx.textMessage);\n          i0.ɵɵproperty(\"disabled\", !ctx.isEditMode);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"ngIf\", !ctx.isEditMode);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.isEditMode);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.isEditMode);\n        }\n      },\n      dependencies: [i3.NgForOf, i3.NgIf, i4.NgSelectOption, i4.ɵNgSelectMultipleOption, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgModel],\n      styles: [\".button-group[_ngcontent-%COMP%]{display:flex;gap:10px;margin-bottom:20px}.btn[_ngcontent-%COMP%]{padding:10px 20px;border-radius:5px;cursor:pointer}.btn-primary[_ngcontent-%COMP%]{background-color:#007bff;color:#fff;border:none}.btn-success[_ngcontent-%COMP%]{background-color:#28a745;color:#fff;border:none}.btn-danger[_ngcontent-%COMP%]{background-color:#dc3545;color:#fff;border:none}select[_ngcontent-%COMP%]{width:100%;max-width:400px}option[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\"]\n    });\n  }\n  return ConfiguracaoMensagensComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}