<?xml version="1.0" encoding="UTF-8"?>
<scenario begin="LoadInfo">

    <!-- RCA -->
    <screen type="Void" id="LoadInfo">
        <actions>
            <action type="Next">
                <set key="#file" value="file://rca.html" />
                <goto target="InfoPage"/>
            </action>
        </actions>
    </screen>
    <screen id="InfoPage" type="info" title="Informare">
        <field key="#file" />
        <actions>
            <action type="Next">
                <set key="vehicleType" value="1" />
                <goto target="mr_inmatriculare"/>
            </action>
            <action type="Prev">
                <goto target="previous"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <!-- id1, vehicleType -->
    <screen id="mr_inmatriculare" type="group" title="Numar inmatriculare">
        <fields>
            <text-field id="id1" keyboard="any:[en,symb]:upper:true" max-len="8" title="Numar inmatriculare">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z]{1,2}[0-9]{2,3}[a-zA-Z]{3}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Numarul de inmatriculare;]]>
                </help>
            </text-field>
            <selector-field id="vehicleType" message="Stare autovehicul" title="Stare autovehicul">
                <items type="static">
                    <item title="Inmatriculat" value="1"/>
                    <item title="Inregistrat" value="2"/>
                    <item title="In vederea inmatricularii" value="3"/>
                    <item title="In vederea inregistrarii" value="4"/>
                </items>
            </selector-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="service_name" value="RCA" />
                <set key="actionType" value="vehicle-vin" />
                <set key="stare_vehicul" value="inmatriculat" />
                <set key="civ" value=" " />
                <set key="wsModel" value=" " />
                <set key="driverLicenseYear" value=" " />
                <online-request type="default" function="get_sasiu" params="id1,service_name,actionType">
                    <actions>
                        <action type="success">
                            <if condition="code == 1">
                                <then>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </then>
                                <else>
                                    <goto target="get_person_type"/>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa incercati din nou" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev">
                <goto target="InfoPage"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <!-- get person type - pType -->
    <screen id="get_person_type" type="selector/bigbutton" title="Tip persoana">
        <fields>
            <selector-field id="pType" message="Tip persoana" title="Tip persoana">
                <items type="static">
                    <item value="0" title="Persoana fizica"/>
                    <item value="1" title="Persoana juridica"/>
                </items>
            </selector-field>
        </fields>
        <actions>
            <action type="Next" title="Next">
                <switch value="pType">
                    <case value="0"><goto target="get_person_info"/></case>
                    <case value="1">
                        <dialog type="Info" title="Info" message="Momentan indisponibil pentru persoanele juridice" timeout="10" default="okay">
                            <actions>
                                <action type="okay" title="OK">
                                    <cancel/>
                                </action>
                            </actions>
                        </dialog>
                    </case>
<!--                        <goto target="get_person_info1"/></case>-->
                    <default/>
                </switch>
