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KArBJA,GAAA,GAE7CC,EAiBe,yCAjBI+B,MAAK,SAACC,EAAOC,GAC9B,IAAIJ,EAAqB7B,EAAEiC,GACzBjC,EAAEiC,GAASf,KAeyC,+BAdpDlB,EAAEiC,GAASf,KAcwE,+BAbnFlB,EAAEiC,GAASC,OAAOhB,KActB,wCAbIlB,EAAEiC,GAASC,OAAOhB,KActB,yCAbEpB,EAA8BC,EAChC,IAcF6B,EAAgB,qCAAsC,wCAAyC,0BAC7F,iCACA,kCAAmC5B,EAAE,8BAA8BvD,OAAS,GAE9EmF,EAAgB,mBAAoB,kCAAmC,mCACrE,iCACA,mCAAmC,GAAO,GAE5CA,EAAgB,eAAgB,8BAA+B,+BAC7D,iCACA,mCAEF5B,EAAE,kCAAkCmC,OAAM,SAAS3G,GACjDA,EAAMW,iBACN,IAAIiG,EAAO,EAUX,OATApC,EAAE,uCAAuC+B,MAAK,SAACC,EAAOK,GAChDD,EAAO,KACTpC,EAAEqC,GAAMX,YAAY,UACpBU,IAEJ,IACuD,GAAnDpC,EAAE,uCAAuCvD,QAC3CuD,EAAE,kCAAkCsC,UAE/B,CACT,IAEItC,EAAE,mCAAmCvD,OAAS,GAChDmF,EAAgB,iCAAkC,0BAA2B,qBAC3E,GACA,GAGN,CAEA,IAAcW,eAAe,aAAcT,GAC3C,EAAAU,EAAaC,UAAU,IAA+BX","sources":["webpack://fed-project/./app/assets/ts/static/slider/constants.ts","webpack://fed-project/./app/assets/ts/jslibs/impetus.js","webpack://fed-project/./app/assets/ts/static/slider/pageslider.ts"],"sourcesContent":["export const EVENT_PAGESLIDER_ITEMS_LOADED = 'pageslider-items-loaded';\r\n","/* tslint:disable */\r\n// @ts-ignore\r\n\r\n/*\r\n impetus modified for Truelime/FNV\r\n*/\r\n\r\n// fixes weird safari 10 bug where preventDefault is prevented\r\n// @see https://github.com/metafizzy/flickity/issues/457#issuecomment-254501356\r\n//window.addEventListener('touchmove', function () {});\r\n\r\nexport class Impetus {\r\n constructor(_ref) {\r\n var _ref$source = _ref.source;\r\n var sourceEl = _ref$source === undefined ? document : _ref$source;\r\n var updateCallback = _ref.update;\r\n var _ref$multiplier = _ref.multiplier;\r\n var multiplier = _ref$multiplier === undefined ? 1 : _ref$multiplier;\r\n var _ref$friction = _ref.friction;\r\n var friction = _ref$friction === undefined ? 0.92 : _ref$friction;\r\n var initialValues = _ref.initialValues;\r\n var boundX = _ref.boundX;\r\n var boundY = _ref.boundY;\r\n var _ref$bounce = _ref.bounce;\r\n var bounce = _ref$bounce === undefined ? true : _ref$bounce;\r\n\r\n var stopThresholdDefault = 0.3;\r\n var bounceDeceleration = 0.04;\r\n var bounceAcceleration = 0.11;\r\n\r\n // truelime\r\n var canceledCallback = _ref.canceled;\r\n // end truelime\r\n var boundXmin, boundXmax, boundYmin, boundYmax, pointerLastX, pointerLastY, pointerCurrentX, pointerCurrentY, pointerId, decVelX, decVelY = 0;\r\n var targetX = 0;\r\n var targetY = 0;\r\n var stopThreshold = stopThresholdDefault * multiplier;\r\n var ticking = false;\r\n var pointerActive = false;\r\n var paused = false;\r\n var decelerating = false;\r\n var trackingPoints = [];\r\n var dragCount = 0;\r\n\r\n /**\r\n * Initialize instance\r\n */\r\n (function init() {\r\n sourceEl = typeof sourceEl === 'string' ? document.querySelector(sourceEl) : sourceEl;\r\n if (!sourceEl) {\r\n throw new Error('IMPETUS: source not found.');\r\n }\r\n\r\n if (!updateCallback) {\r\n throw new Error('IMPETUS: update function not defined.');\r\n }\r\n\r\n if (initialValues) {\r\n if (initialValues[0]) {\r\n targetX = initialValues[0];\r\n }\r\n if (initialValues[1]) {\r\n targetY = initialValues[1];\r\n }\r\n callUpdateCallback();\r\n }\r\n\r\n // Initialize bound values\r\n if (boundX) {\r\n boundXmin = boundX[0];\r\n boundXmax = boundX[1];\r\n }\r\n if (boundY) {\r\n boundYmin = boundY[0];\r\n boundYmax = boundY[1];\r\n }\r\n\r\n sourceEl.addEventListener('touchstart', onDown);\r\n sourceEl.addEventListener('mousedown', onDown);\r\n })();\r\n\r\n /**\r\n * In edge cases where you may need to\r\n * reinstanciate Impetus on the same sourceEl\r\n * this will remove the previous event listeners\r\n */\r\n this.destroy = function () {\r\n sourceEl.removeEventListener('touchstart', onDown);\r\n sourceEl.removeEventListener('mousedown', onDown);\r\n // however it won't \"destroy\" a reference\r\n // to instance if you'd like to do that\r\n // it returns null as a convinience.\r\n // ex: `instance = instance.destroy();`\r\n return null;\r\n };\r\n\r\n /**\r\n * Disable movement processing\r\n * @public\r\n */\r\n this.pause = function () {\r\n pointerActive = false;\r\n paused = true;\r\n };\r\n\r\n /**\r\n * Enable movement processing\r\n * @public\r\n */\r\n this.resume = function () {\r\n paused = false;\r\n };\r\n\r\n this.getPaused = function () {\r\n return paused;\r\n };\r\n\r\n this.getDragCount = function () {\r\n return dragCount;\r\n };\r\n\r\n /**\r\n * Update the current x and y values\r\n * @public\r\n * @param {Number} x\r\n * @param {Number} y\r\n */\r\n this.setValues = function (x, y) {\r\n if (typeof x === 'number') {\r\n targetX = x;\r\n }\r\n if (typeof y === 'number') {\r\n targetY = y;\r\n }\r\n };\r\n\r\n /**\r\n * Update the multiplier value\r\n * @public\r\n * @param {Number} val\r\n */\r\n this.setMultiplier = function (val) {\r\n multiplier = val;\r\n stopThreshold = stopThresholdDefault * multiplier;\r\n };\r\n\r\n /**\r\n * Update boundX value\r\n * @public\r\n * @param {Number[]} boundX\r\n */\r\n this.setBoundX = function (boundX) {\r\n boundXmin = boundX[0];\r\n boundXmax = boundX[1];\r\n };\r\n\r\n /**\r\n * Update boundY value\r\n * @public\r\n * @param {Number[]} boundY\r\n */\r\n this.setBoundY = function (boundY) {\r\n boundYmin = boundY[0];\r\n boundYmax = boundY[1];\r\n };\r\n\r\n /**\r\n * Executes the update function\r\n */\r\n function callUpdateCallback() {\r\n updateCallback.call(sourceEl, targetX, targetY, decVelX, decVelY, decelerating);\r\n }\r\n\r\n function callCanceledCallback() {\r\n if (canceledCallback && canceledCallback !== undefined) {\r\n canceledCallback.call(sourceEl);\r\n }\r\n }\r\n\r\n /**\r\n * Creates a custom normalized event object from touch and mouse events\r\n * @param {Event} ev\r\n * @returns {Object} with x, y, and id properties\r\n */\r\n function normalizeEvent(ev) {\r\n if (ev.type === 'touchmove' || ev.type === 'touchstart' || ev.type === 'touchend') {\r\n var touch = ev.targetTouches[0] || ev.changedTouches[0];\r\n return {\r\n x: touch.clientX,\r\n y: touch.clientY,\r\n id: touch.identifier\r\n };\r\n } else {\r\n // mouse events\r\n return {\r\n x: ev.clientX,\r\n y: ev.clientY,\r\n id: null\r\n };\r\n }\r\n }\r\n\r\n /**\r\n * Initializes movement tracking\r\n * @param {Object} ev Normalized event\r\n */\r\n function onDown(ev) {\r\n\r\n if (ev.target.tagName.toLowerCase() === 'a') {\r\n // return;\r\n }\r\n\r\n var event = normalizeEvent(ev);\r\n dragCount = 0;\r\n if (!pointerActive && !paused) {\r\n pointerActive = true;\r\n decelerating = false;\r\n pointerId = event.id;\r\n\r\n pointerLastX = pointerCurrentX = event.x;\r\n pointerLastY = pointerCurrentY = event.y;\r\n trackingPoints = [];\r\n addTrackingPoint(pointerLastX, pointerLastY);\r\n\r\n // @see https://developers.google.com/web/updates/2017/01/scrolling-intervention\r\n document.addEventListener('touchmove', onMove, getPassiveSupported() ? { passive: false } : false);\r\n document.addEventListener('touchend', onUp);\r\n document.addEventListener('touchcancel', stopTracking);\r\n document.addEventListener('mousemove', onMove, getPassiveSupported() ? { passive: false } : false);\r\n document.addEventListener('mouseup', onUp);\r\n }\r\n }\r\n\r\n /**\r\n * Handles move events\r\n * @param {Object} ev Normalized event\r\n */\r\n function onMove(ev) {\r\n var event = normalizeEvent(ev);\r\n if (pointerActive && event.id === pointerId) {\r\n dragCount++;\r\n \r\n // only preventdefault if Y didn't change for 5 pixels\r\n if ((Math.abs(event.y - pointerLastY) < 5) ||\r\n (dragCount >= 2) ||\r\n (Math.abs(event.x - pointerLastx) > 5)) {\r\n ev.preventDefault();\r\n\r\n pointerCurrentX = event.x;\r\n pointerCurrentY = event.y;\r\n addTrackingPoint(pointerLastX, pointerLastY);\r\n requestTick();\r\n } else {\r\n stopTracking(false);\r\n\r\n pointerActive = false;\r\n paused = true;\r\n decelerating = false;\r\n\r\n callCanceledCallback();\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Handles up/end events\r\n * @param {Object} ev Normalized event\r\n */\r\n function onUp(ev) {\r\n var event = normalizeEvent(ev);\r\n\r\n if (pointerActive && event.id === pointerId) {\r\n stopTracking(false);\r\n }\r\n pointerActive = false;\r\n }\r\n\r\n /**\r\n * Stops movement tracking, starts animation\r\n */\r\n function stopTracking(isOnlyRemoveEvents) {\r\n\r\n if (!isOnlyRemoveEvents) {\r\n pointerActive = false;\r\n addTrackingPoint(pointerLastX, pointerLastY);\r\n startDecelAnim();\r\n }\r\n\r\n document.removeEventListener('touchmove', onMove);\r\n document.removeEventListener('touchend', onUp);\r\n document.removeEventListener('touchcancel', stopTracking);\r\n document.removeEventListener('mouseup', onUp);\r\n document.removeEventListener('mousemove', onMove);\r\n }\r\n\r\n /**\r\n * Records movement for the last 100ms\r\n * @param {number} x\r\n * @param {number} y [description]\r\n */\r\n function addTrackingPoint(x, y) {\r\n var time = Date.now();\r\n while (trackingPoints.length > 0) {\r\n if (time - trackingPoints[0].time <= 100) {\r\n break;\r\n }\r\n trackingPoints.shift();\r\n }\r\n\r\n trackingPoints.push({ x: x, y: y, time: time });\r\n }\r\n\r\n /**\r\n * Calculate new values, call update function\r\n */\r\n function updateAndRender() {\r\n var pointerChangeX = pointerCurrentX - pointerLastX;\r\n var pointerChangeY = pointerCurrentY - pointerLastY;\r\n\r\n targetX += pointerChangeX * multiplier;\r\n targetY += pointerChangeY * multiplier;\r\n\r\n if (bounce) {\r\n var diff = checkBounds();\r\n if (diff.x !== 0) {\r\n targetX -= pointerChangeX * dragOutOfBoundsMultiplier(diff.x) * multiplier;\r\n }\r\n if (diff.y !== 0) {\r\n targetY -= pointerChangeY * dragOutOfBoundsMultiplier(diff.y) * multiplier;\r\n }\r\n } else {\r\n checkBounds(true);\r\n }\r\n\r\n callUpdateCallback();\r\n\r\n pointerLastX = pointerCurrentX;\r\n pointerLastY = pointerCurrentY;\r\n ticking = false;\r\n }\r\n\r\n /**\r\n * Returns a value from around 0.5 to 1, based on distance\r\n * @param {Number} val\r\n */\r\n function dragOutOfBoundsMultiplier(val) {\r\n return 0.000005 * Math.pow(val, 2) + 0.0001 * val + 0.55;\r\n }\r\n\r\n /**\r\n * prevents animating faster than current framerate\r\n */\r\n function requestTick() {\r\n if (!ticking) {\r\n requestAnimFrame(updateAndRender);\r\n }\r\n ticking = true;\r\n }\r\n\r\n /**\r\n * Determine position relative to bounds\r\n * @param {Boolean} restrict Whether to restrict target to bounds\r\n */\r\n function checkBounds(restrict) {\r\n var xDiff = 0;\r\n var yDiff = 0;\r\n\r\n if (boundXmin !== undefined && targetX < boundXmin) {\r\n xDiff = boundXmin - targetX;\r\n } else if (boundXmax !== undefined && targetX > boundXmax) {\r\n xDiff = boundXmax - targetX;\r\n }\r\n\r\n if (boundYmin !== undefined && targetY < boundYmin) {\r\n yDiff = boundYmin - targetY;\r\n } else if (boundYmax !== undefined && targetY > boundYmax) {\r\n yDiff = boundYmax - targetY;\r\n }\r\n\r\n if (restrict) {\r\n if (xDiff !== 0) {\r\n targetX = xDiff > 0 ? boundXmin : boundXmax;\r\n }\r\n if (yDiff !== 0) {\r\n targetY = yDiff > 0 ? boundYmin : boundYmax;\r\n }\r\n }\r\n\r\n return {\r\n x: xDiff,\r\n y: yDiff,\r\n inBounds: xDiff === 0 && yDiff === 0\r\n };\r\n }\r\n\r\n /**\r\n * Initialize animation of values coming to a stop\r\n */\r\n function startDecelAnim() {\r\n var firstPoint = trackingPoints[0];\r\n var lastPoint = trackingPoints[trackingPoints.length - 1];\r\n\r\n var xOffset = lastPoint.x - firstPoint.x;\r\n var yOffset = lastPoint.y - firstPoint.y;\r\n var timeOffset = lastPoint.time - firstPoint.time;\r\n\r\n var D = timeOffset / 15 / multiplier;\r\n\r\n decVelX = xOffset / D || 0; // prevent NaN\r\n decVelY = yOffset / D || 0;\r\n\r\n var diff = checkBounds();\r\n\r\n if (Math.abs(decVelX) > 1 || Math.abs(decVelY) > 1 || !diff.inBounds) {\r\n decelerating = true;\r\n requestAnimFrame(stepDecelAnim);\r\n }\r\n }\r\n\r\n /**\r\n * Animates values slowing down\r\n */\r\n function stepDecelAnim() {\r\n if (!decelerating) {\r\n return;\r\n }\r\n\r\n decVelX *= friction;\r\n decVelY *= friction;\r\n\r\n targetX += decVelX;\r\n targetY += decVelY;\r\n\r\n var diff = checkBounds();\r\n\r\n if (Math.abs(decVelX) > stopThreshold || Math.abs(decVelY) > stopThreshold || !diff.inBounds) {\r\n\r\n if (bounce) {\r\n var reboundAdjust = 2.5;\r\n\r\n if (diff.x !== 0) {\r\n if (diff.x * decVelX <= 0) {\r\n decVelX += diff.x * bounceDeceleration;\r\n } else {\r\n var adjust = diff.x > 0 ? reboundAdjust : -reboundAdjust;\r\n decVelX = (diff.x + adjust) * bounceAcceleration;\r\n }\r\n }\r\n if (diff.y !== 0) {\r\n if (diff.y * decVelY <= 0) {\r\n decVelY += diff.y * bounceDeceleration;\r\n } else {\r\n var adjust = diff.y > 0 ? reboundAdjust : -reboundAdjust;\r\n decVelY = (diff.y + adjust) * bounceAcceleration;\r\n }\r\n }\r\n } else {\r\n if (diff.x !== 0) {\r\n if (diff.x > 0) {\r\n targetX = boundXmin;\r\n } else {\r\n targetX = boundXmax;\r\n }\r\n decVelX = 0;\r\n }\r\n if (diff.y !== 0) {\r\n if (diff.y > 0) {\r\n targetY = boundYmin;\r\n } else {\r\n targetY = boundYmax;\r\n }\r\n decVelY = 0;\r\n }\r\n }\r\n\r\n callUpdateCallback();\r\n\r\n requestAnimFrame(stepDecelAnim);\r\n } else {\r\n decelerating = false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * @see http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/\r\n */\r\n \r\n var requestAnimFrame = (function () {\r\n return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) {\r\n window.setTimeout(callback, 1000 / 60);\r\n };\r\n })();\r\n\r\n function getPassiveSupported() {\r\n var passiveSupported = false;\r\n\r\n try {\r\n var options = Object.defineProperty({}, \"passive\", {\r\n get: function get() {\r\n passiveSupported = true;\r\n }\r\n });\r\n\r\n window.addEventListener(\"test\", null, options);\r\n } catch (err) {}\r\n\r\n getPassiveSupported = function () {\r\n return passiveSupported;\r\n };\r\n return passiveSupported;\r\n };","import { TweenMax } from 'gsap';\r\nimport { Power1 } from 'gsap';\r\nimport { Power3 } from 'gsap';\r\nimport { isBreakpoint } from '@fnv-core/dom';\r\nimport { EventManager } from '@fnv-core/events';\r\nimport { PluginManager } from '@fnv-static/plugins';\r\nimport { Impetus } from '../../jslibs/impetus.js';\r\nimport { EVENT_PAGESLIDER_ITEMS_LOADED } from './constants';\r\n\r\n/**\r\n * Controller for adding 'carousel-like' page slider functionality.\r\n * For example to scroll through horizontal news items.\r\n */\r\nclass PageSliderController {\r\n totalWidth : number;\r\n slideElement : string;\r\n slideTransform : string;\r\n sliderContainer : string;\r\n controlLeft : string;\r\n controlRight : string;\r\n useParentWidhForSlideElement : boolean;\r\n\r\n setTotalWidth() {\r\n let slideWidth : number = $(this.slideElement).outerWidth(true);\r\n if (!!this.useParentWidhForSlideElement) {\r\n slideWidth = $(this.slideElement).parent().outerWidth(true);\r\n }\r\n\r\n this.totalWidth = slideWidth * $(this.slideElement).length;\r\n }\r\n\r\n updateControlsState(currentPosition : number, maxPosition) {\r\n $(this.controlLeft).removeClass(\"disabled\");\r\n $(this.controlRight).removeClass(\"disabled\");\r\n if (currentPosition >= 0) {\r\n $(this.controlLeft).addClass(\"disabled\");\r\n } \r\n\r\n if (currentPosition <= maxPosition) {\r\n $(this.controlRight).addClass(\"disabled\");\r\n } \r\n }\r\n\r\n constructor(sliderContainer : string | any, \r\n slideTransform : string | any, \r\n slideElement : string | any, \r\n controlLeft : string | any, \r\n controlRight : string | any, \r\n useParentWidhForSlideElement: boolean = false,\r\n slideOnAllBreakPoints : boolean = false) {\r\n if ($(slideElement).length > 0) {\r\n \r\n let currentPosition : number = 0;\r\n\r\n this.slideElement = slideElement;\r\n this.sliderContainer = sliderContainer;\r\n this.slideTransform = slideTransform;\r\n this.controlLeft = controlLeft;\r\n this.controlRight = controlRight;\r\n this.useParentWidhForSlideElement = useParentWidhForSlideElement; \r\n\r\n TweenMax.to($(sliderContainer), 0.35, {opacity: 1, ease: Power1.easeInOut});\r\n\r\n let element : JQuery = $(slideElement);\r\n let containerElement : JQuery = $(slideTransform);\r\n let slideWidth : number = $(slideElement).outerWidth(true);\r\n if (!!this.useParentWidhForSlideElement) {\r\n slideWidth = $(slideElement).parent().outerWidth(true);\r\n }\r\n let position : number = 0;\r\n const startPosition : number = 0;\r\n this.setTotalWidth();\r\n let self : any = this;\r\n const slideControls : JQuery = $(\".page-slider__slides-control\");\r\n\r\n let ignoreImpetus : boolean = false;\r\n const currentSlide = 0;\r\n let canceled : boolean = false;\r\n \r\n TweenMax.set(slideTransform, {x: position + \"px\"});\r\n\r\n self.updateControlsState(currentPosition, Math.ceil(-(self.totalWidth - $(self.slideTransform).innerWidth() - 10 )));\r\n\r\n const myImpetus = new Impetus({\r\n source: $(sliderContainer)[0],\r\n multiplier: 1.2,\r\n friction: 0.93,\r\n boundX: [-(self.totalWidth - $(containerElement).innerWidth() - 5) , 0],\r\n update: function(x : number, y : number, decVelX : number, decVelY : number, decelerating : boolean) {\r\n if (!ignoreImpetus) {\r\n canceled = false;\r\n if (self.totalWidth < $(containerElement).innerWidth()) {\r\n myImpetus.pause();\r\n return false;\r\n }\r\n\r\n position = x;\r\n\r\n TweenMax.set(slideTransform, {x: position + \"px\"}); \r\n }\r\n },\r\n canceled: function() {\r\n\r\n //\r\n }\r\n });\r\n\r\n\r\n let touchEventsReceived = false;\r\n let startCoordinate : any = undefined;\r\n\r\n $(sliderContainer).on(\"mousedown touchstart\", (event) => {\r\n\r\n if (!slideOnAllBreakPoints && (isBreakpoint(\"md\") || isBreakpoint (\"lg\") || isBreakpoint (\"xl\"))) {\r\n \r\n myImpetus.pause();\r\n return;\r\n }\r\n\r\n myImpetus.resume();\r\n\r\n let coordinates : any = {};\r\n if (event.type === 'touchstart') {\r\n touchEventsReceived = true;\r\n const touch = event.targetTouches[0] || event.changedTouches[0];\r\n coordinates = {\r\n x: touch.clientX,\r\n y: touch.clientY\r\n };\r\n } else {\r\n if (touchEventsReceived) {\r\n return false;\r\n }\r\n coordinates = {\r\n x: event.clientX,\r\n y: event.clientY\r\n };\r\n }\r\n\r\n startCoordinate = coordinates;\r\n\r\n });\r\n\r\n if (typeof sliderContainer === \"string\") {\r\n \r\n $(sliderContainer + \" a\").on(\"click\", (event) => {\r\n \r\n if (!myImpetus.getPaused() && myImpetus.getDragCount() > 0) {\r\n event.preventDefault();\r\n return false;\r\n }\r\n\r\n });\r\n\r\n if ($(sliderContainer + \" .featured-doelen__col a\").length > 0) {\r\n\r\n $(sliderContainer + \" .featured-doelen__col\").on(\"click\", (event) => {\r\n \r\n if (!myImpetus.getPaused() && myImpetus.getDragCount() > 0) { \r\n event.preventDefault();\r\n return false;\r\n } else {\r\n\r\n if (event.target.tagName.toLowerCase() === 'a') {\r\n return;\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n\r\n location.href = $(event.target).closest(\".featured-doelen__col\").find(\"a\").attr(\"href\");\r\n }\r\n \r\n });\r\n }\r\n \r\n } else {\r\n if ($(sliderContainer).find(\".carousel-afbeeldingen__col a\").length > 0) {\r\n\r\n $(sliderContainer).find(\".carousel-afbeeldingen__col\").on(\"click\", (event) => {\r\n if (!myImpetus.getPaused() && myImpetus.getDragCount() > 0) { \r\n event.preventDefault();\r\n event.stopPropagation();\r\n return false;\r\n } else {\r\n\r\n if (event.target.tagName.toLowerCase() === 'a') {\r\n return;\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n }\r\n \r\n });\r\n }\r\n }\r\n\r\n let oldWidth : number = $(window).width();\r\n $(window).resize(function () {\r\n\r\n if (oldWidth != $(window).width()) {\r\n\r\n oldWidth = $(window).width();\r\n position = 0;\r\n \r\n ignoreImpetus = false;\r\n myImpetus.resume();\r\n currentPosition = 0;\r\n\r\n myImpetus.setValues(0, 0);\r\n self.setTotalWidth();\r\n myImpetus.setBoundX([-(self.totalWidth - $(self.slideTransform).innerWidth() - 5) , 0]);\r\n TweenMax.to(self.slideTransform, 0.2 , {x: position, ease: Power3.easeOut});\r\n\r\n slideWidth = $(self.slideElement).outerWidth(true);\r\n if (!!self.useParentWidhForSlideElement) {\r\n slideWidth = $(self.slideElement).parent().outerWidth(true);\r\n }\r\n\r\n self.updateControlsState(currentPosition, Math.ceil(-(self.totalWidth - $(self.slideTransform).innerWidth() - 10 )));\r\n }\r\n });\r\n \r\n\r\n\r\n\r\n if (self.controlLeft !== undefined) {\r\n $(self.controlLeft).on('click', (event) => {\r\n event.preventDefault();\r\n\r\n if ($(self.slideElement).length == 1) {\r\n return;\r\n }\r\n\r\n let slideWidth : number = $(self.slideElement).outerWidth(true);\r\n if (!!self.useParentWidhForSlideElement) {\r\n slideWidth = $(self.slideElement).parent().outerWidth(true);\r\n }\r\n \r\n currentPosition += slideWidth;\r\n if (currentPosition < -(self.totalWidth - $(self.slideTransform).innerWidth() - 10 )) {\r\n currentPosition = -(self.totalWidth - $(self.slideTransform).innerWidth() - 10);\r\n }\r\n if (currentPosition >= 0 ) {\r\n currentPosition = 0;\r\n }\r\n myImpetus.setValues(currentPosition, 0);\r\n self.updateControlsState(currentPosition, Math.ceil(-(self.totalWidth - $(self.slideTransform).innerWidth() - 10 )));\r\n TweenMax.to(self.slideTransform, 0.35 , {x: currentPosition, ease: Power1.easeInOut});\r\n return false;\r\n }); \r\n }\r\n\r\n if (self.controlRight !== undefined) {\r\n $(self.controlRight).on('click', (event) => {\r\n event.preventDefault();\r\n\r\n if ($(self.slideElement).length == 1) {\r\n return;\r\n }\r\n \r\n currentPosition -= slideWidth;\r\n if (currentPosition < Math.ceil(-(self.totalWidth - $(self.slideTransform).innerWidth() - 10 ))) {\r\n currentPosition = Math.ceil(-(self.totalWidth - $(self.slideTransform).innerWidth() - 10 ));\r\n }\r\n myImpetus.setValues(currentPosition, 0);\r\n self.updateControlsState(currentPosition, Math.ceil(-(self.totalWidth - $(self.slideTransform).innerWidth() - 10 )));\r\n TweenMax.to(self.slideTransform, 0.35 , {x: currentPosition, ease: Power1.easeInOut});\r\n return false;\r\n }); \r\n }\r\n\r\n\r\n $(document).on('click', '.page-slider__slide .joboverview__block-cta-button', (event) => {\r\n event.preventDefault();\r\n location.href = $(event.target).attr(\"href\");\r\n return false; \r\n }); \r\n }\r\n }\r\n}\r\n\r\n\r\nfunction setupPageSlider(sliderContainer : string, slideTransform : string, slideElement : string, controlLeft : string, controlRight : string, \r\n useParentWidhForSlideElement: boolean = false, slideOnAllBreakPoints = false) {\r\n \r\n new PageSliderController(sliderContainer, slideTransform, slideElement, controlLeft, controlRight, \r\n useParentWidhForSlideElement, slideOnAllBreakPoints);\r\n\r\n}\r\n\r\nfunction setupPageSliders(sliderContainer : string, slideTransform : string, slideElement : string, controlLeft : string, controlRight : string, \r\n useParentWidhForSlideElement: boolean = false, slideOnAllBreakPoints = false) {\r\n\r\n $(sliderContainer).each((index, element) => {\r\n new PageSliderController($(element), \r\n $(element).find(slideTransform), \r\n $(element).find(slideElement), \r\n $(element).next().find(controlLeft), \r\n $(element).next().find(controlRight), \r\n useParentWidhForSlideElement, slideOnAllBreakPoints);\r\n });\r\n}\r\n\r\nexport function initPageSliders() {\r\n\r\n // if more sliders are added... then also modify hasPageSliders in PageSliderLoaderHelper.ts\r\n setupPageSlider(\".featured-doelen__row-container\", \".featured-doelen__row\", \".featured-doelen__col\", \r\n \".featured-doelen__control-left\",\r\n \".featured-doelen__control-right\");\r\n\r\n setupPageSliders(\".carousel-afbeeldingen__row-container\", \".carousel-afbeeldingen__row\", \".carousel-afbeeldingen__col\", \r\n \".carousel-afbeeldingen__control-left\",\r\n \".carousel-afbeeldingen__control-right\" , false, true);\r\n \r\n setupPageSlider(\".featured-acties__scroll-container\", \".featured-acties__actie-row-container\", \".featured-acties__actie\", \r\n \".featured-acties__control-left\",\r\n \".featured-acties__control-right\", $(\".featured-acties__layout-b\").length > 0);\r\n\r\n setupPageSlider(\".nieuwsoverzicht\", \".nieuwsoverzicht__row-container\", \".nieuwsoverzicht__item-container\", \r\n \".featured-acties__control-left\",\r\n \".featured-acties__control-right\", false, true);\r\n\r\n setupPageSlider(\".eventscases\", \".eventscases__row-container\", \".eventscases__item-container\", \r\n \".featured-acties__control-left\",\r\n \".featured-acties__control-right\");\r\n\r\n $(\".eventcases__meer-nieuws-laden\").click(function(event) {\r\n event.preventDefault();\r\n let loop = 0;\r\n $(\".eventscases__item-container.hidden\").each((index, item) => {\r\n if (loop < 10) {\r\n $(item).removeClass(\"hidden\");\r\n loop++;\r\n }\r\n });\r\n if ($(\".eventscases__item-container.hidden\").length == 0) {\r\n $(\".eventcases__meer-nieuws-laden\").remove();\r\n }\r\n return false;\r\n });\r\n\r\n if ($(\".testimonial__container-wrapper\").length > 0) {\r\n setupPageSlider(\".testimonial__container-column\", \".testimonial__container\", \".testimonial__item\", \r\n \"\",\r\n \"\");\r\n } \r\n\r\n}\r\n\r\nPluginManager.registerPlugin('pageslider', initPageSliders);\r\nEventManager.subscribe(EVENT_PAGESLIDER_ITEMS_LOADED, initPageSliders);\r\n"],"names":["EVENT_PAGESLIDER_ITEMS_LOADED","Impetus","constructor","_ref","boundXmin","boundXmax","boundYmin","boundYmax","pointerLastX","pointerLastY","pointerCurrentX","pointerCurrentY","pointerId","decVelX","_ref$source","source","sourceEl","undefined","document","updateCallback","update","_ref$multiplier","multiplier","_ref$friction","friction","initialValues","boundX","boundY","_ref$bounce","bounce","canceledCallback","canceled","decVelY","targetX","targetY","stopThreshold","ticking","pointerActive","paused","decelerating","trackingPoints","dragCount","callUpdateCallback","call","normalizeEvent","ev","type","touch","targetTouches","changedTouches","x","clientX","y","clientY","id","identifier","onDown","target","tagName","toLowerCase","event","addTrackingPoint","addEventListener","onMove","getPassiveSupported","passive","onUp","stopTracking","Math","abs","pointerLastx","preventDefault","requestAnimFrame","updateAndRender","isOnlyRemoveEvents","firstPoint","lastPoint","length","xOffset","yOffset","D","time","diff","checkBounds","inBounds","stepDecelAnim","startDecelAnim","removeEventListener","Date","now","shift","push","pointerChangeX","pointerChangeY","dragOutOfBoundsMultiplier","val","pow","restrict","xDiff","yDiff","adjust","querySelector","Error","this","destroy","pause","resume","getPaused","getDragCount","setValues","setMultiplier","setBoundX","setBoundY","window","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","callback","setTimeout","passiveSupported","options","Object","defineProperty","get","err","sliderContainer","slideTransform","slideElement","controlLeft","controlRight","useParentWidhForSlideElement","slideOnAllBreakPoints","$","to","opacity","ease","easeInOut","outerWidth","parent","setTotalWidth","set","updateControlsState","ceil","totalWidth","innerWidth","on","stopPropagation","location","href","closest","find","attr","width","resize","easeOut","slideWidth","currentPosition","maxPosition","removeClass","addClass","setupPageSlider","PageSliderController","initPageSliders","each","index","element","next","click","loop","item","remove","registerPlugin","E","subscribe"],"sourceRoot":""}