var locale=document.querySelector("html").getAttribute("lang");
var getdynatraceId="";
var iscontentsquare="";
var isexperimentation="";
var isqualtrics="";
var usedtmcdnlink="";
var BU=digitalData.page.category.businessUnit;
if(document.getElementById("dynatrace")){getdynatraceId=document.getElementById("dynatrace").value
}if(document.getElementById("contentsquare")){iscontentsquare=document.getElementById("contentsquare").value
}if(document.getElementById("qualtrics")){isqualtrics=document.getElementById("qualtrics").value
}if(document.getElementById("usedtmcdnlink")){usedtmcdnlink=document.getElementById("usedtmcdnlink").value
}window.euLocale=locale;
window.scriptSupplierPageLocale=locale;
window.scriptSupplierPreset=(window.scriptSupplierPreset||[]).concat([{name:"trackit",version:"^1.9.2",async:true},{name:"ensighten",version:"^1.0.0",async:true,config:{market:locale,source:"N/A",businessUnit:BU}}]);
if("false"===usedtmcdnlink){window.scriptSupplierPreset=(window.scriptSupplierPreset||[]).concat([{name:"adobe",version:"^1.0.0",async:true,config:{market:locale,source:"OneCMS"}}])
}if(getdynatraceId!=null&&getdynatraceId!=""){window.scriptSupplierPreset=(window.scriptSupplierPreset||[]).concat([{name:"dynatrace",version:"^1.2.0",config:{appId:getdynatraceId}}])
}if(iscontentsquare!=""&&iscontentsquare=="true"){window.scriptSupplierPreset=(window.scriptSupplierPreset||[]).concat([{name:"contentsquare",version:"^1.0.0"}])
}if(isqualtrics!=""&&isqualtrics=="true"){window.scriptSupplierPreset=(window.scriptSupplierPreset||[]).concat([{name:"qualtrics",version:"^1.21.0",config:{zoneId:"ZN_dhZtUGWqHlUlqhT",sampleType:"pageview",sampleRate:100}}])
}const ss=document.forms.ss;
let text="",objname="",json="",objvarsion="";
for(let i=0;
i<ss.length;
i++){try{objname=ss.elements[i].getAttribute("ssobj");
objvarsion=ss.elements[i].getAttribute("ssobjversion");
text=ss.elements[i].value;
if(text===""){json='{"name":"'+objname+'","async":"true","version":"^'+objvarsion+'"}'
}else{json='{"name":"'+objname+'","async":"true","version":"^'+objvarsion+'","config":'+text+"}"
}const obj=JSON.parse(json);
console.log(obj);
window.scriptSupplierPreset=(window.scriptSupplierPreset||[]).concat([obj])
}catch(err){console.log(err.message)
}};