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+O,EAAa/O,aAAa,mBAC5CuO,qBAAqBgB,cAAcnR,QAAQqR,oBAAoB,SAAUb,GACzEL,qBAAqBmB,eACrBnB,qBAAqB7I,UAErB5G,EAAE,8BAA8B6Q,KAAK,yBAA0B7Q,EAAE8Q,MAAMC,OACvEtB,qBAAqBgB,cAAcnR,QAAQQ,iBAAiB,SAAUgQ,GAAmB,GACzFL,qBAAqBuB,MACvB,KAEAhhB,EAAAA,EAAAA,KAAM,WACJugB,GACF,IAEA1hB,SAASiR,iBAAiB,+BAA+B,SAAUpO,GACjE6e,GACF","sources":["webpack://cricksapi/./app/javascript/packs/address_autocomplete.js","webpack://cricksapi/./app/javascript/packs/entries/algolia_search.js","webpack://cricksapi/./app/javascript/packs/entries/chart.js","webpack://cricksapi/./app/javascript/packs/entries/choices.js","webpack://cricksapi/./app/javascript/packs/entries/currency.js","webpack://cricksapi/./app/javascript/packs/entries/photoUpload.js","webpack://cricksapi/./app/javascript/packs/shared/LoadingBoxes.js","webpack://cricksapi/./app/javascript/packs/shared/stock_filters.js","webpack://cricksapi/./app/javascript/packs/application.js","webpack://cricksapi/./app/javascript/packs/flatpickr.js","webpack://cricksapi/./app/javascript/packs/websiteVercelSelector.js"],"sourcesContent":["import { ready } from './entries/utils'\n\nfunction getAddressField(place, type, field = 'short_name') {\n let components = place.address_components.filter((ac) => ac.types.includes(type))\n return components.length > 0 ? components[0][field] : ''\n}\n\nfunction initialize() {\n var input = document.getElementById('searchTextField')\n if (input) {\n var autocomplete = new google.maps.places.Autocomplete(input)\n google.maps.event.addListener(autocomplete, 'place_changed', function () {\n var place = autocomplete.getPlace()\n document.getElementById('address_name').value = `${place.name}`\n document.getElementById('address_street').value =\n `${getAddressField(place, 'street_number')} ${getAddressField(place, 'route')}`\n document.getElementById('address_city').value = getAddressField(place, 'locality')\n document.getElementById('address_postcode').value = getAddressField(place, 'postal_code')\n document.getElementById('address_state').value = getAddressField(\n place,\n 'administrative_area_level_1'\n )\n document.getElementById('address_lat').value = place.geometry.location.lat()\n document.getElementById('address_long').value = place.geometry.location.lng()\n document.getElementById('address_place_id').value = place.place_id\n document.getElementById('address_place_url').value = place.url\n })\n }\n}\n\nready(function () {\n var input = document.getElementById('searchTextField')\n if (typeof google !== 'undefined' && input) {\n google.maps.event.addDomListener(window, 'load', initialize)\n }\n})\n\nlet days_of_week = {\n 0: 'Sunday',\n 1: 'Monday',\n 2: 'Tuesday',\n 3: 'Wednesday',\n 4: 'Thursday',\n 5: 'Friday',\n 6: 'Saturday',\n}\n\nfunction locationSync() {\n var input = document.getElementById('location_google_place_name')\n if (input) {\n var autocomplete = new google.maps.places.Autocomplete(input)\n google.maps.event.addListener(autocomplete, 'place_changed', function () {\n var place = autocomplete.getPlace()\n let placeDetailsContainer = document.getElementById('place-details-container')\n placeDetailsContainer.innerHTML = ''\n placeDetailsContainer.insertAdjacentHTML('beforeend', `

Website = ${place.website}

`)\n placeDetailsContainer.insertAdjacentHTML(\n 'beforeend',\n `

Phone = ${place.formatted_phone_number}

