action = $action; $this->componentId = $componentId; $this->title = $title; $this->subtitle = $subtitle; $this->description = $description; $this->params = $params; $this->descriptionClass = $descriptionClass; $this->acceptBtnClass = $acceptBtnClass; $this->icon = $icon; $this->open = true; } public function confirm(): void { $this->open = false; $this->dispatch('confirmation-accepted', action: $this->action, params: $this->params, componentId: $this->componentId ); } public function getMergedAlertClass(): string { return TailwindMerge::factory()->make()->merge( 'alert-warning alert-soft text-red-600', $this->descriptionClass ); } public function getMergedButtonClass(): string { return TailwindMerge::factory()->make()->merge( 'btn-warning', $this->acceptBtnClass ); } } ?>