public function generate(): string
    {
        $condID = (string)$this->attributes['data-conditional-id'];
        $getState = $this->vHandler->get->get($condID.'_state', Variables::TYPE_INT) == 1;
        $postState = $this->vHandler->post->get($condID.'_state', Variables::TYPE_INT) == 1;
        $visible = $getState || $postState;
        $this->attributes['class'] .= $visible === true ? ' visible' : '';

        $elements = [];
        $elements[] = Controlls\Text::inputHidden($condID.'_state', (int)$visible, ['method-get' => true, 'id' => '']);
        foreach ($this->elements as $element) {
            /** @noinspection PhpUndefinedMethodInspection */
            $elements[] = $element->generate();
        }
        return Tags::div($elements, $this->attributes);
    }