1"use strict";(self.webpackChunkhdcorg=self.webpackChunkhdcorg||[]).push([[789],{4167:function(a,t,n){n.d(t,{Calendar:function(){return c}}),n(2675),n(9463),n(8598),n(7495),n(5440);var e=n(4692),r=n.n(e),i=(n(7361),".js-calendar-link"),c={init:function(){c._initEvents(),c._initLinks()},_initEvents:function(){r()(document).on("click",i,c._linkClick)},_initLinks:function(){r()(i).each(c._initLink)},_initLink:function(a,t){var n=r()(t),e=c._buildUrl(n);n.attr("href",e)},_buildUrl:function(a){var t=a.data("calendar-start-date")||"",n=a.data("calendar-end-date")||"",e=a.data("calendar-title")||"",r=a.data("calendar-description")||"",i=a.data("calendar-venue")||"",l=a.data("calendar-address")||"",o=a.data("calendar-country")||"",d=[],u="data:text/calendar;charset=utf8,";t&&(t=c._enforceDateFormat(t)),n&&(n=c._enforceDateFormat(n)),i&&d.push(i),l&&d.push(l),o&&d.push(o),d=d.join(", "),u+=["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT","URL:"+document.URL,"DTSTART:"+t,"DTEND:"+n,"SUMMARY:"+e,"DESCRIPTION:"+r,"LOCATION:"+d,"END:VEVENT","END:VCALENDAR"].join("\n"),a.attr("href",u)},_enforceDateFormat:function(a){var t=new Date(a).toISOString();return(t=(t=t.split(".")[0]).replace(/[\-\:]+/gi,""))+"Z"},_linkClick:function(a){var t,n,e,l;navigator.msSaveBlob&&(a.preventDefault(),n=(t=r()(a.target).closest(i)).attr("href"),e=t.attr("download"),l=c._createBlob(n),navigator.msSaveBlob(l,e))},_createBlob:function(a){var t=a.replace(/\n/g,"").replace(/^data:(.*?);.*$/,"$1");return new Blob([a.replace(/^data:.*?;.*?,/,"")],{type:t})}}}}]); 2//# sourceMappingURL=Calendar.chunk-371687.js.map
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.