PageSourceSearch

https://www.rijksmuseum.nl/statics/generated/grouptickets-modal.4dd0bb7392d4d9a697a3.js

js rijksmuseum.nl collected 2026-09-24 07:50:58 UTC 7,949 bytes, 2 lines download raw bytes

1/*! For license information please see grouptickets-modal.4dd0bb7392d4d9a697a3.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9151],{23791:function(t,e,n){n.r(e);n(81678),n(4754),n(51908),n(94),n(52697);var r=n(41827),o=n(44899);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}var s=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).selected=null,e}var n,r;return r=t,(n=e).prototype=Object.create(r.prototype),n.prototype.constructor=n,u(n,r),function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"shopUrl",get:function(){return this.selected?this.selected.url:""}},{key:"selectedGroup",get:function(){return this.selected?this.selected.name:""}}])}(n(89867).A);s=(0,r.Cg)([o.Component],s),e.default=s},89867:function(t,e,n){n(29305),n(32733),n(81678),n(4754),n(94),n(26437),n(52697),n(78557),n(90076);var r=n(41827),o=n(44899),i=n(73929),c=n(32044);function u(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof a?r:a,l=Object.create(u.prototype);return s(l,"_invoke",function(n,r,o){var i,u,s,a=0,l=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,u=0,s=t,d.n=n,c}};function p(n,r){for(u=n,s=r,e=0;!f&&a&&!o&&e<l.length;e++){var o,i=l[e],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,u=0))}if(o||n>1)return c;throw f=!0,r}return function(o,l,h){if(a>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),u=l,s=h;(e=u<2?t:s)||!f;){i||(u?u<3?(u>1&&(d.n=-1),p(u,s)):d.n=s:d.v=s);try{if(a=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=d.n<0)?s:n.call(r,d))!==c)break}catch(e){i=t,u=1,s=e}finally{a=1}}return{value:e,done:f}}}(n,o,i),!0),l}var c={};function a(){}function l(){}function f(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(s(e={},r,function(){return this}),e),p=f.prototype=a.prototype=Object.create(d);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,o,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=f,s(p,"constructor",f),s(f,"constructor",l),l.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(p),s(p,o,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(u=function(){return{w:i,m:h}})()}function s(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}s=function(t,e,n,r){function i(e,n){s(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},s(t,e,n,r)}function a(t,e,n,r,o,i,c){try{var u=t[i](c),s=u.value}catch(t){return void n(t)}u.done?e(s):Promise.resolve(s).then(r,o)}function l(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t){a(i,r,o,c,u,"next",t)}function u(t){a(i,r,o,c,u,"throw",t)}c(void 0)})}}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function d(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==typeof e?e:e+""}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).modalIsOpen=!1,e.isMobileQuery=window.matchMedia("only screen and (max-width: 50.6875rem)"),e.isMobile=e.isMobileQuery.matches,e.scrollBarWidthUnderContent=0,e.lastActiveElementOutsideModal=null,e}var n,r;r=t,(n=e).prototype=Object.create(r.prototype),n.prototype.constructor=n,p(n,r);var i=e.prototype;return i.mounted=function(){window.addEventListener("resize",this.onResize)},i.beforeDestroy=function(){window.removeEventListener("resize",this.onResize)},i.onResize=function(){this.isMobile=this.isMobileQuery.matches,this.checkForScrollBar()},i.checkForScrollBar=function(){var t=l(u().m(function t(){return u().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,o.Vue.nextTick();case 1:if(this.$refs.modal){t.n=2;break}return t.a(2);case 2:this.scrollBarWidthUnderContent=document.documentElement.clientWidth-this.$refs.modal.clientWidth;case 3:return t.a(2)}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.toggleTicketModal=function(){var t=l(u().m(function t(){return u().w(function(t){for(;;)switch(t.n){case 0:if(this.modalIsOpen=!this.modalIsOpen,!this.modalIsOpen){t.n=2;break}return this.checkForScrollBar(),t.n=1,o.Vue.nextTick();case 1:return c.A.fullscreenModalOpened(this.$refs.modal),t.a(2);case 2:c.A.fullscreenModalClosed();case 3:return t.a(2)}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.keyboardNavigationEnabled=function(){return this.$root.$el.classList.contains("floating-focus-enabled")},i.shiftFocusIn=function(){this.lastActiveElementOutsideModal=document.activeElement;var t=this.$el.querySelector("select, input");t instanceof HTMLElement&&t.focus()},i.shiftFocusOut=function(){this.lastActiveElementOutsideModal&&this.lastActiveElementOutsideModal.focus()},i.onModalIsOpenChanged=function(t){var e=this;if(t)return document.documentElement.classList.add("overlay-open"),void this.$nextTick(function(){return e.shiftFocusIn()});this.keyboardNavigationEnabled()&&this.shiftFocusOut(),document.documentElement.classList.remove("overlay-open")},function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"scrollBarOffset",get:function(){return this.isMobile?{right:this.scrollBarWidthUnderContent+"px"}:{right:""}}}])}(o.Vue);(0,r.Cg)([(0,i.S)(500)],h.prototype,"onResize",null),(0,r.Cg)([(0,o.Watch)("modalIsOpen")],h.prototype,"onModalIsOpenChanged",null),h=(0,r.Cg)([o.Component],h),e.A=h},32044:function(t,e,n){n(76281),n(78557),n(99425),n(23630);var r=function(){function t(){this.hiddenElements=[],this.scrollPosition=0}var e=t.prototype;return e.fullscreenModalOpened=function(t){if(this.hiddenElements.length>0)throw new Error("A modal is already open");this.scrollPosition=window.pageYOffset;var e=document.querySelector(".floating-focus"),n=[t];e instanceof HTMLElement&&n.push(e),this.hideChildrenExcept(n,document.body)},e.fullscreenModalClosed=function(){this.hiddenElements.forEach(function(t){t.style.display=""}),this.hiddenElements=[],window.scrollTo(0,this.scrollPosition)},e.hideChildrenExcept=function(t,e){var n=this;e.childNodes.forEach(function(e){if(e instanceof HTMLElement&&"script"!==e.tagName.toLowerCase()&&!t.includes(e))return t.every(function(t){return!e.contains(t)})&&"none"!==e.style.display?(e.style.display="none",void n.hiddenElements.push(e)):void n.hideChildrenExcept(t,e)})},t}();e.A=new r}}]);

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.