{"version":3,"names":["appBislistingCss","AppBislisting","this","selectedRegions","selectedTowns","selectCategories","selectedAmenities","hits","pageNum","seed","sort","componentWillLoad","getRandomInt","max","Math","floor","random","preSelectedRegion","push","preSelectedAmenity","preSelectedCategory","getData","componentDidRender","handleFilter","document","querySelector","root","addEventListener","e","detail","val","firstLoad","model","pageNumber","region","city","amenity","category","loading","fetchUrl","typeId","subCategory","fetch","method","headers","Accept","body","JSON","stringify","then","res","json","items","results","length","hasFilters","catch","err","console","warn","selector","pillsSelector","type","options","querySelectorAll","updateFilterPills","forEach","option","onclick","opValue","value","opCheck","classList","contains","remove","checked","filter","x","add","markup","map","p","input","text","parentNode","innerText","join","innerHTML","getAttribute","o","oValue","oCheck","getCurrentHitsDisplay","skip","changePage","hotel","page","num","pagers","pager","currentPage","updatePage","clearFilters","preventDefault","render","h","class","onClick","onPaginate","htmlFor","id","selected","item","href","url","image","src","alt","businessName","xmlns","viewBox","d","address"],"sources":["./src/components/app-hotels/app-bislisting.scss?tag=app-bislisting","./src/components/app-hotels/app-bislisting.tsx"],"sourcesContent":["\r\n.bis-list {\r\n padding: 40px 50px;\r\n transition: opacity 350ms;\r\n @include media-breakpoint-down(lg) {\r\n padding: 10px 24px;\r\n }\r\n \r\n &__empty {\r\n font-size: 1.7rem;\r\n line-height: 1.7rem;\r\n padding: 30px 0;\r\n text-align: center;\r\n }\r\n\r\n &__filters {\r\n .btn-secondary {\r\n width: 100%;\r\n }\r\n .desktop-sidebar {\r\n display: block;\r\n }\r\n .mobile-accordion {\r\n display: none;\r\n }\r\n @include media-breakpoint-up(lg) {\r\n padding-right: 50px;\r\n border-right: 1px solid #EDE8DF;\r\n }\r\n @include media-breakpoint-down(lg) {\r\n width: 327px;\r\n margin: 0 auto;\r\n max-width: 100%;\r\n\r\n .desktop-sidebar {\r\n display: none;\r\n }\r\n .mobile-accordion {\r\n display: block;\r\n margin-bottom: 12px;\r\n\r\n .filter-group {\r\n &::after {\r\n background-color: #E2D9C9;\r\n }\r\n }\r\n .app-accordion {\r\n margin: 0;\r\n }\r\n }\r\n }\r\n }\r\n\r\n .wrapper {\r\n display: grid;\r\n grid-template-columns: 373px auto;\r\n grid-template-rows: 1fr auto;\r\n gap: 50px;\r\n @include media-breakpoint-down(lg) {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 24px;\r\n }\r\n\r\n h1, h2 {\r\n color: $primary;\r\n }\r\n}\r\n\r\n &.loading {\r\n opacity: .7;\r\n pointer-events: none;\r\n }\r\n\r\n &__meta {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n padding-bottom: 30px;\r\n margin-bottom: 30px;\r\n border-bottom: 1px solid #EDE8DF;\r\n\r\n @include media-breakpoint-down(lg) {\r\n flex-direction: column;\r\n justify-content: center;\r\n gap: 20px;\r\n\r\n app-pagination {\r\n width: 100%;\r\n }\r\n }\r\n\r\n .pagination__control > button {\r\n min-width: 24px;\r\n max-width: 24px;\r\n min-height: 24px;\r\n max-height: 24px;\r\n\r\n .icon > svg {\r\n max-width: 7px;\r\n }\r\n\r\n &.arrow, &:is([aria-current=\"page\"]) {\r\n max-height: 29px;\r\n min-height: 29px;\r\n max-width: 29px;\r\n min-width: 29px;\r\n }\r\n &.arrow {\r\n border-color: $secondary;\r\n\r\n &:is(:hover,:focus) {\r\n border-color: $primary;\r\n }\r\n }\r\n }\r\n }\r\n &__dropdown-wrapper {\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\r\n margin-bottom: 30px;\r\n\r\n label {\r\n font-weight: 500;\r\n margin-right: 16px;\r\n }\r\n .dropdown-select {\r\n color: $primary;\r\n font-weight: 400;\r\n }\r\n }\r\n\r\n &__bottom-pager {\r\n padding-top: 40px;\r\n }\r\n\r\n .pagination__range {\r\n display: none;\r\n }\r\n\r\n .pagination {\r\n margin-block: 0;\r\n }\r\n}\r\n\r\n.filter-group {\r\n padding: 20px 0;\r\n\r\n &::after {\r\n content: \"\";\r\n display: block;\r\n clear: both;\r\n width: 100%;\r\n height: 1px;\r\n background-color: #EDE8DF;\r\n margin: 40px 0 10px;\r\n }\r\n &:last-of-type::after {\r\n margin: 10px 0;\r\n\r\n @include media-breakpoint-down(lg) {\r\n display: none;\r\n }\r\n }\r\n \r\n h3 {\r\n font-size: 20px;\r\n line-height: 30px;\r\n color: $primary;\r\n font-weight: 500;\r\n position: relative;\r\n padding-left: 22px;\r\n @include media-breakpoint-down(lg) {\r\n font-size: 18px;\r\n line-height: 24px;\r\n }\r\n\r\n &::before {\r\n content: \"\";\r\n position: absolute;\r\n top: 50%;\r\n left: 0;\r\n width: 4px;\r\n height: 50%;\r\n background: $secondary;\r\n transform: translateY(-50%);\r\n }\r\n }\r\n\r\n .filter-field {\r\n label, .label {\r\n font-size: 16px;\r\n font-weight: 500;\r\n margin-bottom: 7px;\r\n @include media-breakpoint-down(lg) {\r\n font-size: 14px;\r\n line-height: 20px;\r\n font-weight: 700;\r\n }\r\n }\r\n\r\n & + .filter-field {\r\n margin-top: 20px;\r\n }\r\n }\r\n\r\n .filter-input {\r\n position: relative;\r\n max-width: 325px;\r\n border: 1px solid #E2D9C9;\r\n border-radius: 10px;\r\n\r\n app-icon.hydrated {\r\n position: absolute;\r\n top: 11px;\r\n left: 10px;\r\n width: 27px;\r\n height: 27px !important;\r\n background: #E7F4E4;\r\n border-radius: 100%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n\r\n svg {\r\n width: 11px;\r\n height: 13px;\r\n fill: $primary;\r\n }\r\n }\r\n\r\n &:after {\r\n content: \"\";\r\n position: absolute;\r\n top: 20px;\r\n right: 14px;\r\n width: 0; \r\n height: 0; \r\n border-left: 6px solid transparent;\r\n border-right: 6px solid transparent;\r\n border-top: 8px solid $secondary;\r\n }\r\n\r\n input, .input {\r\n display: block;\r\n width: 100%;\r\n padding: 12px 40px 12px 50px;\r\n border: none;\r\n outline: none;\r\n box-shadow: none;\r\n font-size: 16px;\r\n background: #ffffff;\r\n border-radius: 10px;\r\n }\r\n\r\n input[type='date']::-webkit-calendar-picker-indicator {\r\n background: transparent;\r\n bottom: 0;\r\n color: transparent;\r\n cursor: pointer;\r\n height: auto;\r\n left: 0;\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n width: auto;\r\n }\r\n }\r\n}\r\n\r\n.filter-group .filter-field .filter-options {\r\n display: none;\r\n background: #FAF8F2;\r\n margin-top: 5px;\r\n border-radius: 5px;\r\n overflow-Y: auto;\r\n max-width: 325px;\r\n max-height: 310px;\r\n\r\n &__option {\r\n cursor: pointer;\r\n padding: 5px 10px;\r\n\r\n input, label {\r\n pointer-events: none;\r\n }\r\n\r\n label {\r\n padding: 0;\r\n margin: 0;\r\n }\r\n\r\n &.selected {\r\n background: $primary;\r\n color: #fff;\r\n\r\n label {\r\n color: #fff;\r\n }\r\n }\r\n\r\n &:hover {\r\n text-decoration: none;\r\n }\r\n }\r\n}\r\n\r\n.options-field {\r\n .input {\r\n cursor: pointer;\r\n }\r\n\r\n &:focus-within {\r\n .filter-options {\r\n display: block;\r\n }\r\n }\r\n}\r\n\r\n.filter-pills {\r\n display: flex;\r\n flex-wrap: wrap;\r\n padding: 10px 0 20px 0;\r\n\r\n span {\r\n background: #E6F3E3;\r\n display: flex;\r\n align-items: center;\r\n padding: 4px 16px;\r\n border-radius: 100px;\r\n font-size: 16px;\r\n font-weight: 600;\r\n margin: 7px 7px 7px 0;\r\n color: $primary;\r\n\r\n svg {\r\n width: 15px;\r\n height: 15px;\r\n margin-left: 5px;\r\n }\r\n\r\n &:hover {\r\n background: $primary;\r\n color: #fff;\r\n }\r\n }\r\n}\r\n\r\n.business {\r\n display: flex;\r\n background-color: #FAF8F2;\r\n border: 1px solid #F6F4EF;\r\n border-radius: 10px;\r\n flex-wrap: wrap;\r\n text-decoration: none;\r\n transition: background-color 300ms ease-out, border-color 300ms ease-out;\r\n\r\n &:is(:hover, :focus) {\r\n background-color: #F6F4EF;\r\n border-color: #EDE8DF;\r\n transition: background-color 300ms ease-out, border-color 300ms ease-out;\r\n\r\n .business__info h3 {\r\n text-decoration-color: inherit;\r\n transition: text-decoration-color 300ms ease-out;\r\n }\r\n .btn.btn-primary {\r\n background-color: $primary;\r\n }\r\n }\r\n\r\n & + .business {\r\n margin-top: 24px;\r\n }\r\n\r\n &__image {\r\n flex: 0 0 207px;\r\n background: #EDE8DF;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-top-left-radius: 10px;\r\n border-bottom-left-radius: 10px;\r\n position: relative;\r\n\r\n @include media-breakpoint-down(md) {\r\n flex: 1 1 100%;\r\n height: 139px;\r\n border-bottom-left-radius: 0;\r\n border-top-right-radius: 10px;\r\n }\r\n\r\n img {\r\n width: 100%;\r\n height: 100%;\r\n object-fit: cover;\r\n border-top-left-radius: 10px;\r\n border-bottom-left-radius: 10px;\r\n\r\n @include media-breakpoint-down(md) {\r\n border-bottom-left-radius: 0;\r\n border-top-right-radius: 10px;\r\n }\r\n }\r\n }\r\n\r\n &__info {\r\n flex: 1 1 0%;\r\n padding: 20px 30px;\r\n\r\n @include media-breakpoint-down(md) {\r\n flex: 1 1 100%;\r\n }\r\n\r\n h3 {\r\n font-size: 20px;\r\n line-height: 30px;\r\n margin: 0;\r\n padding: 0 0;\r\n color: #4E3D30;\r\n font-weight: 500;\r\n text-decoration: underline;\r\n text-decoration-color: transparent;\r\n transition: text-decoration-color 300ms ease-out;\r\n\r\n @include media-breakpoint-down(lg) {\r\n font-size: 18px;\r\n line-height: 24px;\r\n }\r\n }\r\n\r\n .description {\r\n margin-bottom: 35px;\r\n color: #4E3D30;\r\n font-size: 16px;\r\n line-height: 22px;\r\n line-clamp: 2;\r\n -webkit-line-clamp: 2;\r\n display: -webkit-box;\r\n -webkit-box-orient: vertical;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n\r\n @include media-breakpoint-down(md) {\r\n display: none;\r\n }\r\n }\r\n }\r\n\r\n &__meta {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: flex-end;\r\n gap: 10px;\r\n margin-top: 30px;\r\n\r\n > div {\r\n flex: 0 1 auto;\r\n\r\n > span {\r\n display: flex;\r\n align-items: center;\r\n color: #80634D;\r\n gap: 4px;\r\n font-size: 14px;\r\n line-height: 24px;\r\n \r\n svg {\r\n fill: currentColor;\r\n height: 14px;\r\n }\r\n }\r\n > div:not(.btn) {\r\n font-weight: 400;\r\n font-family: $font-family-secondary;\r\n font-size: 16px;\r\n line-height: 20px;\r\n color: $primary;\r\n margin-top: 8px;\r\n\r\n > span {\r\n font-weight: 300;\r\n }\r\n }\r\n }\r\n .btn {\r\n padding: 11px;\r\n min-width: 185px;\r\n }\r\n @include media-breakpoint-down(md) {\r\n display: block;\r\n margin-top: 10px;\r\n\r\n > div:not(.btn-wrapper) {\r\n margin-bottom: 10px;\r\n }\r\n .btn {\r\n width: 100%;\r\n }\r\n }\r\n }\r\n}\r\n","import { Component, Element, Prop, State, h } from '@stencil/core';\r\nimport { Business } from './business.interface';\r\n\r\n@Component({\r\n tag: 'app-bislisting',\r\n styleUrl: 'app-bislisting.scss',\r\n shadow: false,\r\n})\r\nexport class AppBislisting {\r\n\r\n @Element() root: HTMLElement;\r\n @Prop() typeId: string;\r\n @Prop() subCategory: string;\r\n @Prop() preSelectedRegion: string;\r\n @Prop() preSelectedAmenity: string;\r\n @Prop() preSelectedCategory: string;\r\n @State() firstLoad = true;\r\n @State() items: Array = [];\r\n @State() loading = false;\r\n @State() skip = 0;\r\n @State() hasFilters = false;\r\n public selectedRegions: string[] = [];\r\n public selectedTowns: string[] = [];\r\n public selectCategories: string[] = [];\r\n public selectedAmenities: string[] = [];\r\n public hits = 0;\r\n public pageNum = 1;\r\n private seed = 0;\r\n private sort: any = null;\r\n\r\n componentWillLoad() {\r\n function getRandomInt(max) {\r\n return Math.floor(Math.random() * max);\r\n }\r\n\r\n this.seed = getRandomInt(999);\r\n\r\n\tif(this.preSelectedRegion) {\r\n\t\tthis.selectedRegions.push(this.preSelectedRegion);\r\n\t}\r\n\t\r\n\tif(this.preSelectedAmenity) {\r\n\t\tthis.selectedAmenities.push(this.preSelectedAmenity);\r\n\t}\r\n\t\r\n\tif(this.preSelectedCategory) {\r\n\t\tthis.selectCategories.push(this.preSelectedCategory);\r\n\t}\r\n\r\n this.getData();\r\n }\r\n\r\n componentDidRender() {\t\r\n this.handleFilter(document.querySelector('#region-filters'), document.querySelector('#region-filters-pills'), 'selectedRegions');\r\n this.handleFilter(document.querySelector('#town-filters'), document.querySelector('#town-filters-pills'), 'selectedTowns');\r\n this.handleFilter(document.querySelector('#category-filters'), document.querySelector('#category-filters-pills'), 'selectCategories');\r\n this.handleFilter(document.querySelector('#amenity-filters'), document.querySelector('#amenity-filters-pills'), 'selectedAmenities');\r\n this.handleFilter(document.querySelector('#region-filters-mobile'), document.querySelector('#region-filters-pills-mobile'), 'selectedRegions');\r\n this.handleFilter(document.querySelector('#town-filters-mobile'), document.querySelector('#town-filters-pills-mobile'), 'selectedTowns');\r\n this.handleFilter(document.querySelector('#category-filters-mobile'), document.querySelector('#category-filters-pills-mobile'), 'selectCategories');\r\n this.handleFilter(document.querySelector('#amenity-filters-mobile'), document.querySelector('#amenity-filters-pills-mobile'), 'selectedAmenities');\r\n\t\r\n this.root.querySelector('#bis-sort')?.addEventListener('selectUpdated', (e: any) => {\r\n this.sort = e.detail.val == 0 ? null : 'alphabetical';\r\n this.getData();\r\n });\r\n\t\r\n\tthis.firstLoad = false;\r\n };\r\n\r\n getData() {\r\n const model = {\r\n seed: this.seed,\r\n sort: this.sort,\r\n pageNumber: this.pageNum,\r\n region: this.selectedRegions,\r\n city: this.selectedTowns,\r\n amenity: this.selectedAmenities,\r\n category: this.selectCategories\r\n };\r\n \r\n this.loading = true;\r\n\r\n\tvar fetchUrl = `/api/businesses/getitems/${this.typeId}`;\r\n\t\r\n\tif(this.subCategory) {\r\n\t\tfetchUrl = fetchUrl + '/' + this.subCategory;\r\n\t}\r\n\r\n fetch(fetchUrl, {\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(model)\r\n })\r\n .then(res => res.json())\r\n .then(res => {\r\n this.hits = res.hits;\r\n this.loading = false;\r\n this.items = res.results;\r\n\r\n if (model.region.length || model.city.length || model.category.length || model.amenity.length) {\r\n this.hasFilters = true;\r\n } else {\r\n this.hasFilters = false;\r\n }\r\n }).catch((err) => {\r\n this.loading = false;\r\n console.warn(err);\r\n });\r\n }\r\n\r\n handleFilter(selector, pillsSelector, type) {\r\n if (!selector) {\r\n return;\r\n }\r\n\r\n const options = selector.querySelectorAll('.filter-options__option');\r\n \r\n\tif(this.firstLoad) {\r\n\t\tthis.updateFilterPills(options, pillsSelector, type);\r\n\t}\r\n\t\r\n options.forEach((option) => {\t \r\n option.onclick = () => {\r\n const opValue = option.querySelector('input').value;\r\n const opCheck = option.querySelector('input');\r\n\r\n if (option.classList.contains('selected')) {\r\n option.classList.remove('selected');\r\n opCheck.checked = false;\r\n this[type] = this[type].filter(x => x != opValue);\r\n } else {\r\n option.classList.add('selected');\r\n opCheck.checked = true;\r\n this[type].push(opValue);\r\n } \r\n\t\tthis.updateFilterPills(options, pillsSelector, type);\r\n this.getData();\r\n };\r\n });\r\n }\r\n\r\n updateFilterPills(options, pillsSelector, type) {\r\n const markup = this[type].map((p) => {\r\n const input = document.querySelector(`input[value=\"${p}\"]`);\r\n\r\n let text = p;\r\n\r\n if (input) {\r\n text = input.parentNode?.querySelector('label')?.innerText;\r\n }\r\n\r\n return `\r\n ${text} \r\n `;\r\n }).join('');\r\n\r\n pillsSelector.innerHTML = markup;\r\n\r\n\t//this.bindPills(options, pillsSelector, type);\r\n\r\n pillsSelector.querySelectorAll('.filter-pill').forEach((p) => {\r\n p.onclick = () => {\r\n this[type] = this[type].filter(x => x != p.getAttribute('data-id'));\r\n\r\n options.forEach((o) => {\r\n const oValue = o.querySelector('label').innerText;\r\n const oCheck = o.querySelector('input');\r\n\r\n if (oValue == p.innerText) {\r\n o.classList.remove('selected');\r\n oCheck.checked = false;\r\n }\r\n });\r\n\r\n p.remove();\r\n this.getData();\r\n };\r\n });\r\n }\r\n\r\n getCurrentHitsDisplay() {\r\n return (this.hits > 10) ? `${this.skip + 1}-${this.skip + 10} of ${this.hits} results` : `${this.hits} results`;\r\n }\r\n\r\n changePage(hotel) {\r\n const page = hotel.detail.num;\r\n this.pageNum = page + 1;\r\n this.skip = page * 10;\r\n\r\n const pagers = document.querySelectorAll('app-pagination');\r\n pagers.forEach((pager: any) => {\r\n if (pager.currentPage != page) {\r\n pager.updatePage(page);\r\n }\r\n });\r\n\r\n this.getData();\r\n }\r\n\r\n clearFilters(e) {\r\n e.preventDefault();\r\n\r\n this.selectCategories = [];\r\n this.selectedTowns = [];\r\n this.selectedRegions = [];\r\n\r\n document.querySelectorAll('.filter-pills').forEach((p) => {\r\n p.innerHTML = '';\r\n });\r\n\r\n document.querySelectorAll('.filter-options__option.selected').forEach((o) => {\r\n o.classList.remove('selected');\r\n const oCheck = o.querySelector('input');\r\n if (oCheck) {\r\n oCheck.checked = false;\r\n }\r\n });\r\n\r\n this.getData();\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n \r\n
\r\n
\r\n \r\n\r\n {this.hasFilters && (\r\n this.clearFilters(e)}>Clear Filters\r\n )}\r\n
\r\n\r\n
\r\n {(this.hits > 0) && (\r\n
\r\n { this.getCurrentHitsDisplay() }\r\n {(this.hits > 10 && (\r\n {this.changePage(e)}}> \r\n ))}\r\n
\r\n )}\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n {(this.hits > 0) ? (this.items.map((item) => (\r\n \r\n {(item.image != null) ? (\r\n
\r\n {`Image\r\n
\r\n ) : null}\r\n\r\n
\r\n

{ item.businessName }

\r\n
\r\n
\r\n \r\n \r\n \r\n Location\r\n \r\n
{ item.address}
\r\n
\r\n
\r\n
More Details
\r\n
\r\n
\r\n
\r\n
\r\n ))) : (\r\n\t\t\t\t
There were no results. Please refine your search and try again.
\r\n\t\t\t)}\r\n\r\n {(this.hits > 10) &&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