{"version":3,"sources":["Utils/Theme.js","Utils/SearchHandler.js","Utils/States.js","Utils/DefaultSearchFieldsHorseTrailer.js","Utils/DefaultSearchFieldsCargoTrailer.js","Utils/DefaultSearchFieldsTruck.js","Utils/DefaultSearchFieldsPart.js","Utils/SearchFields.js","Utils/Settings.js","Utils/Helpers.js","Utils/Icons.js","Components/PrimaryInventorySelector.js","Components/InventorySelector.js","Components/SearchField.js","Components/SearchFields.js","Components/SearchResultThumbnail.js","Components/Buttons.js","Components/SearchResultHighlight.js","Components/SearchResultRow.js","Components/SearchResults.js","Components/DetailsTrailer.js","Components/DetailsCargo.js","Components/DetailsTruck.js","Components/DetailsPart.js","Components/DetailsInventory.js","App.js","serviceWorker.js","index.js"],"names":["InventoryTheme","createMuiTheme","typography","useNextVariants","h1","fontSize","fontWeight","queryString","require","parseXml","parseString","TryRead","xmlNode","tagname","childNode","getElementsByTagName","textContent","DefaultSearchHandler","SearchHandler","Object","classCallCheck","this","cache","searchFields","page","qsObject","sortField","fields","find","x","isBeingSorted","sort","filterId","sortDirection","i","length","searchField","selectedValue","zip","selectedValues","stringify","inventoryType","inventoryCategoryId","Settings","inventoryTypes","TRAILER","CARGO","TRUCK","PART","sortColumn","filterColumns","filterValues","zipcode","push","encodeURIComponent","filter","map","join","remoteUrl","Helpers","getBaseUrl","pageSize","totalResultsPromise","fetch","then","response","text","responseText","window","DOMParser","parseFromString","searchResultsPromise","resultsNodes","results","trailer","id","title","price","parseFloat","salePrice","thumbnail","caption","description","dateStarted","moment","isReduced","isSold","distance","extraFields","name","value","showOnResults","Promise","all","values","currentPage","totalPages","Math","ceil","totalRecords","INVENTORY","searchObj","inventoryQueryGroups","_loop","inventoryQueries","queryType","inventoryQueryType","question","parseInt","term","val","postDataObject","ListingCategoryId","Page","MemberId","memberId","QueryList","JSON","postDataArray","property","encodedKey","encodedValue","postDataString","baseApi","method","withCredentials","credentials","headers","Authorization","authHeader","Content-Type","body","result","json","itemIndex","items","record","listingId","startDate","reduced","proxDistance","contactCity","contactState","totalItems","detailsResult","ignoreAttrs","err","NewDataSet","trailers","cargo","trucks","trailerparts","resolve","me","states","label","disabled","DefaultSearchFieldsHorseTrailer","categoryName","hideField","fieldType","searchValue","sortable","isDefaultSort","searchValues","setFilterIdWhenChanged","DefaultSearchFieldsCargoTrailer","DefaultSearchFieldsTruck","DefaultSearchFieldsPart","DefaultSearchFields","SearchFields","years","index","Date","getFullYear","toString","inventoryCategory","_this","NONE","cacheKey","parse","Array","isArray","hideTrailerSearchFieldsByLabel","forEach","element","trailerPromise1","trailersUrl","elementsNodes","elementsArray","childNodes","nodeValue","trim","objs","trailerPromise2","existingValues","indexOf","hideCargoSearchFieldsByLabel","cargoPromise1","cargoUrl","cargoPromise2","cargoPromise3","reverse","hideTruckSearchFieldsByLabel","truckPromise1","trucksUrl","truckPromise2","hidePartSearchFieldsByLabel","partPromise1","partsUrl","unshift","partPromise2","partPromise3","partPromise4","inventoryPromise1","responseJson","categoryIndex","category","questionsIndex","options","questions","searchable","optionType","inventoryFieldType","TEXTBOX","TEXTAREA","optionId","maxLength","QUESTION","RADIO","RADIOWITHTEXT","SELECT","SELECTWITHTEXT","AUTOCOMPLETE","defaultValueCollection","defaultValues","MULTIPLE","MULTIPLEWITHTEXT","YESNO","YEAR","STATE","slice","CONTACTSTATE","CONTACTZIP","TITLE","_objectSpread","DEALER","GENERAL","OLDTRACTOR","BARRELDRAW","TACK","REVIEW","HORSE","WORKINGHORSE","HAY","EVENTS","HORSEPROPERTY","NUMBER","DATE","DESCRIPTION","CONTACTCITY","CONTACTEMAIL","PRICE","ISSOLD","ISREDUCED","showEditButton","showTrailers","showCargo","showTrucks","showParts","showInventory","socialShareUseCanonicalUrls","__inventoryDefaults","sanitizeHtml","Utils_Helpers","inputString","nextWhitespace","substring","amount","decimalCount","arguments","undefined","decimal","thousands","abs","isNaN","negativeSign","Number","toFixed","j","substr","replace","e","console","log","input","attributes","defaults","allowedAttributes","allowedTags","concat","url","getYoutubeEmbedFromUrl","getVimeoEmbedFromUrl","match","exec","street","city","state","encodeURI","o","p","keysO","keys","keysP","Function","compareObjects","prefix","listingIdPart","nextPathCharacterPosition","inputText","trimStart","trimEnd","string","charToRemove","charAt","SvgSourceHorseTrailer","_ref","_ref$style","style","_ref$fill","fill","_ref$width","width","_ref$className","className","_ref$viewBox","height","viewBox","react_default","a","createElement","xmlns","xmlnsXlink","d","SvgSourceCargoTrailer","_ref2","_ref2$style","_ref2$fill","_ref2$width","_ref2$className","_ref2$viewBox","SvgSourceTruck","_ref3","_ref3$style","_ref3$fill","_ref3$width","_ref3$className","_ref3$viewBox","SvgSourcePart","_ref4","_ref4$style","_ref4$fill","_ref4$width","_ref4$className","_ref4$viewBox","SvgSourceInventory","_ref5","_ref5$style","_ref5$fill","_ref5$width","_ref5$className","_ref5$viewBox","PrimaryInventorySelector","classes","props","Grid_default","container","spacing","key","item","sm","xs","react_router_dom","textDecoration","color","to","Button_default","buttonSelector","variant","size","Icons_SvgSourceHorseTrailer","svgIcon","Icons_SvgSourceCargoTrailer","Icons_SvgSourceTruck","Icons_SvgSourcePart","Icons_SvgSourceInventory","Component","withStyles","theme","margin","display","verticalAlign","marginRight","_this$props","inventoryCategories","listingCategoryId","SearchField","field","handleSearchFieldChange","FormControlLabel_default","control","Checkbox_default","checked","onChange","target","labelPlacement","TextField_default","formControl","FormControl_default","InputLabel_default","Select_default","MenuItem_default","multiple","renderValue","selected","ListItemText_default","primary","Fragment","React","onFormSubmit","preventDefault","handleSearch","handleSortFieldChange","searchFieldsError","errorMessage","Typography_default","align","message","sortFields","some","buttonStyle","onClick","Paper_default","padding","onSubmit","md","Components_SearchField","type","SearchResultThumbnail","image","subFolder","src","alt","maxWidth","maxHeight","borderRadius","styles","newButton","background","backgroundColor","border","fontFamily","fontStyle","lineHeight","textAlign","soldButton","reducedButton","elementProps","root","borderColor","marginBottom","Typography_Typography","formatMoney","extraFeatures","entry","extraField","diff","Buttons_newButton","Buttons_reducedButton","Buttons_soldButton","SearchResultRow","descriptionTrimmed","trimAtNextWhitespace","basePath","xl","lg","getSeoFriendlyName","Components_SearchResultThumbnail","resultLink","dangerouslySetInnerHTML","__html","Components_SearchResultHighlight","Hidden_default","smUp","SearchResults","searchResults","searchResultsTotalRecords","searchResultsTotalPages","searchResultsCurrentPage","handleDetailsSelection","searchResultsError","marginTop","backButton","forwardButton","Components_SearchResultRow","&:hover","DetailsTrailer","details","searchDetailsRecord","images","firstImage","original","normalPrice","c_price","c_saleprice","pageTitle","c_year","c_manu","c_model","pageCanonicalUrl","URL","videoUrl","getVideoEmbedUrl","c_extra7","video","lib_default","allowFullScreen","trackingImage","c_id","shareUrl","location","href","c_r","c_sold_date","Helmet","rel","content","image_gallery_default","Card_default","c_horses","c_new","c_liv","c_con_city","c_con_st","c_stock","c_con_e","c_con_ph","C_con_phtf","FacebookShareButton","FacebookIcon","round","TwitterShareButton","TwitterIcon","GooglePlusShareButton","GooglePlusIcon","PinterestShareButton","media","PinterestIcon","EmailShareButton","EmailIcon","safeHtml","c_description","c_comment","DetailsCargo","ct_price","ct_year","ct_manu","ct_model","ct_videourl","ct_id","ct_r","ct_solddate","ct_type","ct_new","ct_pull","ct_city","ct_st","ct_stock","ct_email","ct_phone","ct_phonetf","ct_description","ct_comment","DetailsTruck","t_price","t_year","t_make","t_model","t_id","t_videolink","t_r","t_solddate","t_mileage","t_engine","t_drive","t_dually","t_new","t_city","t_state","t_stock","t_email","t_phone","t_fax","t_cell","t_description","DetailsPart","DetailsInventory","xPath","xPathThumbnail","priceComponent","canonicalUrl","mapsComponent","mapsUrl","getMapsUrl","contactStreet","contactZip","ratio","extraDetailsComponent","Table_default","TableBody_default","optionSelections","TableRow_default","TableCell_default","colSpan","optionCategoryName","selections","answers","answer","answerIndex","rowKey","option","multianswerIndex","contactEmail","contactWeb","contactPhone","contactPhoneTollFree","contactCell","contactFax","contactBestTime","App","context","possibleConstructorReturn","getPrototypeOf","call","newValue","setState","previousState","currentProps","dependentField","existingSort","searchFieldsPage","searchResultsIsLoading","qsParams","BuildSearchQuerystring","history","pathname","performSearch","PerformSearch","error","searchFieldsIsLoading","searchFieldsCategoryName","populateStateFromRoute","prevProps","scrollTo","search","setDefaults","it","startsWith","populateSearchFields","populateInventoryCategories","getListingId","populateDetails","newInventoryType","defaultsString","_this2","getFields","filterField","_this3","GetDetails","alert","_this4","GetInventoryCategories","_this5","_this$state","loadingGif","ScrollMemory_min_default","CssBaseline_default","react_router","exact","path","component","Components_PrimaryInventorySelector","InventorySelector","render","Components_SearchFields","assign","bind","Components_SearchResults","Components_DetailsTrailer","Components_DetailsCargo","Components_DetailsTruck","Components_DetailsPart","Components_DetailsInventory","position","right","bottom","withRouter","App_App","Boolean","hostname","ReactDOM","basename","src_App","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"6MAGaA,EAAiBC,yBAAe,CACzCC,WAAY,CACRC,iBAAiB,EACjBC,GAAI,CACAC,SAAU,SACVC,WAAY,yCCHlBC,EAAcC,EAAQ,KACtBC,EAAWD,EAAQ,KAAUE,YAEnC,SAASC,EAAQC,EAASC,GACtB,IAAIC,EAAYF,EAAQG,qBAAqBF,GAK7C,OAHIC,IACAA,EAAYA,EAAU,IAEtBA,EACOA,EAAUE,YAEd,OAofPC,EAAuB,eA/evB,SAAAC,IAAeC,OAAAC,EAAA,EAAAD,CAAAE,KAAAH,GACXG,KAAKC,MAAQ,sEAGMC,EAAcC,GACjC,IAAIC,EAAW,GAEfA,EAASD,KAAOA,EAEhB,IAAIE,EAAYH,EAAaI,OAAOC,KAAK,SAAAC,GAAC,OAAEA,EAAEC,gBAC1CJ,IACAD,EAASM,KAAOL,EAAUM,SAC1BP,EAASQ,cAAgBP,EAAUO,eAGvC,IAAK,IAAIC,EAAI,EAAGA,EAAIX,EAAaI,OAAOQ,OAAQD,IAChD,CACI,IAAIE,EAAcb,EAAaI,OAAOO,GACT,QAAzBE,EAAYJ,UAAsBI,EAAYC,cAAcF,OAAS,EACrEV,EAASa,IAAKF,EAAYC,cACnB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L,aAAc,MAAOZ,QAAS,MAAO3C,QAASmQ,GAAyBR,EAA0B,eAAiB,mBA9b/P/P,aAqcHsT,eAAW,SAAA5U,GAAK,OAAIpC,EAAAC,EAAAC,cAAC+W,GAAQ7U,KC9cxB8U,QACW,cAA7BjoB,OAAO+c,SAASmL,UAEe,UAA7BloB,OAAO+c,SAASmL,UAEhBloB,OAAO+c,SAASmL,SAAStZ,MACvB,2DCVNuZ,IAASjB,OACLnW,EAAAC,EAAAC,cAAC0C,EAAA,cAAD,CAAeyU,SAAUpoB,OAAO4M,oBAAoBmL,WAChDhH,EAAAC,EAAAC,cAAA,WACIF,EAAAC,EAAAC,cAACoX,GAAD,QAGNC,SAASC,eAAe,wBDmHxB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAM9oB,KAAK,SAAA+oB,GACjCA,EAAaC","file":"static/js/main.3f26f538.chunk.js","sourcesContent":["import { createMuiTheme } from '@material-ui/core/styles';\r\n\r\n// Overrides values of the material-ui theme\r\nexport const InventoryTheme = createMuiTheme({\r\n    typography: {\r\n        useNextVariants: true,\r\n        h1: {\r\n            fontSize: \"3.0rem\",\r\n            fontWeight: 500,\r\n        },\r\n    }\r\n});","import {Settings} from \"./Settings\";\r\nimport Helpers from \"./Helpers.js\";\r\nimport 'whatwg-fetch';\r\nimport 'promise-polyfill/src/polyfill';\r\nimport moment from 'moment';\r\nconst queryString = require('query-string');\r\nconst parseXml = require('xml2js').parseString;\r\n\r\nfunction TryRead(xmlNode, tagname) {\r\n    let childNode = xmlNode.getElementsByTagName(tagname);\r\n\r\n    if (childNode) {\r\n        childNode = childNode[0];\r\n    }\r\n    if (childNode) {\r\n        return childNode.textContent;\r\n    }\r\n    return \"\";\r\n}\r\n\r\nclass SearchHandler {\r\n\r\n    constructor() {\r\n        this.cache = [];\r\n    }\r\n\r\n    BuildSearchQuerystring(searchFields, page) {\r\n        let qsObject = {};\r\n\r\n        qsObject.page = page;\r\n\r\n        let sortField = searchFields.fields.find(x=>x.isBeingSorted);\r\n        if (sortField) {\r\n            qsObject.sort = sortField.filterId;\r\n            qsObject.sortDirection = sortField.sortDirection;\r\n        }\r\n\r\n        for (let i = 0; i < searchFields.fields.length; i++)\r\n        {\r\n            let searchField = searchFields.fields[i];\r\n            if (searchField.filterId === \"zip\" && searchField.selectedValue.length > 0) {\r\n                qsObject.zip =searchField.selectedValue;\r\n            } else if (searchField.selectedValue.length > 0) {\r\n                qsObject[\"opt\" + searchField.filterId] = searchField.selectedValue;\r\n            } else if (searchField.selectedValues.length > 0) {\r\n                qsObject[\"opt\" + searchField.filterId] = searchField.selectedValues;\r\n            }\r\n        }\r\n\r\n        return queryString.stringify(qsObject);\r\n    }\r\n\r\n    PerformSearch(inventoryType, searchFields, page, inventoryCategoryId) {\r\n\r\n        if (inventoryType === Settings.inventoryTypes.TRAILER ||\r\n            inventoryType === Settings.inventoryTypes.CARGO ||\r\n            inventoryType === Settings.inventoryTypes.TRUCK ||\r\n            inventoryType === Settings.inventoryTypes.PART)\r\n        {\r\n            //<editor-fold desc=\"Create URL string\">\r\n            // Sort by newest record first\r\n            let sortColumn = 1;\r\n            let sortDirection = \"desc\";\r\n\r\n            let sortField = searchFields.fields.find(x=>x.isBeingSorted);\r\n            if (sortField) {\r\n                sortColumn = sortField.filterId;\r\n                sortDirection = sortField.sortDirection;\r\n            }\r\n\r\n            let filterColumns = [];\r\n            let filterValues = [];\r\n            let zipcode = \"\";\r\n\r\n            for (let i = 0; i < searchFields.fields.length; i++)\r\n            {\r\n                let searchField = searchFields.fields[i];\r\n                if (searchField.filterId === \"zip\" && searchField.selectedValue.length > 0) {\r\n                    zipcode = searchField.selectedValue;\r\n                } else if (searchField.selectedValue.length > 0) {\r\n                    filterColumns.push(searchField.filterId);\r\n                    filterValues.push(encodeURIComponent(searchField.selectedValue));\r\n                } else if (searchField.selectedValues.length > 0) {\r\n                    filterColumns.push(searchField.filterId);\r\n                    filterValues.push(searchField.selectedValues.filter(x=>x.length > 0).map(x=> encodeURIComponent(x)).join(\";\"));\r\n                }\r\n            }\r\n\r\n            let remoteUrl = Helpers.getBaseUrl(inventoryType) + \"?pagesize=\" + Settings.pageSize + \"&currentpage=\" + page;\r\n            if (sortColumn > 0)\r\n            {\r\n                remoteUrl += \"&sortby=\" + sortColumn;\r\n            }\r\n\r\n            if (sortDirection === \"asc\" || sortDirection === \"desc\")\r\n            {\r\n                remoteUrl += \"&sortdirection=\" + sortDirection;\r\n            }\r\n\r\n            if (zipcode.length > 0)\r\n            {\r\n                remoteUrl += \"&zip=\" + zipcode + \"&milesradius=4000\";\r\n            }\r\n\r\n            if (filterColumns.length > 0)\r\n            {\r\n                remoteUrl += \"&usewildcards=Y&filterid=\" + filterColumns.join(\",\") + \"&filter=\" + encodeURIComponent(filterValues.join(\",\"));\r\n            }\r\n\r\n            let totalResultsPromise = fetch(remoteUrl + \"&action=recordcount\")\r\n                .then(function(response){return response.text();})\r\n                .then((responseText) => {\r\n                    let parser = new window.DOMParser();\r\n                    let resultsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                    let totalResults = resultsXML.getElementsByTagName(\"count\")[0].textContent;\r\n                    return totalResults;\r\n                }\r\n            );\r\n            //</editor-fold>\r\n\r\n            let searchResultsPromise = null;\r\n\r\n            if (inventoryType === Settings.inventoryTypes.TRAILER) {\r\n                searchResultsPromise = fetch(remoteUrl)\r\n                    .then(function (response) {\r\n                        return response.text();\r\n                    })\r\n                    .then((responseText) => {\r\n                        let parser = new window.DOMParser();\r\n                        let resultsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let resultsNodes = resultsXML.getElementsByTagName(\"trailers\");\r\n                        let results = [];\r\n                        for (let i = 0; i < resultsNodes.length; i++) {\r\n                            let trailer = resultsNodes[i];\r\n                            results.push({\r\n                                id: TryRead(trailer, \"c_id\"),\r\n                                title: TryRead(trailer, \"c_year\") + \" \" + TryRead(trailer, \"c_manu\") + \" \" + TryRead(trailer, \"c_model\"),\r\n                                price: parseFloat(TryRead(trailer, \"c_price\")),\r\n                                salePrice: parseFloat(TryRead(trailer, \"c_saleprice\")),\r\n                                thumbnail: TryRead(trailer, \"t_xpathth1\"),\r\n                                caption: TryRead(trailer, \"t_com1\"),\r\n                                description: TryRead(trailer, \"c_description\"),\r\n                                dateStarted: moment(TryRead(trailer, \"c_startdate\")),\r\n                                isReduced: TryRead(trailer, \"c_r\") === \"R\",\r\n                                isSold: TryRead(trailer, \"c_sold_date\").length > 0,\r\n                                distance: parseFloat(TryRead(trailer, \"Distance\")),\r\n                                extraFields: [{\r\n                                    name: \"Size\",\r\n                                    value: TryRead(trailer, \"c_horses\"),\r\n                                    showOnResults: true,\r\n                                }, {\r\n                                    name: \"LQ\",\r\n                                    value: TryRead(trailer, \"c_liv\"),\r\n                                    showOnResults: true,\r\n                                }, {\r\n                                    name: \"Stock\",\r\n                                    value: TryRead(trailer, \"c_stock\"),\r\n                                    showOnResults: false,\r\n                                },\r\n                                ]\r\n                            });\r\n                        }\r\n\r\n                        return results;\r\n                    });\r\n            }\r\n\r\n            if (inventoryType === Settings.inventoryTypes.CARGO) {\r\n                searchResultsPromise = fetch(remoteUrl)\r\n                    .then(function (response) {\r\n                        return response.text();\r\n                    })\r\n                    .then((responseText) => {\r\n                        let parser = new window.DOMParser();\r\n                        let resultsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let resultsNodes = resultsXML.getElementsByTagName(\"cargo\");\r\n                        let results = [];\r\n                        for (let i = 0; i < resultsNodes.length; i++) {\r\n                            let trailer = resultsNodes[i];\r\n                            results.push({\r\n                                id: TryRead(trailer, \"ct_id\"),\r\n                                title: TryRead(trailer, \"ct_year\") + \" \" + TryRead(trailer, \"ct_manu\") + \" \" + TryRead(trailer, \"ct_model\"),\r\n                                price: parseFloat(TryRead(trailer, \"ct_price\")),\r\n                                salePrice: parseFloat(TryRead(trailer, \"ct_price\")),\r\n                                thumbnail: TryRead(trailer, \"IMGTHUMB1\"),\r\n                                caption: TryRead(trailer, \"COM1\"),\r\n                                description: TryRead(trailer, \"ct_description\"),\r\n                                dateStarted: moment(TryRead(trailer, \"ct_startdate\")),\r\n                                isReduced: TryRead(trailer, \"ct_r\") === \"R\",\r\n                                isSold: TryRead(trailer, \"ct_solddate\").length > 0,\r\n                                distance: parseFloat(TryRead(trailer, \"Distance\")),\r\n                                extraFields: [{\r\n                                    name: \"Type\",\r\n                                    value: TryRead(trailer, \"ct_type\"),\r\n                                    showOnResults: true,\r\n                                }, {\r\n                                    name: \"Pull\",\r\n                                    value: TryRead(trailer, \"ct_pull\"),\r\n                                    showOnResults: true,\r\n                                }, {\r\n                                    name: \"Stock\",\r\n                                    value: TryRead(trailer, \"ct_stock\"),\r\n                                    showOnResults: false,\r\n                                },\r\n                                ]\r\n                            });\r\n                        }\r\n\r\n                        return results;\r\n                    });\r\n            }\r\n\r\n            if (inventoryType === Settings.inventoryTypes.TRUCK) {\r\n                searchResultsPromise = fetch(remoteUrl)\r\n                    .then(function (response) {\r\n                        return response.text();\r\n                    })\r\n                    .then((responseText) => {\r\n                        let parser = new window.DOMParser();\r\n                        let resultsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let resultsNodes = resultsXML.getElementsByTagName(\"trucks\");\r\n                        let results = [];\r\n                        for (let i = 0; i < resultsNodes.length; i++) {\r\n                            let trailer = resultsNodes[i];\r\n                            results.push({\r\n                                id: TryRead(trailer, \"t_id\"),\r\n                                title: TryRead(trailer, \"t_year\") + \" \" + TryRead(trailer, \"t_make\") + \" \" + TryRead(trailer, \"t_model\"),\r\n                                price: parseFloat(TryRead(trailer, \"t_price\")),\r\n                                salePrice: parseFloat(TryRead(trailer, \"t_price\")),\r\n                                thumbnail: TryRead(trailer, \"t_xpathth1\"),\r\n                                caption: TryRead(trailer, \"t_com1\"),\r\n                                description: TryRead(trailer, \"t_description\"),\r\n                                dateStarted: moment(TryRead(trailer, \"t_startdate\")),\r\n                                isReduced: TryRead(trailer, \"t_r\") === \"R\",\r\n                                isSold: TryRead(trailer, \"t_solddate\").length > 0,\r\n                                distance: parseFloat(TryRead(trailer, \"Distance\")),\r\n                                extraFields: [{\r\n                                    name: \"Mileage\",\r\n                                    value: TryRead(trailer, \"t_mileage\"),\r\n                                    showOnResults: true,\r\n                                }, {\r\n                                    name: \"Engine\",\r\n                                    value: TryRead(trailer, \"t_engine\"),\r\n                                    showOnResults: true,\r\n                                }, {\r\n                                    name: \"Drive\",\r\n                                    value: TryRead(trailer, \"t_drive\"),\r\n                                    showOnResults: true,\r\n                                }, {\r\n                                    name: \"Stock\",\r\n                                    value: TryRead(trailer, \"t_stock\"),\r\n                                    showOnResults: false,\r\n                                },\r\n                                ]\r\n                            });\r\n                        }\r\n\r\n                        return results;\r\n                    });\r\n            }\r\n\r\n            if (inventoryType === Settings.inventoryTypes.PART) {\r\n                searchResultsPromise = fetch(remoteUrl)\r\n                    .then(function (response) {\r\n                        return response.text();\r\n                    })\r\n                    .then((responseText) => {\r\n                        let parser = new window.DOMParser();\r\n                        let resultsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let resultsNodes = resultsXML.getElementsByTagName(\"trailerparts\");\r\n                        let results = [];\r\n                        for (let i = 0; i < resultsNodes.length; i++) {\r\n                            let trailer = resultsNodes[i];\r\n                            results.push({\r\n                                id: TryRead(trailer, \"t_id\"),\r\n                                title: TryRead(trailer, \"t_year\") + \" \" + TryRead(trailer, \"t_make\") + \" \" + TryRead(trailer, \"t_model\"),\r\n                                price: parseFloat(TryRead(trailer, \"t_price\")),\r\n                                salePrice: parseFloat(TryRead(trailer, \"t_price\")),\r\n                                thumbnail: TryRead(trailer, \"t_xpathth1\"),\r\n                                caption: TryRead(trailer, \"t_com1\"),\r\n                                description: TryRead(trailer, \"t_description\"),\r\n                                dateStarted: moment(TryRead(trailer, \"t_startdate\")),\r\n                                isReduced: TryRead(trailer, \"t_r\") === \"R\",\r\n                                isSold: TryRead(trailer, \"t_solddate\").length > 0,\r\n                                distance: parseFloat(TryRead(trailer, \"Distance\")),\r\n                                extraFields: [{\r\n                                    name: \"\",\r\n                                    value: TryRead(trailer, \"CategoryName\"),\r\n                                    showOnResults: true,\r\n                                }, {\r\n                                    name: \"Year\",\r\n                                    value: TryRead(trailer, \"t_year\"),\r\n                                    showOnResults: true,\r\n                                }, {\r\n                                    name: \"Stock\",\r\n                                    value: TryRead(trailer, \"t_stock\"),\r\n                                    showOnResults: false,\r\n                                },\r\n                                ]\r\n                            });\r\n                        }\r\n\r\n                        return results;\r\n                    });\r\n            }\r\n\r\n            let searchPagedResultsPromise = Promise.all([searchResultsPromise, totalResultsPromise])\r\n                .then(values => {\r\n                    return ({\r\n                            results: values[0],\r\n                            currentPage: page,\r\n                            totalPages: Math.ceil(values[1]/Settings.pageSize),\r\n                            totalRecords: values[1]\r\n                        });\r\n                });\r\n\r\n            return searchPagedResultsPromise;\r\n        }\r\n\r\n        if (inventoryType === Settings.inventoryTypes.INVENTORY) {\r\n\r\n            let searchObj = {\r\n                inventoryQueryGroups: []\r\n            };\r\n\r\n\r\n            for (let i = 0; i < searchFields.fields.length; i++)\r\n            {\r\n                let searchField = searchFields.fields[i];\r\n\r\n                if (searchField.selectedValue && searchField.selectedValue.length > 0) {\r\n                    searchObj.inventoryQueryGroups.push(\r\n                        {\r\n                            inventoryQueries : [\r\n                                {\r\n                                    queryType: searchField.inventoryQueryType,\r\n                                    question: parseInt(searchField.filterId) || 0,\r\n                                    term: searchField.selectedValue\r\n                                }\r\n                            ]\r\n                        }\r\n                    );\r\n                }\r\n                else if (searchField.selectedValues && searchField.selectedValues.length > 0)\r\n                {\r\n                    searchObj.inventoryQueryGroups.push(\r\n                        {\r\n                            inventoryQueries: searchField.selectedValues.map(\r\n                                (val) =>\r\n                                {\r\n                                    let obj ={\r\n                                        queryType: searchField.inventoryQueryType,\r\n                                        question: parseInt(searchField.filterId) || 0,\r\n                                        term: val\r\n                                    };\r\n                                    return obj;\r\n                                }\r\n                            )\r\n                        }\r\n                    );\r\n                }\r\n            }\r\n\r\n            let postDataObject = {\r\n                ListingCategoryId : inventoryCategoryId,\r\n                Page: page,\r\n                MemberId: Settings.memberId,\r\n                QueryList: JSON.stringify(searchObj)\r\n            };\r\n\r\n            let postDataArray = [];\r\n            for (let property in postDataObject) {\r\n                let encodedKey = encodeURIComponent(property);\r\n                let encodedValue = encodeURIComponent(postDataObject[property]);\r\n                postDataArray.push(encodedKey + \"=\" + encodedValue);\r\n            }\r\n\r\n            let postDataString = postDataArray.join(\"&\");\r\n\r\n            let inventoryPromise1 = fetch(Settings.baseApi + \"Listings/Search/\",\r\n                {\r\n                    method: 'POST',\r\n                    withCredentials: true,\r\n                    credentials: 'omit',\r\n                    headers: {\r\n                        Authorization: Settings.authHeader,\r\n                        'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'\r\n                    },\r\n                    body: postDataString\r\n                })\r\n                .then(result => { return result.json()})\r\n                .then(result => {\r\n\r\n                    let results = [];\r\n                    for (let itemIndex = 0; itemIndex < result.results.items.length; itemIndex++) {\r\n                        let record = result.results.items[itemIndex];\r\n                        results.push({\r\n                            id: record.listingId,\r\n                            title: record.title,\r\n                            price: record.price,\r\n                            salePrice: record.price,\r\n                            thumbnail: record.thumbnail,\r\n                            caption: record.title,\r\n                            description: record.description,\r\n                            dateStarted: moment(record.startDate),\r\n                            isReduced: record.reduced,\r\n                            isSold: record.isSold,\r\n                            distance: record.proxDistance,\r\n                            extraFields: [\r\n                                {\r\n                                    name: \"City\",\r\n                                    value: record.contactCity,\r\n                                    showOnResults: true,\r\n                                },\r\n                                {\r\n                                    name: \"State\",\r\n                                    value: record.contactState,\r\n                                    showOnResults: true,\r\n                                },\r\n                            ]\r\n                        });\r\n                    }\r\n                    return ({\r\n                        results: results,\r\n                        currentPage: page,\r\n                        totalPages: result.results.totalPages,\r\n                        totalRecords: result.results.totalItems\r\n                    });\r\n                });\r\n\r\n            return inventoryPromise1;\r\n        }\r\n        return [];\r\n    }\r\n\r\n    GetDetails(inventoryType, listingId) {\r\n        if (inventoryType === Settings.inventoryTypes.TRAILER ||\r\n            inventoryType === Settings.inventoryTypes.CARGO ||\r\n            inventoryType === Settings.inventoryTypes.TRUCK ||\r\n            inventoryType === Settings.inventoryTypes.PART) {\r\n\r\n            let remoteUrl = Helpers.getBaseUrl(inventoryType) + \"?id=\" + listingId;\r\n            let detailsPromise = fetch(remoteUrl)\r\n                .then(function(response){return response.text();})\r\n                .then((result) =>\r\n                {\r\n                    let detailsResult = null;\r\n                    // IgnoreAttrs = true , otherwise elements with attributes get returned as complex objects instead of scalar values\r\n                    parseXml(result, { ignoreAttrs: true},  function (err, result) {\r\n                        if (inventoryType === Settings.inventoryTypes.TRAILER && result.NewDataSet.trailers.length > 0) {\r\n                            detailsResult = result.NewDataSet.trailers[0];\r\n                        }\r\n                        if (inventoryType === Settings.inventoryTypes.CARGO && result.NewDataSet.cargo.length > 0) {\r\n                            detailsResult = result.NewDataSet.cargo[0];\r\n                        }\r\n                        if (inventoryType === Settings.inventoryTypes.TRUCK && result.NewDataSet.trucks.length > 0) {\r\n                            detailsResult = result.NewDataSet.trucks[0];\r\n                        }\r\n                        if (inventoryType === Settings.inventoryTypes.PART && result.NewDataSet.trailerparts.length > 0) {\r\n                            detailsResult = result.NewDataSet.trailerparts[0];\r\n                        }\r\n                        return null;\r\n                    });\r\n                    return detailsResult;\r\n                })\r\n\r\n            return detailsPromise;\r\n        }\r\n\r\n        if (inventoryType === Settings.inventoryTypes.INVENTORY) {\r\n            let inventoryPromise1 = fetch(Settings.baseApi + \"Listing/\" + listingId,\r\n                {\r\n                    method: 'GET',\r\n                    withCredentials: true,\r\n                    credentials: 'omit',\r\n                    headers: {\r\n                        Authorization: Settings.authHeader\r\n                    },\r\n                })\r\n                .then(result => { return result.json()})\r\n                .then(result => {\r\n                    return result.results;\r\n                });\r\n            return inventoryPromise1;\r\n        }\r\n    }\r\n\r\n    GetInventoryCategories() {\r\n\r\n        if (typeof this.cache[\"categories\"] !== \"undefined\")\r\n        {\r\n            return Promise.resolve(this.cache[\"categories\"]);\r\n        }\r\n\r\n        let me = this;\r\n\r\n        let categoriesPromise = fetch(Settings.baseApi + \"Listings/Categories/?IncludeHidden=false&MemberId=\" + Settings.memberId,\r\n            {\r\n                method: 'GET',\r\n                withCredentials: true,\r\n                credentials: 'omit',\r\n                headers: {\r\n                    Authorization: Settings.authHeader\r\n                }\r\n            })\r\n            .then((response) => {\r\n                return response.json();\r\n            })\r\n            .then((response) => {\r\n                me.cache[\"categories\"] = response.results;\r\n                return response.results;\r\n            });\r\n\r\n        return categoriesPromise;\r\n    }\r\n}\r\n\r\nlet DefaultSearchHandler = new SearchHandler();\r\nexport { DefaultSearchHandler }","const states = [\r\n    {\r\n        label: \"Alabama\",\r\n        value: \"AL\"\r\n    },\r\n    {\r\n        label: \"Alaska\",\r\n        value: \"AK\"\r\n    },\r\n    {\r\n        label: \"Arizona\",\r\n        value: \"AZ\"\r\n    },\r\n    {\r\n        label: \"Arkansas\",\r\n        value: \"AR\"\r\n    },\r\n    {\r\n        label: \"California\",\r\n        value: \"CA\"\r\n    },\r\n    {\r\n        label: \"Colorado\",\r\n        value: \"CO\"\r\n    },\r\n    {\r\n        label: \"Connecticut\",\r\n        value: \"CT\"\r\n    },\r\n    {\r\n        label: \"Delaware\",\r\n        value: \"DE\"\r\n    },\r\n    {\r\n        label: \"D.C.\",\r\n        value: \"DC\"\r\n    },\r\n    {\r\n        label: \"Florida\",\r\n        value: \"FL\"\r\n    },\r\n    {\r\n        label: \"Georgia\",\r\n        value: \"GA\"\r\n    },\r\n    {\r\n        label: \"Hawaii\",\r\n        value: \"HI\"\r\n    },\r\n    {\r\n        label: \"Idaho\",\r\n        value: \"ID\"\r\n    },\r\n    {\r\n        label: \"Illinois\",\r\n        value: \"IL\"\r\n    },\r\n    {\r\n        label: \"Indiana\",\r\n        value: \"IN\"\r\n    },\r\n    {\r\n        label: \"Iowa\",\r\n        value: \"IA\"\r\n    },\r\n    {\r\n        label: \"Kansas\",\r\n        value: \"KS\"\r\n    },\r\n    {\r\n        label: \"Kentucky\",\r\n        value: \"KY\"\r\n    },\r\n    {\r\n        label: \"Louisiana\",\r\n        value: \"LA\"\r\n    },\r\n    {\r\n        label: \"Maine\",\r\n        value: \"ME\"\r\n    },\r\n    {\r\n        label: \"Maryland\",\r\n        value: \"MD\"\r\n    },\r\n    {\r\n        label: \"Massachusetts\",\r\n        value: \"MA\"\r\n    },\r\n    {\r\n        label: \"Michigan\",\r\n        value: \"MI\"\r\n    },\r\n    {\r\n        label: \"Minnesota\",\r\n        value: \"MN\"\r\n    },\r\n    {\r\n        label: \"Mississippi\",\r\n        value: \"MS\"\r\n    },\r\n    {\r\n        label: \"Missouri\",\r\n        value: \"MO\"\r\n    },\r\n    {\r\n        label: \"Montana\",\r\n        value: \"MT\"\r\n    },\r\n    {\r\n        label: \"Nebraska\",\r\n        value: \"NE\"\r\n    },\r\n    {\r\n        label: \"Nevada\",\r\n        value: \"NV\"\r\n    },\r\n    {\r\n        label: \"New Hampshire\",\r\n        value: \"NH\"\r\n    },\r\n    {\r\n        label: \"New Jersey\",\r\n        value: \"NJ\"\r\n    },\r\n    {\r\n        label: \"New Mexico\",\r\n        value: \"NM\"\r\n    },\r\n    {\r\n        label: \"New York\",\r\n        value: \"NY\"\r\n    },\r\n    {\r\n        label: \"North Carolina\",\r\n        value: \"NC\"\r\n    },\r\n    {\r\n        label: \"North Dakota\",\r\n        value: \"ND\"\r\n    },\r\n    {\r\n        label: \"Ohio\",\r\n        value: \"OH\"\r\n    },\r\n    {\r\n        label: \"Oklahoma\",\r\n        value: \"OK\"\r\n    },\r\n    {\r\n        label: \"Oregon\",\r\n        value: \"OR\"\r\n    },\r\n    {\r\n        label: \"Pennsylvania\",\r\n        value: \"PA\"\r\n    },\r\n    {\r\n        label: \"Rhode Island\",\r\n        value: \"RI\"\r\n    },\r\n    {\r\n        label: \"South Carolina\",\r\n        value: \"SC\"\r\n    },\r\n    {\r\n        label: \"South Dakota\",\r\n        value: \"SD\"\r\n    },\r\n    {\r\n        label: \"Tennessee\",\r\n        value: \"TN\"\r\n    },\r\n    {\r\n        label: \"Texas\",\r\n        value: \"TX\"\r\n    },\r\n    {\r\n        label: \"Utah\",\r\n        value: \"UT\"\r\n    },\r\n    {\r\n        label: \"Vermont\",\r\n        value: \"VT\"\r\n    },\r\n    {\r\n        label: \"Virginia\",\r\n        value: \"VA\"\r\n    },\r\n    {\r\n        label: \"Washington\",\r\n        value: \"WA\"\r\n    },\r\n    {\r\n        label: \"West Virginia\",\r\n        value: \"WV\"\r\n    },\r\n    {\r\n        label: \"Wisconsin\",\r\n        value: \"WI\"\r\n    },\r\n    {\r\n        label: \"Wyoming\",\r\n        value: \"WY\"\r\n    },\r\n    {\r\n        label: \"\",\r\n        value: \"disabled\",\r\n        disabled: true\r\n    },\r\n    {\r\n        label: \"-- Canada\",\r\n        value: \"disabled\",\r\n        disabled: true\r\n    },\r\n    {\r\n        label: \"Alberta\",\r\n        value: \"AB\"\r\n    },\r\n    {\r\n        label: \"British Col.\",\r\n        value: \"BC\"\r\n    },\r\n    {\r\n        label: \"Manitoba\",\r\n        value: \"MB\"\r\n    },\r\n    {\r\n        label: \"New Brunswick\",\r\n        value: \"NB\"\r\n    },\r\n    {\r\n        label: \"Newfoundland and Labrador\",\r\n        value: \"NL\"\r\n    },\r\n    {\r\n        label: \"Northwest Territories\",\r\n        value: \"NT\"\r\n    },\r\n    {\r\n        label: \"Nova Scotia\",\r\n        value: \"NS\"\r\n    },\r\n    {\r\n        label: \"Nunavut\",\r\n        value: \"NU\"\r\n    },\r\n    {\r\n        label: \"Ontario\",\r\n        value: \"ON\"\r\n    },\r\n    {\r\n        label: \"Prince Edward Island\",\r\n        value: \"PE\"\r\n    },\r\n    {\r\n        label: \"Quebec\",\r\n        value: \"QC\"\r\n    },\r\n    {\r\n        label: \"Saskatchewan\",\r\n        value: \"SK\"\r\n    },\r\n    {\r\n        label: \"Yukon Territories\",\r\n        value: \"YT\"\r\n    },\r\n];\r\n\r\nexport default states;","import states from \"./States\";\r\n\r\nexport const DefaultSearchFieldsHorseTrailer = {\r\n    categoryName: \"Horse Trailers\",\r\n    fields : [\r\n        {\r\n            hideField: false,\r\n            label: \"Newest listings\",\r\n            fieldType: \"sortonly\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"1\",\r\n            sortable: true, // Some fields are only for sorting\r\n            isBeingSorted: false, // If a sort isn't supplied, default to this one.\r\n            sortDirection: \"desc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Year\",\r\n            fieldType: \"sortonly\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"6\",\r\n            sortable: true,\r\n            isBeingSorted: true, // If a sort isn't supplied, default to this one.\r\n            isDefaultSort: true,\r\n            sortDirection: \"desc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Distance from your zipcode\",\r\n            fieldType: \"sortonly\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"166\",\r\n            sortable: true,\r\n            sortDirection: \"asc\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Manufacturer\",\r\n            fieldType: \"multiselect\",\r\n            searchValues: [], // Some fields, like manufacturer and horses, will be populated when the app initializes\r\n            selectedValue: \"\", // Used by textboxes, checkboxes, select\r\n            selectedValues: [], // Used by multiselect\r\n            filterId: \"7\",\r\n            sortable: true,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Pull\",\r\n            fieldType: \"select\",\r\n            searchValues:\r\n                [\r\n                    // select options should have an \"Any\" field, but omit this option from multiselect\r\n                    {\r\n                        label: \"Any\",\r\n                        value: \"\"\r\n                    },\r\n                    {\r\n                        label: \"Gooseneck\",\r\n                        value: \"G\"\r\n                    },\r\n                    {\r\n                        label: \"Bumper pull\",\r\n                        value: \"B\"\r\n                    }\r\n                ],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"10\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Horses\",\r\n            fieldType: \"multiselect\",\r\n            searchValues: [\r\n                {\r\n                    label: \"1\",\r\n                    value: \"1\"\r\n                },\r\n                {\r\n                    label: \"2\",\r\n                    value: \"2\"\r\n                },\r\n                {\r\n                    label: \"2 + 1\",\r\n                    value: \"2 + 1\"\r\n                },\r\n                {\r\n                    label: \"3\",\r\n                    value: \"3\"\r\n                },\r\n                {\r\n                    label: \"4\",\r\n                    value: \"4\"\r\n                },\r\n                {\r\n                    label: \"5\",\r\n                    value: \"5\"\r\n                },\r\n                {\r\n                    label: \"6\",\r\n                    value: \"6\"\r\n                },\r\n                {\r\n                    label: \"7\",\r\n                    value: \"7\"\r\n                },\r\n                {\r\n                    label: \"8\",\r\n                    value: \"8\"\r\n                },\r\n                {\r\n                    label: \"9\",\r\n                    value: \"9\"\r\n                },\r\n                {\r\n                    label: \"10\",\r\n                    value: \"10\"\r\n                },\r\n                {\r\n                    label: \"11\",\r\n                    value: \"11\"\r\n                },\r\n                {\r\n                    label: \"12\",\r\n                    value: \"12\"\r\n                },\r\n                {\r\n                    label: \"13\",\r\n                    value: \"13\"\r\n                },\r\n                {\r\n                    label: \"14\",\r\n                    value: \"14\"\r\n                },\r\n                {\r\n                    label: \"15\",\r\n                    value: \"15\"\r\n                },\r\n                {\r\n                    label: \"Stock\",\r\n                    value: \"Stock\"\r\n                },\r\n                {\r\n                    label: \"Miniature\",\r\n                    value: \"Miniature\"\r\n                },\r\n                {\r\n                    label: \"Pigs/Sheep\",\r\n                    value: \"Pigs/Sheep\"\r\n                }\r\n\r\n            ],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"9\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Living Quarters\",\r\n            fieldType: \"select\",\r\n            searchValues:\r\n                [\r\n                    // select options should have an \"Any\" field, but omit this option from multiselect\r\n                    {\r\n                        label: \"Any\",\r\n                        value: \"\"\r\n                    },\r\n                    {\r\n                        label: \"Yes\",\r\n                        value: \"Yes\"\r\n                    },\r\n                    {\r\n                        label: \"No\",\r\n                        value: \"No\"\r\n                    }\r\n                ],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"11\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"New or Used\",\r\n            fieldType: \"select\",\r\n            searchValues:\r\n                [\r\n                    // select options should have an \"Any\" field, but omit this option from multiselect\r\n                    {\r\n                        label: \"Any\",\r\n                        value: \"\"\r\n                    },\r\n                    {\r\n                        label: \"New\",\r\n                        value: \"Y\"\r\n                    },\r\n                    {\r\n                        label: \"Used\",\r\n                        value: \"N\"\r\n                    }\r\n                ],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"39\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Price\",\r\n            fieldType: \"multiselect\",\r\n            searchValues:\r\n                [\r\n                    {\r\n                        label: \"Under $2,500\",\r\n                        value: \"0-2500\"\r\n                    },\r\n                    {\r\n                        label: \"$2,500 to $5,000\",\r\n                        value: \"2500-5000\"\r\n                    },\r\n                    {\r\n                        label: \"$5,000 to $10,000\",\r\n                        value: \"5000-10000\"\r\n                    },\r\n                    {\r\n                        label: \"$10,000 to $20,000\",\r\n                        value: \"10000-20000\"\r\n                    },\r\n                    {\r\n                        label: \"$20,000 +\",\r\n                        value: \"20000-999999\"\r\n                    }\r\n                ],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"23\",\r\n            sortable: true,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Your zipcode\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"zip\", // The zip code distance is a unique field. It has a searchkey of 'zip', but a sort field of 166\r\n            setFilterIdWhenChanged: \"166\" // When this field is entered, default the sort field. A user can still change it.\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Stock #\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"30\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"City\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"14\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"State\",\r\n            fieldType: \"multiselect\",\r\n            searchValues: states,\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"15\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Custom #1\",\r\n            fieldType: \"checkbox\",\r\n            searchValue: \"Y\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"45\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Extra #1\",\r\n            fieldType: \"checkbox\",\r\n            searchValue: \"1\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"49\",\r\n        },\r\n\r\n    ]\r\n}","import states from \"./States\";\r\nexport const DefaultSearchFieldsCargoTrailer = {\r\n    categoryName: \"Cargo Trailers\",\r\n    fields : [\r\n        {\r\n            hideField: false,\r\n            label: \"Newest listings\",\r\n            fieldType: \"sortonly\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"1\",\r\n            sortable: true, // Some fields are only for sorting\r\n            isBeingSorted: false, // If a sort isn't supplied, default to this one.\r\n            sortDirection: \"desc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Year\",\r\n            fieldType: \"multiselect\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [], // Will be populated\r\n            filterId: \"5\",\r\n            sortable: true,\r\n            isBeingSorted: true, // If a sort isn't supplied, default to this one.\r\n            isDefaultSort: true,\r\n            sortDirection: \"desc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Distance from your zipcode\",\r\n            fieldType: \"sortonly\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"43\",\r\n            sortable: true,\r\n            sortDirection: \"asc\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Manufacturer\",\r\n            fieldType: \"multiselect\",\r\n            searchValues: [], // Some fields, like manufacturer and horses, will be populated when the app initializes\r\n            selectedValue: \"\", // Used by textboxes, checkboxes, select\r\n            selectedValues: [], // Used by multiselect\r\n            filterId: \"7\",\r\n            sortable: true,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Type\",\r\n            fieldType: \"multiselect\",\r\n            searchValues: [\r\n                { label: \"Flatbed\", value: \"Flatbed\" },\r\n                { label: \"Open Utility\", value: \"Open Utility\" },\r\n                { label: \"Closed Utility\", value: \"Closed Utility\" },\r\n                { label: \"Cattle Hauler\", value: \"Cattle Hauler\" },\r\n                { label: \"Equipment\", value: \"Equipment\" },\r\n                { label: \"Livestock\", value: \"Livestock\" },\r\n                { label: \"RV Trailer\", value: \"RV Trailer\" },\r\n                { label: \"Motorcycle/ATV\", value: \"Motorcycle/ATV\" },\r\n                { label: \"Boat Trailer\", value: \"Boat Trailer\" },\r\n                { label: \"Car Hauler\", value: \"Car Hauler\" },\r\n                { label: \"Dump\", value: \"Dump\" },\r\n                { label: \"Race Car\", value: \"Race Car\" },\r\n                { label: \"Snowmobile\", value: \"Snowmobile\" },\r\n                { label: \"Toy Hauler\", value: \"Toy Hauler\" },\r\n            ], // Will be pruned\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"4\",\r\n            sortable: true,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"New or Used\",\r\n            fieldType: \"select\",\r\n            searchValues:\r\n                [\r\n                    // select options should have an \"Any\" field, but omit this option from multiselect\r\n                    {\r\n                        label: \"Any\",\r\n                        value: \"\"\r\n                    },\r\n                    {\r\n                        label: \"New\",\r\n                        value: \"Y\"\r\n                    },\r\n                    {\r\n                        label: \"Used\",\r\n                        value: \"N\"\r\n                    }\r\n                ],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"37\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Price\",\r\n            fieldType: \"multiselect\",\r\n            searchValues:\r\n                [\r\n                    {\r\n                        label: \"Under $2,500\",\r\n                        value: \"0-2500\"\r\n                    },\r\n                    {\r\n                        label: \"$2,500 to $5,000\",\r\n                        value: \"2500-5000\"\r\n                    },\r\n                    {\r\n                        label: \"$5,000 to $10,000\",\r\n                        value: \"5000-10000\"\r\n                    },\r\n                    {\r\n                        label: \"$10,000 to $20,000\",\r\n                        value: \"10000-20000\"\r\n                    },\r\n                    {\r\n                        label: \"$20,000 +\",\r\n                        value: \"20000-999999\"\r\n                    }\r\n                ],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"19\",\r\n            sortable: true,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Your zipcode\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"zip\", // The zip code distance is a unique field. It has a searchkey of 'zip', but a sort field of 43\r\n            setFilterIdWhenChanged: \"43\" // When this field is entered, default the sort field. A user can still change it.\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Stock #\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"30\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"City\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"14\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"State\",\r\n            fieldType: \"multiselect\",\r\n            searchValues: states,\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"13\",\r\n        }\r\n    ]\r\n}","import states from \"./States\";\r\nexport const DefaultSearchFieldsTruck = {\r\n    categoryName: \"Trucks\",\r\n    fields : [\r\n        {\r\n            hideField: false,\r\n            label: \"Newest listings\",\r\n            fieldType: \"sortonly\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"1\",\r\n            sortable: true,\r\n            isBeingSorted: false,\r\n            sortDirection: \"desc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Year\",\r\n            fieldType: \"sortonly\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"2\",\r\n            sortable: true,\r\n            isBeingSorted: true,\r\n            isDefaultSort: true,\r\n            sortDirection: \"desc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Distance from your zipcode\",\r\n            fieldType: \"sortonly\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"44\",\r\n            sortable: true,\r\n            sortDirection: \"asc\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Manufacturer\",\r\n            fieldType: \"multiselect\",\r\n            searchValues: [],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"3\",\r\n            sortable: true,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Drive\",\r\n            fieldType: \"select\",\r\n            searchValues: [\r\n                // select options should have an \"Any\" field, but omit this option from multiselect\r\n                {\r\n                    label: \"Any\",\r\n                    value: \"\"\r\n                },\r\n                {\r\n                    label: \"4x2\",\r\n                    value: \"4x2\"\r\n                },\r\n                {\r\n                    label: \"4x4\",\r\n                    value: \"4x4\"\r\n                },\r\n            ],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"7\",\r\n            sortable: false,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Engine\",\r\n            fieldType: \"multiselect\",\r\n            searchValues: [],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"6\",\r\n            sortable: false,\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"New or Used\",\r\n            fieldType: \"select\",\r\n            searchValues:\r\n                [\r\n                    // select options should have an \"Any\" field, but omit this option from multiselect\r\n                    {\r\n                        label: \"Any\",\r\n                        value: \"\"\r\n                    },\r\n                    {\r\n                        label: \"New\",\r\n                        value: \"Y\"\r\n                    },\r\n                    {\r\n                        label: \"Used\",\r\n                        value: \"N\"\r\n                    }\r\n                ],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"34\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Price\",\r\n            fieldType: \"multiselect\",\r\n            searchValues:\r\n                [\r\n                    {\r\n                        label: \"Under $2,500\",\r\n                        value: \"0-2500\"\r\n                    },\r\n                    {\r\n                        label: \"$2,500 to $5,000\",\r\n                        value: \"2500-5000\"\r\n                    },\r\n                    {\r\n                        label: \"$5,000 to $10,000\",\r\n                        value: \"5000-10000\"\r\n                    },\r\n                    {\r\n                        label: \"$10,000 to $20,000\",\r\n                        value: \"10000-20000\"\r\n                    },\r\n                    {\r\n                        label: \"$20,000 +\",\r\n                        value: \"20000-999999\"\r\n                    }\r\n                ],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"20\",\r\n            sortable: true,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Your zipcode\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"zip\",\r\n            setFilterIdWhenChanged: \"44\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Stock #\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"28\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"City\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"12\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"State\",\r\n            fieldType: \"multiselect\",\r\n            searchValues: states,\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"13\",\r\n        }\r\n    ]\r\n}","import states from \"./States\";\r\nexport const DefaultSearchFieldsPart = {\r\n    categoryName: \"Parts\",\r\n    fields : [\r\n        {\r\n            hideField: false,\r\n            label: \"Newest listings\",\r\n            fieldType: \"sortonly\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"1\",\r\n            sortable: true,\r\n            isBeingSorted: false,\r\n            sortDirection: \"desc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Year\",\r\n            fieldType: \"multiselect\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"2\",\r\n            sortable: true,\r\n            isBeingSorted: true,\r\n            isDefaultSort: true,\r\n            sortDirection: \"desc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Manufacturer\",\r\n            fieldType: \"select\",\r\n            searchValues: [],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"3\",\r\n            sortable: true,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Model\",\r\n            fieldType: \"select\",\r\n            searchValues: [],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"4\",\r\n            sortable: false,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Category\",\r\n            fieldType: \"select\",\r\n            searchValues: [],\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"34\",\r\n            sortable: false,\r\n            sortDirection: \"asc\"\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"Stock #\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"28\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"City\",\r\n            fieldType: \"textbox\",\r\n            searchValue: \"\",\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"12\",\r\n        },\r\n        {\r\n            hideField: false,\r\n            label: \"State\",\r\n            fieldType: \"multiselect\",\r\n            searchValues: states,\r\n            selectedValue: \"\",\r\n            selectedValues: [],\r\n            filterId: \"13\",\r\n        }\r\n    ]\r\n}","import {Settings} from \"./Settings.js\";\r\nimport {DefaultSearchFieldsHorseTrailer} from \"./DefaultSearchFieldsHorseTrailer\";\r\nimport {DefaultSearchFieldsCargoTrailer} from \"./DefaultSearchFieldsCargoTrailer\";\r\nimport {DefaultSearchFieldsTruck} from \"./DefaultSearchFieldsTruck\";\r\nimport {DefaultSearchFieldsPart} from \"./DefaultSearchFieldsPart\";\r\nimport states from \"./States\";\r\n\r\nclass SearchFields {\r\n\r\n    constructor() {\r\n        this.cache = [];\r\n\r\n        this.years = [];\r\n        for (let index=(new Date()).getFullYear()+1; index >= 1980; index--) {\r\n            this.years.push({\r\n                value: index.toString(),\r\n                label: index.toString()\r\n            })\r\n        }\r\n\r\n    }\r\n\r\n    getFields(inventoryType, inventoryCategory) {\r\n\r\n        if (inventoryType === Settings.inventoryTypes.NONE) {\r\n            return Promise.resolve([]);\r\n        }\r\n\r\n        let cacheKey = \"\";\r\n        if (inventoryType !== Settings.inventoryTypes.INVENTORY) {\r\n            cacheKey = inventoryType;\r\n        } else {\r\n            cacheKey = \"inventory-\" + inventoryCategory\r\n        }\r\n        if (typeof this.cache[cacheKey] !== \"undefined\") {\r\n            // Return a copy of the defaults\r\n            return Promise.resolve(JSON.parse(JSON.stringify(this.cache[cacheKey])));\r\n        }\r\n\r\n        if (inventoryType === Settings.inventoryTypes.TRAILER) {\r\n            // Start with the defaults\r\n            this.cache[cacheKey] = DefaultSearchFieldsHorseTrailer;\r\n\r\n            // Hide any fields that have been specified in the configuration\r\n            if (Array.isArray(Settings.hideTrailerSearchFieldsByLabel)) {\r\n                Settings.hideTrailerSearchFieldsByLabel.forEach(element => {\r\n                    let filter = this.cache[cacheKey].fields.find(x => x.label === element);\r\n                    if (filter) {\r\n                        filter.hideField = true;\r\n                    }\r\n                });\r\n            }\r\n\r\n\r\n            // Fetch additional information from the server\r\n            let me = this;\r\n            let trailerPromise1 = fetch(Settings.trailersUrl + \"?action=distinctmanu\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"c_manu\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        elementsArray.sort();\r\n\r\n                        let objs = elementsArray.map((element) => {\r\n                            return {\r\n                                label: element,\r\n                                value: element\r\n                            }\r\n                        });\r\n\r\n                        me.cache[cacheKey].fields.find(x => x.filterId === \"7\").searchValues = objs;\r\n                    }\r\n                );\r\n\r\n            let trailerPromise2 = fetch(Settings.trailersUrl + \"?action=distincthorses\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"c_horses\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        // Prune\r\n                        let existingValues = me.cache[cacheKey].fields.find(x => x.filterId === \"9\");\r\n                        existingValues.searchValues =\r\n                            existingValues.searchValues.filter((element) => {\r\n                                return elementsArray.indexOf(element.value) >= 0;\r\n                            });\r\n                    }\r\n                );\r\n\r\n            let trailerAllPromise = Promise.all([trailerPromise1, trailerPromise2])\r\n                .then((values) => {\r\n                    // Make a copy of the object\r\n                    return JSON.parse(JSON.stringify(me.cache[cacheKey]));\r\n                });\r\n            return trailerAllPromise;\r\n        }\r\n\r\n        if (inventoryType === Settings.inventoryTypes.CARGO) {\r\n\r\n            // Start with the defaults\r\n            this.cache[cacheKey] = DefaultSearchFieldsCargoTrailer;\r\n            let me = this;\r\n\r\n            // Hide any fields that have been specified in the configuration\r\n            if (Array.isArray(Settings.hideCargoSearchFieldsByLabel)) {\r\n                Settings.hideCargoSearchFieldsByLabel.forEach(element => {\r\n                    let filter = this.cache[cacheKey].fields.find(x => x.label === element);\r\n                    if (filter) {\r\n                        filter.hideField = true;\r\n                    }\r\n                });\r\n            }\r\n\r\n            // Fetch additional information from the server\r\n            let cargoPromise1 = fetch(Settings.cargoUrl + \"?action=distinctmanu\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"ct_manu\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        elementsArray.sort();\r\n\r\n                        let objs = elementsArray.map((element) => {\r\n                            return {\r\n                                label: element,\r\n                                value: element\r\n                            }\r\n                        });\r\n\r\n                        me.cache[cacheKey].fields.find(x => x.filterId === \"7\").searchValues = objs;\r\n                    }\r\n                );\r\n\r\n            let cargoPromise2 = fetch(Settings.cargoUrl + \"?action=distincttype\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"ct_type\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        // Prune\r\n                        let existingValues = me.cache[cacheKey].fields.find(x => x.filterId === \"4\");\r\n                        existingValues.searchValues =\r\n                            existingValues.searchValues.filter((element) => {\r\n                                return elementsArray.indexOf(element.value) >= 0;\r\n                            });\r\n                    }\r\n                );\r\n\r\n            let cargoPromise3 = fetch(Settings.cargoUrl + \"?action=distinctyear\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"ct_year\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n                        elementsArray.sort().reverse();\r\n\r\n                        let objs = elementsArray.map((element) => {\r\n                            return {\r\n                                label: element,\r\n                                value: element\r\n                            }\r\n                        });\r\n\r\n                        me.cache[cacheKey].fields.find(x => x.filterId === \"5\").searchValues = objs;\r\n                    }\r\n                );\r\n\r\n            let cargoAllPromise = Promise.all([cargoPromise1, cargoPromise2, cargoPromise3])\r\n                .then((values) => {\r\n                    return me.cache[cacheKey];\r\n                });\r\n\r\n            return cargoAllPromise;\r\n        }\r\n\r\n        if (inventoryType === Settings.inventoryTypes.TRUCK) {\r\n            // Start with the defaults\r\n            this.cache[cacheKey] = DefaultSearchFieldsTruck;\r\n            let me = this;\r\n\r\n\r\n            // Hide any fields that have been specified in the configuration\r\n            if (Array.isArray(Settings.hideTruckSearchFieldsByLabel)) {\r\n                Settings.hideTruckSearchFieldsByLabel.forEach(element => {\r\n                    let filter = this.cache[cacheKey].fields.find(x => x.label === element);\r\n                    if (filter) {\r\n                        filter.hideField = true;\r\n                    }\r\n                });\r\n            }\r\n\r\n            // Fetch additional information from the server\r\n            let truckPromise1 = fetch(Settings.trucksUrl + \"?action=distinctengine\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"t_engine\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        elementsArray.sort();\r\n\r\n                        let objs = elementsArray.map((element) => {\r\n                            return {\r\n                                label: element,\r\n                                value: element\r\n                            }\r\n                        });\r\n\r\n                        me.cache[cacheKey].fields.find(x => x.filterId === \"6\").searchValues = objs;\r\n                    }\r\n                );\r\n\r\n            let truckPromise2 = fetch(Settings.trucksUrl + \"?action=distinctmake\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"t_make\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        elementsArray.sort();\r\n\r\n                        let objs = elementsArray.map((element) => {\r\n                            return {\r\n                                label: element,\r\n                                value: element\r\n                            }\r\n                        });\r\n\r\n                        me.cache[cacheKey].fields.find(x => x.filterId === \"3\").searchValues = objs;\r\n                    }\r\n                );\r\n\r\n            let truckAllProimise = Promise.all([truckPromise1, truckPromise2])\r\n                .then((values) => {\r\n                    return me.cache[cacheKey];\r\n                });\r\n\r\n            return truckAllProimise;\r\n        }\r\n\r\n        if (inventoryType === Settings.inventoryTypes.PART) {\r\n            // Start with the defaults\r\n            this.cache[cacheKey] = DefaultSearchFieldsPart;\r\n            let me = this;\r\n\r\n            // Hide any fields that have been specified in the configuration\r\n            if (Array.isArray(Settings.hidePartSearchFieldsByLabel)) {\r\n                Settings.hidePartSearchFieldsByLabel.forEach(element => {\r\n                    let filter = this.cache[cacheKey].fields.find(x => x.label === element);\r\n                    if (filter) {\r\n                        filter.hideField = true;\r\n                    }\r\n                });\r\n            }\r\n\r\n            // Fetch additional information from the server\r\n            let partPromise1 = fetch(Settings.partsUrl + \"?action=distinctmake\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"t_make\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        elementsArray.sort();\r\n\r\n                        let objs = elementsArray.map((element) => {\r\n                            return {\r\n                                label: element,\r\n                                value: element\r\n                            }\r\n                        });\r\n                        objs.unshift({\r\n                            label: \"Any\",\r\n                            value: \"\"\r\n                        });\r\n                        me.cache[cacheKey].fields.find(x => x.filterId === \"3\").searchValues = objs;\r\n                    }\r\n                );\r\n\r\n            let partPromise2 = fetch(Settings.partsUrl + \"?action=distinctmodel\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"t_model\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        elementsArray.sort();\r\n\r\n                        let objs = elementsArray.map((element) => {\r\n                            return {\r\n                                label: element,\r\n                                value: element\r\n                            }\r\n                        });\r\n                        objs.unshift({\r\n                            label: \"Any\",\r\n                            value: \"\"\r\n                        });\r\n                        me.cache[cacheKey].fields.find(x => x.filterId === \"4\").searchValues = objs;\r\n                    }\r\n                );\r\n\r\n            let partPromise3 = fetch(Settings.partsUrl + \"?action=distinctyear\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"t_year\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        elementsArray.sort().reverse();\r\n\r\n                        let objs = elementsArray.map((element) => {\r\n                            return {\r\n                                label: element,\r\n                                value: element\r\n                            }\r\n                        });\r\n\r\n                        me.cache[cacheKey].fields.find(x => x.filterId === \"2\").searchValues = objs;\r\n                    }\r\n                );\r\n\r\n            let partPromise4 = fetch(Settings.partsUrl + \"?action=distinctcategory\")\r\n                .then(function (response) {\r\n                    return response.text();\r\n                })\r\n                .then(function (responseText) {\r\n                        let parser = new window.DOMParser();\r\n                        let elementsXML = parser.parseFromString(responseText, \"text/xml\");\r\n                        let elementsNodes = elementsXML.getElementsByTagName(\"CategoryName\");\r\n                        let elementsArray = [];\r\n                        for (let i = 0; i < elementsNodes.length; i++) {\r\n                            if (elementsNodes[i].childNodes[0]) {\r\n                                let val = elementsNodes[i].childNodes[0].nodeValue.trim();\r\n                                if (val.length > 0) {\r\n                                    elementsArray.push(elementsNodes[i].childNodes[0].nodeValue);\r\n                                }\r\n                            }\r\n                        }\r\n\r\n                        elementsArray.sort();\r\n\r\n                        let objs = elementsArray.map((element) => {\r\n                            return {\r\n                                label: element,\r\n                                value: element\r\n                            }\r\n                        });\r\n                        objs.unshift({\r\n                            label: \"Any\",\r\n                            value: \"\"\r\n                        });\r\n                        me.cache[cacheKey].fields.find(x => x.filterId === \"34\").searchValues = objs;\r\n                    }\r\n                );\r\n            let partAllPromise = Promise.all([partPromise1, partPromise2, partPromise3, partPromise4])\r\n                .then((values) => {\r\n                    return me.cache[cacheKey];\r\n                });\r\n\r\n            return partAllPromise;\r\n        }\r\n\r\n        if (inventoryType === Settings.inventoryTypes.INVENTORY) {\r\n            let me = this;\r\n\r\n            // Fetch additional information from the server\r\n            let inventoryPromise1 = fetch(Settings.baseApi + \"Listings/Category/\" + inventoryCategory + \"/Options/\",\r\n                {\r\n                    method: 'GET',\r\n                    withCredentials: true,\r\n                    credentials: 'omit',\r\n                    headers: {\r\n                        Authorization: Settings.authHeader\r\n                    }\r\n                })\r\n                .then(function (response) {\r\n                    return response.json();\r\n                })\r\n                .then(function (responseJson) {\r\n                        let objs = {fields: []};\r\n                        objs.categoryName = responseJson.categoryName;\r\n                        for (let categoryIndex = 0; categoryIndex < responseJson.results.length; categoryIndex++) {\r\n\r\n                            let category = responseJson.results[categoryIndex];\r\n\r\n                            for (let questionsIndex = 0; questionsIndex < category.options.questions.length; questionsIndex++) {\r\n                                let question = category.options.questions[questionsIndex];\r\n                                if (question.searchable) {\r\n                                    if (question.optionType === Settings.inventoryFieldType.TEXTBOX ||\r\n                                        question.optionType === Settings.inventoryFieldType.TEXTAREA) {\r\n                                        objs.fields.push({\r\n                                            hideField: false,\r\n                                            label: question.name,\r\n                                            fieldType: \"textbox\",\r\n                                            searchValue: \"\",\r\n                                            selectedValue: \"\",\r\n                                            selectedValues: [],\r\n                                            filterId: question.optionId.toString(),\r\n                                            maxLength: question.maxLength,\r\n                                            inventoryQueryType: Settings.inventoryQueryType.QUESTION,\r\n                                        });\r\n                                    } else if (question.optionType === Settings.inventoryFieldType.RADIO ||\r\n                                        question.optionType === Settings.inventoryFieldType.RADIOWITHTEXT ||\r\n                                        question.optionType === Settings.inventoryFieldType.SELECT ||\r\n                                        question.optionType === Settings.inventoryFieldType.SELECTWITHTEXT ||\r\n                                        question.optionType === Settings.inventoryFieldType.AUTOCOMPLETE) {\r\n                                        question.defaultValueCollection.defaultValues.unshift({label: \"Any\", value: \"\"});\r\n                                        objs.fields.push({\r\n                                            hideField: false,\r\n                                            label: question.name,\r\n                                            fieldType: \"select\",\r\n                                            searchValues: question.defaultValueCollection.defaultValues,\r\n                                            selectedValue: \"\",\r\n                                            selectedValues: [],\r\n                                            filterId: question.optionId.toString(),\r\n                                            inventoryQueryType: Settings.inventoryQueryType.QUESTION,\r\n                                        });\r\n                                    } else if (question.optionType === Settings.inventoryFieldType.MULTIPLE ||\r\n                                        question.optionType === Settings.inventoryFieldType.MULTIPLEWITHTEXT) {\r\n\r\n                                        objs.fields.push({\r\n                                            hideField: false,\r\n                                            label: question.name,\r\n                                            fieldType: \"multiselect\",\r\n                                            searchValues: question.defaultValueCollection.defaultValues,\r\n                                            selectedValue: \"\",\r\n                                            selectedValues: [],\r\n                                            filterId: question.optionId.toString(),\r\n                                            inventoryQueryType: Settings.inventoryQueryType.QUESTION,\r\n                                        });\r\n                                    } else if (question.optionType === Settings.inventoryFieldType.YESNO) {\r\n\r\n                                        objs.fields.push({\r\n                                            hideField: false,\r\n                                            label: question.name,\r\n                                            fieldType: \"checkbox\",\r\n                                            searchValue: \"1\",\r\n                                            selectedValue: \"\",\r\n                                            selectedValues: [],\r\n                                            filterId: question.optionId.toString(),\r\n                                            inventoryQueryType: Settings.inventoryQueryType.QUESTION,\r\n                                        });\r\n                                    } else if (question.optionType === Settings.inventoryFieldType.YEAR) {\r\n\r\n                                        objs.fields.push({\r\n                                            hideField: false,\r\n                                            label: question.name,\r\n                                            fieldType: \"multiselect\",\r\n                                            searchValues: me.years,\r\n                                            selectedValue: \"\",\r\n                                            selectedValues: [],\r\n                                            filterId: question.optionId.toString(),\r\n                                            inventoryQueryType: Settings.inventoryQueryType.QUESTION,\r\n                                        });\r\n                                    } else if (question.optionType === Settings.inventoryFieldType.STATE) {\r\n\r\n                                        objs.fields.push({\r\n                                            hideField: false,\r\n                                            label: question.name,\r\n                                            fieldType: \"multiselect\",\r\n                                            searchValues: states.slice(),\r\n                                            selectedValue: \"\",\r\n                                            selectedValues: [],\r\n                                            filterId: question.optionId.toString(),\r\n                                            inventoryQueryType: Settings.inventoryQueryType.QUESTION,\r\n                                        });\r\n                                    }\r\n                                }\r\n                            }\r\n                        }\r\n                        objs.fields.unshift({\r\n                            hideField: false,\r\n                            label: \"State\",\r\n                            fieldType: \"multiselect\",\r\n                            searchValues: states.slice(),\r\n                            selectedValue: \"\",\r\n                            selectedValues: [],\r\n                            filterId: \"state\",\r\n                            inventoryQueryType: Settings.inventoryQueryType.CONTACTSTATE,\r\n                        });\r\n                        objs.fields.unshift({\r\n                            hideField: false,\r\n                            label: \"Distance from zipcode\",\r\n                            fieldType: \"textbox\",\r\n                            searchValue: \"\",\r\n                            selectedValue: \"\",\r\n                            selectedValues: [],\r\n                            filterId: \"zip\",\r\n                            inventoryQueryType: Settings.inventoryQueryType.CONTACTZIP,\r\n                        });\r\n                        objs.fields.unshift({\r\n                            hideField: false,\r\n                            label: \"Title\",\r\n                            fieldType: \"textbox\",\r\n                            searchValue: \"\",\r\n                            selectedValue: \"\",\r\n                            selectedValues: [],\r\n                            filterId: \"title\",\r\n                            inventoryQueryType: Settings.inventoryQueryType.TITLE,\r\n                        });\r\n\r\n\r\n                        me.cache[cacheKey] = objs;\r\n                    }\r\n                )\r\n\r\n            let inventoryAllPromise = Promise.all([inventoryPromise1])\r\n                .then((values) => {\r\n                    return me.cache[cacheKey];\r\n                });\r\n\r\n            return inventoryAllPromise;\r\n        }\r\n    }\r\n}\r\n\r\nlet DefaultSearchFields = new SearchFields();\r\nexport {DefaultSearchFields}","import {InventoryTheme} from './Theme.js';\r\nimport 'whatwg-fetch';\r\nimport 'promise-polyfill/src/polyfill';\r\nimport {DefaultSearchHandler} from './SearchHandler.js';\r\nimport {DefaultSearchFields} from './SearchFields.js';\r\n\r\nconst defaultSettings = {\r\n    inventoryTypes: {\r\n        NONE: 0,\r\n        TRAILER: 1,\r\n        TRUCK: 2,\r\n        DEALER: 3,\r\n        GENERAL: 4,\r\n        PART: 5,\r\n        OLDTRACTOR: 6,\r\n        INVENTORY: 7,\r\n        BARRELDRAW: 8,\r\n        TACK: 9,\r\n        CARGO: 10,\r\n        REVIEW: 11,\r\n        HORSE: 12,\r\n        WORKINGHORSE: 13,\r\n        HAY: 14,\r\n        EVENTS: 15,\r\n        HORSEPROPERTY: 16\r\n    },\r\n    inventoryFieldType : {\r\n        MULTIPLE : 1,\r\n        RADIO : 2,\r\n        TEXTBOX : 3,\r\n        TEXTAREA : 4,\r\n        NUMBER : 5,\r\n        DATE : 6,\r\n        YESNO : 7,\r\n        RADIOWITHTEXT : 8,\r\n        MULTIPLEWITHTEXT : 9,\r\n        YEAR : 10,\r\n        SELECT : 11,\r\n        SELECTWITHTEXT : 12,\r\n        AUTOCOMPLETE : 13,\r\n        STATE : 14\r\n    },\r\n    inventoryQueryType : {\r\n        TITLE : 1,\r\n        DESCRIPTION: 2,\r\n        CONTACTCITY : 3,\r\n        CONTACTSTATE : 4,\r\n        CONTACTZIP : 5,\r\n        CONTACTEMAIL : 6,\r\n        PRICE : 7,\r\n        ISSOLD : 8,\r\n        ISREDUCED : 9,\r\n        QUESTION : 10\r\n    },\r\n    pageSize: 25,\r\n    trailersUrl : \"https://horsetrailerworld.com/remote/publicXML/TrailerList.aspx\",\r\n    cargoUrl : \"https://horsetrailerworld.com/remote/publicXML/CargoList.aspx\",\r\n    trucksUrl: \"https://horsetrailerworld.com/remote/publicXML/TruckList.aspx\",\r\n    partsUrl: \"https://horsetrailerworld.com/remote/publicXML/PartList.aspx\",\r\n\r\n    // New inventory system\r\n    baseApi: \"https://api.equinemediaworld.com/api/v1/\",\r\n    authHeader: \"Basic ciUlbSZxYCUoSkApfnhV\",\r\n    showEditButton: false,\r\n    memberId: 0,\r\n\r\n    showTrailers: true,\r\n    showCargo: true,\r\n    showTrucks: true,\r\n    showParts: true,\r\n    showInventory: true,\r\n\r\n    hideTrailerSearchFieldsByLabel: [],\r\n    hideCargoSearchFieldsByLabel: [],\r\n    hideTruckSearchFieldsByLabel: [],\r\n    hidePartSearchFieldsByLabel: [],\r\n\r\n    socialShareUseCanonicalUrls: true\r\n};\r\nlet Settings = {...defaultSettings, ...window.__inventoryDefaults};\r\nexport { Settings, DefaultSearchFields, InventoryTheme, DefaultSearchHandler }","import {Settings} from \"./Settings\";\r\n\r\nlet sanitizeHtml = require('sanitize-html');\r\n\r\nclass Helpers {\r\n\r\n    trimAtNextWhitespace(inputString, maxLength) {\r\n        if (inputString.length <= maxLength) {\r\n            return inputString;\r\n        }\r\n\r\n        let nextWhitespace = inputString.indexOf(\" \", maxLength);\r\n        if (nextWhitespace === -1) {\r\n            return inputString.substring(0, maxLength - 3) + \"...\"\r\n        }\r\n        return inputString.substring(0, nextWhitespace) + \"...\"\r\n    }\r\n\r\n    formatMoney(amount, decimalCount = 2, decimal = \".\", thousands = \",\") {\r\n        try {\r\n            decimalCount = Math.abs(decimalCount);\r\n            decimalCount = isNaN(decimalCount) ? 2 : decimalCount;\r\n\r\n            const negativeSign = amount < 0 ? \"-\" : \"\";\r\n\r\n            let i = parseInt(amount = Math.abs(Number(amount) || 0).toFixed(decimalCount)).toString();\r\n            let j = (i.length > 3) ? i.length % 3 : 0;\r\n\r\n            let result = negativeSign + (j ? i.substr(0, j) + thousands : '') + i.substr(j).replace(/(\\d{3})(?=\\d)/g, \"$1\" + thousands) + (decimalCount ? decimal + Math.abs(amount - i).toFixed(decimalCount).slice(2) : \"\");\r\n            return result;\r\n        } catch (e) {\r\n            console.log(e)\r\n        }\r\n    };\r\n\r\n    safeHtml(input) {\r\n        // Documentation: https://www.npmjs.com/package/sanitize-html\r\n        let attributes = sanitizeHtml.defaults.allowedAttributes;\r\n        attributes[\"font\"] = [\"color\", \"size\"];\r\n\r\n        return sanitizeHtml(input, {\r\n            allowedTags: sanitizeHtml.defaults.allowedTags.concat([ 'p', 'img', 'b', 'strong', 'i', 'font' ]),\r\n            allowedAttributes: attributes\r\n        }).replace(/(\\r\\n|\\n|\\r)/gm, \"<br />\");\r\n    }\r\n\r\n    getVideoEmbedUrl(url) {\r\n        if (url.indexOf(\"youtu\")>=0) {\r\n            return this.getYoutubeEmbedFromUrl(url);\r\n        }\r\n\r\n        if (url.indexOf(\"vimeo\") >= 0) {\r\n            return this.getVimeoEmbedFromUrl(url);\r\n        }\r\n    }\r\n\r\n    getYoutubeEmbedFromUrl(url) {\r\n        if (!url) {\r\n            return \"\";\r\n        }\r\n\r\n        let videoId = \"\";\r\n\r\n\r\n        if (url.indexOf(\".be/\") >= 0)\r\n        {\r\n            // Url in the format of youtu.be/####\r\n            videoId = url.substring(url.indexOf(\".be/\") + 4);\r\n        }\r\n        else if (url.indexOf(\"v=\") >= 0)\r\n        {\r\n            // Url in the format of youtube.com/watch?v=####\r\n            videoId = url.substring(url.indexOf(\"v=\") + 2);\r\n        }\r\n        else\r\n        {\r\n            // Maybe the user just entered a video ID\r\n            videoId = url;\r\n        }\r\n\r\n        return \"https://www.youtube.com/embed/\" + videoId;\r\n    }\r\n\r\n    getVimeoEmbedFromUrl(url) {\r\n        if (!url) {\r\n            return \"\";\r\n        }\r\n\r\n        let pattern = /.*\\/([a-zA-Z0-9-_]+)/g;\r\n        let match = pattern.exec(url);\r\n        if (match) {\r\n            return \"https://player.vimeo.com/video/\" + match[1];\r\n        }\r\n        return \"\";\r\n    }\r\n\r\n    getMapsUrl(street, city, state, zip) {\r\n        return \"https://www.google.com/maps/embed/v1/search?key=AIzaSyA3UXOKLzfFQSJUO1sXNupEJZWV4_KkHH8&zoom=9&q=\" + encodeURI(street) + \", \" + encodeURI(city) + \", \" + encodeURI(state) + \" \" + encodeURI(zip);\r\n    }\r\n\r\n    getBaseUrl(inventoryType) {\r\n        switch (inventoryType) {\r\n            case Settings.inventoryTypes.TRAILER:\r\n                return Settings.trailersUrl;\r\n            case Settings.inventoryTypes.CARGO:\r\n                return Settings.cargoUrl;\r\n            case Settings.inventoryTypes.TRUCK:\r\n                return Settings.trucksUrl;\r\n            case Settings.inventoryTypes.PART:\r\n                return Settings.partsUrl;\r\n            default:\r\n                return \"\";\r\n        }\r\n    }\r\n\r\n    compareObjects(o, p)\r\n    {\r\n        var i,\r\n            keysO = Object.keys(o).sort(),\r\n            keysP = Object.keys(p).sort();\r\n        if (keysO.length !== keysP.length)\r\n            return false;//not the same nr of keys\r\n        if (keysO.join('') !== keysP.join(''))\r\n            return false;//different keys\r\n        for (i=0;i<keysO.length;++i)\r\n        {\r\n            if (o[keysO[i]] instanceof Array)\r\n            {\r\n                if (!(p[keysO[i]] instanceof Array))\r\n                    return false;\r\n                //if (compareObjects(o[keysO[i]], p[keysO[i]] === false) return false\r\n                //would work, too, and perhaps is a better fit, still, this is easy, too\r\n                if (p[keysO[i]].sort().join('') !== o[keysO[i]].sort().join(''))\r\n                    return false;\r\n            }\r\n            else if (o[keysO[i]] instanceof Date)\r\n            {\r\n                if (!(p[keysO[i]] instanceof Date))\r\n                    return false;\r\n                if ((''+o[keysO[i]]) !== (''+p[keysO[i]]))\r\n                    return false;\r\n            }\r\n            else if (o[keysO[i]] instanceof Function)\r\n            {\r\n                if (!(p[keysO[i]] instanceof Function))\r\n                    return false;\r\n                //ignore functions, or check them regardless?\r\n            }\r\n            else if (o[keysO[i]] instanceof Object)\r\n            {\r\n                if (!(p[keysO[i]] instanceof Object))\r\n                    return false;\r\n                if (o[keysO[i]] === o)\r\n                {//self reference?\r\n                    if (p[keysO[i]] !== p)\r\n                        return false;\r\n                }\r\n                else if (this.compareObjects(o[keysO[i]], p[keysO[i]]) === false)\r\n                    return false;//WARNING: does not deal with circular refs other than ^^\r\n            }\r\n            if (o[keysO[i]] !== p[keysO[i]])//change !== to != for loose comparison\r\n                return false;//not the same value\r\n        }\r\n        return true;\r\n    }\r\n\r\n    getListingId(url, prefix) {\r\n        let listingIdPart = url.substring(prefix.length);\r\n\r\n        // Find the next trailing slash or end of string\r\n        let nextPathCharacterPosition = listingIdPart.indexOf(\"/\");\r\n        if (nextPathCharacterPosition >= 0) {\r\n            return listingIdPart.substring(0, nextPathCharacterPosition);\r\n        }\r\n        return listingIdPart;\r\n    }\r\n\r\n    getSeoFriendlyName(inputText) {\r\n        inputText = inputText.replace(/[^a-zA-Z0-9]/g, '-'); // Replace non alphanumeric with dash\r\n        inputText = inputText.replace(/-+/g, '-'); // Replace multiple dashes with one\r\n        inputText = this.trimStart(inputText, '-'); // Remove any leading and trailing dashes\r\n        inputText = this.trimEnd(inputText, '-');\r\n        return inputText;\r\n    }\r\n\r\n    trimStart(string, charToRemove) {\r\n        while(string.charAt(0)===charToRemove) {\r\n            string = string.substring(1);\r\n        }\r\n        return string;\r\n    }\r\n\r\n    trimEnd(string, charToRemove) {\r\n        while(string.charAt(string.length-1)===charToRemove) {\r\n            string = string.substring(0,string.length-1);\r\n        }\r\n        return string;\r\n    }\r\n}\r\n\r\nexport default new Helpers()","import React from \"react\";\r\n\r\nconst SvgSourceHorseTrailer = ({\r\n                                   style = {},\r\n                                   fill = '#fff',\r\n                                   width = '100%',\r\n                                   className = '',\r\n                                   height = '100%',\r\n                                   viewBox = '0 0 470 470',\r\n                               }) =>\r\n(\r\n    <svg\r\n        width={width}\r\n        style={style}\r\n        height={width}\r\n        viewBox={viewBox}\r\n        xmlns=\"http://www.w3.org/2000/svg\"\r\n        className={`svg-icon ${className || \"\"}`}\r\n        xmlnsXlink=\"http://www.w3.org/1999/xlink\">\r\n<g>\r\n\t<path fill={fill} d=\"M114.391,298.173c-31.306,0-56.776,25.47-56.776,56.776s25.47,56.776,56.776,56.776s56.776-25.47,56.776-56.776\r\n\t\tS145.697,298.173,114.391,298.173z M72.615,354.948c0-23.035,18.741-41.776,41.776-41.776s41.776,18.741,41.776,41.776\r\n\t\ts-18.741,41.776-41.776,41.776S72.615,377.984,72.615,354.948z\"/>\r\n\t<path fill={fill} d=\"M114.391,328.173c-14.764,0-26.776,12.012-26.776,26.776s12.012,26.775,26.776,26.775s26.776-12.011,26.776-26.775\r\n\t\tS129.155,328.173,114.391,328.173z M114.391,366.724c-6.493,0-11.776-5.282-11.776-11.775s5.283-11.776,11.776-11.776\r\n\t\ts11.776,5.283,11.776,11.776S120.884,366.724,114.391,366.724z\"/>\r\n\t<path fill={fill} d=\"M462.5,303.85h-22.967v-12.5c0-4.142-3.357-7.5-7.5-7.5s-7.5,3.358-7.5,7.5v12.5h-15.468V94.744\r\n\t\tc0-20.109-16.36-36.469-36.47-36.469H36.469C16.36,58.275,0,74.635,0,94.744v240.225c0,4.142,3.358,7.5,7.5,7.5h21.033\r\n\t\tc-0.075,0.521-0.168,1.037-0.234,1.562c-0.519,4.109,2.393,7.861,6.502,8.379c4.104,0.526,7.861-2.393,8.379-6.502\r\n\t\tc4.512-35.765,35.125-62.735,71.21-62.735s66.698,26.97,71.21,62.735c0.478,3.791,3.708,6.563,7.432,6.563\r\n\t\tc0.313,0,0.629-0.02,0.948-0.06c4.11-0.519,7.021-4.27,6.502-8.379c-0.066-0.525-0.159-1.04-0.234-1.562h201.317h22.968v61.755\r\n\t\tc0,4.142,3.357,7.5,7.5,7.5s7.5-3.358,7.5-7.5v-61.755H462.5c4.143,0,7.5-3.358,7.5-7.5V311.35\r\n\t\tC470,307.208,466.642,303.85,462.5,303.85z M114.391,268.173c-37.848,0-70.704,24.554-82.308,59.296H15v-82.53h281.672v12.5\r\n\t\tc0,4.142,3.357,7.499,7.499,7.5c4.144,0,7.501-3.358,7.501-7.5V122.223h82.393v205.246h-82.393l-0.001-40.031\r\n\t\tc0-4.142-3.358-7.5-7.5-7.5c-4.143,0-7.5,3.358-7.5,7.5l0.001,40.031h-99.974C185.094,292.727,152.239,268.173,114.391,268.173z\r\n\t\t M36.469,73.275h336.126c11.839,0,21.47,9.631,21.47,21.469v12.479H15V94.744C15,82.906,24.631,73.275,36.469,73.275z\r\n\t\t M212.782,204.034h83.891v25.905h-83.891V204.034z M197.782,229.94h-83.891v-25.905h83.891V229.94z M296.672,189.034h-83.891\r\n\t\tv-25.906h83.891V189.034z M212.782,148.129v-25.905h83.891v25.905H212.782z M197.782,122.223v25.905h-83.891v-25.905H197.782z\r\n\t\t M197.782,163.129v25.906h-83.891v-25.906H197.782z M98.891,189.034H15v-25.906h83.891V189.034z M98.891,204.034v25.905H15v-25.905\r\n\t\tH98.891z M98.891,122.223v25.905H15v-25.905H98.891z M455,327.469h-45.935v-8.619H455V327.469z\"/>\r\n</g>\r\n</svg>);\r\n\r\n\r\nconst SvgSourceCargoTrailer = ({\r\n                                   style = {},\r\n                                   fill = '#fff',\r\n                                   width = '100%',\r\n                                   className = '',\r\n                                   height = '100%',\r\n                                   viewBox = '0 -96 384 384',\r\n                               }) =>\r\n    (\r\n        <svg\r\n            width={width}\r\n            style={style}\r\n            height={width}\r\n            viewBox={viewBox}\r\n            xmlns=\"http://www.w3.org/2000/svg\"\r\n            className={`svg-icon ${className || \"\"}`}\r\n            xmlnsXlink=\"http://www.w3.org/1999/xlink\">\r\n            <g>\r\n                <path fill={fill} d=\"m368 112h-64v-96c0-8.832031-7.167969-16-16-16h-272c-8.832031 0-16 7.167969-16 16v66.71875c0 12.65625 5.121094 25.035156 14.046875 33.953125l13.28125 13.28125c8.917969 8.925781 21.304687 14.046875 33.953125 14.046875h50.71875c0 26.472656 21.527344 48 48 48s48-21.527344 48-48h112v16c0 8.832031 7.167969 16 16 16s16-7.167969 16-16v-16h16c8.832031 0 16-7.167969 16-16s-7.167969-16-16-16zm-208 48c-8.824219 0-16-7.175781-16-16 0-2.808594.734375-5.503906 2.183594-8.015625 0-.007813.007812-.015625.007812-.015625 2.878906-4.992188 8.039063-7.96875 13.808594-7.96875s10.929688 2.976562 13.808594 7.96875c0 .007812.007812.015625.007812.015625 1.449219 2.519531 2.183594 5.207031 2.183594 8.015625 0 8.824219-7.175781 16-16 16zm35.742188-48c-8.988282-10.039062-21.980469-16-35.742188-16s-26.753906 5.960938-35.742188 16h-20.257812c0-17.648438 14.351562-32 32-32h48c17.648438 0 32 14.351562 32 32zm-11.742188-64h-48c-35.289062 0-64 28.710938-64 64h-10.71875c-4.226562 0-8.359375-1.703125-11.328125-4.671875l-13.28125-13.28125c-2.96875-2.976563-4.671875-7.09375-4.671875-11.328125v-50.71875h240v80h-24c0-35.289062-28.710938-64-64-64zm0 0\"/>\r\n            </g>\r\n        </svg>);\r\n\r\nconst SvgSourceTruck = ({\r\n                                   style = {},\r\n                                   fill = '#fff',\r\n                                   width = '100%',\r\n                                   className = '',\r\n                                   height = '100%',\r\n                                   viewBox = '0 0 512 512',\r\n                               }) =>\r\n    (\r\n        <svg\r\n            width={width}\r\n            style={style}\r\n            height={width}\r\n            viewBox={viewBox}\r\n            xmlns=\"http://www.w3.org/2000/svg\"\r\n            className={`svg-icon ${className || \"\"}`}\r\n            xmlnsXlink=\"http://www.w3.org/1999/xlink\">\r\n            <g>\r\n                <g>\r\n                    <path fill={fill} d=\"M135.758,344.694c-4.142,0-7.5,3.358-7.5,7.5c0,9.125-7.424,16.548-16.549,16.548s-16.548-7.423-16.548-16.548\r\n\t\t\ts7.423-16.548,16.548-16.548c4.142,0,7.5-3.358,7.5-7.5c0-4.142-3.358-7.5-7.5-7.5c-17.396,0-31.548,14.152-31.548,31.548\r\n\t\t\ts14.152,31.548,31.548,31.548c17.396,0,31.549-14.152,31.549-31.548C143.258,348.052,139.9,344.694,135.758,344.694z\"/>\r\n                </g>\r\n            </g>\r\n            <g>\r\n                <g>\r\n                    <path fill={fill} d=\"M448.387,344.694c-4.142,0-7.5,3.358-7.5,7.5c0,9.125-7.423,16.548-16.548,16.548s-16.548-7.423-16.548-16.548\r\n\t\t\ts7.423-16.548,16.548-16.548c4.142,0,7.5-3.358,7.5-7.5c0-4.142-3.358-7.5-7.5-7.5c-17.396,0-31.548,14.152-31.548,31.548\r\n\t\t\ts14.152,31.548,31.548,31.548s31.548-14.152,31.548-31.548C455.887,348.052,452.529,344.694,448.387,344.694z\"/>\r\n                </g>\r\n            </g>\r\n            <g>\r\n                <g>\r\n                    <path fill={fill} d=\"M492.336,214.306l-78.568-13.095l-34.622-90.017h5.112c4.142,0,7.5-3.358,7.5-7.5c0-4.142-3.358-7.5-7.5-7.5H272.032\r\n\t\t\tc-12.976,0-23.532,10.557-23.532,23.532v88.694H7.5c-4.142,0-7.5,3.358-7.5,7.5v112.226c0,12.976,10.557,23.532,23.532,23.532\r\n\t\t\tH48.11c-0.001,0.173-0.013,0.343-0.013,0.516c0,35.077,28.537,63.613,63.613,63.613c35.077,0,63.613-28.537,63.613-63.613\r\n\t\t\tc0-0.173-0.012-0.343-0.013-0.516h185.429c-0.001,0.173-0.013,0.343-0.013,0.516c0,35.077,28.537,63.613,63.613,63.613\r\n\t\t\tc35.076,0,63.613-28.537,63.613-63.613c0-0.173-0.012-0.343-0.013-0.516h8.545c8.556,0,15.516-6.96,15.516-15.516v-98.645\r\n\t\t\tC512,225.967,503.73,216.205,492.336,214.306z M397.386,200.404h-85.274c-4.705,0-8.532-3.828-8.532-8.532v-48.613h71.827\r\n\t\t\tL397.386,200.404z M111.709,400.808c-26.805,0-48.613-21.808-48.613-48.613s21.808-48.613,48.613-48.613\r\n\t\t\tc26.806,0,48.613,21.808,48.613,48.613C160.323,379,138.515,400.808,111.709,400.808z M424.339,400.808\r\n\t\t\tc-26.806,0-48.613-21.808-48.613-48.613s21.808-48.613,48.613-48.613s48.613,21.808,48.613,48.613\r\n\t\t\tS451.144,400.808,424.339,400.808z M497,336.162c0,0.285-0.231,0.516-0.516,0.516H486.03c-6.945-27.6-31.966-48.097-61.691-48.097\r\n\t\t\tc-29.725,0-54.746,20.497-61.691,48.097H173.401c-6.945-27.6-31.966-48.097-61.691-48.097c-29.725,0-54.746,20.497-61.691,48.097\r\n\t\t\tH23.532c-4.705,0-8.532-3.828-8.532-8.532V223.42h233.5v88.693c0,4.142,3.358,7.5,7.5,7.5c4.142,0,7.5-3.358,7.5-7.5V119.727\r\n\t\t\tc0-4.705,3.828-8.532,8.532-8.532h91.042l6.563,17.065h-73.558c-4.142,0-7.5,3.358-7.5,7.5v56.113\r\n\t\t\tc0,12.976,10.557,23.532,23.532,23.532h95.573l82.185,13.697c4.131,0.688,7.129,4.228,7.129,8.416v2.967h-24.564\r\n\t\t\tc-4.142,0-7.5,3.358-7.5,7.5v24.048c0,12.976,10.557,23.532,23.532,23.532H497V336.162z M497,280.565h-8.532\r\n\t\t\tc-4.705,0-8.532-3.828-8.532-8.532v-16.548H497V280.565z\"/>\r\n                </g>\r\n            </g>\r\n            <g>\r\n                <g>\r\n                    <path fill={fill} d=\"M392.274,240.485h-96.193c-4.142,0-7.5,3.358-7.5,7.5c0,4.142,3.358,7.5,7.5,7.5h96.193c4.142,0,7.5-3.358,7.5-7.5\r\n\t\t\tC399.774,243.843,396.416,240.485,392.274,240.485z\"/>\r\n                </g>\r\n            </g>\r\n            <g>\r\n                <g>\r\n                    <path fill={fill} d=\"M440.371,240.485h-16.032c-4.142,0-7.5,3.358-7.5,7.5c0,4.142,3.358,7.5,7.5,7.5h16.032c4.142,0,7.5-3.358,7.5-7.5\r\n\t\t\tC447.871,243.843,444.513,240.485,440.371,240.485z\"/>\r\n                </g>\r\n            </g>\r\n            <g>\r\n                <g>\r\n                    <path fill={fill} d=\"M223.936,240.485H39.564c-4.142,0-7.5,3.358-7.5,7.5c0,4.142,3.358,7.5,7.5,7.5h184.371c4.142,0,7.5-3.358,7.5-7.5\r\n\t\t\tC231.435,243.843,228.078,240.485,223.936,240.485z\"/>\r\n                </g>\r\n            </g>\r\n        </svg>);\r\n\r\nconst SvgSourcePart = ({\r\n                            style = {},\r\n                            fill = '#fff',\r\n                            width = '100%',\r\n                            className = '',\r\n                            height = '100%',\r\n                            viewBox = '0 0 384 384',\r\n                        }) =>\r\n    (\r\n        <svg\r\n            width={width}\r\n            style={style}\r\n            height={width}\r\n            viewBox={viewBox}\r\n            xmlns=\"http://www.w3.org/2000/svg\"\r\n            className={`svg-icon ${className || \"\"}`}\r\n            xmlnsXlink=\"http://www.w3.org/1999/xlink\">\r\n            <path fill={fill} d=\"m13.734375 239.839844 44.816406 6.398437c.242188.59375.488281 1.175781.738281 1.769531l-27.136718 36.25c-4.769532 6.367188-4.136719 15.277344 1.496094 20.902344l45.199218 45.199219c5.625 5.625 14.519532 6.257813 20.90625 1.496094l36.246094-27.144531c.585938.25 1.175781.496093 1.769531.738281l6.398438 44.816406c1.121093 7.878906 7.871093 13.734375 15.832031 13.734375h64c7.960938 0 14.710938-5.855469 15.839844-13.734375l6.398437-44.816406c.59375-.242188 1.175781-.488281 1.769531-.738281l36.25 27.136718c6.367188 4.777344 15.277344 4.144532 20.902344-1.496094l45.199219-45.199218c5.632813-5.625 6.265625-14.527344 1.496094-20.90625l-27.144531-36.246094c.25-.585938.496093-1.175781.738281-1.769531l44.816406-6.398438c7.878906-1.121093 13.734375-7.871093 13.734375-15.832031v-64c0-7.960938-5.855469-14.710938-13.734375-15.839844l-44.824219-6.398437c-.242187-.59375-.480468-1.175781-.730468-1.761719l27.136718-36.246094c4.769532-6.371094 4.136719-15.28125-1.496094-20.90625l-45.199218-45.199218c-5.632813-5.632813-14.535156-6.273438-20.90625-1.496094l-36.246094 27.136718c-.585938-.25-1.175781-.496093-1.769531-.738281l-6.398438-44.816406c-1.121093-7.878906-7.871093-13.734375-15.832031-13.734375h-64c-7.960938 0-14.710938 5.855469-15.839844 13.734375l-6.398437 44.816406c-.59375.242188-1.175781.488281-1.769531.738281l-36.25-27.136718c-6.367188-4.769532-15.269532-4.128906-20.902344 1.496094l-45.199219 45.199218c-5.632813 5.625-6.265625 14.527344-1.496094 20.90625l27.144531 36.246094c-.25.585938-.496093 1.167969-.730468 1.761719l-44.824219 6.398437c-7.878906 1.128906-13.734375 7.878906-13.734375 15.839844v64c0 7.960938 5.855469 14.710938 13.734375 15.839844zm18.265625-65.96875 40.585938-5.800782c6.085937-.871093 11.132812-5.148437 12.988281-11.007812 1.664062-5.246094 3.851562-10.519531 6.496093-15.671875 2.800782-5.4375 2.25-12-1.421874-16.902344l-24.570313-32.816406 25.59375-25.59375 32.816406 24.570313c4.910157 3.664062 11.472657 4.214843 16.902344 1.421874 5.160156-2.644531 10.433594-4.832031 15.679687-6.496093 5.859376-1.855469 10.144532-6.902344 11.007813-12.988281l5.800781-40.585938h36.242188l5.800781 40.585938c.871094 6.085937 5.148437 11.132812 11.007813 12.988281 5.246093 1.664062 10.519531 3.851562 15.679687 6.496093 5.429687 2.800782 12 2.25 16.902344-1.421874l32.816406-24.570313 25.59375 25.59375-24.570313 32.816406c-3.664062 4.894531-4.214843 11.464844-1.421874 16.902344 2.644531 5.160156 4.832031 10.433594 6.496093 15.671875 1.855469 5.867188 6.902344 10.144531 12.988281 11.007812l40.585938 5.800782v36.25l-40.585938 5.800781c-6.085937.871094-11.132812 5.148437-12.988281 11.007813-1.664062 5.246093-3.851562 10.519531-6.496093 15.679687-2.800782 5.4375-2.25 12 1.421874 16.902344l24.570313 32.816406-25.59375 25.59375-32.816406-24.570313c-4.902344-3.664062-11.472657-4.222656-16.902344-1.421874-5.160156 2.644531-10.433594 4.832031-15.679687 6.496093-5.859376 1.855469-10.144532 6.902344-11.007813 12.988281l-5.800781 40.585938h-36.242188l-5.800781-40.585938c-.871094-6.085937-5.148437-11.132812-11.007813-12.988281-5.246093-1.664062-10.519531-3.851562-15.679687-6.496093-5.429687-2.800782-11.992187-2.25-16.902344 1.421874l-32.816406 24.570313-25.59375-25.59375 24.570313-32.816406c3.664062-4.894531 4.214843-11.464844 1.421874-16.902344-2.644531-5.160156-4.832031-10.433594-6.496093-15.679687-1.855469-5.859376-6.902344-10.144532-12.988281-11.007813l-40.585938-5.800781zm0 0\"/>\r\n            <path fill={fill} d=\"m192 272c44.113281 0 80-35.886719 80-80s-35.886719-80-80-80-80 35.886719-80 80 35.886719 80 80 80zm0-128c26.472656 0 48 21.527344 48 48s-21.527344 48-48 48-48-21.527344-48-48 21.527344-48 48-48zm0 0\"/>\r\n        </svg>);\r\n\r\nconst SvgSourceInventory = ({\r\n                           style = {},\r\n                           fill = '#fff',\r\n                           width = '100%',\r\n                           className = '',\r\n                           height = '100%',\r\n                           viewBox = '0 0 452.358 452.358',\r\n                       }) =>\r\n    (\r\n        <svg\r\n            width={width}\r\n            style={style}\r\n            height={width}\r\n            viewBox={viewBox}\r\n            xmlns=\"http://www.w3.org/2000/svg\"\r\n            className={`svg-icon ${className || \"\"}`}\r\n            xmlnsXlink=\"http://www.w3.org/1999/xlink\">\r\n            <path fill={fill} d=\"m393.225,175.656l-20.071-109.726c-1.086-5.938-6.26-10.251-12.296-10.251h-154c-5.736,0-10.736,3.904-12.127,9.468l-23.633,94.532h-51.74v-91.5c0-6.904-5.597-12.5-12.5-12.5s-12.5,5.596-12.5,12.5v91.5h-68.86c-3.767,0-7.333,1.699-9.707,4.624-2.374,2.925-3.301,6.765-2.525,10.451l16.342,77.628c-18.073,14.961-29.608,37.557-29.608,62.797 0,44.939 36.561,81.5 81.5,81.5s81.5-36.561 81.5-81.5c0-1.511-0.049-3.01-0.13-4.501h57.02c14.162,49.591 59.893,86.001 113.969,86.001 65.341,0 118.5-53.159 118.5-118.5-0.001-43.723-23.807-81.987-59.134-102.523zm-28.337-15.977h-53.53v-79h39.079l14.451,79zm-148.27-79h69.74v79h-89.49l19.75-79zm-135.118,291c-31.154,0-56.5-25.346-56.5-56.5s25.346-56.5 56.5-56.5 56.5,25.346 56.5,56.5-25.346,56.5-56.5,56.5zm75.951-86.001c-11.848-30.395-41.414-51.999-75.951-51.999-10.267,0-20.087,1.927-29.143,5.407l-11.454-54.407h220.238c-27.843,21.703-45.784,55.544-45.784,93.5 0,2.519 0.088,5.018 0.244,7.499h-58.15zm176.407,86.001c-51.556,0-93.5-41.944-93.5-93.5s41.944-93.5 93.5-93.5 93.5,41.944 93.5,93.5-41.944,93.5-93.5,93.5z\"/>\r\n            <path fill={fill} d=\"m333.858,214.789c-34.953,0-63.39,28.437-63.39,63.39s28.437,63.39 63.39,63.39 63.39-28.437 63.39-63.39-28.437-63.39-63.39-63.39zm0,101.78c-21.168,0-38.39-17.221-38.39-38.39s17.222-38.39 38.39-38.39 38.39,17.221 38.39,38.39-17.222,38.39-38.39,38.39z\"/>\r\n            <path fill={fill} d=\"m81.5,280.714c-19.004,0-34.465,15.461-34.465,34.465s15.461,34.465 34.465,34.465c19.004,0 34.465-15.461 34.465-34.465s-15.461-34.465-34.465-34.465zm0,43.93c-5.219,0-9.465-4.246-9.465-9.465s4.246-9.465 9.465-9.465c5.219,0 9.465,4.246 9.465,9.465s-4.246,9.465-9.465,9.465z\"/>\r\n        </svg>);\r\n\r\nexport { SvgSourceHorseTrailer, SvgSourceCargoTrailer, SvgSourceTruck, SvgSourcePart, SvgSourceInventory }","import React, {Component} from 'react';\r\nimport Button from '@material-ui/core/Button';\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport { SvgSourceHorseTrailer, SvgSourceCargoTrailer, SvgSourceTruck, SvgSourcePart, SvgSourceInventory } from \"../Utils/Icons.js\";\r\nimport { Link } from \"react-router-dom\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport {Settings} from '../Utils/Settings.js';\r\n\r\nconst styles = theme => ({\r\n    buttonSelector: {\r\n        margin: \"5px auto\",\r\n        display: \"block\"\r\n    },\r\n    svgIcon: {\r\n        verticalAlign: \"middle\",\r\n        marginRight: \"10px\"\r\n    }\r\n});\r\n\r\nclass PrimaryInventorySelector extends Component {\r\n    render() {\r\n        const classes = this.props.classes;\r\n        return (\r\n            <Grid container spacing={24}>\r\n                {Settings.showTrailers &&\r\n                <Grid key=\"trailers\" item sm={6} xs={12}>\r\n                    <Link style={{textDecoration: \"none\", color: \"#FFF\"}} to=\"/search/horse-trailers\">\r\n                        <Button style={{width: \"250px\"}} className={classes.buttonSelector} variant=\"contained\" size=\"large\" color=\"primary\">\r\n                            <SvgSourceHorseTrailer height={32} width={32} className={classes.svgIcon}/> Horse Trailers\r\n                        </Button>\r\n                    </Link>\r\n                </Grid>}\r\n                {Settings.showCargo &&\r\n                <Grid key=\"cargo\" item sm={6} xs={12}>\r\n                    <Link style={{textDecoration: \"none\", color: \"#FFF\"}} to=\"/search/cargo-trailers\">\r\n                        <Button style={{width: \"250px\"}} className={classes.buttonSelector} variant=\"contained\" size=\"large\" color=\"primary\">\r\n                            <SvgSourceCargoTrailer height={32} width={32} className={classes.svgIcon}/> Cargo Trailers\r\n                        </Button>\r\n                    </Link>\r\n                </Grid>}\r\n                {Settings.showTrucks &&\r\n                <Grid key=\"trucks\" item sm={6} xs={12}>\r\n                    <Link style={{textDecoration: \"none\", color: \"#FFF\"}} to=\"/search/trucks\">\r\n                        <Button style={{width: \"250px\"}} className={classes.buttonSelector} variant=\"contained\" size=\"large\" color=\"primary\">\r\n                            <SvgSourceTruck height={32} width={32} className={classes.svgIcon}/> Trucks\r\n                        </Button>\r\n                    </Link>\r\n                </Grid>}\r\n\r\n                {Settings.showParts &&\r\n                <Grid key=\"parts\"  sm={6} xs={12}>\r\n                    <Link style={{textDecoration: \"none\", color: \"#FFF\"}} to=\"/search/parts\">\r\n                        <Button style={{width: \"250px\"}} className={classes.buttonSelector} variant=\"contained\" size=\"large\" color=\"primary\">\r\n                            <SvgSourcePart height={24} width={24} className={classes.svgIcon}/> Parts\r\n                        </Button>\r\n                    </Link>\r\n                </Grid>}\r\n\r\n                {Settings.showInventory &&\r\n                <Grid key=\"inventory\" item sm={6} xs={12}>\r\n                    <Link style={{textDecoration: \"none\", color: \"#FFF\"}} to=\"/inventory\">\r\n                        <Button style={{width: \"250px\"}} className={classes.buttonSelector} variant=\"contained\" size=\"large\" color=\"primary\">\r\n                            <SvgSourceInventory height={24} width={24} className={classes.svgIcon}/> Inventory\r\n                        </Button>\r\n                    </Link>\r\n                </Grid>}\r\n            </Grid>);\r\n    }\r\n}\r\n\r\nexport default withStyles(styles)(PrimaryInventorySelector);\r\n\r\n","import React, {Component} from 'react';\r\nimport Button from '@material-ui/core/Button';\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport { Link } from \"react-router-dom\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nconst styles = theme => ({\r\n    buttonSelector: {\r\n        margin: \"5px auto\",\r\n        display: \"block\"\r\n    }\r\n});\r\n\r\nclass PrimaryInventorySelector extends Component {\r\n    render() {\r\n        const { classes, inventoryCategories}= this.props;\r\n        if (!inventoryCategories) {\r\n            return \"\";\r\n        }\r\n        return (\r\n            <Grid container spacing={24}>\r\n                {inventoryCategories.map((category) => {\r\n                    return(\r\n                    <Grid key={category.listingCategoryId} item sm={6} xs={12}>\r\n                        <Link style={{textDecoration: \"none\", color: \"#FFF\"}} to={\"/inventory/\" + category.listingCategoryId}>\r\n                            <Button style={{width: \"250px\"}} className={classes.buttonSelector} variant=\"contained\" size=\"large\" color=\"primary\">\r\n                                {category.name}\r\n                            </Button>\r\n                        </Link>\r\n                    </Grid>)\r\n                    })\r\n                }\r\n            </Grid>);\r\n    }\r\n}\r\n\r\nexport default withStyles(styles)(PrimaryInventorySelector);\r\n\r\n","import React from \"react\";\r\nimport TextField from '@material-ui/core/TextField';\r\nimport Select from '@material-ui/core/Select';\r\nimport MenuItem from '@material-ui/core/MenuItem';\r\nimport ListItemText from '@material-ui/core/ListItemText';\r\nimport InputLabel from '@material-ui/core/InputLabel';\r\nimport FormControl from '@material-ui/core/FormControl';\r\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\r\nimport Checkbox from '@material-ui/core/Checkbox';\r\n\r\nclass SearchField extends React.Component {\r\n\r\n    render() {\r\n        const {field, classes, handleSearchFieldChange} = this.props;\r\n\r\n        if (field.fieldType === \"sortonly\") {\r\n            return (null);\r\n        }\r\n        if (field.fieldType === \"checkbox\") {\r\n            return (\r\n                <FormControlLabel\r\n                    control={\r\n                        <Checkbox\r\n                            checked={field.selectedValue.length > 0}\r\n                            value={field.searchValue}\r\n                            color=\"primary\"\r\n                            onChange={(e) => handleSearchFieldChange(field.filterId, e.target.checked ? e.target.value : \"\")}\r\n                        />\r\n                    }\r\n                    labelPlacement=\"end\"\r\n                    label={field.label}\r\n                />);\r\n        }\r\n\r\n        if (field.fieldType === \"textbox\") {\r\n            return (\r\n                <TextField\r\n                    className={classes.formControl}\r\n                    id=\"standard-name\"\r\n                    label={field.label}\r\n                    name={field.filterId}\r\n                    value={field.selectedValue}\r\n                    onChange={(e) => handleSearchFieldChange(field.filterId, e.target.value)}\r\n                    margin=\"none\"/>);\r\n        }\r\n        if (field.fieldType === \"select\") {\r\n            return (\r\n                <FormControl className={classes.formControl} margin=\"none\">\r\n                    <InputLabel>{field.label}</InputLabel>\r\n                    <Select id=\"standard-name\"\r\n                            value={field.selectedValue}\r\n                            onChange={(e) => handleSearchFieldChange(field.filterId, e.target.value)}\r\n                            name={field.filterId}\r\n                            margin=\"none\">\r\n                        {\r\n                            field.searchValues.map((element, index) => {\r\n                                return (\r\n                                    <MenuItem disabled={element.disabled} key={\"mu-\" + index}\r\n                                              value={element.value}>{element.label}</MenuItem>\r\n                                );\r\n                            })\r\n                        }\r\n                    </Select>\r\n                </FormControl>);\r\n        }\r\n\r\n        if (field.fieldType === \"multiselect\") {\r\n            return (\r\n                <FormControl className={classes.formControl} margin=\"none\">\r\n                    <InputLabel>{field.label}</InputLabel>\r\n                    <Select id=\"standard-name\"\r\n                            multiple={true}\r\n                            value={field.selectedValues}\r\n                            onChange={(e) => handleSearchFieldChange(field.filterId, e.target.value)}\r\n                            name={field.filterId}\r\n                            renderValue={selected => {\r\n                                return (field.searchValues.filter(filter => field.selectedValues.indexOf(filter.value) >= 0)\r\n                                    .map((element) => {\r\n                                        return element.label;\r\n                                    })).join(\", \");\r\n\r\n                            }\r\n                            }\r\n                            margin=\"none\">\r\n                        {\r\n                            field.searchValues.map((element, index) => {\r\n                                if (element.disabled) {\r\n                                    return (\r\n                                        <MenuItem disabled={element.disabled} key={\"mu-\" + index}\r\n                                                  value={element.value}>{element.label}</MenuItem>\r\n                                    );\r\n                                }\r\n\r\n                                return (\r\n                                    <MenuItem key={\"mu-\" + index} value={element.value}>\r\n                                        <Checkbox checked={field.selectedValues.indexOf(element.value) > -1}/>\r\n                                        <ListItemText primary={element.label}/>\r\n                                    </MenuItem>\r\n                                )\r\n                            })\r\n                        }\r\n                    </Select>\r\n                </FormControl>);\r\n        }\r\n        return (<React.Fragment>Undefined field type {field.fieldType}</React.Fragment>);\r\n    }\r\n}\r\n\r\nexport default SearchField;","import React, {Component} from 'react';\r\nimport {withStyles} from '@material-ui/core/styles';\r\nimport Typography from '@material-ui/core/Typography';\r\nimport Paper from '@material-ui/core/Paper';\r\nimport Grid from '@material-ui/core/Grid';\r\nimport Button from '@material-ui/core/Button';\r\nimport SearchField from \"./SearchField.js\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\n\r\nconst styles = theme => ({\r\n    formControl: {\r\n        width: \"100%\",\r\n    }\r\n});\r\n\r\nclass SearchFields extends Component {\r\n\r\n    onFormSubmit = e => {\r\n        // Prevent the form from actually submitting\r\n        e.preventDefault();\r\n        this.props.handleSearch(1);\r\n    }\r\n\r\n    render() {\r\n\r\n        const {classes,\r\n            handleSearch,\r\n            handleSearchFieldChange,\r\n            handleSortFieldChange,\r\n            searchFields,\r\n            searchFieldsError\r\n        } = this.props;\r\n\r\n        let errorMessage = (searchFieldsError) ?\r\n            <Typography variant='body2' align='center'>Error: {searchFieldsError.message}</Typography> :\r\n            null;\r\n\r\n        let sortFields = searchFields.fields.some(x => x.sortable) ?\r\n            <Grid item xs={12}>\r\n                <Typography variant='body1'>\r\n                    Sort by:<br/>\r\n                    {\r\n                        searchFields.fields.filter(x => x.sortable && !x.hideField).map((element, index) => {\r\n                            let buttonStyle = (element.isBeingSorted) ? \"primary\" : \"default\";\r\n                            return (\r\n                                <Button key={index} style={{margin: \"5px\"}} onClick={() => {\r\n                                    handleSortFieldChange(element.filterId)\r\n                                }} variant=\"contained\" size=\"small\"\r\n                                        color={buttonStyle}>{element.label}</Button>\r\n                            )\r\n                        })\r\n                    }\r\n                </Typography>\r\n            </Grid> :\r\n            null;\r\n\r\n        if (searchFields.fields) {\r\n            return (\r\n                <Paper style={{padding: \"10px\"}}>\r\n                    {errorMessage}\r\n                    <form onSubmit={this.onFormSubmit}>\r\n                    <Typography variant='h5' align='center'>{searchFields.categoryName}</Typography>\r\n                    <Grid container spacing={24}>\r\n                        {\r\n                            searchFields.fields.filter(x => (!x.hideField && x.fieldType != \"sortonly\")).map((element, index) => {\r\n                                return (\r\n                                    <Grid key={index} item md={3} sm={4} xs={12}>\r\n                                        <SearchField classes={classes} field={element}\r\n                                                     handleSearchFieldChange={handleSearchFieldChange}></SearchField>\r\n                                    </Grid>\r\n                                );\r\n                            })\r\n                        }\r\n                        <Grid item md={3} sm={4} xs={12}>\r\n                            <Button type={\"submit\"} variant=\"contained\" size=\"large\" color=\"primary\">Search</Button>\r\n                        </Grid>\r\n                        {sortFields}\r\n                    </Grid>\r\n                    </form>\r\n                </Paper>);\r\n        }\r\n        return (\"\");\r\n    }\r\n}\r\n\r\nexport default withStyles(styles)(SearchFields);\r\n\r\n","import React from \"react\";\r\nimport {Settings} from \"../Utils/Settings\";\r\n\r\nfunction SearchResultThumbnail(props) {\r\n    let {image, caption} = props;\r\n    if (image.length === 0) {\r\n        image = Settings.subFolder + \"Content/NoPhotoYet.jpg\";\r\n    }\r\n    return <img src={image} alt={caption} style={{maxWidth: \"100%\", display: \"block\", maxHeight: \"200px\", borderRadius: \".25rem\", width: \"200px\", margin: \"0 auto\"}} />\r\n}\r\n\r\nexport default SearchResultThumbnail;","import React from \"react\";\r\nimport {withStyles} from '@material-ui/core/styles';\r\n\r\nconst styles = theme => ({\r\n    newButton: {\r\n        background: \"linear-gradient( center top, #79bbff 5%, #4197ee 100% )\",\r\n        backgroundColor: \"#79bbff\",\r\n        borderRadius: \"2px\",\r\n        border: \"1px solid #469df5\",\r\n        display: \"inline-block\",\r\n        color: \"#ffffff\",\r\n        fontFamily: \"Arial\",\r\n        fontSize: \"11px\",\r\n        fontWeight: \"bold\",\r\n        fontStyle: \"normal\",\r\n        height: \"16px\",\r\n        lineHeight: \"14px\",\r\n        width: \"76px\",\r\n        textDecoration: \"none\",\r\n        textAlign: \"center\",\r\n    },\r\n\r\n    soldButton: {\r\n        background: \"linear-gradient( center top, #ffc477 5%, #fb9e25 100% )\",\r\n        backgroundColor: \"#ffc477\",\r\n        borderRadius: \"2px\",\r\n        border: \"1px solid #eeb44f\",\r\n        display: \"inline-block\",\r\n        color: \"#ffffff\",\r\n        fontFamily: \"Arial\",\r\n        fontSize: \"11px\",\r\n        fontWeight: \"bold\",\r\n        fontStyle: \"normal\",\r\n        height: \"16px\",\r\n        lineHeight: \"14px\",\r\n        width: \"60px\",\r\n        textDecoration: \"none\",\r\n        textAlign: \"center\",\r\n    },\r\n\r\n    reducedButton: {\r\n        background: \"linear-gradient( center top, #9dce2c 5%, #8cb82b 100% )\",\r\n        backgroundColor: \"#9dce2c\",\r\n        borderRadius: \"2px\",\r\n        border: \"1px solid #83c41a\",\r\n        display: \"inline-block\",\r\n        color: \"#ffffff\",\r\n        fontFamily: \"Arial\",\r\n        fontSize: \"11px\",\r\n        fontWeight: \"bold\",\r\n        fontStyle: \"normal\",\r\n        height: \"16px\",\r\n        lineHeight: \"14px\",\r\n        width: \"72px\",\r\n        textDecoration: \"none\",\r\n        textAlign: \"center\",\r\n    }\r\n});\r\n\r\nfunction ReducedButton(elementProps) {\r\n    const {classes} = elementProps;\r\n    return <div className={classes.reducedButton}>Reduced!</div>\r\n}\r\n\r\nfunction NewButton(elementProps) {\r\n    const {classes} = elementProps;\r\n    return <div className={classes.newButton}>New listing</div>\r\n}\r\n\r\nfunction SoldButton(elementProps) {\r\n    const {classes} = elementProps;\r\n    return <div className={classes.soldButton}>Sold</div>\r\n}\r\n\r\nconst reducedButton = withStyles(styles)(ReducedButton);\r\nconst newButton = withStyles(styles)(NewButton);\r\nconst soldButton = withStyles(styles)(SoldButton);\r\nexport { reducedButton as ReducedButton, newButton as NewButton, soldButton as SoldButton };\r\n","import React from \"react\";\r\nimport Helpers from \"../Utils/Helpers.js\";\r\nimport {withStyles} from '@material-ui/core/styles';\r\nimport Typography from \"@material-ui/core/es/Typography/Typography\";\r\nimport {NewButton, SoldButton, ReducedButton} from \"./Buttons.js\";\r\nimport moment from 'moment';\r\n\r\nconst styles = theme => ({\r\n    root: {\r\n        color: \"#0c5460\",\r\n        backgroundColor: \"#d1ecf1\",\r\n        borderColor: \"#bee5eb\",\r\n        marginBottom: \"1rem\",\r\n        border: \"1px solid transparent\",\r\n        borderRadius: \".25rem\",\r\n        padding: \".75rem 1.25rem\"\r\n    }\r\n});\r\n\r\nfunction SearchResultHighlight(elementProps) {\r\n\r\n    const {classes, element} = elementProps;\r\n\r\n    let price = null;\r\n    if (element.salePrice > 0 && element.salePrice !== element.price) {\r\n        price =\r\n            <Typography variant='h5'>\r\n                <strike>${Helpers.formatMoney(element.price)}</strike> ${Helpers.formatMoney(element.salePrice)}<br/>\r\n            </Typography>\r\n    } else if (element.price > 0) {\r\n        price = <Typography variant='h5'>${Helpers.formatMoney(element.price)}<br/></Typography>\r\n    } else {\r\n        price = null;\r\n    }\r\n\r\n    let extraFeatures = element.extraFields.filter(entry => entry.showOnResults && entry.value.length > 0).map((extraField, index) => {\r\n        return <React.Fragment key={extraField.name}><strong>{extraField.name}</strong> {extraField.value}<br /></React.Fragment>;\r\n    });\r\n\r\n    let nowDate = moment();\r\n    let newButton = nowDate.diff(element.dateStarted, 'days') < 7 ?\r\n        <React.Fragment><NewButton /><br/></React.Fragment> :\r\n        null;\r\n\r\n    let reducedButton = element.isReduced ?\r\n        <React.Fragment><ReducedButton/><br/></React.Fragment> :\r\n        null;\r\n\r\n    let soldButton = element.isSold ?\r\n        <React.Fragment><SoldButton/><br/></React.Fragment> :\r\n        null;\r\n\r\n        let distance = null;\r\n        if (element.distance > 0) {\r\n            distance = <React.Fragment>{element.distance.toFixed(2)} miles away<br/></React.Fragment>\r\n        }\r\n\r\n\r\n\r\n    if (element.price === 0 &&\r\n        element.salePrice === 0 &&\r\n        element.distance === 0 &&\r\n        (element.extraFields.length === 0 || !element.extraFields.some(x=>x.value)) &&\r\n        soldButton === null &&\r\n        reducedButton === null &&\r\n        newButton === null\r\n    ) {\r\n        return \"\";\r\n    }\r\n\r\n\r\n        return (\r\n        <div className={classes.root}>\r\n            {price}\r\n            <Typography key={1} variant=\"body1\">{extraFeatures}</Typography>\r\n            {newButton}{reducedButton}{soldButton}\r\n            <Typography key={2} variant=\"body1\">{distance}</Typography>\r\n        </div>\r\n    )\r\n}\r\n\r\nexport default withStyles(styles)(SearchResultHighlight);","import React from \"react\";\r\nimport Grid from '@material-ui/core/Grid';\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport Helpers from \"../Utils/Helpers.js\";\r\nimport Hidden from '@material-ui/core/Hidden';\r\nimport {Settings} from '../Utils/Settings.js';\r\nimport { Link } from \"react-router-dom\";\r\n\r\nimport SearchResultThumbnail from './SearchResultThumbnail.js';\r\nimport SearchResultsHighlight from './SearchResultHighlight.js';\r\n\r\nfunction SearchResultRow(elementProps) {\r\n\r\n    const {element, index, inventoryType, classes} = elementProps;\r\n\r\n    let description = element.description.replace(/<[^>]*>/g, \"\");\r\n    let descriptionTrimmed = Helpers.trimAtNextWhitespace(description, 300);\r\n    let basePath = \"\";\r\n    if (inventoryType === Settings.inventoryTypes.TRAILER) {\r\n        basePath = \"/trailer\"\r\n    } else if (inventoryType === Settings.inventoryTypes.CARGO) {\r\n        basePath = \"/cargo\"\r\n    } else if (inventoryType === Settings.inventoryTypes.PART) {\r\n        basePath = \"/part\"\r\n    } else if (inventoryType === Settings.inventoryTypes.TRUCK) {\r\n        basePath = \"/truck\"\r\n    } else if (inventoryType === Settings.inventoryTypes.INVENTORY) {\r\n        basePath = \"/listing\"\r\n    }\r\n\r\n    return(\r\n        <React.Fragment>\r\n            <Grid key={index+\"col1\"} item xl={2} lg={3} md={3} sm={4} xs={12}>\r\n                <Link to={basePath + \"/details/\" + element.id + \"/\" + Helpers.getSeoFriendlyName(element.title)}><SearchResultThumbnail image={element.thumbnail} caption={element.caption} /></Link>\r\n            </Grid>\r\n            <Grid key={index+\"col2\"} item xl={7} lg={6} md={6} sm={4} xs={12}>\r\n                <Link className={classes.resultLink} to={basePath + \"/details/\" + element.id + \"/\" + Helpers.getSeoFriendlyName(element.title)}><Typography variant='h5'>{element.title}</Typography></Link>\r\n                <Typography variant='body1' dangerouslySetInnerHTML={{__html: descriptionTrimmed}}></Typography>\r\n            </Grid>\r\n            <Grid key={index+\"col3\"} item xl={3} lg={3} md={3} sm={4} xs={12}>\r\n                <SearchResultsHighlight key={index+\"col4\"} element={element}></SearchResultsHighlight>\r\n                <Hidden smUp><hr/></Hidden>\r\n            </Grid>\r\n        </React.Fragment>\r\n    )\r\n}\r\n\r\nexport default (SearchResultRow);","import React, {Component} from 'react';\r\nimport Typography from '@material-ui/core/Typography';\r\nimport Paper from '@material-ui/core/Paper';\r\nimport Grid from '@material-ui/core/Grid';\r\nimport SearchResultRow from './SearchResultRow.js';\r\nimport Button from '@material-ui/core/Button';\r\nimport {withStyles} from \"@material-ui/core\";\r\n\r\nconst styles = theme => ({\r\n    resultLink: {\r\n        textDecoration: \"none\",\r\n        \"&:hover\": {\r\n            textDecoration: \"underline\"\r\n        }\r\n    }\r\n});\r\n\r\nclass SearchResults extends Component {\r\n\r\n    render() {\r\n\r\n        const {searchResults,\r\n            inventoryType,\r\n            searchResultsTotalRecords,\r\n            searchResultsTotalPages,\r\n            searchResultsCurrentPage,\r\n            handleSearch,\r\n            handleDetailsSelection,\r\n            searchResultsError,\r\n            classes\r\n        } = this.props;\r\n\r\n        if (searchResultsError) {\r\n            return <Typography variant='h3' align='center'>Error: {searchResultsError.message}</Typography>\r\n        }\r\n\r\n        if (searchResults == null) {\r\n            return \"\";\r\n        }\r\n\r\n        if (searchResults.length === 0) {\r\n            return (<Paper style={{padding: \"10px\", marginTop: \"10px\"}}><Typography variant='h5' align='center'>No results found</Typography></Paper>);\r\n        } else {\r\n            let backButton = <Button disabled={searchResultsCurrentPage <= 1} onClick={()=>{handleSearch(searchResultsCurrentPage-1)}} variant=\"contained\" size=\"small\" color=\"primary\">Back</Button>;\r\n            let forwardButton = <Button disabled={(searchResultsCurrentPage >= searchResultsTotalPages)} onClick={()=>{handleSearch(searchResultsCurrentPage+1)}} variant=\"contained\" size=\"small\" color=\"primary\">Next</Button>;\r\n\r\n            return (\r\n                <Paper style={{padding: \"10px\", marginTop: \"10px\"}}>\r\n                    <span style={{display: \"none\"}}>{searchResultsTotalRecords} total results</span>\r\n                    <Typography variant='body1'>Page {searchResultsCurrentPage} out of {searchResultsTotalPages}</Typography>\r\n                    {backButton} {forwardButton} <br/>\r\n                    <br/>\r\n                    <Grid container spacing={24}>\r\n                        {\r\n                            searchResults.map((element, index) => {\r\n                                return (<SearchResultRow classes={classes} inventoryType={inventoryType} handleDetailsSelection={handleDetailsSelection} key={index} element={element} index={index}/>);\r\n                            })\r\n                        }\r\n                    </Grid>\r\n                    <Typography variant='body1'>Page {searchResultsCurrentPage} out of {searchResultsTotalPages}</Typography>\r\n                    {backButton} {forwardButton} <br/>\r\n                </Paper>)\r\n        }\r\n    }\r\n}\r\n\r\nexport default withStyles(styles)(SearchResults);\r\n\r\n","import React, {Component} from 'react';\r\nimport ImageGallery from 'react-image-gallery';\r\nimport \"react-image-gallery/styles/css/image-gallery.css\";\r\nimport Grid from '@material-ui/core/Grid';\r\nimport {Helmet} from \"react-helmet\";\r\nimport Typography from \"@material-ui/core/es/Typography/Typography\";\r\nimport Helpers from \"../Utils/Helpers\";\r\nimport Card from '@material-ui/core/Card';\r\nimport ResponsiveEmbed from \"react-responsive-embed\";\r\nimport Button from \"@material-ui/core/Button\";\r\n\r\nimport {\r\n    FacebookShareButton,\r\n    GooglePlusShareButton,\r\n    TwitterShareButton,\r\n    PinterestShareButton,\r\n    EmailShareButton,\r\n} from 'react-share';\r\n\r\nimport {\r\n    FacebookIcon,\r\n    GooglePlusIcon,\r\n    TwitterIcon,\r\n    PinterestIcon,\r\n    EmailIcon,\r\n} from 'react-share';\r\n\r\nimport { Link } from \"react-router-dom\"\r\nimport {Settings} from \"../Utils/Settings\";\r\nimport {ReducedButton, SoldButton} from \"./Buttons\";\r\n\r\nclass DetailsTrailer extends Component {\r\n\r\n    render() {\r\n\r\n        const details = this.props.searchDetailsRecord;\r\n\r\n        if (!details) {\r\n            return \"\";\r\n        }\r\n\r\n        let images = [];\r\n        let firstImage = \"\";\r\n\r\n        for (var index = 1; index <= 30; index++) {\r\n            let image = details[\"t_xpath\" + index][0];\r\n            let thumbnail = details[\"t_xpathth\" + index][0];\r\n            let caption = details[\"t_com\" + index][0];\r\n            if (image && image.length > 0) {\r\n                if (firstImage.length === 0) {\r\n                    firstImage = image;\r\n                }\r\n\r\n                images.push({\r\n                    original: image,\r\n                    thumbnail: thumbnail,\r\n                    description: caption\r\n                });\r\n            }\r\n        }\r\n\r\n        let price = null;\r\n        let normalPrice = parseFloat(details.c_price[0]);\r\n        let salePrice = parseFloat(details.c_saleprice[0]);\r\n        if (salePrice === 0) { salePrice = normalPrice;}\r\n\r\n        if (normalPrice > 0 && salePrice !== normalPrice) {\r\n            price =\r\n                <Typography variant='h5'>\r\n                    <strike>${Helpers.formatMoney(normalPrice)}</strike> ${Helpers.formatMoney(salePrice)}<br/>\r\n                </Typography>\r\n        } else if (normalPrice > 0) {\r\n            price = <Typography variant='h5'>${Helpers.formatMoney(normalPrice)}<br/></Typography>\r\n        } else {\r\n            price = null;\r\n        }\r\n\r\n        let pageTitle = details.c_year[0] + \" \" + details.c_manu[0] + \" \" + details.c_model[0];\r\n        let pageCanonicalUrl = details.URL[0];\r\n\r\n        let videoUrl = Helpers.getVideoEmbedUrl(details.c_extra7[0]);\r\n        let video =(videoUrl) ?\r\n            <ResponsiveEmbed src={videoUrl} allowFullScreen></ResponsiveEmbed> :\r\n            null;\r\n\r\n        let trackingImage = \"https://dashboard.equinemediaworld.com/Listing/Impression?lt=\" + Settings.inventoryTypes.TRAILER + \"&id=\" + details.c_id[0];\r\n        let shareUrl = Settings.socialShareUseCanonicalUrls ? pageCanonicalUrl : window.location.href;\r\n\r\n        let reducedButton = details.c_r && details.c_r[0] === \"R\" ?\r\n            <React.Fragment><ReducedButton/><br/></React.Fragment> :\r\n            null;\r\n\r\n        let soldButton = details.c_sold_date && details.c_sold_date[0].length > 0 ?\r\n            <React.Fragment><SoldButton/><br/></React.Fragment> :\r\n            null;\r\n\r\n        return (\r\n            <div>\r\n            <Grid container spacing={24}>\r\n                <Helmet>\r\n                    <title>{pageTitle}</title>\r\n                    <link rel=\"canonical\" href={pageCanonicalUrl}/>\r\n                    <meta name=\"og:url\" content={pageCanonicalUrl}/>\r\n                    <meta name=\"og:image\" content={firstImage}/>\r\n                    <meta name=\"og:type\" content=\"product\"/>\r\n                    <meta name=\"twitter:card\" content=\"summary\"/>\r\n                </Helmet>\r\n                <Grid item xs={12}>\r\n                    <Link style={{textDecoration: \"none\"}} to=\"/search/horse-trailers\"><Button style={{marginBottom: \"15px\"}} variant=\"contained\" color=\"default\">Back</Button></Link>\r\n                </Grid>\r\n                <Grid item xs={12}>\r\n                    <Typography variant='h1'>{pageTitle}</Typography>\r\n                </Grid>\r\n                <Grid item sm={9} xs={12}>\r\n                    <ImageGallery items={images}/>\r\n                </Grid>\r\n                <Grid item sm={3} xs={12}>\r\n                    <Card style={{padding: \"10px\"}}>\r\n                        {price.length !== null && <React.Fragment>{price}</React.Fragment>} {reducedButton}{soldButton}\r\n                        <Typography variant='body2' style={{lineHeight: 2}}>\r\n                            <strong>Mfg:</strong> {details.c_manu[0]}<br/>\r\n                            <strong>Year:</strong> {details.c_year[0]}<br/>\r\n                            <strong>Horses:</strong> {details.c_horses[0]}<br/>\r\n                            <strong>Model:</strong> {details.c_model[0]}<br/>\r\n                            <strong>New:</strong> {details.c_new[0]}<br/>\r\n                            <strong>Living Quarters:</strong> {details.c_liv[0]}<br/>\r\n                            <strong>Location:</strong> {details.c_con_city[0]}, {details.c_con_st[0]}<br/>\r\n                            <strong>Stock:</strong> {details.c_stock[0]}<br/>\r\n                            {details.c_con_e[0].length > 0 && <React.Fragment><strong>Email:</strong> <a href=\"mailto:{details.c_con_e[0]}\">{details.c_con_e[0]}</a><br/></React.Fragment>}\r\n                            {details.c_con_ph[0].length > 0 && <React.Fragment><strong>Phone:</strong> {details.c_con_ph[0]}<br/></React.Fragment>}\r\n                            {details.C_con_phtf[0].length > 0 && <React.Fragment><strong>Toll-Free:</strong> {details.C_con_phtf[0]}<br/></React.Fragment>}\r\n                        </Typography>\r\n\r\n                        <FacebookShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><FacebookIcon round size={32} /></FacebookShareButton>\r\n                        <TwitterShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><TwitterIcon round size={32} /></TwitterShareButton>\r\n                        <GooglePlusShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><GooglePlusIcon round size={32} /></GooglePlusShareButton>\r\n                        <PinterestShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} media={firstImage} url={shareUrl}><PinterestIcon round size={32} /></PinterestShareButton>\r\n                        <EmailShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><EmailIcon round size={32} /></EmailShareButton>\r\n\r\n                    </Card>\r\n                </Grid>\r\n                <Grid item xs={12}>\r\n                    {video}\r\n                    <Typography variant='body1' dangerouslySetInnerHTML={{__html: Helpers.safeHtml(details.c_description[0])}}></Typography>\r\n                    <Typography variant='h6' color='secondary' style={{marginTop: \"20px\"}} dangerouslySetInnerHTML={{__html: Helpers.safeHtml(details.c_comment[0])}}></Typography>\r\n                    <img alt=\"\" src={trackingImage} />\r\n                </Grid>\r\n\r\n            </Grid>\r\n            </div>\r\n        )\r\n    }\r\n}\r\n\r\nexport default (DetailsTrailer);\r\n\r\n","import React, {Component} from 'react';\r\nimport {Settings} from \"../Utils/Settings\";\r\nimport ImageGallery from 'react-image-gallery';\r\nimport \"react-image-gallery/styles/css/image-gallery.css\";\r\nimport Grid from '@material-ui/core/Grid';\r\nimport {Helmet} from \"react-helmet\";\r\nimport Typography from \"@material-ui/core/es/Typography/Typography\";\r\nimport Helpers from \"../Utils/Helpers\";\r\nimport Card from '@material-ui/core/Card';\r\nimport ResponsiveEmbed from \"react-responsive-embed\";\r\nimport Button from \"@material-ui/core/Button\";\r\n\r\nimport {\r\n    FacebookShareButton,\r\n    GooglePlusShareButton,\r\n    TwitterShareButton,\r\n    PinterestShareButton,\r\n    EmailShareButton,\r\n} from 'react-share';\r\n\r\nimport {\r\n    FacebookIcon,\r\n    GooglePlusIcon,\r\n    TwitterIcon,\r\n    PinterestIcon,\r\n    EmailIcon,\r\n} from 'react-share';\r\n\r\nimport { Link } from \"react-router-dom\"\r\nimport {ReducedButton, SoldButton} from \"./Buttons\";\r\n\r\nclass DetailsCargo extends Component {\r\n\r\n    render() {\r\n\r\n        const details = this.props.searchDetailsRecord;\r\n\r\n        if (!details) {\r\n            return \"\";\r\n        }\r\n\r\n        let images = [];\r\n        let firstImage = \"\";\r\n\r\n        for (var index = 1; index <= 30; index++) {\r\n            let image = details[\"IMG\" + index][0];\r\n            let thumbnail = details[\"IMGTHUMB\" + index][0];\r\n            let caption = details[\"COM\" + index][0];\r\n            if (image && image.length > 0) {\r\n                if (firstImage.length === 0) {\r\n                    firstImage = image;\r\n                }\r\n\r\n                images.push({\r\n                    original: image,\r\n                    thumbnail: thumbnail,\r\n                    description: caption\r\n                });\r\n            }\r\n        }\r\n\r\n        let normalPrice = parseFloat(details.ct_price[0]).toFixed(0);\r\n\r\n        let pageTitle = details.ct_year[0] + \" \" + details.ct_manu[0] + \" \" + details.ct_model[0];\r\n        let pageCanonicalUrl = details.URL[0];\r\n\r\n        let videoUrl = Helpers.getVideoEmbedUrl(details.ct_videourl[0]);\r\n        let video =(videoUrl) ?\r\n            <ResponsiveEmbed src={videoUrl} allowFullScreen></ResponsiveEmbed> :\r\n            null;\r\n\r\n        let trackingImage = \"https://dashboard.equinemediaworld.com/Listing/Impression?lt=\" + Settings.inventoryTypes.TRAILER + \"&id=\" + details.ct_id[0];\r\n\r\n        let shareUrl = Settings.socialShareUseCanonicalUrls ? pageCanonicalUrl : window.location.href;\r\n\r\n        let reducedButton = details.ct_r && details.ct_r[0] === \"R\" ?\r\n            <React.Fragment><ReducedButton/><br/></React.Fragment> :\r\n            null;\r\n\r\n        let soldButton = details.ct_solddate && details.ct_solddate[0].length > 0 ?\r\n            <React.Fragment><SoldButton/><br/></React.Fragment> :\r\n            null;\r\n\r\n        return (\r\n            <div>\r\n            <Grid container spacing={24}>\r\n                <Helmet>\r\n                    <title>{pageTitle}</title>\r\n                    <link rel=\"canonical\" href={pageCanonicalUrl}/>\r\n                    <meta name=\"og:url\" content={pageCanonicalUrl}/>\r\n                    <meta name=\"og:image\" content={firstImage}/>\r\n                    <meta name=\"og:type\" content=\"product\"/>\r\n                    <meta name=\"twitter:card\" content=\"summary\"/>\r\n                </Helmet>\r\n                <Grid item xs={12}>\r\n                    <Link style={{textDecoration: \"none\"}} to=\"/search/cargo-trailers\"><Button style={{marginBottom: \"15px\"}} variant=\"contained\" color=\"default\">Back</Button></Link>\r\n                </Grid>\r\n                <Grid item xs={12}>\r\n                    <Typography variant='h1'>{pageTitle}</Typography>\r\n                </Grid>\r\n                <Grid item sm={9} xs={12}>\r\n                    <ImageGallery items={images}/>\r\n                </Grid>\r\n                <Grid item sm={3} xs={12}>\r\n                    <Card style={{padding: \"10px\"}}>\r\n                        <Typography variant='h5'>${Helpers.formatMoney(normalPrice)}<br/></Typography> {reducedButton}{soldButton}\r\n                        <Typography variant='body2' style={{lineHeight: 2}}>\r\n                            <strong>Mfg:</strong> {details.ct_manu[0]}<br/>\r\n                            <strong>Model:</strong> {details.ct_model[0]}<br/>\r\n                            <strong>Type:</strong> {details.ct_type[0]}<br/>\r\n                            <strong>Year:</strong> {details.ct_year[0]}<br/>\r\n                            <strong>New:</strong> {details.ct_new[0]}<br/>\r\n                            <strong>Pull:</strong> {details.ct_pull}<br/>\r\n                            <strong>Location:</strong> {details.ct_city[0]}, {details.ct_st[0]}<br/>\r\n                            <strong>Stock:</strong> {details.ct_stock[0]}<br/>\r\n                            {details.ct_email[0].length > 0 && <React.Fragment><strong>Email:</strong> <a href=\"mailto:{details.ct_email[0]}\">{details.ct_email[0]}</a><br/></React.Fragment>}\r\n                            {details.ct_phone[0].length > 0 && <React.Fragment><strong>Phone:</strong> {details.ct_phone[0]}<br/></React.Fragment>}\r\n                            {details.ct_phonetf[0].length > 0 && <React.Fragment><strong>Toll-Free:</strong> {details.ct_phonetf}<br/></React.Fragment>}\r\n                        </Typography>\r\n\r\n                        <FacebookShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><FacebookIcon round size={32} /></FacebookShareButton>\r\n                        <TwitterShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><TwitterIcon round size={32} /></TwitterShareButton>\r\n                        <GooglePlusShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><GooglePlusIcon round size={32} /></GooglePlusShareButton>\r\n                        <PinterestShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} media={firstImage} url={shareUrl}><PinterestIcon round size={32} /></PinterestShareButton>\r\n                        <EmailShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><EmailIcon round size={32} /></EmailShareButton>\r\n\r\n                    </Card>\r\n                </Grid>\r\n                <Grid item xs={12}>\r\n                    {video}\r\n                    <Typography variant='body1' dangerouslySetInnerHTML={{__html: Helpers.safeHtml(details.ct_description[0])}}></Typography>\r\n                    <Typography variant='h6' color='secondary' style={{marginTop: \"20px\"}} dangerouslySetInnerHTML={{__html: Helpers.safeHtml(details.ct_comment[0])}}></Typography>\r\n                    <img alt=\"\" src={trackingImage} />\r\n                </Grid>\r\n\r\n            </Grid>\r\n            </div>\r\n        )\r\n    }\r\n}\r\n\r\nexport default (DetailsCargo);\r\n\r\n","import React, {Component} from 'react';\r\nimport {Settings} from \"../Utils/Settings\";\r\nimport ImageGallery from 'react-image-gallery';\r\nimport \"react-image-gallery/styles/css/image-gallery.css\";\r\nimport Grid from '@material-ui/core/Grid';\r\nimport {Helmet} from \"react-helmet\";\r\nimport Typography from \"@material-ui/core/es/Typography/Typography\";\r\nimport Helpers from \"../Utils/Helpers\";\r\nimport Card from '@material-ui/core/Card';\r\nimport Button from \"@material-ui/core/Button\";\r\nimport ResponsiveEmbed from \"react-responsive-embed\";\r\n\r\nimport {\r\n    FacebookShareButton,\r\n    GooglePlusShareButton,\r\n    TwitterShareButton,\r\n    PinterestShareButton,\r\n    EmailShareButton,\r\n} from 'react-share';\r\n\r\nimport {\r\n    FacebookIcon,\r\n    GooglePlusIcon,\r\n    TwitterIcon,\r\n    PinterestIcon,\r\n    EmailIcon,\r\n} from 'react-share';\r\nimport { Link } from \"react-router-dom\"\r\nimport {ReducedButton, SoldButton} from \"./Buttons\";\r\n\r\nclass DetailsTruck extends Component {\r\n\r\n    render() {\r\n\r\n        const details = this.props.searchDetailsRecord;\r\n\r\n        if (!details) {\r\n            return \"\";\r\n        }\r\n\r\n        let images = [];\r\n        let firstImage = \"\";\r\n\r\n        for (let index = 1; index <= 10; index++) {\r\n            let image = details[\"t_xpath\" + index][0];\r\n            let thumbnail = details[\"t_xpathth\" + index][0];\r\n            let caption = details[\"t_com\" + index][0];\r\n            if (image && image.length > 0) {\r\n                if (firstImage.length === 0) {\r\n                    firstImage = image;\r\n                }\r\n\r\n                images.push({\r\n                    original: image,\r\n                    thumbnail: thumbnail,\r\n                    description: caption\r\n                });\r\n            }\r\n        }\r\n\r\n        let normalPrice = parseFloat(details.t_price[0]).toFixed(0);\r\n\r\n        let pageTitle = details.t_year[0] + \" \" + details.t_make[0] + \" \" + details.t_model[0];\r\n        let pageCanonicalUrl = details.URL[0];\r\n\r\n        let trackingImage = \"https://dashboard.equinemediaworld.com/Listing/Impression?lt=\" + Settings.inventoryTypes.TRUCK + \"&id=\" + details.t_id[0];\r\n        let videoUrl = Helpers.getVideoEmbedUrl(details.t_videolink[0]);\r\n        let video =(videoUrl) ?\r\n            <ResponsiveEmbed src={videoUrl} allowFullScreen></ResponsiveEmbed> :\r\n            null;\r\n        let shareUrl = Settings.socialShareUseCanonicalUrls ? pageCanonicalUrl : window.location.href;\r\n\r\n        let reducedButton = details.t_r && details.t_r[0] === \"R\" ?\r\n            <React.Fragment><ReducedButton/><br/></React.Fragment> :\r\n            null;\r\n\r\n        let soldButton = details.t_solddate && details.t_solddate[0].length > 0 ?\r\n            <React.Fragment><SoldButton/><br/></React.Fragment> :\r\n            null;\r\n\r\n        return (\r\n            <div>\r\n            <Grid container spacing={24}>\r\n                <Helmet>\r\n                    <title>{pageTitle}</title>\r\n                    <link rel=\"canonical\" href={pageCanonicalUrl}/>\r\n                    <meta name=\"og:url\" content={pageCanonicalUrl}/>\r\n                    <meta name=\"og:image\" content={firstImage}/>\r\n                    <meta name=\"og:type\" content=\"product\"/>\r\n                    <meta name=\"twitter:card\" content=\"summary\"/>\r\n                </Helmet>\r\n                <Grid item xs={12}>\r\n                    <Link style={{textDecoration: \"none\"}} to=\"/search/trucks\"><Button style={{marginBottom: \"15px\"}} variant=\"contained\" color=\"default\">Back</Button></Link>\r\n                </Grid>\r\n                <Grid item xs={12}>\r\n                    <Typography variant='h1'>{pageTitle}</Typography>\r\n                </Grid>\r\n                <Grid item sm={9} xs={12}>\r\n                    <ImageGallery items={images}/>\r\n                </Grid>\r\n                <Grid item sm={3} xs={12}>\r\n                    <Card style={{padding: \"10px\"}}>\r\n                        <Typography variant='h5'>{Helpers.formatMoney(normalPrice)}<br/></Typography>  {reducedButton}{soldButton}\r\n                        <Typography variant='body2' style={{lineHeight: 2}}>\r\n                            <strong>Mfg:</strong> {details.t_make[0]}<br/>\r\n                            <strong>Model:</strong> {details.t_model[0]}<br/>\r\n                            <strong>Mileage:</strong> {details.t_mileage[0]}<br/>\r\n                            <strong>Engine:</strong> {details.t_engine[0]}<br/>\r\n                            <strong>Drive:</strong> {details.t_drive[0]}<br/>\r\n                            <strong>Dually:</strong> {details.t_dually[0]}<br/>\r\n                            <strong>New:</strong> {details.t_new[0]}<br/>\r\n                            <strong>Location:</strong> {details.t_city[0]}, {details.t_state[0]}<br/>\r\n                            <strong>Stock:</strong> {details.t_stock[0]}<br/>\r\n                            {details.t_email[0].length > 0 && <React.Fragment><strong>Email:</strong> <a href=\"mailto:{details.ct_email[0]}\">{details.t_email[0]}</a><br/></React.Fragment>}\r\n                            {details.t_phone[0].length > 0 && <React.Fragment><strong>Phone:</strong> {details.t_phone[0]}<br/></React.Fragment>}\r\n                            {details.t_fax[0].length > 0 && <React.Fragment><strong>Fax:</strong> {details.t_fax[0]}<br/></React.Fragment>}\r\n                            {details.t_cell[0].length > 0 && <React.Fragment><strong>Fax:</strong> {details.t_cell[0]}<br/></React.Fragment>}\r\n                        </Typography>\r\n\r\n                        <FacebookShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><FacebookIcon round size={32} /></FacebookShareButton>\r\n                        <TwitterShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><TwitterIcon round size={32} /></TwitterShareButton>\r\n                        <GooglePlusShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><GooglePlusIcon round size={32} /></GooglePlusShareButton>\r\n                        <PinterestShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} media={firstImage} url={shareUrl}><PinterestIcon round size={32} /></PinterestShareButton>\r\n                        <EmailShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><EmailIcon round size={32} /></EmailShareButton>\r\n\r\n                    </Card>\r\n                </Grid>\r\n                <Grid item xs={12}>\r\n                    {video}\r\n                    <Typography variant='body1' dangerouslySetInnerHTML={{__html: Helpers.safeHtml(details.t_description[0])}}></Typography>\r\n                    <img alt=\"\" src={trackingImage} />\r\n                </Grid>\r\n\r\n            </Grid>\r\n            </div>\r\n        )\r\n    }\r\n}\r\n\r\nexport default (DetailsTruck);\r\n\r\n","import React, {Component} from 'react';\r\nimport {Settings} from \"../Utils/Settings\";\r\nimport ImageGallery from 'react-image-gallery';\r\nimport \"react-image-gallery/styles/css/image-gallery.css\";\r\nimport Grid from '@material-ui/core/Grid';\r\nimport {Helmet} from \"react-helmet\";\r\nimport Typography from \"@material-ui/core/es/Typography/Typography\";\r\nimport Helpers from \"../Utils/Helpers\";\r\nimport Card from '@material-ui/core/Card';\r\nimport Button from \"@material-ui/core/Button\";\r\n\r\nimport {\r\n    FacebookShareButton,\r\n    GooglePlusShareButton,\r\n    TwitterShareButton,\r\n    PinterestShareButton,\r\n    EmailShareButton,\r\n} from 'react-share';\r\n\r\nimport {\r\n    FacebookIcon,\r\n    GooglePlusIcon,\r\n    TwitterIcon,\r\n    PinterestIcon,\r\n    EmailIcon,\r\n} from 'react-share';\r\nimport { Link } from \"react-router-dom\"\r\n\r\nclass DetailsPart extends Component {\r\n\r\n    render() {\r\n\r\n        const details = this.props.searchDetailsRecord;\r\n\r\n        if (!details) {\r\n            return \"\";\r\n        }\r\n\r\n        let images = [];\r\n        let firstImage = \"\";\r\n\r\n        for (let index = 1; index <= 10; index++) {\r\n            let image = details[\"t_xpath\" + index][0];\r\n            let thumbnail = details[\"t_xpathth\" + index][0];\r\n            let caption = details[\"t_com\" + index][0];\r\n            if (image && image.length > 0) {\r\n                if (firstImage.length === 0) {\r\n                    firstImage = image;\r\n                }\r\n\r\n                images.push({\r\n                    original: image,\r\n                    thumbnail: thumbnail,\r\n                    description: caption\r\n                });\r\n            }\r\n        }\r\n\r\n        let normalPrice = parseFloat(details.t_price[0]).toFixed(0);\r\n\r\n        let pageTitle = details.t_year[0] + \" \" + details.t_make[0] + \" \" + details.t_model[0];\r\n        let pageCanonicalUrl = details.URL[0];\r\n\r\n        let trackingImage = \"https://dashboard.equinemediaworld.com/Listing/Impression?lt=\" + Settings.inventoryTypes.TRUCK + \"&id=\" + details.t_id[0];\r\n        let shareUrl = Settings.socialShareUseCanonicalUrls ? pageCanonicalUrl : window.location.href;\r\n\r\n        return (\r\n            <div>\r\n            <Grid container spacing={24}>\r\n                <Helmet>\r\n                    <title>{pageTitle}</title>\r\n                    <link rel=\"canonical\" href={pageCanonicalUrl}/>\r\n                    <meta name=\"og:url\" content={pageCanonicalUrl}/>\r\n                    <meta name=\"og:image\" content={firstImage}/>\r\n                    <meta name=\"og:type\" content=\"product\"/>\r\n                    <meta name=\"twitter:card\" content=\"summary\"/>\r\n                </Helmet>\r\n                <Grid item xs={12}>\r\n                    <Link style={{textDecoration: \"none\"}} to=\"/search/trucks\"><Button style={{marginBottom: \"15px\"}} variant=\"contained\" color=\"default\">Back</Button></Link>\r\n                </Grid>\r\n                <Grid item xs={12}>\r\n                    <Typography variant='h1'>{pageTitle}</Typography>\r\n                </Grid>\r\n                <Grid item sm={9} xs={12}>\r\n                    <ImageGallery items={images}/>\r\n                </Grid>\r\n                <Grid item sm={3} xs={12}>\r\n                    <Card style={{padding: \"10px\"}}>\r\n                        <Typography variant='h5'>${Helpers.formatMoney(normalPrice)}<br/></Typography>\r\n                        <Typography variant='body2' style={{lineHeight: 2}}>\r\n                            <strong>Mfg:</strong> {details.t_make[0]}<br/>\r\n                            <strong>Model:</strong> {details.t_model[0]}<br/>\r\n                            <strong>Mileage:</strong> {details.t_mileage[0]}<br/>\r\n                            <strong>Engine:</strong> {details.t_engine[0]}<br/>\r\n                            <strong>Drive:</strong> {details.t_drive}<br/>\r\n                            <strong>Location:</strong> {details.t_city[0]}, {details.t_state[0]}<br/>\r\n                            <strong>Stock:</strong> {details.t_stock[0]}<br/>\r\n                            {details.t_email[0].length > 0 && <React.Fragment><strong>Email:</strong> <a href=\"mailto:{details.ct_email[0]}\">{details.t_email[0]}</a><br/></React.Fragment>}\r\n                            {details.t_phone[0].length > 0 && <React.Fragment><strong>Phone:</strong> {details.t_phone[0]}<br/></React.Fragment>}\r\n                            {details.t_fax[0].length > 0 && <React.Fragment><strong>Fax:</strong> {details.t_fax[0]}<br/></React.Fragment>}\r\n                            {details.t_cell[0].length > 0 && <React.Fragment><strong>Fax:</strong> {details.t_cell[0]}<br/></React.Fragment>}\r\n                        </Typography>\r\n\r\n                        <FacebookShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><FacebookIcon round size={32} /></FacebookShareButton>\r\n                        <TwitterShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><TwitterIcon round size={32} /></TwitterShareButton>\r\n                        <GooglePlusShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><GooglePlusIcon round size={32} /></GooglePlusShareButton>\r\n                        <PinterestShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} media={firstImage} url={shareUrl}><PinterestIcon round size={32} /></PinterestShareButton>\r\n                        <EmailShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><EmailIcon round size={32} /></EmailShareButton>\r\n\r\n                    </Card>\r\n                </Grid>\r\n                <Grid item xs={12}>\r\n                    <Typography variant='body1' dangerouslySetInnerHTML={{__html: Helpers.safeHtml(details.t_description[0])}}></Typography>\r\n                    <img alt=\"\" src={trackingImage} />\r\n                </Grid>\r\n\r\n            </Grid>\r\n            </div>\r\n        )\r\n    }\r\n}\r\n\r\nexport default (DetailsPart);\r\n\r\n","import React, {Component} from 'react';\r\nimport {Settings} from \"../Utils/Settings\";\r\nimport ImageGallery from 'react-image-gallery';\r\nimport \"react-image-gallery/styles/css/image-gallery.css\";\r\nimport Grid from '@material-ui/core/Grid';\r\nimport {Helmet} from \"react-helmet\";\r\nimport Typography from \"@material-ui/core/es/Typography/Typography\";\r\nimport Helpers from \"../Utils/Helpers\";\r\nimport Card from '@material-ui/core/Card';\r\nimport Button from \"@material-ui/core/Button\";\r\nimport ResponsiveEmbed from \"react-responsive-embed\";\r\nimport { Link } from \"react-router-dom\"\r\nimport Paper from \"@material-ui/core/Paper\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\n\r\nimport {\r\n    FacebookShareButton,\r\n    GooglePlusShareButton,\r\n    TwitterShareButton,\r\n    PinterestShareButton,\r\n    EmailShareButton,\r\n} from 'react-share';\r\n\r\nimport {\r\n    FacebookIcon,\r\n    GooglePlusIcon,\r\n    TwitterIcon,\r\n    PinterestIcon,\r\n    EmailIcon,\r\n} from 'react-share';\r\n\r\nimport {ReducedButton, SoldButton} from \"./Buttons\";\r\n\r\nclass DetailsInventory extends Component {\r\n\r\n    render() {\r\n\r\n        const details = this.props.searchDetailsRecord;\r\n\r\n        if (!details) {\r\n            return \"\";\r\n        }\r\n\r\n        let images = [];\r\n        let firstImage = \"\";\r\n\r\n        images = details.media.filter(x=>x.type === 2).map(val => {\r\n           if (firstImage.length === 0) {\r\n               firstImage = val.xPath;\r\n           }\r\n\r\n           return {\r\n               original: val.xPath,\r\n               thumbnail: val.xPathThumbnail,\r\n               description: val.caption\r\n           }\r\n        });\r\n\r\n        let normalPrice = parseFloat(details.price).toFixed(2);\r\n        let priceComponent = null;\r\n        if (normalPrice > 0) {\r\n            priceComponent = <Typography variant='h5'>${Helpers.formatMoney(normalPrice)}<br/></Typography>\r\n        }\r\n        let pageTitle = details.title;\r\n        let pageCanonicalUrl = details.canonicalUrl;\r\n        let trackingImage = \"https://dashboard.equinemediaworld.com/Listing/Impression?lt=\" + Settings.inventoryTypes.INVENTORY + \"&id=\" + details.listingId;\r\n\r\n        let mapsComponent = null;\r\n        if (details.contactState !== \"\" || details.contactCity !== \"\"){\r\n            let mapsUrl = Helpers.getMapsUrl(details.contactStreet, details.contactCity, details.contactState, details.contactZip);\r\n            mapsComponent = <React.Fragment><ResponsiveEmbed  src={mapsUrl}  ratio='4:3' allowFullScreen></ResponsiveEmbed></React.Fragment>\r\n        }\r\n\r\n        let shareUrl = Settings.socialShareUseCanonicalUrls ? pageCanonicalUrl : window.location.href;\r\n\r\n        let reducedButton = details.reduced ?\r\n            <React.Fragment><ReducedButton/><br/></React.Fragment> :\r\n            null;\r\n\r\n        let soldButton = details.isSold  ?\r\n            <React.Fragment><SoldButton/><br/></React.Fragment> :\r\n            null;\r\n\r\n        let extraDetailsComponent =\r\n            <Paper>\r\n            <Table>\r\n                <TableBody>\r\n                {\r\n                    details.optionSelections.map((category, categoryIndex) =>\r\n                    {\r\n                        return (<React.Fragment key={categoryIndex}>\r\n                        <TableRow>\r\n                            <TableCell colSpan={2}>{category.optionCategoryName}</TableCell>\r\n                        </TableRow>\r\n\r\n                        {\r\n                            category.selections.answers.map((answer, answerIndex) => {\r\n                                let rowKey = categoryIndex + \"-\" + answerIndex;\r\n                                if (answer.optionType === Settings.inventoryFieldType.MULTIPLE ||\r\n                                    answer.optionType === Settings.inventoryFieldType.MULTIPLEWITHTEXT ||\r\n                                    answer.optionType === Settings.inventoryFieldType.RADIO ||\r\n                                    answer.optionType === Settings.inventoryFieldType.RADIOWITHTEXT ||\r\n                                    answer.optionType === Settings.inventoryFieldType.SELECT ||\r\n                                    answer.optionType === Settings.inventoryFieldType.SELECTWITHTEXT ||\r\n                                    answer.optionType === Settings.inventoryFieldType.AUTOCOMPLETE) {\r\n                                    return <TableRow key={rowKey}>\r\n                                        <TableCell><strong>{answer.name}</strong></TableCell>\r\n                                        <TableCell>\r\n                                                {\r\n                                                    answer.values.map((option, multianswerIndex)=> {\r\n                                                        return <React.Fragment key={multianswerIndex}>{option}<br/></React.Fragment>\r\n                                                    })\r\n                                                }\r\n                                        </TableCell>\r\n                                    </TableRow>\r\n                                }\r\n\r\n                                if (answer.optionType === Settings.inventoryFieldType.TEXTBOX ||\r\n                                    answer.optionType === Settings.inventoryFieldType.NUMBER ||\r\n                                    answer.optionType === Settings.inventoryFieldType.YEAR ||\r\n                                    answer.optionType === Settings.inventoryFieldType.DATE ||\r\n                                    answer.optionType === Settings.inventoryFieldType)\r\n                                {\r\n                                    return <TableRow key={rowKey}>\r\n                                        <TableCell><strong>{answer.name}</strong></TableCell>\r\n                                        <TableCell>\r\n                                            {answer.values[0]}\r\n                                        </TableCell>\r\n                                    </TableRow>\r\n                                }\r\n\r\n                                if (answer.optionType === Settings.inventoryFieldType.YESNO)\r\n                                {\r\n                                    return <TableRow key={rowKey}>\r\n                                        <TableCell><strong>{answer.name}</strong></TableCell>\r\n                                        <TableCell>\r\n                                            {answer.values[0]===1 ? \"Yes\" : \"No\"}\r\n                                        </TableCell>\r\n                                    </TableRow>\r\n                                }\r\n\r\n                                if (answer.optionType === Settings.inventoryFieldType.TEXTAREA)\r\n                                {\r\n                                    return <TableRow key={rowKey}>\r\n                                        <TableCell><strong>{answer.name}</strong></TableCell>\r\n                                        <TableCell>\r\n                                            <Typography variant='body2' dangerouslySetInnerHTML={{__html: Helpers.safeHtml(answer.values[0])}}></Typography>\r\n                                        </TableCell>\r\n                                    </TableRow>\r\n                                }\r\n\r\n                                // Unknown\r\n                                return <React.Fragment/>\r\n                            })\r\n                        }</React.Fragment>)\r\n                    })\r\n                }\r\n                <TableRow>\r\n                    <TableCell colSpan={2}><Typography variant='body1' dangerouslySetInnerHTML={{__html: Helpers.safeHtml(details.description)}}></Typography></TableCell>\r\n                </TableRow>\r\n                </TableBody>\r\n            </Table></Paper>;\r\n\r\n        return (\r\n            <div>\r\n            <Grid container spacing={24}>\r\n                <Helmet>\r\n                    <title>{pageTitle}</title>\r\n                    <link rel=\"canonical\" href={pageCanonicalUrl}/>\r\n                    <meta name=\"og:url\" content={pageCanonicalUrl}/>\r\n                    <meta name=\"og:image\" content={firstImage}/>\r\n                    <meta name=\"og:type\" content=\"product\"/>\r\n                    <meta name=\"twitter:card\" content=\"summary\"/>\r\n                </Helmet>\r\n                <Grid item xs={12}>\r\n                    <Link style={{textDecoration: \"none\"}} to={\"/inventory/\" + details.listingCategoryId}><Button style={{marginBottom: \"15px\"}} variant=\"contained\" color=\"default\">Back</Button></Link>\r\n                </Grid>\r\n                <Grid item xs={12}>\r\n                    <Typography variant='h1'>{pageTitle}</Typography>\r\n                </Grid>\r\n                <Grid item sm={7} xs={12}>\r\n                    <ImageGallery items={images}/>\r\n                </Grid>\r\n                <Grid item sm={5} xs={12}>\r\n                    <Card style={{padding: \"10px\"}}>\r\n                        {priceComponent} {reducedButton}{soldButton}\r\n                        <Typography style={{marginBottom: \"10px\"}} variant='h5'>Contact</Typography>\r\n                        <Typography variant='body2' style={{lineHeight: 2}}>\r\n                            {details.contactStreet.length > 0 && <React.Fragment>{details.contactStreet}<br/></React.Fragment>}\r\n                            {details.contactCity.length > 0 && <React.Fragment>{details.contactCity}, {details.contactState}<br/></React.Fragment>}\r\n                            {details.contactZip.length > 0 && <React.Fragment>{details.contactZip}<br/></React.Fragment>}\r\n                            {details.contactEmail.length > 0 && <React.Fragment><strong>Email:</strong> <a href=\"mailto:{details.contactEmail}\">{details.contactEmail}</a><br/></React.Fragment>}\r\n                            {details.contactWeb.length > 0 && <React.Fragment><a href=\"{details.contactWeb}\">{details.contactWeb}</a><br/></React.Fragment>}\r\n                            {details.contactPhone.length > 0 && <React.Fragment><strong>Phone:</strong> {details.contactPhone}<br/></React.Fragment>}\r\n                            {details.contactPhoneTollFree.length > 0 && <React.Fragment><strong>Toll-free:</strong> {details.contactPhoneTollFree}<br/></React.Fragment>}\r\n                            {details.contactCell.length > 0 && <React.Fragment><strong>Cell:</strong> {details.contactCell}<br/></React.Fragment>}\r\n                            {details.contactFax.length > 0 && <React.Fragment><strong>Fax:</strong> {details.contactFax}<br/></React.Fragment>}\r\n                            {details.contactBestTime.length > 0 && <React.Fragment><strong>Best time:</strong> {details.contactBestTime}<br/></React.Fragment>}\r\n                        </Typography>\r\n                        {mapsComponent}\r\n                        <div style={{marginTop: 10}}>\r\n                            <FacebookShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><FacebookIcon round size={32} /></FacebookShareButton>\r\n                            <TwitterShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><TwitterIcon round size={32} /></TwitterShareButton>\r\n                            <GooglePlusShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><GooglePlusIcon round size={32} /></GooglePlusShareButton>\r\n                            <PinterestShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} media={firstImage} url={shareUrl}><PinterestIcon round size={32} /></PinterestShareButton>\r\n                            <EmailShareButton style={{display: \"inline-block\", marginRight: \"10px\"}} url={shareUrl}><EmailIcon round size={32} /></EmailShareButton>\r\n                        </div>\r\n\r\n                    </Card>\r\n                </Grid>\r\n                <Grid item xs={12}>\r\n                    {extraDetailsComponent}\r\n                    <img alt=\"\" src={trackingImage} />\r\n                </Grid>\r\n\r\n            </Grid>\r\n            </div>\r\n        )\r\n    }\r\n}\r\n\r\nexport default (DetailsInventory);\r\n\r\n","import React, {Component} from 'react';\r\nimport Helpers from './Utils/Helpers.js';\r\nimport 'typeface-roboto';\r\nimport {Helmet} from \"react-helmet\"; // Meta tag and title injector\r\nimport {Settings, InventoryTheme, DefaultSearchFields, DefaultSearchHandler} from './Utils/Settings.js';\r\nimport CssBaseline from '@material-ui/core/CssBaseline';\r\nimport { MuiThemeProvider } from '@material-ui/core/styles';\r\nimport { Route, withRouter } from \"react-router-dom\";\r\nimport PrimaryInventorySelector from './Components/PrimaryInventorySelector.js';\r\nimport InventorySelector from './Components/InventorySelector.js';\r\nimport InventorySearchFields from \"./Components/SearchFields.js\";\r\nimport InventorySearchResults from \"./Components/SearchResults.js\";\r\nimport DetailsTrailer from \"./Components/DetailsTrailer.js\";\r\nimport DetailsCargo from \"./Components/DetailsCargo\";\r\nimport DetailsTruck from \"./Components/DetailsTruck\";\r\nimport DetailsPart from \"./Components/DetailsPart\";\r\nimport DetailsInventory from \"./Components/DetailsInventory\";\r\nimport ScrollMemory from \"react-router-scroll-memory\";\r\n\r\nconst queryString = require('query-string'); // helpers for parsing the querystring\r\n\r\nclass App extends Component {\r\n\r\n    constructor(props, context) {\r\n\r\n        // Note: The primary initiator of state changes comes from react-router and URL changes\r\n        // 1. A component will update the URL. Like the search component or next/back paging buttons.\r\n        // 2. The app.js detects the URL update in componentDidUpdate() and downloads the necessary data.\r\n        // 3. The components receive the data\r\n\r\n        super(props, context);\r\n\r\n        // Empty defaults for everything\r\n        this.state = {\r\n            inventoryType: Settings.inventoryTypes.NONE, // Horses, trailers, inventory, etc\r\n            searchFieldsIsLoading: false,\r\n            searchFields: { fields: []},\r\n            searchFieldsPage: 1,\r\n            searchFieldsError: null,\r\n            searchFieldsCategoryName: \"\",\r\n\r\n            searchResultsIsLoading: false,\r\n            searchResultsError: null,\r\n            searchResults: null,\r\n\r\n            searchDetailsRecord: null,\r\n\r\n            inventoryCategory: 0, // Category of the modern inventory system (Ranchjunk and other sites)\r\n            inventoryCategories: []\r\n        }\r\n    }\r\n\r\n    componentDidMount() {\r\n        this.populateStateFromRoute(false);\r\n    }\r\n\r\n    componentDidUpdate(prevProps) {\r\n        if (this.props.location.pathname !== prevProps.location.pathname) {\r\n            window.scrollTo(0, 0);\r\n            this.populateStateFromRoute();\r\n        }\r\n        else if (this.props.location.search !== prevProps.location.search) {\r\n            window.scrollTo(0, 0);\r\n            this.populateStateFromRoute(true);\r\n        }\r\n    }\r\n\r\n    populateStateFromRoute(setDefaults) {\r\n        // Load initial values from the route properties\r\n        let it = Settings.inventoryTypes.NONE;\r\n        if (this.props.location.pathname.startsWith(\"/search\")) {\r\n            if (this.props.location.pathname.startsWith(\"/search/horse-trailers\")) {\r\n                it = Settings.inventoryTypes.TRAILER;\r\n            }\r\n            if (this.props.location.pathname.startsWith(\"/search/cargo-trailers\")) {\r\n                it = Settings.inventoryTypes.CARGO;\r\n            }\r\n            if (this.props.location.pathname.startsWith(\"/search/trucks\")) {\r\n                it = Settings.inventoryTypes.TRUCK;\r\n            }\r\n            if (this.props.location.pathname.startsWith(\"/search/parts\")) {\r\n                it = Settings.inventoryTypes.PART;\r\n            }\r\n\r\n            // Only reload the search fields and results if we've changed types, or it is specifically requested to do so\r\n            if (it !== this.state.inventoryType || setDefaults) {\r\n                this.setState({\r\n                    inventoryType: it,\r\n                    searchResults: null,\r\n                    searchDetailsRecord: null\r\n                });\r\n                this.populateSearchFields(it, this.props.location.search);\r\n            }\r\n        }\r\n\r\n        if (this.props.location.pathname.startsWith(\"/inventory\")) {\r\n            if (this.props.location.pathname === \"/inventory\") {\r\n                this.populateInventoryCategories();\r\n            }\r\n            if (this.props.location.pathname.startsWith(\"/inventory\")) {\r\n                it = Settings.inventoryTypes.INVENTORY;\r\n                let inventoryCategory = this.props.location.pathname.substring(\"/inventory/\".length);\r\n\r\n                // Only reload the search fields and results if we've changed types, or it is specifically requested to do so\r\n                if (setDefaults || inventoryCategory !== \"\" && ((it !== this.state.inventoryType) || (inventoryCategory !== this.state.inventoryCategory ))) {\r\n                    this.populateSearchFields(it, this.props.location.search, inventoryCategory);\r\n                    this.setState({\r\n                        inventoryType: it,\r\n                        searchResults: null,\r\n                        inventoryCategory: inventoryCategory,\r\n                        searchDetailsRecord: null\r\n                    });\r\n                }\r\n            }\r\n        }\r\n\r\n        if (this.props.location.pathname.startsWith(\"/trailer/details/\")) {\r\n            this.setState({\r\n                searchDetailsRecord: null,\r\n            });\r\n            let listingId = Helpers.getListingId(this.props.location.pathname, \"/trailer/details/\");\r\n            this.populateDetails(Settings.inventoryTypes.TRAILER, listingId);\r\n        }\r\n\r\n        if (this.props.location.pathname.startsWith(\"/cargo/details/\")) {\r\n            this.setState({\r\n                searchDetailsRecord: null,\r\n            });\r\n            let listingId = Helpers.getListingId(this.props.location.pathname, \"/cargo/details/\");\r\n            this.populateDetails(Settings.inventoryTypes.CARGO, listingId);\r\n        }\r\n\r\n        if (this.props.location.pathname.startsWith(\"/truck/details/\")) {\r\n            this.setState({\r\n                searchDetailsRecord: null,\r\n            });\r\n            let listingId = Helpers.getListingId(this.props.location.pathname, \"/truck/details/\");\r\n            this.populateDetails(Settings.inventoryTypes.TRUCK, listingId);\r\n        }\r\n\r\n        if (this.props.location.pathname.startsWith(\"/part/details/\")) {\r\n            this.setState({\r\n                searchDetailsRecord: null,\r\n            });\r\n            let listingId = Helpers.getListingId(this.props.location.pathname, \"/part/details/\");\r\n            this.populateDetails(Settings.inventoryTypes.PART, listingId);\r\n        }\r\n\r\n        if (this.props.location.pathname.startsWith(\"/listing/details/\")) {\r\n            this.setState({\r\n                searchDetailsRecord: null,\r\n            });\r\n            let listingId = Helpers.getListingId(this.props.location.pathname, \"/listing/details/\");\r\n            this.populateDetails(Settings.inventoryTypes.INVENTORY, listingId);\r\n        }\r\n    }\r\n\r\n    // Only called if the inventory type changes. Updates the default search fields based on the inventory type.\r\n    // Also populates default choices.\r\n    populateSearchFields(newInventoryType, defaultsString, inventoryCategory) {\r\n        // https://reactjs.org/docs/faq-ajax.html\r\n        let promise = DefaultSearchFields.getFields(newInventoryType, inventoryCategory);\r\n        promise.then(\r\n            (result) => {\r\n                // Apply querystring defaults\r\n                let page = 0;\r\n                const defaults = queryString.parse(defaultsString);\r\n                for (let key in defaults) {\r\n\r\n                    if (key === \"sort\") {\r\n                        let filterId = defaults[key];\r\n                        result.fields.find(x => x.isBeingSorted).isBeingSorted = false;\r\n                        let sortField = result.fields.find(x => x.filterId === filterId);\r\n                        if (sortField) {\r\n                            sortField.isBeingSorted = true;\r\n\r\n                            let sortDirection = defaults[\"sortDirection\"];\r\n                            if (sortDirection) {\r\n                                sortField.sortDirection = sortDirection;\r\n                            }\r\n                        }\r\n                    }\r\n\r\n                    if (key.startsWith(\"opt\")) {\r\n                        let filterId = key.substring(3);\r\n                        let filterField = result.fields.find(x => x.filterId === filterId);\r\n                        if (filterField) {\r\n                            if (filterField.fieldType === \"multiselect\") {\r\n                                if (Array.isArray(defaults[key])) {\r\n                                    filterField.selectedValues = defaults[key];\r\n                                } else {\r\n                                    filterField.selectedValues = [defaults[key]];\r\n                                }\r\n                            } else {\r\n                                filterField.selectedValue = defaults[key];\r\n                            }\r\n                        }\r\n                    }\r\n\r\n                    if (key.startsWith(\"zip\")) {\r\n                        let filterField = result.fields.find(x => x.filterId === \"zip\");\r\n                        if (filterField)\r\n                        {\r\n                            filterField.selectedValue = defaults[key];\r\n                        }\r\n                    }\r\n\r\n                    // If the page parameter is supplied, use it and initiate a search\r\n                    if (key === \"page\") {\r\n                        page = parseInt(defaults[key]);\r\n                    }\r\n\r\n                }\r\n                this.setState({\r\n                    searchFieldsError: null,\r\n                    searchFields: result,\r\n                    searchFieldsPage: page\r\n                })\r\n\r\n                if (page > 0) {\r\n                    this.performSearch();\r\n                    //this.handleSearch(page);\r\n                }\r\n            },\r\n            (error) => {\r\n                this.setState({\r\n                    searchFieldsError: error,\r\n                })\r\n            },\r\n        )\r\n    };\r\n\r\n    // Retrieves the details for a listing\r\n    populateDetails(inventoryType, listingId) {\r\n        DefaultSearchHandler.GetDetails(inventoryType, listingId)\r\n            .then(\r\n                (result) => {\r\n                    this.setState({\r\n                        searchDetailsRecord: result\r\n                    });\r\n                },\r\n                (error) => {\r\n                    window.alert(\"An error occurred. Please try again. \" + error);\r\n                },\r\n            )\r\n    };\r\n\r\n    populateInventoryCategories() {\r\n        let icPromise = DefaultSearchHandler.GetInventoryCategories();\r\n        icPromise.then((result) => {\r\n            this.setState({\r\n                inventoryCategories: result\r\n            });\r\n        });\r\n    }\r\n\r\n    // When a user makes a change to a search parameter\r\n    handleSearchFieldChange = (filterId, newValue) => {\r\n\r\n        this.setState((previousState, currentProps) => {\r\n\r\n            let searchField = previousState.searchFields.fields.find(x=>x.filterId===filterId);\r\n\r\n            // Update the previous state with the new values\r\n            if (searchField) {\r\n                if (Array.isArray(newValue)) {\r\n                    searchField.selectedValues = newValue;\r\n                } else {\r\n                    searchField.selectedValue = newValue;\r\n                }\r\n\r\n                // Search field bound to a sort parameter\r\n                if (searchField.setFilterIdWhenChanged) {\r\n\r\n                    // Deselect all current sort filters\r\n                    previousState.searchFields.fields.find(x => x.isBeingSorted).isBeingSorted = false;\r\n\r\n                    // If a search field is bound to a sort field, enable the sort if a search value is being supplied\r\n                    // The user can change this sort using the UI, but the sort will be enabled by default\r\n                    let dependentField = previousState.searchFields.fields.find(x=>x.filterId===searchField.setFilterIdWhenChanged);\r\n\r\n                    if (dependentField) {\r\n                        if (newValue.length > 0) {\r\n                            dependentField.isBeingSorted = true;\r\n                            dependentField.disabled = false;\r\n                        } else {\r\n                            // If there is no value, deselect the bound sort field and reset to the search's default\r\n                            previousState.searchFields.fields.find(x => x.isDefaultSort).isBeingSorted = true;\r\n                            dependentField.disabled = true;\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n\r\n            // Merge the searchFields state\r\n            return {\r\n                searchFields: previousState.searchFields\r\n            }\r\n        });\r\n    }\r\n\r\n    handleSortFieldChange = (filterId) => {\r\n        this.setState((previousState, currentProps) => {\r\n\r\n            // Has the sort actually changed?\r\n            let existingSort = previousState.searchFields.fields.find(x=>x.isBeingSorted);\r\n            if (existingSort && existingSort.filterId === filterId) {\r\n                return null;\r\n            }\r\n            previousState.searchFields.fields.find(x=>x.isBeingSorted).isBeingSorted = false;\r\n            previousState.searchFields.fields.find(x=>x.filterId===filterId).isBeingSorted = true;\r\n            this.handleSearch(previousState.searchFieldsPage);\r\n\r\n            // Merge the searchFields state\r\n            return {\r\n                searchFields: previousState.searchFields\r\n            }\r\n        });\r\n    };\r\n\r\n    // Updates the querystring which will trigger a componentDidUpdate => performSearch\r\n    handleSearch = (page = 1) => {\r\n        this.setState({\r\n            searchResultsIsLoading: true,\r\n        });\r\n\r\n        // Update the querystring\r\n        let qsParams = DefaultSearchHandler.BuildSearchQuerystring(this.state.searchFields, page);\r\n        this.props.history.push(this.props.location.pathname + \"?\" + qsParams);\r\n    };\r\n\r\n    performSearch = () => {\r\n        DefaultSearchHandler.PerformSearch(this.state.inventoryType, this.state.searchFields, this.state.searchFieldsPage, this.state.inventoryCategory)\r\n            .then(\r\n                (result) => {\r\n                    this.setState({\r\n                        searchResultsIsLoading: false,\r\n                        searchResultsError: null,\r\n                        searchResults: result.results,\r\n                        searchResultsTotalRecords: result.totalRecords,\r\n                        searchResultsTotalPages: result.totalPages,\r\n                        searchResultsCurrentPage: result.currentPage\r\n                    })\r\n                },\r\n                (error) => {\r\n                    this.setState({\r\n                        searchFieldsPage: 1,\r\n                        searchResultsIsLoading: false,\r\n                        searchResultsError: error,\r\n                        searchResults: [],\r\n                        searchResultsTotalRecords: 0,\r\n                        searchResultsTotalPages: 0,\r\n                        searchResultsCurrentPage: 0\r\n                    })\r\n                },\r\n            )\r\n    }\r\n\r\n\r\n\r\n    render() {\r\n        const {\r\n            inventoryType,\r\n            searchFieldsIsLoading, searchResultsIsLoading,\r\n            searchResultsError, searchFieldsError,\r\n            searchFields,\r\n            searchResults, searchResultsTotalRecords, searchResultsTotalPages, searchResultsCurrentPage,\r\n            searchDetailsRecord,\r\n            inventoryCategories\r\n        } = this.state;\r\n\r\n        const primaryInventorySelectorComponent = () => <PrimaryInventorySelector />\r\n        const InventorySelectorComponent = () => <InventorySelector inventoryCategories={inventoryCategories} />\r\n        let loadingGif = Settings.subFolder + 'Content/loading.gif';\r\n\r\n\r\n        return (\r\n            <div style={{maxWidth:'1100px', margin: \"0 auto\", padding: \"20px\"}}>\r\n                <ScrollMemory />\r\n                <Helmet>\r\n                    <title>Remote Inventory</title>\r\n                </Helmet>\r\n                <MuiThemeProvider theme={InventoryTheme}>\r\n                    <CssBaseline />\r\n                    <Route exact path=\"/\" component={primaryInventorySelectorComponent} />\r\n                    <Route exact path=\"/inventory\" component={InventorySelectorComponent} />\r\n                    <Route path=\"/inventory/:categoryId\"  render={(props) =>\r\n                        <React.Fragment>\r\n                            <InventorySearchFields\r\n                                {...props}\r\n                                style={{marginBottom: \"10px\"}}\r\n                                inventoryType={inventoryType}\r\n                                searchFields={searchFields}\r\n                                searchFieldsError={searchFieldsError}\r\n                                handleSearch={this.handleSearch.bind(this)}\r\n                                handleSearchFieldChange={this.handleSearchFieldChange.bind(this)}\r\n                                handleSortFieldChange={this.handleSortFieldChange.bind(this)}\r\n                            />\r\n                            <InventorySearchResults\r\n                                searchResultsError = {searchResultsError}\r\n                                inventoryType={inventoryType}\r\n                                searchResults={searchResults}\r\n                                searchResultsTotalRecords={searchResultsTotalRecords}\r\n                                searchResultsTotalPages={searchResultsTotalPages}\r\n                                searchResultsCurrentPage={searchResultsCurrentPage}\r\n                                handleSearch={this.handleSearch}\r\n                            />\r\n                        </React.Fragment> }/>\r\n\r\n                    <Route path=\"/search/:searchtype\" render={(props) =>\r\n                        <React.Fragment>\r\n                            <InventorySearchFields\r\n                                {...props}\r\n                                style={{marginBottom: \"10px\"}}\r\n                                inventoryType={inventoryType}\r\n                                searchFields={searchFields}\r\n                                searchFieldsError={searchFieldsError}\r\n                                handleSearch={this.handleSearch.bind(this)}\r\n                                handleSearchFieldChange={this.handleSearchFieldChange.bind(this)}\r\n                                handleSortFieldChange={this.handleSortFieldChange.bind(this)}\r\n                            />\r\n                            <InventorySearchResults\r\n                                searchResultsError = {searchResultsError}\r\n                                inventoryType={inventoryType}\r\n                                searchResults={searchResults}\r\n                                searchResultsTotalRecords={searchResultsTotalRecords}\r\n                                searchResultsTotalPages={searchResultsTotalPages}\r\n                                searchResultsCurrentPage={searchResultsCurrentPage}\r\n                                handleSearch={this.handleSearch}\r\n                            />\r\n                        </React.Fragment> }/>\r\n\r\n                    <Route path=\"/trailer/details/:id\" render={(props) =>\r\n                        <DetailsTrailer\r\n                            {...props}\r\n                            searchDetailsRecord={searchDetailsRecord}\r\n                        />\r\n                    } />\r\n\r\n                    <Route path=\"/cargo/details/:id\" render={(props) =>\r\n                        <DetailsCargo\r\n                            {...props}\r\n                            searchDetailsRecord={searchDetailsRecord}\r\n                        />\r\n                    } />\r\n\r\n                    <Route path=\"/truck/details/:id\" render={(props) =>\r\n                        <DetailsTruck\r\n                            {...props}\r\n                            searchDetailsRecord={searchDetailsRecord}\r\n                        />\r\n                    } />\r\n\r\n                    <Route path=\"/part/details/:id\" render={(props) =>\r\n                        <DetailsPart\r\n                            {...props}\r\n                            searchDetailsRecord={searchDetailsRecord}\r\n                        />\r\n                    } />\r\n\r\n                    <Route path=\"/listing/details/:id\" render={(props) =>\r\n                        <DetailsInventory\r\n                            {...props}\r\n                            searchDetailsRecord={searchDetailsRecord}\r\n                        />\r\n                    } />\r\n\r\n                    <img src={loadingGif} alt=\"\" id=\"loading-indicator\" style={{position: \"fixed\", right: \"20px\", bottom: \"20px\", border: \"1px solid #e7e7e7\", borderRadius: \"2px\", padding: \"5px\", display:(searchFieldsIsLoading || searchResultsIsLoading) ? \"inline-block\" : \"none\"}} />\r\n                </MuiThemeProvider>\r\n            </div>\r\n        );\r\n    }\r\n}\r\n\r\nexport default withRouter(props => <App {...props} />);\r\n","// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read http://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n  window.location.hostname === 'localhost' ||\r\n    // [::1] is the IPv6 localhost address.\r\n    window.location.hostname === '[::1]' ||\r\n    // 127.0.0.1/8 is considered localhost for IPv4.\r\n    window.location.hostname.match(\r\n      /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n    )\r\n);\r\n\r\nexport function register(config) {\r\n  if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n    // The URL constructor is available in all browsers that support SW.\r\n    const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n    if (publicUrl.origin !== window.location.origin) {\r\n      // Our service worker won't work if PUBLIC_URL is on a different origin\r\n      // from what our page is served on. This might happen if a CDN is used to\r\n      // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n      return;\r\n    }\r\n\r\n    window.addEventListener('load', () => {\r\n      const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n      if (isLocalhost) {\r\n        // This is running on localhost. Let's check if a service worker still exists or not.\r\n        checkValidServiceWorker(swUrl, config);\r\n\r\n        // Add some additional logging to localhost, pointing developers to the\r\n        // service worker/PWA documentation.\r\n        navigator.serviceWorker.ready.then(() => {\r\n          console.log(\r\n            'This web app is being served cache-first by a service ' +\r\n              'worker. To learn more, visit http://bit.ly/CRA-PWA'\r\n          );\r\n        });\r\n      } else {\r\n        // Is not localhost. Just register service worker\r\n        registerValidSW(swUrl, config);\r\n      }\r\n    });\r\n  }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n  navigator.serviceWorker\r\n    .register(swUrl)\r\n    .then(registration => {\r\n      registration.onupdatefound = () => {\r\n        const installingWorker = registration.installing;\r\n        if (installingWorker == null) {\r\n          return;\r\n        }\r\n        installingWorker.onstatechange = () => {\r\n          if (installingWorker.state === 'installed') {\r\n            if (navigator.serviceWorker.controller) {\r\n              // At this point, the updated precached content has been fetched,\r\n              // but the previous service worker will still serve the older\r\n              // content until all client tabs are closed.\r\n              console.log(\r\n                'New content is available and will be used when all ' +\r\n                  'tabs for this page are closed. See http://bit.ly/CRA-PWA.'\r\n              );\r\n\r\n              // Execute callback\r\n              if (config && config.onUpdate) {\r\n                config.onUpdate(registration);\r\n              }\r\n            } else {\r\n              // At this point, everything has been precached.\r\n              // It's the perfect time to display a\r\n              // \"Content is cached for offline use.\" message.\r\n              console.log('Content is cached for offline use.');\r\n\r\n              // Execute callback\r\n              if (config && config.onSuccess) {\r\n                config.onSuccess(registration);\r\n              }\r\n            }\r\n          }\r\n        };\r\n      };\r\n    })\r\n    .catch(error => {\r\n      console.error('Error during service worker registration:', error);\r\n    });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n  // Check if the service worker can be found. If it can't reload the page.\r\n  fetch(swUrl)\r\n    .then(response => {\r\n      // Ensure service worker exists, and that we really are getting a JS file.\r\n      const contentType = response.headers.get('content-type');\r\n      if (\r\n        response.status === 404 ||\r\n        (contentType != null && contentType.indexOf('javascript') === -1)\r\n      ) {\r\n        // No service worker found. Probably a different app. Reload the page.\r\n        navigator.serviceWorker.ready.then(registration => {\r\n          registration.unregister().then(() => {\r\n            window.location.reload();\r\n          });\r\n        });\r\n      } else {\r\n        // Service worker found. Proceed as normal.\r\n        registerValidSW(swUrl, config);\r\n      }\r\n    })\r\n    .catch(() => {\r\n      console.log(\r\n        'No internet connection found. App is running in offline mode.'\r\n      );\r\n    });\r\n}\r\n\r\nexport function unregister() {\r\n  if ('serviceWorker' in navigator) {\r\n    navigator.serviceWorker.ready.then(registration => {\r\n      registration.unregister();\r\n    });\r\n  }\r\n}\r\n","import 'react-app-polyfill/ie9';\r\nimport 'react-app-polyfill/stable';\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport App from './App';\r\nimport * as serviceWorker from './serviceWorker';\r\nimport { BrowserRouter } from \"react-router-dom\";\r\n\r\nReactDOM.render(\r\n    <BrowserRouter basename={window.__inventoryDefaults.subFolder}>\r\n        <div>\r\n            <App />\r\n        </div>\r\n    </BrowserRouter>\r\n    , document.getElementById('remoteInventoryRoot'));\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: http://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n"],"sourceRoot":""}