export const ctrlState = () => {
  return {
    controlCodeName: '{{ctrl.codeName}}',
    controlName: '{{ctrl.name}}',
    appDeCodeName: '{{ctrl.psAppDataEntity.codeName}}',
    navFilter: "{{ctrl.navFilter}}",
    {{#if ctrl.navPSDER}}
    navPSDer: {
      {{#if ctrl.navPSDER.majorPSDataEntity}}
      major: '{{lowerCase ctrl.navPSDER.majorPSDataEntity.codeName}}',
      majorKey: '{{lowerCase ctrl.navPSDER.majorPSDataEntity.keyPSDEField.codeName}}'
      {{/if}}
    }
    {{/if}}
  {{#if ctrl.psNavigateContexts}}
    navContexts:{{> @macro/front-end/common/navparam.hbs appNavParams=ctrl.psNavigateContexts}},
  {{/if}}
  {{#if ctrl.psNavigateParams}}
    navParams:{{> @macro/front-end/common/navparam.hbs appNavParams=ctrl.psNavigateParams}},
  {{/if}}
  }
};