PageSourceSearch

https://www.rijksmuseum.nl/statics/generated/date-picker.1ad570ec9111b58ebfc2.js

js rijksmuseum.nl collected 2026-09-24 07:50:47 UTC 4,937 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8258],{34627:function(e,t,n){n.r(t);n(81678),n(24776),n(76281),n(86584),n(4754),n(94),n(52697),n(78557),n(99425);var i=n(41827),r=n(44899),a=n(30081),o=n(47217),s=n(33192);function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function c(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var p=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).nl=o.nl,t.en=o.en,t.fr=o.fr,t.de=o.de,t.es=o.es,t.it=o.it,t.openDateFirst=null,t.openDateSecond=null,t.visitDateSelected=!1,t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,l(n,i);var r=t.prototype;return r.mounted=function(){this.updatePickerDates(),this.improveAccessibilityDatePicker(),this.customTabEvent()},r.updatePickerDates=function(){this.valueCopy&&this.$refs.firstPicker&&(this.$refs.firstPicker.selectedDate=new Date(this.valueCopy),this.showTwoMonths&&(this.$refs.secondPicker.selectedDate=new Date(this.valueCopy))),this.visitDateSelected=!0},r.improveAccessibilityDatePicker=function(){this.addAriaAttributesDatePicker(this.$refs.firstPicker.$el.children[1].children[1]),this.addAriaAttributesDatePicker(this.$refs.secondPicker.$el.children[1].children[1])},r.customTabEvent=function(){var e=this;window.addEventListener("keydown",function(t){"Tab"===t.key&&e.visitDateSelected&&(window.location.hash="#select-start-time",e.visitDateSelected=!1,window.history.pushState(null,"",window.location.pathname))})},r.addAriaAttributesDatePicker=function(e){e&&(e.setAttribute("role","list"),[].concat(e.children).forEach(function(e){e.className.includes("day-header")||e.className.includes("disabled")?e.setAttribute("aria-hidden","true"):e.setAttribute("role","listitem")}))},r.setSelectedDate=function(e){this.valueCopy=e.toISOString()},r.changeMonth=function(e){var t=this,n=this.$refs,i=n.firstPicker,r=n.secondPicker,a=new Date(i.pageTimestamp),o=e?new Date(a.getUTCFullYear(),a.getUTCMonth()+1,a.getUTCDate()+5):new Date(a.getUTCFullYear(),a.getUTCMonth()-1,a.getUTCDate()+5);if(i.setPageDate(o),this.showTwoMonths){var s=new Date(r.pageTimestamp),u=e?new Date(s.getUTCFullYear(),s.getUTCMonth()+1,s.getUTCDate()+5):new Date(s.getUTCFullYear(),s.getUTCMonth()-1,s.getUTCDate()+5);r.setPageDate(u)}setTimeout(function(){t.improveAccessibilityDatePicker()},500)},r.setOpenDates=function(e){var t=e,n=new Date(new Date(e).setMonth(new Date(e).getMonth()+1,5)).toISOString();this.openDateFirst=new Date(t),this.openDateSecond=new Date(n)},r.filterDates=function(e){return!this.formattedDates.some(function(t){return e.toISOString()===t})},r.dayCellContent=function(e){var t=new Date(e.timestamp).toLocaleDateString(this.language,{weekday:"long",day:"numeric",month:"long",year:"numeric"});return'<button type="button" class="cell-button" '+(e.isDisabled?"disabled":"")+' aria-label="'+t+'">'+e.date+"</button>"},r.onAvailableDatesChanged=function(e){this.valueCopy?this.setOpenDates(this.valueCopy):e.length?this.setOpenDates(new Date(e[0]+"Z").toISOString()):this.setOpenDates((new Date).toISOString())},r.onValueChanged=function(){this.updatePickerDates()},function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"formattedLanguage",get:function(){return this[this.language]}},{key:"formattedDates",get:function(){return this.availableDates?this.availableDates.map(function(e){return new Date(e+"Z").toISOString()}):[]}},{key:"disabledDates",get:function(){return{customPredictor:this.filterDates}}},{key:"errorMessage",get:function(){return this.error?this.error.errorMessage:null}}])}(r.Vue);(0,i.Cg)([(0,s.A)("value",{type:[String]})],p.prototype,"valueCopy",void 0),(0,i.Cg)([(0,r.Prop)()],p.prototype,"language",void 0),(0,i.Cg)([(0,r.Prop)()],p.prototype,"availableDates",void 0),(0,i.Cg)([(0,r.Prop)()],p.prototype,"showTwoMonths",void 0),(0,i.Cg)([(0,r.Prop)()],p.prototype,"error",void 0),(0,i.Cg)([(0,r.Watch)("availableDates",{immediate:!0})],p.prototype,"onAvailableDatesChanged",null),(0,i.Cg)([(0,r.Watch)("valueCopy")],p.prototype,"onValueChanged",null),p=(0,i.Cg)([(0,r.Component)({components:{"vuejs-datepicker":a.A}})],p),t.default=p},33192:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(72971);function r(e,t){return(0,i.u1)(function(n,i){(n.props||(n.props={}))[e]=t,(n.computed||(n.computed={}))[i]={get:function(){return this[e]},set:function(e){this.$emit("input",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.