{"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","showPrintButton","printButtonText","showResetButton","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","context","possibleConstructorReturn","getPrototypeOf","call","onFormSubmit","preventDefault","setState","expandSearchButtonClicked","handleSearch","onExpandButtonPressed","handleSortFieldChange","searchFieldsError","isExpanded","errorMessage","Typography_default","align","message","sortFields","some","buttonStyle","onClick","resetButton","location","pathname","react","Paper_default","padding","onSubmit","md","Collapse_default","in","Hidden_default","smUp","Components_SearchField","type","compose","withWidth","SearchResultThumbnail","image","subFolder","src","alt","maxWidth","maxHeight","borderRadius","styles","newButton","background","backgroundColor","border","fontFamily","fontStyle","lineHeight","textAlign","soldButton","reducedButton","printButton","cursor","elementProps","print","root","borderColor","marginBottom","inventoryLink","Typography_Typography","formatMoney","extraFeatures","entry","extraField","diff","Buttons_newButton","Buttons_reducedButton","Buttons_soldButton","origin","SearchResultRow","descriptionTrimmed","trimAtNextWhitespace","basePath","getSeoFriendlyName","xl","lg","Components_SearchResultThumbnail","resultLink","dangerouslySetInnerHTML","__html","Components_SearchResultHighlight","SearchResults","searchResults","searchResultsTotalRecords","searchResultsTotalPages","searchResultsCurrentPage","handleDetailsSelection","searchResultsError","marginTop","backButton","forwardButton","Components_SearchResultRow","&:hover","DetailsTrailer","details","searchDetailsRecord","overlayCaption","overlaycaption","images","firstImage","original","normalPrice","c_price","c_saleprice","pageTitle","c_year","c_manu","c_model","pageCanonicalUrl","URL","floorplan","th_xpathfp","videoUrl","getVideoEmbedUrl","c_extra7","video","lib_default","allowFullScreen","trackingImage","c_id","shareUrl","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","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","newValue","previousState","currentProps","dependentField","existingSort","searchFieldsPage","searchResultsIsLoading","qsParams","BuildSearchQuerystring","history","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":"0RAGaA,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,OAqfPC,EAAuB,eAhfvB,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,IA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\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 //\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 + \"¤tpage=\" + 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 //\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\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 && result.NewDataSet.trailers.length > 0) {\r\n detailsResult = result.NewDataSet.trailers[0];\r\n }\r\n if (inventoryType === Settings.inventoryTypes.CARGO && result.NewDataSet.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 && result.NewDataSet.trucks.length > 0) {\r\n detailsResult = result.NewDataSet.trucks[0];\r\n }\r\n if (inventoryType === Settings.inventoryTypes.PART && result.NewDataSet.trailerparts && 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: \"23\",\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 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\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 showPrintButton: true,\r\n printButtonText: \"🖨\",\r\n showResetButton: false,\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 attributes[\"iframe\"] = [\"src\", \"style\", \"frameborder\", \"class\", \"allowfullscreen\", \"vr\", \"width\", \"height\"];\r\n return sanitizeHtml(input, {\r\n allowedTags: sanitizeHtml.defaults.allowedTags.concat([ 'p', 'img', 'b', 'strong', 'i', 'font', 'iframe']),\r\n allowedAttributes: attributes\r\n }).replace(/(\\r\\n|\\n|\\r)/gm, \"
\");\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= 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 \r\n\r\n\t\r\n\t\r\n\t\r\n\r\n);\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 \r\n \r\n \r\n \r\n );\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 \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\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 \r\n \r\n \r\n );\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 \r\n \r\n \r\n \r\n );\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 \r\n {Settings.showTrailers &&\r\n \r\n \r\n \r\n \r\n }\r\n {Settings.showCargo &&\r\n \r\n \r\n \r\n \r\n }\r\n {Settings.showTrucks &&\r\n \r\n \r\n \r\n \r\n }\r\n\r\n {Settings.showParts &&\r\n \r\n \r\n \r\n \r\n }\r\n\r\n {Settings.showInventory &&\r\n \r\n \r\n \r\n \r\n }\r\n );\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 \r\n {inventoryCategories.map((category) => {\r\n return(\r\n \r\n \r\n \r\n \r\n )\r\n })\r\n }\r\n );\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\r\n if (field.fieldType === \"checkbox\") {\r\n return (\r\n 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 handleSearchFieldChange(field.filterId, e.target.value)}\r\n margin=\"none\"/>);\r\n }\r\n if (field.fieldType === \"select\") {\r\n return (\r\n \r\n {field.label}\r\n \r\n );\r\n }\r\n\r\n if (field.fieldType === \"multiselect\") {\r\n return (\r\n \r\n {field.label}\r\n \r\n );\r\n }\r\n return (Undefined field type {field.fieldType});\r\n }\r\n}\r\n\r\nexport default SearchField;","import React, {Component, Fragment} 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\nimport withWidth from '@material-ui/core/withWidth';\r\nimport Collapse from '@material-ui/core/Collapse';\r\nimport compose from 'recompose/compose';\r\nimport Hidden from '@material-ui/core/Hidden';\r\nimport {Settings} from \"../Utils/Settings\";\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 constructor(props, context) {\r\n super(props, context);\r\n // Empty defaults for everything\r\n this.state = {\r\n expandSearchButtonClicked: false\r\n }\r\n }\r\n onFormSubmit = e => {\r\n // Prevent the form from actually submitting\r\n e.preventDefault();\r\n this.setState({\r\n expandSearchButtonClicked: false,\r\n });\r\n this.props.handleSearch(1);\r\n }\r\n\r\n onExpandButtonPressed = (e) => {\r\n //e.currentTarget.style.display=\"none\";\r\n this.setState({\r\n expandSearchButtonClicked: true,\r\n });\r\n }\r\n\r\n render() {\r\n const {classes,\r\n handleSearch,\r\n handleSearchFieldChange,\r\n handleSortFieldChange,\r\n searchFields,\r\n searchFieldsError,\r\n width\r\n } = this.props;\r\n\r\n const { expandSearchButtonClicked } = this.state;\r\n\r\n var isExpanded = (width != \"xs\") || expandSearchButtonClicked;\r\n let errorMessage = (searchFieldsError) ?\r\n Error: {searchFieldsError.message} :\r\n null;\r\n\r\n let sortFields = searchFields.fields.some(x => x.sortable) ?\r\n \r\n \r\n Sort by:
\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 \r\n )\r\n })\r\n }\r\n
\r\n
:\r\n null;\r\n\r\n let resetButton = (Settings.showResetButton) ?\r\n :\r\n ;\r\n\r\n if (searchFields.fields) {\r\n return (\r\n \r\n {errorMessage}\r\n
\r\n {searchFields.categoryName}\r\n \r\n \r\n \r\n {\r\n searchFields.fields.filter(x => (!x.hideField && x.fieldType != \"sortonly\")).map((element, index) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n })\r\n }\r\n \r\n \r\n {resetButton}\r\n\r\n \r\n {sortFields}\r\n \r\n \r\n
\r\n
);\r\n }\r\n return (\"\");\r\n }\r\n}\r\nexport default compose(\r\n withStyles(styles),\r\n withWidth()\r\n)(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 {caption}\r\n}\r\n\r\nexport default SearchResultThumbnail;","import React, {Fragment} from \"react\";\r\nimport {withStyles} from '@material-ui/core/styles';\r\nimport {Settings} from \"../Utils/Settings.js\";\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 printButton: {\r\n fontSize: \"14px\",\r\n fontStyle: \"normal\",\r\n fontFamily: \"Arial\",\r\n cursor: \"Pointer\"\r\n }\r\n});\r\n\r\nfunction ReducedButton(elementProps) {\r\n const {classes} = elementProps;\r\n return
Reduced!
\r\n}\r\n\r\nfunction NewButton(elementProps) {\r\n const {classes} = elementProps;\r\n return
New listing
\r\n}\r\n\r\nfunction SoldButton(elementProps) {\r\n const {classes} = elementProps;\r\n return
Sold
\r\n}\r\n\r\nfunction PrintButton(elementProps) {\r\n const {classes} = elementProps;\r\n if (Settings.showPrintButton) {\r\n return window.print()} className={classes.printButton}>{Settings.printButtonText}\r\n } else {\r\n return \r\n }\r\n}\r\n\r\nconst reducedButton = withStyles(styles)(ReducedButton);\r\nconst newButton = withStyles(styles)(NewButton);\r\nconst soldButton = withStyles(styles)(SoldButton);\r\nconst printButton = withStyles(styles)(PrintButton);\r\nexport { reducedButton as ReducedButton, newButton as NewButton, soldButton as SoldButton, printButton as PrintButton };\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\nimport SearchResultThumbnail from \"./SearchResultThumbnail\";\r\nimport {Link} from \"react-router-dom\";\r\nimport {Settings} from \"../Utils/Settings\";\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, inventoryLink} = elementProps;\r\n\r\n let price = null;\r\n if (element.salePrice > 0 && element.salePrice !== element.price) {\r\n price =\r\n \r\n ${Helpers.formatMoney(element.price)} ${Helpers.formatMoney(element.salePrice)}
\r\n
\r\n } else if (element.price > 0) {\r\n price = ${Helpers.formatMoney(element.price)}
\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 {extraField.name} {extraField.value}
;\r\n });\r\n\r\n let nowDate = moment();\r\n let newButton = nowDate.diff(element.dateStarted, 'days') < 7 ?\r\n
:\r\n null;\r\n\r\n let reducedButton = element.isReduced ?\r\n
:\r\n null;\r\n\r\n let soldButton = element.isSold ?\r\n
:\r\n null;\r\n\r\n let distance = null;\r\n if (element.distance > 0) {\r\n distance = {element.distance.toFixed(2)} miles away
\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 // Strip off the leading \"/\" from the inventoryLink\r\n const emailShareLink = \"mailto://?subject=\" + encodeURIComponent(\"Listing I saw\") + \"&body=\" + encodeURIComponent(window.location.origin + Settings.subFolder + inventoryLink.substring(1));\r\n\r\n return (\r\n
\r\n {price}\r\n {extraFeatures}\r\n {newButton}{reducedButton}{soldButton}\r\n {distance}\r\n
\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 const inventoryLink = basePath + \"/details/\" + element.id + \"/\" + Helpers.getSeoFriendlyName(element.title);\r\n\r\n return(\r\n \r\n \r\n \r\n \r\n \r\n {element.title}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\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 Error: {searchResultsError.message}\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 (No results found);\r\n } else {\r\n let backButton = ;\r\n let forwardButton = ;\r\n\r\n return (\r\n \r\n {searchResultsTotalRecords} total results\r\n Page {searchResultsCurrentPage} out of {searchResultsTotalPages}\r\n {backButton} {forwardButton}
\r\n
\r\n \r\n {\r\n searchResults.map((element, index) => {\r\n return ();\r\n })\r\n }\r\n \r\n Page {searchResultsCurrentPage} out of {searchResultsTotalPages}\r\n {backButton} {forwardButton}
\r\n
)\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 TwitterShareButton,\r\n PinterestShareButton,\r\n EmailShareButton,\r\n} from 'react-share';\r\n\r\nimport {\r\n FacebookIcon,\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, PrintButton} 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 overlayCaption = details.overlaycaption[0];\r\n if (overlayCaption.length > 0) {\r\n overlayCaption += \" \";\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: overlayCaption + 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 \r\n ${Helpers.formatMoney(normalPrice)} ${Helpers.formatMoney(salePrice)}
\r\n
\r\n } else if (normalPrice > 0) {\r\n price = ${Helpers.formatMoney(normalPrice)}
\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 floorplanLink = details.th_xpathfp [0];\r\n let floorplan = (floorplanLink) ?\r\n View Floorplan :\r\n null;\r\n\r\n let videoUrl = Helpers.getVideoEmbedUrl(details.c_extra7[0]);\r\n let video = (videoUrl) ?\r\n :\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
:\r\n null;\r\n\r\n let soldButton = details.c_sold_date && details.c_sold_date[0].length > 0 ?\r\n
:\r\n null;\r\n\r\n return (\r\n
\r\n \r\n \r\n {pageTitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {pageTitle}\r\n \r\n \r\n \r\n {floorplan}\r\n \r\n \r\n \r\n {price !== null && {price}} {reducedButton}{soldButton}\r\n \r\n Mfg: {details.c_manu[0]}
\r\n Year: {details.c_year[0]}
\r\n Horses: {details.c_horses[0]}
\r\n Model: {details.c_model[0]}
\r\n New: {details.c_new[0]}
\r\n Living Quarters: {details.c_liv[0]}
\r\n Location: {details.c_con_city[0]}, {details.c_con_st[0]}
\r\n Stock: {details.c_stock[0]}
\r\n {details.c_con_e[0].length > 0 && Email: {details.c_con_e[0]}
}\r\n {details.c_con_ph[0].length > 0 && Phone: {details.c_con_ph[0]}
}\r\n {details.C_con_phtf[0].length > 0 && Toll-Free: {details.C_con_phtf[0]}
}\r\n
\r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n
\r\n
\r\n \r\n {video}\r\n \r\n \r\n \"\"\r\n \r\n\r\n
\r\n
\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 TwitterShareButton,\r\n PinterestShareButton,\r\n EmailShareButton,\r\n} from 'react-share';\r\n\r\nimport {\r\n FacebookIcon,\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, PrintButton} 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 :\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
:\r\n null;\r\n\r\n let soldButton = details.ct_solddate && details.ct_solddate[0].length > 0 ?\r\n
:\r\n null;\r\n\r\n return (\r\n
\r\n \r\n \r\n {pageTitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {pageTitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n ${Helpers.formatMoney(normalPrice)}
{reducedButton}{soldButton}\r\n \r\n Mfg: {details.ct_manu[0]}
\r\n Model: {details.ct_model[0]}
\r\n Type: {details.ct_type[0]}
\r\n Year: {details.ct_year[0]}
\r\n New: {details.ct_new[0]}
\r\n Pull: {details.ct_pull}
\r\n Location: {details.ct_city[0]}, {details.ct_st[0]}
\r\n Stock: {details.ct_stock[0]}
\r\n {details.ct_email[0].length > 0 && Email: {details.ct_email[0]}
}\r\n {details.ct_phone[0].length > 0 && Phone: {details.ct_phone[0]}
}\r\n {details.ct_phonetf[0].length > 0 && Toll-Free: {details.ct_phonetf}
}\r\n
\r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n
\r\n
\r\n \r\n {video}\r\n \r\n \r\n \"\"\r\n \r\n\r\n
\r\n
\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 TwitterShareButton,\r\n PinterestShareButton,\r\n EmailShareButton,\r\n} from 'react-share';\r\n\r\nimport {\r\n FacebookIcon,\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, PrintButton} 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 :\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
:\r\n null;\r\n\r\n let soldButton = details.t_solddate && details.t_solddate[0].length > 0 ?\r\n
:\r\n null;\r\n\r\n return (\r\n
\r\n \r\n \r\n {pageTitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {pageTitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {Helpers.formatMoney(normalPrice)}
{reducedButton}{soldButton}\r\n \r\n Mfg: {details.t_make[0]}
\r\n Model: {details.t_model[0]}
\r\n Mileage: {details.t_mileage[0]}
\r\n Engine: {details.t_engine[0]}
\r\n Drive: {details.t_drive[0]}
\r\n Dually: {details.t_dually[0]}
\r\n New: {details.t_new[0]}
\r\n Location: {details.t_city[0]}, {details.t_state[0]}
\r\n Stock: {details.t_stock[0]}
\r\n {details.t_email[0].length > 0 && Email: {details.t_email[0]}
}\r\n {details.t_phone[0].length > 0 && Phone: {details.t_phone[0]}
}\r\n {details.t_fax[0].length > 0 && Fax: {details.t_fax[0]}
}\r\n {details.t_cell[0].length > 0 && Fax: {details.t_cell[0]}
}\r\n
\r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n
\r\n
\r\n \r\n {video}\r\n \r\n \"\"\r\n \r\n\r\n
\r\n
\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 TwitterShareButton,\r\n PinterestShareButton,\r\n EmailShareButton,\r\n} from 'react-share';\r\n\r\nimport {\r\n FacebookIcon,\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 { PrintButton} from \"./Buttons\";\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
\r\n \r\n \r\n {pageTitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {pageTitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n ${Helpers.formatMoney(normalPrice)}
\r\n \r\n Mfg: {details.t_make[0]}
\r\n Model: {details.t_model[0]}
\r\n Mileage: {details.t_mileage[0]}
\r\n Engine: {details.t_engine[0]}
\r\n Drive: {details.t_drive}
\r\n Location: {details.t_city[0]}, {details.t_state[0]}
\r\n Stock: {details.t_stock[0]}
\r\n {details.t_email[0].length > 0 && Email: {details.t_email[0]}
}\r\n {details.t_phone[0].length > 0 && Phone: {details.t_phone[0]}
}\r\n {details.t_fax[0].length > 0 && Fax: {details.t_fax[0]}
}\r\n {details.t_cell[0].length > 0 && Fax: {details.t_cell[0]}
}\r\n
\r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n
\r\n
\r\n \r\n \r\n \"\"\r\n \r\n\r\n
\r\n
\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 TwitterShareButton,\r\n PinterestShareButton,\r\n EmailShareButton,\r\n} from 'react-share';\r\n\r\nimport {\r\n FacebookIcon,\r\n TwitterIcon,\r\n PinterestIcon,\r\n EmailIcon,\r\n} from 'react-share';\r\n\r\nimport {ReducedButton, SoldButton, PrintButton} 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 = ${Helpers.formatMoney(normalPrice)}
\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 = \r\n }\r\n\r\n let shareUrl = Settings.socialShareUseCanonicalUrls ? pageCanonicalUrl : window.location.href;\r\n\r\n let reducedButton = details.reduced ?\r\n
:\r\n null;\r\n\r\n let soldButton = details.isSold ?\r\n
:\r\n null;\r\n\r\n let extraDetailsComponent =\r\n \r\n \r\n \r\n {\r\n details.optionSelections.map((category, categoryIndex) =>\r\n {\r\n return (\r\n \r\n {category.optionCategoryName}\r\n \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 \r\n {answer.name}\r\n \r\n {\r\n answer.values.map((option, multianswerIndex)=> {\r\n return {option}
\r\n })\r\n }\r\n
\r\n
\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 \r\n {answer.name}\r\n \r\n {answer.values[0]}\r\n \r\n \r\n }\r\n\r\n if (answer.optionType === Settings.inventoryFieldType.YESNO)\r\n {\r\n return \r\n {answer.name}\r\n \r\n {answer.values[0]===1 ? \"Yes\" : \"No\"}\r\n \r\n \r\n }\r\n\r\n if (answer.optionType === Settings.inventoryFieldType.TEXTAREA)\r\n {\r\n return \r\n {answer.name}\r\n \r\n \r\n \r\n \r\n }\r\n\r\n // Unknown\r\n return \r\n })\r\n })\r\n })\r\n }\r\n \r\n \r\n \r\n
\r\n
;\r\n\r\n return (\r\n
\r\n \r\n \r\n {pageTitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {pageTitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {priceComponent} {reducedButton}{soldButton}\r\n Contact\r\n \r\n {details.contactStreet.length > 0 && {details.contactStreet}
}\r\n {details.contactCity.length > 0 && {details.contactCity}, {details.contactState}
}\r\n {details.contactZip.length > 0 && {details.contactZip}
}\r\n {details.contactEmail.length > 0 && Email: {details.contactEmail}
}\r\n {details.contactWeb.length > 0 && {details.contactWeb}
}\r\n {details.contactPhone.length > 0 && Phone: {details.contactPhone}
}\r\n {details.contactPhoneTollFree.length > 0 && Toll-free: {details.contactPhoneTollFree}
}\r\n {details.contactCell.length > 0 && Cell: {details.contactCell}
}\r\n {details.contactFax.length > 0 && Fax: {details.contactFax}
}\r\n {details.contactBestTime.length > 0 && Best time: {details.contactBestTime}
}\r\n
\r\n {mapsComponent}\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n
\r\n
\r\n \r\n {extraDetailsComponent}\r\n \"\"\r\n \r\n\r\n
\r\n
\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 = () => \r\n const InventorySelectorComponent = () => \r\n let loadingGif = Settings.subFolder + 'Content/loading.gif';\r\n\r\n\r\n return (\r\n
\r\n \r\n \r\n Remote Inventory\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }/>\r\n\r\n \r\n \r\n \r\n \r\n }/>\r\n\r\n \r\n \r\n } />\r\n\r\n \r\n \r\n } />\r\n\r\n \r\n \r\n } />\r\n\r\n \r\n \r\n } />\r\n\r\n \r\n \r\n } />\r\n\r\n \"\"\r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default withRouter(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 \r\n
\r\n \r\n
\r\n
\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":""}