text: define("frmImageGallery", function() {
      return function(controller) {
          function addWidgetsfrmImageGallery() {
              this.setDefaultUnit(kony.flex.DP);
              var flxRoot = new kony.ui.FlexContainer({
                  "autogrowMode": kony.flex.AUTOGROW_NONE,
                  "centerX": "50%",
                  "centerY": "50%",
                  "clipBounds": true,
                  "height": "100%",
                  "id": "flxRoot",
                  "isVisible": true,
                  "layoutType": kony.flex.FREE_FORM,
                  "isModalContainer": false,
                  "skin": "sknFlxWhite",
                  "width": "100%",
                  "zIndex": 1
              }, {}, {});
              flxRoot.setDefaultUnit(kony.flex.DP);
              var flxHeader = new kony.ui.FlexContainer({
                  "autogrowMode": kony.flex.AUTOGROW_NONE,
                  "centerX": "50%",
                  "clipBounds": true,
                  "height": "9%",
                  "id": "flxHeader",
                  "isVisible": true,
                  "layoutType": kony.flex.FREE_FORM,
                  "isModalContainer": false,
                  "skin": "sknFlxHeaderGredient",
                  "top": "0dp",
                  "width": "100%",
                  "zIndex": 10
              }, {}, {});
              flxHeader.setDefaultUnit(kony.flex.DP);
              var flxBack = new kony.ui.FlexContainer({
                  "autogrowMode": kony.flex.AUTOGROW_NONE,
                  "centerY": "50%",
                  "clipBounds": true,
                  "height": "60dp",
                  "id": "flxBack",
                  "isVisible": false,
                  "layoutType": kony.flex.FREE_FORM,
                  "left": "0dp",
                  "isModalContainer": false,
                  "onClick": controller.AS_FlexContainer_j2df2bb65fde4c37940993b4efab5748,
                  "skin": "slFbox",
                  "width": "60dp",
                  "zIndex": 1
              }, {}, {});
              flxBack.setDefaultUnit(kony.flex.DP);
              var imgBack = new kony.ui.Image2({
                  "centerX": "50%",
                  "centerY": "50%",
                  "height": "20dp",
                  "id": "imgBack",
                  "isVisible": true,
                  "skin": "slImage",
                  "src": "arrowpreviousscreen.png",
                  "width": "20dp",
                  "zIndex": 1
              }, {
                  "imageScaleMode": constants.IMAGE_SCALE_MODE_MAINTAIN_ASPECT_RATIO,
                  "padding": [0, 0, 0, 0],
                  "paddingInPixel": false
              }, {});
              flxBack.add(imgBack);
              var flxClose = new kony.ui.FlexContainer({
                  "autogrowMode": kony.flex.AUTOGROW_NONE,
                  "centerY": "50%",
                  "clipBounds": true,
                  "height": "60dp",
                  "id": "flxClose",
                  "isVisible": true,
                  "layoutType": kony.flex.FREE_FORM,
                  "isModalContainer": false,
                  "onClick": controller.AS_FlexContainer_c5fd64bf578c471b9670d3fc67fc8031,
                  "right": "0dp",
                  "skin": "slFbox",
                  "width": "60dp",
                  "zIndex": 1
              }, {}, {});
              flxClose.setDefaultUnit(kony.flex.DP);
              var imgClose = new kony.ui.Image2({
                  "centerX": "50%",
                  "centerY": "50%",
                  "height": "20dp",
                  "id": "imgClose",
                  "isVisible": true,
                  "skin": "slImage",
                  "src": "closeicon.png",
                  "width": "20dp",
                  "zIndex": 1
              }, {
                  "imageScaleMode": constants.IMAGE_SCALE_MODE_MAINTAIN_ASPECT_RATIO,
                  "padding": [0, 0, 0, 0],
                  "paddingInPixel": false
              }, {});
              flxClose.add(imgClose);
              var lblHeader = new kony.ui.Label({
                  "centerX": "50%",
                  "centerY": "50%",
                  "id": "lblHeader",
                  "isVisible": true,
                  "skin": "sknLblHeader",
                  "text": "IMAGE GALLERY",
                  "textStyle": {
                      "letterSpacing": 0,
                      "strikeThrough": false
                  },
                  "width": kony.flex.USE_PREFFERED_SIZE,
                  "zIndex": 1
              }, {
                  "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
                  "padding": [0, 0, 0, 0],
                  "paddingInPixel": false
              }, {
                  "textCopyable": false
              });
              flxHeader.add(flxBack, flxClose, lblHeader);
              var ImageGallery = new com.konyenb.ImageGallery({
                  "clipBounds": true,
                  "height": "91%",
                  "id": "ImageGallery",
                  "isVisible": true,
                  "layoutType": kony.flex.FREE_FORM,
                  "left": "0dp",
                  "masterType": constants.MASTER_TYPE_USERWIDGET,
                  "isModalContainer": false,
                  "skin": "sknCompBG00080",
                  "top": "9%",
                  "width": "100%",
                  "overrides": {
                      "ImageGallery": {
                          "right": "viz.val_cleared",
                          "bottom": "viz.val_cleared",
                          "minWidth": "viz.val_cleared",
                          "minHeight": "viz.val_cleared",
                          "maxWidth": "viz.val_cleared",
                          "maxHeight": "viz.val_cleared",
                          "centerX": "viz.val_cleared",
                          "centerY": "viz.val_cleared"
                      }
                  }
              }, {
                  "overrides": {}
              }, {
                  "overrides": {}
              });
              ImageGallery.appUserID = "null";
              ImageGallery.rootFolderID = "0";
              flxRoot.add(flxHeader, ImageGallery);
              this.add(flxRoot);
          };
          return [{
              "addWidgets": addWidgetsfrmImageGallery,
              "enabledForIdleTimeout": false,
              "id": "frmImageGallery",
              "layoutType": kony.flex.FREE_FORM,
              "needAppMenu": false,
              "postShow": controller.AS_Form_eb8cdf5a728b40e98f102252bf598ec6,
              "skin": "sknFrmBGGradient"
          }, {
              "displayOrientation": constants.FORM_DISPLAY_ORIENTATION_PORTRAIT,
              "layoutType": kony.flex.FREE_FORM,
              "padding": [0, 0, 0, 0],
              "paddingInPixel": false
          }, {
              "footerOverlap": false,
              "headerOverlap": false,
              "menuPosition": constants.FORM_MENU_POSITION_AFTER_APPMENU,
              "retainScrollPosition": false,
              "titleBar": true,
              "titleBarSkin": "slTitleBar",
              "windowSoftInputMode": constants.FORM_ADJUST_PAN
          }]
      }
  });