1if(!customElements.get("event-calendar")){class eventCalendar extends HTMLElement{constructor(){super(),this.initEvents()}initEvents(){const title=this.dataset.title,endDate=this.dataset.endDate+"T23:59:00Z",startDate=this.dataset.startDate+"T00:01:00Z",local=this.dataset.local,description=this.dataset.description,formatDescription=encodeURIComponent(description),formatEndDate=endDate.replace(/[-:]/g,""),formatStartDate=startDate.replace(/[-:]/g,""),isIphone=/iPhone/i.test(navigator.userAgent),isNotSafari=/CriOS/i.test(navigator.userAgent),google=this.querySelector("[data-google-calendar]"),googleiCal=this.querySelector("[data-google-calendar-ical]"),iPhone=this.querySelector("[data-iphone-calendar]");isIphone&&!isNotSafari?(google.classList.add("hidden"),googleiCal.classList.remove("hidden")):isIphone?(google.classList.remove("hidden"),googleiCal.classList.add("hidden"),this.addGoogleEventLink(title,formatStartDate,formatEndDate,local,formatDescription,description),this.addOutlookEventLink(title,startDate,endDate,local,description),iPhone.classList.add("hidden")):(google.classList.remove("hidden"),googleiCal.classList.add("hidden"))}addGoogleEventLink(title,startDate,endDate,local,formatDescription,description){const googleElement=this.querySelector("[data-google-link]");let url="https://calendar.google.com/calendar/render?action=TEMPLATE",parametros=["text="+encodeURIComponent(title),"dates="+encodeURIComponent(endDate)+"/"+encodeURIComponent(startDate),"location="+encodeURIComponent(local),"details="+formatDescription],link=url+"&"+parametros.join("&");googleElement.href=link+"&trp=false&sprop=&sprop=name:"}addOutlookEventLink(title,startDate,endDate,local,description){let link="https://outlook.office.com/calendar/0/deeplink/compose?subject="+encodeURIComponent(title)+"&body="+description+"&startdt="+encodeURIComponent(startDate)+"&enddt="+encodeURIComponent(endDate)+"&location="+encodeURIComponent(local)+"&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent",outlookElement=this.querySelector("[data-outlook-calendar]");outlookElement.href=link}addYahooEventLink(title,startDate,endDate,local,description){let link="https://calendar.yahoo.com/?v=60&view=d&type=20&title="+encodeURIComponent(title)+"&st="+encodeURIComponent(startDate)+"&et="+encodeURIComponent(endDate)+"&desc="+description+"&in_loc="+encodeURIComponent(local),yahooElement=this.querySelector("[data-yahoo-calendar]");yahooElement.href=link}downloadICS(title,startDate,endDate,local,description){let icsData=`BEGIN:VCALENDAR 2VERSION:2.0 3PRODID:-//My Company//EN 4CALSCALE:GREGORIAN 5METHOD:PUBLISH 6BEGIN:VEVENT 7DTSTART:${startDate} 8DTEND:${endDate} 9SUMMARY:${title} 10LOCATION:${local} 11DESCRIPTION:${description} 12END:VEVENT 13END:VCALENDAR`,blob=new Blob([icsData],{type:"text/calendar;charset=utf-8"});saveAs(blob,"event.ics")}}customElements.define("event-calendar",eventCalendar)} 14//# sourceMappingURL=/cdn/shop/t/465/assets/event-calendar.js.map?v=44032011189843304391789990201
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.