(function() {(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})["uoe-cookies-banner.njk"] = (function() {
function root(env, context, frame, runtime, cb) {
var lineno = 0;
var colno = 0;
var output = "";
try {
var parentTemplate = null;
output += "<div class=\"cookie-container\">\n  <div class=\"cookie-row\">\n    <div class=\"cookie-col-single\">\n      <h3 class=\"cookie-heading\">";
output += runtime.suppressValue(runtime.contextOrFrameLookup(context, frame, "heading"), env.opts.autoescape);
output += "</h3>\n    </div>\n    <div class=\"cookie-col-double\">\n      ";
frame = frame.push();
var t_3 = runtime.contextOrFrameLookup(context, frame, "text");
if(t_3) {t_3 = runtime.fromIterator(t_3);
var t_2 = t_3.length;
for(var t_1=0; t_1 < t_3.length; t_1++) {
var t_4 = t_3[t_1];
frame.set("para", t_4);
frame.set("loop.index", t_1 + 1);
frame.set("loop.index0", t_1);
frame.set("loop.revindex", t_2 - t_1);
frame.set("loop.revindex0", t_2 - t_1 - 1);
frame.set("loop.first", t_1 === 0);
frame.set("loop.last", t_1 === t_2 - 1);
frame.set("loop.length", t_2);
output += "\n        <p>";
output += runtime.suppressValue(t_4, env.opts.autoescape);
output += "</p>\n      ";
;
}
}
frame = frame.pop();
output += "\n    </div>\n    <div class=\"cookie-col-single\">\n      <ul class=\"cookie-actions\">\n        <li><button type=\"button\" class=\"cookie-btn cookie-btn-primary cookie-btn-save\">Continue</button></li>\n        <li><button type=\"button\" class=\"cookie-btn cookie-btn-primary cookie-btn-change\">Change settings</button></li>\n        <li><a href=\"";
output += runtime.suppressValue(env.getFilter("safe").call(context, runtime.contextOrFrameLookup(context, frame, "link")), env.opts.autoescape);
output += "\" class=\"cookie-btn cookie-btn-secondary\">Find out more</a></li>\n      </ul>\n    </div>\n  </div>\n</div>\n";
if(parentTemplate) {
parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);
} else {
cb(null, output);
}
;
} catch (e) {
  cb(runtime.handleError(e, lineno, colno));
}
}
return {
root: root
};

})();
})();
(function() {(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})["uoe-cookies-lid.njk"] = (function() {
function root(env, context, frame, runtime, cb) {
var lineno = 0;
var colno = 0;
var output = "";
try {
var parentTemplate = null;
output += "<button type=\"button\" class=\"cookie-btn cookie-btn-secondary cookie-btn-sm cookie-btn-change\">Change cookie settings</button>\n";
if(parentTemplate) {
parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);
} else {
cb(null, output);
}
;
} catch (e) {
  cb(runtime.handleError(e, lineno, colno));
}
}
return {
root: root
};

})();
})();
(function() {(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})["uoe-cookies-overlay.njk"] = (function() {
function root(env, context, frame, runtime, cb) {
var lineno = 0;
var colno = 0;
var output = "";
try {
var parentTemplate = null;
output += "<div class=\"cookie-overlay embed-responsive-item\">\n    <div class=\"cookie-container\">\n        <div class=\"cookie-row\">\n            <div class=\"cookie-col-single\">\n                <h3 class=\"cookie-heading\">Privacy statement</h3>\n                <p>This content is delivered by partner companies we work with.</p>\n                <p>Viewing this content will result in cookies being set on your device and may result in some\n                    information about your visit being saved. By accepting this you agree for this information\n                    to be shared with these non-University companies.</p>\n                <button type=\"button\" class=\"cookie-btn cookie-btn-primary cookie-btn-overlay\">Accept and view</button>\n            </div>\n        </div>\n    </div>\n</div>\n";
if(parentTemplate) {
parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);
} else {
cb(null, output);
}
;
} catch (e) {
  cb(runtime.handleError(e, lineno, colno));
}
}
return {
root: root
};

})();
})();
(function() {(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})["uoe-cookies-preferences.njk"] = (function() {
function root(env, context, frame, runtime, cb) {
var lineno = 0;
var colno = 0;
var output = "";
try {
var parentTemplate = null;
output += "<div class=\"cookie-container\">\n  <div class=\"cookie-row\">\n    <div class=\"cookie-col-single\">\n      <h3 class=\"cookie-heading\">";
output += runtime.suppressValue(runtime.contextOrFrameLookup(context, frame, "heading"), env.opts.autoescape);
output += "</h3>\n    </div>\n    <div id=\"cookiePrefs\" class=\"cookie-col-double\">\n      ";
frame = frame.push();
var t_3 = runtime.contextOrFrameLookup(context, frame, "settings");
if(t_3) {t_3 = runtime.fromIterator(t_3);
var t_2 = t_3.length;
for(var t_1=0; t_1 < t_3.length; t_1++) {
var t_4 = t_3[t_1];
frame.set("setting", t_4);
frame.set("loop.index", t_1 + 1);
frame.set("loop.index0", t_1);
frame.set("loop.revindex", t_2 - t_1);
frame.set("loop.revindex0", t_2 - t_1 - 1);
frame.set("loop.first", t_1 === 0);
frame.set("loop.last", t_1 === t_2 - 1);
frame.set("loop.length", t_2);
output += "<div class=\"checkbox checkbox-cookie-setting\">\n          <input type=\"checkbox\" id=\"uoe-cookie-setting-";
output += runtime.suppressValue(runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "loop")),"index"), env.opts.autoescape);
output += "\" name=\"";
output += runtime.suppressValue(runtime.memberLookup((t_4),"name"), env.opts.autoescape);
output += "\" value=\"true\"";
if(runtime.memberLookup((t_4),"disabled")) {
output += " disabled ";
;
}
if(runtime.memberLookup((t_4),"checked")) {
output += " checked ";
;
}
output += " />\n          <label for=\"uoe-cookie-setting-";
output += runtime.suppressValue(runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "loop")),"index"), env.opts.autoescape);
output += "\">";
output += runtime.suppressValue(runtime.memberLookup((t_4),"label"), env.opts.autoescape);
output += "\n            <a class=\"cookie-link\" href=\"";
output += runtime.suppressValue(env.getFilter("safe").call(context, runtime.memberLookup((t_4),"link")), env.opts.autoescape);
output += "\">Learn more about ";
output += runtime.suppressValue(runtime.memberLookup((t_4),"name"), env.opts.autoescape);
output += " cookies.</a></label>\n        </div>";
;
}
}
frame = frame.pop();
output += "\n    </div>\n    <div class=\"cookie-col-single\">\n      <ul class=\"cookie-actions\">\n        <li><button type=\"button\" class=\"cookie-btn cookie-btn-primary cookie-btn-save\">Save settings</button></li>\n        <li><button type=\"button\" class=\"cookie-btn cookie-btn-primary cookie-btn-cancel\">Cancel</button></li>\n        <li><a href=\"https://www.ed.ac.uk/about/website/privacy\" class=\"cookie-btn cookie-btn-secondary\">Find out more</a></li>\n      </ul>\n    </div>\n  </div>\n</div>\n";
if(parentTemplate) {
parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);
} else {
cb(null, output);
}
;
} catch (e) {
  cb(runtime.handleError(e, lineno, colno));
}
}
return {
root: root
};

})();
})();
