PageSourceSearch

https://www.rijksmuseum.nl/statics/generated/items-carousel.5d450fe8012d4070d75f.js

js rijksmuseum.nl collected 2026-09-24 07:50:34 UTC 8,826 bytes, 2 lines download raw bytes

1/*! For license information please see items-carousel.5d450fe8012d4070d75f.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6248],{9166:function(t,e,n){n.r(e);n(29305),n(32733),n(81678),n(4754),n(51908),n(94),n(26437),n(52697),n(78557),n(90076);var r=n(41827),i=n(44899),o=n(23692);function u(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof c?r:c,f=Object.create(u.prototype);return s(f,"_invoke",function(n,r,i){var o,u,s,c=0,f=i||[],h=!1,l={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,u=0,s=t,l.n=n,a}};function d(n,r){for(u=n,s=r,e=0;!h&&c&&!i&&e<f.length;e++){var i,o=f[e],d=l.p,p=o[2];n>3?(i=p===r)&&(s=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(u=0,l.v=r,l.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,l.n=p,u=0))}if(i||n>1)return a;throw h=!0,r}return function(i,f,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===f&&d(f,p),u=f,s=p;(e=u<2?t:s)||!h;){o||(u?u<3?(u>1&&(l.n=-1),d(u,s)):l.n=s:l.v=s);try{if(c=2,o){if(u||(i="next"),e=o[i]){if(!(e=e.call(o,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=o.return)&&e.call(o),u<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=t}else if((e=(h=l.n<0)?s:n.call(r,l))!==a)break}catch(e){o=t,u=1,s=e}finally{c=1}}return{value:e,done:h}}}(n,i,o),!0),f}var a={};function c(){}function f(){}function h(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(s(e={},r,function(){return this}),e),d=h.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return f.prototype=h,s(d,"constructor",h),s(h,"constructor",f),f.displayName="GeneratorFunction",s(h,i,"GeneratorFunction"),s(d),s(d,i,"Generator"),s(d,r,function(){return this}),s(d,"toString",function(){return"[object Generator]"}),(u=function(){return{w:o,m:p}})()}function s(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}s=function(t,e,n,r){function o(e,n){s(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},s(t,e,n,r)}function a(t,e,n,r,i,o,u){try{var s=t[o](u),a=s.value}catch(t){return void n(t)}s.done?e(a):Promise.resolve(a).then(r,i)}function c(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,f(r.key),r)}}function f(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 h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var l=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).itemWidth=0,e.carouselWidth=0,e.slidePosition=0,e.width=window.innerWidth,e.touchStartAmount=void 0,e.touchMoveAmount=void 0,e.moveAmount=void 0,e}var n,r;r=t,(n=e).prototype=Object.create(r.prototype),n.prototype.constructor=n,h(n,r);var i=e.prototype;return i.mounted=function(){var t=this;setTimeout(function(){t.calculateWidth()},500),window.addEventListener("resize",this.resizeHandler.bind(this),!1)},i.beforeDestroy=function(){window.removeEventListener("resize",this.resizeHandler.bind(this),!1)},i.resizeHandler=function(){window.innerWidth!==this.width&&(this.width=window.innerWidth,this.slidePosition=0,this.calculateWidth())},i.calculateWidth=function(){if(this.$refs.itemContainer){var t=this.$refs.itemContainer.querySelector(this.itemSelector);t&&(this.carouselWidth=this.$refs.itemContainer.getBoundingClientRect().width,this.itemWidth=t.getBoundingClientRect().width)}},i.sendGtmEvent=function(t){o.b.pushInteractionEvent("click",t.name,"related_stories_carousel")},i.nextSlide=function(){this.sendGtmEvent({name:"next_slide"});var t=this.slidePosition+this.amountOfSlidesShowing;this.slidePosition=Math.min(t,this.amountOfSlides-this.amountOfSlidesShowing)},i.previousSlide=function(){this.sendGtmEvent({name:"previous_slide"});var t=this.slidePosition-this.amountOfSlidesShowing;this.slidePosition=Math.max(t,0)},i.touchStart=function(t){this.touchStartAmount=t.touches[0].pageX},i.touchMove=function(t){this.touchMoveAmount=t.touches[0].pageX,this.touchStartAmount&&this.touchMoveAmount&&(this.moveAmount=this.touchStartAmount-this.touchMoveAmount)},i.touchEnd=function(){this.moveAmount&&this.moveAmount>30?this.nextSlide():this.moveAmount&&this.previousSlide(),this.moveAmount=void 0},i.handleKeyUp=function(){var t,e=(t=u().m(function t(e){var n,r=this;return u().w(function(t){for(;;)switch(t.n){case 0:"arrowleft"===(n=e.key.toLowerCase())?this.previousSlide():"arrowright"===n&&this.nextSlide(),requestAnimationFrame(function(){var t=document.activeElement;t instanceof HTMLElement&&-1===t.tabIndex&&r.$refs.carousel.focus()});case 1:return t.a(2)}},t,this)}),function(){var e=this,n=arguments;
2return new Promise(function(r,i){var o=t.apply(e,n);function u(t){a(o,r,i,u,s,"next",t)}function s(t){a(o,r,i,u,s,"throw",t)}u(void 0)})});return function(t){return e.apply(this,arguments)}}(),function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"amountOfSlidesShowing",get:function(){return Math.floor(this.carouselWidth/this.itemWidth)}},{key:"moveSlide",get:function(){return this.itemWidth*this.slidePosition*-1}},{key:"lastSlide",get:function(){return this.slidePosition+this.amountOfSlidesShowing===this.amountOfSlides}},{key:"showNavigation",get:function(){return this.amountOfSlides>=this.amountOfSlidesShowing}},{key:"visibleSlides",get:function(){for(var t=[],e=this.slidePosition+(this.amountOfSlidesShowing-1),n=this.slidePosition;n<=e;n++)t.push(n);return t}},{key:"transformStyle",get:function(){return{transform:"translate("+this.moveSlide+"px, 0)"}}}])}(i.Vue);(0,r.Cg)([(0,i.Prop)()],l.prototype,"amountOfSlides",void 0),(0,r.Cg)([(0,i.Prop)({default:".carousel-item"})],l.prototype,"itemSelector",void 0),l=(0,r.Cg)([i.Component],l),e.default=l},46446:function(t,e,n){var r=n(2293),i=n(348),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},32429:function(t,e,n){var r=n(1483),i=n(71704),o=n(51953);t.exports=function(t,e,n){var u,s;return o&&r(u=e.constructor)&&u!==n&&i(s=u.prototype)&&s!==n.prototype&&o(t,s),t}},14544:function(t,e,n){var r=n(14762),i=n(53312),o=n(26261),u=n(35870),s=r("".replace),a=RegExp("^["+u+"]+"),c=RegExp("(^|[^"+u+"])["+u+"]+$"),f=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,a,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},52430:function(t,e,n){var r=n(14762);t.exports=r(1.1.valueOf)},35870:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},4754:function(t,e,n){var r=n(55755),i=n(77914),o=n(46446),u=n(70001)("toPrimitive"),s=Date.prototype;r(s,u)||i(s,u,o)},94:function(t,e,n){var r=n(28612),i=n(19557),o=n(20382),u=n(85578),s=n(26589),a=n(14762),c=n(98730),f=n(55755),h=n(32429),l=n(4815),d=n(31423),p=n(22355),v=n(28473),m=n(12278).f,y=n(4961).f,b=n(25835).f,g=n(52430),S=n(14544).trim,w="Number",O=u[w],E=s[w],P=O.prototype,A=u.TypeError,N=a("".slice),_=a("".charCodeAt),I=function(t){var e,n,r,i,o,u,s,a,c=p(t,"number");if(d(c))throw new A("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=S(c),43===(e=_(c,0))||45===e){if(88===(n=_(c,2))||120===n)return NaN}else if(48===e){switch(_(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(u=(o=N(c,2)).length,s=0;s<u;s++)if((a=_(o,s))<48||a>i)return NaN;return parseInt(o,r)}return+c},k=c(w,!O(" 0o1")||!O("0b1")||O("+0x1")),x=function(t){var e,n=arguments.length<1?0:O(function(t){var e=p(t,"number");return"bigint"==typeof e?e:I(e)}(t));return l(P,e=this)&&v(function(){g(e)})?h(Object(n),this,x):n};x.prototype=P,k&&!i&&(P.constructor=x),r({global:!0,constructor:!0,wrap:!0,forced:k},{Number:x});var j=function(t,e){for(var n,r=o?m(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)f(e,n=r[i])&&!f(t,n)&&b(t,n,y(e,n))};i&&E&&j(s[w],E),(k||i)&&j(s[w],O)},81678:function(t,e,n){var r=n(97849),i=n(18192);r("toPrimitive"),i()}}]);

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.