CINXE.COM

Send us your stuff! - CBBC - BBC

<!DOCTYPE html> <html lang="en" id="ng-app" class="no-js b-header--white--black b-footer--transparent--dark-grey b-reith-sans-font"> <head prefix="og: http://ogp.me/ns#"><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://www.bbc.co.uk/cbbc/upload/u3152038?ptrt=%2Fcbbc%2Fgames%2Fcbbc-picture-maker","20190207191953","https://web.archive.org/","web","/_static/", "1549567193"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <link rel="schema.DCTERMS" href="https://purl.org/dc/terms/"> <script type="text/javascript"> window['optimizely'] = window['optimizely'] || []; window['optimizely'].push({'type': 'holdEvents'}); </script> <script src="https://web.archive.org/web/20190207191953js_/https://cdn.optimizely.com/public/4621041136/s/childrens_prod.js"></script> <title>Send us your stuff! - CBBC - BBC</title> <meta name="DCTERMS.title" content="Send us your stuff! - CBBC - BBC"/> <meta name="description" content="Send your files to CBBC"/> <meta name="DCTERMS.description" content="Send your files to CBBC"/> <meta property="fb:pages" content="194575130577797"/> <meta property="fb:pages" content="7397061762"/> <meta property="fb:pages" content="7833211321"/> <meta property="fb:pages" content="129044383774217"/> <meta property="fb:pages" content="401538510458"/> <meta property="fb:pages" content="8251776107"/> <meta property="fb:pages" content="273726292719943"/> <meta property="fb:pages" content="107909022566650"/> <meta property="fb:pages" content="21750735380"/> <meta property="fb:pages" content="1477945425811579"/> <meta property="fb:pages" content="944295152308991"/> <meta property="fb:pages" content="154344434967"/> <meta property="fb:pages" content="8244244903"/> <meta property="fb:pages" content="512423982152360"/> <meta property="fb:pages" content="156060587793370"/> <meta property="fb:pages" content="215504865453262"/> <meta property="fb:pages" content="260967092113"/> <meta property="fb:pages" content="1392506827668140"/> <meta property="fb:pages" content="128645453843827"/> <meta property="fb:pages" content="7519460786"/> <meta property="fb:pages" content="1143803202301544"/> <meta property="fb:pages" content="1470145583204829"/> <meta property="fb:pages" content="470911516262605"/> <meta property="fb:pages" content="413132078795966"/> <meta property="fb:pages" content="118883634811868"/> <meta property="fb:pages" content="130593816777"/> <meta property="fb:pages" content="228735667216"/> <meta property="fb:pages" content="80758950658"/> <meta property="fb:pages" content="260212261199"/> <meta property="fb:pages" content="294662213128"/> <meta property="fb:pages" content="1086451581439054"/> <meta property="fb:pages" content="283348121682053"/> <meta property="fb:pages" content="295830058648"/> <meta property="fb:pages" content="239931389545417"/> <meta property="fb:pages" content="304314573046"/> <meta property="fb:pages" content="310719525611571"/> <meta property="fb:pages" content="647687225371774"/> <meta property="fb:pages" content="1159932557403143"/> <meta property="fb:pages" content="286567251709437"/> <meta property="fb:pages" content="1731770190373618"/> <meta property="fb:pages" content="125309456546"/> <meta property="fb:pages" content="742734325867560"/> <meta property="fb:pages" content="168895963122035"/> <meta property="fb:pages" content="292291897588734"/> <meta property="fb:pages" content="658551547588605"/> <meta property="fb:pages" content="156400551056385"/> <meta property="fb:pages" content="185246968166196"/> <meta property="fb:pages" content="1411916919051820"/> <meta property="fb:pages" content="958681370814419"/> <meta property="fb:pages" content="317278538359186"/> <meta property="fb:pages" content="8585725981"/> <meta property="fb:pages" content="1436581493296609"/> <meta property="fb:pages" content="163571453661989"/> <meta property="fb:pages" content="751471531641341"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="google-site-verification" content="OcYZwpRP6B606x7ebhSghFqabGc4HRHBMbobF9cv-FU"/> <link rel="canonical" href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/cbbc/upload/u3152038"/> <script type="text/javascript"> var _sf_startpt = (new Date()).getTime() </script> <link rel="copyright" href="https://web.archive.org/web/20190207191953/http://www.bbc.co.uk/terms/" title="Terms of Use"/> <link href="/web/20190207191953im_/https://www.bbc.co.uk/cbbc/assets/images/favicons/apple-touch-icon.png" rel="apple-touch-icon"/> <link href="/web/20190207191953im_/https://www.bbc.co.uk/cbbc/assets/images/favicons/favicon.ico" rel="shortcut icon" type="image/x-icon"/> <link href="/web/20190207191953im_/https://www.bbc.co.uk/cbbc/assets/images/favicons/favicon-16x16.png" rel="icon" type="image/png" sizes="16x16"/> <link href="/web/20190207191953im_/https://www.bbc.co.uk/cbbc/assets/images/favicons/favicon-32x32.png" rel="icon" type="image/png" sizes="32x32"/> <link href="/web/20190207191953im_/https://www.bbc.co.uk/cbbc/assets/images/favicons/favicon-96x96.png" rel="icon" type="image/png" sizes="96x96"/> <link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20190207191953cs_/https://static.bbci.co.uk/gelstyles/0.11.0/style/core.css"/> <link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20190207191953cs_/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/stylesheets/cbbc.min.css"/> <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/stylesheets/cbbc.ie8.min.css"/> <![endif]--> <script type="text/javascript"> var allForwardSlashes = /\//g; var anythingNotAWordOrFullStop = /[^\w^\.]/g; var allMultipleUnderscores = /_+/g; var fullStopAtEnd = /\.$/; var pageDescriptor = window.location.pathname.substring(1) .replace(allForwardSlashes, '.') .replace(anythingNotAWordOrFullStop, '_') .replace(allMultipleUnderscores, '_') .replace(fullStopAtEnd, ''); window.istats_countername = pageDescriptor.toLowerCase() + '.page'; </script> <!-- Nav Env: live --> <!-- Analytics Web Module: 0.0.1-231.1bf8081 --> <!-- NavID Web Module: 0.2.0-26.cd5363e --> <!-- Searchbox Web Module: 1.0.0-19.f0f6837 --> <!-- Promo Web Module: 2.0.0-83.1a62ce3 --> <meta name="viewport" content="width=device-width, initial-scale=1.0"><meta property="fb:admins" content="100004154058350"><link rel="stylesheet" href="https://web.archive.org/web/20190207191953cs_/https://nav.files.bbci.co.uk/orbit/2.0.0-484.dce9fee/css/orb-ltr.min.css"><!--[if (lt IE 9) & (!IEMobile)]> <link rel="stylesheet" href="https://nav.files.bbci.co.uk/orbit/2.0.0-484.dce9fee/css/orb-ie-ltr.min.css"> <![endif]--><script type="text/javascript">/*<![CDATA[*/ window.orb = { lang: 'en', bbcBaseUrl: 'https://web.archive.org/web/20190207191953/https://www.bbc.co.uk', bbcUrlPrefix: 'https://web.archive.org/web/20190207191953/https://www.', staticHost: 'https://web.archive.org/web/20190207191953/https://nav.files.bbci.co.uk/orbit/2.0.0-484.dce9fee', figUrl: 'https://web.archive.org/web/20190207191953/https://fig.bbc.co.uk/frameworks/fig/2/fig.js', partialCookieOvenUrl: 'https://web.archive.org/web/20190207191953/https://cookie-oven.api.bbc' }; document.documentElement.className += (document.documentElement.className? ' ' : '') + 'orb-js'; window.orb.worldwideNavlinks = ''; /*]]>*/</script><script>// Promise polyfill from https://github.com/bramstein/promis (function(){'use strict';var f,g=[];function l(a){g.push(a);1==g.length&&f()}function m(){for(;g.length;)g[0](),g.shift()}f=function(){setTimeout(m)};function n(a){this.a=p;this.b=void 0;this.f=[];var b=this;try{a(function(a){q(b,a)},function(a){r(b,a)})}catch(c){r(b,c)}}var p=2;function t(a){return new n(function(b,c){c(a)})}function u(a){return new n(function(b){b(a)})}function q(a,b){if(a.a==p){if(b==a)throw new TypeError;var c=!1;try{var d=b&&b.then;if(null!=b&&"object"==typeof b&&"function"==typeof d){d.call(b,function(b){c||q(a,b);c=!0},function(b){c||r(a,b);c=!0});return}}catch(e){c||r(a,e);return}a.a=0;a.b=b;v(a)}} function r(a,b){if(a.a==p){if(b==a)throw new TypeError;a.a=1;a.b=b;v(a)}}function v(a){l(function(){if(a.a!=p)for(;a.f.length;){var b=a.f.shift(),c=b[0],d=b[1],e=b[2],b=b[3];try{0==a.a?"function"==typeof c?e(c.call(void 0,a.b)):e(a.b):1==a.a&&("function"==typeof d?e(d.call(void 0,a.b)):b(a.b))}catch(h){b(h)}}})}n.prototype.g=function(a){return this.c(void 0,a)};n.prototype.c=function(a,b){var c=this;return new n(function(d,e){c.f.push([a,b,d,e]);v(c)})}; function w(a){return new n(function(b,c){function d(c){return function(d){h[c]=d;e+=1;e==a.length&&b(h)}}var e=0,h=[];0==a.length&&b(h);for(var k=0;k<a.length;k+=1)u(a[k]).c(d(k),c)})}function x(a){return new n(function(b,c){for(var d=0;d<a.length;d+=1)u(a[d]).c(b,c)})};window.Promise||(window.Promise=n,window.Promise.resolve=u,window.Promise.reject=t,window.Promise.race=x,window.Promise.all=w,window.Promise.prototype.then=n.prototype.c,window.Promise.prototype["catch"]=n.prototype.g);}()); (function() { var language = 'en'; language = 'en'; var istatsLabels = {name: 'cbbc.upload.u3152038.page' || undefined}; istatsLabels['app_name'] = 'cbbc'; istatsLabels['app_type'] = 'responsive'; var additionalPageProperties = {}; function getMetaValue(propertyName) { var metaTag = document.querySelector( "meta[property='" + propertyName + "'], " + "meta[name='" + propertyName + "']"); if (metaTag) { return metaTag.getAttribute("content"); } else { throw new Error('No meta tag called: ' + propertyName) } } function generateCountername() { var pathName = window.location.pathname .replace(/\/$/, "") .replace(/^\//, "") .replace(/\//g, '.'); return pathName + '.page'; } window.bbcpage = { loadModule: function(deps) { return new Promise(function (resolve, reject) { window.require(deps, function () { resolve.apply(this, arguments); }, function (error) { reject(error); }); }) }, loadCSS: function (url, timeout) { return window.bbcpage.loadModule(['orb/lib/_$']) .then(function($) { return new Promise(function(resolve, reject) { var stylesheet = loadCSS(url); $.onloadCSS(stylesheet, function() { resolve(); }); if (timeout) { setTimeout(function () { reject(); }, timeout); } }); }); }, getLanguage: function () { return new Promise(function(resolve, reject) { resolve(language); }); }, trackRegion: function (region, labels) { return window.bbcpage.loadModule(['istats-1']) .then(function(istats) { var trackLabels = { region: region }; for (var label in labels) { trackLabels[label] = labels[label]; } var linkType = labels.linkType || 'internal'; istats.track(linkType, trackLabels); }); }, getName: function() { return Promise.resolve('' || generateCountername()); }, getDestination: function() { return Promise.resolve('cbbc' || null); }, getProducer: function() { return Promise.resolve('cbbc' || null); }, getSite: function() { return Promise.resolve('' || null); }, getSection: function() { return Promise.resolve('' || null); }, getContentType: function() { return Promise.resolve('article-ugc' || null); }, getContentId: function() { return Promise.resolve('' || null); }, getEdition: function() { return Promise.resolve('' || null); }, getAdditionalProperties: function() { return Promise.resolve(additionalPageProperties); } }; var country; var sanitiseCountry = function(country) { return country ? country.replace(/ /g, '') : undefined; } window.bbcuser = { getHashedId: function() { return window.bbcpage.loadModule(['idcta-v2/idcta-1']) .then(function(idcta) { return idcta.getCookieInstance().getHidFromCookie(); }); }, getCountry: function() { if (country) { return new Promise(function(resolve, reject) { resolve(sanitiseCountry(country)); }) } else { return window.bbcpage.loadModule(['orb/fig']) .then(function(orbFig) { return new Promise(function(resolve, reject) { orbFig.load(function (fig) { if (fig.geo.isUK()) { resolve('GB'); } else if (fig.geo.isEU()) { resolve('EU'); } else { resolve(undefined); } }, function () { reject('Error determining country. Timeout?'); }); }); }); } }, isUKCombined: function(inputCountry) { return window.bbcpage.loadModule(['orb/bbcuser']) .then(function(service) { return new Promise(function(resolve, reject) { if (inputCountry) { resolve(service.isUKCombined(sanitiseCountry(inputCountry))); } else { window.bbcuser.getCountry().then(function(fetchedCountry){ resolve(service.isUKCombined(fetchedCountry)); }) } }); }); }, isEU: function(inputCountry) { return window.bbcpage.loadModule(['orb/bbcuser']) .then(function(service) { return new Promise(function(resolve, reject) { if (inputCountry) { resolve(service.isEU(sanitiseCountry(inputCountry))); } else { window.bbcuser.getCountry().then(function(fetchedCountry){ resolve(service.isEU(fetchedCountry)); }) } }); }); }, allowsPerformanceCookies: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return !!bbccookies.cookiesEnabled() && !!bbccookies.readPolicy('performance'); }); }, allowsFunctionalCookies: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return !!bbccookies.cookiesEnabled() && !!bbccookies.readPolicy('personalisation'); }); }, getCookieValue: function(cookieName) { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return bbccookies.get(cookieName); }); }, resetCookiesPreferences: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { bbccookies.setDefaultCookiesSingleDomain(); }); }, hasCookiesEnabled: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return !!bbccookies.cookiesEnabled(); }); }, hasSeenCookieBanner: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function (bbccookies) { return !!bbccookies.isCookiePolicySet(); }); }, logEvent: function (verb, noun, extraLabels) { return window.bbcuser.hasCookiesEnabled() .then(function(allowsCookies) { if (allowsCookies) { return window.bbcpage.loadModule(['istats-1']) .then(function(istats) { istats.log(verb, noun, extraLabels); }); } else { throw new Error('User cannot be tracked due to cookies preferences.'); } }); }, }; }());</script><script src="https://web.archive.org/web/20190207191953js_/https://nav.files.bbci.co.uk/orbit/2.0.0-484.dce9fee/js/require.min.js"></script> <script src="https://web.archive.org/web/20190207191953js_/https://nav.files.bbci.co.uk/orbit-webmodules/0.0.1-231.1bf8081/cookie-banner/cookie-library.min.js"></script><script type="text/javascript">define('orb/cookies', function() { return window.bbccookies; });</script> <script src="https://web.archive.org/web/20190207191953js_/https://nav.files.bbci.co.uk/orbit/2.0.0-484.dce9fee/js/api.min.js"></script><script type="text/javascript">window.bbcFlagpoles_istats="ON",require.config({paths:{"istats-1":"https://web.archive.org/web/20190207191953/https://nav.files.bbci.co.uk/orbit-webmodules/0.0.1-231.1bf8081/istats/istats-1"}}),require(["istats-1","orb/cookies"],function(t,a){if(a.isAllowed("s1")){var e=(o=document.location.href.match(/^(?:https|http):\/\/\w*\.(?:(int|test|stage|live|)\.)?bbc\.(?:co\.uk|com)/))?void 0===o[1]||""===o[1]||"live"===o[1]?"//web.archive.org/web/20190207191953/https://sa.bbc.co.uk/bbc/bbc/s":"//web.archive.org/web/20190207191953/https://sa.bbc.co.uk/bbc/"+o[1]+"/s":"//web.archive.org/web/20190207191953/https://sa.bbc.co.uk/bbc/test/s";t.addCollector({name:"default",url:e,separator:"&"});var s="cbbc.upload.u3152038.page";t.setCountername(s),window.istats_countername&&t.setCountername(window.istats_countername),t.addLabels("ml_name=webmodule&ml_version=0.0.1-231.1bf8081&blq_e=orbit&blq_r=orbit&blq_s=orbit&blq_v=cbbc&language=en&app_name=cbbc&app_type=responsive")}var o});</script><link rel="stylesheet" href="https://web.archive.org/web/20190207191953cs_/https://mybbc.files.bbci.co.uk/s/id/account-idcta/1.10.0/style/id-cta.css"><!--[if IE 8]><link href="https://mybbc.files.bbci.co.uk/s/id/account-idcta/1.10.0/style/ie8.css" rel="stylesheet"/> <![endif]--><script type="text/javascript">(function() {if (!window.require) {throw new Error('idcta: could not find require module');}if (typeof(map) == 'undefined') {var map = {};}if (!!document.createElementNS && !!document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect) {document.documentElement.className += ' id-svg';}var ptrt = new RegExp("[\\?&]ptrt=([^&]*)").exec(document.location.href);var ENDPOINT_URL = 'https://web.archive.org/web/20190207191953/https://idcta.api.bbc.co.uk';var ENDPOINT_CONFIG = ('/idcta/config?callback=&context=cbbc&ptrt=' + encodeURIComponent((ptrt ? ptrt[1] : document.location.href))).replace(/\&amp;/g, '&');var ENDPOINT_TRANSLATIONS = '/idcta/translations?callback=';function hasPromise() {var P = window.Promise;var promiseToString = null;if (P) {try {promiseToString = Object.prototype.toString.call(P.resolve());} catch(e) {/*silently ignored*/}}return (promiseToString === '[object Promise]' && !P.cast);}if (hasPromise()) {define('idcta/es6-promise', function() {return window.Promise;});define('idcta-v2/es6-promise', function() {return window.Promise;});}map['idcta-v2'] = 'https://web.archive.org/web/20190207191953/https://mybbc.files.bbci.co.uk/s/id/account-idcta/1.10.0/modules/idcta-v2';map['idcta-v2/config'] = ENDPOINT_URL + ENDPOINT_CONFIG;map['idcta-v2/translations'] = ENDPOINT_URL + ENDPOINT_TRANSLATIONS;map['idcta'] = 'https://web.archive.org/web/20190207191953/https://mybbc.files.bbci.co.uk/s/id/account-idcta/1.8.2/modules/idcta';map['idcta-v2/idcta-1'] = 'https://web.archive.org/web/20190207191953/https://mybbc.files.bbci.co.uk/s/id/account-idcta/1.10.0/modules/idcta-v2/dist/idcta-1.min';const idctaShim = {deps: ['idcta-v2/idcta-1'],};require({shim: {'idcta-v2/statusbar': idctaShim,'idcta-v2/id-config': idctaShim},map: {'*': {'idcta/idcta-1': 'idcta-v2/idcta-1','idcta': 'idcta-v2',}},paths: map});window.idctaBaseUrl = ENDPOINT_URL;define('idcta/config', ['idcta-v2/config'], function(data) {return data;});define('idcta/translations', ['idcta-v2/translations'], function(data) {return data;});})();</script><script type="text/javascript">// Globally available search context window.SEARCHBOX={"variant":"cbbc","locale":"en","navSearchboxStaticPrefix":"https://web.archive.org/web/20190207191953/https://nav.files.bbci.co.uk/searchbox/1.0.0-19.f0f6837","searchboxAppStaticPrefix":"https://web.archive.org/web/20190207191953/https://nav.files.bbci.co.uk/searchbox/1.0.0-19.f0f6837/drawer","searchFormHtml":"<div tabindex=\"-1\" data-reactroot=\"\" data-reactid=\"1\" data-react-checksum=\"729995048\"><div data-reactid=\"2\"><section class=\"se-searchbox-panel\" data-reactid=\"3\"><div class=\"se-g-wrap\" data-reactid=\"4\"><div class=\"se-g-layout\" data-reactid=\"5\"><div class=\"se-g-layout__item se-searchbox-title\" aria-hidden=\"true\" data-reactid=\"6\">search</div><div class=\"se-g-layout__item se-searchbox\" data-reactid=\"7\"><form accept-charset=\"utf-8\" id=\"searchboxDrawerForm\" method=\"get\" action=\"https://search.bbc.co.uk/search\" data-reactid=\"8\"><label class=\"se-searchbox__input\" for=\"se-searchbox-input-field\" data-reactid=\"9\"><span class=\"se-sr-only\" data-reactid=\"10\">Search Term</span><input type=\"text\" name=\"q\" value=\"\" id=\"se-searchbox-input-field\" class=\"se-searchbox__input__field\" maxlength=\"512\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" tabindex=\"0\" data-reactid=\"11\"/></label><input type=\"hidden\" name=\"scope\" value=\"\" data-reactid=\"12\"/><button type=\"submit\" class=\"se-searchbox__submit\" tabindex=\"0\" data-reactid=\"13\">Search</button><button type=\"button\" class=\"se-searchbox__clear se-searchbox__clear--visible\" tabindex=\"0\" data-reactid=\"14\">Close</button></form></div></div></div></section><div aria-live=\"polite\" aria-atomic=\"true\" class=\"se-suggestions-container\" data-reactid=\"15\"><section class=\"se-g-wrap\" data-reactid=\"16\"></section></div></div></div>","searchScopePlaceholder":"<input type=\"hidden\" name=\"scope\" id=\"orb-search-scope\" value=\"cbbc\">","searchScopeParam":"?scope=cbbc","searchScopeTemplate":"cbbc","searchPlaceholderWrapperStart":"","searchPlaceholderWrapperEnd":""}; window.SEARCHBOX.suppress = false; window.SEARCHBOX.searchScope = SEARCHBOX.searchScopeTemplate.split('-')[0];</script><link rel="stylesheet" href="https://web.archive.org/web/20190207191953cs_/https://nav.files.bbci.co.uk/searchbox/1.0.0-19.f0f6837/css/main.css"><!--[if IE 8]> <script type="text/javascript" src="https://nav.files.bbci.co.uk/searchbox/1.0.0-19.f0f6837/script/html5shiv.min.js"></script> <script type="text/javascript">window['searchboxIEVersion'] = 8;</script> <link rel="stylesheet" href="https://nav.files.bbci.co.uk/searchbox/1.0.0-19.f0f6837/css/ie8.css"> <![endif]--><!--[if IE 9]> <script type="text/javascript">window['searchboxIEVersion'] = 9;</script> <![endif]--><script type="text/javascript">require.config({ "paths": { "orb/async/_footerpromo": 'https://web.archive.org/web/20190207191953/https://nav.files.bbci.co.uk/navpromo/2.0.0-83.1a62ce3/js/async/_footerpromo' } });</script><!-- BBCDOTCOM head --><script type="text/javascript">/*<![CDATA[*/ var _sf_startpt = (new Date()).getTime(); /*]]>*/</script><style type="text/css">.bbccom_display_none{display:none;}</style><script type="text/javascript">/*<![CDATA[*/ var bbcdotcomConfig, googletag = googletag || {}; googletag.cmd = googletag.cmd || [], bbcdotcomScripts = []; var bbcdotcom = false; (function(){ if(typeof require !== 'undefined') { require({ paths:{ "bbcdotcom":"https://web.archive.org/web/20190207191953/https://static.bbc.co.uk/bbcdotcom/1.97.0/script" } }); } })(); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ var bbcdotcom = { adverts: { keyValues: { set: function() {} } }, advert: { write: function () {}, show: function () {}, isActive: function () { return false; }, layout: function() { return { reset: function() {} } } }, config: { init: function() {}, isActive: function() {}, setSections: function() {}, isAdsEnabled: function() {}, setAdsEnabled: function() {}, isAnalyticsEnabled: function() {}, setAnalyticsEnabled: function() {}, setAssetPrefix: function() {}, setVersion: function () {}, setJsPrefix: function() {}, setSwfPrefix: function() {}, setCssPrefix: function() {}, setConfig: function() {}, getAssetPrefix: function() {}, getJsPrefix: function () {}, getSwfPrefix: function () {}, getCssPrefix: function () {}, isOptimizelyEnabled: function() {} }, survey: { init: function(){ return false; } }, data: {}, init: function() {}, objects: function(str) { return false; }, locale: { set: function() {}, get: function() {} }, setAdKeyValue: function() {}, utils: { addEvent: function() {}, addHtmlTagClass: function() {}, log: function () {} }, addLoadEvent: function() {} }; /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (typeof orb !== 'undefined' && typeof orb.fig === 'function') { if (orb.fig('ad') && orb.fig('uk') == 0) { bbcdotcom.data = { ads: (orb.fig('ad') ? 1 : 0), stats: (orb.fig('uk') == 0 ? 1 : 0), statsProvider: orb.fig('ap') }; } } else { document.write('<script type="text/javascript" src="https://web.archive.org/web/20190207191953/https://www.bbc.com/wwscripts/data">\x3C/script>'); } })(); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (typeof orb === 'undefined' || typeof orb.fig !== 'function') { bbcdotcom.data = { ads: bbcdotcom.data.a, stats: bbcdotcom.data.b, statsProvider: bbcdotcom.data.c }; } if (bbcdotcom.data.ads == 1) { document.write('<script type="text/javascript" src="https://web.archive.org/web/20190207191953/https://www.bbc.com/wwscripts/flag">\x3C/script>'); } })(); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (window.bbcdotcom && (typeof bbcdotcom.flag == 'undefined' || (typeof bbcdotcom.data.ads !== 'undefined' && bbcdotcom.flag.a != 1))) { bbcdotcom.data.ads = 0; } if (/[?|&]ads/.test(window.location.href) || /(^|; )ads=on; /.test(document.cookie) || /; ads=on(; |$)/.test(document.cookie)) { bbcdotcom.data.ads = 1; bbcdotcom.data.stats = 1; } if (window.bbcdotcom && (bbcdotcom.data.ads == 1 || bbcdotcom.data.stats == 1)) { bbcdotcom.assetPrefix = "https://web.archive.org/web/20190207191953/https://static.bbc.co.uk/bbcdotcom/1.97.0/"; if (/(sandbox|int)(.dev)*.bbc.co*/.test(window.location.href) || /[?|&]ads-debug/.test(window.location.href) || document.cookie.indexOf('ads-debug=') !== -1) { document.write('<script type="text/javascript" src="https://web.archive.org/web/20190207191953/https://static.bbc.co.uk/bbcdotcom/1.97.0/script/dist/bbcdotcom.dev.js">\x3C/script>'); } else { document.write('<script type="text/javascript" src="https://web.archive.org/web/20190207191953/https://static.bbc.co.uk/bbcdotcom/1.97.0/script/dist/bbcdotcom.js">\x3C/script>'); } } })(); /*]]>*/</script><script type="text/javascript">if (window.bbcdotcom && bbcdotcom.data.stats == 1) { document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20190207191953/https://secure-us.imrworldwide.com/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20190207191953/https://me-cdn.effectivemeasure.net/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20190207191953/https://ssc.api.bbc.com/">'); } if (window.bbcdotcom && bbcdotcom.data.ads == 1) { document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20190207191953/https://www.googletagservices.com/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20190207191953/https://bbc.gscontxt.net/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20190207191953/https://tags.crwdcntrl.net/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20190207191953/https://ad.crwdcntrl.net/">'); }</script><script type="text/javascript">if (window.bbcdotcom && bbcdotcom.data.ads == 1) { document.write('<meta name="google-site-verification" content="auTeTTwSt_KBY_4iDoR00Lwb7-qzx1IgzJy6ztaWgEI" />'); }</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (window.bbcdotcom && (bbcdotcom.data.ads == 1 || bbcdotcom.data.stats == 1)) { bbcdotcomConfig = {"adFormat":"standard","adKeyword":"","adMode":"smart","adsEnabled":true,"appAnalyticsSections":"","asyncEnabled":true,"disableInitialLoad":false,"advertInfoPageUrl":"https:\/\/web.archive.org\/web\/20190207191953\/https:\/\/www.bbc.com\/privacy\/cookies\/international\/","advertisementText":"Advertisement","analyticsEnabled":true,"sherlockEnabled":false,"appName":"cbbc","assetPrefix":"https:\/\/web.archive.org\/web\/20190207191953\/https:\/\/static.bbc.co.uk\/bbcdotcom\/1.97.0\/","customAdParams":[],"customStatsParams":[],"headline":"","id":"","inAssociationWithText":"in association with","keywords":"","language":"","orbTransitional":false,"lotameWSEnabled":false,"optimizelyEnabled":true,"palEnv":"live","productName":"cbbc","sections":[],"comScoreEnabled":true,"comscoreSite":"bbc","comscoreID":"19293874","comscorePageName":"","slots":"","sponsoredByText":"is sponsored by","adsByGoogleText":"Ads by Google","summary":"","type":"","features":{"testfeature":{"name":"testfeature","envs":["sandbox","int","test"],"on":true,"options":{},"override":null},"lxadverts":{"name":"lxadverts","envs":[],"on":true,"options":{},"override":null}},"staticBase":"\/bbcdotcom","staticHost":"https:\/\/web.archive.org\/web\/20190207191953\/https:\/\/static.bbc.co.uk","staticVersion":"1.97.0","staticPrefix":"https:\/\/web.archive.org\/web\/20190207191953\/https:\/\/static.bbc.co.uk\/bbcdotcom\/1.97.0","dataHttp":"tps.bbc.com","dataHttps":"www.bbc.com","flagHttp":"www.bbc.co.uk","flagHttps":"www.bbc.co.uk","analyticsHttp":"sa.bbc.com","analyticsHttps":"ssa.bbc.com"}; bbcdotcom.config.init(bbcdotcomConfig, bbcdotcom.data, window.location, window.document); bbcdotcom.config.setFlagpoles(bbcdotcom.flag || {}); bbcdotcom.config.setAssetPrefix("https://web.archive.org/web/20190207191953/https://static.bbc.co.uk/bbcdotcom/1.97.0/"); bbcdotcom.config.setVersion("1.97.0"); document.write('<!--[if IE 7]><script type="text/javascript">bbcdotcom.config.setIE7(true);\x3C/script><![endif]-->'); document.write('<!--[if IE 8]><script type="text/javascript">bbcdotcom.config.setIE8(true);\x3C/script><![endif]-->'); document.write('<!--[if IE 9]><script type="text/javascript">bbcdotcom.config.setIE9(true);\x3C/script><![endif]-->'); if (/[?|&]ex-dp/.test(window.location.href) || document.cookie.indexOf('ex-dp=') !== -1) { bbcdotcom.utils.addHtmlTagClass('bbcdotcom-ex-dp'); } } })(); /*]]>*/</script><script type="text/javascript">var initOptimizely = (function(isEnabled){ if(!isEnabled) return; var logger = window.bbcdotcom.Logger('bbcdotcom:head:optimizely'); /* Allow Optimizely in these paths */ var allowPaths = ['/', '/wwhp']; /* Only run on optimizely on homepage */ if (bbcdotcom.utils && allowPaths.indexOf(window.location.pathname) !== -1 && window.bbccookies && bbccookies.readPolicy('performance') ){ /* set correct OptimizelyURL for prod or sandbox */ var optimizelyURL = "https://web.archive.org/web/20190207191953/https://cdn.optimizely.com/public/4621041136/s/bbccom_sandbox.js"; if(window.location.hostname === 'www.bbc.com') { optimizelyURL = "https://web.archive.org/web/20190207191953/https://cdn.optimizely.com/public/4621041136/s/bbccom_prod.js"; } /* Set cookie to 1 year */ window['optimizely'] = window['optimizely'] || []; window['optimizely'].push({ "type": "cookieExpiration", "cookieExpirationDays": 365 }); document.write('<script type="text/javascript" src="'+optimizelyURL+'">\x3C/script>'); } })( bbcdotcom.config.isOptimizelyEnabled() );</script><script type="text/javascript">/*<![CDATA[*/ if ( window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.ads && bbcdotcom.data.ads == 1 && bbcdotcom.config && bbcdotcom.config.isGrapeshotEnabled && bbcdotcom.config.isGrapeshotEnabled() && bbcdotcom.config.isWorldService && !bbcdotcom.config.isWorldService() ) { var gs_channels="DEFAULT"; (function () { var gsurl = window.location.href.split("?")[0]; bbcdotcomScripts.push({src:'https://web.archive.org/web/20190207191953/https://bbc.gscontxt.net/?url='+encodeURIComponent(gsurl)}); })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.stats && bbcdotcom.data.stats == 1 && bbcdotcom.config && bbcdotcom.config.isLotameEnabled && bbcdotcom.config.isLotameEnabled()){ (function () { var clientId, lotameUrl, lotameAudienceUrl; clientId = (bbcdotcom.config.isWorldService && bbcdotcom.config.isWorldService()) ? '10826' : '10816'; lotameUrl = 'https://web.archive.org/web/20190207191953/https://tags.crwdcntrl.net/c/'+clientId+'/cc.js?ns='+clientId; lotameAudienceUrl = 'https://web.archive.org/web/20190207191953/https://ad.crwdcntrl.net/5/c=10815/pe=y/var=ccauds'; bbcdotcomScripts.push({src:lotameUrl,id:"LOTCC"+clientId}); bbcdotcomScripts.push({src:lotameAudienceUrl}); })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ /** * ASYNC waits to make any gpt requests until the bottom of the page */ if ( window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.ads && bbcdotcom.data.ads == 1 && bbcdotcom.config && bbcdotcom.config.isAsync && bbcdotcom.config.isAsync() ) { (function () { bbcdotcomScripts.push({src:'https://web.archive.org/web/20190207191953/https://www.googletagservices.com/tag/js/gpt.js'}); })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ /* Load Lotame, Grapeshot and GPT without blocking rendering but executing in order */ if ( bbcdotcomScripts && bbcdotcomScripts.length > 0 ) { (function () { bbcdotcomScripts.forEach(function(item) { var script = document.createElement('script'); script.async = false; if(item.id) script.id = item.id; script.src = item.src; document.head.appendChild(script); }); })(); } /*]]>*/</script><script type="text/javascript" async="true">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.stats && bbcdotcom.data.stats == 1 && bbcdotcom.config && bbcdotcom.config.isLotameEnabled && bbcdotcom.config.isLotameEnabled() && bbcdotcom.lotame){ (function () { bbcdotcom.lotame.callback(); })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function() { window.bbcdotcom.head = true; }()); /*]]>*/</script><script type="text/javascript">require.config({paths:{reverb:"https://web.archive.org/web/20190207191953/https://mybbc-analytics.files.bbci.co.uk/reverb-client-js/reverb-0.5.0"}}),function(){function e(c){require(["reverb"],function(e){if(c.detail){var t=c.detail.label,i=c.detail.type,n=c.detail.elem,r=c.detail.originalEvent;e.userActionEvent(i,t,c.detail,n,r)}})}document.addEventListener("bbc-user-event",e),document.addEventListener("bbc-user-click",e)}();</script><script type="text/javascript">/*<![CDATA[*/ bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { require(['istats-1', 'orb/fig'], function (istats, orbFig) { istats.addLabels({ 'bbc_mc': bbccookies.analyticsPolicyString() }); var domesticBlqV = istats._getLabels().blq_v; var worldwideBlqV = istats._getLabels().blq_v + '-ww'; function setBlqVLabel(fig) { if (fig.geo.isUK()) { istats.addLabels({'blq_v': domesticBlqV}); } else { istats.addLabels({'blq_v': worldwideBlqV}); } } // Guess with synchronous API first (might be cached and the async version might be too slow) setBlqVLabel(orbFig); orbFig.load(function (fig) { setBlqVLabel(fig); }); }); }); /*]]>*/</script> <script> require.config({ paths: { 'optimizely-dax': ['https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/stats/optimizely-dax-2.0.2'] } }); require(['istats-1', 'optimizely-dax'], function (istats, optimizelyDax) { window['optimizely'] = window['optimizely'] || []; window['optimizely'].push({'type': 'sendEvents'}); optimizelyDax.init(istats); }); </script> <script type="text/javascript"> require(['orb/fig'], function(orbFig) { orbFig.load(function(fig) { if (!fig.geo.isUK()) { window.location = "https://web.archive.org/web/20190207191953/http://www.bbcchannels.com/cbbc"; } }); }); </script> <script type="text/javascript" src="https://web.archive.org/web/20190207191953js_/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries/modernizr.js"></script> <script> define('modernizr', [], Modernizr); </script> <script type="text/javascript" src="https://web.archive.org/web/20190207191953js_/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries/matchMedia.js"></script> <script>window.Morph = {}</script> <script type="text/javascript">Morph.markPerformance = function(label) { if(window.performance && window.performance.mark) { window.performance.mark(label); } }; Morph.versions = {}; Morph.modules = {}; Morph.config = { cdn: "m.files.bbci.co.uk", pushEnv: "live" }; Morph.styles = {}; Morph.styleSrc = []; Morph.toInit = {bundles: [], registers: [], payloads: []}; Morph.initStyles = function() { if (!Morph.enhanced) { var eles = Array.prototype.slice.call(document.getElementsByTagName('noscript')); for (var i = 0, len = eles.length; i<len; i++) { if (eles[i].className === 'morph-core-style') { document.write(eles[i].innerText); eles[i].parentNode.removeChild(eles[i]); } } return; } for (var j = 0, jLen = Morph.styleSrc.length; j<jLen; j++) { document.write(Morph.styleSrc[j]); } Morph.styleSrc = []; };</script> <script type="text/javascript">Morph.forceCore = window.location.search.indexOf('morph-disable-enhanced=1')>-1; Morph.modernBrowser = ( 'addEventListener' in window && 'querySelector' in document && 'localStorage' in window ); Morph.isOperaMini = ( window.navigator.userAgent.indexOf('Opera Mini/')>-1 && window.navigator.userAgent.indexOf('Presto/')>-1 ); Morph.enhanced = (!Morph.forceCore && Morph.modernBrowser && !Morph.isOperaMini);</script> <!--[if gt IE 8]><!--><noscript class="morph-core-style"><!--<![endif]--><style>@-moz-keyframes gel-spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes gel-spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes gel-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.ugc-fullscreen{background-color:#fff;overflow:auto;position:relative}@media (min-width: 37.5em){.ugc-fullscreen{min-height:calc(100vh - 165px)}}.ugc-fullscreen *,.ugc-fullscreen::before,.ugc-fullscreen::after{box-sizing:inherit}.ugc-fullscreen a{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;color:#006def;cursor:pointer;font-weight:inherit;text-decoration:none}.ugc-fullscreen a:focus,.ugc-fullscreen a:hover{color:#0e5ec5;text-decoration:underline}.ugc-fullscreen b{font-weight:bold}.ugc-fullscreen em{font-style:italic}.ugc-fullscreen header h1{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold}.ugc-fullscreen header p{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem}.ugc-fullscreen textarea{margin:0}.ugc-fullscreen .ugc-hidden{display:none}.ugc-fullscreen .ugc-hidden--offscreen{left:-9999px;position:absolute;top:-9999px}.ugc-fullscreen .back-link{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}.ugc-fullscreen .ugc-fullscreen__close-button{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;background:transparent;height:44px;margin:2.26px;position:absolute;right:0;top:0;width:44px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-fullscreen__close-button{margin:inherit;right:18px;top:18px}}.ugc-fullscreen .close-button__icon-wrapper{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;background:#fff;height:32px;margin:6px;width:32px}.ugc-fullscreen .close-button__icon-wrapper svg{fill:#000;height:16.52px;width:16.52px}.ugc-fullscreen .close-button__icon-wrapper:focus,.ugc-fullscreen .close-button__icon-wrapper:hover{background:#e21b52;cursor:pointer}.ugc-fullscreen .close-button__icon-wrapper:focus svg,.ugc-fullscreen .close-button__icon-wrapper:hover svg{fill:#fff}.ugc-fullscreen .ugc-form-container-header{display:-webkit-flex;display:flex;margin-bottom:24px}.ugc-fullscreen .focusable--no-decoration{outline:none}.ugc-fullscreen .ugc-button{font-family:inherit}.ugc-fullscreen .ugc-button input[type='button'],.ugc-fullscreen .ugc-button input[type='submit']{-webkit-appearance:none;background:none;border:0;border-radius:0;font-size:inherit;font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;background-color:#006def;border-bottom:4px #004ca6 solid;border-radius:4px;border-top:0;color:#fff;cursor:pointer;font-family:inherit;font-weight:bold;padding:8px;text-align:center;width:100%}.ugc-fullscreen .ugc-button input[type='button']:focus,.ugc-fullscreen .ugc-button input[type='button']:hover,.ugc-fullscreen .ugc-button input[type='submit']:focus,.ugc-fullscreen .ugc-button input[type='submit']:hover{background-color:#0e5ec5;border-bottom-width:2px;margin-top:2px;text-decoration:underline}.ugc-fullscreen .ugc-button input[type='button']:active,.ugc-fullscreen .ugc-button input[type='submit']:active{border-bottom:0;border-top:2px #004ca6 solid}.ugc-fullscreen .ugc-background__aspect-container{margin-left:-16px;padding-top:calc(.3642241379 * 100% + 11.6551724138px);position:relative;width:calc(100% + 2 * 16px)}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__aspect-container{margin-left:-32px;padding-top:calc(.3642241379 * 100% + 23.3103448276px);width:calc(100% + 2 * 32px)}}.ugc-fullscreen .ugc-background__inner-container{height:100%;left:0;position:absolute;top:0;width:100%}.ugc-fullscreen .ugc-background__centering-container{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;position:absolute;width:100%}.ugc-fullscreen .ugc-background__img{background:url("//web.archive.org/web/20190207191953im_/https://m.files.bbci.co.uk/modules/bbc-morph-ugc-form-view/1.47.2/images/ugc-background.svg") no-repeat;height:100%;position:relative;width:100%}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__img{height:185.754310345px}}.ugc-fullscreen .ugc-background__aspect-container--background-with-icons{margin-bottom:32px;padding-top:calc(.4679348892 * 100% + 14.9739164542px)}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__aspect-container--background-with-icons{margin-bottom:52px;padding-top:calc(.4679348892 * 100% + 29.9478329084px)}}.ugc-fullscreen .ugc-background__aspect-container--background-with-icons .ugc-background__img{background:url("//web.archive.org/web/20190207191953im_/https://m.files.bbci.co.uk/modules/bbc-morph-ugc-form-view/1.47.2/images/ugc-background-with-icons.svg") no-repeat}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__aspect-container--background-with-icons .ugc-background__img{height:238.646793489px}}.ugc-fullscreen .privacy-notice-cta{display:-webkit-flex;display:flex;border-bottom:1px solid #bebebe;border-top:1px solid #bebebe;margin-bottom:32px;padding:16px 0}.ugc-fullscreen .privacy-notice-cta__icon{-webkit-flex-shrink:0;flex-shrink:0;height:32px;margin-right:8px;width:32px}.ugc-fullscreen .privacy-notice__link{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem}.ugc-fullscreen .privacy-notice__link a{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;font-weight:bold}.ugc-fullscreen .ugc-form__error-message{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;background-color:#e21b52;color:#fff;margin-top:16px;padding:16px;position:relative}.ugc-fullscreen .ugc-form__error-message h1{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;font-weight:bold}.ugc-fullscreen .ugc-form__error-message::after{border-bottom:8px solid;border-bottom-color:#e21b52;border-left:8px solid transparent;border-right:8px solid transparent;color:#e21b52;content:'';display:block;position:absolute;top:-8px;width:0}.ugc-fullscreen .ugc-form__error-message--pointer-center::after{left:50%;margin-left:-8px}.ugc-fullscreen .ugc-form__error-message--pointer-left::after{left:8px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form__error-message--pointer-left::after{left:16px}}.ugc-fullscreen .ugc-form__error-message--pointer-right::after{left:auto;margin-left:0;right:8px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form__error-message--pointer-right::after{right:16px}}.ugc-fullscreen .ugc-form__error-message--pointer-none{margin-top:0}.ugc-fullscreen .ugc-form__error-message--pointer-none::after{display:none}.ugc-fullscreen .ugc-button--submit{margin-top:32px;width:100%}.ugc-fullscreen .field__container{position:relative}.ugc-fullscreen .field__container+.field__container{margin-top:24px}@media (min-width: 37.5em){.ugc-fullscreen .field__container+.field__container{margin-top:32px}}.ugc-fullscreen .field__input{background:#f3f3f3;border:0;font-family:inherit;width:100%}.ugc-fullscreen .field__input:valid ~ .field__label,.ugc-fullscreen .field__input:focus ~ .field__label{bottom:85%;color:inherit}.ugc-fullscreen .field__input:valid ~ .field__decoration::before,.ugc-fullscreen .field__input:focus ~ .field__decoration::before{width:100%}.ugc-fullscreen .field__input--textarea{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;box-sizing:border-box;display:block;margin-top:8px;padding:8px;resize:none}@media (min-width: 37.5em){.ugc-fullscreen .field__input--textarea{padding:16px}}.ugc-fullscreen .field__label{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;bottom:8px}.ugc-fullscreen .field__note{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;background:#f3f3f3;padding:8px;text-align:right}.ugc-fullscreen .field__input-container{border-bottom:solid 3px}.ugc-fullscreen .file-chooser input[type='file']{display:none}.ugc-fullscreen .file-chooser__file-input-button{display:block;margin:auto;width:42%}.ugc-fullscreen .file-chooser__divider{border-top:1px solid #bebebe;margin-top:32px}.ugc-fullscreen .file-chooser__divider--no-files{border-top:0;margin-top:0;padding-top:32px}.ugc-fullscreen .file-chooser__files-list-msg{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;display:inline-block;font-weight:bold;margin-bottom:16px;margin-top:32px}.ugc-fullscreen .chosen-file-container+.chosen-file-container{margin-top:16px}.ugc-fullscreen .chosen-file{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;background-color:#f3f3f3;border-bottom:1px solid #bebebe;border-top:1px solid #bebebe;box-sizing:content-box;height:64px}.ugc-fullscreen .chosen-file__filename{-webkit-flex:1;flex:1;font-weight:bold;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 37.5em){.ugc-fullscreen .chosen-file__filename{padding-left:16px}}.ugc-fullscreen .chosen-file__delete{background:transparent;border:0;margin-left:auto;padding:16px}.ugc-fullscreen .chosen-file__delete:focus,.ugc-fullscreen .chosen-file__delete:hover{cursor:pointer}.ugc-fullscreen .chosen-file__delete:focus .gel-icon--no svg,.ugc-fullscreen .chosen-file__delete:hover .gel-icon--no svg{fill:#000}.ugc-fullscreen .chosen-file__inner-delete{display:-webkit-flex;display:flex;background:#e21b52;height:32px;width:32px}.ugc-fullscreen .gel-icon--no{height:18px;margin:auto;width:18px}.ugc-fullscreen .gel-icon--no svg{fill:#fff}.ugc-fullscreen .ugc-form__error-message--file-list{margin-bottom:16px}.ugc-fullscreen .ugc-form__error-message--no-file-list{margin-top:16px}.ugc-fullscreen .file-thumbnail svg,.ugc-fullscreen .file-thumbnail .gel-icon,.ugc-fullscreen .file-thumbnail__image-loader .gel-icon,.ugc-fullscreen .ugc-form-home-step__loading .gel-icon{display:-webkit-flex;display:flex;height:32px;width:32px}.ugc-fullscreen .file-thumbnail{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:64px;width:64px}.ugc-fullscreen .file-thumbnail img{max-height:64px;max-width:64px}.ugc-fullscreen .file-thumbnail__image-loader{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.ugc-fullscreen .dropzone__content{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:100%;left:0;position:absolute;text-align:center;top:0;width:100%}.ugc-fullscreen .dropzone__ring,.ugc-fullscreen .dropzone__ring-1,.ugc-fullscreen .dropzone__ring-2,.ugc-fullscreen .dropzone__ring-3{border-radius:100%;height:0;padding-bottom:calc(.3642241379 * 100% + 11.6551724138px);width:calc(.3642241379 * 100% + 11.6551724138px);background-color:#fbaa6f;position:relative}.ugc-fullscreen .dropzone__ring-1{background-color:#f78b3c;height:80%;margin-left:10%;margin-top:10%;position:absolute;width:80%}.ugc-fullscreen .dropzone__ring-2{background-color:#f87a1e;height:60%;margin-left:20%;margin-top:20%;position:absolute;width:60%}.ugc-fullscreen .dropzone__ring-3{background-color:#f76c06;height:40%;margin-left:30%;margin-top:30%;position:absolute;width:40%}.ugc-fullscreen .loading-spinner{animation:.8s infinite spin linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.ugc-fullscreen .bbc-blocks{height:23.95px;margin-right:20px;width:84px}.ugc-fullscreen .ugc-background-img{display:none}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background-img{display:block;height:auto;min-height:100%;min-width:100%;object-fit:cover;overflow:auto}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background-img-container{height:100%;overflow:hidden;position:absolute;width:100%}}.ugc-fullscreen .ugc-container{box-sizing:content-box;position:relative}@media (min-width: 37.5em){.ugc-fullscreen .ugc-container{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}}@media (min-width: 47.875em){.ugc-fullscreen .ugc-container{-webkit-justify-content:inherit;justify-content:inherit;display:inherit;padding-left:128px}}.ugc-fullscreen .ugc-step-container{background-color:#fff;border-radius:4px;box-sizing:border-box;color:#000;padding:16px;padding-bottom:32px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-step-container{padding:32px;width:510px}}@media (min-width: 37.5em){.ugc-fullscreen .account-sign-in-layout.ugc-container{display:inherit;padding:64px 16px}}@media (min-width: 63em){.ugc-fullscreen .account-sign-in-layout.ugc-container{padding-left:calc((100% - 1008px + (2 * 16px)) / 2)}}@media (min-width: 80em){.ugc-fullscreen .account-sign-in-layout.ugc-container{padding-left:calc((100% - 1280px + (2 * 16px)) / 2)}}@media (min-width: 37.5em){.ugc-fullscreen .account-sign-in-layout.ugc-container .ugc-step-container{margin-left:8.5%}}@media (min-width: 75em){.ugc-fullscreen .account-sign-in-layout.ugc-container .ugc-step-container{margin-left:7.8%}}.ugc-fullscreen .ugc-form-home-step__loading{display:-webkit-flex;display:flex;-webkit-justify-content:center;justify-content:center;-webkit-align-items:center;align-items:center;height:calc(100vh - 360px)}.ugc-fullscreen .ugc-form-home-step__header{margin-bottom:16px}.ugc-fullscreen .ugc-form-home-step__title{margin-bottom:16px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-home-step__title{margin-bottom:8px}}.ugc-fullscreen .ugc-upload-home-step__privacy-notice-link{display:block;margin-bottom:16px}.ugc-fullscreen .ugc-form-submission-progress-step a{margin-bottom:32px}.ugc-fullscreen .ugc-form-submission-progress-step .progress-spinner{-moz-animation-duration:1s;-moz-animation-iteration-count:infinite;-moz-animation-name:gel-spin;-moz-animation-timing-function:linear;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-name:gel-spin;-webkit-animation-timing-function:linear;animation-duration:1s;animation-iteration-count:infinite;animation-name:gel-spin;animation-timing-function:linear;height:100%;left:0;position:relative;top:0;width:46.7934889194%}.ugc-fullscreen .ugc-form-submission-progress-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}.ugc-fullscreen .ugc-form-submission-progress-step__description{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}.ugc-fullscreen .submission-progress{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;padding-left:4vw;position:absolute;text-align:center;top:0;width:46.7934889194%}@media (min-width: 37.5em){.ugc-fullscreen .submission-progress{padding-left:26px}}.ugc-fullscreen .submission-progress__number{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;color:#006def;font-size:13vw !important;position:relative}@media (min-width: 37.5em){.ugc-fullscreen .submission-progress__number{font-size:72px !important}}.ugc-fullscreen .submission-progress__unit{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;color:#006def;padding-bottom:4.5vw}@media (min-width: 37.5em){.ugc-fullscreen .submission-progress__unit{padding-bottom:24px}}.ugc-fullscreen .ugc-form-confirmation-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}.ugc-fullscreen .ugc-form-confirmation-step__description{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}.ugc-fullscreen .ugc-form-confirmation-step__summary{margin-top:32px}.ugc-fullscreen .ugc-form-confirmation-step__summary-title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}.ugc-fullscreen .ugc-form-confirmation-step__summary-description{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem}.ugc-fullscreen .ugc-form-confirmation-step__button{margin-top:32px;width:100%}.ugc-fullscreen .ugc-form-confirmation-step__ok-icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;position:relative;width:46.7934889194%}.ugc-fullscreen .ugc-form-confirmation-step__ok-icon::after{border-radius:100%;height:0;padding-bottom:100%;width:100%;background-color:#80d62c;content:'';left:0;position:absolute;top:0}.ugc-fullscreen .ugc-form-confirmation-step__ok-icon svg{fill:#fff;height:auto;width:50%;z-index:1}.ugc-fullscreen .ugc-form-confirmation-step__send-another{margin-top:32px}.ugc-fullscreen .ugc-form-confirmation-step__send-another a:focus,.ugc-fullscreen .ugc-form-confirmation-step__send-another a:hover{cursor:pointer}.ugc-fullscreen .ugc-form-upload-error-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}.ugc-fullscreen .ugc-form-upload-error-step__description{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}.ugc-fullscreen .ugc-background__aspect-container--error-background{margin-bottom:32px;padding-top:calc(.4765625 * 100% + 15.25px)}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__aspect-container--error-background{margin-bottom:52px;padding-top:calc(.4765625 * 100% + 30.5px)}}.ugc-fullscreen .ugc-background__aspect-container--error-background .ugc-background__img{background:url("//web.archive.org/web/20190207191953im_/https://m.files.bbci.co.uk/modules/bbc-morph-ugc-form-view/1.47.2/images/ugc-background-error.svg") no-repeat;height:100%;position:relative;width:100%}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__aspect-container--error-background .ugc-background__img{height:243.046875px}}.ugc-fullscreen .ugc-form-upload-error-step__button{margin-top:32px;width:100%}.ugc-fullscreen .ugc-form-upload-error-step__warning-ring{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;color:#d0021b;font-size:40vw !important;height:100%;position:relative;width:47.65625%}.ugc-fullscreen .ugc-form-upload-error-step__warning-ring::after{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;border:5vw #d0021b solid;border-radius:100%;box-sizing:border-box;content:'!';height:100%;position:relative;width:100%}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-upload-error-step__warning-ring::after{border:22px #d0021b solid}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-upload-error-step__warning-ring{font-size:144px !important}}.ugc-fullscreen .ugc-form-closed-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}.ugc-fullscreen .ugc-form-closed-step__description{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}.ugc-fullscreen .ugc-form-closed-step__summary{margin-top:16px}.ugc-fullscreen .ugc-form-closed-step__summary-title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}.ugc-fullscreen .ugc-form-closed-step__summary-description{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem}.ugc-fullscreen .ugc-form-closed-step__button{margin-top:32px;width:100%}.ugc-fullscreen .ugc-form-closed-step__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;width:calc(.4679348892 * 100% + 14.9739164542px)}.ugc-fullscreen .ugc-form-closed-step__icon svg{height:auto;width:100%}.ugc-fullscreen .ugc-form-privacy-notice-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px;margin-top:32px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-privacy-notice-step__title{margin-top:0}}.ugc-fullscreen .ugc-form-privacy-notice-step__text{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;margin-bottom:32px}.ugc-fullscreen .ugc-form-privacy-notice-step__text p a{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;font-weight:bold}.ugc-fullscreen .ugc-form-privacy-notice-step__text p+p{margin-top:16px}.ugc-fullscreen .ugc-form-privacy-notice-step__button{margin-top:32px;width:100%}.ugc-fullscreen .ugc-form-account-error-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}.ugc-fullscreen .ugc-form-account-error-step__description{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}.ugc-fullscreen .ugc-form-account-error-step__id-message{border-top:1px solid #bebebe}.ugc-fullscreen .ugc-form-account-error-step__id-message>*{padding-bottom:0 !important;padding-top:32px !important}.ugc-fullscreen .ugc-form-account-error-step__summary{margin-top:16px}.ugc-fullscreen .ugc-form-account-error-step__summary-title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}.ugc-fullscreen .ugc-form-account-error-step__summary-description{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem}.ugc-fullscreen .ugc-form-account-error-step__button{margin-top:32px;width:100%}.ugc-fullscreen .ugc-form-account-error-step__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;width:calc(.4679348892 * 100% + 14.9739164542px)}.ugc-fullscreen .ugc-form-account-error-step__icon svg{height:auto;width:100%} </style><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-ugc-form-view/1.47.2"]=true; Morph.styleSrc.push("<style>@-moz-keyframes gel-spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes gel-spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes gel-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.ugc-fullscreen{background-color:#fff;overflow:auto;position:relative}@media (min-width: 37.5em){.ugc-fullscreen{min-height:calc(100vh - 165px)}}.ugc-fullscreen *,.ugc-fullscreen::before,.ugc-fullscreen::after{box-sizing:inherit}.ugc-fullscreen a{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;color:#006def;cursor:pointer;font-weight:inherit;text-decoration:none}@media (min-width: 37.5em){.ugc-fullscreen a{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen a{font-size:20px;font-size:1.25rem}}.ugc-fullscreen a:focus,.ugc-fullscreen a:hover{color:#0e5ec5;text-decoration:underline}.ugc-fullscreen b{font-weight:bold}.ugc-fullscreen em{font-style:italic}.ugc-fullscreen header h1{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold}@media (min-width: 20em){.ugc-fullscreen header h1{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width: 37.5em){.ugc-fullscreen header h1{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .ugc-fullscreen header h1{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}.ugc-fullscreen header p{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem}@media (min-width: 37.5em){.ugc-fullscreen header p{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen header p{font-size:20px;font-size:1.25rem}}.ugc-fullscreen textarea{margin:0}.ugc-fullscreen .ugc-hidden{display:none}.ugc-fullscreen .ugc-hidden--offscreen{left:-9999px;position:absolute;top:-9999px}.ugc-fullscreen .back-link{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}@media (min-width: 37.5em){.ugc-fullscreen .back-link{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .back-link{font-size:20px;font-size:1.25rem}}.ugc-fullscreen .ugc-fullscreen__close-button{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;background:transparent;height:44px;margin:2.26px;position:absolute;right:0;top:0;width:44px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-fullscreen__close-button{margin:inherit;right:18px;top:18px}}.ugc-fullscreen .close-button__icon-wrapper{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;background:#fff;height:32px;margin:6px;width:32px}.ugc-fullscreen .close-button__icon-wrapper svg{fill:#000;height:16.52px;width:16.52px}.ugc-fullscreen .close-button__icon-wrapper:focus,.ugc-fullscreen .close-button__icon-wrapper:hover{background:#e21b52;cursor:pointer}.ugc-fullscreen .close-button__icon-wrapper:focus svg,.ugc-fullscreen .close-button__icon-wrapper:hover svg{fill:#fff}.ugc-fullscreen .ugc-form-container-header{display:-webkit-flex;display:flex;margin-bottom:24px}.ugc-fullscreen .focusable--no-decoration{outline:none}.ugc-fullscreen .ugc-button{font-family:inherit}.ugc-fullscreen .ugc-button input[type='button'],.ugc-fullscreen .ugc-button input[type='submit']{-webkit-appearance:none;background:none;border:0;border-radius:0;font-size:inherit;font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;background-color:#006def;border-bottom:4px #004ca6 solid;border-radius:4px;border-top:0;color:#fff;cursor:pointer;font-family:inherit;font-weight:bold;padding:8px;text-align:center;width:100%}.ugc-fullscreen .ugc-button input[type='button']:focus,.ugc-fullscreen .ugc-button input[type='button']:hover,.ugc-fullscreen .ugc-button input[type='submit']:focus,.ugc-fullscreen .ugc-button input[type='submit']:hover{background-color:#0e5ec5;border-bottom-width:2px;margin-top:2px;text-decoration:underline}.ugc-fullscreen .ugc-button input[type='button']:active,.ugc-fullscreen .ugc-button input[type='submit']:active{border-bottom:0;border-top:2px #004ca6 solid}.ugc-fullscreen .ugc-background__aspect-container{margin-left:-16px;padding-top:calc(.3642241379 * 100% + 11.6551724138px);position:relative;width:calc(100% + 2 * 16px)}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__aspect-container{margin-left:-32px;padding-top:calc(.3642241379 * 100% + 23.3103448276px);width:calc(100% + 2 * 32px)}}.ugc-fullscreen .ugc-background__inner-container{height:100%;left:0;position:absolute;top:0;width:100%}.ugc-fullscreen .ugc-background__centering-container{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;position:absolute;width:100%}.ugc-fullscreen .ugc-background__img{background:url(\"//m.files.bbci.co.uk/modules/bbc-morph-ugc-form-view/1.47.2/images/ugc-background.svg\") no-repeat;height:100%;position:relative;width:100%}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__img{height:185.754310345px}}.ugc-fullscreen .ugc-background__aspect-container--background-with-icons{margin-bottom:32px;padding-top:calc(.4679348892 * 100% + 14.9739164542px)}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__aspect-container--background-with-icons{margin-bottom:52px;padding-top:calc(.4679348892 * 100% + 29.9478329084px)}}.ugc-fullscreen .ugc-background__aspect-container--background-with-icons .ugc-background__img{background:url(\"//m.files.bbci.co.uk/modules/bbc-morph-ugc-form-view/1.47.2/images/ugc-background-with-icons.svg\") no-repeat}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__aspect-container--background-with-icons .ugc-background__img{height:238.646793489px}}.ugc-fullscreen .privacy-notice-cta{display:-webkit-flex;display:flex;border-bottom:1px solid #bebebe;border-top:1px solid #bebebe;margin-bottom:32px;padding:16px 0}.ugc-fullscreen .privacy-notice-cta__icon{-webkit-flex-shrink:0;flex-shrink:0;height:32px;margin-right:8px;width:32px}.ugc-fullscreen .privacy-notice__link{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem}@media (min-width: 20em){.ugc-fullscreen .privacy-notice__link{line-height:18px;line-height:1.125rem}}@media (min-width: 37.5em){.no-touch .ugc-fullscreen .privacy-notice__link{font-size:13px;font-size:.8125rem;line-height:16px;line-height:1rem}}.ugc-fullscreen .privacy-notice__link a{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;font-weight:bold}@media (min-width: 20em){.ugc-fullscreen .privacy-notice__link a{line-height:18px;line-height:1.125rem}}@media (min-width: 37.5em){.no-touch .ugc-fullscreen .privacy-notice__link a{font-size:13px;font-size:.8125rem;line-height:16px;line-height:1rem}}.ugc-fullscreen .ugc-form__error-message{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;background-color:#e21b52;color:#fff;margin-top:16px;padding:16px;position:relative}@media (min-width: 20em){.ugc-fullscreen .ugc-form__error-message{line-height:18px;line-height:1.125rem}}@media (min-width: 37.5em){.no-touch .ugc-fullscreen .ugc-form__error-message{font-size:13px;font-size:.8125rem;line-height:16px;line-height:1rem}}.ugc-fullscreen .ugc-form__error-message h1{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;font-weight:bold}@media (min-width: 20em){.ugc-fullscreen .ugc-form__error-message h1{line-height:18px;line-height:1.125rem}}@media (min-width: 37.5em){.no-touch .ugc-fullscreen .ugc-form__error-message h1{font-size:13px;font-size:.8125rem;line-height:16px;line-height:1rem}}.ugc-fullscreen .ugc-form__error-message::after{border-bottom:8px solid;border-bottom-color:#e21b52;border-left:8px solid transparent;border-right:8px solid transparent;color:#e21b52;content:'';display:block;position:absolute;top:-8px;width:0}.ugc-fullscreen .ugc-form__error-message--pointer-center::after{left:50%;margin-left:-8px}.ugc-fullscreen .ugc-form__error-message--pointer-left::after{left:8px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form__error-message--pointer-left::after{left:16px}}.ugc-fullscreen .ugc-form__error-message--pointer-right::after{left:auto;margin-left:0;right:8px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form__error-message--pointer-right::after{right:16px}}.ugc-fullscreen .ugc-form__error-message--pointer-none{margin-top:0}.ugc-fullscreen .ugc-form__error-message--pointer-none::after{display:none}.ugc-fullscreen .ugc-button--submit{margin-top:32px;width:100%}.ugc-fullscreen .field__container{position:relative}.ugc-fullscreen .field__container+.field__container{margin-top:24px}@media (min-width: 37.5em){.ugc-fullscreen .field__container+.field__container{margin-top:32px}}.ugc-fullscreen .field__input{background:#f3f3f3;border:0;font-family:inherit;width:100%}.ugc-fullscreen .field__input:valid ~ .field__label,.ugc-fullscreen .field__input:focus ~ .field__label{bottom:85%;color:inherit}.ugc-fullscreen .field__input:valid ~ .field__decoration::before,.ugc-fullscreen .field__input:focus ~ .field__decoration::before{width:100%}.ugc-fullscreen .field__input--textarea{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;box-sizing:border-box;display:block;margin-top:8px;padding:8px;resize:none}@media (min-width: 20em){.ugc-fullscreen .field__input--textarea{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}@media (min-width: 37.5em){.ugc-fullscreen .field__input--textarea{font-size:18px;font-size:1.125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .field__input--textarea{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}@media (min-width: 37.5em){.ugc-fullscreen .field__input--textarea{padding:16px}}.ugc-fullscreen .field__label{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;bottom:8px}@media (min-width: 37.5em){.ugc-fullscreen .field__label{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .field__label{font-size:20px;font-size:1.25rem}}.ugc-fullscreen .field__note{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;background:#f3f3f3;padding:8px;text-align:right}@media (min-width: 20em){.ugc-fullscreen .field__note{line-height:18px;line-height:1.125rem}}@media (min-width: 37.5em){.no-touch .ugc-fullscreen .field__note{font-size:13px;font-size:.8125rem;line-height:16px;line-height:1rem}}.ugc-fullscreen .field__input-container{border-bottom:solid 3px}.ugc-fullscreen .file-chooser input[type='file']{display:none}.ugc-fullscreen .file-chooser__file-input-button{display:block;margin:auto;width:42%}.ugc-fullscreen .file-chooser__divider{border-top:1px solid #bebebe;margin-top:32px}.ugc-fullscreen .file-chooser__divider--no-files{border-top:0;margin-top:0;padding-top:32px}.ugc-fullscreen .file-chooser__files-list-msg{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;display:inline-block;font-weight:bold;margin-bottom:16px;margin-top:32px}@media (min-width: 37.5em){.ugc-fullscreen .file-chooser__files-list-msg{font-size:26px;font-size:1.625rem;line-height:30px;line-height:1.875rem}.no-touch .ugc-fullscreen .file-chooser__files-list-msg{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}.ugc-fullscreen .chosen-file-container+.chosen-file-container{margin-top:16px}.ugc-fullscreen .chosen-file{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;background-color:#f3f3f3;border-bottom:1px solid #bebebe;border-top:1px solid #bebebe;box-sizing:content-box;height:64px}@media (min-width: 20em){.ugc-fullscreen .chosen-file{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}@media (min-width: 37.5em){.ugc-fullscreen .chosen-file{font-size:18px;font-size:1.125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .chosen-file{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}.ugc-fullscreen .chosen-file__filename{-webkit-flex:1;flex:1;font-weight:bold;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 37.5em){.ugc-fullscreen .chosen-file__filename{padding-left:16px}}.ugc-fullscreen .chosen-file__delete{background:transparent;border:0;margin-left:auto;padding:16px}.ugc-fullscreen .chosen-file__delete:focus,.ugc-fullscreen .chosen-file__delete:hover{cursor:pointer}.ugc-fullscreen .chosen-file__delete:focus .gel-icon--no svg,.ugc-fullscreen .chosen-file__delete:hover .gel-icon--no svg{fill:#000}.ugc-fullscreen .chosen-file__inner-delete{display:-webkit-flex;display:flex;background:#e21b52;height:32px;width:32px}.ugc-fullscreen .gel-icon--no{height:18px;margin:auto;width:18px}.ugc-fullscreen .gel-icon--no svg{fill:#fff}.ugc-fullscreen .ugc-form__error-message--file-list{margin-bottom:16px}.ugc-fullscreen .ugc-form__error-message--no-file-list{margin-top:16px}.ugc-fullscreen .file-thumbnail svg,.ugc-fullscreen .file-thumbnail .gel-icon,.ugc-fullscreen .file-thumbnail__image-loader .gel-icon,.ugc-fullscreen .ugc-form-home-step__loading .gel-icon{display:-webkit-flex;display:flex;height:32px;width:32px}.ugc-fullscreen .file-thumbnail{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:64px;width:64px}.ugc-fullscreen .file-thumbnail img{max-height:64px;max-width:64px}.ugc-fullscreen .file-thumbnail__image-loader{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.ugc-fullscreen .dropzone__content{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:100%;left:0;position:absolute;text-align:center;top:0;width:100%}.ugc-fullscreen .dropzone__ring,.ugc-fullscreen .dropzone__ring-1,.ugc-fullscreen .dropzone__ring-2,.ugc-fullscreen .dropzone__ring-3{border-radius:100%;height:0;padding-bottom:calc(.3642241379 * 100% + 11.6551724138px);width:calc(.3642241379 * 100% + 11.6551724138px);background-color:#fbaa6f;position:relative}.ugc-fullscreen .dropzone__ring-1{background-color:#f78b3c;height:80%;margin-left:10%;margin-top:10%;position:absolute;width:80%}.ugc-fullscreen .dropzone__ring-2{background-color:#f87a1e;height:60%;margin-left:20%;margin-top:20%;position:absolute;width:60%}.ugc-fullscreen .dropzone__ring-3{background-color:#f76c06;height:40%;margin-left:30%;margin-top:30%;position:absolute;width:40%}.ugc-fullscreen .loading-spinner{animation:.8s infinite spin linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.ugc-fullscreen .bbc-blocks{height:23.95px;margin-right:20px;width:84px}.ugc-fullscreen .ugc-background-img{display:none}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background-img{display:block;height:auto;min-height:100%;min-width:100%;object-fit:cover;overflow:auto}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background-img-container{height:100%;overflow:hidden;position:absolute;width:100%}}.ugc-fullscreen .ugc-container{box-sizing:content-box;position:relative}@media (min-width: 37.5em){.ugc-fullscreen .ugc-container{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}}@media (min-width: 47.875em){.ugc-fullscreen .ugc-container{-webkit-justify-content:inherit;justify-content:inherit;display:inherit;padding-left:128px}}.ugc-fullscreen .ugc-step-container{background-color:#fff;border-radius:4px;box-sizing:border-box;color:#000;padding:16px;padding-bottom:32px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-step-container{padding:32px;width:510px}}@media (min-width: 37.5em){.ugc-fullscreen .account-sign-in-layout.ugc-container{display:inherit;padding:64px 16px}}@media (min-width: 63em){.ugc-fullscreen .account-sign-in-layout.ugc-container{padding-left:calc((100% - 1008px + (2 * 16px)) / 2)}}@media (min-width: 80em){.ugc-fullscreen .account-sign-in-layout.ugc-container{padding-left:calc((100% - 1280px + (2 * 16px)) / 2)}}@media (min-width: 37.5em){.ugc-fullscreen .account-sign-in-layout.ugc-container .ugc-step-container{margin-left:8.5%}}@media (min-width: 75em){.ugc-fullscreen .account-sign-in-layout.ugc-container .ugc-step-container{margin-left:7.8%}}.ugc-fullscreen .ugc-form-home-step__loading{display:-webkit-flex;display:flex;-webkit-justify-content:center;justify-content:center;-webkit-align-items:center;align-items:center;height:calc(100vh - 360px)}.ugc-fullscreen .ugc-form-home-step__header{margin-bottom:16px}.ugc-fullscreen .ugc-form-home-step__title{margin-bottom:16px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-home-step__title{margin-bottom:8px}}.ugc-fullscreen .ugc-upload-home-step__privacy-notice-link{display:block;margin-bottom:16px}.ugc-fullscreen .ugc-form-submission-progress-step a{margin-bottom:32px}.ugc-fullscreen .ugc-form-submission-progress-step .progress-spinner{-moz-animation-duration:1s;-moz-animation-iteration-count:infinite;-moz-animation-name:gel-spin;-moz-animation-timing-function:linear;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-name:gel-spin;-webkit-animation-timing-function:linear;animation-duration:1s;animation-iteration-count:infinite;animation-name:gel-spin;animation-timing-function:linear;height:100%;left:0;position:relative;top:0;width:46.7934889194%}.ugc-fullscreen .ugc-form-submission-progress-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}@media (min-width: 20em){.ugc-fullscreen .ugc-form-submission-progress-step__title{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-submission-progress-step__title{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .ugc-fullscreen .ugc-form-submission-progress-step__title{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}.ugc-fullscreen .ugc-form-submission-progress-step__description{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-submission-progress-step__description{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .ugc-form-submission-progress-step__description{font-size:20px;font-size:1.25rem}}.ugc-fullscreen .submission-progress{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;padding-left:4vw;position:absolute;text-align:center;top:0;width:46.7934889194%}@media (min-width: 37.5em){.ugc-fullscreen .submission-progress{padding-left:26px}}.ugc-fullscreen .submission-progress__number{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;color:#006def;font-size:13vw !important;position:relative}@media (min-width: 20em){.ugc-fullscreen .submission-progress__number{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width: 37.5em){.ugc-fullscreen .submission-progress__number{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .ugc-fullscreen .submission-progress__number{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}@media (min-width: 37.5em){.ugc-fullscreen .submission-progress__number{font-size:72px !important}}.ugc-fullscreen .submission-progress__unit{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;color:#006def;padding-bottom:4.5vw}@media (min-width: 20em){.ugc-fullscreen .submission-progress__unit{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width: 37.5em){.ugc-fullscreen .submission-progress__unit{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .ugc-fullscreen .submission-progress__unit{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}@media (min-width: 37.5em){.ugc-fullscreen .submission-progress__unit{padding-bottom:24px}}.ugc-fullscreen .ugc-form-confirmation-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}@media (min-width: 20em){.ugc-fullscreen .ugc-form-confirmation-step__title{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-confirmation-step__title{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .ugc-fullscreen .ugc-form-confirmation-step__title{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}.ugc-fullscreen .ugc-form-confirmation-step__description{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-confirmation-step__description{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .ugc-form-confirmation-step__description{font-size:20px;font-size:1.25rem}}.ugc-fullscreen .ugc-form-confirmation-step__summary{margin-top:32px}.ugc-fullscreen .ugc-form-confirmation-step__summary-title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-confirmation-step__summary-title{font-size:26px;font-size:1.625rem;line-height:30px;line-height:1.875rem}.no-touch .ugc-fullscreen .ugc-form-confirmation-step__summary-title{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}.ugc-fullscreen .ugc-form-confirmation-step__summary-description{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem}@media (min-width: 20em){.ugc-fullscreen .ugc-form-confirmation-step__summary-description{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-confirmation-step__summary-description{font-size:18px;font-size:1.125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .ugc-form-confirmation-step__summary-description{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}.ugc-fullscreen .ugc-form-confirmation-step__button{margin-top:32px;width:100%}.ugc-fullscreen .ugc-form-confirmation-step__ok-icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;position:relative;width:46.7934889194%}.ugc-fullscreen .ugc-form-confirmation-step__ok-icon::after{border-radius:100%;height:0;padding-bottom:100%;width:100%;background-color:#80d62c;content:'';left:0;position:absolute;top:0}.ugc-fullscreen .ugc-form-confirmation-step__ok-icon svg{fill:#fff;height:auto;width:50%;z-index:1}.ugc-fullscreen .ugc-form-confirmation-step__send-another{margin-top:32px}.ugc-fullscreen .ugc-form-confirmation-step__send-another a:focus,.ugc-fullscreen .ugc-form-confirmation-step__send-another a:hover{cursor:pointer}.ugc-fullscreen .ugc-form-upload-error-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}@media (min-width: 20em){.ugc-fullscreen .ugc-form-upload-error-step__title{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-upload-error-step__title{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .ugc-fullscreen .ugc-form-upload-error-step__title{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}.ugc-fullscreen .ugc-form-upload-error-step__description{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-upload-error-step__description{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .ugc-form-upload-error-step__description{font-size:20px;font-size:1.25rem}}.ugc-fullscreen .ugc-background__aspect-container--error-background{margin-bottom:32px;padding-top:calc(.4765625 * 100% + 15.25px)}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__aspect-container--error-background{margin-bottom:52px;padding-top:calc(.4765625 * 100% + 30.5px)}}.ugc-fullscreen .ugc-background__aspect-container--error-background .ugc-background__img{background:url(\"//m.files.bbci.co.uk/modules/bbc-morph-ugc-form-view/1.47.2/images/ugc-background-error.svg\") no-repeat;height:100%;position:relative;width:100%}@media (min-width: 37.5em){.ugc-fullscreen .ugc-background__aspect-container--error-background .ugc-background__img{height:243.046875px}}.ugc-fullscreen .ugc-form-upload-error-step__button{margin-top:32px;width:100%}.ugc-fullscreen .ugc-form-upload-error-step__warning-ring{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;color:#d0021b;font-size:40vw !important;height:100%;position:relative;width:47.65625%}@media (min-width: 20em){.ugc-fullscreen .ugc-form-upload-error-step__warning-ring{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-upload-error-step__warning-ring{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .ugc-fullscreen .ugc-form-upload-error-step__warning-ring{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}.ugc-fullscreen .ugc-form-upload-error-step__warning-ring::after{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;border:5vw #d0021b solid;border-radius:100%;box-sizing:border-box;content:'!';height:100%;position:relative;width:100%}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-upload-error-step__warning-ring::after{border:22px #d0021b solid}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-upload-error-step__warning-ring{font-size:144px !important}}.ugc-fullscreen .ugc-form-closed-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}@media (min-width: 20em){.ugc-fullscreen .ugc-form-closed-step__title{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-closed-step__title{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .ugc-fullscreen .ugc-form-closed-step__title{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}.ugc-fullscreen .ugc-form-closed-step__description{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-closed-step__description{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .ugc-form-closed-step__description{font-size:20px;font-size:1.25rem}}.ugc-fullscreen .ugc-form-closed-step__summary{margin-top:16px}.ugc-fullscreen .ugc-form-closed-step__summary-title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-closed-step__summary-title{font-size:26px;font-size:1.625rem;line-height:30px;line-height:1.875rem}.no-touch .ugc-fullscreen .ugc-form-closed-step__summary-title{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}.ugc-fullscreen .ugc-form-closed-step__summary-description{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem}@media (min-width: 20em){.ugc-fullscreen .ugc-form-closed-step__summary-description{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-closed-step__summary-description{font-size:18px;font-size:1.125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .ugc-form-closed-step__summary-description{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}.ugc-fullscreen .ugc-form-closed-step__button{margin-top:32px;width:100%}.ugc-fullscreen .ugc-form-closed-step__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;width:calc(.4679348892 * 100% + 14.9739164542px)}.ugc-fullscreen .ugc-form-closed-step__icon svg{height:auto;width:100%}.ugc-fullscreen .ugc-form-privacy-notice-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px;margin-top:32px}@media (min-width: 20em){.ugc-fullscreen .ugc-form-privacy-notice-step__title{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-privacy-notice-step__title{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .ugc-fullscreen .ugc-form-privacy-notice-step__title{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-privacy-notice-step__title{margin-top:0}}.ugc-fullscreen .ugc-form-privacy-notice-step__text{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;margin-bottom:32px}@media (min-width: 20em){.ugc-fullscreen .ugc-form-privacy-notice-step__text{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-privacy-notice-step__text{font-size:18px;font-size:1.125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .ugc-form-privacy-notice-step__text{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}.ugc-fullscreen .ugc-form-privacy-notice-step__text p a{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;font-weight:bold}@media (min-width: 20em){.ugc-fullscreen .ugc-form-privacy-notice-step__text p a{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-privacy-notice-step__text p a{font-size:18px;font-size:1.125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .ugc-form-privacy-notice-step__text p a{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}.ugc-fullscreen .ugc-form-privacy-notice-step__text p+p{margin-top:16px}.ugc-fullscreen .ugc-form-privacy-notice-step__button{margin-top:32px;width:100%}.ugc-fullscreen .ugc-form-account-error-step__title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}@media (min-width: 20em){.ugc-fullscreen .ugc-form-account-error-step__title{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-account-error-step__title{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .ugc-fullscreen .ugc-form-account-error-step__title{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}.ugc-fullscreen .ugc-form-account-error-step__description{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;margin-bottom:32px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-account-error-step__description{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .ugc-form-account-error-step__description{font-size:20px;font-size:1.25rem}}.ugc-fullscreen .ugc-form-account-error-step__id-message{border-top:1px solid #bebebe}.ugc-fullscreen .ugc-form-account-error-step__id-message>*{padding-bottom:0 !important;padding-top:32px !important}.ugc-fullscreen .ugc-form-account-error-step__summary{margin-top:16px}.ugc-fullscreen .ugc-form-account-error-step__summary-title{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:bold;letter-spacing:-1px;letter-spacing:-.0625rem;margin-bottom:16px}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-account-error-step__summary-title{font-size:26px;font-size:1.625rem;line-height:30px;line-height:1.875rem}.no-touch .ugc-fullscreen .ugc-form-account-error-step__summary-title{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}.ugc-fullscreen .ugc-form-account-error-step__summary-description{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem}@media (min-width: 20em){.ugc-fullscreen .ugc-form-account-error-step__summary-description{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}@media (min-width: 37.5em){.ugc-fullscreen .ugc-form-account-error-step__summary-description{font-size:18px;font-size:1.125rem;line-height:24px;line-height:1.5rem}.no-touch .ugc-fullscreen .ugc-form-account-error-step__summary-description{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}.ugc-fullscreen .ugc-form-account-error-step__button{margin-top:32px;width:100%}.ugc-fullscreen .ugc-form-account-error-step__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;width:calc(.4679348892 * 100% + 14.9739164542px)}.ugc-fullscreen .ugc-form-account-error-step__icon svg{height:auto;width:100%}\n</style>"); }</script> <script>if (Morph.enhanced) { Morph.styles["bbc-morph-gel-icons/2.2.0"]=true; Morph.styleSrc.push("<style>.gel-icon{display:inline-block}.gel-icon svg{width:inherit;height:inherit;fill:currentColor}.gel-icon--loading{-webkit-animation-name:gel-spin;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;-moz-animation-name:gel-spin;-moz-animation-duration:1s;-moz-animation-iteration-count:infinite;-moz-animation-timing-function:linear;animation-name:gel-spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@-moz-keyframes gel-spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes gel-spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes gel-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}\n</style>"); }</script> <script type="text/javascript">Morph.initStyles(); /* u8013039839887096 */</script> <style>#orb-header, #orb-aside, #navp-orb-footer-promo {display: none;} #orb-contentinfo .orb-footer-inner{border:none}</style> <script type="text/javascript" id="js-require-config"> define('local/utils/config', function () { "use strict"; var currentTLD = function () { var hostname = window.location.hostname; if (hostname.indexOf('bbc.com') > -1) { return 'com'; } return 'co.uk'; }(); return { 'appName': 'cbbc', 'env': 'live', 'uasKey': 'ocivkho3fups2', 'uasEnv': 'live', 'uasUrl': '', 'uasDomainSuffix': currentTLD, 'currentTLD': currentTLD, 'comscoreSiteOverride': '', 'comscoreTestServiceUrl': '', 'oneTooltipPerPageEnabled': 'true', 'analyticsReclassificationEnabled': true, 'breakpointConfig': [ { minWidth: 0, name: 'extra-small' }, { minWidth: 400, name: 'small' }, { minWidth: 600, name: 'medium' }, { minWidth: 768, name: 'medium-wide' }, { minWidth: 1008, name: 'wide' }, { minWidth: 1280, name: 'extra-wide' } ] }; }); </script> <script> define('childrens-mandolin', function () { "use strict"; var ROLLING_PERIOD_DAYS = 30; var Mandolin = function (id, segments, opts) { var now = new Date().getTime(), storedItem, DEFAULT_START = now, DEFAULT_RATE = 1, COOKIE_NAME = 'ckpf_childrens_mandolin'; opts = opts || {}; this._id = id; this._segmentSet = segments; this._store = new Mandolin.Storage(COOKIE_NAME); this._opts = opts; this._rate = (opts.rate !== undefined) ? +opts.rate : DEFAULT_RATE; this._startTs = (opts.start !== undefined) ? new Date(opts.start).getTime() : new Date(DEFAULT_START).getTime(); this._endTs = (opts.end !== undefined) ? new Date(opts.end).getTime() : daysFromNow(ROLLING_PERIOD_DAYS); this._signupEndTs = (opts.signupEnd !== undefined) ? new Date(opts.signupEnd).getTime() : this._endTs; this._segment = null; // initially // Check for invalid options if (typeof id !== 'string') { throw new Error('Invalid Argument: id must be defined and be a string'); } if (Object.prototype.toString.call(segments) !== '[object Array]') { throw new Error('Invalid Argument: Segments are required.'); } if (opts.rate !== undefined && (opts.rate < 0 || opts.rate > 1)) { throw new Error('Invalid Argument: Rate must be between 0 and 1.'); } if (this._startTs > this._endTs) { throw new Error('Invalid Argument: end date must occur after start date.'); } if (!(this._startTs < this._signupEndTs && this._signupEndTs <= this._endTs)) { throw new Error('Invalid Argument: SignupEnd must be between start and end date'); } // Clear out expired items from Storage before looking for stashed segment data removeExpired.call(this, now); // Load segment override from cookie and validate segment if set. var overrides = window.bbccookies.get().match(/ckns_mandolin_setSegments=([^;]+)/); if (overrides !== null) { eval('overrides = ' + decodeURIComponent(RegExp.$1) + ';'); if(overrides[this._id] && this._segmentSet.indexOf(overrides[this._id]) == -1){ throw new Error('Invalid Override: overridden segment should exist in segments array'); } } if (overrides !== null && overrides[this._id]){ this._segment = overrides[this._id]; } else if ((storedItem = this._store.getItem(this._id))) { this._segment = storedItem.segment; } else if (this._startTs <= now && now < this._signupEndTs && now <= this._endTs && this._store.isEnabled() === true) { this._segment = pick(segments, this._rate); if (opts.end === undefined) { this._store.setItem(this._id, {segment: this._segment}); } else { this._store.setItem(this._id, {segment: this._segment, end: this._endTs}); } log.call(this, 'mandolin_segment'); } // order matters: do this after the segment has been populated log.call(this, 'mandolin_view'); }; Mandolin.prototype.getSegment = function () { return this._segment; }; function log(actionType, params) { var that = this; require(['istats-1'], function (istats) { istats.log(actionType, that._id + ':' + that._segment, params ? params : {}); }); } function removeExpired(expires) { var items = this._store.getItems(), expiresInt = +expires; for (var key in items) { if (items[key].end !== undefined && +items[key].end < expiresInt) { this._store.removeItem(key); } } } function getLastExpirationDate(data) { var winner = 0, rollingExpire = daysFromNow(ROLLING_PERIOD_DAYS); for (var key in data) { if (data[key].end === undefined && rollingExpire > winner) { winner = rollingExpire; } else if (+data[key].end > winner) { winner = +data[key].end; } } return (winner) ? new Date(winner) : new Date(rollingExpire) ; } Mandolin.prototype.log = function (params) { log.call(this, 'mandolin_log', params); }; Mandolin.prototype.convert = function (params) { log.call(this, 'mandolin_convert', params); this.convert = function () {}; }; function daysFromNow(n) { var endDate; endDate = new Date().getTime() + (n * 60 * 60 * 24) * 1000; return endDate; } function pick(segments, rate) { var picked, min = 0, max = segments.length - 1; if (typeof rate === 'number' && Math.random() > rate) { return null; } do { picked = Math.floor(Math.random() * (max - min + 1)) + min; } while (picked > max); return segments[picked]; } Mandolin.Storage = function (name) { validateCookieName(name); this._cookieName = name; this._isEnabled = (bbccookies.isAllowed(this._cookieName) === true && bbccookies.cookiesEnabled() === true); }; Mandolin.Storage.prototype.setItem = function (key, value) { var storeData = this.getItems(); storeData[key] = value; this.save(storeData); return value; }; Mandolin.Storage.prototype.isEnabled = function () { return this._isEnabled; }; Mandolin.Storage.prototype.getItem = function (key) { var storeData = this.getItems(); return storeData[key]; }; Mandolin.Storage.prototype.removeItem = function (key) { var storeData = this.getItems(); delete storeData[key]; this.save(storeData); }; Mandolin.Storage.prototype.getItems = function () { return deserialise(this.readCookie(this._cookieName) || ''); }; Mandolin.Storage.prototype.save = function (data) { //TODO: Is this mixing concerns to have Storage aware of item expiry? window.bbccookies.set( this._cookieName + '=' + encodeURIComponent(serialise(data)) + '; ' + 'path=/;' + 'expires=' + getLastExpirationDate(data).toUTCString() + ';' ); }; Mandolin.Storage.prototype.readCookie = function (name) { var nameEq = name + '=', ca = window.bbccookies.get().split('; '), i, c; validateCookieName(name); for (i = 0; i < ca.length; i++) { c = ca[i]; if (c.indexOf(nameEq) === 0) { return decodeURIComponent(c.substring(nameEq.length, c.length)); } } return null; }; function serialise(o) { var str = ''; for (var p in o) { if (o.hasOwnProperty(p)) { str += '"' + p + '"' + ':' + (typeof o[p] === 'object' ? (o[p] === null? 'null' : '{' + serialise(o[p])+ '}') : '"' + o[p].toString() + '"') + ','; } } return str.replace(/,\}/g, '}').replace(/,$/g, ''); } function deserialise(str) { var o; str = '{' + str + '}'; if ( !validateSerialisation(str) ) { throw 'Invalid input provided for deserialisation.'; } eval('o = ' + str); return o; } var validateSerialisation = (function () { var OBJECT_TOKEN = '<Object>', ESCAPED_CHAR = '"\\n\\r\\u2028\\u2029\\u000A\\u000D\\u005C', ALLOWED_CHAR = '([^' + ESCAPED_CHAR + ']|\\\\[' + ESCAPED_CHAR + '])', KEY = '"' + ALLOWED_CHAR + '+"', VALUE = '(null|"' + ALLOWED_CHAR + '*"|' + OBJECT_TOKEN + ')', KEY_VALUE = KEY + ':' + VALUE, KEY_VALUE_SEQUENCE = '(' + KEY_VALUE + ',)*' + KEY_VALUE, OBJECT_LITERAL = '({}|{' + KEY_VALUE_SEQUENCE + '})', objectPattern = new RegExp(OBJECT_LITERAL, 'g'); return function(str) { if (str.indexOf(OBJECT_TOKEN) !== -1) return false; while (str.match(objectPattern)) { str = str.replace(objectPattern, OBJECT_TOKEN); } return str === OBJECT_TOKEN; } })(); function validateCookieName(name) { if ( name.match(/ ,;/) ) { throw 'Illegal name provided, must be valid in browser cookie.'; } } return Mandolin; }); </script> <script type="text/javascript" id="js-require-setup"> require({ paths: { 'childrens': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts', 'cbeebies': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/cbeebies', 'cbbc': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/cbbc', 'jquery': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries/jquery', 'jquery-1': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries/jquery/jquery', 'jquery-1.9': 'https://web.archive.org/web/20190207191953/https://static.bbci.co.uk/frameworks/jquery/0.4.1/sharedmodules/jquery-1.9.1', 'lib': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries', 'bump-3': 'https://web.archive.org/web/20190207191953/https://emp.bbci.co.uk/emp/bump-3/bump-3', 'bump-4': 'https://web.archive.org/web/20190207191953/https://emp.bbci.co.uk/emp/bump-4/bump-4', 'embed': 'https://web.archive.org/web/20190207191953/https://play.bbc.co.uk/play/sdk/embed/v1/latest', 'lib/Imager': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries/Imager.min', 'TweenMax': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries/gsap/TweenMax.min', 'TimelineMax': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries/gsap/TweenMax.min', 'echo-11.2.2': 'https://web.archive.org/web/20190207191953/https://mybbc-analytics.files.bbci.co.uk/echo-client-js/echo-11.2.2.min', 'lib/riddle': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries/riddle/embed-3.20.min', 'lib/minpubsub': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries/minpubsub.min', 'uasclient': 'https://web.archive.org/web/20190207191953/https://static.bbci.co.uk/uasclient/0.1.40/modules/uasclient', 'activity-button': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/activity-button', 'activity-button/activity-button': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/personalisation/personalisation.min', 'reads': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/reads', 'reads/reads': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/personalisation/personalisation.min', 'reads-carousel': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/reads-carousel', 'reads-carousel/reads-carousel': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/personalisation/personalisation.min', 'angular': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/angular', 'angular/app': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/angular/app.min', 'stats': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/stats', 'stats/riddle-events': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/stats/riddle-events.min', 'stats/stats': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/stats/stats.min', 'confetti': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/confetti', 'confetti/confetti': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/confetti/confetti.min', 'follows-panel': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/follows-panel', 'follows-panel/childrens-follows-panel': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/personalisation/personalisation.min', 'personalisation': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/personalisation', 'domReady': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/libraries/require/domReady.min', 'relay-1': 'https://web.archive.org/web/20190207191953/https://static.bbci.co.uk/frameworks/relay/0.2.6/sharedmodules/relay-1', 'jssignals-1': 'https://web.archive.org/web/20190207191953/https://static.bbci.co.uk/frameworks/jssignals/0.3.6/modules/jssignals-1', 'vote-wrapper': 'https://web.archive.org/web/20190207191953/https://account-wrapper.files.bbci.co.uk/vote-wrapper.min', 'event-stream': 'https://web.archive.org/web/20190207191953/https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/javascripts/event-stream/event-stream.min' }, shim: { 'angular/angular': { exports: 'angular' }, 'TweenMax': { exports: 'TweenMax' }, 'TimelineMax': { exports: 'TimelineMax' } } }); require({ map: { '*': { 'idcta/idcta-1': 'idcta-v2/idcta-1' } } }); requirejs.onError = function (err) { // if a version of echojs fails to load (i.e. blocked for privacy reasons) // replace our echo_client with a dummy implementation so existing code // continues to work as expected function isEchoJsLibrary(moduleName) { return moduleName.indexOf('echo-') === 0; } if ( err.requireType === 'scripterror' && err.requireModules && err.requireModules.find(isEchoJsLibrary) ) { requirejs.undef('stats/echo_client'); define('stats/echo_client', [], function () { return { countername : function() {}, viewEvent : function() {}, userActionEvent : function() {} } }); // re-evaluate all dependencies on echo_client which will pick up the dummy version requirejs(['stats/echo_client'], function () {}); } }; require(['local/utils/config'], function (config) { }); require(["istats-1"], function (istats) { if (istats.setSite !== undefined) { istats.setSite('cbbc'); } istats.addLabels({ "page_type" : "upload" }); }); </script> <script> require(['childrens-mandolin'], function (Mandolin) { //cleanup collection-position test var storage = new Mandolin.Storage('ckpf_childrens_mandolin'); var experimentName = 'childrens_collection_position'; if (storage.getItem(experimentName)) { storage.removeItem(experimentName); } }); </script> <script type="text/javascript"> define('local/utils/experiments', ['childrens-mandolin'], function (Mandolin) { "use strict"; function setupMandolin(experiment, variants, config) { var mandolin = new Mandolin(experiment, variants, config); return mandolin.getSegment(); } function addClasses(wrapper, experiment, variant) { var experimentPrefix = " experiment-"; var experimentClass = experimentPrefix + experiment; wrapper.className += experimentClass + experimentClass + "--" + variant; } function addAttribute(wrapper, experiment, variant) { if (!wrapper.hasAttribute("data-active-experiment")) { var att = document.createAttribute("data-active-experiment"); att.value = experiment + ":" + variant; wrapper.setAttributeNode(att); } } return { setup: function(experiment, variants, config) { var variant = setupMandolin(experiment, variants, config); var wrapper = document.querySelector(".childrens-wrapper"); if (variant) { addClasses(wrapper, experiment, variant); } addAttribute(wrapper, experiment, variant); return variant; } } }); </script> </head> <body class="b-pw-1280"> <noscript><p style="position: absolute; top: -999em"><img src="https://web.archive.org/web/20190207191953im_/https://sa.bbc.co.uk/bbc/bbc/s?name=cbbc.upload.u3152038.page&amp;ml_name=webmodule&amp;ml_version=-1&amp;blq_e=orbit&amp;blq_r=orbit&amp;blq_s=orbit&amp;blq_v=cbbc&amp;language=en&amp;app_name=cbbc&amp;app_type=responsive&amp;blq_js_enabled=0" height="1" width="1" alt=""></p></noscript><!-- BBCDOTCOM bodyFirst --><div id="bbccom_interstitial_ad" class="bbccom_display_none"></div><div id="bbccom_interstitial" class="bbccom_display_none"><script type="text/javascript">/*<![CDATA[*/ (function() { if (window.bbcdotcom && bbcdotcom.config.isActive('ads')) { googletag.cmd.push(function() { googletag.display('bbccom_interstitial'); }); } }()); /*]]>*/</script></div><div id="bbccom_wallpaper_ad" class="bbccom_display_none"></div><div id="bbccom_wallpaper" class="bbccom_display_none"><script type="text/javascript">/*<![CDATA[*/ (function() { var wallpaper; if (window.bbcdotcom && bbcdotcom.config.isActive('ads')) { if (bbcdotcom.config.isAsync()) { googletag.cmd.push(function() { googletag.display('bbccom_wallpaper'); }); } else if (typeof googletag !== "undefined" && typeof googletag.display === "function") { googletag.display("wallpaper"); } wallpaper = bbcdotcom.adverts.adRegister.getAd('wallpaper'); } }()); /*]]>*/</script></div><script type="text/javascript">/*<![CDATA[*/ (function() { if (window.bbcdotcom && bbcdotcom.config.isActive('ads')) { document.write(unescape('%3Cscript id="gnlAdsEnabled" class="bbccom_display_none"%3E%3C/script%3E')); } if (window.bbcdotcom && bbcdotcom.config.isActive('analytics')) { document.write(unescape('%3Cscript id="gnlAnalyticsEnabled" class="bbccom_display_none"%3E%3C/script%3E')); } }()); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function() { window.bbcdotcom.bodyFirst = true; }()); /*]]>*/</script><div id="cookiePrompt"></div><!--[if (gt IE 8) | (IEMobile)]><!--><header id="orb-banner" role="banner" aria-label="BBC"><!--<![endif]--><!--[if (lt IE 9) & (!IEMobile)]> <![if (IE 8)]> <header id="orb-banner" role="banner" class="orb-old-ie orb-ie8" aria-label="BBC"> <![endif]> <![if (IE 7)]> <header id="orb-banner" role="banner" class="orb-old-ie orb-ie7" aria-label="BBC"> <![endif]> <![if (IE 6)]> <header id="orb-banner" role="banner" class="orb-old-ie orb-ie6" aria-label="BBC"> <![endif]> <![endif]--><div id="orb-header" class="orb-nav-pri orb-nav-pri-white orb-nav-empty" dir="ltr"><div class="orb-nav-pri-container b-r b-g-p"><div class="orb-nav-section orb-nav-blocks"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/">Homepage</a></div><section><div class="orb-skip-links"><h2>Accessibility links</h2><ul><li><a href="#main-content">Skip to content</a></li><li><a id="orb-accessibility-help" href="/web/20190207191953/https://www.bbc.co.uk/accessibility/">Accessibility Help</a></li></ul></div></section><div id="mybbc-wrapper" class="orb-nav-section orb-nav-id orb-nav-focus orb-nav-id-default"><div id="idcta-statusbar" class="orb-nav-section orb-nav-focus"><a id="idcta-link" href="https://web.archive.org/web/20190207191953/https://account.bbc.com/account?context=cbbc&amp;ptrt=https://www.bbc.co.uk/cbbc/upload/u3152038"><span id="idcta-username">BBC Account</span></a></div><script type="text/javascript">require(['idcta/statusbar'], function (statusbar) {new statusbar.Statusbar({id: 'idcta-statusbar', publiclyCacheable: true});});</script></div><nav role="navigation" aria-label="BBC" class="orb-nav"><div class="orb-nav-section orb-nav-links orb-nav-focus" id="orb-nav-links"><ul><li class="orb-nav-cbbc"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/cbbc">CBBC</a></li><li class="orb-nav-iplayer orb-d"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/tv/cbbc">CBBC iPlayer</a></li><li class="orb-nav-newsround"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/newsround">Newsround</a></li><li class="orb-nav-bitesize orb-d"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.com/bitesize">Bitesize</a></li><li class="orb-nav-ownit orb-d"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.com/ownit">Own It</a></li><li class="orb-nav-cbeebies"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/cbeebies">CBeebies</a></li><li class="orb-nav-cbbctv"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/iplayer/guide/cbbc">CBBC on TV</a></li><li class="orb-nav-cbbchelp orb-d"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/cbbc/curations/cbbc-help">CBBC Help</a></li><li id="orb-nav-more" style="width: 88px" aria-controls="orb-panel-more"><a href="#orb-footer" data-alt="More" class="istats-notrack">Menu<span class="orb-icon orb-icon-arrow"></span></a></li></ul></div></nav><div class="orb-nav-section orb-nav-search"><a class="orb-search__button" href="https://web.archive.org/web/20190207191953/https://search.bbc.co.uk/search?scope=cbbc" title="Search the BBC">Search</a><form class="b-f" id="orb-search-form" role="search" method="get" action="https://web.archive.org/web/20190207191953/https://search.bbc.co.uk/search" accept-charset="utf-8"><div><input type="hidden" name="scope" id="orb-search-scope" value="cbbc"><label for="orb-search-q">Search the BBC</label><input id="orb-search-q" type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" name="q" placeholder="Search"><button id="orb-search-button" class="orb-search__button">Search the BBC</button><input type="hidden" name="suggid" id="orb-search-suggid"></div></form></div></div><div id="orb-panels"></div></div></header><!-- Styling hook for shared modules only --> <div id="orb-modules"> <div id="unsupported-browser-banner-wrapper"> <!--[if lt IE 10]> <div class="unsupported-browser-banner" role="complementary"> <div class="unsupported-browser-banner__window"> <div class="grid__container"> <div class="grid__item"> <img class="unsupported-browser-banner__icon" aria-hidden="true" alt="" src="https://childrens-web.files.bbci.co.uk/cbbc/www/assets/b552180/images/icons/ie-caution-icon.png"/> <span class="unsupported-browser-banner__text">To get the best experience from CBBC, you need to upgrade your browser to the latest version.</span> </div> </div> </div> </div> <![endif]--> </div> <script> // Show unsupported browser banner for IE10 (function () { if (/*@cc_on!@*/false && document.documentMode === 10) { var bannerWrapper = document.getElementById('unsupported-browser-banner-wrapper'); var currentNode = bannerWrapper.firstChild; var startTagLength = '<!--[if lt IE 10]>'.length; var endTagLength = '<![endif]-->'.length; // Retrieve comment node inside the bannerWrapper; first child is whitespace while (currentNode) { if (currentNode.nodeType === bannerWrapper.COMMENT_NODE) { // Remove the IE tag comments and insert HTML into bannerWrapper bannerWrapper.innerHTML = currentNode.nodeValue.trim().slice(startTagLength, -endTagLength); } currentNode = currentNode.nextSibling; } } })(); </script> <div class="childrens-wrapper childrens-wrapper--cbbc childrens-wrapper--upload childrens-wrapper--upload feature-flag feature-flag--search-bar feature-flag--new-vote-styling feature-flag--episode-prominence-on-brand-pages feature-flag--reactions feature-flag--reith-font feature-flag--new-comments-theme" data-stats-page-type="upload"> <script> require(['jquery-1', 'stats/stats', 'domReady!'], function ($, stats, domReady) { stats.init($('.childrens-wrapper'), window.location.pathname); }); </script> <span class="childrens-wrapper__cover"></span> <div id="631d8fd30fda2d841172372fcc103897" class="uploader-form"><div id="u8013039839887096"><div class="ugc-fullscreen ugc-form--loading" data-reactid=".140kmfwtfd2" data-react-checksum="613349780"><div class="ugc-background-img-container" data-reactid=".140kmfwtfd2.0"><image class="ugc-background-img" src="//web.archive.org/web/20190207191953im_/https://m.files.bbci.co.uk/modules/bbc-morph-ugc-form-view/1.47.2/images/cbbc/uploader-background-cbbc.png" data-reactid=".140kmfwtfd2.0.0"></image></div><div class="ugc-container account-sign-in-layout" data-reactid=".140kmfwtfd2.1"><div class="ugc-step-container" data-reactid=".140kmfwtfd2.1.0"><div data-reactid=".140kmfwtfd2.1.0.0"><div class="" data-reactid=".140kmfwtfd2.1.0.0.$home"><div class="ugc-form-home-step" data-reactid=".140kmfwtfd2.1.0.0.$home.0"><div class="ugc-form-home-step__loading" data-reactid=".140kmfwtfd2.1.0.0.$home.0.0"><div class="gel-icon gel-icon--loading" data-reactid=".140kmfwtfd2.1.0.0.$home.0.0.0"><svg width="32" height="32" viewbox="0 0 32 32" data-reactid=".140kmfwtfd2.1.0.0.$home.0.0.0.0"><path d="M29.8 8l-3.5 2c1 1.8 1.6 3.8 1.6 6 0 6.6-5.4 12-12 12S4 22.6 4 16 9.4 4 16 4V0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16c0-2.9-.8-5.6-2.2-8z" data-reactid=".140kmfwtfd2.1.0.0.$home.0.0.0.0.0"></path></svg></div></div><a href="/web/20190207191953/https://www.bbc.co.uk/cbbc/games/cbbc-picture-maker" aria-label="Back to CBBC" class="ugc-fullscreen__close-button" data-reactid=".140kmfwtfd2.1.0.0.$home.0.2"><div class="close-button__icon-wrapper" data-reactid=".140kmfwtfd2.1.0.0.$home.0.2.0"><svg viewbox="0 0 13 13" data-reactid=".140kmfwtfd2.1.0.0.$home.0.2.0.0"><path d="M8.63,6.5,13,10.87,10.87,13,6.5,8.63,2.13,13,0,10.87,4.37,6.5,0,2.13,2.14,0,6.5,4.37,10.87,0,13,2.13Z" data-reactid=".140kmfwtfd2.1.0.0.$home.0.2.0.0.0"></path></svg></div></a></div></div></div></div></div></div></div></div> </div> <script type="text/javascript"> require(['lib/Imager', 'lib/minpubsub'], function (Imager, pubsub) { Imager.transforms.pixelRatio = function (value) { return value; }; var availableWidths = [80, 160, 240, 320, 400, 480, 560, 640, 720, 800, 880, 960]; var imagerDefault = new Imager('.delayed-image-load', { availableWidths: availableWidths, availablePixelRatios: [1, 1.5], loadHidden: false }); var imagerPng = new Imager('.delayed-png-image-load', { availableWidths: availableWidths, availablePixelRatios: [1], loadHidden: false }); var imagerGif = new Imager('.delayed-gif-image-load', { availableWidths: availableWidths, availablePixelRatios: [1, 1.5], lazyload: true, loadHidden: false }); pubsub.subscribe('/showMore/updateImages', function () { imagerDefault.add('.delayed-image-load'); imagerPng.add('.delayed-png-image-load'); }); pubsub.subscribe('/imager/addPngImages', function (selector) { imagerPng.add(selector); }); pubsub.subscribe('/imager/addImages', function (selector) { imagerDefault.add(selector); }); }); require(['childrens/singlePlayingVideo'], function (singlePlayingVideo) { setTimeout(singlePlayingVideo.setup, 2000); }); require(['angular/app'], function () {}); </script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-classnames@1.0.1"]={classnames:"2.2.5"},function(r){function e(o){if(n[o])return n[o].exports;var s=n[o]={exports:{},id:o,loaded:!1};return r[o].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var n={};return e.m=r,e.c=n,e.p="",e(0)}([function(r,e,n){Morph.modules["bbc-morph-classnames@1.0.1"]=n(1)},function(r,e,n){var o=n(2);r.exports=o},function(r,e,n){var o,s;!function(){"use strict";function n(){for(var r=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var s=typeof o;if("string"===s||"number"===s)r.push(o);else if(Array.isArray(o))r.push(n.apply(null,o));else if("object"===s)for(var a in o)t.call(o,a)&&o[a]&&r.push(a)}}return r.join(" ")}var t={}.hasOwnProperty;"undefined"!=typeof r&&r.exports?r.exports=n:(o=[],s=function(){return n}.apply(e,o),!(void 0!==s&&(r.exports=s)))}()}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-gel-icons@2.2.0"]={"bbc-morph-classnames":"1.0.1","morph-require":"3.0.17",react:"0.14.7"},function(e){function r(t){if(n[t])return n[t].exports;var i=n[t]={exports:{},id:t,loaded:!1};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}var n={};return r.m=e,r.c=n,r.p="",r(0)}([function(e,r,n){Morph.modules["bbc-morph-gel-icons@2.2.0"]=n(1)},function(e,r,n){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(2),o=t(i),s=n(3),a=t(s),l=n(4),u=t(l),c=o.default.createClass({displayName:"GEL__Icon",propTypes:{iconName:o.default.PropTypes.string,additionalClassNames:o.default.PropTypes.string},render:function(){var e=(0,u.default)("gel-icon","gel-icon--"+this.props.iconName,this.props.additionalClassNames),r=a.default.selfTransitiveThenUpdate("gel-icon-"+this.props.iconName,this);return o.default.createElement("div",{className:e},r?o.default.createElement(r,null):null)}});c.ensureIcon=function(e){"undefined"==typeof window&&a.default.selfTransitive("gel-icon-"+e,null)},r.default=c,e.exports=r.default},function(e,r){e.exports=React},function(e,r){e.exports={transitive:function(e,r){return Morph.requireTransitiveWithCaller("bbc-morph-gel-icons@2.2.0",e,r)},selfTransitive:function(e,r){return Morph.requireTransitiveWithCaller("bbc-morph-gel-icons@2.2.0",e,r,!0)},transitiveThenUpdate:function(e,r){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-gel-icons@2.2.0",e,r)},selfTransitiveThenUpdate:function(e,r){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-gel-icons@2.2.0",e,r,!0)}}},function(e,r){e.exports=Morph.modules["bbc-morph-classnames@1.0.1"]}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-ugc-form-view@1.47.2"]={"@bbc/ugc-js-library":"5.2.0","babel-runtime":"6.26.0","bbc-morph-classnames":"1.0.1","bbc-morph-gel-icons":"2.2.0","bbc-morph-id-availability-data":"1.0.0","bbc-morph-ugc-form-data":"2.5.1","gel-sass-tools":"1.2.1","gel-typography":"2.0.5","morph-container":"2.1.16","morph-require":"3.0.17","morph-static-prefix":"3.0.0",react:"0.14.7","react-dom":"0.14.7","sass-mq":"3.3.2","smoothscroll-polyfill":"0.4.3"},function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){Morph.modules["bbc-morph-ugc-form-view@1.47.2"]=r(1)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=n(o),a=r(41),s=n(a),u=r(42);t.default=s.default.create(u.UgcFormBootstrap,{data:function(e){var t=e.staticConfig?{staticConfig:e.staticConfig}:{},r=(0,i.default)({data:"bbc-morph-ugc-form-data",campaignUid:e.campaignUid},t),n=e.idAvailability?{availabilityOverride:e.idAvailability}:{};return{ugcData:{uri:r,requireSuccess:!0,updates:!1},idAvailabilityData:{uri:(0,i.default)({data:"bbc-morph-id-availability-data"},n),requireSuccess:!0,updates:!1}}}}),e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(3),i=n(o);t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}},function(e,t,r){e.exports={default:r(4),__esModule:!0}},function(e,t,r){r(5),e.exports=r(8).Object.assign},function(e,t,r){var n=r(6);n(n.S+n.F,"Object",{assign:r(22)})},function(e,t,r){var n=r(7),o=r(8),i=r(9),a=r(11),s=r(21),u="prototype",l=function(e,t,r){var c,d,f,p=e&l.F,v=e&l.G,h=e&l.S,m=e&l.P,y=e&l.B,g=e&l.W,_=v?o:o[t]||(o[t]={}),E=_[u],b=v?n:h?n[t]:(n[t]||{})[u];v&&(r=t);for(c in r)d=!p&&b&&void 0!==b[c],d&&s(_,c)||(f=d?b[c]:r[c],_[c]=v&&"function"!=typeof b[c]?r[c]:y&&d?i(f,n):g&&b[c]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[u]=e[u],t}(f):m&&"function"==typeof f?i(Function.call,f):f,m&&((_.virtual||(_.virtual={}))[c]=f,e&l.R&&E&&!E[c]&&a(E,c,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){var r=e.exports={version:"2.6.3"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(10);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(12),o=r(20);e.exports=r(16)?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(13),o=r(15),i=r(19),a=Object.defineProperty;t.f=r(16)?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(14);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){e.exports=!r(16)&&!r(17)(function(){return 7!=Object.defineProperty(r(18)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){e.exports=!r(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(14),o=r(7).document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,r){var n=r(14);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";var n=r(23),o=r(38),i=r(39),a=r(40),s=r(26),u=Object.assign;e.exports=!u||r(17)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=u({},e)[r]||Object.keys(u({},t)).join("")!=n})?function(e,t){for(var r=a(e),u=arguments.length,l=1,c=o.f,d=i.f;u>l;)for(var f,p=s(arguments[l++]),v=c?n(p).concat(c(p)):n(p),h=v.length,m=0;h>m;)d.call(p,f=v[m++])&&(r[f]=p[f]);return r}:u},function(e,t,r){var n=r(24),o=r(37);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){var n=r(21),o=r(25),i=r(29)(!1),a=r(33)("IE_PROTO");e.exports=function(e,t){var r,s=o(e),u=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~i(l,r)||l.push(r));return l}},function(e,t,r){var n=r(26),o=r(28);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(27);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(25),o=r(30),i=r(32);e.exports=function(e){return function(t,r,a){var s,u=n(t),l=o(u.length),c=i(a,l);if(e&&r!=r){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t,r){var n=r(31),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(31),o=Math.max,i=Math.min;e.exports=function(e,t){return e=n(e),e<0?o(e+t,0):i(e,t)}},function(e,t,r){var n=r(34)("keys"),o=r(36);e.exports=function(e){return n[e]||(n[e]=o(e))}},function(e,t,r){var n=r(8),o=r(7),i="__core-js_shared__",a=o[i]||(o[i]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(35)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!0},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var n=r(28);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports={create:function(e,t){return Morph.createContainerWithCaller("bbc-morph-ugc-form-view@1.47.2",e,t)}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UgcFormBootstrap=void 0;var o=r(43),i=n(o),a=r(46),s=n(a),u=r(2),l=n(u),c=r(86),d=n(c),f=r(90),p=n(f),v=r(91),h=n(v),m=r(95),y=n(m),g=r(112),_=n(g),E=r(120),b=n(E),T=r(121),S=n(T),w=r(122),C=r(124),k=r(126),P=r(127),I=r(191),A=r(133),O=r(183),x=r(189),R=r(192),N=n(R),M=r(193),F=t.UgcFormBootstrap=function(e){function t(e){(0,p.default)(this,t);var r=(0,y.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));r.state={isPageLoading:!0},(0,w.addModeSupport)({mode:e.mode,component:r});var n=e.siteUrl,o=e.ptrt,i=e.campaignUid,a=e.theme;return r.ptrt=(0,I.isRelativeUrl)(o)?o:n,r.defaultStep=r.getDefaultStep(),r.defaultStepProps=r.getDefaultStepProps(),r.theme=M.VALID_THEMES.indexOf(a)>=0?a:"default",r.cdn=(0,N.default)(),r.istatsCommonLabels={service:k.ISTATS_SERVICE,campaign_uid:i,uploader_theme:r.theme,uploader_step:r.defaultStep},r.onStepChange=r.onStepChange.bind(r),C.istatsService.initialiseCommonLabels(r.istatsCommonLabels),r}return(0,_.default)(t,e),(0,h.default)(t,[{key:"getFormData",value:function(){return this.props.ugcData.body}},{key:"getIdAvailabilityData",value:function(){return this.props.idAvailabilityData.body}},{key:"getDefaultStep",value:function(){var e=this.getFormData(),t=e.campaignStatus;return t===x.OPEN?this.getIdAvailabilityData().isAvailable?A.HOME_STEP:A.ACCOUNT_ERROR_STEP:A.CLOSED_STEP}},{key:"getDefaultStepProps",value:function(){var e=this.props,t=e.campaignUid,r=e.idctaEnv,n=e.signInContext,o=this.getFormData();return(0,l.default)({campaignUid:t,idctaEnv:r,signInContext:n,formData:o},this.defaultStep===A.ACCOUNT_ERROR_STEP?{accountErrorCode:O.ID_FLAGPOLE_RED}:{})}},{key:"getChildContext",value:function(){return{siteName:this.props.siteName,ptrt:this.ptrt}}},{key:"onStepChange",value:function(e){C.istatsService.initialiseCommonLabels({service:k.ISTATS_SERVICE,campaign_uid:this.props.campaignUid,uploader_theme:this.theme,uploader_step:e})}},{key:"setPageLoadingComplete",value:function(){this.setState({isPageLoading:!1})}},{key:"componentDidMount",value:function(){function e(){return t.apply(this,arguments)}var t=(0,s.default)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C.istatsService.initialise();case 2:this.setPageLoadingComplete();case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"render",value:function(){var e=this.state.isPageLoading;return b.default.createElement("div",{className:(0,S.default)("ugc-fullscreen",{"ugc-form--loading":e})},b.default.createElement("div",{className:"ugc-background-img-container"},b.default.createElement("image",{className:(0,S.default)("ugc-background-img"),src:this.cdn+"/images/"+this.theme+"/uploader-background-"+this.theme+".png"})),b.default.createElement("div",{className:"ugc-container account-sign-in-layout"},b.default.createElement("div",{className:"ugc-step-container"},b.default.createElement(P.UgcStepRouter,{step:this.defaultStep,stepProps:this.defaultStepProps,onStepChange:this.onStepChange}))))}}]),t}(E.Component);F.displayName="UgcFormBootstrap",F.propTypes={campaignUid:E.PropTypes.string.isRequired,idctaEnv:E.PropTypes.string,signInContext:E.PropTypes.string,mode:E.PropTypes.string,ugcData:E.PropTypes.object.isRequired,idAvailabilityData:E.PropTypes.shape({body:E.PropTypes.shape({isAvailable:E.PropTypes.bool})}).isRequired,siteName:E.PropTypes.string.isRequired,siteUrl:E.PropTypes.string.isRequired,ptrt:E.PropTypes.string,theme:E.PropTypes.string},F.childContextTypes={siteName:E.PropTypes.string.isRequired,ptrt:E.PropTypes.string.isRequired},F.defaultProps={theme:"default"}},function(e,t,r){e.exports=r(44)},function(e,t,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(45),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function r(e,t,r,n){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),s=new p(n||[]);return a._invoke=l(e,r,s),a}function n(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function a(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){function t(r,o,i,a){var s=n(e[r],e,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&g.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(l).then(function(e){u.value=e,i(u)},a)}a(s.arg)}function r(e,r){function n(){return new Promise(function(n,o){t(e,r,n,o)})}return o=o?o.then(n,n):n()}var o;this._invoke=r}function l(e,t,r){var o=C;return function(i,a){if(o===P)throw new Error("Generator is already running");if(o===I){if("throw"===i)throw a;return h()}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=c(s,r);if(u){if(u===A)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===C)throw o=I,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=P;var l=n(e,t,r);if("normal"===l.type){if(o=r.done?I:k,l.arg===A)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=I,r.method="throw",r.arg=l.arg)}}}function c(e,t){var r=e.iterator[t.method];if(r===m){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=m,c(e,t),"throw"===t.method))return A;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var o=n(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,A;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=m),t.delegate=null,A):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,A)}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function v(e){if(e){var t=e[E];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(g.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=m,t.done=!0,t};return n.next=n}}return{next:h}}function h(){return{value:m,done:!0}}var m,y=Object.prototype,g=y.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},E=_.iterator||"@@iterator",b=_.asyncIterator||"@@asyncIterator",T=_.toStringTag||"@@toStringTag",S="object"==typeof e,w=t.regeneratorRuntime;if(w)return void(S&&(e.exports=w));w=t.regeneratorRuntime=S?e.exports:{},w.wrap=r;var C="suspendedStart",k="suspendedYield",P="executing",I="completed",A={},O={};O[E]=function(){return this};var x=Object.getPrototypeOf,R=x&&x(x(v([])));R&&R!==y&&g.call(R,E)&&(O=R);var N=a.prototype=o.prototype=Object.create(O);i.prototype=N.constructor=a,a.constructor=i,a[T]=i.displayName="GeneratorFunction",w.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},w.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,T in e||(e[T]="GeneratorFunction")),e.prototype=Object.create(N),e},w.awrap=function(e){return{__await:e}},s(u.prototype),u.prototype[b]=function(){return this},w.AsyncIterator=u,w.async=function(e,t,n,o){var i=new u(r(e,t,n,o));return w.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},s(N),N[T]="Generator",N[E]=function(){return this},N.toString=function(){return"[object Generator]"},w.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},w.values=v,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(f),!e)for(var t in this)"t"===t.charAt(0)&&g.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=m)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,n){return i.type="throw",i.arg=e,r.next=t,n&&(r.method="next",r.arg=m),!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),s=g.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&g.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,A):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),f(r),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;f(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:v(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=m),A}}}(function(){return this}()||Function("return this")())},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(47),i=n(o);t.default=function(e){return function(){var t=e.apply(this,arguments);return new i.default(function(e,r){function n(o,a){try{var s=t[o](a),u=s.value}catch(e){return void r(e)}return s.done?void e(u):i.default.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)})}return n("next")})}}},function(e,t,r){e.exports={default:r(48),__esModule:!0}},function(e,t,r){r(49),r(50),r(62),r(66),r(84),r(85),e.exports=r(8).Promise},function(e,t){},function(e,t,r){"use strict";var n=r(51)(!0);r(52)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){var n=r(31),o=r(28);e.exports=function(e){return function(t,r){var i,a,s=String(o(t)),u=n(r),l=s.length;return u<0||u>=l?e?"":void 0:(i=s.charCodeAt(u),i<55296||i>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):(i-55296<<10)+(a-56320)+65536)}}},function(e,t,r){"use strict";var n=r(35),o=r(6),i=r(53),a=r(11),s=r(54),u=r(55),l=r(59),c=r(61),d=r(60)("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",h="values",m=function(){return this};e.exports=function(e,t,r,y,g,_,E){u(r,t,y);var b,T,S,w=function(e){if(!f&&e in I)return I[e];switch(e){case v:return function(){return new r(this,e)};case h:return function(){return new r(this,e)}}return function(){return new r(this,e)}},C=t+" Iterator",k=g==h,P=!1,I=e.prototype,A=I[d]||I[p]||g&&I[g],O=A||w(g),x=g?k?w("entries"):O:void 0,R="Array"==t?I.entries||A:A;if(R&&(S=c(R.call(new e)),S!==Object.prototype&&S.next&&(l(S,C,!0),n||"function"==typeof S[d]||a(S,d,m))),k&&A&&A.name!==h&&(P=!0,O=function(){return A.call(this)}),n&&!E||!f&&!P&&I[d]||a(I,d,O),s[t]=O,s[C]=m,g)if(b={values:k?O:w(h),keys:_?O:w(v),entries:x},E)for(T in b)T in I||i(I,T,b[T]);else o(o.P+o.F*(f||P),t,b);return b}},function(e,t,r){e.exports=r(11)},function(e,t){e.exports={}},function(e,t,r){"use strict";var n=r(56),o=r(20),i=r(59),a={};r(11)(a,r(60)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:o(1,r)}),i(e,t+" Iterator")}},function(e,t,r){var n=r(13),o=r(57),i=r(37),a=r(33)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=r(18)("iframe"),n=i.length,o="<",a=">";for(t.style.display="none",r(58).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+a+"document.F=Object"+o+"/script"+a),e.close(),l=e.F;n--;)delete l[u][i[n]];return l()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[u]=n(e),r=new s,s[u]=null,r[a]=e):r=l(),void 0===t?r:o(r,t)}},function(e,t,r){var n=r(12),o=r(13),i=r(23);e.exports=r(16)?Object.defineProperties:function(e,t){o(e);for(var r,a=i(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var n=r(7).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(12).f,o=r(21),i=r(60)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},function(e,t,r){var n=r(34)("wks"),o=r(36),i=r(7).Symbol,a="function"==typeof i,s=e.exports=function(e){return n[e]||(n[e]=a&&i[e]||(a?i:o)("Symbol."+e))};s.store=n},function(e,t,r){var n=r(21),o=r(40),i=r(33)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),n(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,r){r(63);for(var n=r(7),o=r(11),i=r(54),a=r(60)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=n[l],d=c&&c.prototype;d&&!d[a]&&o(d,a,l),i[l]=i.Array}},function(e,t,r){"use strict";var n=r(64),o=r(65),i=r(54),a=r(25);e.exports=r(52)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,r):"values"==t?o(0,e[r]):o(0,[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n,o,i,a,s=r(35),u=r(7),l=r(9),c=r(67),d=r(6),f=r(14),p=r(10),v=r(68),h=r(69),m=r(73),y=r(74).set,g=r(76)(),_=r(77),E=r(78),b=r(79),T=r(80),S="Promise",w=u.TypeError,C=u.process,k=C&&C.versions,P=k&&k.v8||"",I=u[S],A="process"==c(C),O=function(){},x=o=_.f,R=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[r(60)("species")]=function(e){e(O,O)};return(A||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==P.indexOf("6.6")&&b.indexOf("Chrome/66")===-1}catch(e){}}(),N=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var r=e._c;g(function(){for(var n=e._v,o=1==e._s,i=0,a=function(t){var r,i,a,s=o?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{s?(o||(2==e._h&&L(e),e._h=1),s===!0?r=n:(c&&c.enter(),r=s(n),c&&(c.exit(),a=!0)),r===t.promise?l(w("Promise-chain cycle")):(i=N(r))?i.call(r,u,l):u(r)):l(n)}catch(e){c&&!a&&c.exit(),l(e)}};r.length>i;)a(r[i++]);e._c=[],e._n=!1,t&&!e._h&&F(e)})}},F=function(e){y.call(u,function(){var t,r,n,o=e._v,i=D(e);if(i&&(t=E(function(){A?C.emit("unhandledRejection",o,e):(r=u.onunhandledrejection)?r({promise:e,reason:o}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",o)}),e._h=A||D(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){y.call(u,function(){var t;A?C.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},U=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},j=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw w("Promise can't be resolved itself");(t=N(e))?g(function(){var n={_w:r,_d:!1};try{t.call(e,l(j,n,1),l(U,n,1))}catch(e){U.call(n,e)}}):(r._v=e,r._s=1,M(r,!1))}catch(e){U.call({_w:r,_d:!1},e)}}};R||(I=function(e){v(this,I,S,"_h"),p(e),n.call(this);try{e(l(j,this,1),l(U,this,1))}catch(e){U.call(this,e)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(81)(I.prototype,{then:function(e,t){var r=x(m(this,I));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=A?C.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&M(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n;this.promise=e,this.resolve=l(j,e,1),this.reject=l(U,e,1)},_.f=x=function(e){return e===I||e===a?new i(e):o(e)}),d(d.G+d.W+d.F*!R,{Promise:I}),r(59)(I,S),r(82)(S),a=r(8)[S],d(d.S+d.F*!R,S,{reject:function(e){var t=x(this),r=t.reject;return r(e),t.promise}}),d(d.S+d.F*(s||!R),S,{resolve:function(e){return T(s&&this===a?I:this,e)}}),d(d.S+d.F*!(R&&r(83)(function(e){I.all(e).catch(O)})),S,{all:function(e){var t=this,r=x(t),n=r.resolve,o=r.reject,i=E(function(){var r=[],i=0,a=1;h(e,!1,function(e){var s=i++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function(e){var t=this,r=x(t),n=r.reject,o=E(function(){h(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},function(e,t,r){var n=r(27),o=r(60)("toStringTag"),i="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=a(t=Object(e),o))?r:i?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(9),o=r(70),i=r(71),a=r(13),s=r(30),u=r(72),l={},c={},t=e.exports=function(e,t,r,d,f){var p,v,h,m,y=f?function(){return e}:u(e),g=n(r,d,t?2:1),_=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(p=s(e.length);p>_;_++)if(m=t?g(a(v=e[_])[0],v[1]):g(e[_]),m===l||m===c)return m}else for(h=y.call(e);!(v=h.next()).done;)if(m=o(h,g,v.value,t),m===l||m===c)return m};t.BREAK=l,t.RETURN=c},function(e,t,r){var n=r(13);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(54),o=r(60)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||i[o]===e)}},function(e,t,r){var n=r(67),o=r(60)("iterator"),i=r(54);e.exports=r(8).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(13),o=r(10),i=r(60)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[i])?t:o(r)}},function(e,t,r){var n,o,i,a=r(9),s=r(75),u=r(58),l=r(18),c=r(7),d=c.process,f=c.setImmediate,p=c.clearImmediate,v=c.MessageChannel,h=c.Dispatch,m=0,y={},g="onreadystatechange",_=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},E=function(e){_.call(e.data)};f&&p||(f=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return y[++m]=function(){s("function"==typeof e?e:Function(e),t)},n(m),m},p=function(e){delete y[e]},"process"==r(27)(d)?n=function(e){d.nextTick(a(_,e,1))}:h&&h.now?n=function(e){h.now(a(_,e,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=E,n=a(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",E,!1)):n=g in l("script")?function(e){u.appendChild(l("script"))[g]=function(){u.removeChild(this),_.call(e)}}:function(e){setTimeout(a(_,e,1),0)}),e.exports={set:f,clear:p}},function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(7),o=r(74).set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(27)(a);e.exports=function(){var e,t,r,l=function(){var n,o;for(u&&(n=a.domain)&&n.exit();e;){o=e.fn,e=e.next;try{o()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(l)};else if(!i||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);r=function(){c.then(l)}}else r=function(){o.call(n,l)};else{var d=!0,f=document.createTextNode("");new i(l).observe(f,{characterData:!0}),r=function(){f.data=d=!d}}return function(n){var o={fn:n,next:void 0};t&&(t.next=o),e||(e=o,r()),t=o}}},function(e,t,r){"use strict";function n(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=o(t),this.reject=o(r)}var o=r(10);e.exports.f=function(e){return new n(e)}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(7),o=n.navigator;e.exports=o&&o.userAgent||""},function(e,t,r){var n=r(13),o=r(14),i=r(77);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e),a=r.resolve;return a(t),r.promise}},function(e,t,r){var n=r(11);e.exports=function(e,t,r){for(var o in t)r&&e[o]?e[o]=t[o]:n(e,o,t[o]);return e}},function(e,t,r){"use strict";var n=r(7),o=r(8),i=r(12),a=r(16),s=r(60)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:n[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(60)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},e(i)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(6),o=r(8),i=r(7),a=r(73),s=r(80);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(6),o=r(77),i=r(78);n(n.S,"Promise",{try:function(e){var t=o.f(this),r=i(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){e.exports={default:r(87),__esModule:!0}},function(e,t,r){r(88),e.exports=r(8).Object.getPrototypeOf},function(e,t,r){var n=r(40),o=r(61);r(89)("getPrototypeOf",function(){return function(e){return o(n(e))}})},function(e,t,r){var n=r(6),o=r(8),i=r(17);e.exports=function(e,t){var r=(o.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*i(function(){r(1)}),"Object",a)}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(92),i=n(o);t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},function(e,t,r){e.exports={default:r(93),__esModule:!0}},function(e,t,r){r(94);var n=r(8).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},function(e,t,r){var n=r(6);n(n.S+n.F*!r(16),"Object",{defineProperty:r(12).f})},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(96),i=n(o);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return!t||"object"!==("undefined"==typeof t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(97),i=n(o),a=r(100),s=n(a),u="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(i.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t,r){e.exports={default:r(98),__esModule:!0}},function(e,t,r){r(50),r(62),e.exports=r(99).f("iterator")},function(e,t,r){t.f=r(60)},function(e,t,r){e.exports={default:r(101),__esModule:!0}},function(e,t,r){r(102),r(49),r(110),r(111),e.exports=r(8).Symbol},function(e,t,r){"use strict";var n=r(7),o=r(21),i=r(16),a=r(6),s=r(53),u=r(103).KEY,l=r(17),c=r(34),d=r(59),f=r(36),p=r(60),v=r(99),h=r(104),m=r(105),y=r(106),g=r(13),_=r(14),E=r(25),b=r(19),T=r(20),S=r(56),w=r(107),C=r(109),k=r(12),P=r(23),I=C.f,A=k.f,O=w.f,x=n.Symbol,R=n.JSON,N=R&&R.stringify,M="prototype",F=p("_hidden"),D=p("toPrimitive"),L={}.propertyIsEnumerable,U=c("symbol-registry"),j=c("symbols"),B=c("op-symbols"),V=Object[M],q="function"==typeof x,G=n.QObject,H=!G||!G[M]||!G[M].findChild,z=i&&l(function(){return 7!=S(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=I(V,t);n&&delete V[t],A(e,t,r),n&&e!==V&&A(V,t,n)}:A,K=function(e){var t=j[e]=S(x[M]);return t._k=e,t},Y=q&&"symbol"==typeof x.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof x},$=function(e,t,r){return e===V&&$(B,t,r),g(e),t=b(t,!0),g(r),o(j,t)?(r.enumerable?(o(e,F)&&e[F][t]&&(e[F][t]=!1),r=S(r,{enumerable:T(0,!1)})):(o(e,F)||A(e,F,T(1,{})),e[F][t]=!0),z(e,t,r)):A(e,t,r)},X=function(e,t){g(e);for(var r,n=m(t=E(t)),o=0,i=n.length;i>o;)$(e,r=n[o++],t[r]);return e},W=function(e,t){return void 0===t?S(e):X(S(e),t)},Z=function(e){var t=L.call(this,e=b(e,!0));return!(this===V&&o(j,e)&&!o(B,e))&&(!(t||!o(this,e)||!o(j,e)||o(this,F)&&this[F][e])||t)},J=function(e,t){if(e=E(e),t=b(t,!0),e!==V||!o(j,t)||o(B,t)){var r=I(e,t);return!r||!o(j,t)||o(e,F)&&e[F][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=O(E(e)),n=[],i=0;r.length>i;)o(j,t=r[i++])||t==F||t==u||n.push(t);return n},ee=function(e){for(var t,r=e===V,n=O(r?B:E(e)),i=[],a=0;n.length>a;)!o(j,t=n[a++])||r&&!o(V,t)||i.push(j[t]);return i};q||(x=function(){if(this instanceof x)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===V&&t.call(B,r),o(this,F)&&o(this[F],e)&&(this[F][e]=!1),z(this,e,T(1,r))};return i&&H&&z(V,e,{configurable:!0,set:t}),K(e)},s(x[M],"toString",function(){return this._k}),C.f=J,k.f=$,r(108).f=w.f=Q,r(39).f=Z,r(38).f=ee,i&&!r(35)&&s(V,"propertyIsEnumerable",Z,!0),v.f=function(e){return K(p(e))}),a(a.G+a.W+a.F*!q,{Symbol:x});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)p(te[re++]);for(var ne=P(p.store),oe=0;ne.length>oe;)h(ne[oe++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return o(U,e+="")?U[e]:U[e]=x(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!q,"Object",{create:W,defineProperty:$,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:ee}),R&&a(a.S+a.F*(!q||l(function(){var e=x();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=t=n[1],(_(t)||void 0!==e)&&!Y(e))return y(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,N.apply(R,n)}}),x[M][D]||r(11)(x[M],D,x[M].valueOf),d(x,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},function(e,t,r){var n=r(36)("meta"),o=r(14),i=r(21),a=r(12).f,s=0,u=Object.isExtensible||function(){return!0},l=!r(17)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},f=function(e,t){if(!i(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},p=function(e){return l&&v.NEED&&u(e)&&!i(e,n)&&c(e),e},v=e.exports={KEY:n,NEED:!1,fastKey:d,getWeak:f,onFreeze:p}},function(e,t,r){var n=r(7),o=r(8),i=r(35),a=r(99),s=r(12).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,r){var n=r(23),o=r(38),i=r(39);e.exports=function(e){var t=n(e),r=o.f;if(r)for(var a,s=r(e),u=i.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,r){var n=r(27);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(25),o=r(108).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(n(e))}},function(e,t,r){var n=r(24),o=r(37).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},function(e,t,r){var n=r(39),o=r(20),i=r(25),a=r(19),s=r(21),u=r(15),l=Object.getOwnPropertyDescriptor;t.f=r(16)?l:function(e,t){if(e=i(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return o(!n.f.call(e,t),e[t])}},function(e,t,r){r(104)("asyncIterator")},function(e,t,r){r(104)("observable")},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(113),i=n(o),a=r(117),s=n(a),u=r(96),l=n(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,l.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,r){e.exports={default:r(114),__esModule:!0}},function(e,t,r){r(115),e.exports=r(8).Object.setPrototypeOf},function(e,t,r){var n=r(6);n(n.S,"Object",{setPrototypeOf:r(116).set})},function(e,t,r){var n=r(14),o=r(13),i=function(e,t){if(o(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=r(9)(Function.call,r(109).f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return i(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:i}},function(e,t,r){e.exports={default:r(118),__esModule:!0}},function(e,t,r){r(119);var n=r(8).Object;e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){var n=r(6);n(n.S,"Object",{create:r(56)})},function(e,t){e.exports=React},function(e,t){e.exports=Morph.modules["bbc-morph-classnames@1.0.1"]},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.addModeSupport=t.MODE_STANDALONE=void 0;var o=r(123),i=n(o),a=t.MODE_STANDALONE="standalone",s=[a];t.addModeSupport=function(e){var t=e.component,r=e.mode;s.indexOf(r)!==-1&&i.default.selfTransitiveThenUpdate("modes-"+r,t)}},function(e,t){e.exports={transitive:function(e,t){return Morph.requireTransitiveWithCaller("bbc-morph-ugc-form-view@1.47.2",e,t)},selfTransitive:function(e,t){return Morph.requireTransitiveWithCaller("bbc-morph-ugc-form-view@1.47.2",e,t,!0)},transitiveThenUpdate:function(e,t){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-ugc-form-view@1.47.2",e,t)},selfTransitiveThenUpdate:function(e,t){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-ugc-form-view@1.47.2",e,t,!0)}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.istatsService=void 0;var o=r(43),i=n(o),a=r(46),s=n(a),u=r(2),l=n(u),c=function(){var e=(0,s.default)(i.default.mark(function e(t,r,n){var o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=(0,l.default)({},f,n),e.next=3,(0,d.getIstats)();case 3:a=e.sent,a.log(t,r,o);case 5:case"end":return e.stop()}},e,this)}));return function(t,r,n){return e.apply(this,arguments)}}(),d=r(125),f={};t.istatsService={initialise:function(){return(0,d.getIstats)()},initialiseCommonLabels:function(e){f=(0,l.default)({},e)},logClickEvent:function(e,t){return c("click",e,t)},logViewEvent:function(e,t){return c("view",e,t)},logLinkEvent:function(e,t){return c("link",e,t)},logButtonEvent:function(e,t){return c("button",e,t)},logEvent:function(e,t,r){return c(e,t,r)}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(){return new a.default(function(e){window.require(["istats-1"],function(t){e(t)})})}Object.defineProperty(t,"__esModule",{value:!0}),t.getIstats=void 0;var i=r(47),a=n(i);t.getIstats=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ISTATS_ACTIONS={UploaderSubmitForm:"uploader_submit_form",UploaderUploading:"uploader_uploading",UploaderConfirmation:"uploader_confirmation",UploaderReset:"uploader_reset",UploaderAddFile:"uploader_add-file",UploaderRemoveFile:"uploader_remove-file",UploaderValidation:"uploader_validation",UploaderClose:"uploader_close",UploaderError:"uploader_error",UploaderTryAgain:"uploader_try_again",UploaderClosed:"uploader_closed",UploaderPrivacyLink:"uploader_privacy_link",UploaderPrivacy:"uploader_privacy",UploaderClosePrivacy:"uploader_close_privacy",UploaderAccountError:"uploader_account_error"},t.ISTATS_SERVICE="morph-ugc-form-view"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UgcStepRouter=void 0;var o=r(128),i=n(o),a=r(2),s=n(a),u=r(131),l=n(u),c=r(132),d=n(c),f=r(86),p=n(f),v=r(90),h=n(v),m=r(91),y=n(m),g=r(95),_=n(g),E=r(112),b=n(E),T=r(120),S=n(T),w=r(121),C=n(w),k=r(133),P=r(147),I=r(145),A=t.UgcStepRouter=function(e){function t(e){(0,h.default)(this,t);var r=(0,_.default)(this,(t.__proto__||(0,p.default)(t)).call(this,e));r.gotoStep=r.gotoStep.bind(r),r.renderStep=r.renderStep.bind(r);var n=e.step,o=e.stepProps;return r.state={step:n,shouldResetStep:!1,stepsToRender:r.getStepInfoToRender(n,o)},r}return(0,b.default)(t,e),(0,y.default)(t,[{key:"getChildContext",value:function(){return{gotoStep:this.gotoStep}}},{key:"gotoStep",value:function(e){var t=e.step,r=e.stepProps,n=e.reset,o=void 0!==n&&n;this.props.onStepChange(t),this.renderStep({step:t,stepProps:r,reset:o})}},{key:"getStepInfoToRender",value:function(e,t){return(0,d.default)({},e,{component:(0,k.getStepComponent)(e),stepProps:t,key:e})}},{key:"removeCurrentStep",value:function(e){var t=this.state.step,r=e[t].component;if(!r.cachedStep){var n=(e[t],(0,l.default)(e,[t]));return n}return e[t].scrollTop=(0,I.getScrollTop)(),e[t].focusedElement=(0,I.getFocusedElement)(),e}},{key:"renderStep",value:function(e){var t=e.step,r=e.stepProps,n=e.reset,o=this.removeCurrentStep(this.state.stepsToRender),i=o.hasOwnProperty(t);i?this.updateRenderedStep({stepsToRender:o,step:t,newStepProps:r,shouldResetStep:n}):this.addNewStepToRender({stepsToRender:o,step:t,stepProps:r})}},{key:"addNewStepToRender",value:function(e){var t=e.stepsToRender,r=e.step,n=e.stepProps;this.setState({stepsToRender:(0,s.default)({},t,this.getStepInfoToRender(r,n)),step:r})}},{key:"updateRenderedStep",value:function(e){var t=e.stepsToRender,r=e.step,n=e.newStepProps,o=e.shouldResetStep,i=t[r],a=(0,s.default)({},i.stepProps,n),u=o?{key:(0,P.getUniqueKey)(r),scrollTop:0,focusedElement:null}:{};this.setState({stepsToRender:(0,s.default)({},t,(0,d.default)({},r,(0,s.default)({},i,{stepProps:a},u))),step:r})}},{key:"hasVisibleStepChanged",value:function(e){return e!==this.state&&e.step!==this.state.step}},{key:"componentDidUpdate",value:function(e,t){if(this.hasVisibleStepChanged(t)){var r=this.state,n=r.step,o=r.stepsToRender,i=o[n];(0,I.setScrollTop)(i.scrollTop),(0,I.setFocusedElement)(i.focusedElement)}}},{key:"render",value:function(){var e=this.state,t=e.step,r=e.stepsToRender;return S.default.createElement("div",null,(0,i.default)(r).map(function(e){var n=r[e],o=n.component,i=n.stepProps,a=n.key;return S.default.createElement("div",{className:(0,C.default)({"ugc-hidden":t!==e}),key:a},S.default.createElement(o,i))}))}}]),t}(T.Component);A.displayName="UgcStepRouter",A.propTypes={step:T.PropTypes.string.isRequired,stepProps:T.PropTypes.object,onStepChange:T.PropTypes.func},A.childContextTypes={gotoStep:T.PropTypes.func.isRequired}},function(e,t,r){e.exports={default:r(129),__esModule:!0}},function(e,t,r){r(130),e.exports=r(8).Object.keys},function(e,t,r){var n=r(40),o=r(23);r(89)("keys",function(){return function(e){return o(n(e))}})},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(92),i=n(o);t.default=function(e,t,r){return t in e?(0,i.default)(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getStepComponent=t.PRIVACY_NOTICE_STEP=t.CLOSED_STEP=t.ACCOUNT_ERROR_STEP=t.ERROR_STEP=t.CONFIRMATION_STEP=t.UPLOADING_PROGRESS_STEP=t.HOME_STEP=void 0;var o,i=r(132),a=n(i),s=r(134),u=r(175),l=r(179),c=r(181),d=r(182),f=r(188),p=r(190),v=t.HOME_STEP="home",h=t.UPLOADING_PROGRESS_STEP="uploading-progress",m=t.CONFIRMATION_STEP="confirmation",y=t.ERROR_STEP="error",g=t.ACCOUNT_ERROR_STEP="account-error",_=t.CLOSED_STEP="closed",E=t.PRIVACY_NOTICE_STEP="privacy",b=(o={},(0,a.default)(o,v,s.HomeStep),(0,a.default)(o,h,u.UploadingProgressStep),(0,a.default)(o,m,l.ConfirmationStep),(0,a.default)(o,y,c.UploadErrorStep),(0,a.default)(o,g,d.AccountErrorStep),(0,a.default)(o,_,f.ClosedStep),(0,a.default)(o,E,p.PrivacyNoticeStep),o);t.getStepComponent=function(e){return b[e]}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.HomeStep=void 0;var o=r(43),i=n(o),a=r(46),s=n(a),u=r(2),l=n(u),c=r(86),d=n(c),f=r(90),p=n(f),v=r(91),h=n(v),m=r(95),y=n(m),g=r(112),_=n(g),E=r(120),b=n(E),T=r(135),S=n(T),w=r(136),C=r(168),k=r(170),P=r(172),I=r(147),A=r(133),O=r(124),x=r(173),R=r(174),N=500,M=t.HomeStep=function(e){function t(e){(0,p.default)(this,t);var r=(0,y.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));return r.state={checkingUserPermissions:!0},r}return(0,_.default)(t,e),(0,h.default)(t,[{key:"runAccountChecks",value:function(){var e=this,t=this.props,r=t.idctaEnv,n=t.signInContext;return(0,P.isUserSignedIn)({env:r,idContext:n}).then(function(){var t=e.props.formData.validAgeBrackets;return(0,P.checkUserAgeBracket)({validAgeBrackets:t})}).then(function(){return(0,P.getUserUploadPermission)({env:r})}).then(function(){O.istatsService.logViewEvent(A.HOME_STEP)}).catch(function(t){e.gotoAccountErrorStep(t)})}},{key:"gotoAccountErrorStep",value:function(e){var t=(0,l.default)({},this.props,{idHtml:e.idHtml,accountErrorCode:e.errorCode,errorDetails:e.errorDetails});this.context.gotoStep({step:A.ACCOUNT_ERROR_STEP,stepProps:t})}},{key:"setCheckUserPermissionsComplete",value:function(){this.setState({checkingUserPermissions:!1})}},{key:"componentDidMount",value:function(){function e(){return t.apply(this,arguments)}var t=(0,s.default)(i.default.mark(function e(){var t,r,n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props.formData,r=t.allowAnonymousUploads,n=void 0!==r&&r,o=!n,!o){e.next=6;break}return e.next=6,(0,I.ensureMinAwaitTime)(this.runAccountChecks(),N);case 6:this.setCheckUserPermissionsComplete();case 7:case"end":return e.stop()}},e,this)}));return e}()},{key:"render",value:function(){var e=this.props,t=e.campaignUid,r=e.formData,n=r.allowAnonymousUploads,o=r.sections,i=r.privacyNotice,a=r.env,s=r.title,u=r.description,l=i.default,c=this.state.checkingUserPermissions;return b.default.createElement("div",{className:"ugc-form-home-step"},c&&b.default.createElement("div",{className:"ugc-form-home-step__loading"},b.default.createElement(S.default,{iconName:"loading"})),!c&&b.default.createElement("div",null,b.default.createElement("header",{className:"ugc-form-home-step__header"},b.default.createElement("div",{className:"ugc-form-container-header"},b.default.createElement(R.BbcBlocks,null),b.default.createElement(x.BackToSiteLink,null)),b.default.createElement("h1",{className:"ugc-form-home-step__title"},s),b.default.createElement("p",null,u)),b.default.createElement(k.PrivacyNoticeCta,{privacyNotice:l}),b.default.createElement(w.UgcForm,{campaignUid:t,env:a,sections:o,allowAnonymousUploads:n})),b.default.createElement(C.FullScreenCloseButton,null))}}]),t}(E.Component);M.cachedStep=!0,M.displayName="HomeStep",M.propTypes={campaignUid:E.PropTypes.string.isRequired,idctaEnv:E.PropTypes.oneOf(["test","live","acc"]).isRequired,signInContext:E.PropTypes.string,formData:E.PropTypes.shape({title:E.PropTypes.string.isRequired,description:E.PropTypes.string.isRequired,sections:E.PropTypes.array.isRequired,privacyNotice:E.PropTypes.object.isRequired,env:E.PropTypes.string.isRequired,allowAnonymousUploads:E.PropTypes.bool,validAgeBrackets:E.PropTypes.array.isRequired,ageBracketsMessage:E.PropTypes.string.isRequired}).isRequired},M.contextTypes={gotoStep:E.PropTypes.func.isRequired},M.defaultProps={idctaEnv:"test"}},function(e,t){e.exports=Morph.modules["bbc-morph-gel-icons@2.2.0"]},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UgcForm=void 0;var o=r(132),i=n(o),a=r(2),s=n(a),u=r(47),l=n(u),c=r(43),d=n(c),f=r(46),p=n(f),v=r(86),h=n(v),m=r(90),y=n(m),g=r(91),_=n(g),E=r(95),b=n(E),T=r(112),S=n(T),w=r(120),C=n(w),k=r(124),P=r(126),I=r(137),A=r(138),O=r(139),x=r(162),R=r(133),N=r(163),M=t.UgcForm=function(e){function t(e){(0,y.default)(this,t);var r=(0,b.default)(this,(t.__proto__||(0,h.default)(t)).call(this,e));return r.state={fieldValues:{},indexOfFirstFieldWithError:null,hasError:!1},r.resetForm(),r.onFieldUpdated=r.onFieldUpdated.bind(r),r.addFieldRef=r.addFieldRef.bind(r),r.hasSubmissionBeenAttempted=r.hasSubmissionBeenAttempted.bind(r),r.submit=r.submit.bind(r),r.onScrolled=r.onScrolled.bind(r),r}return(0,S.default)(t,e),(0,_.default)(t,[{key:"resetForm",value:function(){this.submissionAttempted=!1,this.fieldRefs=[],this.fieldsInView={},this.submitButtonShown=!1}},{key:"submit",value:function(){function e(e){return t.apply(this,arguments)}var t=(0,p.default)(d.default.mark(function e(t){var r;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),this.submissionAttempted=!0,this.setState({hasError:!1}),e.next=5,this.isAllFieldsOk();case 5:r=e.sent,k.istatsService.logClickEvent(P.ISTATS_ACTIONS.UploaderSubmitForm,{uploader_error:!r}),r?this.submitFormAndGotoProgress():this.showFieldError();case 8:case"end":return e.stop()}},e,this)}));return e}()},{key:"submitFormAndGotoProgress",value:function(){var e=this.props,t=e.campaignUid,r=e.env,n=e.allowAnonymousUploads,o=this.state.fieldValues,i=(0,N.newUploadJob)({fieldValues:o,campaignUid:t,env:r});i.startJob(n),this.context.gotoStep({step:R.UPLOADING_PROGRESS_STEP,stepProps:{uploadJob:i}})}},{key:"showFieldError",value:function(){var e=this.getIndexOfFirstFieldWithError();this.setState({indexOfFirstFieldWithError:e,hasError:!0})}},{key:"isAllFieldsOk",value:function(){function e(){return t.apply(this,arguments)}var t=(0,p.default)(d.default.mark(function e(){var t;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.default.all(this.fieldRefs.filter(function(e){return Boolean(e)}).map(function(e){return e.validate()}));case 2:return t=e.sent,e.abrupt("return",t.every(function(e){return e===!0}));case 4:case"end":return e.stop()}},e,this)}));return e}()},{key:"getIndexOfFirstFieldWithError",value:function(){return this.fieldRefs.indexOf(this.fieldRefs.filter(function(e){return Boolean(e)&&e.hasErrors()})[0])}},{key:"onFieldUpdated",value:function(e,t){var r=(0,s.default)({},this.state.fieldValues,(0,i.default)({},e,t));this.setState({fieldValues:r})}},{key:"showSubmitButton",value:function(){if(!this.submitButtonShown){var e=this.props.sections,t=e[e.length-1];this.submitButtonShown=(0,x.showSectionCta)(t.fields,this.state.fieldValues)}return this.submitButtonShown}},{key:"getFieldsToRender",value:function(e,t){var r=t.id;return this.fieldsInView[r]||(this.fieldsInView[r]=(0,x.showField)(e,t,this.state.fieldValues)),this.fieldsInView[r]}},{key:"onScrolled",value:function(){this.setState({indexOfFirstFieldWithError:null})}},{key:"hasError",value:function(){return this.state.hasError}},{key:"addFieldRef",value:function(e){this.fieldRefs.push(e)}},{key:"hasSubmissionBeenAttempted",value:function(){return this.submissionAttempted}},{key:"render",value:function(){var e=this,t=this.props.sections,r=this.onFieldUpdated,n=this.addFieldRef,o=this.hasSubmissionBeenAttempted;return C.default.createElement("form",{method:"post",className:"ugc-upload-form",action:"#",onSubmit:this.submit},this.hasError()&&C.default.createElement("p",{role:"alert",className:"ugc-form-errors-msg ugc-hidden"},"Sorry, there was a problem. Please review the errors and try again."),t.map(function(t,i){return C.default.createElement(I.UgcFormSection,{key:i},t.fields.filter(function(r){return e.getFieldsToRender(t.fields,r)}).map(function(t,i){return(0,O.renderField)({fieldData:t,index:i,onFieldUpdated:r,hasSubmissionBeenAttempted:o,addFieldRef:n,scrollTo:i===e.state.indexOfFirstFieldWithError,onScrolled:e.onScrolled})}))}),this.showSubmitButton()&&C.default.createElement(A.UgcButton,{type:"submit",className:"ugc-button--submit",text:"Send your stuff"}))}}]),t}(w.Component);M.displayName="UgcForm",M.propTypes={campaignUid:w.PropTypes.string.isRequired,sections:w.PropTypes.array.isRequired,env:w.PropTypes.string.isRequired,allowAnonymousUploads:w.PropTypes.bool},M.contextTypes={gotoStep:w.PropTypes.func.isRequired}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UgcFormSection=void 0;var o=r(120),i=n(o),a=t.UgcFormSection=function(e){var t=e.children;return i.default.createElement("section",null,t)};a.displayName="UgcFormSection",a.propTypes={children:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.node),o.PropTypes.node])}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UgcButton=void 0;var o=r(120),i=n(o),a=r(121),s=n(a),u=t.UgcButton=function(e){var t=e.type,r=e.className,n=e.text,o=e.onClick;return i.default.createElement("div",{className:(0,s.default)("ugc-button",r)},i.default.createElement("input",{type:t,value:n,onClick:o}))};u.displayName="UgcButton",u.propTypes={type:o.PropTypes.oneOf(["button","submit"]),className:o.PropTypes.string,text:o.PropTypes.string,onClick:o.PropTypes.func},u.defaultProps={type:"button"}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.fieldData,r=e.index,n=e.onFieldUpdated,o=e.hasSubmissionBeenAttempted,i=e.addFieldRef,s=e.scrollTo,p=e.onScrolled,v=t.uiElement,h=t.type,m=t.label,y=t.id,g=t.validation,_={key:r,id:y,type:h,onFieldUpdated:n,validation:g,hasSubmissionBeenAttempted:o,ref:i,scrollTo:s,onScrolled:p};switch(v){case f.FIELD_ELEMENTS.textarea:return u.default.createElement(l.TextArea,(0,a.default)({},_,{label:m}));case f.FIELD_ELEMENTS.radio:return u.default.createElement(c.RadioButtons,(0,a.default)({},_,{options:g.options,value:m}));case f.FIELD_ELEMENTS.file:return u.default.createElement(d.FileChooser,_);default:return u.default.createElement("noscript",{key:r})}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),a=n(i);t.renderField=o;var s=r(120),u=n(s),l=r(140),c=r(148),d=r(149),f=r(161);o.propTypes={fieldData:s.PropTypes.shape({uiElement:s.PropTypes.string,type:s.PropTypes.string,label:s.PropTypes.string,id:s.PropTypes.string,validation:s.PropTypes.object}),index:s.PropTypes.string,onFieldUpdated:s.PropTypes.func,hasSubmissionBeenAttempted:s.PropTypes.func,addFieldRef:s.PropTypes.func,scrollTo:s.PropTypes.bool,onScrolled:s.PropTypes.func}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TextArea=void 0;var o=r(86),i=n(o),a=r(90),s=n(a),u=r(91),l=n(u),c=r(95),d=n(c),f=r(112),p=n(f),v=r(120),h=n(v),m=r(141),y=r(142),g=r(145),_=r(147),E=t.TextArea=function(e){function t(e){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.setRef=r.setRef.bind(r),r.onChange=r.onChange.bind(r),r.resetErrors=r.resetErrors.bind(r),r.state={value:e.defaultValue||"",errors:[]},r}return(0,p.default)(t,e),(0,l.default)(t,[{key:"onChange",value:function(e){var t=e.target.value;this.setState({value:t}),this.props.onFieldUpdated(this.props.id,t);var r=this.props,n=r.validation,o=r.type,i=(0,y.validateField)({type:o,validation:n,value:t});i.isValid&&this.resetErrors()}},{key:"getFieldValue",value:function(){return this.state.value}},{key:"hasErrors",value:function(){return this.state.errors.length>0}},{key:"resetErrors",value:function(){this.setState({errors:[]})}},{key:"validate",value:function(){var e=this.props,t=e.validation,r=e.type,n=this.state.value,o=(0,y.validateField)({type:r,validation:t,value:n});if(o.isValid)return!0;var i=(0,y.getFieldErrors)({type:r,validation:t,errors:o.errors});return this.setState({errors:i}),!1}},{key:"scrollToTop",value:function(){(0,g.scrollToTopOfElement)(this.domElement),this.props.onScrolled()}},{key:"componentDidUpdate",value:function(e){this.props.scrollTo!==e.scrollTo&&this.props.scrollTo&&this.scrollToTop()}},{key:"setRef",value:function(e){this.domElement=e}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.label,n=e.placeholderText,o=e.defaultValue,i=e.validation,a=this.state.errors,s=i.mandatory;return h.default.createElement("div",{ref:this.setRef,className:"field__container field__container--textarea"},h.default.createElement("div",{className:"field__input-container"},h.default.createElement("label",{className:"field__label",htmlFor:t},r),h.default.createElement("textarea",{className:"field__input field__input--textarea",placeholder:n,rows:"4",name:t,id:t,defaultValue:o,onChange:this.onChange}),!s&&h.default.createElement("div",{className:"field__note"},"Optional")),this.hasErrors()&&a.map(function(e,t){return h.default.createElement(m.UgcFormErrorMessage,{key:t,errorDetails:e})}))}}]),t}(v.Component);E.displayName="TextArea",E.propTypes={id:v.PropTypes.string.isRequired,type:v.PropTypes.string.isRequired,label:v.PropTypes.string,placeholderText:v.PropTypes.string,defaultValue:v.PropTypes.string,onFieldUpdated:v.PropTypes.func,validation:v.PropTypes.object,scrollTo:v.PropTypes.bool,onScrolled:v.PropTypes.func},E.defaultProps={label:"Tell us about what you're sending",placeholderText:"Type here...",validation:{mandatory:!1},scrollTo:!1,onScrolled:_.noop}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UgcFormErrorMessage=void 0;var o=r(120),i=n(o),a=r(121),s=n(a),u=t.UgcFormErrorMessage=function(e){var t=e.errorDetails,r=e.pointerAlign,n=e.className,o=e.ariaHidden;return i.default.createElement("div",{"aria-hidden":o,className:(0,s.default)(n,"ugc-form__error-message ugc-form__error-message--pointer-"+r)},i.default.createElement("h1",null,t.title),i.default.createElement("p",null,t.description))};u.displayName="UgcFormErrorMessage",u.propTypes={errorDetails:o.PropTypes.shape({title:o.PropTypes.string.isRequired,description:o.PropTypes.string.isRequired}).isRequired,pointerAlign:o.PropTypes.oneOf(["center","left","right","none"]),className:o.PropTypes.string,ariaHidden:o.PropTypes.bool},u.defaultProps={pointerAlign:"left"}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.INTERNAL_SERVER_ERROR=t.IDCTA_ERROR=t.USER_INVALID_AGE_BRACKET_O18=t.USER_INVALID_AGE_BRACKET_U18=t.USER_INVALID_AGE_BRACKET_U16=t.USER_INVALID_AGE_BRACKET_U13=t.USER_NOT_SIGNED_IN=t.MIN_NUMBER_FILES_NOT_MET=t.CAMPAIGN_NOT_FOUND=t.CAMPAIGN_CLOSED=t.IDCTA_AGE_BRACKETS=t.checkForUploadPermission=t.checkSignedInUserAgeBracket=t.getSignedInUserMarkup=t.checkUserIsSignedIn=t.isNonRecoverableError=t.getFileChooserErrors=t.getFieldErrors=t.validateField=t.submitForm=void 0;var o=r(2),i=n(o),a=r(128),s=n(a),u=r(143),l=r(144),c=r(124),d=r(126),f=!0,p=function(e,t){return{type:e,validation:t}},v=function(e){return Array.isArray(e)&&e[0]instanceof File},h=function(e){var t=e.type,r=e.validation,n=e.errorCode,o=e.value,i=p(t,r),a=(0,u.formatErrorMessage)(n,i,o,f);return"string"==typeof a?{title:"",description:a}:{title:a.title,description:a.description}},m=function(e){var t=e.type,r=e.files,n=e.errorCode,o=e.validation;return r.reduce(function(e,r){if(isNaN(r.id))throw new Error("File "+r.name+" does not have an numeric id");return e[r.id]=h({type:t,validation:o,errorCode:n,value:r}),e},{})},y=(t.submitForm=function(e){var t=e.fieldValues,r=e.campaignUid,n=e.env,o=e.isSignInMandatory,i=e.onProgress,a="acc"===n?"https://web.archive.org/web/20190207191953/http://localhost:3000/wiremock/session/"+Morph.contextId+"/ugc/send":null,s=y(t);return(0,u.submit)(s,r,n,a,i,o)},function(e){return(0,s.default)(e).reduce(function(t,r){var n=e[r],o=Array.isArray(n)?n:[n];return o.forEach(function(e){return t.append(r,e)}),t},new FormData)});t.validateField=function(e){var t=e.type,r=e.validation,n=e.value,o=p(t,r),i=(0,u.validate)(o,n);if(i.isValid===!1){var a=(0,s.default)(i.errors).join(",");c.istatsService.logEvent(a,d.ISTATS_ACTIONS.UploaderValidation)}return i},t.getFieldErrors=function(e){var t=e.type,r=e.validation,n=e.errors;return(0,s.default)(n).map(function(e){var o=n[e];return h({type:t,validation:r,errorCode:e,value:o})})},t.getFileChooserErrors=function(e){var t=e.type,r=e.errors,n=e.validation,o=e.shouldIncludeError,a=(0,s.default)(r).filter(function(e){return o(e)}).reduce(function(e,o){var a=r[o];return v(a)?e.errorsPerFile=(0,i.default)({},e.errorsPerFile,m({type:t,files:a,errorCode:o,validation:n})):e.fileListError=h({type:t,validation:n,errorCode:o,value:a}),e},{fileListError:null,errorsPerFile:{}}),u=a.fileListError,l=a.errorsPerFile;return{fileListError:u,errorsPerFile:l}},t.isNonRecoverableError=function(e){var t=[l.CAMPAIGN_CLOSED,l.CAMPAIGN_NOT_FOUND];return t.indexOf(e)>=0};t.checkUserIsSignedIn=u.checkUserIsSignedIn,t.getSignedInUserMarkup=u.getSignedInUserMarkup,t.checkSignedInUserAgeBracket=u.checkSignedInUserAgeBracket,t.checkForUploadPermission=u.checkForUploadPermission,t.IDCTA_AGE_BRACKETS=u.IDCTA_AGE_BRACKETS,t.CAMPAIGN_CLOSED=l.CAMPAIGN_CLOSED,t.CAMPAIGN_NOT_FOUND=l.CAMPAIGN_NOT_FOUND,t.MIN_NUMBER_FILES_NOT_MET=l.MIN_NUMBER_FILES_NOT_MET,t.USER_NOT_SIGNED_IN=l.USER_NOT_SIGNED_IN,t.USER_INVALID_AGE_BRACKET_U13=l.USER_INVALID_AGE_BRACKET_U13,t.USER_INVALID_AGE_BRACKET_U16=l.USER_INVALID_AGE_BRACKET_U16,t.USER_INVALID_AGE_BRACKET_U18=l.USER_INVALID_AGE_BRACKET_U18,t.USER_INVALID_AGE_BRACKET_O18=l.USER_INVALID_AGE_BRACKET_O18,t.IDCTA_ERROR=l.IDCTA_ERROR,t.INTERNAL_SERVER_ERROR=l.INTERNAL_SERVER_ERROR},function(module,exports,__webpack_require__){ !function(e,t){module.exports=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=14)}([function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.requester=t.err=t.loader=t.type=t.errorResponse=t.LAMBDA_ENDPOINTS=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=r(1),s=function(){function e(){n(this,e)}return i(e,[{key:"isDOMElement",value:function(e){return!!("object"===("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":o(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)}},{key:"isFunction",value:function(e){return e instanceof Function}},{key:"isObject",value:function(e){return!(!e||"object"!==(void 0===e?"undefined":o(e))||Array.isArray(e))}},{key:"isString",value:function(e){return"string"==typeof e}},{key:"isBoolean",value:function(e){return"boolean"==typeof e}}]),e}(),u=function(){function e(){n(this,e)}return i(e,[{key:"showLoader",value:function(e){for(var t=0;t<e.children.length;t++){var r=e.children[t].tagName;"INPUT"!==r&&"TEXTAREA"!==r&&"BUTTON"!==r||e.children[t].setAttribute("disabled","disabled")}var n=document.createElement("div");n.innerHTML='\n <span class="gel-icon gel-icon--loading" >\n <svg width="32" height="32" viewBox="0 0 32 32">\n <path d="M29.8 8l-3.5 2c1 1.8 1.6 3.8 1.6 6 0 6.6-5.4 12-12 12S4 22.6 4 16 9.4 4 16 4V0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16c0-2.9-.8-5.6-2.2-8z"></path>\n </svg>\n </span >',e.appendChild(n.children[0]),e.style.opacity=.5}},{key:"hideLoader",value:function(e){for(var t=0;t<e.children.length;t++){var r=e.children[t].tagName;"INPUT"!==r&&"TEXTAREA"!==r&&"BUTTON"!==r||e.children[t].removeAttribute("disabled")}var n=document.querySelector(".gel-icon--loading");n&&n.parentElement.removeChild(n),e.style.opacity=1}}]),e}(),l=function(e){throw Error(e)},c=function(){function e(){n(this,e)}return i(e,[{key:"get",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new XMLHttpRequest;return o.withCredentials=n,o.open("GET",e),new Promise(function(n,i){o.send(),o.onreadystatechange=function(){r.onReadyStateChange(o,n,i,e,t)}})}},{key:"post",value:function(e,t,r,n){var o=this,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=new XMLHttpRequest;return a.withCredentials=i,r&&a.upload.addEventListener("progress",r),a.open("POST",e),new Promise(function(r,i){a.send(t),a.onreadystatechange=function(){o.onReadyStateChange.call(o,a,r,i,e,n)}})}},{key:"onReadyStateChange",value:function(e,t,r,n,o){if(e.readyState===XMLHttpRequest.DONE){if(e.status>=200&&e.status<300)t(JSON.parse(e.responseText));else if(e.status>=300&&e.status<400);else if(e.status>=400)try{r(JSON.parse(e.responseText))}catch(t){r(e.responseText)}else r(new Error("An error occurred: HTTP Status: "+e.status+" - "+e.responseText));o&&this.logResponse(e,n)}}},{key:"logResponse",value:function(e,t){var r=e.status>=200&&e.status<400?JSON.parse(e.responseText):d(JSON.parse(e.responseText));console[e.status>=200&&e.status<400?"log":"error"]("Received status "+e.status+" from "+t+"\nResponse body:",r)}}]),e}(),d=(t.LAMBDA_ENDPOINTS={int:"https://web.archive.org/web/20190207191953/https://www.int.bbc.co.uk/ugcsupport",test:"https://web.archive.org/web/20190207191953/https://www.test.bbc.co.uk/ugcsupport",live:"https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/ugcsupport"},t.errorResponse=function(e){switch(e.code){case"ERR_CAMPAIGN_CLOSED":return{message:e.message,code:a.CAMPAIGN_CLOSED};case"ERR_CAMPAIGN_NOT_FOUND":return{message:e.message,code:a.CAMPAIGN_NOT_FOUND};default:return{message:e.message||"Internal server error",code:a.INTERNAL_SERVER_ERROR}}}),f=new s,p=new u,v=new c;t.type=f,t.loader=p,t.err=l,t.requester=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REQUIRED="required",t.MAX_NUMBER_FILES_EXCEEDED="max-number-files-exceed",t.MIN_NUMBER_FILES_NOT_MET="min-number-files-not-met",t.MAX_SIZE_FILES_EXCEEDED="max-size-files-exceed",t.INCORRECT_MIME_TYPE="incorrect-mime-type",t.MIN_SIZE_FILES_NOT_MET="min-size-files-not-met",t.CAMPAIGN_INVALID="campaign-invalid",t.USER_NOT_SIGNED_IN="signed_out",t.USER_INVALID_AGE_BRACKET_U13="age-under_13",t.USER_INVALID_AGE_BRACKET_U16="age-under_16",t.USER_INVALID_AGE_BRACKET_U18="age-under_18",t.USER_INVALID_AGE_BRACKET_O18="age-over_18",t.IDCTA_ERROR="idcta-error",t.CAMPAIGN_CLOSED="campaign-closed",t.CAMPAIGN_NOT_FOUND="campaign-not-found",t.INTERNAL_SERVER_ERROR="internal-server-error"},function(e,t,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(20),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(o,i){try{var a=t[o](i),s=a.value}catch(e){return void r(e)}return a.done?void e(s):Promise.resolve(s).then(function(e){n("next",e)},function(e){n("throw",e)})}return n("next")})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){e?t.split(" ").forEach(function(t){if(e.addEventListener)e.addEventListener(t,r);else{if(!e.attachEvent)throw new Error("Unable to bind form submission handler.");e.attachEvent("on"+t,r)}}):console.warn("Cannot bind an event to "+e)}function a(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}function s(e){if(!e)return"0 Bytes";var t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],r=Math.floor(Math.log(e)/Math.log(1024)),n=parseFloat(e/Math.pow(1024,r)),o=Math.pow(10,2);return(n=Math.round(n*o)/o)+" "+t[r]}Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PREVIEW_TYPES=void 0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.bindEvent=i,t.formatBytes=s;var c=r(2),d=function(e){return e&&e.__esModule?e:{default:e}}(c),f=r(0),p=r(5),v=r(6),h=(t.SUPPORTED_PREVIEW_TYPES=["image/jpeg","image/png","image/gif"],function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,i=arguments[2],s=arguments[3];if(o(this,e),!t)throw new TypeError("No input was passed to UGCFileHandler constructor");if(!t instanceof HTMLInputElement||t.type&&"file"!==t.type)throw new TypeError("The element passed to UGCFileHandler constructor is not an input element of type file");if(this.validateInputParams(r),this.validator=i,this.fieldConfig=s,this.$input=t,this.params=r,this.files={},this.$container=this.$input.closest(".ugc-upload-file-handler")||this.$input.parentNode,this.$filesContainer=function(){var e=n.$input.closest(".field__input-container");return e?e.querySelector(".ugc-upload-files-container")||n.$input.parentNode:n.$input.parentNode}(),this.$label=this.$container.querySelector("label.button"),this.hasAdvancedUpload=a(),this.configureInput(),this.hasAdvancedUpload&&!this.params.disableDragAndDrop){var u=this.params.dropzoneSelector,l=void 0;l=u?f.type.isDOMElement(u)?u:document.querySelector(u):this.$container,l&&this.setupDragDrop(l)}}return l(e,[{key:"configureInput",value:function(){var e=this;this.fieldConfig&&this.fieldConfig.validation&&this.fieldConfig.validation.fileTypes&&this.fieldConfig.validation.fileTypes.length&&(this.$input.accept=this.fieldConfig.validation.fileTypes.join(",")),i(this.$input,"change",function(){e.$input.files&&e.addFiles(e.$input.files,!0)})}},{key:"setupDragDrop",value:function(e){var t=this;e.classList.add("ugc-upload-dropzone"),i(e,"drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}),i(e,"dragover dragenter",function(r){r.dataTransfer.dropEffect="copy",t.toggleDragover(e,!0)}),i(e,"dragleave dragend drop",function(){t.toggleDragover(e,!1)}),i(e,"drop",function(e){var r=e.dataTransfer.files;t.addFiles(r)})}},{key:"toggleDragover",value:function(e,t){e&&(t?(e.classList.add("ugc-upload-dropzone-dragover"),this.$label&&(this.$label.innerText=this.params.labelTextActive||"Drop your files")):(e.classList.remove("ugc-upload-dropzone-dragover"),this.$label&&(this.$label.innerText=this.params.labelTextInactive||"Choose your files")))}},{key:"addFiles",value:function(e,t){var r=this;return new Promise(function(){var o=n(d.default.mark(function n(o){var i,a,s,u,l,c;return d.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r.fieldConfig&&r.fieldConfig.id&&r.clearErrors(r.fieldConfig.id),t&&r.params.disableFileHandlerMarkup)for(i in r.files)r.removeFile(r.files[i]);a=0;case 3:if(!(a<e.length)){n.next=15;break}if(s=e[a],u=!0,l={isValid:!0},r.fieldConfig&&r.fieldConfig.validation&&r.fieldConfig.validation.max&&(l=(0,p.validateMaxFiles)(r.files,r.fieldConfig,!0),l.isValid?r.validator.handleError(r.fieldConfig,l.errorCode,"remove"):r.validator.handleError(r.fieldConfig,l.errorCode,"add")),r.fieldConfig&&r.fieldConfig.validation&&r.fieldConfig.validation.fileTypes&&(c=(0,p.validateFile)(s,r.fieldConfig,r.validator),u=c.validation.fileTypeValidation.isValid&&c.validation.minFileSizeValidation.isValid&&c.validation.maxFileSizeValidation.isValid),!u||!l.isValid){n.next=12;break}return n.next=12,r.addFile(s);case 12:a++,n.next=3;break;case 15:r.fieldConfig&&r.fieldConfig.validation&&r.fieldConfig.validation.min&&r.validateMinNumberOfFiles(),r.params.onFilesChanged&&r.params.onFilesChanged(r.getFilesArray()),o();case 18:case"end":return n.stop()}},n,r)}));return function(e){return o.apply(this,arguments)}}())}},{key:"validateMinNumberOfFiles",value:function(){var e=(0,p.validateMinFiles)(this.files,this.fieldConfig);return e.isValid?this.validator.handleError(this.fieldConfig,e.errorCode,"remove"):this.validator.handleError(this.fieldConfig,e.errorCode,"add"),e.isValid}},{key:"addFile",value:function(e){var t=this;return new Promise(function(){var r=n(d.default.mark(function r(n){var o,i,a;return d.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.name+"_"+e.size,t.files[o]){r.next=12;break}if(!t.params.disableFileHandlerMarkup){r.next=6;break}t.files[o]=e,r.next=11;break;case 6:return i=function(r){r.preventDefault(),t.removeFile(e)},r.next=9,(0,v.createFileItemElement)(e,t.params.showPreviews,i);case 9:a=r.sent,a&&(e.element=a,t.files[o]=e,t.$filesContainer.appendChild(a));case 11:t.params.onFileAdded&&t.params.onFileAdded(e);case 12:n();case 13:case"end":return r.stop()}},r,t)}));return function(e){return r.apply(this,arguments)}}())}},{key:"removeFile",value:function(e){var t=e.name+"_"+e.size;if(this.files[t]){var r=this.files[t].element;this.params.disableFileHandlerMarkup||r.parentNode.removeChild(r),delete this.files[t],this.params.onFilesChanged&&this.params.onFilesChanged(this.getFilesArray())}}},{key:"clearErrors",value:function(e){this.validator.clearErrors(e)}},{key:"getFilesArray",value:function(){var e=[];for(var t in this.files)e.push(this.files[t]);return e}},{key:"validateInputParams",value:function(e){if(void 0!==e.dropzoneSelector){if(!f.type.isDOMElement(e.dropzoneSelector)&&!f.type.isString(e.dropzoneSelector))throw new TypeError("'dropzoneSelector' key may either be passed in as a DOMElement or css selector string (supplied: "+u(e.dropzoneSelector)+")");if(f.type.isString(e.dropzoneSelector)&&!document.querySelector(e.dropzoneSelector))throw new Error("The chosen dropzoneSelector selector '"+e.dropzoneSelector+"' does not appear to be valid (could not match element)")}if(e.showPreviews&&!f.type.isBoolean(e.showPreviews))throw new TypeError("'showPreviews' is not a boolean (supplied: "+u(e.showPreviews)+")");if(void 0!==e.labelTextActive&&!f.type.isString(e.labelTextActive))throw new TypeError("'labelTextActive' is not a string (supplied: "+u(e.labelTextActive)+")");if(void 0!==e.labelTextInactive&&!f.type.isString(e.labelTextInactive))throw new TypeError("'labelTextInactive' is not a string (supplied: "+u(e.labelTextInactive)+")");if(void 0!==e.disableDragAndDrop&&!f.type.isBoolean(e.disableDragAndDrop))throw new TypeError("'disableDragAndDrop' is not a boolean (supplied: "+u(e.disableDragAndDrop)+")");if(void 0!==e.disableFileHandlerMarkup&&!f.type.isBoolean(e.disableFileHandlerMarkup))throw new TypeError("'disableFileHandlerMarkup' is not a boolean (supplied: "+u(e.disableFileHandlerMarkup)+")");if(e.disableFileHandlerMarkup&&!e.disableDragAndDrop&&!e.dropzoneSelector)throw new TypeError("'dropzoneSelector' should be provided if drag & drop is enabled but mark-up is disabled");if(void 0!==e.onFileAdded&&"function"!=typeof e.onFileAdded)throw new TypeError("'onFileAdded' callback is not a function");if(void 0!==e.onFilesChanged&&"function"!=typeof e.onFilesChanged)throw new TypeError("'onFilesChanged' callback is not a function")}}]),e}());t.default=h},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,r,n){var i=!0,a=void 0;switch(e.type){case"text":case"description":i=t.validateTextInput(e,r,n),a=o({},w.REQUIRED,e.validation.mandatory);break;case"constrained-list":i=t.validateConstrainedList(e,r,n),a=o({},w.REQUIRED,e.validation.mandatory);break;case"file":var s=t.validateFileInput(e,r,n);if(i=s.isValid,a={},!i){var u=s.filesValidationResult,l=s.filesQuantityValidationResult;a=t.parseFileInputValidationResult(e,u,l)}break;default:i=!0}return T({isValid:i},!i&&{errors:a})}function a(e,t,r){var n={};return t&&t.forEach(function(e){var t=e.file,r=e.validation;Object.keys(r).forEach(function(e){var o=r[e];o.isValid||(void 0===n[o.errorCode]?n[o.errorCode]=[t]:n[o.errorCode]=n[o.errorCode].concat([t]))})}),r&&Object.keys(r).forEach(function(e){var t=r[e];!1===t.isValid&&(n=T({},n,o({},t.errorCode,r.quantity)))}),n}function s(e,r,n){if(e&&e.validation&&e.validation.mandatory)if(n){if(t.isFieldEmpty(e.id,n))return n.handleError(e,w.REQUIRED,"add"),!1;n.handleError(e,w.REQUIRED,"remove")}else if(void 0!==r)return!t.isFieldEmpty(void 0,void 0,r);return!0}function u(e,t,r){if(e&&e.validation&&e.validation.mandatory){if(void 0!==t)return t.length>=1;if(r){var n=void 0;if("select"===e.htmlType){var o=r.form.querySelector("select#"+e.id);o&&(n=o.value)}else n=r.form.querySelectorAll('input[name="'+e.id+'"]:checked');if(void 0!==n){if(0===n.length)return r.handleError(e,w.REQUIRED,"add"),!1;n.length>=1&&r.handleError(e,w.REQUIRED,"remove")}}}return!0}function l(e,r,n){if(n){if(n.clearErrors(e.id),!n.isUsingDragAndDrop){if(!r){var o=n.form.querySelector("#"+e.id);r=o?o.files:void 0}return c(e,r,n)}return{isValid:!0}}if(void 0!==r)return t.validateFiles(e,r)}function c(e,r,n){var o=!0,i=[],a=void 0;if(r){for(var s=0;s<r.length;s++){var u=r[s],l=t.validateFile(u,e,n);i.push(l),l.validation.fileTypeValidation.isValid&&l.validation.minFileSizeValidation.isValid&&l.validation.maxFileSizeValidation.isValid||(o=!1)}a=h(r,e,!1,n),a.minFilesValidation.isValid&&a.maxFilesValidation.isValid||(o=!1)}return{isValid:o,filesValidationResult:i,filesQuantityValidationResult:a}}function d(e,r,n){var o=t.validateFileType(e,r);n&&(o.isValid?n.handleError(r,o.errorCode,"remove",e):n.handleError(r,o.errorCode,"add",e));var i=t.validateMinFileSize(e);n&&(i.isValid?n.handleError(r,i.errorCode,"remove",e):n.handleError(r,i.errorCode,"add",e));var a=t.validateMaxFileSize(e,R);return n&&(a.isValid?n.handleError(r,a.errorCode,"remove",e):n.handleError(r,a.errorCode,"add",e)),{file:e,validation:{fileTypeValidation:o,minFileSizeValidation:i,maxFileSizeValidation:a}}}function f(e,t){if(t.validation&&t.validation.fileTypes&&t.validation.fileTypes.length){var r=e.type&&e.type.match(/^text/)?e.type&&e.type.split("/")[0]:e.type,n="video/x-ms-wma"===e.type?"audio/x-ms-wma":r;return{isValid:t.validation.fileTypes.indexOf(n)>-1,errorCode:w.INCORRECT_MIME_TYPE,validation:"fileTypes"}}return{isValid:!0,errorCode:w.INCORRECT_MIME_TYPE}}function p(e){return e?{isValid:e.size>x,errorCode:w.MIN_SIZE_FILES_NOT_MET,validation:"minSize"}:{isValid:!0,errorCode:w.MIN_SIZE_FILES_NOT_MET}}function v(e,t){return e?{isValid:e.size<=t,errorCode:w.MAX_SIZE_FILES_EXCEEDED,validation:"maxSize"}:{isValid:!0,errorCode:w.MAX_SIZE_FILES_EXCEEDED}}function h(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments[3],i=t.validateMaxFiles(e,r,n);o&&(i.isValid?o.handleError(r,i.errorCode,"remove"):o.handleError(r,i.errorCode,"add"));var a=t.validateMinFiles(e,r,n);return o&&(a.isValid?o.handleError(r,a.errorCode,"remove"):o.handleError(r,a.errorCode,"add")),{quantity:e.length,minFilesValidation:a,maxFilesValidation:i}}function m(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=((t||{}).validation||{}).max;return n?{isValid:r?Object.keys(e).length<n:Object.keys(e).length<=n,errorCode:w.MAX_NUMBER_FILES_EXCEEDED,validation:"max"}:{isValid:!0,errorCode:w.MAX_NUMBER_FILES_EXCEEDED}}function y(e,t){var r=((t||{}).validation||{}).min;return r?{isValid:Object.keys(e).length>=r,errorCode:w.MIN_NUMBER_FILES_NOT_MET,validation:"min"}:{isValid:!0,errorCode:w.MIN_NUMBER_FILES_NOT_MET}}function g(e,t,r){if(t){if(!e)throw"No fieldId was provided";var n=t.form.querySelector("#"+e),o=void 0;if(n)return null===(o=n.value)||!/\S/.test(o);throw"Cannot find field with id: "+e}return null===r||!/\S/.test(r)}function _(e,t,r,n){var o="Invalid field",i=n?O:A;if(i[e])switch(e){case w.MAX_NUMBER_FILES_EXCEEDED:t&&t.validation&&t.validation.max&&(o=i[e].replace(/\${maxFiles}/,t.validation.max));break;case w.MIN_NUMBER_FILES_NOT_MET:t&&t.validation&&t.validation.min&&(o=i[e].replace(/\${minFiles}/,t.validation.min));break;case w.MAX_SIZE_FILES_EXCEEDED:R&&r&&r.name&&(o=i[e].replace(/\${maxFileSize}/,(0,C.formatBytes)(R)).replace(/\${fileName}/,r.name));break;case w.MIN_SIZE_FILES_NOT_MET:x&&r&&r.name&&(o=i[e].replace(/\${minFileSize}/,(0,C.formatBytes)(x)).replace(/\${fileName}/,r.name));break;case w.INCORRECT_MIME_TYPE:if(r&&r.name&&t&&t.validation&&t.validation.fileTypes){var a=void 0;a=n?t.validation.fileTypes.map(function(e){return e.split("/")[1]||e}).map(function(e){return e.toUpperCase()}).join(", "):t.validation.fileTypes.join(" or "),o=i[e].replace(/\${fileName}/,r.name).replace(/\${fileTypes}/,a)}break;default:o=i[e]}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_FILE_SIZE=t.MIN_FILE_SIZE=t.CHILD_FRIENDLY_ERROR_MESSAGES=t.DEFAULT_ERROR_MESSAGES=void 0;var E,b,T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},S=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.validateField=i,t.parseFileInputValidationResult=a,t.validateTextInput=s,t.validateConstrainedList=u,t.validateFileInput=l,t.validateFiles=c,t.validateFile=d,t.validateFileType=f,t.validateMinFileSize=p,t.validateMaxFileSize=v,t.validateFilesQuantity=h,t.validateMaxFiles=m,t.validateMinFiles=y,t.isFieldEmpty=g,t.resolveErrorMsg=_;var w=r(1),C=r(4),k=r(7),P=r(6),I=["text","description"],A=t.DEFAULT_ERROR_MESSAGES=(E={},o(E,w.REQUIRED,"This field is required"),o(E,w.MAX_NUMBER_FILES_EXCEEDED,"Too many files have been added, the maximum is ${maxFiles}"),o(E,w.MIN_NUMBER_FILES_NOT_MET,"Not enough files have been added, the minimum is ${minFiles}"),o(E,w.MAX_SIZE_FILES_EXCEEDED,"The file '${fileName}' is too large, it should be ${maxFileSize} or less"),o(E,w.INCORRECT_MIME_TYPE,"The format of file '${fileName}' is incorrect, please upload a ${fileTypes} file"),o(E,w.MIN_SIZE_FILES_NOT_MET,"The file '${fileName}' is too small, it should be ${minFileSize} or more"),o(E,w.CAMPAIGN_INVALID,"The campaign you're looking for is not available"),E),O=t.CHILD_FRIENDLY_ERROR_MESSAGES=(b={},o(b,w.REQUIRED,"Please tell us something about what you’re sending."),o(b,w.MAX_NUMBER_FILES_EXCEEDED,"You can only send ${maxFiles} file(s). Please remove some files."),o(b,w.MIN_NUMBER_FILES_NOT_MET,"Please choose at least ${minFiles} file(s) to send."),o(b,w.MAX_SIZE_FILES_EXCEEDED,"Sorry, this file is too big. You can only send files under ${maxFileSize}."),o(b,w.INCORRECT_MIME_TYPE,"Sorry, you can only send us these types of file: ${fileTypes}."),o(b,w.MIN_SIZE_FILES_NOT_MET,"Sorry, this file seems broken. Pick another one."),o(b,w.CAMPAIGN_INVALID,"The campaign you're looking for is not available"),b),x=t.MIN_FILE_SIZE=1,R=t.MAX_FILE_SIZE=215e7,N=function(){function e(t,r,o,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(n(this,e),this.form=r,this.onValidationError=o,this.isFormValid=!0,this.isUsingDragAndDrop=a,this.store=i,this.formConfig=t,t&&t.sections&&t.sections.length)for(var s=0;s<t.sections.length;s++)for(var u=0;u<t.sections[s].fields.length;u++)this.attachValidation(t.sections[s].fields[u]);return!0}return S(e,[{key:"renderErrorMessage",value:function(e,t){var r=(0,P.createErrorElement)(t),n=this.form.querySelector("#"+e);n&&n.closest(".field").classList.add("field--invalid"),n.closest(".field").appendChild(r)}},{key:"clearErrorMessages",value:function(){for(var e=this.form.querySelectorAll(".field__error"),t=e.length,r=0;r<t;r++){var n=e[r];n.closest(".field").classList.remove("field--invalid"),n&&n.parentNode.removeChild(n)}}},{key:"renderErrorMessages",value:function(e){this.clearErrorMessages();for(var t in e)for(var r in e[t])if(e[t][r].errorMessage)this.renderErrorMessage(t,e[t][r].errorMessage);else for(var n in e[t][r])this.renderErrorMessage(t,e[t][r][n].errorMessage)}},{key:"handleError",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"add",n=arguments[3],o=n?n.name:void 0,i=this.isExistingError(this.store.getState().errors,e.id,t,o),a=_(t,e,n);if("add"!==r||i?"remove"===r&&i&&(this.store.dispatch((0,k.removeError)(e.id,t,o)),this.onValidationError&&this.onValidationError({errorCode:t,pointer:e.id,errorMessage:a,type:r})):(this.store.dispatch((0,k.addError)(e.id,t,a,o)),this.onValidationError&&this.onValidationError({errorCode:t,pointer:e.id,errorMessage:a,type:r})),!this.onValidationError){var s=this.store.getState().errors;this.renderErrorMessages(s)}}},{key:"clearErrors",value:function(e){this.store.dispatch((0,k.removeAllFieldErrors)(e))}},{key:"isExistingError",value:function(e,t,r,n){if(n){if(e&&e[t]&&e[t][r]&&e[t][r][n])return!0}else if(e&&e[t]&&e[t][r])return!0;return!1}},{key:"validateAllFields",value:function(){var e=this.formConfig,r=!0;if(e&&e.sections&&e.sections.length)for(var n=0;n<e.sections.length;n++)for(var o=0;o<e.sections[n].fields.length;o++){var i=t.validateField(e.sections[n].fields[o],void 0,this);!i.isValid&&r&&(r=!1)}return r}},{key:"attachValidation",value:function(e){this.isUsingDragAndDrop||"file"===e.type&&this.attachFileInputFieldValidation(e),-1!==I.indexOf(e.type)&&this.attachTextFieldValidation(e),"constrained-list"===e.type&&this.attachContrainedListValidation(e)}},{key:"attachContrainedListValidation",value:function(e){var t=this,r=void 0;r="select"===e.htmlType?this.form.querySelectorAll("select#"+e.id):this.form.querySelectorAll('input[name="'+e.id+'"]');for(var n=0;n<r.length;n++){var o=r[n];(0,C.bindEvent)(o,"change",function(){u(e,void 0,t)})}}},{key:"attachFileInputFieldValidation",value:function(e){var t=this;if(e&&e.id){var r=this.form.querySelector("#"+e.id);(0,C.bindEvent)(r,"change",function(){t.validateFileInput(r.files,e)})}}},{key:"attachTextFieldValidation",value:function(e){var t=this;if(e&&e.validation){var r=this.form.querySelector("#"+e.id);(0,C.bindEvent)(r,"blur",function(){s(e,void 0,t)})}}}]),e}();t.default=N},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(o,i){try{var a=t[o](i),s=a.value}catch(e){return void r(e)}return a.done?void e(s):Promise.resolve(s).then(function(e){n("next",e)},function(e){n("throw",e)})}return n("next")})}}function o(e,r){if(e&&e.sections&&e.sections.length){var n=document.createElement("form");if(n.noValidate=!0,n.classList.add("ugc-js-library_form"),e.campaignText&&e.campaignText.default&&e.campaignText.default.title){var o=document.createElement("h1");o.textContent=e.campaignText.default.title,n.appendChild(o)}t.renderFields(n,e.sections);var i=t.createSubmitButtonRow(e.campaignText&&e.campaignText.default&&e.campaignText.default.submitButton);return n.appendChild(i),r.appendChild(n),n}}function i(e,r){r.forEach(function(r){r&&r.fields&&r.fields.length&&r.fields.forEach(function(r){switch(r.type){case"text":var n=t.createTextField(r);e.appendChild(n);break;case"constrained-list":var o=t.createConstrainedListField(r);e.appendChild(o);break;case"file":var i=t.createFileUploadField(r);e.appendChild(i)}})})}function a(e){var r=t.createFormRow(),n=void 0;e.textArea?n=document.createElement("textarea"):(n=document.createElement("input"),n.type=e.htmlType||"text"),n.className="field__input",n.name=e.id,n.id=e.id;var o=document.createElement("div");o.className="field__input-container";var i=f(e.label,e.validation&&e.validation.mandatory,void 0,n,e.id),a=document.createElement("div");return a.className="field__decoration",o.appendChild(n),o.appendChild(i),o.appendChild(a),r.appendChild(o),r}function s(e){var r=t.createFormRow(),n=document.createElement("div");n.className="field__input-container light";var o=document.createElement("div");switch(o.className="field__decoration",r.appendChild(n),e.htmlType){case"checkbox":r.id=e.id;var i=f(e.label,e.validation&&e.validation.mandatory,"field__standard-label"),a=document.createElement("div");a.className="field__checkbox-container",n.appendChild(i),n.appendChild(a),n.appendChild(o),e.validation.options.forEach(function(t){var r=document.createElement("input");r.type="checkbox",r.className="checkbox__input",r.name=e.id,r.value=t.value;var n=document.createElement("label"),o=document.createElement("span");o.textContent=t.label,n.appendChild(r),n.appendChild(o),a.appendChild(n)});break;case"radiobutton":r.id=e.id;var s=f(e.label,e.validation&&e.validation.mandatory,"field__standard-label"),u=document.createElement("div");u.className="field__radiobuttons-container buttons buttons--radio",n.appendChild(s),n.appendChild(u),n.appendChild(o),e.validation.options.forEach(function(t){var r=document.createElement("div");r.className="button button--radio";var n=document.createElement("label");n.className="button__radio-label";var o=document.createElement("input");o.type="radio",o.className="button__input",o.name=e.id,o.value=t.value;var i=document.createElement("div");i.className="button__text-wrapper";var a=document.createElement("div");a.className="button__text",a.textContent=t.label,i.appendChild(a),n.appendChild(o),n.appendChild(i),r.appendChild(n),u.appendChild(r)});break;case"select":var l=document.createElement("select");l.className="field__input field__input--dropdown",l.name=e.id,l.id=e.id;var c=f(e.label,e.validation&&e.validation.mandatory,void 0,l,e.id);e.validation.options.forEach(function(e){var t=document.createElement("option");t.value=e.value,t.textContent=e.label,l.appendChild(t)}),n.appendChild(l),n.appendChild(c),n.appendChild(o)}return r}function u(e){var r=t.createFormRow(),n=void 0;n=document.createElement("input"),n.type="file",n.name=e.name,n.id=e.id,n.className="ugc-upload-input";var o=document.createElement("div");o.className="field__input-container";var i=f("File Upload",e.validation&&e.validation.mandatory,"field__standard-label"),a=document.createElement("div");a.className="ugc-upload-file-handler";var s=document.createElement("label");s.className="button",s.htmlFor=e.id,s.textContent="Choose your files";var u=document.createElement("ul");return u.className="ugc-upload-files-container",a.appendChild(n),a.appendChild(s),o.appendChild(i),o.appendChild(a),o.appendChild(u),r.appendChild(o),r}function l(e){var t=d(),r=document.createElement("input");return r.classList.add("button"),r.type="submit",e&&(r.value=e),t.appendChild(r),t}function c(){var e=document.createElement("span");return e.className="field__required-asterisc",e.textContent="*",e}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=document.createElement(e);return t.className="field",t}function f(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"field__label",o=arguments[3],i=arguments[4],a=document.createElement("label");if(a.className=n,i&&(a.htmlFor=i),r){o&&(o.required=!0);var s=t.createRequiredAsterisc();a.appendChild(s)}var u=document.createTextNode(e);return a.appendChild(u),a}function p(e,t,r){var o=this;return new Promise(function(){var i=n(y.default.mark(function n(i){var a,s;return y.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(a=function(t){t&&t.classList&&t.classList.add("ugc-upload-file-item-img");var n=document.createElement("li");n.classList.add("ugc-upload-file-item");var o=document.createElement("div");o.classList.add("ugc-upload-file-item-name"),o.innerText=e.name;var a=document.createElement("button");a.classList.add("ugc-upload-file-item-btn"),a.innerText="✕",r&&(0,g.bindEvent)(a,"click",r),t&&n.appendChild(t),n.appendChild(o),n.appendChild(a),i(n)},!(t&&g.SUPPORTED_PREVIEW_TYPES.indexOf(e.type)>-1)){n.next=14;break}return n.prev=2,n.next=5,v(e);case 5:s=n.sent,a(s),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),console.log(n.t0);case 12:n.next=15;break;case 14:a();case 15:case"end":return n.stop()}},n,o,[[2,9]])}));return function(e){return i.apply(this,arguments)}}())}function v(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(e){var r=new Image;r.src=e.target.result,t(r)},n.onerror=function(e){return r(e)},n.readAsDataURL(e)})}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=document.createElement("div");r.className="field__error form-message form-message--error";var n=document.createElement("p");n.classList.add("form-message__title"),n.textContent=e;var o=document.createElement("p");return o.classList.add("form-message__text"),o.textContent=t,r.appendChild(n),r.appendChild(o),r}Object.defineProperty(t,"__esModule",{value:!0}),t.renderForm=o,t.renderFields=i, t.createTextField=a,t.createConstrainedListField=s,t.createFileUploadField=u,t.createSubmitButtonRow=l,t.createRequiredAsterisc=c,t.createFormRow=d,t.createFileItemElement=p,t.getImageFromFile=v,t.createErrorElement=h;var m=r(2),y=function(e){return e&&e.__esModule?e:{default:e}}(m),g=r(4)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=t.ADD_ERROR="ADD_ERROR",o=t.REMOVE_ERROR="REMOVE_ERROR",i=t.REMOVE_ALL_FIELD_ERRORS="REMOVE_ALL_FIELD_ERRORS";t.addError=function(e,t,r,o){return{type:n,fieldId:e,errorCode:t,errorMessage:r,fileName:o}},t.removeError=function(e,t,r){return{type:o,fieldId:e,errorCode:t,fileName:r}},t.removeAllFieldErrors=function(e){return{type:i,fieldId:e}}},function(e,t,r){"use strict";function n(e,t,r){function s(){y===m&&(y=m.slice())}function u(){return h}function l(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return s(),y.push(e),function(){if(t){t=!1,s();var r=y.indexOf(e);y.splice(r,1)}}}function c(e){if(!Object(o.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,h=v(h,e)}finally{g=!1}for(var t=m=y,r=0;r<t.length;r++)(0,t[r])();return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");v=e,c({type:a.INIT})}function f(){var e,t=l;return e={subscribe:function(e){function r(){e.next&&e.next(u())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return r(),{unsubscribe:t(r)}}},e[i.a]=function(){return this},e}var p;if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(n)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var v=e,h=t,m=[],y=m,g=!1;return c({type:a.INIT}),p={dispatch:c,subscribe:l,getState:u,replaceReducer:d},p[i.a]=f,p}r.d(t,"a",function(){return a}),t.b=n;var o=r(9),i=r(30),a={INIT:"@@redux/INIT"}},function(e,t,r){"use strict";function n(e){if(!Object(a.a)(e)||Object(o.a)(e)!=s)return!1;var t=Object(i.a)(e);if(null===t)return!0;var r=d.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==f}var o=r(22),i=r(27),a=r(29),s="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,f=c.call(Object);t.a=n},function(e,t,r){"use strict";var n=r(23),o=n.a.Symbol;t.a=o},function(e,t,r){},function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}t.a=n},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _asyncToGenerator(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(o,i){try{var a=t[o](i),s=a.value}catch(e){return void r(e)}return a.done?void e(s):Promise.resolve(s).then(function(e){n("next",e)},function(e){n("throw",e)})}return n("next")})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.handleIdctaInitEndpointForDev=exports.loadIdctaForDev=exports.checkForUploadPermission=exports.checkUserAge=exports.getSignedInUserMarkup=exports.checkUserSignedIn=exports.getIdctaInfo=exports.refreshUserToken=exports.loadExposedIdctaJS=exports.IDCTA_AGE_BRACKETS=void 0;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_regeneratorRuntime=__webpack_require__(2),_regeneratorRuntime2=_interopRequireDefault(_regeneratorRuntime),_utils=__webpack_require__(0),_errorCodes=__webpack_require__(1),_urlUtils=__webpack_require__(38),IDCTA_POLICY="content-upload",IDCTA_PURPOSE="upload",IDCTA_AGE_BRACKETS=exports.IDCTA_AGE_BRACKETS={under13:"u13",under16:"u16",under18:"u18",over18:"o18"},loadExposedIdctaJS=exports.loadExposedIdctaJS=function(){return new Promise(function(e,t){requirejs(["idcta-v2/idcta-1"],e,t)})},refreshUserToken=exports.refreshUserToken=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,_utils.err)("the idcta exposed js object must be provided"),t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.initiateTokenRefresh(t)},getIdctaInfo=exports.getIdctaInfo=function(){var e=_asyncToGenerator(_regeneratorRuntime2.default.mark(function e(t){var r,n,o,i=t.env,a=t.policy,s=t.purpose,u=t.context,l=t.isSignedIn,c=t.customEndpoint;return _regeneratorRuntime2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=l?"authorised":"false",n={policy:a,purpose:s,renderMode:r,ptrt:document.location.href,context:u},o=c||(0,_urlUtils.getIdctaInitUrl)(i,n),e.next=5,_utils.requester.get(o,!1,!0);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}(),getErrorDetails=function(e){if(e){var t=Object.keys(e)[0];return{errorCode:"policy-"+t,errorDetails:e[t]}}return null},checkUserSignedIn=exports.checkUserSignedIn=function(e,t){var r=t.env,n=void 0===r?"live":r,o=t.context,i=t.purpose,a=void 0===i?IDCTA_PURPOSE:i,s=t.customEndpoint;return new Promise(function(){var t=_asyncToGenerator(_regeneratorRuntime2.default.mark(function t(r,i){var u,l;return _regeneratorRuntime2.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,u=e.hasCookie()){t.next=7;break}return t.next=5,exports.getIdctaInfo({env:n,context:o,purpose:a,isSignedIn:u,customEndpoint:s});case 5:l=t.sent,i({idHtml:l.html,errorCode:_errorCodes.USER_NOT_SIGNED_IN});case 7:r(!0),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),i({errorCode:_errorCodes.IDCTA_ERROR,errorDetails:t.t0});case 13:case"end":return t.stop()}},t,void 0,[[0,10]])}));return function(e,r){return t.apply(this,arguments)}}())},getSignedInUserMarkup=exports.getSignedInUserMarkup=function(e){var t=e.env,r=void 0===t?"live":t,n=e.customEndpoint;return new Promise(function(){var e=_asyncToGenerator(_regeneratorRuntime2.default.mark(function e(t,o){var i;return _regeneratorRuntime2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,exports.getIdctaInfo({env:r,isSignedIn:!0,customEndpoint:n});case 3:i=e.sent,t({idHtml:i.html}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),o({errorCode:_errorCodes.IDCTA_ERROR,errorDetails:e.t0});case 10:case"end":return e.stop()}},e,void 0,[[0,7]])}));return function(t,r){return e.apply(this,arguments)}}())},checkUserAge=exports.checkUserAge=function(e,t){var r=t.validAgeBrackets,n=void 0===r?[]:r;return new Promise(function(){var t=_asyncToGenerator(_regeneratorRuntime2.default.mark(function t(r,o){var i,a,s;return _regeneratorRuntime2.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,refreshUserToken(e);case 3:t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(0),o({errorCode:_errorCodes.IDCTA_ERROR,errorDetails:t.t0}),t.abrupt("return");case 9:if(i=e.getUserDetailsFromCookie(),a=i.ab,!(s=n.indexOf(a)>=0)){t.next=15;break}r(!0),t.next=18;break;case 15:t.t1=o,t.t2={get errorCode(){switch(a){case IDCTA_AGE_BRACKETS.under13:return _errorCodes.USER_INVALID_AGE_BRACKET_U13;case IDCTA_AGE_BRACKETS.under16:return _errorCodes.USER_INVALID_AGE_BRACKET_U16;case IDCTA_AGE_BRACKETS.under18:return _errorCodes.USER_INVALID_AGE_BRACKET_U18;case IDCTA_AGE_BRACKETS.over18:return _errorCodes.USER_INVALID_AGE_BRACKET_O18;default:return _errorCodes.IDCTA_ERROR}},get errorDetails(){return 0===n.length?"No age bracket provided":"Invalid age bracket "+a}},(0,t.t1)(t.t2);case 18:case"end":return t.stop()}},t,void 0,[[0,5]])}));return function(e,r){return t.apply(this,arguments)}}())},checkForUploadPermission=exports.checkForUploadPermission=function(e){var t=e.env,r=void 0===t?"live":t,n=e.policy,o=void 0===n?IDCTA_POLICY:n,i=e.purpose,a=void 0===i?IDCTA_PURPOSE:i,s=e.customEndpoint;return new Promise(function(){var e=_asyncToGenerator(_regeneratorRuntime2.default.mark(function e(t,n){var i,u,l;return _regeneratorRuntime2.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,exports.getIdctaInfo({policy:o,purpose:a,env:r,isSignedIn:!0,customEndpoint:s});case 3:i=e.sent,u=getErrorDetails(i.policyCheck),l=!u,l?t({idHtml:i.html}):n(_extends({idHtml:i.html},u)),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),n({errorCode:_errorCodes.IDCTA_ERROR,errorDetails:e.t0});case 12:case"end":return e.stop()}},e,void 0,[[0,9]])}));return function(t,r){return e.apply(this,arguments)}}())},loadIdctaForDev=exports.loadIdctaForDev=function(){return new Promise(function(e,t){fetch("https://web.archive.org/web/20190207191953/https://idcta.int.api.bbc.co.uk/idcta/init").then(function(e){return e.json()}).then(function(t){e(handleIdctaInitEndpointForDev(t))}).catch(function(e){t(e)})})},handleIdctaInitEndpointForDev=exports.handleIdctaInitEndpointForDev=function handleIdctaInitEndpointForDev(idJson){return new Promise(function(resolve,rejects){var functionToSetupIdctaLibs=idJson.inlineHead.replace(/<script[^>]*>/gi,"").replace(/<\/script>/gi,""),define=window.define,require=window.require;eval(functionToSetupIdctaLibs),exports.loadExposedIdctaJS().then(function(e){resolve(e)}).catch(function(e){rejects(e)})})}},function(e,t,r){"use strict";function n(e){if(!e)throw new TypeError("No input parameters specified. Example usage:\nUGCUploadClient({\n .. your parameters here ..\n});");if(!("campaignId"in e))throw new TypeError("A 'campaignId' field was not defined in the input params");return new Promise(function(r,n){var o=void 0;if(e.formStructure)o=new p.default(e),r(c(o,e));else{var i=e.formContainer||e.form,a=void 0;i&&(a=h.type.isDOMElement(i)?i:document.querySelector(i),h.loader.showLoader(a)),t.fetchFormConfig(e).then(function(t){a&&h.loader.hideLoader(a),t&&t.campaignId?(o=new p.default(d({},e,{formStructure:t})),r(c(o,e))):n("The form configuration does not appear to be correct!")}).catch(function(e){a&&h.loader.hideLoader(a),n(e.error||e)})}})}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,h.err)("submit requires a 'formData' parameter"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,h.err)("submit requires a 'campaignId' parameter"),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"test",n=arguments[3],o=arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];return(0,f.submitForm)(e,void 0,t,r,n,o,i,a)}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,h.err)("validate requires a 'fieldConfig' parameter"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,h.err)("validate requires a 'value' parameter");return(0,v.validateField)(e,t)}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,h.err)("formatErrorMessage requires an 'errorCode' parameter"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,h.err)("formatErrorMessage requires a 'fieldConfig' parameter"),r=arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,v.resolveErrorMsg)(e,t,r,n)}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.env,r=e.context,n=e.purpose,o=e.customEndpoint;return(0,m.loadExposedIdctaJS)().then(function(e){return(0,m.checkUserSignedIn)(e,{env:t,context:r,purpose:n,customEndpoint:o})})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.validAgeBrackets;return(0,m.loadExposedIdctaJS)().then(function(e){return(0,m.checkUserAge)(e,{validAgeBrackets:t})})}function l(e){var t=e.environment||"live",r=h.LAMBDA_ENDPOINTS[t]+"/config/campaign/"+e.campaignId+"/lang/en-gb";return h.requester.get(r,e.testMode)}function c(e,t){return{fileHandler:{initialise:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1];if(Array.isArray(r)&&!r.length)throw new TypeError("No `fileInputs` were provided");Array.isArray(r)||(r=[r]),n=n?d({},t,n):t,e.initialiseFileHandlers(r,n)},removeFile:function(t,r){if(!t||"string"!=typeof t)throw new TypeError("No fileInputId was passed or it's not a css selector");if(t&&!e.fileHandlers[t])throw new TypeError("Cannot find a FileHandler for id: "+t);if(!(r&&r instanceof File))throw new TypeError("You haven't provided an object of type File");t&&r&&e.fileHandlers[t].removeFile(r)}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.checkForUploadPermission=t.getSignedInUserMarkup=t.IDCTA_AGE_BRACKETS=void 0;var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=n,t.submit=o,t.validate=i,t.formatErrorMessage=a,t.checkUserIsSignedIn=s,t.checkSignedInUserAgeBracket=u,t.fetchFormConfig=l,t.generateInitClientReturnObject=c,r(15);var f=r(18),p=function(e){return e&&e.__esModule?e:{default:e}}(f),v=r(5),h=r(0),m=r(13);t.IDCTA_AGE_BRACKETS=m.IDCTA_AGE_BRACKETS,t.getSignedInUserMarkup=m.getSignedInUserMarkup,t.checkForUploadPermission=m.checkForUploadPermission},function(e,t,r){"use strict";e.exports=r(16).polyfill()},function(e,t,r){(function(t,r){!function(t,r){e.exports=r()}(0,function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function n(e){return"function"==typeof e}function o(e){V=e}function i(e){q=e}function a(){return void 0!==B?function(){B(u)}:s()}function s(){var e=setTimeout;return function(){return e(u,1)}}function u(){for(var e=0;e<j;e+=2)(0,$[e])($[e+1]),$[e]=void 0,$[e+1]=void 0;j=0}function l(e,t){var r=this,n=new this.constructor(d);void 0===n[W]&&A(n);var o=r._state;if(o){var i=arguments[o-1];q(function(){return k(o,n,i,r._result)})}else S(r,n,e,t);return n}function c(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var r=new t(d);return _(r,e),r}function d(){}function f(){return new TypeError("You cannot resolve a promise with itself")}function p(){return new TypeError("A promises callback cannot return that same promise.")}function v(e){try{return e.then}catch(e){return ee.error=e,ee}}function h(e,t,r,n){try{e.call(t,r,n)}catch(e){return e}}function m(e,t,r){q(function(e){var n=!1,o=h(r,t,function(r){n||(n=!0,t!==r?_(e,r):b(e,r))},function(t){n||(n=!0,T(e,t))},"Settle: "+(e._label||" unknown promise"));!n&&o&&(n=!0,T(e,o))},e)}function y(e,t){t._state===J?b(e,t._result):t._state===Q?T(e,t._result):S(t,void 0,function(t){return _(e,t)},function(t){return T(e,t)})}function g(e,t,r){t.constructor===e.constructor&&r===l&&t.constructor.resolve===c?y(e,t):r===ee?(T(e,ee.error),ee.error=null):void 0===r?b(e,t):n(r)?m(e,t,r):b(e,t)}function _(t,r){t===r?T(t,f()):e(r)?g(t,r,v(r)):b(t,r)}function E(e){e._onerror&&e._onerror(e._result),w(e)}function b(e,t){e._state===Z&&(e._result=t,e._state=J,0!==e._subscribers.length&&q(w,e))}function T(e,t){e._state===Z&&(e._state=Q,e._result=t,q(E,e))}function S(e,t,r,n){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+J]=r,o[i+Q]=n,0===i&&e._state&&q(w,e)}function w(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var n=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)n=t[a],o=t[a+r],n?k(r,n,o,i):o(i);e._subscribers.length=0}}function C(e,t){try{return e(t)}catch(e){return ee.error=e,ee}}function k(e,t,r,o){var i=n(r),a=void 0,s=void 0,u=void 0,l=void 0;if(i){if(a=C(r,o),a===ee?(l=!0,s=a.error,a.error=null):u=!0,t===a)return void T(t,p())}else a=o,u=!0;t._state!==Z||(i&&u?_(t,a):l?T(t,s):e===J?b(t,a):e===Q&&T(t,a))}function P(e,t){try{t(function(t){_(e,t)},function(t){T(e,t)})}catch(t){T(e,t)}}function I(){return te++}function A(e){e[W]=te++,e._state=void 0,e._result=void 0,e._subscribers=[]}function O(){return new Error("Array Methods must be provided an Array")}function x(e){return new re(this,e).promise}function R(e){var t=this;return new t(U(e)?function(r,n){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(r,n)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function N(e){var t=this,r=new t(d);return T(r,e),r}function M(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function F(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function D(){var e=void 0;if(void 0!==r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=ne}var L=void 0;L=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var U=L,j=0,B=void 0,V=void 0,q=function(e,t){$[j]=e,$[j+1]=t,2===(j+=2)&&(V?V(u):X())},G="undefined"!=typeof window?window:void 0,H=G||{},z=H.MutationObserver||H.WebKitMutationObserver,K="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),Y="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,$=new Array(1e3),X=void 0;X=K?function(){return function(){return t.nextTick(u)}}():z?function(){var e=0,t=new z(u),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}():Y?function(){var e=new MessageChannel;return e.port1.onmessage=u,function(){return e.port2.postMessage(0)}}():void 0===G?function(){try{var e=Function("return this")().require("vertx");return B=e.runOnLoop||e.runOnContext,a()}catch(e){return s()}}():s();var W=Math.random().toString(36).substring(2),Z=void 0,J=1,Q=2,ee={error:null},te=0,re=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(d),this.promise[W]||A(this.promise),U(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?b(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&b(this.promise,this._result))):T(this.promise,O())}return e.prototype._enumerate=function(e){for(var t=0;this._state===Z&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,n=r.resolve;if(n===c){var o=v(e);if(o===l&&e._state!==Z)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(r===ne){var i=new r(d);g(i,e,o),this._willSettleAt(i,t)}else this._willSettleAt(new r(function(t){return t(e)}),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,r){var n=this.promise;n._state===Z&&(this._remaining--,e===Q?T(n,r):this._result[t]=r),0===this._remaining&&b(n,this._result)},e.prototype._willSettleAt=function(e,t){var r=this;S(e,void 0,function(e){return r._settledAt(J,t,e)},function(e){return r._settledAt(Q,t,e)})},e}(),ne=function(){function e(t){this[W]=I(),this._result=this._state=void 0,this._subscribers=[],d!==t&&("function"!=typeof t&&M(),this instanceof e?P(this,t):F())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this,r=t.constructor;return n(e)?t.then(function(t){return r.resolve(e()).then(function(){return t})},function(t){return r.resolve(e()).then(function(){throw t})}):t.then(e,e)},e}();return ne.prototype.then=l,ne.all=x,ne.race=R,ne.resolve=c,ne.reject=N,ne._setScheduler=o,ne._setAsap=i,ne._asap=q,ne.polyfill=D,ne.Promise=ne,ne})}).call(t,r(17),r(3))},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===n||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){h&&p&&(h=!1,p.length?v=p.concat(v):m=-1,v.length&&s())}function s(){if(!h){var e=o(a);h=!0;for(var t=v.length;t;){for(p=v,v=[];++m<t;)p&&p[m].run();m=-1,t=v.length}p=null,h=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,d,f=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:r}catch(e){c=r}try{d="function"==typeof clearTimeout?clearTimeout:n}catch(e){d=n}}();var p,v=[],h=!1,m=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];v.push(new u(e,t)),1!==v.length||h||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.prependListener=l,f.prependOnceListener=l,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.getEndpoint=t.transmitFormData=t.submitForm=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(19),u=n(s),l=r(4),c=n(l),d=r(0),f=r(5),p=n(f),v=r(21),h=r(36),m=n(h),y=r(6),g=r(13),_=function(){function e(t){var r=this;if(o(this,e),this.validateInputParams(t),t.form?this.form=d.type.isDOMElement(t.form)?t.form:document.querySelector(t.form):t.formContainer&&(this.formContainer=d.type.isDOMElement(t.formContainer)?t.formContainer:document.querySelector(t.formContainer),this.form=(0,y.renderForm)(t.formStructure,this.formContainer)),!this.form)throw new TypeError("No form was found or could be rendered.");if(this.campaignId=t.campaignId,this.disableDragAndDrop=t.disableDragAndDrop,this.disableValidation=t.disableValidation,this.isSignInMandatory=t.isSignInMandatory,t.disableAutoSubmit||(0,l.bindEvent)(this.form,"submit",this.handleSubmit.bind(this)),this.showLoader=void 0===t.showLoader||!d.type.isBoolean(t.showLoader)||t.showLoader,this.transmitter=new u.default(this),!t.disableValidation){var n=void 0;n=(0,v.createStore)(m.default),this.validator=new p.default(t.formStructure,this.form,t.onValidationError,n,!t.disableDragAndDrop,t.errorsContainer,t.formContainer)}if(!t.disableFileHandler){var i=this.form.querySelectorAll("input[type=file]");this.initialiseFileHandlers(i,t)}this.transmitter.setCallback("onSuccess",function(e){r.showLoader&&d.loader.hideLoader(r.form),t.onSuccess&&t.onSuccess(e)}),this.transmitter.setCallback("onError",function(e){r.showLoader&&d.loader.hideLoader(r.form),t.onError&&t.onError(e)}),"onSubmit"in t&&this.transmitter.setCallback("onSubmit",t.onSubmit),"onProgress"in t&&this.transmitter.setCallback("onProgress",t.onProgress),this.environment=t.environment||"test",this.testMode="testMode"in t&&t.testMode,this.customEndpoint=this.testMode&&"endpoint"in t?t.endpoint:null,this.testMode&&document.documentElement.classList.add("test-mode"),t.onInitialised&&t.onInitialised()}return a(e,[{key:"initialiseFileHandlers",value:function(e,t){this.fileHandlers={};for(var r=0;r<e.length;r++){var n=e[r],o={dropzoneSelector:t.dropzoneSelector,showPreviews:t.showPreviews,labelTextActive:t.labelTextActive,labelTextInactive:t.labelTextInactive,disableDragAndDrop:t.disableDragAndDrop,disableFileHandlerMarkup:t.disableFileHandlerMarkup,onFileAdded:t.onFileAdded,onFilesChanged:t.onFilesChanged},i=this.getFieldConfig(n.id,t.formStructure);this.fileHandlers[n.id]=new c.default(n,o,this.validator,i)}}},{key:"handleSubmit",value:function(e){var r=this;e.preventDefault();var n=t.submitForm(this.formData,this);n&&n.catch&&n.catch(function(e){r.transmitter&&r.transmitter.callbacks&&r.transmitter.callbacks.onError&&r.transmitter.callbacks.onError(e)})}},{key:"isFormValid",value:function(){var e=this,t=!0;return this.validator.validateAllFields()||(t=!1),this.fileHandlers&&Object.keys(this.fileHandlers).length&&Object.keys(this.fileHandlers).forEach(function(r){var n=e.fileHandlers[r];n&&n.fieldConfig&&n.fieldConfig.validation&&n.fieldConfig.validation.min&&!n.validateMinNumberOfFiles()&&t&&(t=!1)}),t}},{key:"getFieldConfig",value:function(e,t){if(t&&t.sections&&t.sections[0].fields){var r=t.sections[0].fields,n=r.filter(function(t){return t.id===e});if(1===n.length)return n[0];if(n.length>1)throw Error("Multiple fields with id '"+e+"' have been found. Ensure all field ids are unique.")}console.warn("A field with id '"+e+"' cannot be found in the formStructure parameter. No validation rules will be applied.")}},{key:"appendDroppedFileData",value:function(e){var t=this;e.delete||(this.fileHandlers.forEach(function(e){e.$input.disabled=!0}),e=this.formData),Object.keys(this.fileHandlers).forEach(function(r){var n=t.fileHandlers[r],o=n.files;Object.keys(o).length&&(e.delete&&e.delete(n.$input.name),Object.keys(o).forEach(function(t){e.append(n.$input.name,o[t])}))}),e.delete||Object.keys(this.fileHandlers).forEach(function(e){t.fileHandlers[e].$input.disabled=!1})}},{key:"validateInputParams",value:function(e){if(!e)throw new TypeError("No input parameters specified. Example usage:\ninitUGCUploadClient({\n .. your parameters here ..\n});");if(!d.type.isObject(e))throw new TypeError("Input params should be an object (supplied: "+(void 0===e?"undefined":i(e))+")");if(!e.formContainer&&!d.type.isDOMElement(e.form)&&!d.type.isString(e.form))throw new TypeError("'form' key may either be passed in as a DOMElement or css selector string (supplied: "+i(e.form)+")");if(d.type.isString(e.form)&&!document.querySelector(e.form))throw new Error("The chosen form selector, '"+e.form+"' does not appear to be valid (could not match element)");if(!e.form&&!d.type.isDOMElement(e.formContainer)&&!d.type.isString(e.formContainer))throw new TypeError("'formContainer' key may either be passed in as a DOMElement or css selector string (supplied: "+i(e.formContainer)+")");if(d.type.isString(e.formContainer)&&!document.querySelector(e.formContainer))throw new Error("The chosen formContainer selector, '"+e.formContainer+"' does not appear to be valid (could not match element)");if(!("campaignId"in e))throw new TypeError("A 'campaignId' field was not defined in the input params");if(!d.type.isString(e.campaignId))throw new TypeError("'campaignId' is not a string (supplied: "+i(e.campaignId)+")");if(!("formStructure"in e))throw new TypeError("A 'formStructure' object was not defined in the input params");if("formStructure"in e&&!d.type.isObject(e.formStructure))throw new TypeError("'formStructure' is not an object (supplied: "+i(e.formStructure)+")");if(!(e.disableAutoSubmit||"onSuccess"in e))throw new TypeError("An 'onSuccess' callback should be specified in the input params.");if(!(e.disableAutoSubmit||"onError"in e))throw new TypeError("An 'onError' callback should be specified int the input params.");if(!e.disableAutoSubmit&&!d.type.isFunction(e.onSuccess))throw new TypeError("'onSuccess' callback is not a function");if(!e.disableAutoSubmit&&!d.type.isFunction(e.onError))throw new TypeError("'onError' callback is not a function");if("onProgress"in e&&!d.type.isFunction(e.onProgress))throw new TypeError("'onProgress' callback is not a function");if("onSubmit"in e&&!d.type.isFunction(e.onSubmit))throw new TypeError("'onSubmit' callback is not a function");if("onInitialised"in e&&"function"!=typeof e.onInitialised)throw new TypeError("'onInitialised' callback is not a function");if("showLoader"in e&&!d.type.isBoolean(e.showLoader))throw new TypeError("'showLoader' is not a boolean (supplied: "+i(e.showLoader)+")");if("disableAutoSubmit"in e&&!d.type.isBoolean(e.disableAutoSubmit))throw new TypeError("'disableAutoSubmit' is not a boolean (supplied: "+i(e.disableAutoSubmit)+")");if("disableFileHandler"in e&&!d.type.isBoolean(e.disableFileHandler))throw new TypeError("'disableFileHandler' is not a boolean (supplied: "+i(e.disableFileHandler)+")");if("disableValidation"in e&&!d.type.isBoolean(e.disableValidation))throw new TypeError("'disableValidation' is not a boolean (supplied: "+i(e.disableValidation)+")");if("isSignInMandatory"in e&&!d.type.isBoolean(e.isSignInMandatory))throw new TypeError("'isSignInMandatory' is not a boolean (supplied: "+i(e.disableValidation)+")");if(e.environment&&-1===["int","test","live"].indexOf(e.environment))throw new TypeError("'"+e.environment+"' is not a valid environment.");if(e.testMode&&e.environment&&"live"===e.environment)throw new Error('testMode cannot be used on the "live" environment.')}},{key:"endpoint",get:function(){return E(this.campaignId,this.environment,this.customEndpoint,window.location.hostname)}},{key:"formData",get:function(){return new FormData(this.form)}}]),e}();t.default=_;var E=(t.submitForm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(void 0).formData,r=arguments[1],n=arguments[2],o=arguments[3],i=arguments[4],a=arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(!r||r.disableValidation||r.isFormValid())return r&&r.fileHandlers&&Object.keys(r.fileHandlers).length&&r.appendDroppedFileData(e),r&&r.showLoader&&d.loader.showLoader(r.form),s||r&&r.isSignInMandatory?new Promise(function(s,l){(0,g.loadExposedIdctaJS)().then(function(c){(0,g.refreshUserToken)(c,u).then(function(){s(t.transmitFormData(r,n,o,i,e,a))}).catch(function(e){l(e)})}).catch(function(e){l(e)})}):t.transmitFormData(r,n,o,i,e,a)},t.transmitFormData=function(e,t,r,n,o,i){return e?e.transmitter.sendFormData(e.endpoint,o):(new u.default).sendFormData(E(t,r,n,window.location.hostname),o,i)},t.getEndpoint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"test",r=arguments[2],n=arguments[3];if(r)return r+"/"+e;var o=".co.uk";if(n){var i=n.split(".");"com"===i[i.length-1]&&(o=".com")}return{int:"https://web.archive.org/web/20190207191953/https://www.int.bbc${TLD}/ugc/send",test:"https://web.archive.org/web/20190207191953/https://www.test.bbc${TLD}/ugc/send",live:"https://web.archive.org/web/20190207191953/https://www.bbc${TLD}/ugc/send"}[t].replace("${TLD}",o)+"/"+e})},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(o,i){try{var a=t[o](i),s=a.value}catch(e){return void r(e)}return a.done?void e(s):Promise.resolve(s).then(function(e){n("next",e)},function(e){n("throw",e)})}return n("next")})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=r(0),s=r(0),u=r(2),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(){function e(t){o(this,e),this.client=t,this.callbacks={}}return i(e,[{key:"setCallback",value:function(e,t){ this.callbacks[e]=t}},{key:"sendFormData",value:function(e,t,r){var o=this;return this.callbacks&&this.callbacks.onSubmit&&this.callbacks.onSubmit(),r&&this.callbacks&&(this.callbacks.onProgress=r),new Promise(function(){var r=n(l.default.mark(function r(n,i){var s,u;return l.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,o.transmit(e,t);case 3:s=r.sent,n(s),o.callbacks&&o.callbacks.onSuccess&&o.callbacks.onSuccess(s),r.next=13;break;case 8:r.prev=8,r.t0=r.catch(0),u=(0,a.errorResponse)(r.t0),i(u),o.callbacks&&o.callbacks.onError&&o.callbacks.onError(u);case 13:case"end":return r.stop()}},r,o,[[0,8]])}));return function(e,t){return r.apply(this,arguments)}}())}},{key:"updateProgress",value:function(e){e.lengthComputable&&this.callbacks.onProgress(Math.floor(e.loaded/e.total*100))}},{key:"transmit",value:function(e,t){var r=this.callbacks&&this.callbacks.onProgress?this.updateProgress.bind(this):void 0;return s.requester.post(e,t,r,this.client&&this.client.testMode,!0)}}]),e}();t.default=c},function(e,t){!function(t){"use strict";function r(e,t,r,n){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),s=new p(n||[]);return a._invoke=l(e,r,s),a}function n(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function a(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){function t(r,o,i,a){var s=n(e[r],e,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&g.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(l).then(function(e){u.value=e,i(u)},a)}a(s.arg)}function r(e,r){function n(){return new Promise(function(n,o){t(e,r,n,o)})}return o=o?o.then(n,n):n()}var o;this._invoke=r}function l(e,t,r){var o=C;return function(i,a){if(o===P)throw new Error("Generator is already running");if(o===I){if("throw"===i)throw a;return h()}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=c(s,r);if(u){if(u===A)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===C)throw o=I,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=P;var l=n(e,t,r);if("normal"===l.type){if(o=r.done?I:k,l.arg===A)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=I,r.method="throw",r.arg=l.arg)}}}function c(e,t){var r=e.iterator[t.method];if(r===m){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=m,c(e,t),"throw"===t.method))return A;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var o=n(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,A;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=m),t.delegate=null,A):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,A)}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function v(e){if(e){var t=e[E];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(g.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=m,t.done=!0,t};return n.next=n}}return{next:h}}function h(){return{value:m,done:!0}}var m,y=Object.prototype,g=y.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},E=_.iterator||"@@iterator",b=_.asyncIterator||"@@asyncIterator",T=_.toStringTag||"@@toStringTag",S="object"==typeof e,w=t.regeneratorRuntime;if(w)return void(S&&(e.exports=w));w=t.regeneratorRuntime=S?e.exports:{},w.wrap=r;var C="suspendedStart",k="suspendedYield",P="executing",I="completed",A={},O={};O[E]=function(){return this};var x=Object.getPrototypeOf,R=x&&x(x(v([])));R&&R!==y&&g.call(R,E)&&(O=R);var N=a.prototype=o.prototype=Object.create(O);i.prototype=N.constructor=a,a.constructor=i,a[T]=i.displayName="GeneratorFunction",w.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},w.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,T in e||(e[T]="GeneratorFunction")),e.prototype=Object.create(N),e},w.awrap=function(e){return{__await:e}},s(u.prototype),u.prototype[b]=function(){return this},w.AsyncIterator=u,w.async=function(e,t,n,o){var i=new u(r(e,t,n,o));return w.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},s(N),N[T]="Generator",N[E]=function(){return this},N.toString=function(){return"[object Generator]"},w.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},w.values=v,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(f),!e)for(var t in this)"t"===t.charAt(0)&&g.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=m)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,n){return i.type="throw",i.arg=e,r.next=t,n&&(r.method="next",r.arg=m),!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),s=g.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&g.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,A):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),f(r),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;f(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:v(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=m),A}}}(function(){return this}()||Function("return this")())},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8),o=r(33),i=r(34),a=r(35),s=r(12);r(11),r.d(t,"createStore",function(){return n.b}),r.d(t,"combineReducers",function(){return o.a}),r.d(t,"bindActionCreators",function(){return i.a}),r.d(t,"applyMiddleware",function(){return a.a}),r.d(t,"compose",function(){return s.a})},function(e,t,r){"use strict";function n(e){return null==e?void 0===e?u:s:l&&l in Object(e)?Object(i.a)(e):Object(a.a)(e)}var o=r(10),i=r(25),a=r(26),s="[object Null]",u="[object Undefined]",l=o.a?o.a.toStringTag:void 0;t.a=n},function(e,t,r){"use strict";var n=r(24),o="object"==typeof self&&self&&self.Object===Object&&self,i=n.a||o||Function("return this")();t.a=i},function(e,t,r){"use strict";(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.a=r}).call(t,r(3))},function(e,t,r){"use strict";function n(e){var t=a.call(e,u),r=e[u];try{e[u]=void 0;var n=!0}catch(e){}var o=s.call(e);return n&&(t?e[u]=r:delete e[u]),o}var o=r(10),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,u=o.a?o.a.toStringTag:void 0;t.a=n},function(e,t,r){"use strict";function n(e){return i.call(e)}var o=Object.prototype,i=o.toString;t.a=n},function(e,t,r){"use strict";var n=r(28),o=Object(n.a)(Object.getPrototypeOf,Object);t.a=o},function(e,t,r){"use strict";function n(e,t){return function(r){return e(t(r))}}t.a=n},function(e,t,r){"use strict";function n(e){return null!=e&&"object"==typeof e}t.a=n},function(e,t,r){"use strict";(function(e,n){var o,i=r(32);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(i.a)(o);t.a=a}).call(t,r(3),r(31)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}t.a=n},function(e,t,r){"use strict";function n(e,t){var r=t&&t.type;return"Given action "+(r&&'"'+r.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function o(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:a.a.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function i(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var a=t[i];"function"==typeof e[a]&&(r[a]=e[a])}var s=Object.keys(r),u=void 0;try{o(r)}catch(e){u=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(u)throw u;for(var o=!1,i={},a=0;a<s.length;a++){var l=s[a],c=r[l],d=e[l],f=c(d,t);if(void 0===f){var p=n(l,t);throw new Error(p)}i[l]=f,o=o||f!==d}return o?i:e}}t.a=i;var a=r(8);r(9),r(11)},function(e,t,r){"use strict";function n(e,t){return function(){return t(e.apply(void 0,arguments))}}function o(e,t){if("function"==typeof e)return n(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var r=Object.keys(e),o={},i=0;i<r.length;i++){var a=r[i],s=e[a];"function"==typeof s&&(o[a]=n(s,t))}return o}t.a=o},function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(r,n,a){var s=e(r,n,a),u=s.dispatch,l=[],c={getState:s.getState,dispatch:function(e){return u(e)}};return l=t.map(function(e){return e(c)}),u=o.a.apply(void 0,l)(s.dispatch),i({},s,{dispatch:u})}}}t.a=n;var o=r(12),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0;var o=r(37),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=r(7),s=t.defaultState={errors:{}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments[1],r=t.type,o=t.fieldId,u=t.errorCode,l=t.errorMessage,c=t.fileName;switch(r){case a.ADD_ERROR:var d=(0,i.default)(e,{});return c?(d.errors&&d.errors[o]&&d.errors[o][u]?d.errors[o][u][c]={errorMessage:l}:d.errors&&d.errors[o]?d.errors[o][u]=n({},c,{errorMessage:l}):d.errors&&!d.errors[o]&&(d.errors[o]=n({},u,n({},c,{errorMessage:l}))),d):(d.errors&&d.errors[o]?d.errors[o][u]={errorMessage:l}:d.errors&&!d.errors[o]&&(d.errors[o]=n({},u,{errorMessage:l})),d);case a.REMOVE_ERROR:var f=(0,i.default)(e,{});if(e.errors&&e.errors[o]&&e.errors[o][u]){var p=1===Object.keys(e.errors[o]).length;if(c){var v=1===Object.keys(e.errors[o][u]).length&&Object.keys(e.errors[o][u])[0]===c;v&&p?delete f.errors[o]:v?delete f.errors[o][u]:delete f.errors[o][u][c]}else p?delete f.errors[o]:delete f.errors[o][u]}return f;case a.REMOVE_ALL_FIELD_ERRORS:var h=JSON.parse(JSON.stringify(e));return delete h.errors[o],h;default:return e}};t.default=u},function(e,t,r){"use strict";function n(e){return!!e&&"object"==typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||i(e)}function i(e){return e.$$typeof===p}function a(e){return Array.isArray(e)?[]:{}}function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(a(e),e,t):e}function u(e,t,r){return e.concat(t).map(function(e){return s(e,r)})}function l(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=s(e[t],r)}),Object.keys(t).forEach(function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=c(e[o],t[o],r):n[o]=s(t[o],r)}),n}function c(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||u,r.isMergeableObject=r.isMergeableObject||d;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):l(e,t,r):s(t,r)}Object.defineProperty(t,"__esModule",{value:!0});var d=function(e){return n(e)&&!o(e)},f="function"==typeof Symbol&&Symbol.for,p=f?Symbol.for("react.element"):60103;c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return c(e,r,t)},{})};var v=c;t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(t.getBBCTopLevelDomainSuffix=function(){return document.location.href.indexOf("bbc.com")>=0?"bbc.com":"bbc.co.uk"},function(e,r){var n=t.getBBCTopLevelDomainSuffix();switch(r){case"live":return"https://"+e+".api."+n;default:return"https://"+e+"."+r+".api."+n}});t.getIdctaInitUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.keys(t).filter(function(e){return t[e]}).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&"),o=r?"?"+r:"";return n("idcta",e)+"/idcta/init"+o}}])})},function(e,t,r){!function(t,r){e.exports=r()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REQUIRED="required",t.MAX_NUMBER_FILES_EXCEEDED="max-number-files-exceed",t.MIN_NUMBER_FILES_NOT_MET="min-number-files-not-met",t.MAX_SIZE_FILES_EXCEEDED="max-size-files-exceed",t.INCORRECT_MIME_TYPE="incorrect-mime-type",t.MIN_SIZE_FILES_NOT_MET="min-size-files-not-met",t.CAMPAIGN_INVALID="campaign-invalid",t.USER_NOT_SIGNED_IN="signed_out",t.USER_INVALID_AGE_BRACKET_U13="age-under_13",t.USER_INVALID_AGE_BRACKET_U16="age-under_16",t.USER_INVALID_AGE_BRACKET_U18="age-under_18",t.USER_INVALID_AGE_BRACKET_O18="age-over_18",t.IDCTA_ERROR="idcta-error",t.CAMPAIGN_CLOSED="campaign-closed",t.CAMPAIGN_NOT_FOUND="campaign-not-found",t.INTERNAL_SERVER_ERROR="internal-server-error"}])})},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.setFocusedElement=t.getFocusedElement=t.setScrollTop=t.getScrollTop=t.getContentsOfFile=t.removeBrowserEventListener=t.addBrowserEventListener=t.gotoUrl=t.scrollToTopOfElement=t.scrollToTop=void 0;var o=r(47),i=n(o);if("undefined"!=typeof window){var a=r(146);a.polyfill()}t.scrollToTop=function(){window.scrollTo(0,0)},t.scrollToTopOfElement=function(e){e.scrollIntoView({behavior:"smooth",block:"start"})},t.gotoUrl=function(e){window.location.href=e},t.addBrowserEventListener=function(e,t){window.addEventListener(e,t)},t.removeBrowserEventListener=function(e,t){window.removeEventListener(e,t)},t.getContentsOfFile=function(e){return new i.default(function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){return r(e)},n.readAsDataURL(e)})},t.getScrollTop=function(){return document.body.scrollTop||document.documentElement.scrollTop},t.setScrollTop=function(e){document.body.scrollTop=e,document.documentElement.scrollTop=e},t.getFocusedElement=function(){return document.activeElement},t.setFocusedElement=function(e){e&&e.focus()}},function(e,t,r){!function(){"use strict";function t(){function e(e){var t=["MSIE ","Trident/","Edge/"];return new RegExp(t.join("|")).test(e)}function t(e,t){this.scrollLeft=e,this.scrollTop=t}function r(e){return.5*(1-Math.cos(Math.PI*e))}function n(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function o(e,t){return"Y"===t?e.clientHeight+m<e.scrollHeight:"X"===t?e.clientWidth+m<e.scrollWidth:void 0}function i(e,t){var r=c.getComputedStyle(e,null)["overflow"+t];return"auto"===r||"scroll"===r}function a(e){var t=o(e,"Y")&&i(e,"Y"),r=o(e,"X")&&i(e,"X");return t||r}function s(e){var t;do e=e.parentNode,t=e===d.body;while(t===!1&&a(e)===!1);return t=null,e}function u(e){var t,n,o,i=h(),a=(i-e.startTime)/p;a=a>1?1:a,t=r(a),n=e.startX+(e.x-e.startX)*t,o=e.startY+(e.y-e.startY)*t,e.method.call(e.scrollable,n,o),n===e.x&&o===e.y||c.requestAnimationFrame(u.bind(c,e))}function l(e,r,n){var o,i,a,s,l=h();e===d.body?(o=c,i=c.scrollX||c.pageXOffset,a=c.scrollY||c.pageYOffset,s=v.scroll):(o=e,i=e.scrollLeft,a=e.scrollTop,s=t),u({scrollable:o,method:s,startTime:l,startX:i,startY:a,x:r,y:n})}var c=window,d=document;if(!("scrollBehavior"in d.documentElement.style&&c.__forceSmoothScrollPolyfill__!==!0)){var f=c.HTMLElement||c.Element,p=468,v={scroll:c.scroll||c.scrollTo,scrollBy:c.scrollBy,elementScroll:f.prototype.scroll||t,scrollIntoView:f.prototype.scrollIntoView},h=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now,m=e(c.navigator.userAgent)?1:0;c.scroll=c.scrollTo=function(){if(void 0!==arguments[0])return n(arguments[0])===!0?void v.scroll.call(c,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:c.scrollX||c.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:c.scrollY||c.pageYOffset):void l.call(c,d.body,void 0!==arguments[0].left?~~arguments[0].left:c.scrollX||c.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:c.scrollY||c.pageYOffset)},c.scrollBy=function(){if(void 0!==arguments[0])return n(arguments[0])?void v.scrollBy.call(c,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):void l.call(c,d.body,~~arguments[0].left+(c.scrollX||c.pageXOffset),~~arguments[0].top+(c.scrollY||c.pageYOffset))},f.prototype.scroll=f.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(n(arguments[0])===!0){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");return void v.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}var e=arguments[0].left,t=arguments[0].top;l.call(this,this,"undefined"==typeof e?this.scrollLeft:~~e,"undefined"==typeof t?this.scrollTop:~~t)}},f.prototype.scrollBy=function(){if(void 0!==arguments[0])return n(arguments[0])===!0?void v.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop):void this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})},f.prototype.scrollIntoView=function(){if(n(arguments[0])===!0)return void v.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);var e=s(this),t=e.getBoundingClientRect(),r=this.getBoundingClientRect();e!==d.body?(l.call(this,e,e.scrollLeft+r.left-t.left,e.scrollTop+r.top-t.top),"fixed"!==c.getComputedStyle(e).position&&c.scrollBy({left:t.left,top:t.top,behavior:"smooth"})):c.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}}}e.exports={polyfill:t}}()},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return Array.isArray(e)?0===e.length:!e}function i(e){var t=this,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];r||(r=!0,e.apply(t,o),r=!1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.pluralise=t.startTimer=t.ensureMinAwaitTime=t.getUniqueKey=t.waitFor=t.noop=void 0;var a=r(43),s=n(a),u=r(46),l=n(u),c=r(47),d=n(c);t.isEmpty=o,t.preventRecursiveEventHandler=i;var f=(t.noop=function(){},t.waitFor=function(e){return new d.default(function(t){return setTimeout(t,e)})});t.getUniqueKey=function(e){return e+"-"+Date.now()},t.ensureMinAwaitTime=function(){var e=(0,l.default)(s.default.mark(function e(t,r){return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f(r);case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}},e,void 0)}));return function(t,r){return e.apply(this,arguments)}}(),t.startTimer=function(){var e=Date.now();return{getDurationInSecond:function(){return Math.floor((Date.now()-e)/1e3)}}},t.pluralise=function(e,t){return 1===t?e:e+"s"}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.RadioButtons=void 0;var o=r(86),i=n(o),a=r(90),s=n(a),u=r(91),l=n(u),c=r(95),d=n(c),f=r(112),p=n(f),v=r(120),h=n(v),m=t.RadioButtons=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=e.options,r=e.name,n=e.value;return h.default.createElement("fieldset",null,h.default.createElement("label",null,h.default.createElement("span",null,n)),h.default.createElement("ul",null,t.map(function(e,t){return h.default.createElement("li",{key:t},h.default.createElement("label",{htmlFor:e.value},e.label),h.default.createElement("input",{type:"radio",name:r,value:e.value}))})))}}]),t}(v.Component);m.displayName="RadioButtons",m.propTypes={options:v.PropTypes.arrayOf(v.PropTypes.object),name:v.PropTypes.string,value:v.PropTypes.string}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.FileChooser=void 0;var o=r(128),i=n(o),a=r(150),s=n(a),u=r(151),l=n(u),c=r(86),d=n(c),f=r(90),p=n(f),v=r(91),h=n(v),m=r(95),y=n(m),g=r(112),_=n(g),E=r(120),b=n(E),T=r(121),S=n(T),w=r(155),C=r(124),k=r(126),P=r(157),I=r(147),A=r(138),O=r(142),x=r(141),R=r(145),N=[O.MIN_NUMBER_FILES_NOT_MET],M=t.FileChooser=function(e){function t(e){(0,p.default)(this,t);var r=(0,y.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));return r.onChange=(0,I.preventRecursiveEventHandler)(r.onChange.bind(r)),r.onDelete=r.onDelete.bind(r),r.openFileChooser=r.openFileChooser.bind(r),r.setFileInputRef=r.setFileInputRef.bind(r),r.setFileListRef=r.setFileListRef.bind(r),r.shouldShowError=r.shouldShowError.bind(r),r.onScrolled=r.onScrolled.bind(r),r.state={files:[],errorsPerFile:{},fileListError:null,scrollToChosenFile:null,addOrRemoveFilesAriaMessage:""},r.appendFiles=r.appendFiles.bind(r),r.resetErrors=r.resetErrors.bind(r),r.fileId=0,r}return(0,_.default)(t,e),(0,h.default)(t,[{key:"getNextFileId",value:function(){var e=this.fileId;return this.fileId+=1,e}},{key:"onDelete",value:function(e){var t=this.state.files,r=t.filter(function(t){return t.id!==e});this.updateFiles(r)}},{key:"onChange",value:function(e){var t=e.target.files;C.istatsService.logEvent("file-picker",k.ISTATS_ACTIONS.UploaderAddFile),this.appendFiles(t),e.target.value=null}},{key:"appendFiles",value:function(e){var t=this,r=(0,l.default)(e,function(e){return e}).map(function(e){return e.id=t.getNextFileId(),e}),n=[].concat((0,s.default)(this.state.files),(0,s.default)(r));this.updateFiles(n)}},{key:"updateFiles",value:function(e){this.setState({files:e}),this.validateFiles(e),this.props.onFieldUpdated(this.props.id,e)}},{key:"resetErrors",value:function(){this.setState({errorsPerFile:{}}),this.setState({fileListError:null})}},{key:"shouldShowError",value:function(e){var t=this.props.hasSubmissionBeenAttempted;return t()||!(N.indexOf(e)!==-1)}},{key:"validateFiles",value:function(e){var t=this.props,r=t.type,n=t.validation,o=(0,O.validateField)({type:r,validation:n,value:e});if(o.isValid)return this.resetErrors(),!0;var i=(0,O.getFileChooserErrors)({type:r,validation:n,errors:o.errors,shouldIncludeError:this.shouldShowError}),a=i.fileListError,s=i.errorsPerFile;return this.setState({fileListError:a}),this.setState({errorsPerFile:s}),!1}},{key:"validate",value:function(){var e=this.state.files;return this.validateFiles(e)}},{key:"hasChosenFileErrors",value:function(){return(0,i.default)(this.state.errorsPerFile).length>0}},{key:"hasErrors",value:function(){return Boolean(this.state.fileListError)||this.hasChosenFileErrors()}},{key:"scrollToError",value:function(){var e=this.state,t=e.errorsPerFile,r=e.fileListError;if(r)(0,R.setFocusedElement)(this.fileList),(0,R.scrollToTopOfElement)(this.fileList),this.props.onScrolled();else{var n=(0,i.default)(t);if(n.length>0){var o=n.sort(function(e){return-1*parseInt(e,10)});this.setState({scrollToChosenFile:o[0]})}}}},{key:"onScrolled",value:function(){this.setState({scrollToChosenFile:null}),this.props.onScrolled()}},{key:"openFileChooser",value:function(e){e.preventDefault(),this.fileInput.click()}},{key:"scrollToTop",value:function(){this.scrollToError()}},{key:"setFileInputRef",value:function(e){this.fileInput=e}},{key:"setFileListRef",value:function(e){this.fileList=e}},{key:"isAdding",value:function(e){return e>0}},{key:"updateAddOrRemoveFilesAriaMessage",value:function(e){this.setState({addOrRemoveFilesAriaMessage:e})}},{key:"announceAddOrRemoveFilesAriaMessage",value:function(e){var t=Math.abs(e),r=t+" "+(0,I.pluralise)("file",t),n=this.isAdding(e)?r+" added.":r+" removed.";this.updateAddOrRemoveFilesAriaMessage(n)}},{key:"componentDidUpdate",value:function(e,t){if(this.props.scrollTo!==e.scrollTo&&this.props.scrollTo)this.updateAddOrRemoveFilesAriaMessage(""),this.scrollToTop();else if(this.state.files!==t.files){var r=this.state.files.length-t.files.length;this.isAdding(r)&&(0,R.scrollToTopOfElement)(this.fileList),this.announceAddOrRemoveFilesAriaMessage(r),(0,R.setFocusedElement)(this.fileList)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.id,n=t.validation,o=this.state,i=o.files,a=o.errorsPerFile,s=void 0===a?{}:a,u=o.fileListError,l=o.scrollToChosenFile,c=o.addOrRemoveFilesAriaMessage,d=n.fileTypes?n.fileTypes.join(","):"",f=i.length>0;return b.default.createElement("div",{className:"field__container field__container--file-chooser"},b.default.createElement("div",{className:"file-chooser"},b.default.createElement("label",{htmlFor:r},b.default.createElement(w.DropZone,{appendFiles:this.appendFiles},b.default.createElement(A.UgcButton,{className:"file-chooser__file-input-button",text:"Choose a file",onClick:this.openFileChooser}))),b.default.createElement("input",{type:"file",id:r,tabIndex:"-1",name:r,accept:d,multiple:!0,ref:this.setFileInputRef,onChange:this.onChange})),b.default.createElement("div",{tabIndex:"-1",ref:this.setFileListRef,className:(0,S.default)("file-chooser__divider focusable--no-decoration",{"file-chooser__divider--no-files":!f})},b.default.createElement("div",{className:"ugc-hidden--offscreen",tabIndex:"-1"},c),f&&b.default.createElement("span",{className:"file-chooser__files-list-msg","aria-label":"You are sending us "+i.length+" "+(0,I.pluralise)("file",i.length)},"Here's what you're sending:"),u&&b.default.createElement(x.UgcFormErrorMessage,{className:"ugc-form__error-message--file-list",errorDetails:u,pointerAlign:"none"})),f&&b.default.createElement("ul",null,i.map(function(t){return b.default.createElement(P.ChosenFile,{key:t.id,onDelete:function(){return e.onDelete(t.id)},errorDetails:s[""+t.id],scrollTo:l===""+t.id,onScrolled:e.onScrolled,file:t})})))}}]),t}(E.Component);M.displayName="FileChooser",M.propTypes={id:E.PropTypes.string.isRequired,type:E.PropTypes.string.isRequired,onFieldUpdated:E.PropTypes.func,validation:E.PropTypes.object,hasSubmissionBeenAttempted:E.PropTypes.func.isRequired,scrollTo:E.PropTypes.bool,onScrolled:E.PropTypes.func},M.defaultProps={validation:{}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(151),i=n(o);t.default=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return(0,i.default)(e)}},function(e,t,r){e.exports={default:r(152),__esModule:!0}},function(e,t,r){r(50),r(153),e.exports=r(8).Array.from},function(e,t,r){"use strict";var n=r(9),o=r(6),i=r(40),a=r(70),s=r(71),u=r(30),l=r(154),c=r(72);o(o.S+o.F*!r(83)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,o,d,f=i(e),p="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,m=void 0!==h,y=0,g=c(f);if(m&&(h=n(h,v>2?arguments[2]:void 0,2)),void 0==g||p==Array&&s(g))for(t=u(f.length),r=new p(t);t>y;y++)l(r,y,m?h(f[y],y):f[y]);else for(d=g.call(f),r=new p;!(o=d.next()).done;y++)l(r,y,m?a(d,h,[o.value,y],!0):o.value);return r.length=y,r}})},function(e,t,r){"use strict";var n=r(12),o=r(20);e.exports=function(e,t,r){t in e?n.f(e,t,o(0,r)):e[t]=r}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DropZone=void 0;var o=r(150),i=n(o),a=r(86),s=n(a),u=r(90),l=n(u),c=r(91),d=n(c),f=r(95),p=n(f),v=r(112),h=n(v),m=r(120),y=n(m),g=r(121),_=n(g),E=r(124),b=r(126),T=r(156),S=t.DropZone=function(e){function t(e){(0,l.default)(this,t);var r=(0,p.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return r.onFilesDropped=r.onFilesDropped.bind(r),r.startDragOver=r.startDragOver.bind(r),r.endDragOver=r.endDragOver.bind(r),r.state={dragOver:!1},r}return(0,h.default)(t,e),(0,d.default)(t,[{key:"onFilesDropped",value:function(e){ e.preventDefault();var t=e.dataTransfer.files;t.length>0&&(this.props.appendFiles(t),E.istatsService.logEvent("drag-and-drop",b.ISTATS_ACTIONS.UploaderAddFile)),this.setState({dragOver:!1})}},{key:"startDragOver",value:function(e){e.preventDefault(),this.setState({dragOver:!0})}},{key:"endDragOver",value:function(e){e.preventDefault(),this.setState({dragOver:!1})}},{key:"render",value:function(){var e=this.props.children;return y.default.createElement("div",{className:(0,_.default)({"drag-over":this.state.dragOver}),onDrop:this.onFilesDropped,onDragOver:this.startDragOver,onDragLeave:this.endDragOver},y.default.createElement(T.UgcBackground,null,y.default.createElement("div",{className:"dropzone__ring"},[].concat((0,i.default)(Array(3))).map(function(e,t){return y.default.createElement("div",{key:t,className:"dropzone__ring-"+(t+1)})})),y.default.createElement("div",{className:"dropzone__content"},e)))}}]),t}(m.Component);S.displayName="DropZone",S.propTypes={appendFiles:m.PropTypes.func.isRequired,children:m.PropTypes.oneOfType([m.PropTypes.arrayOf(m.PropTypes.node),m.PropTypes.node])}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UgcBackground=void 0;var o=r(120),i=n(o),a=r(121),s=n(a),u=t.UgcBackground=function(e){var t=e.children,r=e.className;return i.default.createElement("div",{className:(0,s.default)("ugc-background__aspect-container",r)},i.default.createElement("div",{className:"ugc-background__inner-container"},i.default.createElement("div",{className:"ugc-background__centering-container"},i.default.createElement("div",{className:"ugc-background__img"})),i.default.createElement("div",{className:"ugc-background__centering-container"},t)))};u.displayName="UgcBackground",u.propTypes={children:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.node),o.PropTypes.node]),className:o.PropTypes.string}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ChosenFile=void 0;var o=r(86),i=n(o),a=r(90),s=n(a),u=r(91),l=n(u),c=r(95),d=n(c),f=r(112),p=n(f),v=r(120),h=n(v),m=r(135),y=n(m),g=r(124),_=r(126),E=r(141),b=r(145),T=r(147),S=r(158),w=t.ChosenFile=function(e){function t(e){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.onClick=r.onClick.bind(r),r.setRef=r.setRef.bind(r),r.scrollToTop=r.scrollToTop.bind(r),r}return(0,p.default)(t,e),(0,l.default)(t,[{key:"setRef",value:function(e){this.domElement=e}},{key:"onClick",value:function(e){e.preventDefault(),this.props.onDelete(),g.istatsService.logClickEvent(_.ISTATS_ACTIONS.UploaderRemoveFile)}},{key:"scrollToTop",value:function(){(0,b.scrollToTopOfElement)(this.domElement),this.props.onScrolled()}},{key:"componentDidUpdate",value:function(e){this.props.scrollTo!==e.scrollTo&&this.props.scrollTo&&this.scrollToTop()}},{key:"render",value:function(){var e=this.props,t=e.file,r=e.errorDetails,n=t.name,o=r?n+". "+r.description:n,i=Boolean(r);return h.default.createElement("li",{ref:this.setRef,className:"chosen-file-container"},h.default.createElement("div",{className:"chosen-file"},h.default.createElement(S.FileThumbnail,{file:t,hasError:i}),h.default.createElement("div",{className:"chosen-file__filename","aria-label":o},n),h.default.createElement("button",{role:"button","aria-label":"Remove "+n,className:"chosen-file__delete",onClick:this.onClick},h.default.createElement("div",{className:"chosen-file__inner-delete"},h.default.createElement(y.default,{iconName:"no"})))),r&&h.default.createElement(E.UgcFormErrorMessage,{ariaHidden:!0,errorDetails:r}))}}]),t}(v.Component);w.displayName="ChosenFile",w.propTypes={file:v.PropTypes.shape({name:v.PropTypes.string.isRequired}).isRequired,onDelete:v.PropTypes.func.isRequired,errorDetails:v.PropTypes.object,scrollTo:v.PropTypes.bool,onScrolled:v.PropTypes.func},w.defaultProps={scrollTo:!1,onScrolled:T.noop}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.FileThumbnail=void 0;var o=r(120),i=n(o),a=r(135),s=n(a),u=r(159),l=r(160),c=function(e,t){var r=t?"unknown":(0,u.getFileType)(e);switch(r){case"image":return i.default.createElement(l.ImageThumbnailGenerator,{file:e});case"video":return i.default.createElement(s.default,{iconName:"video"});case"audio":return i.default.createElement(s.default,{iconName:"audio"});default:return i.default.createElement(s.default,{iconName:"alert"})}},d=t.FileThumbnail=function(e){var t=e.file,r=e.hasError;return i.default.createElement("div",{className:"file-thumbnail"},c(t,r))};d.displayName="FileThumbnail",d.propTypes={file:o.PropTypes.shape({type:o.PropTypes.string.isRequired}).isRequired,hasError:o.PropTypes.bool.isRequired}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getFileType=function(e){return e.type.substring(0,e.type.indexOf("/"))}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ImageThumbnailGenerator=void 0;var o=r(43),i=n(o),a=r(46),s=n(a),u=r(86),l=n(u),c=r(90),d=n(c),f=r(91),p=n(f),v=r(95),h=n(v),m=r(112),y=n(m),g=r(120),_=n(g),E=r(135),b=n(E),T=r(145),S=r(147),w=500,C=t.ImageThumbnailGenerator=function(e){function t(e){(0,d.default)(this,t);var r=(0,h.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return r.state={loading:!0,fileImageData:null,error:!1},r}return(0,y.default)(t,e),(0,p.default)(t,[{key:"loadThumbnail",value:function(){function e(){return t.apply(this,arguments)}var t=(0,s.default)(i.default.mark(function e(){var t,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.file,this.setState({loading:!0}),e.prev=2,e.next=5,(0,S.ensureMinAwaitTime)((0,T.getContentsOfFile)(t),w);case 5:r=e.sent,this.setState({fileImageData:r}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this.setState({error:!0});case 12:return e.prev=12,this.setState({loading:!1}),e.finish(12);case 15:case"end":return e.stop()}},e,this,[[2,9,12,15]])}));return e}()},{key:"componentDidMount",value:function(){this.loadThumbnail()}},{key:"render",value:function(){return _.default.createElement("div",{className:"file-thumbnail__image-loader"},this.state.loading&&_.default.createElement(b.default,{iconName:"loading"}),this.state.fileImageData&&_.default.createElement("img",{src:this.state.fileImageData}),this.state.error&&_.default.createElement(b.default,{iconName:"alert"}))}}]),t}(g.Component);C.displayName="ImageThumbnailGenerator",C.propTypes={file:g.PropTypes.object.isRequired}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FIELD_ELEMENTS={file:"file",textarea:"textarea",radio:"radio"}},function(e,t,r){"use strict";function n(e){return e.some(function(e){return e.type===u.FIELD_ELEMENTS.file})}function o(e){return!n(e)}function i(e,t){var r=e.filter(function(e){return e.type===u.FIELD_ELEMENTS.file});return r.every(function(e){return!(0,l.isEmpty)(t[e.id])})}function a(e,t){return o(e)||i(e,t)}function s(e,t,r){var n=e.indexOf(t),a=e.slice(0,n);return o(a)||i(a,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.showSectionCta=a,t.showField=s;var u=r(161),l=r(147)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.newUploadJob=void 0;var o=r(43),i=n(o),a=r(46),s=n(a),u=r(90),l=n(u),c=r(91),d=n(c),f=r(150),p=n(f),v=r(164),h=n(v),m=r(142),y=function(e){var t=Array.isArray(e)?e:[e];return t.filter(function(e){return e instanceof File})},g=function(e){return(0,h.default)(e).reduce(function(e,t){var r=y(t);return[].concat((0,p.default)(e),(0,p.default)(r))},[])},_=function(){function e(t){var r=t.fieldValues,n=t.campaignUid,o=t.env;(0,l.default)(this,e),this.fieldValues=r,this.campaignUid=n,this.env=o,this.currentProgress=0,this.onProgress=this.onProgress.bind(this)}return(0,d.default)(e,[{key:"onProgress",value:function(e){this.currentProgress=e}},{key:"startJob",value:function(e){var t=this,r=!e,n=this.fieldValues,o=this.campaignUid,i=this.env,a=this.onProgress;this.submissionPromise=(0,m.submitForm)({fieldValues:n,campaignUid:o,env:i,isSignInMandatory:r,onProgress:a}).then(function(e){t.uploadResponse=e}).catch(function(e){t.errorResponse=e})}},{key:"getSubmissionResponse",value:function(){function e(){return t.apply(this,arguments)}var t=(0,s.default)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.submissionPromise;case 2:if(!this.errorResponse){e.next=4;break}throw this.errorResponse;case 4:return e.abrupt("return",this.uploadResponse);case 5:case"end":return e.stop()}},e,this)}));return e}()},{key:"getProgress",value:function(){return this.currentProgress}},{key:"getFilesInfoLabelsForStats",value:function(){var e=g(this.fieldValues),t=e.reduce(function(e,t){return e+t.size},0);return{uploader_files_count:e.length,uploader_files_total_size:t}}}]),e}();t.newUploadJob=function(e){var t=e.fieldValues,r=e.campaignUid,n=e.env;return new _({fieldValues:t,campaignUid:r,env:n})}},function(e,t,r){e.exports={default:r(165),__esModule:!0}},function(e,t,r){r(166),e.exports=r(8).Object.values},function(e,t,r){var n=r(6),o=r(167)(!1);n(n.S,"Object",{values:function(e){return o(e)}})},function(e,t,r){var n=r(23),o=r(25),i=r(39).f;e.exports=function(e){return function(t){for(var r,a=o(t),s=n(a),u=s.length,l=0,c=[];u>l;)i.call(a,r=s[l++])&&c.push(e?[r,a[r]]:a[r]);return c}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenCloseButton=void 0;var o=r(86),i=n(o),a=r(90),s=n(a),u=r(91),l=n(u),c=r(95),d=n(c),f=r(112),p=n(f),v=r(120),h=n(v),m=r(124),y=r(126),g=r(145),_=r(169),E=t.FullScreenCloseButton=function(e){function t(e){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.gotoPtrt=r.gotoPtrt.bind(r),r}return(0,p.default)(t,e),(0,l.default)(t,[{key:"gotoPtrt",value:function(e){e.preventDefault();var t=this.context.ptrt;m.istatsService.logButtonEvent(y.ISTATS_ACTIONS.UploaderClose),(0,g.gotoUrl)(t)}},{key:"render",value:function(){var e=this.context,t=e.siteName,r=e.ptrt,n=this.props,o=n.onClick,i=void 0===o?this.gotoPtrt:o,a=n.ariaLabel,s=void 0===a?"Back to "+t:a;return h.default.createElement("a",{href:r,"aria-label":s,onClick:i,className:"ugc-fullscreen__close-button"},h.default.createElement("div",{className:"close-button__icon-wrapper"},h.default.createElement(_.AccountCloseIcon,null)))}}]),t}(v.Component);E.displayName="FullScreenCloseButton",E.propTypes={onClick:v.PropTypes.func,ariaLabel:v.PropTypes.string},E.contextTypes={siteName:v.PropTypes.string.isRequired,ptrt:v.PropTypes.string.isRequired}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.AccountCloseIcon=void 0;var o=r(120),i=n(o),a=t.AccountCloseIcon=function(){return i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},i.default.createElement("path",{d:"M8.63,6.5,13,10.87,10.87,13,6.5,8.63,2.13,13,0,10.87,4.37,6.5,0,2.13,2.14,0,6.5,4.37,10.87,0,13,2.13Z"}))};a.displayName="AccountCloseIcon"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PrivacyNoticeCta=void 0;var o=r(86),i=n(o),a=r(90),s=n(a),u=r(91),l=n(u),c=r(95),d=n(c),f=r(112),p=n(f),v=r(120),h=n(v),m=r(171),y=r(124),g=r(126),_=r(133),E=t.PrivacyNoticeCta=function(e){function t(e){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.showPrivacyNotice=r.showPrivacyNotice.bind(r),r}return(0,p.default)(t,e),(0,l.default)(t,[{key:"showPrivacyNotice",value:function(e){e.preventDefault(),y.istatsService.logClickEvent(g.ISTATS_ACTIONS.UploaderPrivacyLink);var t=this.props.privacyNotice;this.context.gotoStep({step:_.PRIVACY_NOTICE_STEP,stepProps:{privacyNotice:t}})}},{key:"render",value:function(){return h.default.createElement("div",{className:"privacy-notice-cta"},h.default.createElement(m.PrivacyNoticeCtaIcon,{className:"privacy-notice-cta__icon"}),h.default.createElement("span",{className:"privacy-notice__link"},"When you send stuff to the BBC ",h.default.createElement("a",{href:"/",onClick:this.showPrivacyNotice},"this is what we do with your personal information"),"."))}}]),t}(v.Component);E.displayName="PrivacyNoticeCta",E.propTypes={privacyNotice:v.PropTypes.string.isRequired},E.contextTypes={gotoStep:v.PropTypes.func.isRequired}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PrivacyNoticeCtaIcon=void 0;var o=r(120),i=n(o),a=r(121),s=n(a),u=t.PrivacyNoticeCtaIcon=function(e){var t=e.className;return i.default.createElement("svg",{className:(0,s.default)(t),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},i.default.createElement("title",null,"Emoji - Look"),i.default.createElement("circle",{cx:"30",cy:"30",r:"30",transform:"translate(-2.55 2.78) rotate(-5.1)",fill:"#ffd201"}),i.default.createElement("circle",{cx:"40.31",cy:"21.15",r:"7.9",fill:"#fff"}),i.default.createElement("ellipse",{cx:"43.63",cy:"21.35",rx:"4.41",ry:"4.57",fill:"#2b2b2b"}),i.default.createElement("path",{d:"M10.66,33.78a19.34,19.34,0,0,0,38.69.16Z",transform:"translate(0 0)",fill:"#2b2b2b"}),i.default.createElement("path",{d:"M29.95,43.11a11.35,11.35,0,0,0-10.52,7,19.44,19.44,0,0,0,10.47,3.14,19,19,0,0,0,10.5-3.06A11.21,11.21,0,0,0,29.95,43.11Z",transform:"translate(0 0)",fill:"#e63f23"}),i.default.createElement("circle",{cx:"19.67",cy:"21.15",r:"7.9",fill:"#fff"}),i.default.createElement("ellipse",{cx:"22.99",cy:"21.35",rx:"4.41",ry:"4.57",fill:"#2b2b2b"}))};u.displayName="PrivacyNoticeCtaIcon",u.propTypes={className:o.PropTypes.string}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getUserUploadPermission=t.checkUserAgeBracket=t.getSignedInMarkup=t.isUserSignedIn=void 0;var o=r(43),i=n(o),a=r(2),s=n(a),u=r(46),l=n(u),c=r(142),d=function(e){return"acc"===e?{customEndpoint:"https://web.archive.org/web/20190207191953/http://localhost:3000/wiremock/session/"+Morph.contextId+"/idcta/init"}:{}};t.isUserSignedIn=function(){var e=(0,l.default)(i.default.mark(function e(t){var r,n,o=t.env,a=t.idContext;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=d(o),n=(0,s.default)({env:o,context:a,purpose:"send your stuff"},r),e.next=4,(0,c.checkUserIsSignedIn)(n);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}(),t.getSignedInMarkup=function(){var e=(0,l.default)(i.default.mark(function e(t){var r,n,o=t.env;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=d(o),n=(0,s.default)({env:o},r),e.prev=2,e.next=5,(0,c.getSignedInUserMarkup)(n);case 5:return e.abrupt("return",e.sent);case 8:return e.prev=8,e.t0=e.catch(2),e.abrupt("return","");case 11:case"end":return e.stop()}},e,void 0,[[2,8]])}));return function(t){return e.apply(this,arguments)}}(),t.checkUserAgeBracket=function(){var e=(0,l.default)(i.default.mark(function e(t){var r=t.validAgeBrackets;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.checkSignedInUserAgeBracket)({validAgeBrackets:r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}(),t.getUserUploadPermission=function(){var e=(0,l.default)(i.default.mark(function e(t){var r,n,o=t.env,a=t.idContext;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=d(o),n=(0,s.default)({env:o,context:a,purpose:"send your stuff"},r),e.next=4,(0,c.checkForUploadPermission)(n);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}()},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.BackToSiteLink=void 0;var o=r(86),i=n(o),a=r(90),s=n(a),u=r(91),l=n(u),c=r(95),d=n(c),f=r(112),p=n(f),v=r(120),h=n(v),m=r(124),y=r(126),g=r(145),_=t.BackToSiteLink=function(e){function t(e){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.onBackLinkClicked=r.onBackLinkClicked.bind(r),r}return(0,p.default)(t,e),(0,l.default)(t,[{key:"onBackLinkClicked",value:function(e){e.preventDefault(),m.istatsService.logLinkEvent(y.ISTATS_ACTIONS.UploaderClose);var t=this.context.ptrt;(0,g.gotoUrl)(t)}},{key:"render",value:function(){var e=this.context,t=e.ptrt,r=e.siteName;return h.default.createElement("a",{href:t,className:"ugc-form__back-link",onClick:this.onBackLinkClicked},"Back to ",r)}}]),t}(v.Component);_.displayName="BackToSiteLink",_.contextTypes={siteName:v.PropTypes.string.isRequired,ptrt:v.PropTypes.string.isRequired}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.BbcBlocks=void 0;var o=r(120),i=n(o),a=t.BbcBlocks=function(){return i.default.createElement("div",{className:"bbc-blocks"},i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 73"},i.default.createElement("path",{d:"M89.26,0h77.47V72.9H89.26Zm59.06,48.33c0-6.62-4.39-11.66-11.45-13.59a12.9,12.9,0,0,0,4.52-3.61A11.37,11.37,0,0,0,143.57,24a12.65,12.65,0,0,0-4.22-9.5c-2.88-2.6-7.27-4.29-13.24-4.29H109.59V62.73H129c6.92,0,11.77-1.87,14.89-4.65A13,13,0,0,0,148.33,48.33Z",fill:"#272724"}),i.default.createElement("path",{d:"M138.69,47.29a6.17,6.17,0,0,1-2.1,4.84c-1.54,1.37-4.23,2.4-8.66,2.4H119V40.2h8.54c4,0,6.81.81,8.58,2.06a5.89,5.89,0,0,1,2.58,5",fill:"#272724"}),i.default.createElement("path",{d:"M131.45,30.13c1.67-1.2,2.46-2.89,2.48-5.44a5.54,5.54,0,0,0-1.76-4.36c-1.26-1.12-3.4-1.91-6.85-1.91H119V32h4.34c3.75,0,6.44-.67,8.12-1.87",fill:"#272724"}),i.default.createElement("path",{d:"M0,0H77.47V72.9H0ZM59.06,48.33c0-6.62-4.39-11.66-11.44-13.59a12.89,12.89,0,0,0,4.51-3.61A11.44,11.44,0,0,0,54.3,24a12.69,12.69,0,0,0-4.22-9.5c-2.88-2.6-7.26-4.29-13.24-4.29H20.32V62.73H39.7c6.91,0,11.77-1.87,14.89-4.65A13,13,0,0,0,59.06,48.33Z",fill:"#272724"}),i.default.createElement("path",{d:"M42.18,30.13a6.17,6.17,0,0,0,2.48-5.44,5.53,5.53,0,0,0-1.77-4.36c-1.26-1.12-3.39-1.91-6.85-1.91H29.73V32h4.33c3.75,0,6.44-.67,8.12-1.87",fill:"#272724"}),i.default.createElement("path",{d:"M46.85,42.26c-1.77-1.25-4.6-2.06-8.58-2.06H29.73V54.52h8.93c4.44,0,7.11-1,8.67-2.4a6.2,6.2,0,0,0,2.09-4.84,5.88,5.88,0,0,0-2.58-5",fill:"#272724"}),i.default.createElement("path",{d:"M178.53,0H256V72.9H178.53Zm62.08,48.67-1.24.76a36.22,36.22,0,0,1-18.45,5.62c-12.68,0-21-7.57-21.08-18.51,0-10.7,8.74-18.62,20.76-18.65,6.11,0,11.65,1.59,18.24,5.2l1.21.67V14l-.52-.21c-7.43-2.93-13.17-4.23-18.86-4.23-8.78,0-16.4,2.9-21.83,7.82a26.37,26.37,0,0,0-8.65,19.85,25.68,25.68,0,0,0,7.21,17.25c4.89,5.18,12.44,8.95,22.79,8.94h0a42.46,42.46,0,0,0,19.91-4.56l.46-.23Z",fill:"#272724"})))};a.displayName="BbcBlocks"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UploadingProgressStep=void 0;var o=r(43),i=n(o),a=r(46),s=n(a),u=r(86),l=n(u),c=r(90),d=n(c),f=r(91),p=n(f),v=r(95),h=n(v),m=r(112),y=n(m),g=r(120),_=n(g),E=r(124),b=r(126),T=r(156),S=r(145),w=r(147),C=r(176),k=r(133),P=r(168),I=r(177),A=r(174),O=r(178),x=2e3,R=100,N=3e3,M=99,F=t.UploadingProgressStep=function(e){function t(e){(0,d.default)(this,t);var r=(0,h.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return r.state={progress:0,ariaProgress:0},r}return(0,y.default)(t,e),(0,p.default)(t,[{key:"updateProgress",value:function(e){var t=this,r=0;this.progressIntervalHandle=setInterval(function(){var n=e.getProgress(),o=n<=M?n:M;r+=R,r>=N?(t.setState({ariaProgress:o,progress:o}),r=0):t.setState({progress:o})},R)}},{key:"stopProgressUpdates",value:function(){clearInterval(this.progressIntervalHandle)}},{key:"logViewEvent",value:function(e){var t=e.getFilesInfoLabelsForStats();E.istatsService.logViewEvent(b.ISTATS_ACTIONS.UploaderUploading,t)}},{key:"componentDidMount",value:function(){function e(){return t.apply(this,arguments)}var t=(0,s.default)(i.default.mark(function e(){var t,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,w.startTimer)(),r=this.props.uploadJob,this.logViewEvent(r),this.updateProgress(r),(0,S.scrollToTop)(),e.prev=5,e.next=8,(0,w.ensureMinAwaitTime)(r.getSubmissionResponse(),x);case 8:this.context.gotoStep({step:k.CONFIRMATION_STEP,stepProps:{uploadJob:r,uploadDuration:t.getDurationInSecond()}}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(5),this.gotoErrorStep(e.t0.code||"none",r,t.getDurationInSecond());case 14:case"end":return e.stop()}},e,this,[[5,11]])}));return e}()},{key:"componentWillUnmount",value:function(){this.stopProgressUpdates()}},{key:"gotoErrorStep",value:function(e,t,r){this.context.gotoStep({step:k.ERROR_STEP,stepProps:{errorCode:e,uploadJob:t,uploadDuration:r}})}},{key:"render",value:function(){var e=this.state,t=e.progress,r=e.ariaProgress;return _.default.createElement("div",null,_.default.createElement(C.LeavingSitePopup,null),_.default.createElement("header",{className:"ugc-step-header"},_.default.createElement("div",{className:"ugc-form-container-header"},_.default.createElement(A.BbcBlocks,null)),_.default.createElement(O.StepSummary,null,_.default.createElement("h1",{className:"ugc-form-submission-progress-step__title"},"Sending your stuff"),_.default.createElement("p",{className:"ugc-form-submission-progress-step__description"},"Please wait."))),_.default.createElement("div",{className:"ugc-form-submission-progress-step"},_.default.createElement(T.UgcBackground,{className:"ugc-background__aspect-container--background-with-icons"},t>0&&_.default.createElement("div",{className:"submission-progress"},_.default.createElement("span",{"aria-live":"polite",className:"ugc-hidden--offscreen"},r+"%"),_.default.createElement("span",{"aria-hidden":"true",className:"submission-progress__number"},t),_.default.createElement("span",{"aria-hidden":"true",className:"submission-progress__unit"},"%")),_.default.createElement(I.ProgressSpinner,null))),_.default.createElement(P.FullScreenCloseButton,null))}}]),t}(g.Component);F.displayName="UploadingProgressStep",F.propTypes={uploadJob:g.PropTypes.object},F.contextTypes={gotoStep:g.PropTypes.func.isRequired}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.LeavingSitePopup=void 0;var o=r(86),i=n(o),a=r(90),s=n(a),u=r(91),l=n(u),c=r(95),d=n(c),f=r(112),p=n(f),v=r(120),h=n(v),m=r(145);t.LeavingSitePopup=function(e){function t(e){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.handleLeavePage=r.handleLeavePage.bind(r),r}return(0,p.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){(0,m.addBrowserEventListener)("beforeunload",this.handleLeavePage)}},{key:"componentWillUnmount",value:function(){(0,m.removeBrowserEventListener)("beforeunload",this.handleLeavePage)}},{key:"handleLeavePage",value:function(e){var t="Changes you made may not be saved.";return e.returnValue=t,t}},{key:"render",value:function(){return h.default.createElement("noscript",null)}}]),t}(v.Component)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressSpinner=void 0;var o=r(120),i=n(o),a=t.ProgressSpinner=function(){return i.default.createElement("div",{className:"progress-spinner"},i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},i.default.createElement("path",{d:"M218.52,37.5,196.6,59.42A97,97,0,1,1,128,31l2,0,.63-31c-.87,0-1.74,0-2.61,0a128,128,0,1,0,90.52,37.5Z",fill:"#006def"}),i.default.createElement("path",{d:"M130.61,0,130,31A96.69,96.69,0,0,1,196.6,59.42L218.52,37.5A127.59,127.59,0,0,0,130.61,0Z",fill:"#fff"})))};a.displayName="ProgressSpinner"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.StepSummary=void 0;var o=r(86),i=n(o),a=r(90),s=n(a),u=r(91),l=n(u),c=r(95),d=n(c),f=r(112),p=n(f),v=r(120),h=n(v),m=r(145),y=t.StepSummary=function(e){function t(e){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.setContainerRef=r.setContainerRef.bind(r),r}return(0,p.default)(t,e),(0,l.default)(t,[{key:"setContainerRef",value:function(e){this.container=e}},{key:"componentDidMount",value:function(){(0,m.setFocusedElement)(this.container)}},{key:"render",value:function(){var e=this.props.children;return h.default.createElement("div",{className:"focusable--no-decoration",tabIndex:"-1",ref:this.setContainerRef},e)}}]),t}(v.Component);y.displayName="StepSummary",y.propTypes={children:v.PropTypes.oneOfType([v.PropTypes.arrayOf(v.PropTypes.node),v.PropTypes.node]),className:v.PropTypes.string}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ConfirmationStep=void 0;var o=r(2),i=n(o),a=r(86),s=n(a),u=r(90),l=n(u),c=r(91),d=n(c),f=r(95),p=n(f),v=r(112),h=n(v),m=r(120),y=n(m),g=r(124),_=r(126),E=r(156),b=r(180),T=r(138),S=r(145),w=r(173),C=r(133),k=r(168),P=r(174),I=r(178),A=t.ConfirmationStep=function(e){function t(e){(0,l.default)(this,t);var r=(0,p.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return r.onButtonClick=r.onButtonClick.bind(r),r.sendAnother=r.sendAnother.bind(r),r}return(0,h.default)(t,e),(0,d.default)(t,[{key:"onButtonClick",value:function(){g.istatsService.logEvent("confirmation_button",_.ISTATS_ACTIONS.UploaderClose);var e=this.context.ptrt;(0,S.gotoUrl)(e)}},{key:"sendAnother",value:function(e){e.preventDefault(),g.istatsService.logClickEvent(_.ISTATS_ACTIONS.UploaderReset),this.context.gotoStep({step:C.HOME_STEP,reset:!0})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.uploadJob,r=e.uploadDuration,n=(0,i.default)({},t.getFilesInfoLabelsForStats(),{uploader_time:r});g.istatsService.logViewEvent(_.ISTATS_ACTIONS.UploaderConfirmation,n),(0,S.scrollToTop)()}},{key:"render",value:function(){var e=this.context.siteName;return y.default.createElement("div",{className:"ugc-form-confirmation-step"},y.default.createElement("header",null,y.default.createElement("div",{className:"ugc-form-container-header"},y.default.createElement(P.BbcBlocks,null),y.default.createElement(w.BackToSiteLink,null)),y.default.createElement(I.StepSummary,null,y.default.createElement("h1",{className:"ugc-form-confirmation-step__title"},"All done!"),y.default.createElement("p",{className:"ugc-form-confirmation-step__description"},"We have your stuff! Thank you",y.default.createElement("span",{"aria-hidden":"true"}," 😃")))),y.default.createElement(E.UgcBackground,{className:"ugc-background__aspect-container--background-with-icons"},y.default.createElement("div",{className:"ugc-form-confirmation-step__ok-icon"},y.default.createElement(b.ConfirmationTickIcon,null))),y.default.createElement(T.UgcButton,{className:"ugc-form-confirmation-step__button",onClick:this.onButtonClick,text:"Back to "+e}),y.default.createElement("div",{className:"ugc-form-confirmation-step__summary"},y.default.createElement("h2",{className:"ugc-form-confirmation-step__summary-title"},"What happens next?"),y.default.createElement("p",{className:"ugc-form-confirmation-step__summary-description"},"The team at ",e," will take a look and we might decide to use what you've sent. We'll also send an email to your grown up to let them know you've sent us something."),y.default.createElement("br",null),y.default.createElement("p",{className:"ugc-form-confirmation-step__summary-description"},"Thanks for sending! 👏")),y.default.createElement("div",{className:"ugc-form-confirmation-step__send-another"},y.default.createElement("a",{href:"./",onClick:this.sendAnother},"Send something else")),y.default.createElement(k.FullScreenCloseButton,null))}}]),t}(m.Component);A.displayName="ConfirmationStep",A.propTypes={uploadJob:m.PropTypes.object.isRequired,uploadDuration:m.PropTypes.number},A.contextTypes={gotoStep:m.PropTypes.func.isRequired,siteName:m.PropTypes.string.isRequired,ptrt:m.PropTypes.string.isRequired}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ConfirmationTickIcon=void 0;var o=r(120),i=n(o),a=t.ConfirmationTickIcon=function(){return i.default.createElement("svg",{viewBox:"0 0 124 104"},i.default.createElement("g",null,i.default.createElement("polygon",{id:"Fill-6",fill:"#FFFFFF",points:"48.596 63.3559 18.58 38.2239 -1.13686838e-13 60.3269 30.007 85.4539 52.149 104.0009 70.739 81.8979 124 18.5519 101.858 0.0009"})))};a.displayName="ConfirmationTickIcon"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UploadErrorStep=void 0;var o=r(2),i=n(o),a=r(86),s=n(a),u=r(90),l=n(u),c=r(91),d=n(c),f=r(95),p=n(f),v=r(112),h=n(v),m=r(120),y=n(m),g=r(124),_=r(126),E=r(156),b=r(138),T=r(145),S=r(173),w=r(133),C=r(142),k=r(168),P=r(174),I=r(178),A=t.UploadErrorStep=function(e){function t(e){(0,l.default)(this,t);var r=(0,p.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e)),n=r.props.errorCode;return r.isNonRecoverableError=(0,C.isNonRecoverableError)(n),r.gotoPtrt=r.gotoPtrt.bind(r),r.tryAgain=r.tryAgain.bind(r),r}return(0,h.default)(t,e),(0,d.default)(t,[{key:"gotoPtrt",value:function(){var e=this.context.ptrt;g.istatsService.logEvent("error_button",_.ISTATS_ACTIONS.UploaderClose),(0,T.gotoUrl)(e)}},{key:"tryAgain",value:function(){g.istatsService.logClickEvent(_.ISTATS_ACTIONS.UploaderTryAgain),this.context.gotoStep({step:w.HOME_STEP,reset:!1})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.errorCode,r=e.uploadJob,n=e.uploadDuration,o=r.getFilesInfoLabelsForStats();g.istatsService.logViewEvent(_.ISTATS_ACTIONS.UploaderError,(0,i.default)({uploader_error_code:t},o,{uploader_time:n})),(0,T.scrollToTop)()}},{key:"render",value:function(){var e=this.context.siteName,t=this.isNonRecoverableError?"Back to "+e:"Try again",r=this.isNonRecoverableError?this.gotoPtrt:this.tryAgain,n="Please try again"+(this.isNonRecoverableError?" later":"")+".";return y.default.createElement("div",{className:"ugc-form-upload-error-step"},y.default.createElement("header",null,y.default.createElement("div",{className:"ugc-form-container-header"},y.default.createElement(P.BbcBlocks,null),y.default.createElement(S.BackToSiteLink,null)),y.default.createElement(I.StepSummary,null,y.default.createElement("h1",{className:"ugc-form-upload-error-step__title"},"Sorry, something went wrong"),y.default.createElement("p",{className:"ugc-form-upload-error-step__description"},"Your stuff didn't upload properly.",y.default.createElement("br",null),n))),y.default.createElement(E.UgcBackground,{className:"ugc-background__aspect-container--error-background"},y.default.createElement("div",{className:"ugc-form-upload-error-step__warning-ring"})),y.default.createElement(b.UgcButton,{className:"ugc-form-upload-error-step__button",onClick:r,text:t}),y.default.createElement(k.FullScreenCloseButton,null))}}]),t}(m.Component);A.displayName="UploadErrorStep",A.propTypes={errorCode:m.PropTypes.string.isRequired,uploadJob:m.PropTypes.object.isRequired,uploadDuration:m.PropTypes.number},A.contextTypes={gotoStep:m.PropTypes.func.isRequired,siteName:m.PropTypes.string.isRequired,ptrt:m.PropTypes.string.isRequired}},function(e,t,r){ "use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.AccountErrorStep=void 0;var o=r(2),i=n(o),a=r(86),s=n(a),u=r(90),l=n(u),c=r(91),d=n(c),f=r(95),p=n(f),v=r(112),h=n(v),m=r(120),y=n(m),g=r(142),_=r(183),E=r(124),b=r(126),T=r(173),S=r(168),w=r(184),C=r(186),k=r(174),P=r(187),I=t.AccountErrorStep=function(e){function t(){return(0,l.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,h.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){var e=this.props.accountErrorCode;E.istatsService.logViewEvent(b.ISTATS_ACTIONS.UploaderAccountError,{uploader_account_error:e})}},{key:"getAccountErrorComponent",value:function(e){var t={onButtonClick:this.onButtonClick,title:this.props.formData.title,description:this.props.formData.description,html:this.props.idHtml,idctaEnv:this.props.idctaEnv},r=this.props.formData.ageBracketsMessage;switch(e){case _.ID_FLAGPOLE_RED:case g.IDCTA_ERROR:return y.default.createElement(w.IdFlagpoleDown,t);case g.USER_INVALID_AGE_BRACKET_U13:case g.USER_INVALID_AGE_BRACKET_U16:case g.USER_INVALID_AGE_BRACKET_U18:case g.USER_INVALID_AGE_BRACKET_O18:return y.default.createElement(P.UserWrongAge,(0,i.default)({},t,{ageBracketsMessage:r}));case g.USER_NOT_SIGNED_IN:default:return y.default.createElement(C.IdctaError,t)}}},{key:"render",value:function(){var e=this.props.accountErrorCode;return y.default.createElement("div",{className:"ugc-form-account-error-step"},y.default.createElement("div",{className:"ugc-form-container-header"},y.default.createElement(k.BbcBlocks,null),y.default.createElement(T.BackToSiteLink,null)),this.getAccountErrorComponent(e),y.default.createElement(S.FullScreenCloseButton,null))}}]),t}(m.Component);I.displayName="AccountErrorStep",I.propTypes={formData:m.PropTypes.shape({title:m.PropTypes.string.isRequired,description:m.PropTypes.string.isRequired,ageBracketsMessage:m.PropTypes.string.isRequired}),accountErrorCode:m.PropTypes.string,idHtml:m.PropTypes.string,idctaEnv:m.PropTypes.string},I.defaultProps={accountErrorCode:g.IDCTA_ERROR}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ID_FLAGPOLE_RED="account_flagpole_down"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.IdFlagpoleDown=void 0;var o=r(86),i=n(o),a=r(90),s=n(a),u=r(91),l=n(u),c=r(95),d=n(c),f=r(112),p=n(f),v=r(120),h=n(v),m=r(156),y=r(138),g=r(185),_=r(124),E=r(126),b=r(145),T=t.IdFlagpoleDown=function(e){function t(e){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.onButtonClick=r.onButtonClick.bind(r),r}return(0,p.default)(t,e),(0,l.default)(t,[{key:"onButtonClick",value:function(){_.istatsService.logEvent("closed_button",E.ISTATS_ACTIONS.UploaderClose);var e=this.context.ptrt;(0,b.gotoUrl)(e)}},{key:"render",value:function(){var e=this.props.title,t=this.context.siteName;return h.default.createElement("div",null,h.default.createElement("h1",{className:"ugc-form-account-error-step__title"},e),h.default.createElement(m.UgcBackground,{className:"ugc-background__aspect-container--background-with-icons"},h.default.createElement("div",{className:"ugc-form-account-error-step__icon"},h.default.createElement(g.Sad,null))),h.default.createElement("div",{className:"ugc-form-account-error-step__summary"},h.default.createElement("h2",{className:"ugc-form-account-error-step__summary-title"},"Sorry, there was a problem loading this"),h.default.createElement("p",{className:"ugc-form-account-error-step__summary-description"},"Please come back and try again soon.")),h.default.createElement(y.UgcButton,{className:"ugc-form-account-error-step__button",onClick:this.onButtonClick,text:"Back to "+t}))}}]),t}(v.Component);T.displayName="IdFlagpoleDown",T.propTypes={title:v.PropTypes.string.isRequired},T.contextTypes={siteName:v.PropTypes.string.isRequired,ptrt:v.PropTypes.string.isRequired}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Sad=void 0;var o=r(120),i=n(o),a=t.Sad=function(){return i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},i.default.createElement("circle",{cx:"50%",cy:"50%",r:"50%",fill:"#ffd201"}),i.default.createElement("path",{d:"M38.25,146.84C43.2,135.48,73.13,123,73.13,123s11.21,30.43,6.25,41.79a22.44,22.44,0,0,1-41.13-18Z",fill:"#269dc8"}),i.default.createElement("g",{fill:"#2b2b2b"},i.default.createElement("path",{d:"M86.43,128.18a29.47,29.47,0,0,1-26.5-16.38,5,5,0,1,1,8.94-4.47,19.62,19.62,0,0,0,35.1,0,5,5,0,1,1,8.94,4.48A29.47,29.47,0,0,1,86.43,128.18Z"}),i.default.createElement("path",{d:"M167.93,128.18a29.47,29.47,0,0,1-26.5-16.38,5,5,0,1,1,8.94-4.47,19.62,19.62,0,0,0,35.1,0,5,5,0,1,1,8.94,4.48A29.47,29.47,0,0,1,167.93,128.18Z"}),i.default.createElement("path",{d:"M84.51,204a4.15,4.15,0,0,1-3.36-6.59c12.28-16.93,29.9-26.64,48.35-26.64,18,0,35.37,9.34,47.6,25.62a4.15,4.15,0,1,1-6.64,5c-10.8-14.38-25.34-22.3-41-22.3s-30.93,8.46-41.63,23.21A4.15,4.15,0,0,1,84.51,204Z"})))};a.displayName="Sad"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.IdctaError=void 0;var o=r(120),i=n(o),a=t.IdctaError=function(e){var t=e.html,r=e.title,n=e.description;return i.default.createElement("div",null,i.default.createElement("h1",{className:"ugc-form-account-error-step__title"},r),i.default.createElement("p",{className:"ugc-form-account-error-step__description"},n),i.default.createElement("div",{className:"ugc-form-account-error-step__id-message",dangerouslySetInnerHTML:{__html:t}}))};a.displayName="IdctaError",a.propTypes={html:o.PropTypes.string.isRequired,title:o.PropTypes.string.isRequired,description:o.PropTypes.string.isRequired}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.UserWrongAge=void 0;var o=r(43),i=n(o),a=r(46),s=n(a),u=r(86),l=n(u),c=r(90),d=n(c),f=r(91),p=n(f),v=r(95),h=n(v),m=r(112),y=n(m),g=r(120),_=n(g),E=r(172),b=t.UserWrongAge=function(e){function t(e){(0,d.default)(this,t);var r=(0,h.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return r.state={signedInMarkup:null},r}return(0,y.default)(t,e),(0,p.default)(t,[{key:"showSignInUserMessage",value:function(){function e(){return t.apply(this,arguments)}var t=(0,s.default)(i.default.mark(function e(){var t,r,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.idctaEnv,e.next=3,(0,E.getSignedInMarkup)({env:t});case 3:r=e.sent,n=r.idHtml,this.setState({signedInMarkup:n});case 6:case"end":return e.stop()}},e,this)}));return e}()},{key:"componentDidMount",value:function(){this.showSignInUserMessage()}},{key:"render",value:function(){var e=this.props.ageBracketsMessage;return _.default.createElement("div",null,_.default.createElement("h1",{className:"ugc-form-account-error-step__title"},"Are you ",e,"?"),_.default.createElement("p",{className:"ugc-form-account-error-step__description"},"To send your stuff here, you need to be ",e,". If you are, make sure you sign out of this account and sign into yours."),this.state.signedInMarkup&&_.default.createElement("div",{className:"ugc-form-account-error-step__id-message",dangerouslySetInnerHTML:{__html:this.state.signedInMarkup}}))}}]),t}(g.Component);b.displayName="UserWrongAge",b.propTypes={idctaEnv:g.PropTypes.oneOf(["test","live","acc"]).isRequired,ageBracketsMessage:g.PropTypes.string.isRequired}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ClosedStep=void 0;var o=r(2),i=n(o),a=r(86),s=n(a),u=r(90),l=n(u),c=r(91),d=n(c),f=r(95),p=n(f),v=r(112),h=n(v),m=r(120),y=n(m),g=r(124),_=r(126),E=r(156),b=r(138),T=r(145),S=r(173),w=r(185),C=r(168),k=r(189),P=r(174),I=t.ClosedStep=function(e){function t(e){(0,l.default)(this,t);var r=(0,p.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return r.onButtonClick=r.onButtonClick.bind(r),r.state=(0,i.default)({},r.getDetails()),r}return(0,h.default)(t,e),(0,d.default)(t,[{key:"onButtonClick",value:function(){g.istatsService.logEvent("closed_button",_.ISTATS_ACTIONS.UploaderClose);var e=this.context.ptrt;(0,T.gotoUrl)(e)}},{key:"getDetails",value:function(){var e=this.props.formData,t=e.formattedOpeningDateTime,r=e.formattedClosingDateTime,n=e.campaignStatus;switch(n){case k.NOT_YET_OPEN:return{heading:"Not open yet",description:y.default.createElement("span",null,"You can send your stuff from ",y.default.createElement("b",null,t),".")};case k.CLOSED:return{heading:"Now closed",description:y.default.createElement("span",null,"We closed this on ",y.default.createElement("b",null,r),".")};case k.SUSPENDED:default:return{heading:"This is closed at the moment",description:y.default.createElement("span",null,"Please come back and try again soon.")}}}},{key:"componentDidMount",value:function(){var e=this.props.formData.campaignStatus;g.istatsService.logViewEvent(_.ISTATS_ACTIONS.UploaderClosed,{uploader_closed_state:e})}},{key:"render",value:function(){var e=this.props.formData.title,t=this.state,r=t.heading,n=t.description,o=this.context.siteName;return y.default.createElement("div",{className:"ugc-form-closed-step"},y.default.createElement("div",{className:"ugc-form-container-header"},y.default.createElement(P.BbcBlocks,null),y.default.createElement(S.BackToSiteLink,null)),y.default.createElement("h1",{className:"ugc-form-closed-step__title"},e),y.default.createElement(E.UgcBackground,{className:"ugc-background__aspect-container--background-with-icons"},y.default.createElement("div",{className:"ugc-form-closed-step__icon"},y.default.createElement(w.Sad,null))),y.default.createElement("div",{className:"ugc-form-closed-step__summary"},y.default.createElement("h2",{className:"ugc-form-closed-step__summary-title"},r),y.default.createElement("p",{className:"ugc-form-closed-step__summary-description"},n)),y.default.createElement(b.UgcButton,{className:"ugc-form-closed-step__button",onClick:this.onButtonClick,text:"Back to "+o}),y.default.createElement(C.FullScreenCloseButton,null))}}]),t}(m.Component);I.displayName="ClosedStep",I.propTypes={formData:m.PropTypes.shape({title:m.PropTypes.string.isRequired,campaignStatus:m.PropTypes.oneOf(["notYetOpen","open","closed","suspended"]).isRequired,formattedOpeningDateTime:m.PropTypes.string.isRequired,formattedClosingDateTime:m.PropTypes.string.isRequired})},I.contextTypes={siteName:m.PropTypes.string.isRequired,ptrt:m.PropTypes.string.isRequired}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.OPEN="open",t.NOT_YET_OPEN="notYetOpen",t.CLOSED="closed",t.SUSPENDED="suspended"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PrivacyNoticeStep=void 0;var o=r(86),i=n(o),a=r(90),s=n(a),u=r(91),l=n(u),c=r(95),d=n(c),f=r(112),p=n(f),v=r(120),h=n(v),m=r(124),y=r(126),g=r(138),_=r(133),E=r(168),b=r(145),T=r(174),S=r(178),w=t.PrivacyNoticeStep=function(e){function t(e){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.backToHome=r.backToHome.bind(r),r}return(0,p.default)(t,e),(0,l.default)(t,[{key:"backToHome",value:function(e,t){e.preventDefault();var r=t?"button":"close_button";m.istatsService.logEvent(r,y.ISTATS_ACTIONS.UploaderClosePrivacy),this.context.gotoStep({step:_.HOME_STEP,reset:!1})}},{key:"componentDidMount",value:function(){m.istatsService.logViewEvent(y.ISTATS_ACTIONS.UploaderPrivacy),(0,b.scrollToTop)()}},{key:"render",value:function(){var e=this,t=this.props.privacyNotice;return h.default.createElement("div",{className:"ugc-form-privacy-notice-step"},h.default.createElement("header",null,h.default.createElement("div",{className:"ugc-form-container-header"},h.default.createElement(T.BbcBlocks,null)),h.default.createElement(S.StepSummary,null,h.default.createElement("h1",{className:"ugc-form-privacy-notice-step__title"},"What happens to your information?"))),h.default.createElement("div",{className:"ugc-form-privacy-notice-step__text",dangerouslySetInnerHTML:{__html:t}}),h.default.createElement(g.UgcButton,{className:"ugc-form-privacy-notice-step__button",onClick:function(t){return e.backToHome(t,!1)},text:"Got it – take me back"}),h.default.createElement(E.FullScreenCloseButton,{onClick:function(t){return e.backToHome(t,!0)},ariaLabel:"Back to form"}))}}]),t}(v.Component);w.displayName="PrivacyNoticeStep",w.propTypes={privacyNotice:v.PropTypes.string.isRequired},w.contextTypes={gotoStep:v.PropTypes.func.isRequired}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isRelativeUrl=function(e){return Boolean(e&&0===e.indexOf("/"))}},function(e,t){e.exports=function(){return"//"+Morph.config.cdn+"/modules/bbc-morph-ugc-form-view/1.47.2"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.VALID_THEMES=["cbbc","cbeebies","ownit"]}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-gel-icons@2.2.0"]={"bbc-morph-classnames":"1.0.1","morph-require":"3.0.17",react:"0.14.7"},function(e){function r(t){if(o[t])return o[t].exports;var n=o[t]={exports:{},id:t,loaded:!1};return e[t].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}var o={};return r.m=e,r.c=o,r.p="",r(0)}([function(e,r,o){Morph.modules["bbc-morph-gel-icons@2.2.0/gel-icon-loading"]=o(1)},function(e,r,o){var t=o(2);e.exports=function(){return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},t.createElement("path",{d:"M29.8 8l-3.5 2c1 1.8 1.6 3.8 1.6 6 0 6.6-5.4 12-12 12S4 22.6 4 16 9.4 4 16 4V0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16c0-2.9-.8-5.6-2.2-8z"}))}},function(e,r){e.exports=React}]);; });</script> <script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-id-availability-data/version/1.0.0', {"meta":{"responseCode":200,"errorMessage":null,"headers":{"x-morph-privacy-level":"public","content-type":"application\/json"}},"body":{"isAvailable":true}}); });</script> <script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-ugc-form-data/campaignUid/u3152038/version/2.5.1', {"meta":{"responseCode":200,"errorMessage":null,"headers":{"x-morph-privacy-level":"public","content-type":"application\/json"}},"body":{"campaignStatus":"open","openingDateTime":"","closingDateTime":"","formattedOpeningDateTime":"","formattedClosingDateTime":"","validAgeBrackets":["u13"],"ageBracketsMessage":"12 or under","title":"CBBC Picture Maker","description":"Send us your amazing CBBC Picture Maker creations!","sections":[{"fields":[{"uiElement":"file","type":"file","id":"u3152038","validation":{"max":1,"min":1,"fileTypes":["image\/jpeg","image\/png","image\/gif"]}},{"uiElement":"textarea","type":"description","id":"description","validation":{"mandatory":false}}]}],"privacyNotice":{"default":"<p>Awesome! You want to know more.<\/p>\n<p>If you&rsquo;re seeing this page it means that your parent or guardian has said &lsquo;yes&rsquo; to you sharing your creations with us. Fantastic! We&rsquo;d love to see your masterpiece.<\/p>\n<p>When you send your creation, like a drawing, photo, or video, to us, we might ask you to tell us about it. But please don&rsquo;t give us other information about you that&rsquo;s personal, like your date of birth, full name or home address. And don&rsquo;t give us private information about you or your friends or family.<\/p>\n<p>Whatever information about you we have, we promise to always keep it safe.<\/p>\n<p>We might publish your creation. This means it might be shown on one of our TV shows or online, for everyone to see. If we publish your creation, we can use it anywhere in the world, forever and in all types of media. We store any information about the creation for 7 years.<\/p>\n<p>If we don&rsquo;t publish your creation, we&rsquo;ll delete the creation and information about it from our systems within 2 years.<\/p>\n<p>We get a company called ICUC.Social to help us check the creations you send us to make sure that the creations we publish are safe and suitable. They will keep your information safe too.<\/p>\n<p>If you&rsquo;re curious, find out more on how we handle information about you in this <a title=\"Privacy Notice for Children's Uploads\" href=\"https:\/\/www.bbc.co.uk\/usingthebbc\/privacy\/childrens-uploads-privacy-notice\/\">Privacy Notice for Children&rsquo;s Uploads<\/a>.<\/p>"},"env":"live"}}); });</script> <script>Morph.toInit.registers.push(function() { Morph.register({"view":"bbc-morph-ugc-form-view","campaignUid":"u3152038","idctaEnv":"live","ptrt":"\/cbbc\/games\/cbbc-picture-maker","signInContext":"cbbc","siteName":"CBBC","siteUrl":"\/cbbc","theme":"cbbc","version":"1.47.2","_mrrVersion":"2.0.12"},'u8013039839887096'); });</script> <script>Morph.init = function() { if (!Morph.initCalled) { Morph.markPerformance('morph-init'); Morph.initCalled = true; requirejs.config({ paths: { 'morph/react' : '//web.archive.org/web/20190207191953/https://m.files.bbci.co.uk/modules/vendor-react/1.0.0/react.min', 'morph/react-dom' : '//web.archive.org/web/20190207191953/https://m.files.bbci.co.uk/modules/vendor-react-dom/1.0.0/react-dom.min', 'morph/es5-shim' : '//web.archive.org/web/20190207191953/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-shim.min', 'morph/es5-sham' : '//web.archive.org/web/20190207191953/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-sham.min', 'morph/module/morph': '//web.archive.org/web/20190207191953/https://m.files.bbci.co.uk/modules/morph/5.3.1/bundle', 'live-push' : '//web.archive.org/web/20190207191953/https://push.api.bbci.co.uk/public/client' }, shim: { 'morph/react': { deps: ['morph/es5-shim', 'morph/es5-sham'] }, 'morph/es5-sham': { deps: ['morph/es5-shim'] } }, map: { 'morph/react-dom': { 'react': 'morph/react' } } }); } function attempt(fn) { fn(); } requirejs(['morph/react', 'morph/react-dom', 'morph/module/morph'], function(React, ReactDOM) { window.React = React; window.ReactDOM = ReactDOM; if (!Morph.toInitsCalled) { Morph.markPerformance('morph-init-core-deps-complete'); Morph.toInitsCalled = true; } Morph.toInit.bundles.forEach(attempt); Morph.toInit.bundles = []; Morph.markPerformance('morph-init-bundles-complete'); Morph.toInit.payloads.forEach(attempt); Morph.toInit.payloads = []; Morph.markPerformance('morph-init-payloads-complete'); Morph.toInit.registers.forEach(attempt); Morph.toInit.registers = []; Morph.markPerformance('morph-init-registers-complete'); }); };</script> <script>if (!Morph.manualInit) { Morph.init(); } /* u8013039839887096 */</script> <script type="text/javascript"> var cookiePolicy = window.bbccookies.readPolicy(); if (true || cookiePolicy.performance) { var _sf_async_config = {"domain":"bbc.co.uk","region":"domestic","uid":50924,"sections":"childrens, cbbc"}; _sf_async_config.path = window.location.pathname; (function () { function loadChartbeat() { window._sf_endpt = (new Date()).getTime(); var e = document.createElement("script"); e.setAttribute("language", "javascript"); e.setAttribute("type", "text/javascript"); e.setAttribute('src', "//web.archive.org/web/20190207191953/https://static.chartbeat.com/js/chartbeat.js"); document.body.appendChild(e); } var oldonload = window.onload; window.onload = (typeof window.onload != "function") ? loadChartbeat : function () { oldonload(); loadChartbeat(); }; })(); } </script> </div> <div id="orb-footer" class="orb-footer" dir="ltr"><div id="navp-orb-footer-promo"></div><aside role="complementary"><div id="orb-aside" class="orb-nav-sec b-r b-g-p"><div class="orb-footer-inner" role="navigation" aria-label="BBC"><h2 class="orb-footer-lead">Explore the BBC</h2><div class="orb-footer-primary-links"><ul><li class="orb-nav-cbbc"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/cbbc">CBBC</a></li><li class="orb-nav-iplayer orb-d"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/tv/cbbc">CBBC iPlayer</a></li><li class="orb-nav-newsround"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/newsround">Newsround</a></li><li class="orb-nav-bitesize orb-d"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.com/bitesize">Bitesize</a></li><li class="orb-nav-ownit orb-d"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.com/ownit">Own It</a></li><li class="orb-nav-cbeebies"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/cbeebies">CBeebies</a></li><li class="orb-nav-cbbctv"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/iplayer/guide/cbbc">CBBC on TV</a></li><li class="orb-nav-cbbchelp orb-d"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/cbbc/curations/cbbc-help">CBBC Help</a></li></ul></div></div></div></aside><footer role="contentinfo"><div id="orb-contentinfo" class="orb-nav-sec b-r b-g-p"><script>window.orb.worldwideFooterlinks = '<li class="orb-footer-ads"><a href="https://web.archive.org/web/20190207191953/https://advertising.bbcworldwide.com/">Advertise with us<'+'/a><'+'/li><li class="orb-footer-adchoices"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.com/usingthebbc/cookies/how-does-the-bbc-use-cookies-for-advertising/">Ad choices<'+'/a><'+'/li>';</script><div class="orb-footer-inner"><ul><li class="orb-footer-terms"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/usingthebbc/terms/">Terms of Use</a></li><li class="orb-footer-about"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/aboutthebbc">About the BBC</a></li><li class="orb-footer-privacy"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/usingthebbc/privacy/">Privacy Policy</a></li><li class="orb-footer-cookies"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/usingthebbc/cookies/">Cookies</a></li><li class="orb-footer-accessibility"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/accessibility/">Accessibility Help</a></li><li class="orb-footer-parental"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/guidance">Parental Guidance</a></li><li class="orb-footer-contact"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/contact">Contact the BBC</a></li><li class="orb-footer-newsletter"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/bbcnewsletter">Get Personalised Newsletters</a></li></ul><small><em class="orb-hilight">Copyright &copy; 2019 BBC.</em> The BBC is not responsible for the content of external sites. <span class="orb-footer-links"><a href="https://web.archive.org/web/20190207191953/https://www.bbc.co.uk/help/web/links/" class="orb-hilight">Read about our approach to external linking.</a></span></small></div></div></footer></div><script id="orb-js-script" data-assetpath="https://nav.files.bbci.co.uk/orbit/2.0.0-484.dce9fee/" src="https://web.archive.org/web/20190207191953js_/https://nav.files.bbci.co.uk/orbit/2.0.0-484.dce9fee/js/orb.min.js"></script><script type="text/javascript">require(['orb/lib/_$'], function($) { $.ready(function() { initialiseFooter(); }); var scrollCheckTimer; var didScroll; var previousPosition = 0; var delta = 5; var PROMO_SHOW_BREAKPOINT = 1500; var pageLength = 0; function initialiseFooter() { // Suppress this feature on browsers we no longer test var myNav = navigator.userAgent.toLowerCase(); var oldIE = (myNav.indexOf('msie') !== -1) && parseInt(myNav.split('msie')[1], 10) <= 10; if (!oldIE) { require(['orb/cookies'], function (bbccookies) { var disabledByCookie = (parseInt(bbccookies.get('ckns_nav_promofail')) || 0) >= 3; if (!disabledByCookie) { require(['orb/fig'], function (orbFig) { orbFig.load(function (fig) { if (fig.geo.isUK()) { setUpLazyLoading(); } }); }); } }); } } function setUpLazyLoading() { // offsetHeight is expensive to calculate, only do it once. pageLength = Math.abs(document.body.offsetHeight); if (pageLength < getViewportHeight() + 300 || pageLength - getCurrentPosition() < PROMO_SHOW_BREAKPOINT) { loadPromo(); } else { window.onscroll = function () { didScroll = true; }; scrollCheckTimer = setInterval(function () { if (didScroll) { hasScrolled(); didScroll = false; } }, 250); } } function loadPromo() { clearInterval(scrollCheckTimer); require(['orb/async/_footerpromo'], function(promo) { promo.init('https://web.archive.org/web/20190207191953/https://navpromo.api.bbci.co.uk', 'cbbc'); }); } function getViewportHeight() { return window.innerHeight; } function getCurrentPosition() { return Math.abs(window.scrollY || document.body.scrollTop || document.documentElement.scrollTop); } function hasScrolled() { var currentPosition = getCurrentPosition(); if (Math.abs(previousPosition - currentPosition) <= delta) { return; } if (currentPosition > previousPosition) { if ((pageLength - currentPosition) <= PROMO_SHOW_BREAKPOINT) { loadPromo(); } } previousPosition = currentPosition; } })</script><script type="text/javascript">/*<![CDATA[*/ require(['orb/fig', 'orb/nav'], function(fig, nav) { fig.load(function(fig) { if (fig.geo.isUK()) { nav.loadJs('https://web.archive.org/web/20190207191953/https://nav.files.bbci.co.uk/orbit/2.0.0-484.dce9fee/js/edr.min.js'); } }); }); /*]]>*/</script><script type="text/javascript">require(["istats-1","orb/cookies"],function(o,t){if(t.isAllowed("s1"))try{if(!require.s.contexts._.config.paths.idcta)return void i();require(["idcta/idcta-1"],function(t){t&&"function"==typeof t.getIStatsLabels&&o.addLabels(t.getIStatsLabels()),i()},function(t){throw t})}catch(t){console&&"function"==typeof console.log&&console.log("an exception occurred while adding idcta labels to istats, invoking istats without them",t),i()}function i(){o.invoke()}});</script><script type="text/javascript">if (window.SEARCHBOX.suppress === false && window.SEARCHBOX.locale && /^en-?.*?/.test(window.SEARCHBOX.locale)) { require.config({ paths: { "search/searchbox": window.SEARCHBOX.searchboxAppStaticPrefix, } }); if (bbcuser && bbcuser.isUKCombined) { bbcuser.isUKCombined().then(function (isUK) { if (isUK) { require(['search/searchbox/searchboxDrawer'], function (SearchboxDrawer) { SearchboxDrawer.run(window.SEARCHBOX); }); } }); } }</script><!-- BBCDOTCOM bodyLast --><div class="bbccom_display_none"><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && window.bbcdotcom.analytics && bbcdotcom.config && !bbcdotcom.config.isSportApp() && !bbcdotcom.config.isReel()) { bbcdotcom.analytics.page(); } /*]]>*/</script><noscript><img src="//web.archive.org/web/20190207191953im_/https://ssc.api.bbc.com/?c1=2&amp;c2=19293874&amp;ns_site=bbc&amp;name=" height="1" width="1" alt=""></noscript><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.currencyProviders) { bbcdotcom.currencyProviders.write(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.currencyProviders) { bbcdotcom.currencyProviders.postWrite(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.stats && bbcdotcom.data.stats === 1 && bbcdotcom.utils && window.location.pathname === '/' && window.bbccookies && bbccookies.readPolicy('performance') ) { var wwhpEdition = bbcdotcom.utils.getMetaPropertyContent('wwhp-edition'); var _sf_async_config={}; /** CONFIGURATION START **/ _sf_async_config.uid = 50924; _sf_async_config.domain = "bbc.co.uk"; _sf_async_config.title = "Homepage"+(wwhpEdition !== '' ? ' - '+wwhpEdition : ''); _sf_async_config.sections = "Homepage"+(wwhpEdition !== '' ? ', Homepage - '+wwhpEdition : ''); _sf_async_config.region = wwhpEdition; _sf_async_config.path = "/"+(wwhpEdition !== '' ? '?'+wwhpEdition : ''); /** CONFIGURATION END **/ (function(){ function loadChartbeat() { window._sf_endpt=(new Date()).getTime(); var e = document.createElement("script"); e.setAttribute("language", "javascript"); e.setAttribute("type", "text/javascript"); e.setAttribute('src', '//web.archive.org/web/20190207191953/https://static.chartbeat.com/js/chartbeat.js'); document.body.appendChild(e); } var oldonload = window.onload; window.onload = (typeof window.onload != "function") ? loadChartbeat : function() { oldonload(); loadChartbeat(); }; })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function() { window.bbcdotcom.bodyLast = true; }()); /*]]>*/</script></div><!-- BBCDOTCOM all code in page --><script>"use strict";define("orb/cookies-adapter",["orb/cookies"],function(c){function e(e){return c._setPolicy("ads",e),c._setPolicy("personalisation",e),c._setPolicy("performance",e),c._setPolicy("necessary",e)}return{isOrbitEnvironment:function(){return"object"==typeof bbccookies&&"function"!=typeof bbccookies._getCookieName},set:function(e,n){var o=new Date;if(o.setYear(o.getFullYear()+1),this.isOrbitEnvironment())return c.set(e,n,{domain:c._getCurrentDomain(),path:"/",expires:o});var i=window.location.host.match(/(.bbc(?:\.co\.uk))(:\d+)?(\/.*)?$/i),t=e+"="+n+";domain="+(i&&".bbc.co.uk"===i[1]?".bbc.co.uk":".bbc.com")+";path=/;expires="+o.toUTCString()+";";return c.set(t)},get:function(e){return this.isOrbitEnvironment()?c.get(e):c.getCrumb(e)},copyPolicyCookiesCrossDomain:function(e){if(this.isOrbitEnvironment())return c.copyPolicyCookiesCrossDomain(e);e()},setDefaultCookiesSingleDomain:function(){return this.isOrbitEnvironment()?c.setDefaultCookiesSingleDomain():e(!1)},setDefaultCookiesCrossDomain:function(){return this.isOrbitEnvironment()?c.setDefaultCookiesCrossDomain():e(!1)},optInToAllCookiesCrossDomain:function(){if(this.isOrbitEnvironment()){return c.setCookiePolicyCrossDomain({ads:!0,personalisation:!0,performance:!0,necessary:!0})}return e(!0)},isCookiePolicySet:function(){return this.isOrbitEnvironment()?c.isCookiePolicySet():null!==this.get("ckns_policy")}}}),require(["orb/lib/_script","orb/cookies-adapter"],function(s,r){var a="ckns_privacy",b="ckns_explicit",l="1";function t(){var e=r.get(b);return null!==e&&e===l}function u(e,n){e.style.display="none",n.style.display="none"}function k(e,n){t()||(e.style.display="none",n.style.display="block",window.bbcpage.trackRegion(n,{linkLocation:"nav-banner-cookies"}),window.bbcuser.logEvent("view","nav-banner-cookies"))}function c(){var e=document.getElementById("bbcprivacy"),n=document.getElementById("bbccookies");document.getElementById("bbcprivacy-continue-button").addEventListener("click",function(){u(e,n),k(e,n),window.bbcuser.logEvent("click-cta","nav-banner-privacy")}),document.getElementById("bbccookies-continue-button").addEventListener("click",function(){u(e,n),window.bbcuser.logEvent("click-continue","nav-banner-cookies"),r.optInToAllCookiesCrossDomain(),r.set(b,l)});var o,i,t,c=document.getElementById("bbccookies-settings").getElementsByTagName("a")[0];c.addEventListener("click",(o=!1,function(e){o||(r.copyPolicyCookiesCrossDomain(function(){o=!0,c.click()}),r.set(b,l),e.preventDefault())})),null!==r.get(a)?k(e,n):(t=n,(i=e).style.display="block",t.style.display="none",window.bbcpage.trackRegion(i,{linkLocation:"nav-banner-privacy"}),window.bbcuser.logEvent("view","nav-banner-privacy"),r.set(a,"1"))}function m(e,c,r){var n,o,i="https://web.archive.org/web/20190207191953/https://nav.files.bbci.co.uk/orbit-webmodules/0.0.1-231.1bf8081/cookie-banner//cookie-prompt/",t=i+(o="en","string"==typeof(n=e)&&2<=n.length&&(o=n.trim().substring(0,2).toLowerCase()),-1!==["en","cy","gd","ga"].indexOf(o)?o:"en")+".min.js";window.bbcpage.loadCSS("https://web.archive.org/web/20190207191953/https://nav.files.bbci.co.uk/orbit-webmodules/0.0.1-231.1bf8081/cookie-banner//cookie-prompt/bbccookies.min.css").then(function(){s.jsonp(t,function(e){var n=e.replace(/<<bbcUrlPrefix>>/g,function(){if(window.orb.bbcUrlPrefix){var e=window.orb.bbcUrlPrefix+"bbc.com",n=window.location.host.match(/(bbc(?:\.co\.uk))(:\d+)?(\/.*)?$/i);return n&&"bbc.co.uk"===n[1]&&(e=e.replace("bbc.com","bbc.co.uk")),e}return""}());document.getElementById("cookiePrompt").innerHTML=n;for(var o=document.querySelectorAll("[data-region-filter]"),i=0;i<o.length;i++){var t=o[i];t.getAttribute("data-region-filter")!==r&&(t.style.display="none")}c()},{callbackName:"cookiePrompt"})})}Promise.all([window.bbcuser.isUKCombined(),window.bbcuser.isEU(),window.bbcpage.getLanguage()]).then(function(e){var n=e[0];if(e[1]||n){var o=null!==r.get(a);if(!(r.isCookiePolicySet()&&t()&&o)){t()||r.set(b,"0"),r.isCookiePolicySet()||r.setDefaultCookiesSingleDomain();var i=n?"gb":"eu";m(e[2],c,i)}}}).catch(function(){m("en",c,"gb")})});</script><script type="text/javascript">"use strict";require(["reverb"],function(t){var n=function(){if(window&&window.bbcpage){return Promise.all(["getName","getDestination","getProducer","getSection","getContentId","getContentType","getLanguage","getAdditionalProperties"].map(function(e){return t=e,window.bbcpage[t]&&"function"==typeof window.bbcpage[t]?window.bbcpage[t]():Promise.resolve(null);var t})).then(function(e){return{name:e[0],destination:e[1],producer:e[2],section:e[3],contentId:e[4],contentType:e[5],language:e[6],additionalProperties:e[7]}})}return Promise.resolve(void 0)},o={},i=function(e){return e&&t.setUserInfo(e.bbc_hid,"1"===e.bbc_identity),t.invoke({useAti:!0,atiOpts:o},function(){n().then(function(e){e&&(t.setDestination(e.destination),e.producer&&t.setProducer(e.producer),e.name&&t.setPageName(e.name),t.trackPage(e))}).catch(function(e){console.log(e)})})};try{if(!require.s.contexts._.config.paths.idcta)return i();require(["idcta/idcta-1"],function(e){var t=e.getIStatsLabels();return i(t)},function(e){throw e})}catch(e){return console&&"function"==typeof console.log&&console.log("an exception occurred while adding idcta labels to Reverb, invoking Reverb without them",e),i()}});</script><script>require(["detectview","parseContentForEvent"],function(t,n){t(["[data-bbc-context]","[data-bbc-container]"],function(t){var e=new CustomEvent("bbc-user-event",{bubbles:!0,detail:n(t)});t.dispatchEvent(e)})}),require(["parseContentForEvent","getParentWithSelector"],function(o,a){document.body.addEventListener("click",function(t){var e=a(t.target,"[data-bbc-container]"),n=a(t.target,"a");if(e&&n){var r=o(e);r.elem=n,r.originalEvent=t;var i=new CustomEvent("bbc-user-click",{bubbles:!0,detail:r});n.dispatchEvent(i)}})}),define("getParentWithSelector",function(){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),function t(e,n){return e.matches(n)?e:!!e.parentElement&&t(e.parentElement,n)}}),define("parseContentForEvent",["getParentWithSelector"],function(o){return function(t){return{container:t.getAttribute("data-bbc-container")||t.getAttribute("data-bbc-context"),label:(i=t,encodeURIComponent(i.getAttribute("data-bbc-title")||i.getAttribute("data-bbc-content-label")||i.innerText.split("\n")[0])),type:"cpv",source:(r=t,r.getAttribute("data-bbc-source")||r.innerText.trim().split("\n").pop()),personalisation:function(t){var e=o(t,"[data-bbc-personalisation]");if(e)return JSON.parse(e.getAttribute("data-bbc-personalisation"));var n=o(t,"[data-stats]");if(!n)return{};var r=JSON.parse(n.getAttribute("data-stats"));return{SEG:r.hp_sgm_id+"::"+r.hp_sgm_user_score}}(t),metadata:(e=t,n=o(e,"[data-bbc-metadata]"),n?JSON.parse(n.getAttribute("data-bbc-metadata")):{}),result:function t(e){if(e.hasAttribute("href"))return encodeURIComponent(e.getAttribute("href"));for(var n=e.children,r=0;r<n.length;r++){var i=t(n[r]);if(null!==i)return i}return null}(t)};var e,n,r,i}}),define("detectview",["verge","throttle"],function(d,s){return function(t,i,e){var o=[],n=(e=e||{}).throttleWaitMs||250,a=e.elementViewedFraction||.5,u=e.elementViewedDurationMs||1e3,c=function(t){return-1<o.indexOf(t)},l=function(t,e){var n=d.rectangle(t),r=d.inY(t,n.height*e*-1);return d.inX(t,n.width*e*-1)&&r},f=function(t,e,n,r){l(t,e)&&setTimeout(function(){l(t,e)&&!c(t)&&(o.push(t),r(t))},n)},r=function(){t.forEach(function(t){for(var e=document.querySelectorAll(t),n=0;n<e.length;n++){var r=e[n];c(r)||f(r,a,u,i)}})};r=s(r,n),["scroll","resize","load"].forEach(function(t){window.addEventListener(t,r)}),r()}}),define("throttle",function(){return function(n,r,i){var o,a,u,c=null,l=0;i||(i={});var f=function(){l=!1===i.leading?0:Date.now(),c=null,u=n.apply(o,a),c||(o=a=null)};return function(){var t=Date.now();l||!1!==i.leading||(l=t);var e=r-(t-l);return o=this,a=arguments,e<=0||r<e?(c&&(clearTimeout(c),c=null),l=t,u=n.apply(o,a),c||(o=a=null)):c||!1===i.trailing||(c=setTimeout(f,e)),u}}}),define("verge",[],function(){var t={},n="undefined"!=typeof window&&window,e="undefined"!=typeof document&&document,r=e&&e.documentElement,i=n.matchMedia||n.msMatchMedia,o=i?function(t){return!!i.call(n,t).matches}:function(){return!1},a=t.viewportW=function(){var t=r.clientWidth,e=n.innerWidth;return t<e?e:t},u=t.viewportH=function(){var t=r.clientHeight,e=n.innerHeight;return t<e?e:t};function c(){return{width:a(),height:u()}}function l(t,e){return!(!(t=t&&!t.nodeType?t[0]:t)||1!==t.nodeType)&&(n=t.getBoundingClientRect(),r=+(r=e)||0,(i={}).width=(i.right=n.right+r)-(i.left=n.left-r),i.height=(i.bottom=n.bottom+r)-(i.top=n.top-r),i);var n,r,i}return t.mq=o,t.matchMedia=i?function(){return i.apply(n,arguments)}:function(){return{}},t.viewport=c,t.scrollX=function(){return n.pageXOffset||r.scrollLeft},t.scrollY=function(){return n.pageYOffset||r.scrollTop},t.rectangle=l,t.aspect=function(t){var e=(t=null==t?c():1===t.nodeType?l(t):t).height,n=t.width;return e="function"==typeof e?e.call(t):e,(n="function"==typeof n?n.call(t):n)/e},t.inX=function(t,e){var n=l(t,e);return!!n&&0<=n.right&&n.left<=a()},t.inY=function(t,e){var n=l(t,e);return!!n&&0<=n.bottom&&n.top<=u()},t.inViewport=function(t,e){var n=l(t,e);return!!n&&0<=n.bottom&&0<=n.right&&n.top<=u()&&n.left<=a()},t});</script> </body> </html> <!-- FILE ARCHIVED ON 19:19:53 Feb 07, 2019 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 17:02:49 Nov 28, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.655 exclusion.robots: 0.027 exclusion.robots.policy: 0.016 esindex: 0.012 cdx.remote: 34.865 LoadShardBlock: 103.008 (3) PetaboxLoader3.datanode: 110.311 (4) PetaboxLoader3.resolve: 90.217 (2) load_resource: 127.602 -->

Pages: 1 2 3 4 5 6 7 8 9 10