text: 'use strict';
  
  const kbaresponse = {
    'xmlns:java': 'java:com.verid.carbon.integration.datatypes',
    'transaction-status': {
      'xmlns': '',
      'transaction-id': '31000001874046',
      'transaction-request-id': '166522846',
      'accounts-transaction-id': '0',
      'transaction-result': 'questions',
    },
    'questions': {
      'xmlns': '',
      'question-set-id': '53413766',
      'question': [
        {
          'question-id': '185160436',
          'answer-type': 'single',
          'text': {
            'language': 'english',
            'statement': 'In which of the following cities have you attended college?',
          },
          'choice': [
            {
              'choice-id': '900342796',
              'text': {
                'language': 'english',
                'statement': 'Calmar',
              },
            }, 
            {
              'choice-id': '900342806',
              'text': {
                'language': 'english',
                'statement': 'Forrest City',
              },
            }, 
            {
              'choice-id': '900342816',
              'text': {
                'language': 'english',
                'statement': 'Reedley',
              },
            }, 
            {
              'choice-id': '900342826',
              'text': {
                'language': 'english',
                'statement': 'South Bend',
              },
            }, 
            {
              'choice-id': '900342836',
              'text': {
                'language': 'english',
                'statement': 'Tarboro',
              },
            }, 
            {
              'choice-id': '900342846',
              'text': {
                'language': 'english',
                'statement': 'None of the above',
              },
            }, 
          ],
          'help-text': {
            'language': 'english',
            'statement': 'Select the city of the college you have attended.',
          },
        },
        {
          'question-id': '185160446',
          'answer-type': 'single',
          'text': {
            'language': 'english',
            'statement': 'Based on your background, in what county is 3268 Mount Eden Way?',
          },
          'choice': [
            {
              'choice-id': '900342856',
              'text': {
                'language': 'english',
                'statement': 'Adams',
              },
            }, 
            {
              'choice-id': '900342866',
              'text': {
                'language': 'english',
                'statement': 'Cheyenne',
              },
            }, 
            {
              'choice-id': '900342876',
              'text': {
                'language': 'english',
                'statement': 'Phillips',
              },
            }, 
            {
              'choice-id': '900342886',
              'text': {
                'language': 'english',
                'statement': 'Summit',
              },
            }, 
            {
              'choice-id': '900342896',
              'text': {
                'language': 'english',
                'statement': 'Teller',
              },
            }, 
            {
              'choice-id': '900342906',
              'text': {
                'language': 'english',
                'statement': 'I have never been associated with this address',
              },
            }, 
          ],
          'help-text': {
            'language': 'english',
            'statement': 'The addresses listed may be partial, misspelled or contain minor numbering variations from your actual address',
          },
        }, 
        {
          'question-id': '185160456',
          'answer-type': 'single',
          'text': {
            'language': 'english',
            'statement': 'Which of the following corporations have you ever been associated with?',
          },
          'choice': [
            {
              'choice-id': '900342916',
              'text': {
                'language': 'english',
                'statement': 'Acorn Village Association',
              },
            }, 
            {
              'choice-id': '900342926',
              'text': {
                'language': 'english',
                'statement': 'Datalogic',
              },
            }, 
            {
              'choice-id': '900342936',
              'text': {
                'language': 'english',
                'statement': 'Myers Park Country Club',
              },
            }, 
            {
              'choice-id': '900342946',
              'text': {
                'language': 'english',
                'statement': 'Quality Transformer & Electronics',
              },
            }, 
            {
              'choice-id': '900342956',
              'text': {
                'language': 'english',
                'statement': 'Strausser Open Space Heritage Foundation',
              },
            }, 
            {
              'choice-id': '900342966',
              'text': {
                'language': 'english',
                'statement': 'None of the above',
              },
            }, 
          ],
          'help-text': {
            'language': 'english',
            'statement': 'Corporation Names may contain slight misspellings.',
          },
        }, 
        {
          'question-id': '185160466',
          'answer-type': 'single',
          'text': {
            'language': 'english',
            'statement': 'What month was \'Toni Aasparagus\' born in?',
          },
          'choice': [
            {
              'choice-id': '900342976',
              'text': {
                'language': 'english',
                'statement': 'March',
              },
            }, {
              'choice-id': '900342986',
              'text': {
                'language': 'english',
                'statement': 'May',
              },
            }, {
              'choice-id': '900342996',
              'text': {
                'language': 'english',
                'statement': 'August',
              },
            }, {
              'choice-id': '900343006',
              'text': {
                'language': 'english',
                'statement': 'October',
              },
            }, {
              'choice-id': '900343016',
              'text': {
                'language': 'english',
                'statement': 'December',
              },
            }, 
            {
              'choice-id': '900343026',
              'text': {
                'language': 'english',
                'statement': 'None of the above or I am not familiar with this person',
              },
            }, 
          ],
          'help-text': {
            'language': 'english',
            'statement': 'The name of the person in question may contain some typographical errors',
          },
        }, 
        {
          'question-id': '185160476',
          'answer-type': 'single',
          'text': {
            'language': 'english',
            'statement': 'Which of the following boats or watercrafts have you owned?',
          },
          'choice': [
            {
              'choice-id': '900343036',
              'text': {
                'language': 'english',
                'statement': '10 ft. Sea Doo 2009',
              },
            }, 
            {
              'choice-id': '900343046',
              'text': {
                'language': 'english',
                'statement': '14 ft. Duracraft 1517',
              },
            }, 
            {
              'choice-id': '900343056',
              'text': {
                'language': 'english',
                'statement': '16 ft. Perception Chinook',
              },
            }, 
            {
              'choice-id': '900343066',
              'text': {
                'language': 'english',
                'statement': '17 ft. San Augustine Fbgls Prods 1989',
              },
            }, 
            {
              'choice-id': '900343076',
              'text': {
                'language': 'english',
                'statement': '20 ft. Playbuoy Windjammer',
              },
            }, 
            {
              'choice-id': '900343086',
              'text': {
                'language': 'english',
                'statement': 'None of the above',
              },
            }, 
          ],
          'help-text': {
            'language': 'english',
            'statement': 'Select the watercraft you have been associated with.',
          },
        }, 
      ],
    },
    'information': [
      {
        'xmlns': '',
        'information-code': 'question-details',
        'detail-code': 'iauth.questions.set1',
        'detail-description': 'iAuth Question Set 1',
        'simple-detail': {
          'text': 'Initial set of authentication questions',
        },
      }, 
      {
        'xmlns': '',
        'information-code': 'presentation-details',
        'detail-code': 'presentation.response.title',
        'detail-description': 'Presentation: A response title',
        'simple-detail': {
          'text': 'Initial set of authentication questions',
        },
      }, 
    ],
  };
  
  
  module.exports = {
    'containers':{
      '/r-admin/content/testformkba':{
        'layout':{
          component: 'Hero',
          props: {
            style: {
              padding:'5rem 0',
            },
          },
          // props: { size: 'isFullheight', },
          children: [{
            component: 'HeroBody',
            props:{},
            children: [
              {
                component: 'Container',
                props:{},
                children: [
                  {
                    component: 'ResponsiveTabs',
                    props: {
                      customTabLayout: {
                        component:'a',
                        thisprops: {
                          _children:['tab','name']
                        },
                      },
                      tabs: [
                        {
                          name: 'Customers',
                          layout: {
                            component: 'Hero',
                            props: {
                              color: 'isWhite',
                              isBold:true,
                            },
                            children: [
                              {
                                component: 'HeroBody',
                                children:'These are customers',
                              },
                            ],
                          },
                        },
                        {
                          name: 'Applications',
                          layout: {
                            component: 'Hero',
                            props: {
                              color: 'isLight',
                              isBold:true,
                            },
                            children: [
                              {
                                component: 'HeroBody',
                                children:'These are Applications',
                              },
                            ],
                          },
                        },
                      ],
                    },
                  },
                  { 
                    component: 'ResponsiveForm',
                    // thisprops: {
                    //   formdata:[ 'dynamic', ],
                    // },
                    props: {
                      blockPageUI:true,
                      cardForm: {},
                      onSubmit:{
                        url: 'http://localhost:8786/testroute',
                        options:{
                          method: 'PUT',
                          headers: {
                            'Content-Type':'application/json',
                          },
                        },
                        responseCallback:'func:this.props.debug',
                      },
                      onChange: 'func:this.props.setDynamicData',
                      dynamicField: 'chartdata',
                      formdata: kbaresponse,
                      flattenFormData: true,
                      style: {
                        marginBottom:'20px',
                      },
                      // 'validations': [
                      //   {
                      //     'name': 'testData',
                      //     'constraints': {
                      //       'testData': {
                      //         'presence': 'true',
                      //         'length': {
                      //           'minimum': 3,
                      //           'message': 'has to be atleast 3 chars',
                      //         },
                      //       },
                      //     },
                      //   },  
                      // ],
                      
                      'hiddenFields':[
                        {
                          'form_name':'question-set-id',
                          'form_val':'questions.question-set-id',
                        },
                        {
                          'form_name':'transaction-id',
                          'form_val':'transaction-status.transaction-id',
                        },
                        {
                          'form_name':'transaction-request-id',
                          'form_val':'transaction-status.transaction-request-id',
                        },
                        {
                          'form_name':'accounts-transaction-id',
                          'form_val':'transaction-status.accounts-transaction-id',
                        },
                      ],
                      formgroups: [
                        {
                          formElements: [
                            {
                              type: 'submit',
                              value:'Submit Form',
                            },
                          ],
                        },
                        {
                          formElements:[
                            {
                              type:'layout',
                              value:{
                                component:'div',
                                thisprops:{
                                  children:['formdata', 'questions', 'question', '0', 'text', 'statement', ],
                                },
                              },
                            },
                          ],
                        },
  
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_0',
                              value:'0',
                              // formdata_value: 'questions.question.0.choice.0.choice-id',
                              formdata_placeholder: 'questions.question.0.choice.0.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_0',
                              value:'1',
                              // formdata_value: 'questions.question.0.choice.1.choice-id',
                              formdata_placeholder: 'questions.question.0.choice.1.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_0',
                              value:'2',
                              // formdata_value: 'questions.question.0.choice.2.choice-id',
                              formdata_placeholder: 'questions.question.0.choice.2.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_0',
                              value:'3',
                              // formdata_value: 'questions.question.0.choice.3.choice-id',
                              formdata_placeholder: 'questions.question.0.choice.3.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_0',
                              value:'4',
                              // formdata_value: 'questions.question.0.choice.4.choice-id',
                              formdata_placeholder: 'questions.question.0.choice.4.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_0',
                              value:'5',
                              // formdata_value: 'questions.question.0.choice.5.choice-id',
                              formdata_placeholder: 'questions.question.0.choice.5.text.statement',
                            },
                          ],
                        },
  
                        
                        {
                          formElements:[
                            {
                              type:'layout',
                              value:{
                                component:'div',
                                thisprops:{
                                  children:['formdata', 'questions', 'question', '1', 'text', 'statement', ],
                                },
                              },
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_1',
                              value:'0',
                              // formdata_value: 'questions.question.0.choice.0.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.0.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_1',
                              value:'1',
                              // formdata_value: 'questions.question.0.choice.1.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.1.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_1',
                              value:'2',
                              // formdata_value: 'questions.question.0.choice.2.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.2.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_1',
                              value:'3',
                              // formdata_value: 'questions.question.0.choice.3.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.3.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_1',
                              value:'4',
                              // formdata_value: 'questions.question.0.choice.4.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.4.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_1',
                              value:'5',
                              // formdata_value: 'questions.question.0.choice.5.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.5.text.statement',
                            },
                          ],
                        },
  
  
                        {
                          formElements:[
                            {
                              type:'layout',
                              value:{
                                component:'div',
                                thisprops:{
                                  children:['formdata', 'questions', 'question', '2', 'text', 'statement', ],
                                },
                              },
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_2',
                              value:'0',
                              // formdata_value: 'questions.question.0.choice.0.choice-id',
                              formdata_placeholder: 'questions.question.2.choice.0.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_2',
                              value:'1',
                              // formdata_value: 'questions.question.0.choice.1.choice-id',
                              formdata_placeholder: 'questions.question.2.choice.1.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_2',
                              value:'2',
                              // formdata_value: 'questions.question.0.choice.2.choice-id',
                              formdata_placeholder: 'questions.question.2.choice.2.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_2',
                              value:'3',
                              // formdata_value: 'questions.question.0.choice.3.choice-id',
                              formdata_placeholder: 'questions.question.2.choice.3.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_2',
                              value:'4',
                              // formdata_value: 'questions.question.0.choice.4.choice-id',
                              formdata_placeholder: 'questions.question.2.choice.4.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_2',
                              value:'5',
                              // formdata_value: 'questions.question.0.choice.5.choice-id',
                              formdata_placeholder: 'questions.question.2.choice.5.text.statement',
                            },
                          ],
                        },
  
                        {
                          formElements:[
                            {
                              type:'layout',
                              value:{
                                component:'div',
                                thisprops:{
                                  children:['formdata', 'questions', 'question', '3', 'text', 'statement', ],
                                },
                              },
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_3',
                              value:'0',
                              // formdata_value: 'questions.question.0.choice.0.choice-id',
                              formdata_placeholder: 'questions.question.3.choice.0.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_3',
                              value:'1',
                              // formdata_value: 'questions.question.0.choice.1.choice-id',
                              formdata_placeholder: 'questions.question.3.choice.1.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_3',
                              value:'2',
                              // formdata_value: 'questions.question.0.choice.2.choice-id',
                              formdata_placeholder: 'questions.question.3.choice.2.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_3',
                              value:'3',
                              // formdata_value: 'questions.question.0.choice.3.choice-id',
                              formdata_placeholder: 'questions.question.3.choice.3.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_3',
                              value:'4',
                              // formdata_value: 'questions.question.0.choice.4.choice-id',
                              formdata_placeholder: 'questions.question.3.choice.4.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_3',
                              value:'5',
                              // formdata_value: 'questions.question.0.choice.5.choice-id',
                              formdata_placeholder: 'questions.question.3.choice.5.text.statement',
                            },
                          ],
                        },
  
                        {
                          formElements:[
                            {
                              type:'layout',
                              value:{
                                component:'div',
                                thisprops:{
                                  children:['formdata', 'questions', 'question', '4', 'text', 'statement', ],
                                },
                              },
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_4',
                              value:'0',
                              // formdata_value: 'questions.question.0.choice.0.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.0.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_4',
                              value:'1',
                              // formdata_value: 'questions.question.0.choice.1.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.1.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_4',
                              value:'2',
                              // formdata_value: 'questions.question.0.choice.2.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.2.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_4',
                              value:'3',
                              // formdata_value: 'questions.question.0.choice.3.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.3.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_4',
                              value:'4',
                              // formdata_value: 'questions.question.0.choice.4.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.4.text.statement',
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              // formdata_name: 'questions.question.0.question-id',
                              name: 'selected_question_4',
                              value:'5',
                              // formdata_value: 'questions.question.0.choice.5.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.5.text.statement',
                            },
                          ],
                        },
                      
                        /*
                        {
                          formElements:[
                            {
                              type:'layout',
                              value:{
                                component:'div',
                                thisprops:{
                                  children:['formdata', 'questions', 'question', '1', 'text', 'statement',],
                                },
                              },
                            },
                          ],
                        },
                        {
                          formElements: [
                            {
                              type: 'radio',
                              formdata_name: 'questions.question.1.question-id',
                              formdata_value: 'questions.question.1.choice.0.choice-id',
                              formdata_placeholder: 'questions.question.1.choice.0.text.statement',
                            },
                          ],
                        },
                        */
                        
                        
                        {
                          formElements: [
                            {
                              type: 'layout',
                              value:{
                                component: 'RawStateOutput',
                                // component: 'RawStateOutput',
                                props: {
                                  select: 'dynamic',
                                  style: {
                                    padding:'10px',
                                    margin: '10px',
                                    border:'1px solid black',
                                  },
                                },
                                thisprops: {
                                  formdata:['formdata',],
                                },
                              },
                            },
                          ],
                        },
                      ],
                    },
                  },
                ],
              },
            ],
          },
          ],
        },
        // 'resources':{
        //   // 'tabledata':'/r-admin/contentdata/users?format=json&limit=10',
        // },
        'onFinish':'render',
        'pageData':{
          'title':'Home',
          'navLabel':'Home',
        },
      },
    },
  };
  
  