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BY,EAAcF,EAAGhF,MAEvB+E,EAAWhF,MAA0G,IAArGmF,EAAY/D,WAAU,SAAAC,GAAG,OAAI,EAAKE,YAAYD,EAAMxC,QAAQoG,GAAa7D,IAAgB,QAARA,CAAa,IAClH,KAEI2D,EAAWI,OAAM,SAAAC,GAAI,OAAIA,CAAI,IAG7B,OAFA/D,EAAMG,MAAMC,QAAU,YACtBJ,EAAMZ,UAAUO,IAAI,GAAD,OAAIjD,EAAgB,yBAI3CsD,EAAMG,MAAMC,QAAU,OACtBJ,EAAMZ,UAAUC,OAAO,GAAD,OAAI3C,EAAgB,wBAE9C,GACJ,GAEA,0BACA,WACIG,KAAKsB,cACLtB,KAAKuB,UACT,KAAC,EAhFgB,CAAS3B,G,4CC9LXyF,SAAS/E,iBAAiB,cAClCqB,SAAQ,SAAAwF,GAAE,OAAI,IAAIrH,EAAAA,EAAAA,OAAgBqH,GAAIC,MAAM,IAC3B/B,SAAS/E,iBAAiB,wBAClCqB,SAAQ,SAAA0F,GAAG,OAAI,IAAIvH,EAAAA,EAAAA,gBAAyBuH,GAAKD,MAAM,G","sources":["webpack:///./scripts/ui-filter/UIfilter.js","webpack:///./scripts/ui-filter/index.js"],"sourcesContent":["import { gsap } from \"gsap\"\r\nimport { Flip } from \"gsap/Flip\"\r\nimport { refreshAllControllers } from \"@/scripts/common/api/scrolltrigger.services\"\r\nimport { LazyLoad } from '@/scripts/lazyload/Lazyload'\r\ngsap.registerPlugin(Flip)\r\n\r\nconst CLASS_FILTER_PRE = 'ui-filter'\r\nexport const UIFilter = (function () {\r\n class Filter {\r\n constructor(container) {\r\n this.$filterContainer = container\r\n this.$filterOptions = this.$filterContainer.querySelector(`.${CLASS_FILTER_PRE}__options`)\r\n this.$filterPanel = this.$filterContainer.querySelector(`.${CLASS_FILTER_PRE}__panel`)\r\n this.$filterPanelCols = this.$filterContainer.querySelectorAll(`.${CLASS_FILTER_PRE}-grid__panel-col`)\r\n this.$filterItems = gsap.utils.toArray(this.$filterPanel.querySelectorAll(`.${CLASS_FILTER_PRE}__panel-item`))\r\n this.$filterAllBtn = this.$filterContainer.querySelector(`.${CLASS_FILTER_PRE}__all-btn`)\r\n this.$filterCarousel = this.$filterContainer.querySelector(`.card-carousel__list`)\r\n this.noFlipAnimateFeature = this.$filterContainer.dataset.noFlipAnimate || false\r\n this.flipItemsState = null\r\n this.flipPanelState = null\r\n this.filterValues = []\r\n this.events = []\r\n this.carouselList = !!this.$filterContainer.dataset.filterCarousel\r\n\r\n this.options = {\r\n noItemMessage: 'We are sorry. No result were found for the selected filters(s)'\r\n }\r\n }\r\n\r\n init() {\r\n this.eventBuilder()\r\n this.updateValue()\r\n this.updateUI()\r\n this.addListeners()\r\n }\r\n\r\n updateValue() {\r\n this.filterValues = []\r\n const $checkedInputs = this.$filterOptions.querySelectorAll('input:checked')\r\n const $dropdowns = this.$filterOptions.querySelectorAll('.dropdown')\r\n $checkedInputs.forEach($inp => this.filterValues.push($inp.value))\r\n $dropdowns.forEach($dd => $dd.value ? this.filterValues.push($dd.value) : this.filterValues.push('all'))\r\n }\r\n\r\n updateUI() {\r\n if(!this.noFlipAnimateFeature) this.getFlipStates()\r\n this.toggleClasses()\r\n this.filteringItems()\r\n this.noItemsUpdate()\r\n if(!this.noFlipAnimateFeature) this.flipAnimate()\r\n\r\n }\r\n\r\n updateClassPanelCols() {\r\n let totalItemsArr = []\r\n this.$filterPanelCols.forEach(($col) => {\r\n $col.classList.remove(`${CLASS_FILTER_PRE}-grid__panel-col--larger`)\r\n const $items = $col.querySelectorAll(`.${CLASS_FILTER_PRE}__panel-item:not([style*=\"display: none\"]):not(.${CLASS_FILTER_PRE}__panel-item--hidden)`)\r\n totalItemsArr.push($items.length)\r\n })\r\n this.$filterPanelCols[totalItemsArr.indexOf(Math.max(...totalItemsArr))].classList.add(`${CLASS_FILTER_PRE}-grid__panel-col--larger`)\r\n }\r\n\r\n toggleClasses() {\r\n const $filterOptionItems = this.$filterOptions.querySelectorAll(`.${CLASS_FILTER_PRE}__options-item`)\r\n\r\n $filterOptionItems.forEach($opt => {\r\n $opt.classList.remove(`${CLASS_FILTER_PRE}__options-item--active`)\r\n const $input = $opt.querySelector('input')\r\n if ($input)\r\n if (this.filterValues.findIndex(val => val === $input.value) !== -1) $opt.classList.add(`${CLASS_FILTER_PRE}__options-item--active`)\r\n })\r\n }\r\n\r\n filteringItems() {\r\n\r\n this.$filterItems.forEach($item => {\r\n // this.filterValues.findIndex(val => {\r\n // $item.dataset.group.match(val)\r\n // })\r\n if(this.filterValues.findIndex(val => this.filterMatch($item.dataset.group, val) || val === 'all') === -1) {\r\n $item.style.display = 'none'\r\n $item.classList.add(`${CLASS_FILTER_PRE}__panel-item--hidden`)\r\n return\r\n }\r\n $item.style.display = 'flex'\r\n $item.classList.remove(`${CLASS_FILTER_PRE}__panel-item--hidden`)\r\n })\r\n\r\n \r\n }\r\n\r\n filterMatch(group, val) {\r\n const groups = group.split(',').map(item => item.trim())\r\n //return groups.indexOf(val) !== -1\r\n return groups.includes(val)\r\n }\r\n\r\n // FLIP\r\n getFlipStates() {\r\n this.flipItemState = Flip.getState(this.$filterItems)\r\n this.flipPanelState = Flip.getState(this.$filterPanel)\r\n }\r\n\r\n flipAnimate() {\r\n const tl = gsap.timeline({\r\n onStart: () => this.$filterContainer.dispatchEvent(this.events['UIFilterStart']),\r\n onComplete: () => {\r\n refreshAllControllers()\r\n this.$filterContainer.dispatchEvent(this.events['UIFilterUpdated'])\r\n }\r\n })\r\n tl.add(Flip.from(this.flipItemState, {\r\n duration: 0.4,\r\n scale: false,\r\n ease: \"power2.inOut\",\r\n toggleClass: `${CLASS_FILTER_PRE}__panel-item--is-flipping`,\r\n stagger: 0,\r\n absolute: false,\r\n onEnter: elements => gsap.fromTo(elements, { opacity: 0, scale: 1 }, { opacity: 1, scale: 1, duration: 0.4 }),\r\n onLeave: elements => gsap.fromTo(elements, { opacity: 1, scale: 1 }, { opacity: 0, scale: 0, duration: 0.4 })\r\n }), 0)\r\n .add(Flip.from(this.flipPanelState, {\r\n duration: 0.4,\r\n scale: false,\r\n ease: \"power2.inOut\",\r\n toggleClass: `${CLASS_FILTER_PRE}__panel--is-flipping`,\r\n absolute: false,\r\n nested: true\r\n }), 0)\r\n\r\n }\r\n\r\n // On update callbacks\r\n onFilterUpdate() {\r\n if (this.$filterPanelCols.length) this.updateClassPanelCols()\r\n }\r\n\r\n // Event creator\r\n\r\n eventBuilder() {\r\n this.events['UIFilterStart'] = new CustomEvent('UIFilterStart', {\r\n bubbles: true\r\n })\r\n\r\n this.events['UIFilterUpdated'] = new CustomEvent('UIFilterUpdated', {\r\n bubbles: true\r\n })\r\n }\r\n\r\n // Empty check\r\n noItemsUpdate() {\r\n const selectedItems = this.$filterItems.find($item => !$item.classList.contains(`${CLASS_FILTER_PRE}__panel-item--hidden`)) !== undefined\r\n const infoDiv = this.$filterPanel.querySelector(`.${CLASS_FILTER_PRE}__panel-info`)\r\n if(infoDiv) infoDiv.remove()\r\n \r\n if(!selectedItems) {\r\n const infoDiv = document.createElement('div')\r\n infoDiv.classList.add(`${CLASS_FILTER_PRE}__panel-info`)\r\n infoDiv.innerHTML = `
${this.options.noItemMessage}
`\r\n this.$filterPanel.prepend(infoDiv)\r\n return\r\n }\r\n }\r\n\r\n // Handlers\r\n inputHandler() {\r\n this.updateValue()\r\n this.updateUI()\r\n }\r\n\r\n defaultDropdowns(e) {\r\n e.preventDefault()\r\n const $dropdowns = this.$filterOptions.querySelectorAll('.dropdown')\r\n $dropdowns.forEach($dd => {\r\n $dd.setValue('')\r\n })\r\n }\r\n\r\n addListeners() {\r\n const $inputs = this.$filterOptions.querySelectorAll('input')\r\n const $dropdowns = this.$filterOptions.querySelectorAll('.dropdown')\r\n\r\n $inputs.forEach($inp => $inp.addEventListener('change', () => this.inputHandler()))\r\n $dropdowns.forEach($dd => $dd.addEventListener('select', () => this.inputHandler()))\r\n\r\n this.$filterContainer.addEventListener('UIFilterUpdated', () => this.onFilterUpdate())\r\n\r\n this.$filterAllBtn?.addEventListener('click', (e) => this.defaultDropdowns(e))\r\n }\r\n }\r\n\r\n class FilterSelection extends Filter {\r\n constructor(container) {\r\n super(container)\r\n\r\n this.filterValues = this.$filterContainer.dataset.filters ?\r\n this.$filterContainer.dataset.filters.split(',').map(f => {\r\n return {\r\n name: f.trim(),\r\n value: []\r\n }\r\n }) : []\r\n }\r\n\r\n init() {\r\n this.eventBuilder()\r\n this.updateValue()\r\n this.updateUI()\r\n this.addListeners()\r\n }\r\n\r\n updateUI() {\r\n if(this.carouselList) {\r\n this.filteringCarousel()\r\n return\r\n }\r\n this.getFlipStates()\r\n this.filteringItems()\r\n this.noItemsUpdate()\r\n this.flipAnimate()\r\n }\r\n\r\n // Values and filtering\r\n updateValue() {\r\n const $dropdowns = gsap.utils.toArray(this.$filterOptions.querySelectorAll('.dropdown'))\r\n this.filterValues.forEach(v => {\r\n const $dd = $dropdowns[$dropdowns.findIndex($dd => $dd.classList.contains(`dropdown--filter-${v.name}`))]\r\n v.value = []\r\n v.value.push($dd.value || 'all')\r\n })\r\n }\r\n\r\n filteringCarousel() {\r\n const filterSelector = `${this.filterValues.map((val) => `[data-${val.name}${val.value[0] === 'all' ? '' : `=\"${val.value[0]}\"`}]`).join('')}`\r\n \r\n $(this.$filterCarousel).slick('slickUnfilter')\r\n $(this.$filterCarousel).slick('slickFilter',filterSelector)\r\n\r\n const $lazyload = this.$filterCarousel.querySelectorAll('.lazyload')\r\n $lazyload.forEach($bg => {\r\n if(!$bg.classList.contains('bg-img--loaded')) new LazyLoad($bg)\r\n })\r\n }\r\n\r\n filteringItems() {\r\n \r\n this.$filterItems.forEach($item => {\r\n let activeCond = []\r\n this.filterValues.forEach(fv => {\r\n const filterName = fv.name\r\n const filterValue = fv.value\r\n \r\n activeCond.push(filterValue.findIndex(val => this.filterMatch($item.dataset[filterName], val) || val === 'all') === -1 ? false : true)\r\n })\r\n\r\n if(!activeCond.every(cond => cond)) {\r\n $item.style.display = 'none'\r\n $item.classList.add(`${CLASS_FILTER_PRE}__panel-item--hidden`)\r\n return\r\n }\r\n\r\n $item.style.display = 'flex'\r\n $item.classList.remove(`${CLASS_FILTER_PRE}__panel-item--hidden`)\r\n \r\n })\r\n }\r\n\r\n // Callbacks\r\n inputHandler() {\r\n this.updateValue()\r\n this.updateUI()\r\n }\r\n }\r\n\r\n return {\r\n Filter,\r\n FilterSelection\r\n }\r\n})()","import {UIFilter} from './UIfilter'\r\n(function(){\r\n const $uiFilters = document.querySelectorAll('.ui-filter')\r\n $uiFilters.forEach($f => new UIFilter.Filter($f).init())\r\n const $uiFilterSelections = document.querySelectorAll('.ui-filter-selection')\r\n $uiFilterSelections.forEach($fS => new UIFilter.FilterSelection($fS).init())\r\n})()"],"names":["gsap","Flip","Filter","CLASS_FILTER_PRE","UIFilter","container","this","$filterContainer","$filterOptions","querySelector","$filterPanel","$filterPanelCols","querySelectorAll","$filterItems","$filterAllBtn","$filterCarousel","noFlipAnimateFeature","dataset","noFlipAnimate","flipItemsState","flipPanelState","filterValues","events","carouselList","filterCarousel","options","noItemMessage","eventBuilder","updateValue","updateUI","addListeners","$checkedInputs","$dropdowns","forEach","$inp","push","value","$dd","getFlipStates","toggleClasses","filteringItems","noItemsUpdate","flipAnimate","totalItemsArr","$col","classList","remove","$items","length","indexOf","Math","max","add","$opt","$input","findIndex","val","$item","filterMatch","group","style","display","split","map","item","trim","includes","flipItemState","onStart","dispatchEvent","onComplete","refreshAllControllers","duration","scale","ease","toggleClass","stagger","absolute","onEnter","elements","opacity","onLeave","nested","updateClassPanelCols","CustomEvent","bubbles","selectedItems","undefined","find","contains","infoDiv","document","createElement","innerHTML","prepend","e","preventDefault","setValue","$inputs","addEventListener","inputHandler","onFilterUpdate","defaultDropdowns","FilterSelection","filters","f","name","filteringCarousel","v","filterSelector","join","$","slick","$bg","LazyLoad","activeCond","fv","filterName","filterValue","every","cond","$f","init","$fS"],"sourceRoot":""}