<!--                <goto target="get_person_info"/>-->
            </action>
            <action type="Prev" title="Prev">
                <goto target="mr_inmatriculare"/>
            </action>
            <action type="Exit" title="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="get_leasing_type" type="selector/bigbutton" title="Tip leasing">
        <fields>
            <selector-field id="ltype" message="Tip persoana" title="Tip persoana">
                <items type="static">
                    <item value="0" title="Fara leasing"/>
                    <item value="1" title="Cu leasing"/>
                </items>
            </selector-field>
        </fields>
        <actions>
            <action type="Next" title="Next">
                <switch value="ltype">
                    <case value="0"><goto target="get_person_type"/></case>
                    <case value="1"><goto target="get_leasing_info"/></case>
                    <default/>
                </switch>
                <goto target="get_person_info"/>
            </action>
            <action type="Prev" title="Prev">
                <goto target="get_sasiu"/>
            </action>
            <action type="Exit" title="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="get_leasing_info" type="group" title="Companie leasing">
        <fields>
            <text-field id="numeLeasing" keyboard="any:[en,symb]:lower:true" max-len="99" title="Companie leasing">
                <validator type="regex">
                    <rules>
                        <rule regex="[\s\w.]{3,99}"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numele companiei de leasing]]>
                </help>
            </text-field>
            <text-field id="tipLeasing" keyboard="any:[en,symb]:lower:true" max-len="35" title="Tip leasing">
                <validator type="regex">
                    <rules>
                        <rule regex="[\s\w.]{3,99}"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti tipul de leasing]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <goto target="get_person_type"/>
            </action>
            <action type="Prev">
                <goto target="get_sasiu"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <!-- get customer details -->
    <screen id="get_person_info" type="group" title="Datele titularului">
        <fields>
            <text-field id="nume" keyboard="any:[en,symb]:lower:true" max-len="99" title="Nume proprietar">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z\s]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numele proprietarului]]>
                </help>
            </text-field>
            <text-field id="prenume" keyboard="any:[en,symb]:lower:true" max-len="55" title="Prenume proprietar">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z\s]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti prenumele proprietarului]]>
                </help>
            </text-field>
            <text-field id="cnp" keyboard="any:[en,symb]:lower:true" max-len="13" title="CNP">
                <validator type="regex">
                    <rules>
                        <rule regex="^(\d{13})$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti CNP-ul proprietarului]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="cif" value=" " />
                <set key="companyName" value=" " />
                <goto target="get_location"/>
            </action>
            <action type="Prev">
                <goto target="get_person_type"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="get_person_info1" type="group" title="Datele titularului">
        <fields>
            <text-field id="companyName" keyboard="any:[en,symb]:lower:true" max-len="99" title="Denumire companie">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z0-9\s]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti denumirea companiei]]>
                </help>
            </text-field>
            <text-field id="cif" keyboard="any:[en,symb]:lower:true" max-len="13" title="CUI / CIF">
                <validator type="regex">
                    <rules>
<!--                        <rule regex="^(\d{4,13})$"/>-->
                        <rule regex="^(\d{1})$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti codul CUI / CIF al companiei]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="nume" value=" " />
                <set key="prenume" value=" " />
                <set key="cnp" value=" " />
                <goto target="get_location"/>
            </action>
            <action type="Prev">
                <goto target="get_person_type"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="get_location" type="group" title="Locatie">
        <fields>
            <text-field id="county" keyboard="any:[en,symb]:upper:true" max-len="50" title="Judet">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z]{3,50}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti judetul]]>
                </help>
            </text-field>
            <text-field id="city" keyboard="any:[en,symb]:upper:true" max-len="50" title="Oras / Sector">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z0-9 ]{1,50}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti orasul / sectorul]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="service_name" value="RCA" />
                <set key="actionType" value="validate-location" />
                <online-request type="default" function="validate_location" params="county,city,service_name,actionType">
                    <actions>
                        <action type="success">
                            <if condition="code == 0">
                                <then>
                                    <goto target="get_person_info3"/>
                                </then>
                                <else>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa incercati din nou" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev">
                <goto target="get_person_type"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="get_person_info3" type="group" title="Datele titularului">
        <fields>
            <text-field id="strada" keyboard="any:[en,symb]:lower:false" max-len="99" title="Strada">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z0-9\s]{3,99}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti strada]]>
                </help>
            </text-field>
            <text-field id="nr_strada" keyboard="any:[en,symb]:lower:true" max-len="6" title="Numarul strazii">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z0-9\s]{1,99}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numarul strazii]]>
                </help>
            </text-field>
            <text-field id="email" keyboard="any:[en,symb]:lower:true" max-len="99" title="Adresa de email">
                <validator type="regex">
                    <rules>
                        <rule regex="^[-\w.]+@([A-z0-9][-A-z0-9]+\.)+[A-z]{2,4}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti adresa de email]]>
                </help>
            </text-field>