`\n )\n let html_to_insert = ''\n place.opening_hours.periods.map((period) => {\n let day_of_week = period.open.day\n html_to_insert += `
  • ${days_of_week[period.open.day]} - Open: ${period.open.time}. Close: ${period.close.time}
  • `\n document.getElementById(\n `location_contact_detail_attributes_opening_hours_attributes_${day_of_week}_open_4i`\n ).value = period.open.hours < 10 ? `0${period.open.hours}` : `${period.open.hours}`\n document.getElementById(\n `location_contact_detail_attributes_opening_hours_attributes_${day_of_week}_open_5i`\n ).value = period.open.minutes < 10 ? `0${period.open.minutes}` : `${period.open.minutes}`\n document.getElementById(\n `location_contact_detail_attributes_opening_hours_attributes_${day_of_week}_close_4i`\n ).value = period.close.hours < 10 ? `0${period.close.hours}` : `${period.close.hours}`\n document.getElementById(\n `location_contact_detail_attributes_opening_hours_attributes_${day_of_week}_close_5i`\n ).value = period.close.minutes < 10 ? `0${period.close.minutes}` : `${period.close.minutes}`\n let status_select = document.getElementById(\n `location_contact_detail_attributes_opening_hours_attributes_${day_of_week}_status`\n )\n status_select.value = 'Open'\n status_select.dispatchEvent(new Event('change'))\n })\n document.getElementById('location_contact_detail_attributes_phone').value =\n place.formatted_phone_number\n document.getElementById('location_website_url').value = place.website\n document.getElementById('location_google_place_id').value = place.place_id\n placeDetailsContainer.insertAdjacentHTML('beforeend', ``)\n })\n }\n}\n\nready(function () {\n var input = document.getElementById('location_google_place_name')\n if (typeof google !== 'undefined' && input) {\n google.maps.event.addDomListener(window, 'load', locationSync)\n }\n})\n","import { autocomplete } from '@algolia/autocomplete-js'\nimport { MeiliSearch } from 'meilisearch'\n\nimport { getMeilisearchConfig, ready } from './utils'\n\nlet itemUrl = (item) => {\n switch (true) {\n case item.type === 'Dealership':\n return `/dealerships/${item.slug}`\n case item.type === 'Website':\n return `/websites/${item.slug}`\n case item.type === 'Dealership_group':\n return `/dealership_groups/${item.id}`\n default:\n return `/manufacturers/${item.slug}`\n }\n}\n\nlet itemClass = (item) => {\n switch (true) {\n case item.type === 'Dealership':\n return `badge-secondary`\n case item.type === 'Website':\n return `badge-primary`\n case item.type === 'Dealership_group':\n return `badge-danger`\n default:\n return `badge-success`\n }\n}\n\nlet itemLabel = (item) => {\n switch (true) {\n case item.type === 'Dealership':\n return `Dealer`\n case item.type === 'Website':\n return `Website`\n case item.type === 'Dealership_group':\n return `Dealer Group`\n default:\n return `OEM`\n }\n}\n\nfunction getUniqueItems(items, propertyName) {\n return items.filter(\n (item, index, self) => index === self.findIndex((i) => i[propertyName] === item[propertyName])\n )\n}\n\nready(function () {\n let meilisearchHostDomElement = document.getElementById('meilisearch-host')\n if (meilisearchHostDomElement) {\n let { meilisearchHost, meilisearchApiKey } = getMeilisearchConfig()\n\n let searchForm = document.getElementById('autocomplete')\n if (!searchForm) {\n return\n }\n\n const searchClient = new MeiliSearch({\n host: meilisearchHost,\n apiKey: meilisearchApiKey,\n })\n\n autocomplete({\n container: '#autocomplete',\n placeholder: 'Dealerships...',\n detachedMediaQuery: 'none',\n openOnFocus: true,\n render({ sections, render, html }, root) {\n render(\n html`
    \n
    \n \n
    \n
    \n ${sections}\n
    `,\n root\n )\n },\n getSources({ query }) {\n return [\n {\n sourceId: 'dealerships',\n async getItems() {\n let searchQuery = await searchClient.multiSearch({\n queries: [\n {\n indexUid: `Dealership_${process.env.RAILS_ENV}`,\n q: query,\n },\n {\n indexUid: `Website_${process.env.RAILS_ENV}`,\n q: query,\n },\n {\n indexUid: `Manufacturer_${process.env.RAILS_ENV}`,\n q: query,\n filter: 'published=true',\n },\n {\n indexUid: `DealershipGroup_${process.env.RAILS_ENV}`,\n q: query,\n },\n ],\n })\n\n let combined = []\n searchQuery.results.forEach((queryResult) => {\n const uniqueItems = getUniqueItems(queryResult.hits, 'name')\n combined.push(...uniqueItems)\n })\n\n return combined\n },\n templates: {\n item({ item, components, html }) {\n let url = itemUrl(item)\n return html`\n \n
    \n ${item.name}\n \n ${itemLabel(item)}\n \n
    \n
    \n `\n },\n },\n getItemUrl({ item }) {\n return itemUrl(item)\n },\n },\n ]\n },\n })\n }\n})\n","import Chart from 'chart.js/auto'\n\nimport { ready } from './utils'\n\n// This function makes the background colour for out of hours different colour\nlet barChartBackground = (labels, itemName) => {\n if (itemName === 'Hour of day') {\n return labels.map((l, i) => (i < 18 && i > 7 ? '#377dff' : '#323232'))\n }\n return labels.map((l) => '#377dff')\n}\n\nfunction runCharts() {\n ;[...document.querySelectorAll('.barChart')].map((barChart) => {\n if (!barChart.dataset || typeof barChart.dataset.labels === 'undefined') {\n return\n }\n let labels = JSON.parse(barChart.dataset.labels)\n let itemName = barChart.dataset.itemname\n\n const data = {\n labels: labels.map((l) => l[0]),\n datasets: [\n {\n label: itemName,\n backgroundColor: barChartBackground(labels, itemName),\n borderColor: '#377dff',\n data: labels.map((l) => l[1]),\n },\n ],\n }\n\n const config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n legend: {\n display: false,\n },\n tooltip: {\n callbacks: {\n title: function (tooltipItem, data) {\n return labels[tooltipItem[0].dataIndex][2]\n },\n },\n },\n },\n },\n }\n\n const leadsChart = new Chart(barChart, config)\n })\n ;[...document.querySelectorAll('.callsBarChart')].map((barChart) => {\n if (!barChart.dataset || typeof barChart.dataset.labels === 'undefined') {\n return\n }\n let labels = JSON.parse(barChart.dataset.labels)\n let itemName = barChart.dataset.itemname\n\n const data = {\n labels: labels.map((l) => l[0]),\n datasets: [\n {\n label: itemName,\n backgroundColor: barChartBackground(labels, itemName),\n borderColor: '#377dff',\n data: labels.map((l) => l[1]),\n },\n ],\n }\n\n const config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n legend: {\n display: false,\n },\n tooltip: {\n callbacks: {\n title: function (tooltipItem, data) {\n return labels[tooltipItem[0].dataIndex][2]\n },\n },\n },\n },\n },\n }\n\n const phoneCallsChart = new Chart(barChart, config)\n })\n ;[...document.querySelectorAll('.pieChart')].map((pieChart) => {\n if (!pieChart.dataset || typeof pieChart.dataset.labels === 'undefined') {\n return\n }\n let labels = JSON.parse(pieChart.dataset.labels)\n\n let colors = [\n '#2085ec',\n '#72b4eb',\n '#0a417a',\n '#8464a0',\n '#cea9bc',\n '#323232',\n '#2085ec',\n '#72b4eb',\n '#0a417a',\n '#8464a0',\n ]\n\n const data = {\n labels: labels.map((l) => l[0]),\n datasets: [\n {\n label: 'Leads',\n data: labels.map((l) => l[1]),\n backgroundColor: labels.map((l, i) => colors[i]),\n },\n ],\n }\n\n const config = {\n type: 'pie',\n data: data,\n options: {\n maintainAspectRatio: false,\n plugins: {\n legend: {\n position: 'right',\n labels: {\n generateLabels: (chart) => {\n const datasets = chart.data.datasets\n return datasets[0].data.map((data, i) => ({\n text: `${chart.data.labels[i]} (${data})`,\n fillStyle: datasets[0].backgroundColor[i],\n lineWidth: 0,\n }))\n },\n padding: 5,\n boxWidth: 10,\n },\n },\n },\n },\n }\n\n const websiteChart = new Chart(pieChart, config)\n })\n}\n\nwindow.runCharts = runCharts\n\nready(function () {\n runCharts()\n})\n","import Choices from 'choices.js/public/assets/scripts/choices.js'\n\nimport { ready } from './utils'\n\n// This global variable allows us to access the Choices instances from anywhere in the app, and set their status\nwindow.AppChoices = {}\n\nfunction initChoices() {\n const elements = document.querySelectorAll('.js-choice')\n if (elements.length > 0) {\n ;[...elements].forEach((element) => {\n const choiceInstance = new Choices(element, {\n placeholder: true,\n itemSelectText: 'Select',\n addItems: false,\n type: 'select-multiple',\n allowHTML: true,\n })\n // Store each instance using its element ID or a fallback unique identifier\n window.AppChoices[element.id || `choice_${Object.keys(window.AppChoices).length}`] =\n choiceInstance\n })\n }\n const selects = document.querySelectorAll('.js-choice-select')\n if (selects.length > 0) {\n ;[...selects].map(\n (element) =>\n new Choices(element, {\n placeholder: true,\n itemSelectText: 'Select',\n allowHTML: true,\n })\n )\n }\n}\n\nwindow.initChoices = initChoices\n\nready(function () {\n initChoices()\n})\n\ndocument.addEventListener('vanilla-nested:fields-added', function (e) {\n initChoices()\n})\n","import Cleave from 'cleave.js'\nimport 'cleave.js/dist/addons/cleave-phone.au'\n\nimport { ready } from './utils'\n\nfunction initCleave() {\n $('.cleave-currency')\n .toArray()\n .forEach(function (field) {\n new Cleave(field, {\n numeral: true,\n numeralThousandsGroupStyle: 'thousand',\n prefix: '$',\n swapHiddenInput: true,\n rawValueTrimPrefix: true,\n })\n })\n\n $('.cleave-kms')\n .toArray()\n .forEach(function (field) {\n new Cleave(field, {\n numeral: true,\n numeralThousandsGroupStyle: 'thousand',\n prefix: ' kms',\n tailPrefix: true,\n swapHiddenInput: true,\n rawValueTrimPrefix: true,\n })\n })\n\n $('.cleave-phone')\n .toArray()\n .forEach(function (field) {\n new Cleave(field, {\n phone: true,\n phoneRegionCode: 'AU',\n swapHiddenInput: true,\n })\n })\n}\n\nready(function () {\n initCleave()\n})\n\nwindow.initCleave = initCleave\n","import AwsS3 from '@uppy/aws-s3'\nimport Compressor from '@uppy/compressor'\nimport Uppy from '@uppy/core'\nimport ProgressBar from '@uppy/progress-bar'\nimport { v4 as uuidv4 } from 'uuid'\n\nimport { ready } from './utils'\n\nfunction fileUpload(fileInput, position) {\n var imagePreview = document.getElementById(fileInput.dataset.previewElement)\n\n fileInput.style.display = 'none' // uppy will add its own file input\n\n var uppy = new Uppy({\n id: fileInput.id,\n autoProceed: true,\n debug: true,\n restrictions: {\n allowedFileTypes: fileInput.accept.split(','),\n maxFileSize: 15000000, // 15mb\n },\n })\n .use(Compressor, {\n maxWidth: 2000,\n })\n .use(ProgressBar, {\n target: imagePreview.parentNode,\n })\n\n uppy.use(AwsS3, {\n timeout: 0,\n getUploadParameters: function (file) {\n // This will ensure that the filename is correctly encoded in the URL, and prevent errors when the server tries to decode it.\n let encodedFilename = encodeURIComponent(file.name)\n return fetch('/presign?filename=' + encodedFilename, {\n // Shrine's presign endpoint\n credentials: 'same-origin', // send cookies\n }).then(function (response) {\n return response.json()\n })\n },\n })\n\n uppy.on('restriction-failed', (file, error) => {\n alert(error)\n // do some customized logic like showing system notice to users\n })\n\n uppy.on('compressor:complete', (props) => {\n console.log(props)\n })\n\n uppy.on('upload-success', function (file, response) {\n var uploadedFileData = {\n id: response.uploadURL.match(/\\/cache\\/([^\\?]+)/)[1], // extract key without prefix\n storage: 'cache',\n metadata: {\n size: file.size,\n filename: file.name,\n mime_type: file.type,\n },\n }\n\n let forms =\n 'form.edit_car, form.edit_preorder_car, form.edit_part, form.edit_stock_image_set, form.edit_comment_template'\n\n var url = document.querySelectorAll(forms)[0].getAttribute('new_image_url')\n\n $.ajax(url, {\n data: {\n photo: {\n photo: uploadedFileData,\n position: position,\n },\n },\n type: 'POST',\n dataType: 'json',\n success: function (response) {\n console.log(response)\n var hiddenInput = document.getElementById(fileInput.dataset.uploadResultElement)\n hiddenInput.remove()\n imagePreview.src = URL.createObjectURL(file.data)\n document.getElementById('submit-btn').disabled = false\n },\n })\n })\n\n return uppy\n}\n\nready(function () {\n document.querySelectorAll('input.upload-file[type=file]').forEach(function (fileInput) {\n fileInput.addEventListener('change', function (event) {\n Array.from(fileInput.files).forEach(function (file) {\n // create a new copy of the resource for the selected file\n var template = document.getElementById(fileInput.dataset.template)\n var uploadList = document.getElementById(fileInput.dataset.uploadList)\n\n let position = 1\n // Set the position of the new photo element\n if (document.querySelectorAll('#photos-list > *').length > 0) {\n let previous_photo = document.querySelector('#photos-list > .photo-container:last-child')\n let previous_photo_position = previous_photo.getAttribute('position')\n if (previous_photo_position) {\n position = parseInt(previous_photo_position) + 1\n }\n }\n\n uploadList.insertAdjacentHTML(\n 'beforeend',\n template.innerHTML.replace(/{{index}}/g, uuidv4())\n )\n let ele = uploadList.lastElementChild\n ele.setAttribute('position', position)\n\n // trigger file upload on the new resource\n var singleFileInput = uploadList.lastElementChild.querySelector('input[type=file]')\n document.getElementById('submit-btn').disabled = true\n var uppy = fileUpload(singleFileInput, position)\n try {\n uppy.addFile({ name: file.name, type: file.type, data: file })\n } catch (err) {\n uploadList.lastElementChild.remove()\n console.log(err)\n }\n })\n\n // remove selected files\n fileInput.value = ''\n })\n })\n})\n","import React from 'react'\n\nimport * as ReactDOM from 'react-dom/client'\n\nimport { ready } from '../entries/utils'\n\nconst LoadingBoxes = () => {\n return (\n
    \n \n
    \n )\n}\n\nconst addLoadingBoxes = () => {\n let loadingBoxes = document.querySelectorAll('.loadingBoxes')\n if (loadingBoxes) {\n loadingBoxes.forEach((loadingBox) => {\n const root = ReactDOM.createRoot(loadingBox)\n root.render()\n })\n }\n}\n\nready(function () {\n addLoadingBoxes()\n})\n\nwindow.addLoadingBoxes = addLoadingBoxes\n","import { useEffect, useState } from 'react'\n\nimport * as ReactDOM from 'react-dom/client'\nimport Select from 'react-select'\n\nimport { ready } from '../entries/utils'\nimport { standardHeaders } from '../entries/utils'\n\nlet defaultFilters = [\n { intrinsic_id: 'new_0', filter_attribute: undefined, operator: undefined, value: undefined },\n]\n\nlet booleanOptions = [\n { label: 'false', value: 'false' },\n { label: 'true', value: 'true' },\n]\n\nlet operatorOptionsForNonInteger = [\n { label: 'Equal To', value: 'equal_to' },\n { label: 'Is Empty', value: 'is_empty' },\n { label: 'Is Not Empty', value: 'is_not_empty' },\n { label: 'Included in', value: 'included_in' },\n { label: 'Not Included in', value: 'not_included_in' },\n { label: 'Begins With', value: 'begins_with' },\n]\n\nlet Filter = ({ filter, filters, setFilters, formOptions }) => {\n let operatorOptions = window.operatorOptions.map((oo) => {\n return { label: oo, value: oo }\n })\n\n let attributeOptions = formOptions.filter_attributes\n\n let [operator, setOperator] = useState(filter.operator)\n let [filter_attribute, setFilterAttribute] = useState(filter.filter_attribute)\n let [value, setValue] = useState(filter.value)\n let [destroy, setDestroy] = useState(false)\n\n useEffect(() => {\n if (operator && filter_attribute && (value || acceptsEmptyValue(operator))) {\n let updatedFilters = filters.map((f) => {\n if (\n (f.id && f.id === filter.id) ||\n (f.intrinsic_id && f.intrinsic_id === filter.intrinsic_id)\n ) {\n return {\n id: filter.id,\n filter_attribute: filter_attribute,\n operator: operator,\n value: value,\n intrinsic_id: f.intrinsic_id,\n _destroy: destroy,\n }\n }\n return f\n })\n\n setFilters(updatedFilters)\n }\n }, [operator, filter_attribute, value, destroy])\n\n const attribute = attributeOptions.find((option) => option.value === filter_attribute)\n let attributeType = attribute ? attribute.type : null\n\n return (\n \n \n setFilterAttribute(e.value)}\n value={attributeOptions.filter((o) => o.value === filter_attribute)[0]}\n placeholder=\"Attribute...\"\n />\n \n \n {filter_attribute && (\n setOperator(e.value)}\n value={operatorOptions.filter((o) => o.value === operator)[0]}\n placeholder=\"Operator...\"\n />\n )}\n \n \n {filter_attribute &&\n (attributeType === 'boolean' ? (\n o.label === value)[0]}\n onChange={(e) => setValue(e.value)}\n placeholder=\"Value...\"\n options={booleanOptions}\n />\n ) : (\n setValue(e.target.value)}\n placeholder=\"Value...\"\n className=\"form-control\"\n />\n ))}\n {['included_in', 'not_included_in'].includes(operator) && (\n Comma seperated values\n )}\n \n \n {filter.id && (\n
    \n setDestroy(e.target.checked)}\n id={`${filter.id || filter.intrinsic_id}_label`}\n className=\"form-check-input\"\n />\n \n Remove\n \n
    \n )}\n \n \n )\n}\n\nlet acceptsEmptyValue = (operator) => ['is_empty', 'is_not_empty'].includes(operator)\n\nlet submitData = (data, setLoading, setFilters, setErrors, url, object_type) => {\n setLoading(true)\n fetch(url, {\n method: 'put',\n body: JSON.stringify({\n [object_type]: {\n stock_filters_attributes: data.filter(\n (sf) => sf.filter_attribute && (sf.value || acceptsEmptyValue(sf.operator)) && sf.operator\n ),\n },\n }),\n headers: standardHeaders,\n })\n .then((res) => res.json())\n .then((res) => {\n if (res.errors) {\n setErrors(res.errors)\n } else {\n setFilters(res)\n }\n setLoading(false)\n })\n .catch(() => {\n setLoading(false)\n })\n}\n\nlet App = ({ url, object_type }) => {\n let [filters, setFilters] = useState(window.existing_stock_filters || defaultFilters)\n let [loading, setLoading] = useState(false)\n let [errors, setErrors] = useState(false)\n let [formOptions, setFormOptions] = useState({})\n let [loadingData, setLoadingData] = useState(true)\n\n useEffect(() => {\n setLoadingData(true)\n fetch('/stock_filters/form_options.json')\n .then((res) => res.json())\n .then((res) => {\n setFormOptions(res)\n setLoadingData(false)\n })\n }, [])\n\n if (loadingData) {\n return

    Loading...

    \n }\n\n return (\n <>\n
    \n \n \n \n \n \n \n \n \n \n \n {filters &&\n filters.map((filter, index) => (\n \n ))}\n \n
    AttributeOperatorValue
    \n {\n setFilters([\n ...filters,\n {\n intrinsic_id: `new_${filters.length}`,\n filter_attribute: undefined,\n operator: undefined,\n value: undefined,\n },\n ])\n }}\n >\n Add New\n
    \n \n {errors &&

    {errors}

    }\n
    \n submitData(filters, setLoading, setFilters, setErrors, url, object_type)}\n >\n {loading ? 'Loading...' : 'Save'}\n
    \n \n \n )\n}\n\nready(() => {\n let stock_filters = document.getElementById('stock-filters')\n if (stock_filters) {\n let object_type = stock_filters.getAttribute('object_type')\n let url = stock_filters.getAttribute('url')\n const root = ReactDOM.createRoot(stock_filters)\n root.render()\n }\n})\n","import '@nathanvda/cocoon'\nimport '@rails/actiontext'\nimport axios from 'axios'\nimport 'channels'\nimport Trix from 'trix'\n\nimport * as Routes from '../routes'\nimport './address_autocomplete'\nimport './editor/Editor'\nimport './entries/algolia_search'\nimport './entries/chart'\nimport './entries/choices'\nimport './entries/currency'\nimport './entries/photoUpload'\nimport { ready } from './entries/utils'\nimport './flatpickr'\nimport './preorder_cars'\nimport './shared/LoadingBoxes'\nimport './shared/stock_filters'\nimport './websiteVercelSelector'\n\nwindow.Routes = Routes\n\nready(function () {\n const select = document.querySelector('#dynamic-make-input')\n if (select) {\n select.addEventListener('change', function (e) {\n let modelSelect = document.querySelector('select#dynamic-model-input')\n let published = select.getAttribute('published')\n let url = `/manufacturers/${e.target.value}/models/model_names.json?published=${published}`\n modelSelect.disabled = true\n axios.get(url).then((res) => {\n if (modelSelect) {\n modelSelect.innerHTML = ''\n res.data.map((model, i) => {\n modelSelect.options[i + 1] = new Option(model.name, model.id)\n })\n modelSelect.disabled = false\n }\n })\n })\n }\n})\n\n// used in Gardx Form for dynamic redbook make/model selection\nready(function () {\n const select = document.querySelector('.dynamic-redbook-make-input')\n let modelSelect = document.querySelector('.dynamic-redbook-model-input')\n if (select && modelSelect) {\n select.addEventListener('change', function (e) {\n let url = `/manufacturers/${e.target.value}/families.json`\n modelSelect.disabled = true\n axios.get(url).then((res) => {\n if (modelSelect) {\n modelSelect.innerHTML = ''\n res.data.map((model, i) => {\n modelSelect.options[i + 1] = new Option(model.name, model.name)\n })\n modelSelect.disabled = false\n }\n })\n })\n }\n})\n\nready(function () {\n let status_selects = document.querySelectorAll('.status-select')\n let copyHoursBtn = document.querySelector('.copy-hours')\n\n if (status_selects) {\n status_selects.forEach((status_select) =>\n status_select.addEventListener('change', (e) => {\n let target = e.target.getAttribute('target')\n let open = document.getElementById(target + '-open')\n let close = document.getElementById(target + '-close')\n if (e.target.value === 'Closed' || e.target.value === 'By Appointment') {\n open.classList.add('d-none')\n close.classList.add('d-none')\n } else {\n open.classList.remove('d-none')\n close.classList.remove('d-none')\n }\n\n // Check if Monday's status is 'By Appointment' and hide the copy button\n let mondayStatus = document.querySelector('[target=\"day-1\"]')?.value\n if (mondayStatus === 'By Appointment') {\n copyHoursBtn.classList.add('d-none')\n } else {\n copyHoursBtn.classList.remove('d-none')\n }\n })\n )\n }\n\n if (copyHoursBtn) {\n copyHoursBtn.addEventListener('click', (e) => {\n e.preventDefault()\n ;['open', 'close'].map((type) => {\n let mondayOpenHour = document.querySelector(\n `#location_contact_detail_attributes_opening_hours_attributes_1_${type}_4i`\n )\n let mondayOpenMinute = document.querySelector(\n `#location_contact_detail_attributes_opening_hours_attributes_1_${type}_5i`\n )\n ;[2, 3, 4, 5].map((day) => {\n let open_hour_input = document.querySelector(\n `#location_contact_detail_attributes_opening_hours_attributes_${day}_${type}_4i`\n )\n let open_minute_input = document.querySelector(\n `#location_contact_detail_attributes_opening_hours_attributes_${day}_${type}_5i`\n )\n open_hour_input.value = mondayOpenHour.value\n open_minute_input.value = mondayOpenMinute.value\n })\n })\n })\n }\n\n // Initial check to hide the copy button if Monday's status is 'By Appointment'\n let mondayStatus = document.querySelector('[target=\"day-1\"]')?.value\n if (mondayStatus === 'By Appointment') {\n copyHoursBtn.classList.add('d-none')\n }\n})\n\nfunction setCookie(name, value, days) {\n var expires = ''\n if (days) {\n var date = new Date()\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000)\n expires = '; expires=' + date.toUTCString()\n }\n document.cookie = name + '=' + (value || '') + expires + '; path=/'\n}\n\nready(function () {\n let collapse = document.getElementById('collapse-sidemenu')\n let sidebar = document.getElementById('sidebar')\n if (collapse) {\n collapse.addEventListener('click', (e) => {\n e.preventDefault()\n sidebar.classList.toggle('collapsed')\n if (sidebar.classList.contains('open')) {\n setCookie('sidebar', 'collapsed')\n } else {\n setCookie('sidebar', 'open')\n }\n })\n }\n})\n\nready(function () {\n let logContainer = document.getElementById('log-container')\n if (logContainer) {\n logContainer.scrollTop = logContainer.scrollHeight\n }\n})\n\n// add supascript / subscript to TRIX editor\n//var Trix = require(\"trix\")\n//require(\"@rails/actiontext\")\n\nTrix.config.textAttributes.sup = { tagName: 'sup', inheritable: true }\nTrix.config.textAttributes.sub = { tagName: 'sub', inheritable: true }\n\naddEventListener('trix-initialize', function (event) {\n var buttonHTML, buttonGroup\n\n buttonHTML =\n ''\n buttonHTML +=\n ''\n\n buttonGroup = event.target.toolbarElement.querySelector(\n '.trix-button-group.trix-button-group--text-tools'\n )\n buttonGroup.insertAdjacentHTML('beforeend', buttonHTML)\n})\n\nready(function () {\n let collapseExpand = document.querySelectorAll('.collapse-expand')\n if (collapseExpand) {\n collapseExpand.forEach((collapseExpand) =>\n collapseExpand.addEventListener('click', (e) => {\n e.preventDefault()\n let target = e.target.getAttribute('target')\n if (!target) {\n target = e.target.parentElement.getAttribute('target')\n e.target.classList.toggle('rotate-180')\n } else {\n e.target.querySelector('.fa').classList.toggle('rotate-180')\n }\n $(`#${target}`).toggle()\n })\n )\n }\n})\n\nready(function () {\n let location_sync_check = document.getElementById('location_keep_in_sync_with_gmb')\n if (location_sync_check) {\n location_sync_check.addEventListener('change', (e) => {\n let section_to_hide = document.getElementById('hide-if-synced-with-google-place')\n let section_to_show = document.getElementById('show-if-synced-with-google-place')\n if (e.currentTarget.checked) {\n section_to_hide.classList.add('d-none')\n section_to_show.classList.remove('d-none')\n } else {\n section_to_hide.classList.remove('d-none')\n section_to_show.classList.add('d-none')\n }\n })\n }\n})\n\nready(function () {\n let openMenu = document.querySelector('.open-menu')\n if (openMenu) {\n openMenu.addEventListener('click', (e) => {\n let sidebar = document.querySelector('.sidebar')\n if (sidebar) {\n sidebar.classList.toggle('openSidebar')\n }\n })\n }\n})\n\n// This function is used to \"select all\" photos on the car photos page\nready(function () {\n let selectAllPhotos = document.querySelector('#select-all-photos')\n if (selectAllPhotos) {\n selectAllPhotos.addEventListener('click', function (e) {\n e.preventDefault()\n // I want to toggle the text between \"Select All\" and \"Unselect All\"\n selectAllPhotos.innerHTML == 'Unselect Remove All'\n ? (selectAllPhotos.innerHTML = 'Select Remove All')\n : (selectAllPhotos.innerHTML = 'Unselect Remove All')\n let inputs = document.querySelectorAll('input[id^=\"car_photos_attributes\"]')\n inputs.forEach((el) => {\n el.checked = !el.checked\n })\n })\n }\n})\n\n// Function: Open Dealer Studio Modal\nfunction openDsModal(heading, body) {\n let modal_body = Rails.$('#exampleModal .modal-body')[0]\n document.querySelector('#exampleModal .modal-dialog').classList.add('modal-lg')\n let modal_header = Rails.$('#exampleModal .modal-header')[0]\n if (heading) {\n modal_header.innerHTML = heading\n }\n if (body) {\n modal_body.innerHTML = body\n }\n $('#exampleModal').modal()\n}\n\nwindow.openDsModal = openDsModal\n\n//function to hide or show apiKey token for dealers\nfunction toggleTokenVisibility(button, tokenId, maskedToken, actualToken) {\n var tokenElement = document.getElementById(tokenId)\n\n if (tokenElement) {\n if (tokenElement.innerText === maskedToken) {\n tokenElement.innerText = actualToken\n button.innerHTML = '' // Change icon to eye-slash\n } else {\n tokenElement.innerText = maskedToken\n button.innerHTML = '' // Change icon to eye\n }\n }\n}\n\nwindow.toggleTokenVisibility = toggleTokenVisibility\n\nready(() => {\n toggleTokenVisibility()\n})\n","import flatpickr from 'flatpickr'\nimport monthSelectPlugin from 'flatpickr/dist/plugins/monthSelect'\nimport moment from 'moment'\n\nimport { ready } from './entries/utils'\n\nfunction loadFlatpickr() {\n flatpickr('.flatpickr', {\n allowInput: true,\n dateFormat: 'd/m/Y',\n })\n\n flatpickr('.flatpickr-month-year', {\n allowInput: true,\n altInput: true,\n plugins: [\n new monthSelectPlugin({\n dateFormat: 'd/m/Y',\n altFormat: 'm/Y',\n altInput: true,\n }),\n ],\n })\n\n flatpickr('.flatpickr-with-time', {\n allowInput: true,\n dateFormat: 'd/m/Y H:i',\n enableTime: true,\n minTime: '8:00',\n maxTime: '17:00',\n minDate: 'today',\n disable: [(date) => date.getDay() === 0 || date.getDay() === 6],\n })\n\n let select = document.getElementById('flatpicker-date-range')\n let locationSelect = document.querySelector('select#analytics_location_select_locations')\n if (!select) return\n let url = document.getElementById('flatpicker-date-range').getAttribute('url')\n\n flatpickr('#flatpicker-date-range', {\n allowInput: true,\n dateFormat: 'd/m/y',\n maxDate: moment().format('DD/MM/YY'),\n mode: 'range',\n onChange: (selectedDates, dateStr, instance) => {\n let start = Date.parse(selectedDates[0]) / 1000\n // We want leads to be inclusive of dates\n // So for example 1/1/2000 - 5/1/2000 should include leads up to end of 5/1/2000\n let end = Date.parse(selectedDates[1]) / 1000 + 60 * 60 * 24\n let data = {\n start: start,\n end: end,\n timeframe_name: `from ${dateStr}`,\n }\n if (locationSelect) {\n data['location_id'] = locationSelect.value\n }\n let object_type = select.getAttribute('object_type') + '_id'\n data[object_type] = select.getAttribute('object_id')\n if (start && end) {\n let bases = document.querySelectorAll('#lead-charts, #leads')\n bases.forEach((base) => {\n base.innerHTML = '
    '\n })\n addLoadingBoxes()\n\n Rails.ajax({\n url: url,\n type: 'get',\n data: new URLSearchParams(data).toString(),\n accept: 'js',\n dataType: 'script',\n success: function (data) {},\n error: function (data) {},\n })\n }\n },\n })\n}\n\nwindow.loadFlatpickr = loadFlatpickr\n\nready(function () {\n loadFlatpickr()\n})\n\n// updates flatpickr when user selects item from the dropdown list\nready(function () {\n let buttons = document.querySelectorAll('.modify-flatpickr')\n buttons.forEach((button) => {\n button.addEventListener('click', (e) => {\n let pickr = document.getElementById('flatpicker-date-range')._flatpickr\n var date1 = e.target.getAttribute('start')\n var date2 = e.target.getAttribute('end')\n // the second parameter (\"true\") --> triggerChange\n pickr.setDate([date2, date1], true)\n })\n })\n})\n\nready(function () {\n let locationSelect = document.querySelector('select#analytics_location_select_locations')\n let datePickr = document.getElementById('flatpicker-date-range')\n if (locationSelect) {\n locationSelect.addEventListener('change', function (e) {\n let pickr = datePickr._flatpickr\n if (pickr.selectedDates.length > 0) {\n pickr.setDate(pickr.selectedDates, true)\n } else {\n pickr.setDate(JSON.parse(datePickr.getAttribute('defaultDates')), true)\n }\n })\n }\n})\n","import Choices from 'choices.js/public/assets/scripts/choices.js'\nimport _ from 'lodash'\n\nimport { ready } from './entries/utils'\n\n// This was an attempt allow the user to switch vercel accounts and instantly get the repos from the new account without having to refresh the page\n// but it's not working yet, so if the vercel account is changed, the website must be saved first and then the page reloaded before you can select a vercel repo/project\n\nwindow.vercelChoiceInstance = undefined\n\nconst searchVercelRepos = (query, dealershipId, websiteId, vercelAccountId) =>\n fetch(\n `/dealerships/${dealershipId}/websites/${websiteId}/vercel_repos.json?query=${query}&vercel_account_id=${vercelAccountId}`\n )\n\nconst handleSearchEvent = _.debounce(async (e) => {\n const { value } = e.detail\n\n const vercelSelect = document.querySelector('.js-choice-vercel-projects')\n const dealershipId = vercelSelect.getAttribute('data-dealership-id')\n const websiteId = vercelSelect.getAttribute('data-website-id')\n const vercelAccountId = vercelSelect.getAttribute('data-vercel-account-id')\n\n vercelChoiceInstance.setChoices(async () => {\n try {\n const items = await searchVercelRepos(value, dealershipId, websiteId, vercelAccountId)\n return items\n .map((item) => ({\n value: item[0],\n label: item[1],\n }))\n .json()\n } catch (err) {\n console.error(err)\n }\n })\n}, 1000)\n\nfunction initVercelRepoChoices() {\n const vercelSelect = document.querySelector('.js-choice-vercel-projects')\n\n if (vercelSelect) {\n let vercelChoice = new Choices(vercelSelect, {\n placeholder: true,\n itemSelectText: 'Select',\n addItems: false,\n allowHTML: true,\n })\n vercelChoiceInstance = vercelChoice\n vercelChoiceInstance.passedElement.element.addEventListener('search', handleSearchEvent, false)\n }\n}\n\n// TODO: Fix this so the user can change the vercel account and get the repos from the new account without having to refresh the page\n// Currently we are just disabling the select and showing a message to the user to save the website first and then reload the page\n$(document).on('change', '#website_vercel_account_id', function () {\n const vercelSelect = document.querySelector('.js-choice-vercel-projects')\n // Disable the select\n vercelSelect.disabled = true\n // Show the message\n $('.js-vercel-account-message').removeClass('d-none')\n\n const dealershipId = vercelSelect.getAttribute('data-dealership-id')\n const websiteId = vercelSelect.getAttribute('data-website-id')\n vercelChoiceInstance.passedElement.element.removeEventListener('search', handleSearchEvent)\n vercelChoiceInstance.clearChoices()\n vercelChoiceInstance.destroy()\n\n $('.js-choice-vercel-projects').attr('data-vercel-account-id', $(this).val())\n vercelChoiceInstance.passedElement.element.addEventListener('search', handleSearchEvent, false)\n vercelChoiceInstance.init()\n})\n\nready(function () {\n initVercelRepoChoices()\n})\n\ndocument.addEventListener('vanilla-nested:fields-added', function (e) {\n initVercelRepoChoices()\n})\n"],"names":["getAddressField","place","type","field","arguments","length","undefined","components","address_components","filter","ac","types","includes","initialize","input","document","getElementById","autocomplete","google","maps","places","Autocomplete","event","addListener","getPlace","value","concat","name","geometry","location","lat","lng","place_id","url","ready","addDomListener","window","days_of_week","locationSync","placeDetailsContainer","innerHTML","insertAdjacentHTML","website","formatted_phone_number","html_to_insert","opening_hours","periods","map","period","day_of_week","open","day","time","close","hours","minutes","status_select","dispatchEvent","Event","_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","constructor","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","delegateYield","_toConsumableArray","arr","Array","isArray","_arrayLikeToArray","_arrayWithoutHoles","iter","from","_iterableToArray","minLen","toString","test","_unsupportedIterableToArray","_nonIterableSpread","len","arr2","asyncGeneratorStep","gen","reject","_next","_throw","key","info","error","_taggedTemplateLiteral","strings","raw","freeze","defineProperties","itemUrl","item","slug","id","_getMeilisearchConfig","getMeilisearchConfig","meilisearchHost","meilisearchApiKey","searchClient","MeiliSearch","host","apiKey","container","placeholder","detachedMediaQuery","openOnFocus","render","_ref","root","sections","html","_templateObject","getSources","_ref2","query","sourceId","getItems","fn","_callee","searchQuery","combined","_context","multiSearch","queries","indexUid","process","q","results","queryResult","items","propertyName","uniqueItems","hits","index","self","findIndex","apply","args","err","templates","_ref3","_templateObject2","itemClass","itemLabel","getItemUrl","_ref4","barChartBackground","labels","itemName","runCharts","querySelectorAll","barChart","dataset","JSON","parse","itemname","config","data","datasets","label","backgroundColor","borderColor","options","plugins","legend","display","tooltip","callbacks","title","tooltipItem","dataIndex","Chart","pieChart","colors","maintainAspectRatio","position","generateLabels","chart","text","fillStyle","lineWidth","padding","boxWidth","initChoices","elements","element","choiceInstance","Choices","itemSelectText","addItems","allowHTML","AppChoices","selects","addEventListener","initCleave","$","toArray","Cleave","numeral","numeralThousandsGroupStyle","prefix","swapHiddenInput","rawValueTrimPrefix","tailPrefix","phone","phoneRegionCode","fileInput","files","file","template","uploadList","previous_photo_position","querySelector","getAttribute","parseInt","replace","uuidv4","lastElementChild","setAttribute","singleFileInput","disabled","uppy","imagePreview","previewElement","style","Uppy","autoProceed","debug","restrictions","allowedFileTypes","accept","split","maxFileSize","use","Compressor","maxWidth","ProgressBar","target","parentNode","AwsS3","timeout","getUploadParameters","encodedFilename","encodeURIComponent","fetch","credentials","response","json","on","alert","props","console","log","uploadedFileData","uploadURL","match","storage","metadata","size","filename","mime_type","ajax","photo","dataType","success","uploadResultElement","remove","src","URL","createObjectURL","fileUpload","addFile","LoadingBoxes","_jsx","className","children","addLoadingBoxes","loadingBoxes","loadingBox","ReactDOM","defaultFilters","intrinsic_id","filter_attribute","operator","booleanOptions","operatorOptionsForNonInteger","Filter","filters","setFilters","formOptions","operatorOptions","oo","attributeOptions","filter_attributes","_useState2","_slicedToArray","useState","setOperator","_useState4","setFilterAttribute","_useState6","setValue","_useState8","destroy","setDestroy","useEffect","acceptsEmptyValue","updatedFilters","_destroy","attribute","find","option","attributeType","_jsxs","Select","onChange","defaultValue","checked","htmlFor","App","object_type","_useState10","existing_stock_filters","_useState12","loading","setLoading","_useState14","errors","setErrors","_useState16","setFormOptions","_useState18","loadingData","setLoadingData","res","_Fragment","onClick","body","stringify","_defineProperty","stock_filters_attributes","sf","headers","standardHeaders","submitData","stock_filters","setCookie","days","expires","date","Date","setTime","getTime","toUTCString","cookie","toggleTokenVisibility","button","tokenId","maskedToken","actualToken","tokenElement","innerText","Routes","select","modelSelect","published","axios","get","model","Option","_document$querySelect2","status_selects","copyHoursBtn","_document$querySelect","classList","add","preventDefault","mondayOpenHour","mondayOpenMinute","open_hour_input","open_minute_input","collapse","sidebar","toggle","contains","logContainer","scrollTop","scrollHeight","Trix","textAttributes","sup","tagName","inheritable","sub","toolbarElement","buttonHTML","collapseExpand","parentElement","location_sync_check","section_to_hide","section_to_show","currentTarget","openMenu","selectAllPhotos","el","openDsModal","heading","modal_body","Rails","modal_header","modal","loadFlatpickr","flatpickr","allowInput","dateFormat","altInput","monthSelectPlugin","altFormat","enableTime","minTime","maxTime","minDate","disable","getDay","locationSelect","maxDate","moment","format","mode","selectedDates","dateStr","instance","start","end","timeframe_name","base","URLSearchParams","pickr","_flatpickr","date1","date2","setDate","datePickr","_asyncToGenerator","vercelChoiceInstance","searchVercelRepos","dealershipId","websiteId","vercelAccountId","handleSearchEvent","_","_callee2","vercelSelect","_context2","detail","setChoices","t0","_x","initVercelRepoChoices","vercelChoice","passedElement","removeClass","removeEventListener","clearChoices","attr","this","val","init"],"sourceRoot":""}