${dialog.kind === 'furniture' ? html`
` : dialog.kind === 'image' ? html`
${selectedImage ? html`
${selectedImage.name}
` : nothing}
` : nothing}
${dialog.kind === 'image' ? html`
(this.host._decorShapeDialog = {
...dialog, opacity: Number((event.target as HTMLInputElement).value),
})} />` : html`
) =>
(this.host._decorShapeDialog = { ...dialog, ...event.detail })}>`}
${dialog.kind !== 'image' ? html`
(this.host._decorShapeDialog = {
...dialog,
widthCm: this.host._decorSmallCm(Number((event.target as HTMLInputElement).value)),
})} />${this.host._t(
this.host._imperial ? 'wallthick.unit_in' : 'wallthick.unit_cm',
)}
` : nothing}
${dialog.kind === 'line' ? html`
(this.host._decorShapeDialog = {
...dialog,
lengthCm: this.host._decorLargeCm(Number((event.target as HTMLInputElement).value)),
})} />
${unit}
`
: dialog.kind === 'furniture' || dialog.kind === 'image' ? html`
this.furnitureSizeInput(
'w', (event.target as HTMLInputElement).value,
)} />
× this.furnitureSizeInput(
'h', (event.target as HTMLInputElement).value,
)} />
${unit}
` : html`
(this.host._decorShapeDialog = {
...dialog,
sizeWCm: this.host._decorLargeCm(Number((event.target as HTMLInputElement).value)),
})} />
× (this.host._decorShapeDialog = {
...dialog,
sizeHCm: this.host._decorLargeCm(Number((event.target as HTMLInputElement).value)),
})} />
${unit}
`}
(this.host._decorShapeDialog = {
...dialog, angle: (event.target as HTMLInputElement).value,
})} />
${canFill ? html`
) =>
(this.host._decorShapeDialog = {
...dialog, fillColor: event.detail.color, fillOpacity: event.detail.opacity,
})}>` : nothing}