<!--            <text-field id="driverLicenseYear" keyboard="any:[en,symb]:lower:false" max-len="4" title="An permis">-->
<!--                <validator type="regex">-->
<!--                    <rules>-->
<!--                        <rule regex="^[0-9]*$"/>-->
<!--                    </rules>-->
<!--                </validator>-->
<!--                <help>-->
<!--                    <![CDATA[<html>Introduceti anul in care soferul a luat permisul]]>-->
<!--                </help>-->
<!--            </text-field>-->
        </fields>
        <actions>
            <action type="Next">
                <if condition="vin == 0">
                    <then>
                        <goto target="get_sasiu"/>
                    </then>
                </if>
                <set key="driverLicenseYear" value="" />
                <set key="apartament" value="" />
                <set key="bloc" value="" />
                <set key="scara" value="" />
                <set key="driverLicenseYear" value="" />
                <set key="service_name" value="RCA" />
                <set key="actionType" value="verify-customer" />
                <set key="rcaMappedCategoryId" value="1" />
                <online-request type="default" function="verify_customer" params="id1,vin,service_name,actionType,nume,prenume,cnp,strada,nr_strada,apartament,bloc,scara,cif,companyName,driverLicenseYear,pType,vehicleType,email,id_city,id_county,email">
                    <actions>
                        <action type="success">
                            <if condition="code == 0">
                                <then>
                                    <goto target="get_sasiu"/>
                                </then>
                                <else>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa incercati din nou" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev">
                <goto target="get_location"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="get_person_info4_NOT USED" type="group" title="Datele titularului">
        <fields>
            <text-field id="apartament" keyboard="any:[en,symb]:lower:false" max-len="99" title="Apartament">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z0-9]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numarul apartamentului]]>
                </help>
            </text-field>
            <text-field id="bloc" keyboard="any:[en,symb]:lower:true" max-len="6" title="Bloc">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z0-9]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numarul blocului]]>
                </help>
            </text-field>
            <text-field id="scara" keyboard="any:[en,symb]:lower:true" max-len="6" title="Scara">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z0-9]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numarul scarii]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="service_name" value="RCA" />
                <set key="actionType" value="verify-customer" />
                <online-request type="default" function="verify_customer" params="id1,vin,service_name,actionType,nume,prenume,cnp,strada,nr_strada,apartament,bloc,scara,cif,companyName,driverLicenseYear,pType,vehicleType">
                    <actions>
                        <action type="success">
                            <if condition="code == 0">
                                <then>
                                    <switch value="pType">
                                        <case value="0"><goto target="confirm_person"/></case>
                                        <case value="1"><goto target="confirm_business"/></case>
                                        <default/>
                                    </switch>
                                </then>
                                <else>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa incercati din nou" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev">
                <goto target="get_person_info3"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <!-- NOT USED confirm customer -->
    <screen id="confirm_person" type="confirm" title="Verificati corectitudinea datelor introduse">
        <fields list="nume,prenume,cnp,strada,nr_strada"/> <!-- apartament,bloc,scara,driverLicenseYear -->
        <actions>
            <action type="Next">
                <set key="actionType" value="vehicle_details" />
                <online-request type="default" function="get_car_details" params="id1,vin,service_name,actionType">
                    <actions>
                        <action type="success">
                            <if condition="code == 1">
                                <then>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </then>
                                <else>
                                    <goto target="get_sasiu"/>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa incercati din nou" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="get_person_info4"/>
            </action>
            <action type="Exit" title="Acasa">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="confirm_business" type="confirm" title="Verificati corectitudinea datelor introduse">
        <fields list="cif,companyName,strada,nr_strada,apartament,bloc,scara,driverLicenseYear"/>
        <actions>
            <action type="Next">
                <set key="actionType" value="vehicle_details" />
                <online-request type="default" function="get_car_details" params="id1,vin,service_name,actionType">
                    <actions>
                        <action type="success">
                            <if condition="code == 1">
                                <then>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </then>
                                <else>
                                    <goto target="get_sasiu"/>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa incercati din nou" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="get_person_info4"/>
            </action>
            <action type="Exit" title="Acasa">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <!-- NOT USED Confirm car -->
    <screen id="confirm_car" type="confirm" title="Verificati corectitudinea datelor introduse">
        <fields list="id1,car_name,model_name,vin,wsModel,fuelType,manufactureYear,power,emissionStandard,cylinder"/>
        <actions>
            <action type="Next" title="Verificati corectitudinea datelor introduse">
                <goto target="confirm_car2"/>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="get_sasiu"/>
            </action>
            <action type="Exit" title="Acasa">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="confirm_car2" type="confirm" title="Verificati corectitudinea datelor introduse">
        <fields list="civ,maxWeight,numberOfSeats,certificationNumber,rarCategoryCode,rarCategoryDescription,rcaMappedCategory,color"/>
        <actions>
            <action type="Next">
                <set key="service_name" value="RCA" />
                <set key="actionType" value="verify_car_details" />
                <online-request type="default" function="verify_car_details" params="service_name,actionType,id1,vehicleType,car_name,model_name,vin,wsModel,fuelType,manufactureYear,power,emissionStandard,cylinder,civ,maxWeight,numberOfSeats,certificationNumber,rarCategoryCode,rarCategoryDescription,rcaMappedCategoryId,color,usageType,availabilityInterval,validFrom,pType">
                    <actions>
                        <action type="success">
                            <if condition="code == 0">
                                <then>
                                    <goto target="get_offers"/>
                                </then>
                                <else>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa verificati toate datele" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="confirm_car"/>
            </action>
            <action type="Exit" title="Acasa">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <!-- get car details -->
    <screen id="get_sasiu" type="group" title="Introduceti datele titularului">
        <fields>
            <text-field id="vin" keyboard="any:[en,symb]:upper:true" max-len="17" title="Sasiu">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z0-9\s]{16,17}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti seria de sasiu]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <goto target="tip_masina"/>
            </action>
            <action type="Prev">
                <goto target="get_person_info3"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="tip_masina" type="group" title="Alege categoria">
        <fields>
            <selector-field id="rcaMappedCategoryId" message="Categorie autoturism" title="Categorie autoturism">
                <items type="static">
                    <item title="Autoturism / Automobil mixt" value="1"/>
                    <item title="Autosanitara / Autorulota" value="2"/>
                    <item title="Autovehicul transport persoane" value="3"/>
                    <item title="Autovehicul transport marfa" value="4"/>
                    <item title="Autotractor" value="5"/>
                    <item title="Tractor rutier" value="8"/>
                    <item title="Motocicleta / Moped / Atas / ATV" value="7"/>
                    <item title="Remorca / Semiremorca / Rulota" value="8"/>
                    <item title="Utilaje" value="9"/>
                </items>
            </selector-field>
        </fields>
        <actions>
            <action type="Next" title="Inainte">
                <goto target="marca_masina"/>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="get_sasiu"/>
            </action>
            <action type="Exit" title="Pagina principala">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="marca_masina" type="group" title="Masina">
        <fields>
            <text-field id="car_name" keyboard="any:[en,symb]:upper:true" max-len="99" title="Marca masina">
                <validator type="regex">
                    <rules>
                        <rule regex="^[0-9a-zA-Z ]{2,50}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti marca masinii]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="actionType" value="get_vehicle_make" />
                <set key="service_name" value="RCA" />
                <online-request type="default" function="get_vehicle_make" params="car_name,rcaMappedCategoryId,service_name,actionType">
                    <actions>
                        <action type="success">
                            <if condition="code == 0">
                                <then>
                                    <goto target="select_model_masina"/>
                                </then>
                                <else>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa incercati din nou" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev">
                <goto target="tip_masina"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="select_marca_masina_NOT_USED" type="table" title="Masina">
        <fields>
            <table-field id="tf" title="Tabel" read-only="false">
                <columns>
                    <column key="car_name" title="Marca" width="0.9"/>
                </columns>
                <items type="data" key="#cars"/>
            </table-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="actionType" value="get_vehicle_model" />
                <online-request type="default" function="get_vehicle_model" params="id_car,rcaMappedCategoryId,service_name,actionType">
                    <actions>
                        <action type="success">
                            <if condition="code == 0">
                                <then>
                                    <goto target="select_model_masina"/>
                                </then>
                                <else>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa incercati din nou" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="previous"/>
            </action>
            <action type="Exit" title="Pagina principala">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="select_model_masina" type="table" title="Masina">
        <fields>
            <table-field id="tf" title="Tabel" read-only="false">
                <columns>
                    <column key="model_name" title="Model" width="0.9"/>
                </columns>
                <items type="data" key="#models"/>
            </table-field>
        </fields>
        <actions>
            <action type="Next">
                <goto target="car_info"/>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="select_marca_masina"/>
            </action>
            <action type="Exit" title="Pagina principala">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="car_info" type="group" title="Masina">
        <fields>
            <selector-field id="fuelType" message="Carburant" title="Carburant">
                <items type="static">
                    <item title="benzina" value="1"/>
                    <item title="motorina" value="2"/>
                    <item title="electric" value="3"/>
                    <item title="benzina si gpl" value="4"/>
                    <item title="benzina si alcool" value="5"/>
                    <item title="fara" value="6"/>
                    <item title="altul" value="7"/>
                    <item title="hybrid benzina" value="8"/>
                    <item title="hybrid diesel" value="9"/>
                </items>
            </selector-field>
            <text-field id="manufactureYear" keyboard="any:[en,symb]:lower:true" max-len="4" title="Anul de fabricatie">
                <validator type="regex">
                    <rules>
                        <rule regex="^[0-9]{4}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti anul de fabricatie]]>
                </help>
            </text-field>
            <text-field id="power" keyboard="any:[en,symb]:lower:true" max-len="4" title="Putere (KW)">
                <validator type="regex">
                    <rules>
                        <rule regex="^[0-9]{2,4}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti puterea masinii]]>
                </help>
            </text-field>
