// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
define("dojo/_base/declare dojo/_base/lang dojo/on dojo/dom-construct dijit/_WidgetsInTemplateMixin jimu/BaseWidgetSetting jimu/dijit/GridLayout jimu/dijit/CheckBox".split(" "),function(d,a,b,c,e,f,g){return d([f,e],{baseClass:"jimu-widget-card-setting",layout:null,postCreate:function(){this.inherited(arguments);this._initLayout();this.own(b(this.component1Checkbox,"change",a.hitch(this,function(){this.layout.setVisible(1,this.component1Checkbox.getValue())})));this.own(b(this.component2Checkbox,
"change",a.hitch(this,function(){this.layout.setVisible(2,this.component2Checkbox.getValue())})));this.own(b(this.component3Checkbox,"change",a.hitch(this,function(){this.layout.setVisible(3,this.component3Checkbox.getValue())})))},destroy:function(){this.inherited(arguments);this.layout.destroy()},_initLayout:function(){var h=[{id:1,content:c.create("div",{innerHTML:"component 1","class":"grid-label"})},{id:2,content:c.create("div",{innerHTML:"component 2","class":"grid-label"})},{id:3,content:c.create("div",
{innerHTML:"component 3","class":"grid-label"})}];this.layout=new g({components:h,layoutDefinition:[{type:"column",isClosable:!0,content:[{type:"stack",isClosable:!0,reorderEnabled:!0,content:[{type:"component",isClosable:!0,componentName:"jimu grid",componentState:{id:1}}]},{type:"stack",isClosable:!0,reorderEnabled:!0,content:[{type:"component",isClosable:!0,componentName:"jimu grid",componentState:{id:2}}]},{type:"stack",isClosable:!0,reorderEnabled:!0,content:[{type:"component",isClosable:!0,
componentName:"jimu grid",componentState:{id:3}}]}]}],container:this.containerNode,editable:!0});this.own(b(this.layout,"component-resize",a.hitch(this,function(k){console.log(k)})))}})});