//>>built
define("dojox/wire/ml/Transfer",["dojo","dijit","dojox","dojo/require!dijit/_Widget,dijit/_Container,dojox/wire/_base,dojox/wire/ml/Action"],function(b,h,d){b.provide("dojox.wire.ml.Transfer");b.require("dijit._Widget");b.require("dijit._Container");b.require("dojox.wire._base");b.require("dojox.wire.ml.Action");b.declare("dojox.wire.ml.Transfer",d.wire.ml.Action,{source:"",sourceStore:"",sourceAttribute:"",sourcePath:"",type:"",converter:"",target:"",targetStore:"",targetAttribute:"",targetPath:"",
delimiter:"",_run:function(){var c=this._getWire("source"),a=this._getWire("target");d.wire.transfer(c,a,arguments)},_getWire:function(c){var a=void 0,a="source"==c?{object:this.source,dataStore:this.sourceStore,attribute:this.sourceAttribute,path:this.sourcePath,type:this.type,converter:this.converter}:{object:this.target,dataStore:this.targetStore,attribute:this.targetAttribute,path:this.targetPath};if(a.object)if(9<=a.object.length&&"arguments"==a.object.substring(0,9))a.property=a.object.substring(9),
a.object=null;else{var b=a.object.indexOf(".");0>b?a.object=d.wire.ml._getValue(a.object):(a.property=a.object.substring(b+1),a.object=d.wire.ml._getValue(a.object.substring(0,b)))}if(a.dataStore)a.dataStore=d.wire.ml._getValue(a.dataStore);var e=void 0,g=this.getChildren();for(b in g){var f=g[b];f instanceof d.wire.ml.ChildWire&&f.which==c&&(e||(e={}),f._addWire(this,e))}if(e)e.object=d.wire.create(a),e.dataStore=a.dataStore,a=e;return a}});b.declare("dojox.wire.ml.ChildWire",h._Widget,{which:"source",
object:"",property:"",type:"",converter:"",attribute:"",path:"",name:"",_addWire:function(c,a){if(this.name){if(!a.children)a.children={};a.children[this.name]=this._getWire(c)}else{if(!a.children)a.children=[];a.children.push(this._getWire(c))}},_getWire:function(){return{object:this.object?d.wire.ml._getValue(this.object):void 0,property:this.property,type:this.type,converter:this.converter,attribute:this.attribute,path:this.path}}});b.declare("dojox.wire.ml.ColumnWire",d.wire.ml.ChildWire,{column:"",
_addWire:function(c,a){if(this.column){if(!a.columns)a.columns={};a.columns[this.column]=this._getWire(c)}else{if(!a.columns)a.columns=[];a.columns.push(this._getWire(c))}}});b.declare("dojox.wire.ml.NodeWire",[d.wire.ml.ChildWire,h._Container],{titleProperty:"",titleAttribute:"",titlePath:"",_addWire:function(c,a){if(!a.nodes)a.nodes=[];a.nodes.push(this._getWires(c))},_getWires:function(c){var a={node:this._getWire(c),title:{type:"string",property:this.titleProperty,attribute:this.titleAttribute,
path:this.titlePath}},b=[],e=this.getChildren(),g;for(g in e){var f=e[g];f instanceof d.wire.ml.NodeWire&&b.push(f._getWires(c))}if(0<b.length)a.children=b;return a}});b.declare("dojox.wire.ml.SegmentWire",d.wire.ml.ChildWire,{_addWire:function(b,a){if(!a.segments)a.segments=[];a.segments.push(this._getWire(b));if(b.delimiter&&!a.delimiter)a.delimiter=b.delimiter}})});