<div class="flex flex-col gap-6">
  <app-card-data cardTitle="اطلاعات شعبه" [editable]="true" [(editMode)]="editMode">
    <div class="flex flex-col gap-4">
      <div class="listKeyValue">
        <app-key-value label="عنوان" [value]="complex()?.name" />
        <app-key-value label="کد شعبه" [value]="complex()?.branch_code" />
        <app-key-value label="آدرس" [value]="complex()?.address" />
      </div>
    </div>
  </app-card-data>

  <partner-consumer-poses-list [consumerId]="consumerId()" [businessId]="businessId()" [complexId]="complexId()" />

  <partner-consumer-complex-form
    [(visible)]="editMode"
    [editMode]="true"
    [consumerId]="consumerId()"
    [businessActivityId]="businessId()"
    [complexId]="complexId()"
    [initialValues]="complex() || undefined"
    (onSubmit)="getData()"
  />
</div>
