Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_.each(pp,function(o,i){
if(i in p)pp[i]=p[i];
});
map[t].properties=pp
}
}
if(theme)map[t].theme=profile.theme;
if(ca)map[t].CA=_.clone(profile.CA,true);
if(cc)map[t].CC=_.clone(profile.CC,true);
if(cs)map[t].CS=_.clone(profile.CS,true);
if('caption' in p &&('caption' in map[t] || withCaption)&& b.getCaption)
if(pp&&'caption' in pp)pp.caption=b.getCaption();else map[t].caption=b.getCaption();
if(_.isSet(uv) && 'value' in p)
if(pp&&'value' in pp)pp.value=uv;else map[t].value=uv;
}else{
if(profile.box['xui.UI.ComboInput'] && (p.type=='file'||p.type=='upload')){
map[t]=profile;
}else if(withCaption && 'caption' in p){
cap=typeof(b.getCaption)=="function"?b.getCaption():p.caption;
// igore unnecessary caption
if((!cap && !uv) || cap==uv)
map[t]=uv;
else
map[t]={value:uv, caption:cap};
}else{
map[t]=uv;
}
}
// for absValue
if(updateUIValue!==false && profile.renderId && profile.box['xui.absValue'])
b.updateValue();
}
}
}
if(theme)target.theme=profile.theme;
if(ca)target.CA=xui.clone(profile.CA,true);
if(cc)target.CC=xui.clone(profile.CC,true);
if(cs)target.CS=xui.clone(profile.CS,true);
if('caption' in p && b.getCaption)
if(cap){
map[cap]=b.getCaption();
}else if('caption' in target || withCaption)
if(pp&&'caption' in pp)pp.caption=b.getCaption();else target.caption=b.getCaption();
if(xui.isDefined(uv) && 'value' in p)
if(pp&&'value' in pp)pp.value=uv;else target.value=uv;
}else{
if(profile.box['xui.UI.ComboInput'] && (p.type=='file')){
target=profile;
}else if('caption' in p){
capv=typeof(b.getCaption)=="function"?b.getCaption():p.caption;
if(cap){
target=uv;
map[cap]=capv;
}else if(withCaption){
// igore unnecessary caption
if((!capv && !uv) || capv==uv)
target=uv;
else
target={value:uv, caption:capv};
}else{
target=uv;
}
}else{
}
}
if(theme)map[key].theme=profile.theme;
if(ca)map[key].CA=xui.clone(profile.CA,true);
if(cc)map[key].CC=xui.clone(profile.CC,true);
if(cs)map[key].CS=xui.clone(profile.CS,true);
if('caption' in p && b.getCaption)
if(cap){
map[cap]=b.getCaption();
}else if('caption' in map[key] || withCaption)
if(pp&&'caption' in pp)pp.caption=b.getCaption();else map[key].caption=b.getCaption();
if(xui.isDefined(uv) && 'value' in p)
if(pp&&'value' in pp)pp.value=uv;else map[key].value=uv;
}else{
if(profile.box['xui.UI.ComboInput'] && (p.type=='file')){
map[key]=profile;
}else if('caption' in p){
capv=typeof(b.getCaption)=="function"?b.getCaption():p.caption;
if(cap){
map[key]=uv;
map[cap]=capv;
}else if(withCaption){
// igore unnecessary caption
if((!capv && !uv) || capv==uv)
map[key]=uv;
else
map[key]={value:uv, caption:capv};
}else{
map[key]=uv;
}
}else{