diff --git a/dist/js/embedded-content-cookie-compliance.min.js b/dist/js/embedded-content-cookie-compliance.min.js index d0ad8d236..dcdb5bfbf 100644 --- a/dist/js/embedded-content-cookie-compliance.min.js +++ b/dist/js/embedded-content-cookie-compliance.min.js @@ -1 +1 @@ -!function(e,Drupal,drupalSettings){function t(){if(void 0!==Drupal.eu_cookie_compliance&&Drupal.eu_cookie_compliance.hasAgreed("preference")&&Drupal.eu_cookie_compliance.hasAgreed("statistics")){for(const[t,i]of Object.entries(drupalSettings.embedded_media_attributes)){const a=document.createElement("iframe");a.classList.add("media-oembed-content"),a.src=i.src,a.height=i.height,a.width=i.width,a.title=i.title;const o=document.createElement("a");o.classList.add("focusable","skip-link","skip-link--map--before"),o.href=`#${i.skipLinkAfterId}`,o.id=i.skipLinkBeforeId;const n=document.createElement("a");n.classList.add("focusable","skip-link","skip-link--map--after"),n.href=`#${i.skipLinkBeforeId}`,n.id=i.skipLinkAfterId;const c=document.createElement("div");c.appendChild(a),"video"===i.type?(c.classList.add("responsive-video-container"),e(`.embedded-content-cookie-compliance.media-${t}`).empty().append(c).removeClass(`media-${t}`)):"map"===i.type&&(c.classList.add("responsive-map-container"),n.text=Drupal.t("Continue above the map",{},{context:"Skip link after the map for the map paragraph"}),o.text=Drupal.t("Continue below the map",{},{context:"Skip link before the map for the map paragraph"}),e(`.embedded-content-cookie-compliance.media-${t}`).replaceWith(o,c,n))}e(document).off("eu_cookie_compliance.changeStatus",t)}}e(document).on("eu_cookie_compliance.changeStatus",t),e(document).ready(t)}(jQuery,Drupal,drupalSettings); \ No newline at end of file +!function(e,Drupal,drupalSettings){function t(){if(void 0!==Drupal.eu_cookie_compliance&&Drupal.eu_cookie_compliance.hasAgreed("preference")&&Drupal.eu_cookie_compliance.hasAgreed("statistics")){for(const[t,i]of Object.entries(drupalSettings.embedded_media_attributes)){const a=document.createElement("iframe");a.classList.add("media-oembed-content"),a.src=i.src,a.height=i.height,a.width=i.width,a.title=i.title;const o=document.createElement("a");o.classList.add("focusable","skip-link"),o.href=`#${i.skipLinkAfterId}`,o.id=i.skipLinkBeforeId;const c=document.createElement("a");c.classList.add("focusable","skip-link"),c.href=`#${i.skipLinkBeforeId}`,c.id=i.skipLinkAfterId;const n=document.createElement("div");n.appendChild(a),"video"===i.type?(n.classList.add("responsive-video-container"),e(`.embedded-content-cookie-compliance.media-${t}`).empty().append(n).removeClass(`media-${t}`)):"map"===i.type&&(n.classList.add("responsive-map-container"),c.classList.add("skip-link--map--after"),o.classList.add("skip-link--map--before"),c.text=Drupal.t("Continue above the map",{},{context:"Skip link after the map for the map paragraph"}),o.text=Drupal.t("Continue below the map",{},{context:"Skip link before the map for the map paragraph"}),e(`.embedded-content-cookie-compliance.media-${t}`).replaceWith(o,n,c))}e(document).off("eu_cookie_compliance.changeStatus",t)}}e(document).on("eu_cookie_compliance.changeStatus",t),e(document).ready(t)}(jQuery,Drupal,drupalSettings); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 32f0ee346..c02439474 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6740,9 +6740,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001504", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001504.tgz", - "integrity": "sha512-5uo7eoOp2mKbWyfMXnGO9rJWOGU8duvzEiYITW+wivukL7yHH4gX9yuRaobu6El4jPxo6jKZfG+N6fB621GD/Q==", + "version": "1.0.30001505", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001505.tgz", + "integrity": "sha512-jaAOR5zVtxHfL0NjZyflVTtXm3D3J9P15zSJ7HmQF8dSKGA6tqzQq+0ZI3xkjyQj46I4/M0K2GbMpcAFOcbr3A==", "funding": [ { "type": "opencollective", @@ -25872,9 +25872,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001504", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001504.tgz", - "integrity": "sha512-5uo7eoOp2mKbWyfMXnGO9rJWOGU8duvzEiYITW+wivukL7yHH4gX9yuRaobu6El4jPxo6jKZfG+N6fB621GD/Q==" + "version": "1.0.30001505", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001505.tgz", + "integrity": "sha512-jaAOR5zVtxHfL0NjZyflVTtXm3D3J9P15zSJ7HmQF8dSKGA6tqzQq+0ZI3xkjyQj46I4/M0K2GbMpcAFOcbr3A==" }, "chalk": { "version": "2.4.2",