<!--            <text-field id="emissionStandard" keyboard="any:[en,symb]:lower:true" max-len="1" title="Standard emisie">-->
<!--                <validator type="regex">-->
<!--                    <rules>-->
<!--                        &lt;!&ndash;                        <rule regex="^[0-9]{1}$"/>&ndash;&gt;-->
<!--                        <rule regex="^[a-zA-Z0-9]*$"/>-->
<!--                    </rules>-->
<!--                </validator>-->
<!--                <help>-->
<!--                    <![CDATA[<html>Introduceti standardul de emisie]]>-->
<!--                </help>-->
<!--            </text-field>-->
        </fields>
        <actions>
            <action type="Next">
                <set key="emissionStandard" value="" />
                <goto target="car_info1"/>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="tip_masina"/>
            </action>
            <action type="Exit" title="Pagina principala">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="car_info1" type="group" title="Masina">
        <fields>
            <text-field id="cylinder" keyboard="any:[en,symb]:lower:true" max-len="8" title="Cilindree">
                <validator type="regex">
                    <rules>
                        <rule regex="^[0-9]{2,8}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti capacitatea cilindrica]]>
                </help>
            </text-field>
            <text-field id="maxWeight" keyboard="any:[en,symb]:lower:true" max-len="4" title="Greutate maxima">
                <validator type="regex">
                    <rules>
                        <rule regex="^[0-9]{2,6}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti greutatea maxima]]>
                </help>
            </text-field>
            <text-field id="numberOfSeats" keyboard="any:[en,symb]:lower:true" max-len="3" title="Numarul de locuri">
                <validator type="regex">
                    <rules>
                        <rule regex="^[0-9]{1,3}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numarul de locuri]]>
                </help>
            </text-field>
            <text-field id="certificationNumber" keyboard="any:[en,symb]:lower:true" max-len="20" title="Numar certificat">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z0-9]{6,17}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numarul certificatului]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="usageType" value="personal" />
                <set key="availabilityInterval" value="1" />
                <set key="rarCategoryCode" value="M1" />
                <set key="rarCategoryDescription" value="" />
                <set key="color" value="" />
                <set key="wsModel" value="" />
                <goto target="car_info3"/>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="car_info"/>
            </action>
            <action type="Exit" title="Pagina principala">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="car_info2" type="group" title="Masina">
        <fields>
            <text-field id="rarCategoryCode" keyboard="any:[en,symb]:lower:true" max-len="8" title="Cod categorie">
                <validator type="regex">
                    <rules>
                        <!--                        <rule regex="^[0-9a-zA-Z]{2,8}$"/>-->
                        <rule regex="^[a-zA-Z0-9]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti codul categoriei]]>
                </help>
            </text-field>
            <text-field id="rarCategoryDescription" keyboard="any:[en,symb]:lower:true" max-len="25" title="Descriere categorie">
                <validator type="regex">
                    <rules>
                        <!--                        <rule regex="^[0-9a-zA-Z]{4,25}$"/>-->
                        <rule regex="^[a-zA-Z0-9]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Exemplu AUTOTURISM]]>
                </help>
            </text-field>
            <text-field id="color" keyboard="any:[en,symb]:lower:true" max-len="20" title="Culoarea masinii">
                <validator type="regex">
                    <rules>
                        <!--                        <rule regex="^[0-9a-zA-Z]{3,20}$"/>-->
                        <rule regex="^[a-zA-Z0-9]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti culoarea masinii]]>
                </help>
            </text-field>
            <text-field id="wsModel" keyboard="any:[en,symb]:lower:true" max-len="20" title="wsModel">
                <validator type="regex">
                    <rules>
                        <!--                        <rule regex="^[a-zA-Z0-9]{2,20}$"/>-->
                        <rule regex="^[a-zA-Z0-9]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti wsModel]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <goto target="car_info3"/>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="car_info1"/>
            </action>
            <action type="Exit" title="Pagina principala">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="car_info3" type="group" title="Masina">
        <fields>
            <text-field id="civ" keyboard="any:[en,symb]:lower:true" max-len="20" title="CIV">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z0-9]{7}$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti codul CIV (exemplu format: A123456)]]>
                </help>
            </text-field>
            <selector-field id="usageType" message="Utilizare" title="Tip folosinta">
                <items type="static">
                    <item title="personal" value="personal"/>
                    <item title="transport international" value="transport international"/>
                    <item title="transport persoane" value="transport persoane"/>
                    <item title="taxi" value="taxi"/>
                    <item title="inchiriere" value="inchiriere"/>
                    <item title="scoala de soferi" value="scoala de soferi"/>
                    <item title="paza si protectie" value="paza si protectie"/>
                    <item title="curierat" value="curierat"/>
                    <item title="institutie publica" value="institutie publica"/>
                    <item title="constructii" value="constructii"/>
                    <item title="distributie" value="distributie"/>
                    <item title="transport marfa" value="transport marfa"/>
                    <item title="masina de serviciu" value="masina de serviciu"/>
                    <item title="transport produse farmaceutice" value="transport produse farmaceutice"/>
                </items>
            </selector-field>
            <selector-field id="availabilityInterval" message="Valabilitate" title="Perioada valabilitate">
                <items type="static">
                    <item title="6 si 12 luni" value="1"/>
                    <item title="1 si 2 luni" value="2"/>
                </items>
            </selector-field>
        </fields>
        <actions>
            <action type="Next">
                <goto target="car_info4"/>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="car_info1"/>
            </action>
            <action type="Exit" title="Pagina principala">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <screen id="car_info4" type="date" title="Alegeti data de start">
        <fields>
            <date-field id="validFrom" title="Valid de la" format="yyyy-MM-dd" format-title="yyyy-MM-dd" from="2023-06-01" to="2052-12-31"/>
        </fields>
        <actions>
            <action type="Next" title="Achita">
                <if condition="is-not-null validFrom">
                    <then>
                        <set key="service_name" value="RCA" />
                        <set key="actionType" value="verify_car_details" />
                        <online-request type="default" function="verify_car_details" params="service_name,actionType,id1,vehicleType,car_name,id_car,model_name,id_model,vin,wsModel,fuelType,manufactureYear,power,emissionStandard,cylinder,civ,maxWeight,numberOfSeats,certificationNumber,rarCategoryCode,rarCategoryDescription,rcaMappedCategoryId,color,usageType,availabilityInterval,validFrom,id_county,id_city,strada,nr_strada,nume,prenume,cnp,cif,companyName,driverLicenseYear,email,pType">
                            <actions>
                                <action type="success">
                                    <if condition="code == 0">
                                        <then>
                                            <goto target="get_offers"/>
                                        </then>
                                        <else>
                                            <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                                <actions>
                                                    <action type="okay" title="OK">
                                                        <cancel/>
                                                    </action>
                                                </actions>
                                            </dialog>
                                        </else>
                                    </if>
                                </action>
                                <action type="error">
                                    <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa verificati toate datele" timeout="10" default="okay">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </action>
                            </actions>
                        </online-request>
                    </then>
                    <else>
                        <dialog type="Info" title="Eroare" message="Alegeti data de start" timeout="10" default="okay">
                            <actions>
                                <action type="okay" title="OK">
                                    <cancel/>
                                </action>
                            </actions>
                        </dialog>
                    </else>
                </if>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="car_info3"/>
            </action>
            <action type="Exit" title="Acasa">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <screen id="get_offers" type="table" title="Oferte">
        <fields>
            <table-field id="tf" title="Tabel" read-only="false">
                <columns>
                    <column key="insuranceCompany" title="Asigurator" width="0.4"/>
                    <column key="availability" title="Valabilitate (luni)" width="0.3"/>
                    <column key="price" title="Pret (RON)" width="0.2"/>
                </columns>
                <items type="data" key="#offers"/>
            </table-field>
        </fields>
        <actions>
            <action type="Next">
                <if condition = "pType == 0">
                    <then>
                        <if condition = "insuranceCompany_id == 6">
                            <then>
                                <goto target="get_buletin"/>
                            </then>
                            <else/>
                        </if>
                    </then>
                    <else>
                        <if condition = "insuranceCompany_id == 6">
                            <then>
                                <goto target="get_CNP_PJ"/>
                            </then>
                            <else/>
                        </if>
                        <if condition = "insuranceCompany_id == 5">
                            <then>
                                <goto target="get_CNP_PJ"/>
                            </then>
                            <else/>
                        </if>
                    </else>
                </if>
                <set key="actionType" value="offer_submit" />
