function adressAutoComplete(){var a=this;a.options=[];a.options.city=[];a.options.plz=[];a.options.street=[];a.options.debug=[];a.options.city.inputId="#checkAddress\\.city";a.options.plz.inputId="#checkAddress\\.zipCode";a.options.street.inputId="#checkAddress\\.street";a.options.streetNumber="#checkAddress\\.streetNumber";a.options.city.beginAutoComplete=1;a.options.city.stopServiceCall=2;a.options.plz.beginAutoComplete=3;a.options.street.stopServiceCall=4;a.options.street.beginAutoComplete=1;a.options.keyDelay=
200;a.options.debug.serviceCalls=!1;a.options.debug.keyDelay=!1;a.options.debug.listSearch=!1;a.adress=[];a.adress.City=null;a.adress.ZipCode=null;a.adress.Street=null;a.adress.StreeNumber=null;a.init=function(){a.initZipCodeObject();a.initCityObject();a.initStreetObject();a.listenZipCode();a.listenStreet();a.listenCity();a.getCity().setDebug(a.options.debug.serviceCalls);a.getStreet().setDebug(a.options.debug.serviceCalls);a.getZipCode().setDebug(a.options.debug.serviceCalls);a.initStreetNumber();
$("input:text").focus(function(){$(this).select()})};a.setOptions=function(c){a.options=c};a.initCityObject=function(){a.adress.City=new cityAutoComplete;a.adress.City.beginAutoComplete=a.options.city.beginAutoComplete;a.adress.City.init(a.options.city.inputId);return a.adress.City};a.initZipCodeObject=function(){a.adress.ZipCode=new plzAutoComplete;a.adress.ZipCode.beginAutoComplete=a.options.plz.beginAutoComplete;a.adress.ZipCode.init(a.options.plz.inputId);return a.adress.ZipCode};a.initStreetObject=
function(){a.adress.Street=new streetAutoComplete;a.adress.Street.beginAutoComplete=a.options.street.beginAutoComplete;a.adress.Street.init(a.options.street.inputId);return a.adress.Street};a.initStreetNumber=function(){a.adress.StreeNumber=$q(a.options.streetNumber)};a.getStreetNumber=function(){return a.adress.StreeNumber};a.getCity=function(){return a.adress.City};a.getStreet=function(){return a.adress.Street};a.getZipCode=function(){return a.adress.ZipCode};a.cityCall=function(c,b){a.adress.City.serviceCall(c,
b,function(b){a.options.debug.serviceCalls&&($q.debug(b.suggestion),$q.debug(b.suggestion.length+" City Eintr\u00e4ge gefunden"));1==b.suggestion.length?(a.options.debug.serviceCalls&&($q.debug(b.suggestion[0]),$q.debug(a.getCity().getHTMLObject())),a.getCity().setData([]),a.getCity().getHTMLObject().setValue(b.suggestion[0]),a.getCity().getHTMLObject().hasClass("unclicked")&&a.getCity().getHTMLObject().removeClass("unclicked"),a.getStreet().getHTMLObject().focus()):a.getCity().setData(b.suggestion)})};
a.plzCall=function(c){a.adress.ZipCode.serviceCall(c,function(b){a.options.debug.serviceCalls&&$q.debug(b.suggestion);a.getZipCode().setData(b.suggestion)})};a.streetCall=function(c,b){a.adress.Street.serviceCall(c,b,function(b){a.options.debug.serviceCalls&&$q.debug(b.suggestion);a.getStreet().setData(b.suggestion)})};a.listenZipCode=function(){var c=null,b=a.getZipCode().getHTMLObject();a.options.debug.keyDelay&&$q.debug(b);var d=new TimerHandler(function(){a.options.debug.keyDelay&&$q.debug("call check mit old PLZ:"+
c+" New PLZ: "+b[0].value);5>b[0].value.length?c!=b[0].value?(c=b[0].value,a.options.debug.listSearch&&$q.debug("call ausgef\u00fchrt f\u00fcr refresh plz list"),a.plzCall(b[0].value)):a.options.debug.listSearch&&$q.debug("call nicht ausgef\u00fchrt, da Werte gleich"):(a.options.debug.keyDelay&&$q.debug("call auf PLZ nicht ausgef\u00fchrt, da Maximum Zeichen f\u00fcr PLZ, keine Vorschl\u00e4ge notwendig"),c!=b[0].value&&(c=b[0].value))},a.options.keyDelay);d.setDebug(a.options.debug.keyDelay);b.on("keyup",
function(){d.cancel();b[0].value.length>a.options.plz.beginAutoComplete-1?(a.options.debug.keyDelay&&$q.debug("prepare call"),d.setup()):a.getZipCode().setData([])});b.on("render",function(){$q("#button-ct-btn-pruefen").block("#FFFFFF",.2);$q(".PfxInputSubmit").block("#FFFFFF",.2)});b.on("blur",function(){window.setTimeout(function(){a.getZipCode().setData([])},1E3);a.cityCall(a.getZipCode().getHTMLObject()[0].value,"");$q("#button-ct-btn-pruefen").unblock();$q(".PfxInputSubmit").unblock()});b.on("selected",
function(){a.cityCall(b[0].value,"");window.setTimeout(function(){$q("#button-ct-btn-pruefen").unblock();$q(".PfxInputSubmit").unblock()},1E3)})};a.listenStreet=function(){var c=null,b=a.getStreet().getHTMLObject(),d=new TimerHandler(function(){var d=a.getZipCode().getHTMLObject()[0].value;null!=c&&c==b[0].value||IsValuePartInArray(b[0].value,a.getStreet().data,a.options.debug.listSearch)&&b[0].value.length>a.options.street.stopServiceCall-1?a.options.debug.listSearch&&$q.debug("call nicht ausgef\u00fchrt, Werte gleich oder Part in Listen Array vorhanden und Stra\u00dfenl\u00e4nge ausreichend ist f\u00fcr keine neuen Service Calls"):
(a.options.debug.listSearch&&$q.debug("call ausgef\u00fchrt f\u00fcr refresh Street list"),c=b[0].value,a.streetCall(d,b[0].value))},a.options.keyDelay);d.setDebug(a.options.debug.keyDelay);b.on("keyup",function(){var e=a.getZipCode().getHTMLObject()[0].value;a.options.debug.keyDelay&&$q.debug("plz \x3d "+e);d.cancel();b[0].value.length>a.options.street.beginAutoComplete-1?(a.options.debug.keyDelay&&$q.debug("prepare call for street"),5==e.length?d.setup():a.options.debug.keyDelay&&$q.debug("Timer nicht gestartet, da PLZ nicht 5 Stellen hat")):
a.getStreet().setData([]);c!=b[0].value&&IsValueInArray(b[0].value,a.getStreet().data,a.options.debug.listSearch)&&($q.debug("oldValue: "+c+" ob.value: "+b[0].value),c=b[0].value,a.options.debug.listSearch&&$q.debug("Stra\u00dfen \u00dcbereinstimmung in Liste gefunden, springe zu Hausnummer"))});b.on("render",function(){streetIsRendered=!0;$q("#button-ct-btn-pruefen").block("#FFFFFF",.2);$q(".PfxInputSubmit").block("#FFFFFF",.2)});b.on("selected",function(){!0===streetIsRendered&&(window.setTimeout(function(){a.getStreetNumber().focus()},
10),streetIsRendered=!1);window.setTimeout(function(){$q("#button-ct-btn-pruefen").unblock();$q(".PfxInputSubmit").unblock()},1E3)});b.on("blur",function(){window.setTimeout(function(){a.getStreet().setData([]);$q("#button-ct-btn-pruefen").unblock();$q(".PfxInputSubmit").unblock()},1E3)})};a.listenCity=function(){var c=null,b=a.getCity().getHTMLObject();new TimerHandler(function(){var d=a.getZipCode().getHTMLObject()[0].value;c==b[0].value?a.options.debug.listSearch&&$q.debug("call nicht ausgef\u00fchrt, Werte gleich"):
(c=b[0].value,b[0].value.length>a.options.city.stopServiceCall-1&&IsValuePartInArray(b[0].value,a.getCity().data,a.options.debug.listSearch)?a.options.debug.listSearch&&$q.debug("call nicht ausgef\u00fchrt value in Array gefunden und max l\u00e4nge f\u00fcr service calls"):(a.options.debug.listSearch&&$q.debug("call ausgef\u00fchrt f\u00fcr refresh City list"),a.cityCall(d,b[0].value)))},a.options.debug.keyDelay)};a.resetCity=function(){a.getCity().setData([]);a.getCity().getHTMLObject()[0].value=
""};a.resetStreet=function(){a.getStreet().setData([]);a.getStreet().getHTMLObject()[0].value=""};a.resetStreetNumber=function(){a.getStreetNumber().setValue("")};a.setDebug=function(c){a.setDebugServiceCall(c);a.setDebugKeyDelay(c);a.setDebugListSearch(c)};a.setDebugServiceCall=function(c){a.options.debug.serviceCalls=c;a.getCity().setDebug(c);a.getStreet().setDebug(c);a.getZipCode().setDebug(c)};a.setDebugKeyDelay=function(c){a.options.debug.keyDelay=c};a.setDebugListSearch=function(c){a.options.debug.listSearch=
c}}"undefined"===typeof UNOUNO.components&&(UNOUNO.components={});UNOUNO.components.adressAutoComplete=adressAutoComplete;
$q.define("UNOUNO.components.adressCheckService",{statics:{adressService:null,successCallback:null,errorCallback:null,init:function(){},getAdressService:function(){if(!this.adressService)try{this.adressService=new WS_AddressCompletionWebService(this)}catch(a){$q.error("WS_AddressCompletionWebService not initialized"),$q.debug(a)}return this.adressService},getCity:function(a,c,b,d){this.getAdressService().getCities(a,c,function(a,c,g){WebServiceResultHandler(b,d,a,c,g)})},getZipCodes:function(a,c,
b){this.getAdressService().getZipCodes(a,function(a,e,f){WebServiceResultHandler(c,b,a,e,f)})},getStreets:function(a,c,b,d){this.getAdressService().getStreets(a,c,function(a,c,g){WebServiceResultHandler(b,d,a,c,g)})}}});
function WebServiceResultHandler(a,c,b,d,e){this.showError=function(a){$q.error("failed Service: ");$q.error(a)};b&&!b.error?a&&"function"===typeof a?a(b):$q.error("no successCallback function defined"):(b&&b.error&&b.errorMessage?this.showError(b.errorMessage):e&&e.message&&this.showError(e.message),c&&"function"===typeof c&&c(b));d&&($q.debug("unkown Object"),$q.debug(d))}
function InputAutoCompleteElement(){var a=this;this.autoCompleteBox=this.autoComplete=null;this.beginAutoComplete=1;this.data=null;var c=!1;this.init=function(b){a.autoComplete=$q(b);a.autoCompleteBox=a.autoComplete.autocompletionbox([]);a.autoCompleteBox.setBeginAutoComplete(a.beginAutoComplete)};this.setData=function(b){a.autoCompleteBox.setDataSource(b);a.data=a.autoCompleteBox.getDataSource()};this.getHTMLObject=function(){return a.autoComplete};this.setDebug=function(a){c=a};this.isDebug=function(){return c}}
function cityAutoComplete(){var a=this;this.autoCompleteBox=this.autoComplete=null;this.beginAutoComplete=1;this.data=null;var c=!1;this.init=function(b){a.autoComplete=$q(b);a.autoCompleteBox=a.autoComplete.autocompletionbox([]);a.autoCompleteBox.setBeginAutoComplete(a.beginAutoComplete)};this.setData=function(b){a.autoCompleteBox.setDataSource(b);a.data=a.autoCompleteBox.getDataSource()};this.getHTMLObject=function(){return a.autoComplete};this.serviceCall=function(b,d,e,f){"function"!=typeof e?
e=function(b){$q.debug("success service call");$q.debug(b.suggestion);a.setData(b.suggestion)}:c&&$q.debug("external function");"function"!=typeof f&&(f=function(a){$q.debug("melde error result");a&&$q.debug(a)});UNOUNO.components.adressCheckService.getCity(b,d,e,f)};this.setDebug=function(a){c=a}}
function plzAutoComplete(){var a=this;this.autoCompleteBox=this.autoComplete=null;this.beginAutoComplete=3;this.data=null;var c=!1;a.init=function(b){a.autoComplete=$q(b);a.autoCompleteBox=a.autoComplete.autocompletionbox([]);a.autoCompleteBox.setBeginAutoComplete(a.beginAutoComplete)};this.setData=function(b){a.autoCompleteBox.setDataSource(b);a.data=a.autoCompleteBox.getDataSource()};this.serviceCall=function(b,d,e){"function"!=typeof d?d=function(b){$q.debug("success service call");$q.debug(b.suggestion);
a.setData(b.suggestion)}:c&&$q.debug("external function");"function"!=typeof e&&(e=function(a){$q.debug("melde error result");a&&$q.debug(a)});UNOUNO.components.adressCheckService.getZipCodes(b,d,e)};this.getHTMLObject=function(){return a.autoComplete};this.setDebug=function(a){c=a}}
function streetAutoComplete(){var a=this;this.autoCompleteBox=this.autoComplete=null;this.beginAutoComplete=2;this.data=null;var c=!1;a.init=function(b){a.autoComplete=$q(b);a.autoCompleteBox=a.autoComplete.autocompletionbox([]);a.autoCompleteBox.setBeginAutoComplete(a.beginAutoComplete);a.data=[];streetIsRendered=!1};this.setData=function(b){a.autoCompleteBox.setDataSource(b);a.data=a.autoCompleteBox.getDataSource()};this.getHTMLObject=function(){return a.autoComplete};this.serviceCall=function(b,
d,e,f){"function"!=typeof e?e=function(b){$q.debug("success service call");$q.debug(b.suggestion);a.setData(b.suggestion)}:c&&$q.debug("external function");"function"!=typeof f&&(f=function(a){$q.debug("melde error result");a&&$q.debug(a)});UNOUNO.components.adressCheckService.getStreets(b,d,e,f)};this.setDebug=function(a){c=a}}
function TimerHandler(a,c){var b=!1;this.setDebug=function(a){b=a};c||(c=1E3);this.remind=function(){b&&$q.debug("remind and destroy timeoutId: "+this.timeoutID);a();this.timeoutID=void 0};this.setup=function(){b&&$q.debug("typeof timeoutId \x3d "+typeof this.timeoutID);"number"===typeof this.timeoutID?this.cancel():(this.timeoutID=window.setTimeout(function(){this.remind()}.bind(this),c),b&&$q.debug(this.timeoutID))};this.cancel=function(){"number"===typeof this.timeoutID&&(b&&$q.debug("cancel timer "+
this.timeoutID),window.clearTimeout(this.timeoutID));this.timeoutID=void 0}}function IsValuePartInArray(a,c,b){for(var d=a.length,e=0;e<c.length;e++)if(b&&$q.debug("compare value \x3d "+a+" array \x3d"+c[e].substring(0,d)),a==c[e].substring(0,d))return b&&$q.debug("hit"),!0;b&&$q.debug("no items found in array");return!1}
function IsValueInArray(a,c,b){for(var d=0;d<c.length;d++)if(b&&$q.debug("compare value \x3d "+a+" array \x3d"+c[d]),a==c[d])return b&&$q.debug("hit"),!0;b&&$q.debug("no items are equal in array");return!1}
function callService(a,c){var b=new WS_AddressCompletionWebService(this);c||(c="Manch");a||(a="85077");$q.debug("rufe Service mit city \x3d "+c+" plz \x3d"+a);b.getCities(a,c,function(a,b,c){$q.debug("callService Cities");$q.debug(a);a.suggestion&&$q.debug(a.suggestion);$q.debug(b);$q.error(c)});b.getStreets("85077","Rot",function(a,b,c){$q.debug("callService Streets");$q.debug(a);a.suggestion&&$q.debug(a.suggestion);$q.debug(b);$q.error(c)});b.getZipCodes("850",function(a,b,c){$q.debug("callService ZipCodes");
$q.debug(a);a.suggestion&&$q.debug(a.suggestion);$q.debug(b);$q.error(c)})};
UNOUNO.params.loadStatus="complete";if(UNOUNO.init.JSLoadStack&&0<UNOUNO.init.JSLoadStack.length)for(UNOUNO.init.processStack=0;UNOUNO.init.processStack<UNOUNO.init.JSLoadStack.length;UNOUNO.init.processStack+=1)UNOUNO.init.JSLoadStack[UNOUNO.init.processStack].call();
window.pfx||(pfx={});pfx.ws||(pfx.ws={});pfx.ws.json||(pfx.ws.json={});pfx.ws.json.deserialize=function(a){!0==this._debug&&alert("Response: "+a);return JSON.parse(a,pfx.ws.json.convert)};pfx.ws.json.convert=function(a,b){return null!=b&&"object"===typeof b&&"__time__"in b?new Date(b.__time__):b};
pfx.ws.json.serialize=function(a){var b=null;if(null!=a)if(a.constructor==String)b=pfx.ws.json.escapeJSONString(a);else if(a.constructor==Number)b=a.toString();else if(a.constructor==Boolean)b=a.toString();else if(a.constructor==Date)b='{"__time__":'+a.valueOf()+"}";else if(a.constructor==Array){for(var b=[],c=0;c<a.length;c++)b.push(pfx.ws.json.serialize(a[c]));b="["+b.join(",")+"]"}else{b=[];for(attr in a)c=a[attr],null==c?b.push('"'+attr+'": null'):"function"!=typeof c&&b.push(pfx.ws.json.escapeJSONString(attr)+
":"+pfx.ws.json.serialize(c));b="{"+b.join(",")+"}"}else b="null";return b};pfx.ws.json.escapeJSONChar=function(a){if('"'==a||"\\"==a)return"\\"+a;if("\b"==a)return"\\b";if("\f"==a)return"\\f";if("\n"==a)return"\\n";if("\r"==a)return"\\r";if("\t"==a)return"\\t";a=a.charCodeAt(0).toString(16);return 1==a.length?"\\u000"+a:2==a.length?"\\u00"+a:3==a.length?"\\u0"+a:"\\u"+a};pfx.ws.json.replaceCallbackSupport=null;
pfx.ws.json.escapeJSONString=function(a){null==pfx.ws.json.replaceCallbackSupport&&(-1!=navigator.userAgent.indexOf("Safari")?pfx.ws.json.replaceCallbackSupport=!1:pfx.ws.json.replaceCallbackSupport=!0);if(pfx.ws.json.replaceCallbackSupport)return'"'+a.replace(/([^\u0020-\u007f]|[\\\"])/g,pfx.ws.json.escapeJSONChar)+'"';for(var b=[],c=0;c<a.length;c++)'"'==a.charAt(c)||"\\"==a.charAt(c)||32>a.charCodeAt(c)||128<=a.charCodeAt(c)?b[c]=pfx.ws.json.escapeJSONChar(a.charAt(c)):b[c]=a.charAt(c);return'"'+
b.join("")+'"'};pfx.ws.json.BaseStub=function(a,b,c,d){this._service=a;this._context=b;this._scope=c;this._requestPath=d;this._protocol="jsonws";this._uri=null};pfx.ws.json.BaseStub.prototype.setService=function(a){this._service=a;this._uri=null};pfx.ws.json.BaseStub.prototype.setContext=function(a){this._context=a};pfx.ws.json.BaseStub.prototype.setRequestPath=function(a){this._requestPath=a;this._uri=null};pfx.ws.json.BaseStub.prototype.setDebug=function(a){this._debug=a};
pfx.ws.json.BaseStub.prototype.getURI=function(){if(null==this._uri){var a="",b=window.location.href.match(/;jsessionid=[A-Z0-9]+(\.[a-zA-Z0-9]+)?/);b&&(a=b[0]);this._uri=window.location.protocol+"//"+window.location.host+(this._requestPath+"/"+this._service)+a}return this._uri};pfx.ws.json.BaseStub.prototype.callMethod=function(a,b,c){return(new pfx.ws.json.Call(this.getURI(),this._context,this._scope,this._debug)).invoke(a,b,c)};
pfx.ws.json.DynamicProxy=function(a,b){pfx.ws.json.BaseStub.call(this,a,b);this._proxySetup()};pfx.ws.json.DynamicProxy.prototype=new pfx.ws.json.BaseStub;pfx.ws.json.DynamicProxy.prototype._proxySetup=function(){var a=new pfx.net.HTTPRequest("POST",this.getURI()+"?json",this._proxySetupCB,this);a.setRequestHeader("wstype",this._protocol);a.start("",0)};pfx.ws.json.DynamicProxy.prototype._proxySetupCB=function(a){a=JSON.parse(a,pfx.ws.json.convert).result;for(var b=0;b<a.length;b++)this._createMethod(a[b])};
pfx.ws.json.DynamicProxy.prototype._createMethod=function(a){var b=function(){return b.ownerObject._callMethod.call(b.ownerObject,b.methodName,arguments)};b.ownerObject=this;b.methodName=a;this[a]=b};pfx.ws.json.DynamicProxy.prototype._callMethod=function(a,b){return(new pfx.ws.json.Call(this.getURI(),this._context,this._debug)).invoke(a,b)};pfx.ws.json.Call=function(a,b,c,d){this._uri=a;this._context=b;this._scope=c;this._debug=d;this._userCallback=this._opName=null};
pfx.ws.json.Call.prototype.invoke=function(a,b,c){this._opName=a;var d={};d.method=a;a=b.length;if(c)if(a==c+1)"function"==typeof b[a-1]||"object"==typeof b[a-1]?this._userCallback=b[a-1]:this._requestId=b[a-1],a-=1;else if(a==c+2&&("function"==typeof b[a-2]||"object"==typeof b[a-2])&&"string"==typeof b[a-1])this._userCallback=b[a-2],this._requestId=b[a-1],a-=2;else{if(a!=c)throw Error("Wrong number of arguments: "+a+" - "+c);}else 0<a&&"function"==typeof b[a-1]?(this._userCallback=b[a-1],a-=1):1<
a&&"function"==typeof b[a-2]&&(this._requestId=b[a-1],this._userCallback=b[a-2],a-=2);this._requestId&&(d.id=this._requestId);c=[];for(var e=0;e<a;e++)c[e]=b[e];d.params=c;b=pfx.ws.json.serialize(d);!0==this._debug&&alert("Request: "+b);if(this._userCallback||this._context)a=new pfx.net.HTTPRequest("POST",this._uri,this.callback,this),a.setRequestHeader("Content-Type","text/plain"),a.setRequestHeader("wstype","jsonws"),a.start(b,null,d.id);else return a=new pfx.net.HTTPRequest("POST",this._uri),a.setRequestHeader("Content-Type",
"text/plain"),a.setRequestHeader("wstype","jsonws"),d=a.start(b,null,d.id),this.callback(d)};
pfx.ws.json.Call.prototype.callback=function(a){a=pfx.ws.json.deserialize(a);if(a.error){var b=Error();b.name=a.error.name;b.message=a.error.message;if(this._userCallback)this._userCallback(null,a.id,b);else if(this._context)this._context[this._opName].call(this._scope?this._scope:this._context,null,a.id,b);else throw b;}else if(this._userCallback)this._userCallback(a.result,a.id,null);else if(this._context)this._context[this._opName].call(this._scope?this._scope:this._context,a.result,a.id,null);
else return a.result};
function WS_AddressCompletionWebService(a,b){pfx.ws.json.BaseStub.call(this,"AddressCompletionWebService",a,b,"/webservice")}WS_AddressCompletionWebService.prototype=new pfx.ws.json.BaseStub;WS_AddressCompletionWebService.prototype.getZipCodes=function(){return this.callMethod("getZipCodes",arguments,1)};WS_AddressCompletionWebService.prototype.getCities=function(){return this.callMethod("getCities",arguments,2)};
WS_AddressCompletionWebService.prototype.getStreets=function(){return this.callMethod("getStreets",arguments,2)};
//### zip:baseLib-1.0.8.jar/PUSTEFIX-INF/script/collection-min.js
(function(){var a=window.qxWeb.$$qx;a.Bootstrap.setRoot({qx:window.qxWeb.$$qx,baselib:window.baselib,qui:window.qui});a.$$packageData["0"]={locales:{},resources:{},translations:{}};(function(){a.Bootstrap.define("baselib.deprecated.Collection",{defer:function(){}})})()})();

//### zip:baseLib-1.0.8.jar/PUSTEFIX-INF/script/autocompletion-min.js
(function(){var h=window.qxWeb.$$qx;h.Bootstrap.setRoot({qx:window.qxWeb.$$qx,baselib:window.baselib,qui:window.qui});h.$$packageData["0"]={locales:{},resources:{},translations:{}};(function(){h.Bootstrap.define("baselib.ui.AutoCompletionBox",{extend:baselib.ui.Widget,construct:function(a,b){baselib.ui.Widget.call(this,a,b)},events:{search:"Object",searchStart:"Object",searchEnd:"Object",selected:"Object",render:"Object"},statics:{_config:{autoWidth:!0,useExternalCss:!1,beginAutoComplete:3,searchCaseSensitive:!1,
matchAtStart:!0,filterData:!0,noResultsContent:"",maxResults:15,ignorePattern:null,groupBy:null},__Mv:"qui-autocompletion-resultBox qx-autocompletionbox-resultbox",__Mw:"qui-autocompletion-resultList qx-autocompletionbox-resultlist",__Mx:"qui-autocompletion-resultListContainer qx-autocompletionbox-resultlistcontainer",__My:"qui-autocompletion-resultInfoBox qx-autocompletionbox-resultinfobox",__Mz:"qui-autocompletion-noResults qx-autocompletionbox-noresults",__MA:"qui-autocompletion-maxResultsInfo qx-autocompletionbox-maxresultsinfo",
__MB:"qui-autocompletion-resultListEntry qx-autocompletionbox-resultlistentry",__MC:"qui-autocompletion-resultListEntry-selected qx-autocompletionbox-resultlistentry-selected",__MD:"qui-autocompletion-resultListEntry-firstPart qx-autocompletionbox-resultlistentry-firstpart",__ME:"qui-autocompletion-resultListEntry-secondPart qx-autocompletionbox-resultlistentry-secondpart",__MF:"qui-autocompletion-resultListEntry-highlight qx-autocompletionbox-resultlistentry-highlight",__MG:"qx-autocompletionGroup-555",
_templates:{single:'<ul class="qui-autocompletion-resultList qx-autocompletionbox-resultlist">{{#items}}<li class="qui-autocompletion-resultListEntry qx-autocompletionbox-resultlistentry" id="{{id}}"><span class="qui-autocompletion-resultlistentry-secondPart qx-autocompletionbox-resultlistentry-secondpart">{{& secondpart}}</span></li>{{/items}}</ul>',multiple:'<ul class="qui-autocompletion-resultList qx-autocompletionbox-resultlist">{{#items}}<li class="qui-autocompletion-resultlistentry qx-autocompletionbox-resultlistentry" id="{{id}}"><span class="qui-autocompletion-resultListEntry-firstPart qx-autocompletionbox-resultlistentry-firstpart">{{& firstpart}}</span><span class="qui-autocompletion-resultListEntry-secondPart qx-autocompletionbox-resultlistentry-secondpart">{{& secondpart}}</span></li>{{/items}}</ul>',
itemContent:null,dataSource:{},group:{},maxResultsInfo:"<label>Show more results for '{{ input }}'</label>"},__MH:{Up:!0,Down:!0,Enter:!0,Tab:!0,Escape:!0,Unidentified:!0},autocompletionbox:function(a,b){var c=new baselib.ui.AutoCompletionBox(this);c.__MI(a);a&&(c.setProperty("__dataSource",a),c.setConfig("useExternalCss",b));c.init();return c}},members:{init:function(){if(!baselib.ui.Widget.prototype.init.call(this))return!1;this.__fh();var a=this.getConfig("useExternalCss");this.setUseExternalCss(void 0===
a?!1:a);this.__jf();this.getProperty("__dataSource")&&this.setDataSource(this.getProperty("__dataSource"));return!0},render:function(){!this.__fi("useExternalCss")&&this.getConfig("useExternalCss")?qxWeb.includeStylesheet("qui/static/autoCompletionBox.css"):!this.getConfig("useExternalCss")&&this.__fi("useExternalCss");this.__fh();if(this.__fi("groupBy")){this.__ML();var a=this.getProperty("__templateCache");if(a)for(var b in a)this.__MM(b)&&this.setTemplate(b,a[b])}this.getProperty("__resultBox")&&
this.__Nl()&&(this.getConfig("autoWidth")&&this.getProperty("__resultBox").setStyle("width",this.getWidth()+"px"),this._forEachElementWrapped(function(a){a.__MU()}));this.__MS();return this},setTemplate:function(a,b){var c=this.getProperty("__templateCache")||{};1==arguments.length&&(b=a,a="itemContent");-1!=["single","multiple","itemContent"].indexOf(a)&&this.setProperty("__itemTemplate",null);"itemContent"==a&&(this.setProperty("__itemTemplate",b),b=this.getProperty("__itemTemplateOpen")+b+this.getProperty("__itemTemplateClose"));
c[a]=b;this.setProperty("__templateCache",c);baselib.ui.Widget.prototype.setTemplate.call(this,a,b);return this},selectItem:function(a){var b=this.__MV();this.__MY(b[a]);return this},setConfig:function(a,b){baselib.ui.Widget.prototype.setConfig.call(this,a,b);if("ignorePattern"===a){this.setProperty("__searchList",[]);this.setProperty("__searchLookup",{});var c=this.getProperty("dataSource");if(c)for(var d in c)this.__MO(d)}return this},getDataSource:function(a){a=a||this.getProperty("__identifier");
return this.getProperty("dataSource")[a]},setDataSource:function(a,b){if("Array"!=qxWeb.type.get(a))throw Error("Please provide an array as data source!");b="undefined"!==typeof b?b:{};a.$$__isCustom=b.identifier?!0:!1;b.identifier=b.identifier||this.getProperty("__identifier");var c=this.getProperty("__searchList")||{},d=this.getProperty("__searchLookup")||{},e=this.getProperty("dataSource")||{},f=this.getProperty("__dataSourceIdentifiers"),s=this.getProperty("__dataSourceKeys")||{};c[b.identifier]=
[];d[b.identifier]={};e[b.identifier]=a;f.push(b.identifier);s[b.identifier]="undefined"!==typeof b.key?b.key:null;this.setProperty("__dataSourceKeys",s);this.setProperty("__dataSourceIdentifiers",f);this.setProperty("dataSource",e);this.setProperty("__searchList",c);this.setProperty("__searchLookup",d);this.__fi("groupBy")&&this.__ML();this.__MO(b.identifier);return this},resetDataSource:function(a){a=a||this.getProperty("__identifier");this.setDataSource([],a);return this},setResultContainer:function(a,
b){a=qxWeb(a);0===a.length&&qxWeb.error('Given "container" parameter does not contain any DOM element!');"undefined"===typeof b&&qxWeb.error('Please provide a value for the "dataSource" parameter.');var c=!0;this.getProperty("__dataSourceIdentifiers").every(function(a){return c=a!=b});!0===c&&qxWeb.error('Please provide a valid ID for "dataSource" parameter. You have to define it first with the "setDataSource" method!');this._forEachElementWrapped(function(c){var e=c.getProperty("__resultListContainer");
e&&0<e.length&&(c.__MK(e),e.getParents(":first").remove());c.setProperty("__resultListContainer",null);c.setProperty("__hasCustomResultBox",!0);c.setProperty("__customResultListContainer"+b,a);c.__MJ(a);c.__eG(a,baselib.ui.AutoCompletionBox.__Mx)})},getUseExternalCss:function(){return this.getConfig("useExternalCss")},setUseExternalCss:function(a){if("Boolean"!=qxWeb.type.get(a))throw Error("Please provide a boolean value for 'useExternalCss'!");this.setConfig("useExternalCss",a);this.render();return this},
getAutoWidth:function(){return this.getConfig("autoWidth")},setAutoWidth:function(a){if("Boolean"!=qxWeb.type.get(a))throw Error("Please provide a boolean value for 'autoWidth'!");this.setConfig("autoWidth",a);this.render();return this},isAutoWidth:function(){return this.getConfig("autoWidth")},getInfoBoxContent:function(){return this.getProperty("__infoBoxContent")},setInfoBoxContent:function(a){if("String"!=qxWeb.type.get(a))throw Error("Please provide a string value for 'infoBoxContent'!");this.setProperty("__infoBoxContent",
a);this.getProperty("__resultInfoBox").setHtml(a);return this},getBeginAutoComplete:function(){return this.getConfig("beginAutoComplete")},setBeginAutoComplete:function(a){if("Number"!=qxWeb.type.get(a))throw Error("Please provide a number value for 'beginAutoComplete'!");this.setConfig("beginAutoComplete",a);this.render();return this},getSearchCaseSensitive:function(){return this.getConfig("searchCaseSensitive")},setSearchCaseSensitve:function(a){if("Boolean"!=qxWeb.type.get(a))throw Error("Please provide a boolean value for 'searchCaseSensitive'!");
this.setConfig("searchCaseSensitive",a);this.render();return this},isSearchCaseSensitive:function(){return this.getConfig("searchCaseSensitive")},getMatchAtStart:function(){return this.getConfig("matchAtStart")},setMatchAtStart:function(a){if("Boolean"!=qxWeb.type.get(a))throw Error("Please provide a boolean value for 'searchCaseSensitive'!");this.setConfig("matchAtStart",a);this.render();return this},isMatchAtStart:function(){return this.getConfig("matchAtStart")},getFilterData:function(){return this.getConfig("filterData")},
setFilterData:function(a){if("Boolean"!=qxWeb.type.get(a))throw Error("Please provide a boolean value for 'filterData'!");this.setConfig("filterData",a);this.render();return this},isFilterData:function(){return this.getConfig("filterData")},getNoResultsContent:function(){return this.getConfig("noResultsContent")},setNoResultsContent:function(a){if("String"!=qxWeb.type.get(a))throw Error("Please provide a string value for 'noResultsContent'!");this.setConfig("noResultsContent",a);this.render();return this},
getMaxResults:function(){return this.getConfig("maxResults")},setMaxResults:function(a){if("Number"!=qxWeb.type.get(a))throw Error("Please provide a number value for 'maxResults'!");this.setConfig("maxResults",a);this.render();return this},getMaxResultsInfo:function(){return this.getTemplate("maxResultsInfo")},setMaxResultsInfo:function(a){if("String"!=qxWeb.type.get(a))throw Error("Please provide a string value for 'maxResultsInfo'!");this.setTemplate("maxResultsInfo",a);this.render();return this},
setResultBoxWidth:function(a){this.setProperty("__resultBoxWidth",a);null!==this.getProperty("__resultBox")&&this.getProperty("__resultBox").setStyle("width",a);return this},setResultBoxHeight:function(a){this.setProperty("__resultBoxHeight",a);null!==this.getProperty("__resultBox")&&this.getProperty("__resultBox").setStyle("height",a+"px");return this},__MI:function(a){this[0]?(this._forEachElementWrapped(function(a){qxWeb.isElement(this[0])||qxWeb.error("Elements of type "+a[0].nodeName+" not allowed !")},
this),void 0!==a&&(a instanceof Array||qxWeb.error("The data source has to be an Array!"))):qxWeb.error("No connected input element given!")},__jf:function(){this.setProperty("__document",qxWeb.getDocument(this));var a=qxWeb(this.getProperty("__document").body);this._forEachElementWrapped(function(b){b.setProperty("__identifier","qx-autocompletionbox-"+parseInt(1E4*Math.random(),10));b.setProperty("__dataSourceIdentifiers",[]);b.setProperty("__itemTemplateOpen",'<ul>{{#items}}<li id="{{id}}" class="'+
baselib.ui.AutoCompletionBox.__MB+'">');b.setProperty("__itemTemplateClose","</li>{{/items}}</ul>");b.setProperty("__infoBoxContent","");b.on("focus",b.__MQ,b);b.__MR();b.on("keyup",b._handleKeyUpInput,b);b.on("paste",b._handlePaste,b);b.setAttribute("autocomplete","off");b.__MJ(this.getProperty("__resultListContainer"));if("desktop"===qxWeb.env.get("device.type"))qxWeb(document.documentElement).on("pointerup",b.__No,b);a.on("keydown",b._handleKeyDownInput,b)});a.focus();qxWeb(window).on("blur",this.__Nn,
this);this.getConfig("useExternalCss")&&qxWeb.includeStylesheet("qui/static/autoCompletionBox.css")},__MJ:function(a){var b=this._handleTapOnResultEntry.bind(this);a.on("tap",b,!0);this.setProperty("__tapCallback",b);"desktop"===qxWeb.env.get("device.type")&&!1===this.getProperty("__hasCustomResultBox")&&(b=this._handleHoverResultList.bind(this),a.on("pointerover",b,!0),this.setProperty("__hoverCallback",b))},__MK:function(a){var b=this.getProperty("__tapCallback");a.off("tap",b,!0);"desktop"===qxWeb.env.get("device.type")&&
!1===this.getProperty("__hasCustomResultBox")&&a.off("pointerover",this.getProperty("__hoverCallback"),!0)},__ML:function(){var a=this.getDataSource(),b=this.__fi("groupBy"),c=[];a.forEach(function(a){b&&a[b]&&c.push(a[a[b]])});c=qxWeb.array.unique(c);this.setProperty("__groups",c)},__MM:function(a){return-1!=(this.getProperty("__groups")||[]).indexOf(a)},__MN:function(a){a=this.getProperty("dataSource");for(var b in a)if(a[b].$$__isCustom)return!0;return!1},__MO:function(a){a=a||this.getProperty("__identifier");
var b=this.getProperty("__dataSourceKeys")[a];null===b&&(b="id");var c=this.getDataSource(a),d="Array"===qxWeb.type.get(c[0]),e=this.getProperty("__searchList")[a],f=this.getProperty("__searchLookup")[a];c.forEach(function(a,c,h){if(d)null!==this.getConfig("ignorePattern")&&(a[1]=this.__MP(a[1])),e.push(a[1]),f[a[1]]=a[0];else if("object"==typeof a){var k=this.getConfig("ignorePattern");null!==k&&(a[b]=this.__MP(a[b]));e.push(a[b]);a.keywords&&"Array"===qxWeb.type.get(a.keywords)&&a.keywords.forEach(function(b){null!==
k&&(b=this.__MP(b));-1==e.indexOf(b)&&(e.push(b),f[b]=[]);f[b].push(a)}.bind(this));f[a[b]]=a}else null!==this.getConfig("ignorePattern")&&(a=this.__MP(a)),e.push(a)}.bind(this));this.getProperty("__resultBox")&&(c=qxWeb(this.getProperty("__currentTarget")).getValue())&&0<c.length&&this.__Nj(c,a)},__MP:function(a){var b=RegExp(this.getConfig("ignorePattern"),"gi");b.test(a)&&(a=a.substring(b.lastIndex));return a},__MQ:function(a){this.setProperty("__currentTarget",a.getTarget());this.getConfig("autoWidth")&&
this.getProperty("__resultBox").setStyle("width",qxWeb(a.getTarget()).getWidth()+"px")},__MR:function(){var a=baselib.ui.AutoCompletionBox;this.setProperty("__hasCustomResultBox",!1);this.setProperty("__resultBox",qxWeb.create("<div class='"+a.__Mv+"'>"));this.getProperty("__resultBox").setStyles({display:"none",position:"absolute",zIndex:1001});this.__MS();this.setProperty("__resultListContainer",qxWeb.create("<div class='"+a.__Mx+"'>"));this.setProperty("__resultInfoBox",qxWeb.create("<div class='"+
a.__My+"'>"));this.getProperty("__resultInfoBox").setHtml(this.getInfoBoxContent());this.getProperty("__resultBox").append(this.getProperty("__resultListContainer"));this.getProperty("__resultBox").append(this.getProperty("__resultInfoBox"));this.getProperty("__document").body.appendChild(this.getProperty("__resultBox")[0])},__MS:function(){var a=null,b=this.getProperty("__currentTarget")?qxWeb(this.getProperty("__currentTarget")).getWidth():this.eq(0).getWidth();this.getConfig("autoWidth")&&(this.setProperty("__resultBoxWidth",
b),this.setProperty("__resultBoxHeight",0),a=b+"px");"undefined"!==typeof this.getProperty("__resultBox")&&this.getProperty("__resultBox").setStyle("width",a)},__MT:function(){this.getProperty("__resultBox").placeTo(qxWeb(this.getProperty("__currentTarget")),"bottom-left",{left:0,right:0,top:0,bottom:0},"direct","direct")},_handlePaste:function(a){window.setTimeout(this.__MU.bind(this),0)},_handleKeyUpInput:function(a){a=a.getKeyIdentifier();baselib.ui.AutoCompletionBox.__MH[a]||this.__MU()},__MU:function(){var a=
this.getValue(),b=this.getConfig("beginAutoComplete");if(a){var c=this.getConfig("ignorePattern");null!==c&&(c=RegExp(c,"gi"),c.test(a)&&(a=a.substring(c.lastIndex)));if(a.length>=b)this.emit("search",{search:a,getData:function(){return a}}),this.emit("searchStart",{search:a,getData:function(){return a}}),window.setTimeout(function(){var b=this.getProperty("dataSource");if(b)for(var c in b)this.__Nj(a,c)}.bind(this),0);else if(a.length<b)if(this.getProperty("__hasCustomResultBox")){var b=this.getProperty("__dataSourceKeys"),
d;for(d in b)this.getProperty("__customResultListContainer"+d).empty()}else this.__Nn()}else this.__Nn()},_handleKeyDownInput:function(a){if(!this.getProperty("__hasCustomResultBox")){this.setProperty("__keyEvent",!0);var b=a.getTarget(),c=this.getProperty("__currentTarget");if(b==c)switch(b=a.getKeyIdentifier(),c=this.__Na(),c=0<c.length?c:null,b){case "Up":case "Down":this.__Nl()&&this.__MW("Down"==a.getKeyIdentifier()?!0:!1);break;case "Enter":this.__Nl()&&null!==c&&(this.__Ne(this.__Nd(c)),this.__Nn(),
this.focus(),a.stopPropagation(),a.preventDefault());break;case "Tab":null!==c&&this.__Ne(this.__Nd(c));this.__Nn();break;case "Escape":this.__Nn(),this.focus()}}},__MV:function(){var a=this.getProperty("__resultListContainer");return null!==a?a.find(".qui-autocompletion-resultListEntry-selected, .qui-autocompletion-resultListEntry, .qx-autocompletionbox-resultlistentry, .qx-autocompletionbox-resultlistentry-selected"):qxWeb()},__MW:function(a){if(0<this.getProperty("__currentResults")){var b=null,
c=this.getProperty("__resultListContainer"),d=this.__MV(),e=c.find(".qui-autocompletion-resultListEntry-selected, .qx-autocompletionbox-resultlistentry-selected"),f=d.length;0===e.length?b=a?0:f-1:(b=d.indexOf(e[0]),this.__Nb(e),a?b=(b+1)%f:this.getProperty("__lastSelectedEntry")==c[0]?(b=null,this.focus()):b=(b-1+f)%f);null!==b&&(b=qxWeb(d[b]),this.__MY(b),this.setProperty("__lastSelectedEntry",b))}},__MX:function(a,b){if(b.getRelatedTarget()&&this.getProperty("__hovered")){var c=b.getRelatedTarget(),
d=qxWeb(c);if(c==a[0]||d.isChildOf(a))return}a.off("pointerout",this.getProperty("__pointerOutCallback"));this.setProperty("__hovered",!1);this.setProperty("__currentTarget",null)},_handleHoverResultList:function(a){a.stopPropagation();if(this.getProperty("__keyEvent")&&this.getProperty("__hovered"))this.setProperty("__keyEvent",!1);else{0===this.__Na().length&&this.setProperty("__lastSelectedEntry",null);if(!0===this.getProperty("__hasCustomResultBox")&&!this.getProperty("__hovered")){this.setProperty("__currentTarget",
this.getProperty("__resultListContainer")[0]);this.setProperty("__hovered",!0);var b=this.getProperty("__resultListContainer"),c=this.__MX.bind(this,b);this.setProperty("__pointerOutCallback",c);b.on("pointerout",c)}a=this.__Nc(a.getTarget());null!==a&&this.__Nh(a)?(null!==this.getProperty("__lastSelectedEntry")&&this.__Nb(this.getProperty("__lastSelectedEntry")),this.__MY(a),this.setProperty("__lastSelectedEntry",qxWeb(a))):null===a&&(this.__Nb(this.getProperty("__lastSelectedEntry")),this.setProperty("__lastSelectedEntry",
null))}},__MY:function(a){var b=this.__Na();0<b.length&&this.__Nb(b);this.__Nf(qxWeb(a),baselib.ui.AutoCompletionBox.__MB,baselib.ui.AutoCompletionBox.__MC);this.setProperty("__lastSelectedEntry",qxWeb(a))},__Na:function(){var a=baselib.ui.AutoCompletionBox.__MC.split(" "),b=[];this.getProperty("__hasCustomResultBox")?this.getProperty("__dataSourceIdentifiers").forEach(function(a){b.push(this.getProperty("__customResultListContainer"+a))}.bind(this)):b.push(this.getProperty("__resultListContainer"));
var c=[];b.some(function(b){return!0===a.some(function(a){c=b.find("."+a);return 0<c.length})});return c},__Nb:function(a){this.__Nf(qxWeb(a),baselib.ui.AutoCompletionBox.__MC,baselib.ui.AutoCompletionBox.__MB)},_handleTapOnResultEntry:function(a){a=this.__Nc(a.getTarget());null!==a&&this.__Nh(a)&&(this.__Ne(this.__Nd(a)),this.getProperty("__hasCustomResultBox")?this.__MY(a):this.__Nn())},__Nc:function(a){for(var b=a.nodeName.toLowerCase();!this.__Nh(a)&&(a=a.parentNode,b=a.nodeName.toLowerCase(),
"body"!=b););return this.__Nh(a)?a:null},__Nd:function(a){return qxWeb(a).getAttribute("id")},__Ne:function(a){this.setValue(a);this.emit("selected",{target:this,selected:a,getData:function(){return a}})},__eG:function(a,b){b.split(" ").forEach(function(b){a.addClass(b)})},__Nf:function(a,b,c){b=b.split(" ");c=c.split(" ");b.forEach(function(b,e){a.replaceClass(b,c[e])})},__Ng:function(a,b){var c=!1;a=qxWeb(a);b=b.split(" ");b.forEach(function(b){a.hasClass(b)&&(c=!0)});return c},__Nh:function(a){a=
qxWeb(a);return this.__Ng(a,baselib.ui.AutoCompletionBox.__MB)||this.__Ng(a,baselib.ui.AutoCompletionBox.__MC)},__fh:function(){for(var a in baselib.ui.AutoCompletionBox._config)this.setProperty("__$$autocompletion_"+a,this.getConfig(a))},__fi:function(a){return this.getProperty("__$$autocompletion_"+a)},__Ni:function(a){var b={},c=this.__fi("groupBy");b[baselib.ui.AutoCompletionBox.__MG]=a;c&&(b={},a.items.forEach(function(a){a[c]&&!b[a[c]]&&(b[a[c]]={items:[]});b[a[c]].items.push(a)}));return b},
__Nj:function(a,b){if(!(a.length<this.getConfig("beginAutoComplete"))){b=b||this.getProperty("__identifier");var c=this.__fi("groupBy"),d=this.getTemplate("dataSource")?this.getTemplate("dataSource")[b]:void 0,e=this.getTemplate("group"),f=this.__MN(b)?b:null,s=b.split(" ").join("-"),l=null;if(!1===this.getProperty("__hasCustomResultBox"))l=this.getProperty("__resultListContainer"),l.find("."+s).remove();else{l=this.getProperty("__customResultListContainer"+s);if("undefined"===typeof l)return;l=l.find("."+
s).remove()}l.empty();var h=qxWeb.create("<span></span>"),k=this.getProperty("__searchLookup");k&&(k=k[b]);var t=this.getProperty("__groups"),g=Object.keys(e).length,n=!1;t&&(0<g&&g==g)&&(n=!0);var t=baselib.ui.AutoCompletionBox,m=this.__Nk(a,b);this.emit("searchEnd",{dataSource:f,search:a,getData:function(){return m}});if(0<m.length){g=qxWeb.create("<ul>");this.__eG(g,t.__Mw);var g=!1===this.getSearchCaseSensitive()?"i":"",p=qxWeb.string.escapeRegexpChars(a),p=RegExp("("+p+")",g),g={items:[]},r=
null,q=null,v=this.getTemplate("single"),w=this.getTemplate("multiple");if(this.getProperty("__itemTemplate")||d||n){p=0;for(r=m.length;p<r;p++)if(k[m[p]]instanceof Array)for(q=0,v=k[m[p]].length;q<v;q++)g.items.push(k[m[p]][q]);else g.items.push(k[m[p]]);d=d||(n?e:this.getTemplate("itemContent"))}else{for(var n=0,x=m.length;n<x;n++)q=m[n].replace(p,"<span class='"+t.__MF+"'>$1</span>"),k[m[n]]?(r=k[m[n]]+" > ",g.items.push({id:m[n],firstpart:r,secondpart:q})):g.items.push({id:m[n],secondpart:q});
d=d||(g.items[0].firstpart?w:v)}g.items=qxWeb.array.unique(g.items);g.resultGroupId=b;n=!1;g.items.length>this.getMaxResults()&&(g.items=g.items.slice(0,this.getMaxResults()),n=!0);var p=this.__Ni(g),q=r=null,u;for(u in p)r=null,q=e[u]||d,!0===this.getProperty("__hasCustomResultBox")&&(l=this.getProperty("__customResultListContainer"+f)),c&&(r=qxWeb.create("<ul class='qx-autocompletionbox-group-title "+s+"'><li>"+u+"</li></ul>"),l.append(r)),b=c?u:b,b=b.split(" ").join("-"),l.append(qxWeb.template.render(q,
p[u])),q=l.getChildren().getLast(),q.addClass(s),q.setAttribute("id",b),r&&r.setAttribute("id",b+"-title");n&&(c=h.clone(),this.__eG(c,t.__MA),c.setHtml(qxWeb.template.render(this.getMaxResultsInfo(),{input:a})),l.append(c));this.setProperty("__currentResults",g.items.length)}else{if(""===this.getNoResultsContent()){this.__Nn();return}c=h.clone();this.__eG(c,t.__Mz);c.setAttribute("html",this.getNoResultsContent());l.append(c);this.setProperty("__currentResults",0)}0<m.length&&!1===this.getProperty("__hasCustomResultBox")&&
(this.getProperty("__itemTemplate")?(k=k[m[0]],k=document.getElementById(k instanceof Array?k[0].id:k.id)):k=document.getElementById(m[0]),this.__MY(k));this.__Nm();this.emit("render",{datasource:f,container:l})}},__Nk:function(a,b){b=b||this.getProperty("__identifier");var c=[],d=!1===this.getSearchCaseSensitive()?"i":"",e=!0===this.getMatchAtStart()?"^":"",f=this.getProperty("__searchList"),f=f?f[b]:[];a=qxWeb.string.escapeRegexpChars(a);for(var d=RegExp(e+a,d),e=this.getFilterData(),h=0,l=f.length;h<
l;h++)e?d.test(f[h])&&c.push(f[h]):c.push(f[h]);return c},__Nl:function(){if(!1===this.getProperty("__hasCustomResultBox"))return"block"==this.getProperty("__resultBox").getStyle("display")},__Nm:function(){if(!1===this.getProperty("__hasCustomResultBox")){var a=this.getProperty("__document").documentElement.clientWidth,b=this.getProperty("__resultBox");this.__MT();this.getProperty("__resultBox").setStyle("display","block");var c=this.getProperty("__document").documentElement.clientWidth;a!=c&&(a=
Math.ceil((a-c)/2),b.setStyle("left",b.getPosition().left-a+"px"));this.getProperty("__blocked")||(b.block("transparent",0,1E3),this.setProperty("__blocked",!0))}},__Nn:function(){if(!1===this.getProperty("__hasCustomResultBox")){var a=this.getProperty("__resultBox");a.setStyle("display","none");this.getProperty("__blocked")&&(a.unblock(),this.setProperty("__blocked",!1));this.setProperty("__lastSelectedEntry",null)}},__No:function(a){a=qxWeb(a.getTarget());if(!1===this.getProperty("__hasCustomResultBox")&&
this.__Nl()){var b=this.getProperty("__resultBox"),c=b[0]==a[0],b=a.isChildOf(b);a[0]!=this[0]&&!1===c&&!1===b&&this.__Nn()}}},defer:function(a){qxWeb.$attach({autocompletionbox:a.autocompletionbox});a=function(a,c,d){"string"==typeof a&&"#"!=a.charAt(0)&&"."!=a.charAt(0)&&(a="#"+a.replace(/\./g,"\\."));return qxWeb(a).autocompletionbox(c,d)};qxWeb.$attachStatic({autocompletionbox:a});if(null===window.qui||"object"!=typeof window.qui)window.qui={};if(null===window.qui.bom||"object"!=typeof window.qui.bom)window.qui.bom=
{};window.qui.bom.AutoCompletionBox=a}})})()})();
(function(){(window.baselib||{}).AutoCompletionBox=function(){var h;h='The "baselib.AutoCompletionBox" namespace is *deprecated*! Please make sure to update your code to the selector-oriented syntax!\n';var a=qxWeb.array.fromArguments(arguments),b="undefined"!==typeof a[0]?a[0]:null,c=[];1<a.length&&(c=a.slice(1));a=qxWeb(b);c=a.autocompletionbox.apply(a,c);h+="Head over to the API docs and demo page to get more infos\n\n\thttp://baselib.ai.1und1.de/devel/docs/api/index.html / http://baselib.ai.1und1.de/devel/docs/demos/index.html\n\n";h+=
'A example for this syntax is $q("#yourSelector").autocompletionbox(dataSource, useExternalCss);';c instanceof window.qxWeb.$$qx.ui.website.Widget&&c.init();qxWeb.info(h);return c}})();

UNOUNO.ajax.InfoBox=function(){this.init()};
UNOUNO.ajax.InfoBox.prototype={qxBom:qx.bom,infoxWidth:null,infoHeight:null,initInfoBoxMagic:function(a,b,c,d){if(a&&null!==document.getElementById(a)){var e=function(a,b,c,e,d,f,k,l){return function(m){a.modifyInfoBoxHover(b,c,e,d,f,k,l)}},f=document.getElementById(a).parentNode;this.infoWidth=this.qxBom.element.Style.get(f,"width").substring(0,this.qxBom.element.Style.get(f,"width").length-2);this.infoHeight=this.qxBom.element.Style.get(f,"height").substring(0,this.qxBom.element.Style.get(f,"height").length-
2);"mshtml"!==qx.core.Environment.get("engine.version")||"6.0"!==qx.core.Environment.get("engine.version")||document.getElementById("iframe."+a)||d||(d=document.createElement("iframe"),d.setAttribute("id","iframe."+a),d.setAttribute("src","/modules/frontend-ingrid/img/blank.gif"),d.className="infobox-ingrid",f.appendChild(d),this.qxBom.element.Style.set(document.getElementById("iframe."+a),"opacity",0),this.qxBom.element.Style.set(document.getElementById("iframe."+a),"position","absolute"));this.qxBom.Element.addListener(document.getElementById(a),
"mouseover",e(this,a,b[0],b[1],b[2],b[3],b[4],!1));null!==document.getElementById(a.substring(5))&&this.qxBom.Element.addListener(document.getElementById(a.substring(5)),"focus",e(this,a,b[0],b[1],b[2],b[3],b[4],!1));c||this.qxBom.Element.addListener(document.getElementById(a),"mouseout",function(a,b){return function(c){b&&a.resetInfoBox(b)}}(this,a));null!==document.getElementById(a.substring(5))&&this.qxBom.Element.addListener(document.getElementById(a.substring(5)),"blur",function(a,b){return function(c){b&&
window.setTimeout(function(a,b){return function(c){a.resetInfoBox(b)}}(a,b),100)}}(this,a))}},modifyInfoBoxHover:function(a,b,c,d,e,f,h){a&&null!==document.getElementById(a)&&(this.resetInfoBox(this.getLastInfoBox()),h||this.setLastInfoBox(a),h=document.getElementById(a).parentNode,this.qxBom.element.Style.set(h,"z-index",b),this.modifyBox(a,1,c,d,e,f,!0))},showInfoBoxMagic:function(a,b,c){if(a&&null!==document.getElementById(a)){var d=document.getElementById(a).parentNode;this.qxBom.element.Style.set(d,
"z-index",b[0]);this.modifyBox(a,1,b[1],b[2],b[3],b[4],!0);"undefined"!==typeof c&&this.qxBom.Element.addListener(document.getElementById(c),"click",function(a,b,c){return function(d){b&&a.hideInfoBoxMagic(a,b,c)}}(this,a,c))}},hideInfoBoxMagic:function(a,b,c){b&&null!==document.getElementById(b)&&(this.qxBom.Element.addListener(document.getElementById(b),"mouseout",function(a,b){return function(c){b&&a.resetInfoBox(b)}}(this,b)),!0===document.getElementById(c).checked&&this.resetInfoBox(b))},resetInfoBox:function(a){if(a&&
null!==document.getElementById(a)){this.modifyBox(a,1,this.infoWidth,this.infoHeight,0,0,!0);this.modifyBoxContent(a,"none");if(document.getElementById(a).parentNode){var b=document.getElementById(a).parentNode;this.qxBom.element.Style.set(b,"z-index","0")}document.getElementById("iframe."+a)&&(this.modifyBox("iframe."+a,0,this.infoWidth,this.infoHeight,0,0,!1),this.qxBom.element.Style.set(document.getElementById("iframe."+a),"display","none"))}},modifyBox:function(a,b,c,d,e,f,h){if(a&&null!==document.getElementById(a)){var g=
document.getElementById(a);g&&(this.qxBom.element.Style.set(g,"z-index",b),this.qxBom.element.Style.set(g,"width",c+"px"),this.qxBom.element.Style.set(g,"height",d+"px"),this.qxBom.element.Style.set(g,"left",e+"px"),this.qxBom.element.Style.set(g,"top",f+"px"),h&&this.modifyBoxContent(a,"block"),a=document.getElementById("iframe."+a))&&(this.qxBom.element.Style.set(a,"display","block"),this.qxBom.element.Style.set(a,"z-index",b-1),this.qxBom.element.Style.set(a,"width",c+"px"),this.qxBom.element.Style.set(a,
"height",d+"px"),this.qxBom.element.Style.set(a,"left",e+"px"),this.qxBom.element.Style.set(a,"top",f+"px"))}},modifyBoxContent:function(a,b){if(a&&null!==document.getElementById(a)){var c=this.getElementsByClassName("header","div",a);this.qxBom.element.Style.set(c[0],"display",b);c=this.getElementsByClassName("content","div",a);this.qxBom.element.Style.set(c[0],"display",b);c=this.getElementsByClassName("footer","div",a);this.qxBom.element.Style.set(c[0],"display",b)}},getElementsByClassName:function(a,
b,c){var d=[],e=0,f=0;b=document.getElementById(c)?b?document.getElementById(c).getElementsByTagName(b):document.getElementById(c).getElementsByTagName("*"):b?document.getElementsByTagName(b):document.getElementsByTagName("*");for(e;e<b.length;e++)if(0<=b[e].className.indexOf(" "))for(c=b[e].className.split(" "),f;f<c.length;f++)c[f]===a&&d.push(b[e]);else b[e].className===a&&d.push(b[e]);return d},init:function(){var a=null;this.getLastInfoBox=function(){return a};this.setLastInfoBox=function(b){a=
b}}};
"undefined"===typeof UNOUNO.global&&(UNOUNO.global={});
UNOUNO.global.preisWechsel=function(b){!1===document.getElementById("hardware.set").checked?(document.getElementById("lanid").style.display="",document.getElementById("wlanid").style.display="none",document.getElementById("lanid_box").style.display="",document.getElementById("wlanid_box").style.display="none",document.getElementById("lanid_head").style.display="",document.getElementById("wlanid_head").style.display="none"):(document.getElementById("lanid").style.display="none",document.getElementById("wlanid").style.display=
"",document.getElementById("lanid_box").style.display="none",document.getElementById("wlanid_box").style.display="",document.getElementById("lanid_head").style.display="none",document.getElementById("wlanid_head").style.display="")};
UNOUNO.global.tabView=function(b){b=qx.bom.Collection.query("."+b);var c=null,d=null,a=0,e=function(a){null!==c&&qx.bom.element.Class.add(c,"hidden");null!==d&&qx.bom.element.Class.remove(d,"current");var b=document.getElementById(a.getTarget().innerHTML),e=a.getTarget();a.preventDefault();b&&qx.bom.element.Class.remove(b,"hidden");e&&qx.bom.element.Class.add(e,"current");c=b;d=e};for(a;a<b.length;a++)qx.bom.Element.addListener(b[a],"click",e,this)};
UNOUNO.global.providerListToggle=function(){var b=document.getElementById("providerlist-toggle"),c=document.getElementById("providerlist");""!==b&&""!==c&&(qx.bom.Element.addListener(b,"mouseover",function(){c.style.display="block"}),qx.bom.Element.addListener(b,"mouseout",function(){c.style.display="none"}))};
UNOUNO.global.changeDeviceImageThumb=function(b,c){var d=qx.bom.Collection.query("."+b),a=0,e=null,f=function(a){a=a.getTarget().id.replace("thumb_","");(a=document.getElementById(a))&&a!==e&&(thumbImg=document.getElementById("thumb_"+a.id),qx.bom.element.Class.remove(a,"hidden"),qx.bom.element.Class.add(thumbImg,"nostyle"),qx.bom.element.Class.has(thumbImg,"tablet")&&(thumbImg.src="/modules/frontend-access-common/img/components/smart/tablet-zoom-active.png"),qx.bom.element.Class.has(thumbImg,"smartphone")&&
(thumbImg.src="/modules/frontend-access-common/img/components/smart/zoom-active.png"));e&&null!==e&&e!==a&&(thumbImg=document.getElementById("thumb_"+e.id),qx.bom.element.Class.add(e,"hidden"),qx.bom.element.Class.remove(thumbImg,"nostyle"),qx.bom.element.Class.has(thumbImg,"tablet")&&(thumbImg.src="/modules/frontend-access-common/img/components/smart/tablet-zoom.png"),qx.bom.element.Class.has(thumbImg,"smartphone")&&(thumbImg.src="/modules/frontend-access-common/img/components/smart/zoom.png"));
e=a};for(a;a<d.length;a++)qx.bom.Element.addListener(d[a],"click",f,this),void 0!==typeof c&&a===c-1?qx.bom.Event.fire(d[a],"click"):0===a&&qx.bom.Event.fire(d[a],"click")};UNOUNO.global.in_array=function(b,c){for(var d=0;d<c.length;d++)if(b==c[d])return!0;return!1};UNOUNO.global.siteinfo=function(b,c){if("true"==b){var d=document.createElement("div");d.id="siteinfo";for(var a=0;a<c.length;a++)if(""!==c[a]){var e=document.createElement("p");e.innerHTML=c[a];d.appendChild(e)}document.body.appendChild(d)}};
UNOUNO.global.submitOnOrderChange=function(b){var c=function(a){if(a=document.getElementById(a.getTarget().name))if("mshtml"!==qx.core.Environment.get("engine.version")||"6.0"!==qx.core.Environment.get("engine.version")&&"7.0"!==qx.core.Environment.get("engine.version"))a.click();else return!1};b=qx.bom.Collection.query(b);for(var d=0;d<b.length;d++)qx.bom.Element.addListener(b[d],"change",c)};
UNOUNO.global.tabFocus=function(){for(var b=function(a){a=qx.dom.Element.getParentElement(a.getTarget());qx.bom.element.Class.has(a,"dropdown")&&qx.bom.element.Class.add(a,"dropdown_hover");qx.bom.element.Class.has(a,"dropdown_left")&&qx.bom.element.Class.add(a,"dropdown_left_hover")},c=qx.bom.Collection.query("#header_nav .header-nav-open"),d=0;d<c.length;d++)qx.bom.Element.addListener(c[d],"focus",b)};
UNOUNO.global.printPage=function(b){b=qx.bom.Collection.query("."+b);var c=0,d=function(a){a.preventDefault();window.print()};if(0<b.length)for(c;c<b.length;c++)qx.bom.Element.addListener(b[c],"click",d,this)};
UNOUNO.namespace("ajax");UNOUNO.ajax.OrderProcess=function(){this.init()};
UNOUNO.ajax.OrderProcess.prototype={qxBom:qx.bom,hideWrapperWarnings:function(){for(var b=this.getElementsByClassName("nowrapper"),a=0;a<b.length;a++)for(var d=b[a].getElementsByTagName("div"),f=/Warning: Unknown wrapper/,c=/Warning: Unknown parameter/,e=0;e<d.length;e++)d[e].firstChild&&(f.test(d[e].firstChild.nodeValue)&&(d[e].style.display="none"),c.test(d[e].firstChild.nodeValue)&&(d[e].style.display="none"))},getElementsByClassName:function(b,a){var d=[],f;f=a?a.getElementsByTagName("*"):document.getElementsByTagName("*");
for(var c=0;c<f.length;c++)if(0<=f[c].className.indexOf(" "))for(var e=f[c].className.split(" "),g=0;g<e.length;g++)e[g]==b&&d.push(f[c]);else f[c].className==b&&d.push(f[c]);return d},initHighlightEffect:function(){for(var b=document.getElementsByTagName("input"),a=0;a<b.length;a++)if("text"==b[a].type||"password"==b[a].type)this.qxBom.Element.addListener(b[a],"focus",function(a,b){return function(c){a.qxBom.element.Class.add(b,"highlight")}}(this,b[a])),this.qxBom.Element.addListener(b[a],"blur",
function(a,b){return function(c){a.qxBom.element.Class.remove(b,"highlight")}}(this,b[a]))},init:function(){this.hideWrapperWarnings();this.initHighlightEffect()}};
UNOUNO.namespace("ajax");UNOUNO.ajax.InputGrid=function(){this.init()};
UNOUNO.ajax.InputGrid.prototype={qxBom:qx.bom,initToggle:function(a,b,c,d){this.setToggleObject(a,b,c,d);document.getElementById(a)&&(document.getElementById(a+".unchecked")&&document.getElementById(a+".checked")?"radio"!==document.getElementById(a).type&&"checkbox"!==document.getElementById(a).type||this.qxBom.Element.addListener(document.getElementById(a),"change",function(a,b){return function(c){b&&a.toggle(b)}}(this,a)):this.qxBom.Element.addListener(document.getElementById(a),"click",function(a,
b){return function(c){b&&a.toggle(b)}}(this,a)))},toggle:function(a){if(this.isChecked(a)&&(this.hide(this.getToggleObject(a).hideChecked),this.show(this.getToggleObject(a).showChecked),this.isChecked(a)))if(document.cookie=a+"\x3dtrue#;path\x3d"+window.location.pathname,this.getToggleObject(a).otherElements instanceof Array){a=this.getToggleObject(a).otherElements;for(var b=0;b<a.length;b++)document.cookie=a[b]+"\x3dfalse#;path\x3d"+window.location.pathname}else document.cookie=this.getToggleObject(a).otherElements+
"\x3dfalse#;path\x3d"+window.location.pathname},show:function(a){if(this.isArray(a))for(var b=0;b<a.length;b++)document.getElementById(a[b])&&this.qxBom.element.Style.set(document.getElementById(a[b]),"display","block");else a&&document.getElementById(a)&&this.qxBom.element.Style.set(document.getElementById(a),"display","block");this.changeDisabledProperty(a,!1)},hide:function(a){if(this.isArray(a))for(var b=0;b<a.length;b++)a[b]&&document.getElementById(a[b])&&this.qxBom.element.Style.set(document.getElementById(a[b]),
"display","none");else a&&document.getElementById(a)&&this.qxBom.element.Style.set(document.getElementById(a),"display","none");this.changeDisabledProperty(a,!0)},changeDisabledProperty:function(a,b){if(a)if(this.isArray(a))for(var c=0;c<a.length;c++){if(a[c]&&document.getElementById(a[c])){inputElements=document.getElementById(a[c]).getElementsByTagName("input");for(var d=0;d<inputElements.length;d++)inputElements[d].disabled=b}}else if(a&&document.getElementById(a))for(inputElements=document.getElementById(a).getElementsByTagName("input"),
d=0;d<inputElements.length;d++)inputElements[d].disabled=b},initAllToggles:function(){var a=this.getAllToggleObjects();if(a){for(var b in a)this.initCheckStatus(b);for(b in a)this.toggle(b)}},initCheckStatus:function(a){var b=null,c=document.cookie.indexOf(a+"\x3d");-1!=c&&(b=c+(a.length+1),b=document.cookie.substring(b,document.cookie.indexOf("#",b)));null!=b&&document.getElementById(a)&&("true"==b?document.getElementById(a).checked=!0:document.getElementById(a).checked=!1)},init:function(){var a=
{},b={};this.isChecked=function(a){if(document.getElementById(a))return document.getElementById(a).checked};this.isArray=function(a){return a&&"object"===typeof a&&"number"===typeof a.length&&"function"===typeof a.splice&&!a.propertyIsEnumerable("length")};this.getToggleObject=function(b){return a[b]};this.getAllToggleObjects=function(){return a};this.setToggleObject=function(b,d,e,f){a[b]={};a[b].showChecked=d;a[b].hideChecked=e;a[b].otherElements=f};this.getClearField=function(a){return b[a]};this.setClearField=
function(a){b[a]=document.getElementById(a).value}}};
UNOUNO.util.errorBox=function(a,b,c){this.init(a,b,c)};
UNOUNO.util.errorBox.prototype={qxBom:qx.bom,qxDom:qx.dom,getErrorButtons:function(){for(var a=qx.bom.Collection.query(".ingrid-row .ingrid-error-info"),b=qx.bom.Collection.query(".ingrid-row .ingrid-error-box"),c=qx.bom.Collection.query(".ingrid-row .infobox-ingrid-error"),g=function(a,c,b,d){return function(e){a.showErrors(c,b,d)}},k=function(a,c,b,d){return function(e){a.hideErrors(c,b,d)}},d=0;d<a.length;d++)if("none"!==a[d].style.display){var e=a[d],f=b[d],h=[d];f&&(this.qxBom.Element.addListener(a[d],
"mouseover",g(this,e,f,h)),this.qxBom.Element.addListener(a[d],"mouseout",k(this,e,f,h)),this.setErrorRow(e))}for(a=0;a<c.length;a++)this.setErrorRow(c[a])},hideErrors:function(a,b,c){b.style.display="none";this.modifyErrobox(!1,a,b,c)},showErrors:function(a,b,c){b.style.display="block";this.modifyErrobox(!0,a,b,c)},setErrorRow:function(a){var b=function(a){a=qx.dom.Element.getParentElement(a);return qx.bom.element.Class.has(a,"ingrid-row")?(qx.bom.element.Class.add(a,"ingrid-error-row"),!1):b(a)};
b(a)},modifyErrobox:function(a,b,c,g){qx.bom.element.Class.add(c,this.sizeClass);c.style.position="absolute";a=qx.bom.element.Location.getPosition(b).left-this.posLeft;b=qx.bom.element.Location.getPosition(b).top-c.offsetHeight-this.posTop;c.style.top=b+"px";c.style.left=a+"px"},init:function(a,b,c){this.sizeClass=a;this.posTop=c;this.posLeft=b;this.getErrorButtons()}};
$q.define("UNOUNO.pages.PsOnkzCheck",{statics:{init:function(){if(0<qx.bom.Collection.query("ul.nc").length){var a=new UNOUNO.components.adressAutoComplete;options=[];options.city=[];options.plz=[];options.street=[];options.debug=[];options.city.inputId="#nc\\.city";options.plz.inputId="#nc\\.zip";options.street.inputId="#nc\\.street";options.streetNumber="#nc\\.streetNumber";options.city.beginAutoComplete=1;options.city.stopServiceCall=2;options.plz.beginAutoComplete=3;options.street.stopServiceCall=
4;options.street.beginAutoComplete=1;options.keyDelay=200;options.debug.serviceCalls=!1;options.debug.keyDelay=!1;options.debug.listSearch=!1;a.setOptions(options);a.init();a.setDebug(!1);UNOUNO.inline.orderProcess=new UNOUNO.ajax.OrderProcess;UNOUNO.inline.errorBoxes=new UNOUNO.util.errorBox("error-standard",250,0);UNOUNO.inline.WaitingAdvice=new UNOUNO.local.WaitingAdvice("waiting_container","button-ct-btn-weiter")}}}});UNOUNO.pages.PsOnkzCheck.init();(function(w,k,d) {w[k]=(w[k]||[]).concat(d||[])})(window,'JASMIN_DEPENDENCIES',["adress-auto-complete","qx-infobox","frontend-access-common-components-ordercontent","ingrid","error-box","dslorder-de-pages-PsOnkzCheck","suffix-nk"])