//>>built
define("mill/jssupport/gdpr",["dojo/cookie","dojo/dom-construct","dojo/on"],function(g,e,l){function h(b){b.GDPRNode&&(e.destroy(b.GDPRNode),b.GDPRNode=null)}function m(b){dojo.forEach(k,function(a){for(var d=a.value||(Math.random()*Math.pow(10,6)).toFixed(),c={path:"/",expires:a.expires||7300},f=window.location.hostname.split(".");2<f.length;)f.shift();2===f.length&&f[1].match(/^[a-z]{2,4}$/)&&dojo.mixin(c,{domain:f.join(".")});g(a.name,d,c)});h(b)}function n(b,a){var d=e.create("div",{style:{position:"fixed",
bottom:"0",left:"0",width:"100%",zIndex:"1001",backgroundColor:"#fcf8e3"}},window.document.body,"last"),c=e.create("div",{style:{display:"table",margin:"10px auto",maxWidth:"1120px",textAlign:"center"}},d);e.create("div",{style:{display:"table-cell"},innerHTML:a||b.getLocalization("Office.GDPRText")},c);c=e.create("a",{style:{cursor:"pointer"},innerHTML:"\x26#215;"},e.create("div",{style:{display:"table-cell",width:"3em",verticalAlign:"middle",fontSize:"2em"}},c));l(c,"click",m.bind(null,b));return b.GDPRNode=
d}var k=[{name:"C4958FB1-D61F-4D64-9037-A3A28E7B3757",value:null,expires:null},{name:"gdpr_confirm",value:1,expires:365}];return function(b){var a=window.base||{};Object.prototype.hasOwnProperty.call(a,"GDPRNode")||(a.GDPRNode=null);if(a.locale&&a.getLocalization){h(a);var d=!1;dojo.forEach(k,function(c){g(c.name)&&(d=!0)});d||a.GDPRNode||n(a,b)}else mill.fieldValue(mill.fieldValue(window,"console"),"error").call(null,"Something wrong with function base.gdpr.checkGDPR")}});