<!--                <goto target="get_buletin"/>-->
                <online-request type="default" function="offer_submit" params="availability,bonusMalus,commissionPercent,commissionValue,excludedGreenCard,insuranceCompany,insuranceCompany_id,isWithDeductedPrice,netPrice,offerIdentification,price,priceDecimals,priceMain,priceText,quotationCode,referenceRate,service_name,actionType">
                    <actions>
                        <action type="success">
                            <if condition="code == 0">
                                <then>
                                    <goto target="confirm"/>
                                </then>
                                <else>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa incercati din nou" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="car_info3"/>
            </action>
            <action type="Exit" title="Pagina principala">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <!-- info 2: email, ci, serie -->
    <screen id="get_buletin" type="group" title="Datele titularului">
        <fields>
            <text-field id="serie_CI" keyboard="any:[en,symb]:upper:true" max-len="2" title="Serie CI">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z\s]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti seria cartii de identitate]]>
                </help>
            </text-field>
            <text-field id="nr_CI" keyboard="any:[en,symb]:lower:true" max-len="6" title="Numar CI">
                <validator type="regex">
                    <rules>
                        <rule regex="^(\d{6})$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numarul cartii de identitate]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="service_name" value="RCA" />
                <set key="actionType" value="get_offer" />
                <online-request type="default" function="get_offer" params="service_name,actionType,id1,vehicleType,car_name,id_car,model_name,id_model,vin,wsModel,fuelType,manufactureYear,power,emissionStandard,cylinder,civ,maxWeight,numberOfSeats,certificationNumber,rarCategoryCode,rarCategoryDescription,rcaMappedCategoryId,color,usageType,availability,validFrom,id_county,id_city,strada,nr_strada,nume,prenume,cnp,cif,companyName,driverLicenseYear,serie_CI,nr_CI,email,insuranceCompany_id,pType">
                    <actions>
                        <action type="success">
                            <if condition="code == 0">
                                <then>
                                    <goto target="get_offer"/>
                                </then>
                                <else>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa verificati toate datele" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev">
                <goto target="get_offers"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <!-- info 5: CNP, nume, prenume -->
    <screen id="get_CNP_PJ" type="group" title="Datele titularului">
        <fields>
            <text-field id="nume" keyboard="any:[en,symb]:lower:true" max-len="99" title="Nume proprietar">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z\s]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numele proprietarului]]>
                </help>
            </text-field>
            <text-field id="prenume" keyboard="any:[en,symb]:lower:true" max-len="55" title="Prenume proprietar">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z\s]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti prenumele proprietarului]]>
                </help>
            </text-field>
            <text-field id="cnp" keyboard="any:[en,symb]:lower:true" max-len="13" title="CNP">
                <validator type="regex">
                    <rules>
                        <rule regex="^(\d{1})$"/>
                        <!--                        <rule regex="^(\d{13})$"/>-->
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti CNP-ul proprietarului]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <goto target="get_buletin_PJ"/>
            </action>
            <action type="Prev">
                <goto target="get_offers"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
    <!-- info 2: email, ci, serie -->
    <screen id="get_buletin_PJ" type="group" title="Datele titularului">
        <fields>
            <text-field id="serie_CI" keyboard="any:[en,symb]:upper:true" max-len="2" title="Serie CI">
                <validator type="regex">
                    <rules>
                        <rule regex="^[a-zA-Z\s]*$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti seria cartii de identitate]]>
                </help>
            </text-field>
            <text-field id="nr_CI" keyboard="any:[en,symb]:lower:true" max-len="6" title="Numar CI">
                <validator type="regex">
                    <rules>
                        <rule regex="^(\d{6})$"/>
                    </rules>
                </validator>
                <help>
                    <![CDATA[<html>Introduceti numarul cartii de identitate]]>
                </help>
            </text-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="service_name" value="RCA" />
                <set key="actionType" value="get_offer" />
                <online-request type="default" function="get_offer" params="service_name,actionType,id1,vehicleType,car_name,id_car,model_name,id_model,vin,wsModel,fuelType,manufactureYear,power,emissionStandard,cylinder,civ,maxWeight,numberOfSeats,certificationNumber,rarCategoryCode,rarCategoryDescription,rcaMappedCategoryId,color,usageType,availability,validFrom,id_county,id_city,strada,nr_strada,nume,prenume,cnp,cif,companyName,driverLicenseYear,serie_CI,nr_CI,email,insuranceCompany_id">
                    <actions>
                        <action type="success">
                            <if condition="code == 0">
                                <then>
                                    <goto target="get_offer"/>
                                </then>
                                <else>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa verificati toate datele" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev">
                <goto target="get_offers"/>
            </action>
            <action type="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <screen id="get_offer" type="table" title="Oferte">
        <fields>
            <table-field id="tf" title="Tabel" read-only="false">
                <columns>
                    <column key="insuranceCompany" title="Asigurator" width="0.4"/>
                    <column key="availability" title="Valabilitate (luni)" width="0.3"/>
                    <column key="price" title="Pret (RON)" width="0.2"/>
                </columns>
                <items type="data" key="#offers"/>
            </table-field>
        </fields>
        <actions>
            <action type="Next">
                <set key="actionType" value="offer_submit" />
                <online-request type="default" function="offer_submit" params="availability,bonusMalus,commissionPercent,commissionValue,excludedGreenCard,insuranceCompany,insuranceCompany_id,isWithDeductedPrice,netPrice,offerIdentification,price,priceDecimals,priceMain,priceText,quotationCode,referenceRate,service_name,actionType">
                    <actions>
                        <action type="success">
                            <if condition="code == 0">
                                <then>
                                    <goto target="pay"/>
                                </then>
                                <else>
                                    <dialog type="Info" title="Eroare" message="Eroare: {0}" timeout="10" default="okay" mess-params="exception">
                                        <actions>
                                            <action type="okay" title="OK">
                                                <cancel/>
                                            </action>
                                        </actions>
                                    </dialog>
                                </else>
                            </if>
                        </action>
                        <action type="error">
                            <dialog type="Info" title="Eroare" message="A intervenit o eroare, va rugam sa incercati din nou" timeout="10" default="okay">
                                <actions>
                                    <action type="okay" title="OK">
                                        <cancel/>
                                    </action>
                                </actions>
                            </dialog>
                        </action>
                    </actions>
                </online-request>
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="car_info4"/>
            </action>
            <action type="Exit" title="Pagina principala">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <!-- Confirm -->
    <screen id="confirm" type="confirm" title="Verificati corectitudinea datelor introduse">
        <fields list="id1,price"/>
        <actions>
            <action type="Next" title="Achita">
<!--                <set key="price" value="5" />-->
                <set-sum from="price" type="units"/>
                <clear keys="#file"/>
                <goto target="pay"/>

<!--                <dialog type="Info" title="Info" message="Sunteti de acord cu prelucrarea datelor cu caracter personal in scopuri de marketing?" timeout="10" default="cancel" mess-params="name">-->
<!--                    <actions>-->
<!--                        <action type="okay" title="Da">-->
<!--                            <set key="gdpr" value="1"/>-->
<!--                            <goto target="pay"/>-->
<!--                        </action>-->
<!--                        <action type="cancel" title="Nu">-->
<!--                            <set key="gdpr" value="0"/>-->
<!--                            <goto target="pay"/>-->
<!--                        </action>-->
<!--                    </actions>-->
<!--                </dialog>-->
            </action>
            <action type="Prev" title="Inapoi">
                <goto target="get_offers"/>
            </action>
            <action type="Exit" title="Acasa">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>
</scenario>
