.error('Upload failed:', error)
            })
        } else {
          this.toastText = 'Error: Invalid file format'
          this.$.toastAlert.open()
          this.$.uploadImageFile.value = null
        }
      }

      getRandomColor() {
        const color = Math.floor(0x1000000 * Math.random()).toString(16);
        return '#' + ('000000' + color).slice(-6);
      }

      openBrowseImageFile() {
        this.$.uploadImageFile.click()
      }

      openAddPartDialog() {
        this.$.addPartDialo