!function(a){function b(){var a="oneComWsCb";return a}function c(){var a="testingOneComKey",b=window.localStorage;try{return b.setItem(a,"1"),b.removeItem(a),!0}catch(c){return!1}}function d(a,b){window&&window.localStorage&&c()&&window.localStorage.setItem(a,b)}function e(){if(window&&window.localStorage)return JSON.parse(window.localStorage.getItem(b()))}function f(){var a={acceptTs:Date.now()};d(b(),JSON.stringify(a))}function g(){var a=31536e6,b=e();if(b&&b.acceptTs){var c=b.acceptTs,d=Date.now();if(d-c<a)return!0}return!1}function h(){l.hide()}function i(){l.show()}function j(){try{runCrmScript&&"function"==typeof runCrmScript&&runCrmScript()}catch(a){}}function k(){if(g())j(),h();else{var a=l.find("#cookieBannerBtn");a.click(function(){f(),h(),j()}),i()}}var l=a("#cookieBannerContainer"),m=1==l.data("cookiebanner");m?k():j()}(oneJQuery);