PageSourceSearch

https://herlufsholm.dk/App_Plugins/UmbracoForms/Assets/pikaday/pikaday.min.js?v=13.8.0

js herlufsholm.dk collected 2026-10-02 12:40:33 UTC 15,493 bytes, 1 lines download raw bytes

1((e,t)=>{var n;if("object"==typeof exports){try{n=require("moment")}catch{}module.exports=t(n)}else"function"==typeof define&&define.amd?define(function(e){try{n=e("moment")}catch{}return t(n)}):e.Pikaday=t(e.moment)})(this,function(i){function s(e,t,n,a){d?e.addEventListener(t,n,!!a):e.attachEvent("on"+t,n)}function t(e,t,n,a){d?e.removeEventListener(t,n,!!a):e.detachEvent("on"+t,n)}function o(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function c(e,t){o(e,t)||(e.className=""===e.className?t:e.className+" "+t)}function f(e,t){e.className=(e=(" "+e.className+" ").replace(" "+t+" "," ")).trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function p(e){return/Array/.test(Object.prototype.toString.call(e))}function I(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())}function T(e,t){return[31,(e=e)%4==0&&e%100!=0||e%400==0?29:28,31,30,31,30,31,31,30,31,30,31][t]}function E(e){I(e)&&e.setHours(0,0,0,0)}function Y(e,t){return e.getTime()===t.getTime()}function r(e,t,n){var a,i;for(a in t)(i=void 0!==e[a])&&"object"==typeof t[a]&&null!==t[a]&&void 0===t[a].nodeName?I(t[a])?n&&(e[a]=new Date(t[a].getTime())):p(t[a])?n&&(e[a]=t[a].slice(0)):e[a]=r({},t[a],n):!n&&i||(e[a]=t[a]);return e}function l(e,t,n){var a;g.createEvent?((a=g.createEvent("HTMLEvents")).initEvent(t,!0,!1),a=r(a,n),e.dispatchEvent(a)):g.createEventObject&&(a=g.createEventObject(),a=r(a,n),e.fireEvent("on"+t,a))}function n(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),11<e.month&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e}function O(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+(e=>{var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+m(e,t)+'">'+m(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"})(e)+"<tbody>"+t.join("")+"</tbody></table>"}function e(e){var n=this,a=n.config(e),e=(n._onMouseDown=function(e){if(n._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(o(t,"is-disabled")||(!o(t,"pika-button")||o(t,"is-empty")||o(t.parentNode,"is-disabled")?o(t,"pika-prev")?n.prevMonth():o(t,"pika-next")&&n.nextMonth():(n.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),a.bound&&u(function(){n.hide(),a.blurFieldOnSelect&&a.field&&a.field.blur()},100))),o(t,"pika-select"))n._c=!0;else{if(!e.preventDefault)return e.returnValue=!1;e.preventDefault()}}},n._onChange=function(e){e=(e=e||window.event).target||e.srcElement;e&&(o(e,"pika-select-month")?n.gotoMonth(e.value):o(e,"pika-select-year")&&n.gotoYear(e.value))},n._onKeyChange=function(e){if(e=e||window.event,n.isVisible())switch(e.keyCode){case 13:case 27:a.field&&a.field.blur();break;case 37:e.preventDefault(),n.adjustDate("subtract",1);break;case 38:n.adjustDate("subtract",7);break;case 39:n.adjustDate("add",1);break;case 40:n.adjustDate("add",7)}},n._onInputChange=function(e){var t;e.firedBy===n||(t=a.parse?a.parse(a.field.value,a.format):h?(t=i(a.field.value,a.format,a.formatStrict))&&t.isValid()?t.toDate():null:new Date(Date.parse(a.field.value)),I(t)&&n.setDate(t),n._v)||n.show()},n._onInputFocus=function(){n.show()},n._onInputClick=function(){n.show()},n._onInputBlur=function(){var e=g.activeElement;do{if(o(e,"pika-single"))return}while(e=e.parentNode);n._c||(n._b=u(function(){n.hide()},50)),n._c=!1},n._onClick=function(e){var e=(e=e||window.event).target||e.srcElement,t=e;if(e){d||!o(e,"pika-select")||e.onchange||(e.setAttribute("onchange","return;"),s(e,"change",n._onChange));do{if(o(t,"pika-single")||t===a.trigger)return}while(t=t.parentNode);n._v&&e!==a.trigger&&t!==a.trigger&&n.hide()}},n.el=g.createElement("div"),n.el.className="pika-single"+(a.isRTL?" is-rtl":"")+(a.theme?" "+a.theme:""),s(n.el,"mousedown",n._onMouseDown,!0),s(n.el,"touchend",n._onMouseDown,!0),s(n.el,"change",n._onChange),a.keyboardInput&&s(g,"keydown",n._onKeyChange),a.field&&(a.container?a.container.appendChild(n.el):a.bound?g.body.appendChild(n.el):a.field.parentNode.insertBefore(n.el,a.field.nextSibling),s(a.field,"change",n._onInputChange),a.defaultDate||(h&&a.field.value?a.defaultDate=i(a.field.value,a.format).toDate():a.defaultDate=new Date(Date.parse(a.field.value)),a.setDefaultDate=!0)),a.defaultDate);I(e)?a.setDefaultDate?n.setDate(e,!0):n.gotoDate(e):n.gotoDate(new Date),a.bound?(this.hide(),n.el.className+=" is-bound",s(a.trigger,"click",n._onInputClick),s(a.trigger,"focus",n._onInputFocus),s(a.trigger,"blur",n._onInputBlur)):this.show()}var h="function"==typeof i,d=!!window.addEventListener,g=window.document,u=window.setTimeout,a={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},m=function(e,t,n){for(t+=e.firstDay;7<=t;)t-=7;return(n?e.i18n.weekdaysShort:e.i18n.weekdays)[t]};return e.prototype={config:function(e){this._o||(this._o=r({},a,!0));var e=r(this._o,e,!0),t=(e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null,parseInt(e.numberOfMonths,10)||1);return e.numberOfMonths=4<t?4:t,I(e.minDate)||(e.minDate=!1),I(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),p(e.yearRange)?(t=(new Date).getFullYear()-10,e.yearRange[0]=parseInt(e.yearRange[0],10)||t,e.yearRange[1]=parseInt(e.yearRange[1],10)||t):(e.yearRange=Math.abs(parseInt(e.yearRange,10))||a.yearRange,100<e.yearRange&&(e.yearRange=100)),e},toString:function(e){return e=e||this._o.format,I(this._d)?this._o.toString?this._o.toString(this._d,e):h?i(this._d).format(e):this._d.toDateString():""},getMoment:function(){return h?i(this._d):null},setMoment:function(e,t){h&&i.isMoment(e)&&this.setDate(e.toDate(),t)},getDate:function(){return I(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",l(this._o.field,"change",{firedBy:this})),this.draw();var n,a;"string"==typeof e&&(e=new Date(Date.parse(e))),I(e)&&(n=this._o.minDate,a=this._o.maxDate,I(n)&&e<n?e=n:I(a)&&a<e&&(e=a),this._d=new Date(e.getTime()),E(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),l(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate()))},gotoDate:function(e){var t,n,a,i=!0;I(e)&&(this.calendars&&(t=new Date(this.calendars[0].year,this.calendars[0].month,1),n=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),a=e.getTime(),n.setMonth(n.getMonth()+1),n.setDate(n.getDate()-1),i=a<t.getTime()||n.getTime()<a),i&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar)&&(this.calendars[0].month+=1-this._o.numberOfMonths),this.adjustCalendars())},adjustDate:function(e,t){var n,a=this.getDate()||new Date,t=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(a.valueOf()+t):"subtract"===e&&(n=new Date(a.valueOf()-t)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=n(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=n({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(E(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=a.minDate,this._o.minYear=a.minYear,this._o.minMonth=a.minMonth,this._o.startRange=a.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(E(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=a.maxDate,this._o.maxYear=a.maxYear,this._o.maxMonth=a.maxMonth,this._o.endRange=a.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t=this._o,e=t.minYear,n=t.maxYear,a=t.minMonth,i=t.maxMonth,s="";this._y<=e&&(this._y=e,!isNaN(a))&&this._m<a&&(this._m=a),this._y>=n&&(this._y=n,!isNaN(i))&&this._m>i&&(this._m=i);for(var o="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),r=0;r<t.numberOfMonths;
1r++)s+='<div class="pika-lendar">'+((e,t,n,a,i,s)=>{for(var o,r,l,h=e._o,d=n===h.minYear,u=n===h.maxYear,s='<div id="'+s+'" class="pika-title" role="heading" aria-live="assertive">',c=!0,f=!0,g=[],m=0;m<12;m++)g.push('<option value="'+(n===i?m-t:12+m-t)+'"'+(m===a?' selected="selected"':"")+(d&&m<h.minMonth||u&&m>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[m]+"</option>");for(r='<div class="pika-label">'+h.i18n.months[a]+'<select class="pika-select pika-select-month" tabindex="-1">'+g.join("")+"</select></div>",o=p(h.yearRange)?(m=h.yearRange[0],h.yearRange[1]+1):(m=n-h.yearRange,1+n+h.yearRange),g=[];m<o&&m<=h.maxYear;m++)m>=h.minYear&&g.push('<option value="'+m+'"'+(m===n?' selected="selected"':"")+">"+m+"</option>");return l='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+g.join("")+"</select></div>",h.showMonthAfterYear?s+=l+r:s+=r+l,d&&(0===a||h.minMonth>=a)&&(c=!1),u&&(11===a||h.maxMonth<=a)&&(f=!1),0===t&&(s+='<button class="pika-prev'+(c?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(s+='<button class="pika-next'+(f?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),s+"</div>"})(this,r,this.calendars[r].year,this.calendars[r].month,this.calendars[0].year,o)+this.render(this.calendars[r].year,this.calendars[r].month,o)+"</div>";this.el.innerHTML=s,t.bound&&"hidden"!==t.field.type&&u(function(){t.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),t.bound&&t.field.setAttribute("aria-label",t.ariaLabel)}},adjustPosition:function(){var e,t,n,a,i,s,o,r,l,h,d,u;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,a=this.el.offsetHeight,i=window.innerWidth||g.documentElement.clientWidth,s=window.innerHeight||g.documentElement.clientHeight,o=window.pageYOffset||g.body.scrollTop||g.documentElement.scrollTop,u=d=!0,"function"==typeof e.getBoundingClientRect)r=(h=e.getBoundingClientRect()).left+window.pageXOffset,l=h.bottom+window.pageYOffset;else for(r=t.offsetLeft,l=t.offsetTop+t.offsetHeight;t=t.offsetParent;)r+=t.offsetLeft,l+=t.offsetTop;(this._o.reposition&&i<r+n||-1<this._o.position.indexOf("right")&&0<r-n+e.offsetWidth)&&(r=r-n+e.offsetWidth,d=!1),(this._o.reposition&&s+o<l+a||-1<this._o.position.indexOf("top")&&0<l-a-e.offsetHeight)&&(l=l-a-e.offsetHeight,u=!1),this.el.style.left=r+"px",this.el.style.top=l+"px",c(this.el,d?"left-aligned":"right-aligned"),c(this.el,u?"bottom-aligned":"top-aligned"),f(this.el,d?"right-aligned":"left-aligned"),f(this.el,u?"top-aligned":"bottom-aligned")}},render:function(e,t,n){for(var a=this._o,i=new Date,s=T(e,t),o=new Date(e,t,1).getDay(),r=[],l=[],h=(E(i),0<a.firstDay&&(o-=a.firstDay)<0&&(o+=7),0===t?11:t-1),d=11===t?0:t+1,u=0===t?e-1:e,c=11===t?e+1:e,f=T(u,h),g=s+o,m=g;7<m;)m-=7;g+=7-m;for(var p=!1,y=0,D=0;y<g;y++){var b=new Date(e,t,y-o+1),_=!!I(this._d)&&Y(b,this._d),v=Y(b,i),w=-1!==a.events.indexOf(b.toDateString()),M=y<o||s+o<=y,k=y-o+1,x=t,R=e,N=a.startRange&&Y(a.startRange,b),S=a.endRange&&Y(a.endRange,b),C=a.startRange&&a.endRange&&a.startRange<b&&b<a.endRange,k=(M&&(R=y<o?(k=f+k,x=h,u):(k-=s,x=d,c)),{day:k,month:x,year:R,hasEvent:w,isSelected:_,isToday:v,isDisabled:a.minDate&&b<a.minDate||a.maxDate&&b>a.maxDate||a.disableWeekends&&(e=>0===(e=e.getDay())||6===e)(b)||a.disableDayFn&&a.disableDayFn(b),isEmpty:M,isStartRange:N,isEndRange:S,isInRange:C,showDaysInNextAndPreviousMonths:a.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:a.enableSelectionDaysInNextAndPreviousMonths});a.pickWholeWeek&&_&&(p=!0),l.push((e=>{var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"})(k)),7==++D&&(a.showWeekNumber&&l.unshift((x=y-o,R=t,w=e,v=void 0,v=new Date(w,0,1),'<td class="pika-week">'+Math.ceil(((new Date(w,R,x)-v)/864e5+v.getDay()+1)/7)+"</td>")),r.push((b=l,M=a.isRTL,'<tr class="pika-row'+(a.pickWholeWeek?" pick-whole-week":"")+(p?" is-selected":"")+'">'+(M?b.reverse():b).join("")+"</tr>")),D=0,p=!(l=[]))}return O(a,r,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),f(this.el,"is-hidden"),this._o.bound&&(s(g,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&t(g,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==e)&&"function"==typeof this._o.onClose&&this._o.onClose.call(this)},destroy:function(){var e=this._o;this.hide(),t(this.el,"mousedown",this._onMouseDown,!0),t(this.el,"touchend",this._onMouseDown,!0),t(this.el,"change",this._onChange),e.keyboardInput&&t(g,"keydown",this._onKeyChange),e.field&&(t(e.field,"change",this._onInputChange),e.bound)&&
1(t(e.trigger,"click",this._onInputClick),t(e.trigger,"focus",this._onInputFocus),t(e.trigger,"blur",this._onInputBlur)),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},e});

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.