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