1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(Drupal,once){function hasValidFirstCuePoint(video){const cuePoint=video.player?.mediainfo?.cue_points?.[0];if(!cuePoint||!cuePoint.metadata)return false;const modalUrl=cuePoint.metadata.split(';')[0];return !!modalUrl&&modalUrl!=='undefined';}function stopInvalidModal(event){const isPlaybackToggle=event.type==='keyup'||event.target.closest('.vjs-play-control, .vjs-tech');if(isPlaybackToggle&&!hasValidFirstCuePoint(event.currentTarget))event.stopPropagation();}Drupal.behaviors.brightcoveVideoPlayer={attach(context){once('brightcove-video-player','.takeda_brightcove--video .video-js',context).forEach((video)=>{['click','touchstart','keyup'].forEach((event)=>{video.addEventListener(event,stopInvalidModal);});});}};})(Drupal,once);; 3(function($,Drupal,once){"use strict";Drupal.behaviors.floatingButton={attach:function(context,settings){const floatingButton=once('floatingButton','.floating--button',context)[0];if(floatingButton)floatingButton.addEventListener('click',function(){let floatingBanner=this.parentNode.querySelector('.floating--banner');floatingBanner.classList.toggle('visible');});}};})(jQuery,Drupal,once);; 4(function($,Drupal){"use strict";Drupal.geolocation=Drupal.geolocation||{};Drupal.geolocation.geocoder=Drupal.geolocation.geocoder||{};Drupal.geolocation.geocoder.resultCallback=function(result,elementId){Drupal.geolocation.geocoder.resultCallbacks=Drupal.geolocation.geocoder.resultCallbacks||[];$.each(Drupal.geolocation.geocoder.resultCallbacks,function(index,callbackContainer){if(callbackContainer.elementId===elementId)callbackContainer.callback(result);});};Drupal.geolocation.geocoder.addResultCallback=function(callback,elementId){if(typeof elementId==="undefined")return;Drupal.geolocation.geocoder.resultCallbacks=Drupal.geolocation.geocoder.resultCallbacks||[];Drupal.geolocation.geocoder.resultCallbacks.push({callback,elementId});};Drupal.geolocation.geocoder.clearCallback=function(elementId){Drupal.geolocation.geocoder.clearCallbacks=Drupal.geolocation.geocoder.clearCallbacks||[];$.each(Drupal.geolocation.geocoder.clearCallbacks,function(index,callbackContainer){if(callbackContainer.elementId===elementId)callbackContainer.callback();});};Drupal.geolocation.geocoder.addClearCallback=function(callback,elementId){if(typeof elementId==="undefined")return;Drupal.geolocation.geocoder.clearCallbacks=Drupal.geolocation.geocoder.clearCallbacks||[];Drupal.geolocation.geocoder.clearCallbacks.push({callback,elementId});};})(jQuery,Drupal);; 5(function($,Drupal){"use strict";Drupal.behaviors.takedalocationMap={attach:function(context,drupalSettings){$(once("takedageolocation-map-processed",".takeda-geolocation-map-wrapper")).each(function(index,item){var mapWrapper=$(item);var mapSettings={};var reset=false;var markersArray=[];var typingTimer;var doneTypingInterval=500;var that=this;var circle=null;var radius=150000;mapSettings.id=mapWrapper.attr("id");var showRadiusCircle=$('.js-view-dom-id-'+mapSettings.id).find('#edit-combine').attr("radiussearch");mapSettings.wrapper=mapWrapper;if(mapWrapper.length===0)return;mapSettings.lat=0;mapSettings.lng=0;if(mapWrapper.data("centre-lat")&&mapWrapper.data("centre-lng")){mapSettings.lat=Number(mapWrapper.data("centre-lat"));mapSettings.lng=Number(mapWrapper.data("centre-lng"));}if(mapWrapper.data("map-type"))mapSettings.type=mapWrapper.data("map-type");if(typeof drupalSettings.geolocation==="undefined"){console.error("Bailing out for lack of settings.");return;}$.each(drupalSettings.geolocation.maps,function(mapId,currentSettings){if(mapId===mapSettings.id)mapSettings=$.extend(currentSettings,mapSettings);});if(mapWrapper.parent().hasClass("preview-section"))if(mapWrapper.parentsUntil("#views-live-preview").length)reset=true;var map=Drupal.geolocation.Factory(mapSettings,reset);if(!map){once.removeOnce("geolocation-map-processed",mapWrapper);return;}map.addInitializedCallback(function(map){map.removeControls();$(".geolocation-map-controls > *",map.wrapper).each(function(index,control){map.addControl(control);});map.setCenter();map.wrapper.find(".geolocation-location").hide();if($('.js-view-dom-id-'+map.id).find('.filter').hasClass('block_3'))filterLocations(map,0,0,true);else if($('.js-view-dom-id-'+map.id).find('.filter').hasClass('block_5')){}else filterLocations(map);});map.addMarkerAddedCallback(function(marker){markersArray.push(marker);marker._clinicFinderAttached=true;marker.addListener('click',function(){const pos=marker.getPosition();const lat=pos.lat();const lng=pos.lng();$('.js-view-dom-id-'+map.id).find('.item-list li').removeClass('active');$('.js-view-dom-id-'+map.id).find('.geolocation-location').each(function(){const $location=$(this);
5if(Math.abs(parseFloat($location.data('lat'))-lat)<0.0001&&Math.abs(parseFloat($location.data('lng'))-lng)<0.0001){const li=$location.closest('li')[0];if(li){li.classList.add('active');li.scrollIntoView({behavior:'smooth',block:'nearest'});}}});});});map.addMarkerRemoveCallback(function(marker){markersArray.splice(0,1);});map.addUpdatedCallback(function(map,mapSettings){map.settings=$.extend(map.settings,mapSettings.settings);map.wrapper=mapSettings.wrapper;mapSettings.wrapper.find(".geolocation-map-container").replaceWith(map.container);map.lat=mapSettings.lat;map.lng=mapSettings.lng;if(typeof mapSettings.map_center!=="undefined")map.mapCenter=mapSettings.map_center;});$('.js-view-dom-id-'+map.id).find('.item-list').on('click','li',function(){$('.js-view-dom-id-'+map.id).find('.item-list li').removeClass('active');$(this).addClass('active');let data=$(this).find('.geolocation-location').data();for(let i=0;i<markersArray.length;i++)if(markersArray[i].position.lat()==data.lat&&markersArray[i].position.lng()==data.lng){google.maps.event.trigger(markersArray[i],"click");map.setZoom(12);map.setCenterByCoordinates(markersArray[i].getPosition());$(this).focus();break;}});$('.js-view-dom-id-'+map.id).find('#edit-combine , #edit-radius').on('keyup',function(e){clearTimeout(typingTimer);typingTimer=setTimeout(()=>{let address=$(this).val();getGeocode(address);},doneTypingInterval);});function getGeocode(address=''){if(address.length>0){removeAllMarkers();let geocoder=new google.maps.Geocoder();geocoder.geocode({'address':address},function(results,status){if(status==google.maps.GeocoderStatus.OK){let latitude=results[0].geometry.location.lat();let longitude=results[0].geometry.location.lng();filterLocations(map,latitude,longitude);}else{removeAllMarkers();showNoresult();}});}else{removeAllMarkers();filterLocations(map);}}function filterLocations(map,lat=0,lon=0,nolist=false){let locations=map.loadMarkersFromContainer();var $ulElement=$('<ul></ul>');var found=0;var center={lat,lng:lon};radius=showRadiusCircle?$('.js-view-dom-id-'+map.id).find('#edit-radius').val():0;radius=parseInt(radius>0?radius*1000:150000);$.each(locations,function(index,location){let wrap=$(location.locationWrapper).eq(0);location.distance=calculateDistance(lat,lon,wrap.attr('data-lat'),wrap.attr('data-lng'));location.wrap=wrap;locations[index]=location;});if(lat>0&&lon>0)locations.sort(function(a,b){var aValue=parseFloat(a.distance);var bValue=parseFloat(b.distance);if(aValue<bValue)return -1;else if(aValue>bValue)return 1;else return 0;});$.each(locations,function(index,location){if(lat>0&&lon>0){if((parseFloat(location.distance)>parseFloat(radius/1000))&&showRadiusCircle==1)return true;if(found>=3)return true;}map.setMapMarker(location);var $divElements=location.wrap.clone().removeClass('js-hide').show();$divElements.wrap('<li></li>');$ulElement.append($divElements.parent());found++;});if(nolist==false){$ulElement.find(".location-title").remove();$('.js-view-dom-id-'+map.id).find('.item-list').empty();$('.js-view-dom-id-'+map.id).find('.item-list').append($ulElement);if(found==0)showNoresult();}if(circle){circle.setMap(null);circle=null;}if(lat>0&&lon>0){circle=new google.maps.Circle({center,radius:150000,map:map.googleMap,fillColor:"#4285F4",f
5illOpacity:0.25,strokeColor:"#4285F4",strokeOpacity:0.3,strokeWeight:1,clickable:false});map.googleMap.fitBounds(circle.getBounds());}}function removeAllMarkers(){if(map&&typeof map.removeMapMarkers==='function')map.removeMapMarkers();markersArray=[];if(map&&map.markerClusterer&&typeof map.markerClusterer.clearMarkers==='function')map.markerClusterer.clearMarkers();if(map&&typeof map.setCenter==='function')map.setCenter();$('.js-view-dom-id-'+map.id).find('.item-list').empty();}function showNoresult(){var noresult=Drupal.t('No entries');$('.js-view-dom-id-'+map.id).find('.item-list').html(noresult);}function calculateDistance(lat1,lon1,lat2,lon2){if(lat1==0&&lon1==0)return 0;const earthRadius=6371;const dLat=((lat2-lat1)*Math.PI)/180;const dLon=((lon2-lon1)*Math.PI)/180;const a=Math.sin(dLat/2)*Math.sin(dLat/2)+Math.cos((lat1*Math.PI)/180)*Math.cos((lat2*Math.PI)/180)*Math.sin(dLon/2)*Math.sin(dLon/2);const c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));const distance=earthRadius*c;return distance;}});},detach:function(context,drupalSettings){}};})(jQuery,Drupal);; 6(function($,Drupal){"use strict";Drupal.behaviors.MatomoTracking={attach:function(context,settings){$(once('plyr','body',context)).each(function(){function tracking(eventAction,title){window._mtm.push({'event':'video_event','eventCategory':'video','eventAction':eventAction,'eventLabel':title});}window.addEventListener('ready',(event)=>{const player=event.detail.plyr;var flag1=0;var flag2=0;var flag3=0;player.on('play',function(){tracking('Video Play',player.config.title);});player.on('pause',function(){tracking('Video Pause',player.config.title);});player.on('timeupdate',function(e){const duration=player.duration;var currentTime=parseFloat(player.currentTime).toFixed(2);var fiftymilestone=duration/2;var twentyfivemilestone=fiftymilestone/2;var seventyfivemilestone=twentyfivemilestone*3;if(currentTime>0&¤tTime>=twentyfivemilestone){flag1++;if(flag1==1)tracking('Video Milestone| 25% Video Completion',player.config.title);}if(currentTime>0&&player.currentTime>=fiftymilestone){flag2++;if(flag2==1)tracking('Video Milestone| 50% Video Completion',player.config.title);}if(currentTime>0&&player.currentTime>=seventyfivemilestone){flag3++;if(flag3==1)tracking('Video Milestone| 75% Video Completion',player.config.title);}if(player.currentTime>0&&duration==player.currentTime)tracking('Video Milestone| 100% Video Completion',player.config.title);});});});}};})(jQuery,Drupal);;
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.