{"size": 1875, "ext": "js", "max_stars_repo_path": "src/other/webscene/js/esri/widgets/metadata/form/iso/gemet/ThemeDialog.js", "max_stars_repo_name": "da07ng/dipper", "max_stars_repo_stars_event_min_datetime": "2019-11-05T16:47:26.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-05T16:47:26.000Z", "max_issues_repo_path": "src/other/webscene/js/esri/widgets/metadata/form/iso/gemet/ThemeDialog.js", "max_issues_repo_name": "da07ng/dipper", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/other/webscene/js/esri/widgets/metadata/form/iso/gemet/ThemeDialog.js", "max_forks_repo_name": "da07ng/dipper", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.0, "max_line_length": 103, "alphanum_fraction": 0.5434666667}
define(["../../../../../core/declare",
        "dojo/_base/lang",
        "dojo/dom-class",
        "dojo/has",
        "dijit/_WidgetBase",
        "dojo/i18n!../../../nls/i18nBase",
        "dojo/i18n!../../../nls/i18nIso",
        "dijit/Dialog",
        "./ThemePane",
        "../../../../../kernel"],
function(declare, lang, domClass, has, _WidgetBase, i18nBase, i18nIso, Dialog, GemetPane, esriKernel) {

  var oThisClass = declare([_WidgetBase], {

    dialog: null,
    gxeDocument: null,
    initiallySelectedValues: null,
    title: i18nIso.gemet.theme.dialogTitle,

    postCreate: function() {
      this.inherited(arguments);
    },

    onSelect: function(selectedValues) {
    },

    show: function() {
      var dialog = null;

      var pane = new GemetPane({
        dialogBroker: this,
        gxeDocument: this.gxeDocument,
        initiallySelectedValues: this.initiallySelectedValues,
        onOkClick: lang.hitch(this, function(selectedValues) {
          if(selectedValues) {
            this.onSelect(selectedValues);
          }
          if(dialog) {
            dialog.hide();
          }
        }),
        onCancelClick: lang.hitch(this, function() {
          if(dialog) {
            dialog.hide();
          }
        })
      });

      dialog = this.dialog = new Dialog({
        "class": "gxeDialog gxePopupDialog gxeGemetDialog",
        title: this.title,
        content: pane,
        autofocus: false
      });
      if(!this.isLeftToRight()) {
        domClass.add(dialog.domNode, "gxeRtl");
      }

      this.own(dialog.on("hide", lang.hitch(this, function() {
        setTimeout(lang.hitch(this, function() {
          pane.destroyRecursive(false);
          dialog.destroyRecursive(false);
          this.destroyRecursive(false);
        }), 300);
      })));

      dialog.show();
    }

  });

  

  return oThisClass;
});