export const ctrlState = () => {
  return {
    controlCodeName: "{{ctrl.codeName}}",
    controlName: "{{ctrl.name}}",
    detailsModel: {
      {{#each ctrl.psSearchBarFilters as | filter | }}
        {{filter.name}} : {
          label: '{{filter.psAppDEField.logicName}}',
          name: '{{filter.name}}',
          prop: '{{lowerCase filter.psAppDEField.codeName}}',
          disabled: false,
          {{#if filter.psDEFSearchMode}}mode: '{{filter.psDEFSearchMode.valueOP}}',{{/if}}
        },
      {{/each}}
    },  
  }
}