1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2"use strict";!function(s,u,i){u.behaviors.redcrossMediaVideo={attach:function(e,t){var r=s(e),o=this,l=void 0;s(i("media-video-process",".video-wrapper",e)).each(function(){var d=s(this),n=d.find(".embed");0===(n=0===n.length?d.find(".field--name-field-media-oembed-video"):n).length&&(n=d.find("iframe"));var e,t,i=o.isAutoplay(d);i&&(t=document.createElement("div"),e=d.width(),a=d.height(),t.setAttribute("id","playerTeaser"),t.setAttribute("width",e),t.setAttribute("height",a),n.prepend(t),n.removeClass("hidden"),(a=n.find(".video").data("src"))||0<(t=n.find("iframe")).length&&((t=t.attr("src"))&&t.includes("oembed")&&((t=t.match(/url=([^&]+)/))&&(a=decodeURIComponent(t[1])))),a&&!a.includes("vimeo.com")&&d.find(".thumbnail > .field--type-image").addClass("hidden"));var a=function(e){var t,i,a=o.getEmbedUrl(n,"","FALSE");d.parents(".slider-media-type-video, .field--name-field-page-lead-image, .field-page-lead-image").addClass("video-playback"),s(".front__slider").addClass("video--play"),a?((t=document.createElement("iframe")).src=a,i=d.width(),a=d.height(),t.setAttribute("id","player"),t.setAttribute("width",i),t.setAttribute("height",a),t.setAttribute("allow","autoplay; fullscreen;"),n.html(t),n.removeClass("hidden")):0<n.find("iframe#player").length&&(n.removeClass("hidden"),l&&l.seekTo&&(l.seekTo(0),l.unMute())),l=o.definePlayer(n,r,d,"full"),0<d.parents(".slider-media-type-video").length&&setTimeout(function(){s(".slider-wrapper").show()},200)};d.find("i.icon-play").on("click",a),d.find("button.ytp-large-play-button").on("click",a),s(document).ready(function(){s.getScript("https://www.youtube.com/iframe_api",function(){var e;i?l=o.definePlayer(n,r,d):0<(e=n.find("iframe")).length&&((e=e.attr("src"))&&e.includes("youtube.com")&&(l=o.definePlayer(n,r,d,"full")))})})})},isAutoplay:function(e){var t=s(e).find(".video").data("autoplay");return t=void 0===(t=void 0===t?s(e).find("iframe").data("autoplay"):t)?s(e).data("autoplay"):t},getEmbedUrl:function(e,t){var i=void 0;if(t?i=""+(i=t):(i=e.find(".video").data("src"))||0<(e=e.find("iframe")).length&&((a=e.attr("src"))&&a.includes("oembed")&&((d=a.match(/url=([^&]+)/))&&(i=decodeURIComponent(d[1])))),i){var a=i.replace("http://","").replace("https://","").replace("www.","").replace(/\s+/g,"").split(/[/?#]/)[0],d=void 0;if("youtube.com"===a||"youtu.be"===a){if(null!=(d=i.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)\/(?:watch\?v=|shorts\/|)([^\s&]+)/)))return"https://www.youtube.com/embed/"+d[1]+"?autoplay=1&rel=0&enablejsapi=1&loop=1&playlist="+d[1]}else if("vimeo.com"===a){i=/vimeo.*\/(\d+)/i.exec(i);return"https://player.vimeo.com/video/"+(d=i?i[1]:d)+"?autoplay=1"}}return!1},getVideoID:function(e){var t=e.find(".video").data("src");if(t||0<(e=e.find("iframe")).length&&((e=e.attr("src"))&&e.includes("oembed")&&((e=e.match(/url=([^&]+)/))&&(t=decodeURIComponent(e[1])))),t){t=t.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)\/(?:watch\?v=|shorts\/|)([^\s&]+)/);return t?t[1]:null}return!1},definePlayer:function(t,i,a,d,e){var n=void 0,r=document.getElementById("lead_image_full_width"),o=document.getElementsByClassName("media media--type-remote-video media--view-mode-full-width-no-v-crop");function l(e){e.data==YT.PlayerState.ENDED&&(t.prev().removeClass("hidden"),i.find(".slider__content__inner").removeAttr("style"),t.prev(".thumbnail").find(".field-video-thumbnail").removeClass("hidden"))}function s(e){e.target.playVideo(),e.target.mute()}return window.YT.ready(function(){var e=u.behaviors.redcrossMediaVideo.getVideoID(t);n="full"==d?new window.YT.Player("player",{events:{onStateChange:l}}):null===r&&0<o.length?new window.YT.Player("playerTeaser",{videoId:e,height:a.height(),width:a.width(),playerVars:{autoplay:0,controls:1,mute:0,rel:0},events:{onStateChange:l}}):new window.YT.Player("playerTeaser",{videoId:e,height:a.height(),width:a.width(),playerVars:{autoplay:1,controls:0,mute:1,rel:0},events:{onReady:s,onStateChange:l}})}),n}}}(jQuery,Drupal,once); 3 4; 5"use strict";!function(i,a,n){a.behaviors.redcrossParagraphFaq={attach:function(a){i(a);i(n("paragraph-faq-process",".paragraph--faq",a)).each(function(){var a=i(this);i(this).find(".accordion__faq__question").bind("click",function(){i(this).toggleClass("open"),a.find(".accordion__faq__answer").slideToggle();});});}};}(jQuery,Drupal,once);;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.