{ "version": 3, "sources": ["src/app/core/models/customer-address.ts", "src/app/core/models/customer.ts", "src/app/core/models/model.ts", "src/app/core/models/make.ts", "src/app/core/models/photo.ts", "src/app/core/models/part.ts", "src/app/core/models/part-type.ts", "src/app/core/models/make-content.ts", "src/app/core/parts.service.ts", "src/app/core/models/promotion.ts", "src/app/core/models/invoice-line.ts", "src/app/core/models/invoice.ts", "src/app/core/store.service.ts", "src/app/core/utility.service.ts"], "sourcesContent": ["export class CustomerAddress {\r\n id!: number;\r\n address1?: string;\r\n address2?: string;\r\n city?: string;\r\n state?: string;\r\n zipCode?: string;\r\n country?: string;\r\n\r\n get displayStreet() {\r\n return [this.address1, this.address2].filter(x => x).join(' ');\r\n }\r\n\r\n get displayCityStateZip() {\r\n let cityState = [this.city, this.state].filter(x => x).join(' ');\r\n if (cityState && this.zipCode) cityState = `${cityState},`;\r\n return [cityState, this.zipCode].filter(x => x).join(' ');\r\n }\r\n\r\n public constructor(init?:Partial) {\r\n Object.assign(this, init);\r\n }\r\n}\r\n", "import { CustomerAddress } from \"./customer-address\";\r\n\r\nexport class Customer {\r\n id!: number;\r\n contactName?: string;\r\n companyName?: string;\r\n phone?: string;\r\n email?: string;\r\n fax?: string;\r\n optIn!: boolean;\r\n mainAddressId!: number;\r\n paymentMethod?: string;\r\n mainAddress!: CustomerAddress\r\n\r\n get displayName() {\r\n return this.companyName ?? this.contactName;\r\n }\r\n\r\n public constructor(init?: Partial) {\r\n Object.assign(this, { ...init, mainAddress: new CustomerAddress(init?.mainAddress)});\r\n }\r\n}\r\n", "import { UtilityService } from \"../utility.service\";\r\n\r\nexport class Model {\r\n id!: number;\r\n name!: string;\r\n\r\n urlName!: string;\r\n make?: string;\r\n\r\n public constructor(init?: Partial) {\r\n Object.assign(this, init);\r\n this.urlName = UtilityService.toKebabCase(this.name);\r\n }\r\n\r\n get path() {\r\n return `/products/make/${this.make}/${this.urlName}/list`;\r\n }\r\n}\r\n", "import { UtilityService } from '../utility.service';\r\nimport { Model } from './model';\r\n\r\nexport class Make {\r\n name!: string;\r\n models!: Model[];\r\n\r\n urlName!: string;\r\n\r\n public constructor(init?: Partial) {\r\n this.urlName = UtilityService.toKebabCase(init?.name);\r\n Object.assign(this, {\r\n ...init,\r\n models: init?.models?.map((model) => {\r\n const m = new Model(model);\r\n m.make = this.urlName;\r\n return m;\r\n }),\r\n });\r\n }\r\n\r\n get path() {\r\n return `/products/make/${this.urlName}/list`;\r\n }\r\n\r\n\r\n getDisplayName() {\r\n if (this.name === 'Cat') return 'Caterpillar';\r\n return this.name;\r\n }\r\n}\r\n", "export class Photo {\r\n id!: number;\r\n fileName!: string;\r\n\r\n public constructor(init?:Partial) {\r\n Object.assign(this, init);\r\n }\r\n}\r\n", "import { PartsService } from \"../parts.service\";\r\nimport { Photo } from \"./photo\";\r\nimport { Promotion } from \"./promotion\";\r\n\r\nexport class Part {\r\n id!: number;\r\n title?: string;\r\n year?: string;\r\n make?: string;\r\n model?: string;\r\n partNumber?: string;\r\n tagNumber?: string;\r\n partTypeId!: number;\r\n partTypeName?: string;\r\n condition!: string;\r\n weight?: number;\r\n length?: number;\r\n width?: number;\r\n height?: number;\r\n price!: number;\r\n coreCharge!: number;\r\n quantity!: number;\r\n promotionPrice!: number;\r\n description?: string;\r\n serialized!: boolean;\r\n isFeatured!: boolean;\r\n photoFileName?: string;\r\n photos!: Photo[];\r\n promotions!: string[];\r\n\r\n setPromotions(promotions: Promotion[]) {\r\n this.promotions = promotions.map(p => p.text);\r\n this.promotionPrice = PartsService.getPromotionPrice(this.price, promotions);\r\n }\r\n\r\n public constructor(init?:Partial) {\r\n Object.assign(this, { ...init,\r\n title: [(init?.tagNumber ? `${init?.tagNumber} -` : ''), init?.year, init?.make, init?.model, init?.partTypeName, init?.partNumber].join(' '),\r\n photos: init?.photos?.map((photo) => new Photo(photo)) ?? [],\r\n promotions: init?.promotions ?? [],\r\n promotionPrice: init?.promotionPrice ?? init?.price\r\n });\r\n }\r\n}\r\n", "import { UtilityService } from '../utility.service';\r\n\r\nexport class PartType {\r\n id!: number;\r\n name!: string;\r\n imageFileName?: string;\r\n\r\n public constructor(init?:Partial) {\r\n Object.assign(this, init);\r\n }\r\n\r\n get path() {\r\n return `/products/part-type/${this.id}/${UtilityService.toKebabCase(this.name)}`;\r\n }\r\n}\r\n", "export class MakeContent {\r\n make!: string;\r\n model?: string;\r\n title?: string;\r\n description?: string;\r\n text?: string;\r\n\r\n public constructor(init?: Partial) {\r\n Object.assign(this, { ...init });\r\n }\r\n}\r\n", "import { Injectable, inject } from '@angular/core';\r\nimport { StoreService } from './store.service';\r\nimport { firstValueFrom } from 'rxjs';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Make } from './models/make';\r\nimport { Part } from './models/part';\r\nimport { environment } from '../../environments/environment';\r\nimport { PartTypeModelMap } from './models/part-type-model-map';\r\nimport { PartType } from './models/part-type';\r\nimport { ApplicationInfoService } from './application-info.service';\r\nimport { Promotion } from './models/promotion';\r\nimport { MakeContent } from './models/make-content';\r\nimport { UtilityService } from './utility.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class PartsService {\r\n appInfo = inject(ApplicationInfoService);\r\n storeService = inject(StoreService);\r\n http = inject(HttpClient);\r\n\r\n async getPartTypes() {\r\n const data = await firstValueFrom(this.http.get(`${this.appInfo.shopUrl()}/api/parts/part-types`));\r\n const partTypes = data.map((partType) => new PartType(partType));\r\n this.storeService.setPartTypes(partTypes);\r\n }\r\n\r\n async getMakes() {\r\n const data = await firstValueFrom(this.http.get(`${this.appInfo.shopUrl()}/api/parts/makes`));\r\n const makes = data.map((make) => new Make(make));\r\n this.storeService.setMakes(makes);\r\n }\r\n\r\n async getMakeContents() {\r\n const data = await firstValueFrom(this.http.get(`${this.appInfo.shopUrl()}/api/parts/make-content`));\r\n const makeContents = data.map((make) => new MakeContent(make));\r\n this.storeService.setMakeContents(makeContents);\r\n }\r\n\r\n getMakeContent(make?: string, model?: string) {\r\n const contents = this.storeService.makeContents();\r\n if (!make && !model) return contents.filter((content) => '[Products]' === content.make)[0];\r\n\r\n let content: MakeContent | null = null;\r\n if (model) content = contents.filter((content) => make === content.make && content.model && model.startsWith(content.model))[0];\r\n content = content ?? contents.filter((content) => make === content.make && !content.model)[0];\r\n return content;\r\n }\r\n\r\n async getPartTypeModelMaps() {\r\n const maps = await firstValueFrom(this.http.get(`${this.appInfo.shopUrl()}/api/parts/part-type-model-maps`));\r\n this.storeService.setPartTypeModelMaps(maps);\r\n }\r\n\r\n async getParts(request: GetPartsRequest) {\r\n const results = await firstValueFrom(\r\n this.http.post(`${this.appInfo.shopUrl()}/api/parts/list`, {\r\n search: request.search,\r\n partTypeId: request.partTypeId,\r\n make: request.make,\r\n model: request.model,\r\n partNumber: request.partNumber,\r\n hasPictures: request.hasPictures,\r\n hasPrice: request.hasPrice,\r\n isFeatured: request.isFeatured,\r\n take: request.take,\r\n excludePartId: request.excludePartId,\r\n partIds: request.partIds\r\n })\r\n );\r\n return results.map((result) => {\r\n const part = new Part(result);\r\n this.setPromotions(part);\r\n return part;\r\n });\r\n }\r\n\r\n async getPart(id: number) {\r\n const result = await firstValueFrom(this.http.get(`${this.appInfo.shopUrl()}/api/parts/detail?id=${id}`));\r\n const part = result ? new Part(result) : null;\r\n if (part) this.setPromotions(part);\r\n return part;\r\n }\r\n\r\n private setPromotions(part: Part) {\r\n const eligible = this.getEligiblePromotions(part.partTypeId, part.condition, this.storeService.promotions());\r\n part.setPromotions(eligible);\r\n }\r\n\r\n async getRelatedParts(id: number) {\r\n const results = await firstValueFrom(this.http.get(`${this.appInfo.shopUrl()}/api/parts/related-parts?id=${id}`));\r\n return results.map((result) => {\r\n const part = new Part(result);\r\n this.setPromotions(part);\r\n return part;\r\n });\r\n }\r\n\r\n async getPromotions() {\r\n const promotions = await firstValueFrom(this.http.get(`${this.appInfo.shopUrl()}/api/parts/promotions`));\r\n this.storeService.setPromotions(promotions);\r\n }\r\n\r\n getEligiblePromotions(partTypeId: number, condition: string, promotions: Promotion[]) {\r\n return promotions.filter(\r\n (promotion) =>\r\n (!promotion.partTypeId || promotion.partTypeId === partTypeId) &&\r\n (!promotion.condition || promotion.condition === condition)\r\n );\r\n }\r\n\r\n static getPromotionPrice(price: number, promotions: Promotion[]) {\r\n let rate = 1;\r\n const discountPercent = promotions.reduce((total, promotion) => total + promotion.discount, 0);\r\n if (discountPercent !== 0) rate = rate - discountPercent / 100;\r\n return UtilityService.round(price * rate, 2);\r\n }\r\n}\r\nexport class GetPartsRequest {\r\n search?: string;\r\n partTypeId?: number;\r\n make?: string;\r\n model?: string;\r\n partNumber?: string;\r\n hasPictures?: boolean;\r\n hasPrice?: boolean;\r\n isFeatured?: boolean;\r\n take?: number;\r\n excludePartId?: number;\r\n partIds?: number[];\r\n}\r\n", "export class Promotion {\r\n static Types = {\r\n Discount: 1,\r\n FreeShipping: 2,\r\n FreeItem: 3\r\n };\r\n\r\n id!: number;\r\n type!: number;\r\n partTypeId?: number;\r\n condition?: string;\r\n startDate!: Date;\r\n endDate!: Date;\r\n text!: string;\r\n discount!: number;\r\n}\r\n", "import { PartsService } from '../parts.service';\r\nimport { UtilityService } from '../utility.service';\r\nimport { Part } from './part';\r\nimport { Promotion } from './promotion';\r\n\r\nexport class InvoiceLine {\r\n id!: number;\r\n lineNumber!: number;\r\n partId!: number;\r\n partNumber?: string;\r\n quantity!: number;\r\n price!: number;\r\n description?: string;\r\n part!: Part;\r\n isCoreCharge!: boolean;\r\n promotions!: string;\r\n\r\n newQuantity!: number;\r\n promotionDtos!: Promotion[];\r\n hasFreeShipping!: boolean;\r\n\r\n get title() {\r\n if (this.isCoreCharge) return 'Core charge';\r\n return this.part.title;\r\n }\r\n\r\n get linePrice() {\r\n return this.part.price;\r\n }\r\n\r\n setPromotions(promotions: Promotion[]) {\r\n this.promotionDtos = promotions;\r\n const promotion = this.promotionDtos.map((promotion) => promotion.text).join('\\n');\r\n if (this.promotions !== promotion) this.promotions = promotion;\r\n this.hasFreeShipping = this.promotionDtos.some((promotion) => promotion.type === Promotion.Types.FreeShipping);\r\n }\r\n\r\n updatePrice() {\r\n if (this.isCoreCharge) {\r\n this.price = this.part.coreCharge;\r\n return;\r\n }\r\n\r\n const price = PartsService.getPromotionPrice(this.linePrice, this.promotionDtos);\r\n if (this.price !== price) this.price = price;\r\n }\r\n\r\n public constructor(init?: Partial) {\r\n Object.assign(this, {\r\n ...init,\r\n part: new Part(init?.part),\r\n newQuantity: init?.quantity,\r\n promotionDtos: init?.promotionDtos ?? []\r\n });\r\n this.updatePrice();\r\n }\r\n}\r\n", "import { Customer } from './customer';\r\nimport { InvoiceLine } from './invoice-line';\r\nimport { CustomerAddress } from './customer-address';\r\nimport { UtilityService } from '../utility.service';\r\n\r\nexport class Invoice {\r\n static StatusOptions = {\r\n Quote: 0,\r\n InProcess: 1,\r\n Complete: 2,\r\n Expired: 3,\r\n WebInProcess: 4,\r\n WebComplete: 5\r\n };\r\n\r\n id!: number;\r\n invoiceNumber!: number;\r\n date!: Date;\r\n tax!: number;\r\n freight!: number;\r\n total!: number;\r\n pONumber?: string;\r\n typeId!: number;\r\n statusId!: number;\r\n shipAddressId!: number;\r\n customerId!: number;\r\n shipAddress!: CustomerAddress;\r\n customer!: Customer;\r\n invoiceLines!: InvoiceLine[];\r\n shipMethod?: string;\r\n source?: string;\r\n\r\n get subtotal() {\r\n return this.invoiceLines.reduce((total, line) => total + UtilityService.round(line.price * line.quantity, 2), 0);\r\n }\r\n\r\n get isShipMethodFreight() {\r\n return !!this.shipMethod && this.shipMethod.startsWith('Freight');\r\n }\r\n\r\n get freightCarrier() {\r\n if (!this.shipMethod || !this.shipMethod!.startsWith('Freight:')) return '';\r\n else return this.shipMethod.slice(8);\r\n }\r\n\r\n public constructor(init?: Partial) {\r\n Object.assign(this, {\r\n ...init,\r\n tax: init?.tax ?? 0,\r\n freight: init?.freight ?? 0,\r\n total: init?.total ?? 0,\r\n shipMethod: init?.shipMethod ?? null,\r\n shipAddress: new CustomerAddress(init?.shipAddress),\r\n customer: new Customer(init?.customer),\r\n invoiceLines: init?.invoiceLines?.map((invoiceLine) => new InvoiceLine(invoiceLine)) ?? []\r\n });\r\n }\r\n}\r\n", "import { Injectable, WritableSignal, computed, signal } from '@angular/core';\r\nimport { Invoice } from './models/invoice';\r\nimport { Make } from './models/make';\r\nimport { PartType } from './models/part-type';\r\nimport { PartTypeModelMap } from './models/part-type-model-map';\r\nimport { ShippingEstimate } from './models/shipping-estimate';\r\nimport { ShippingRequest } from './invoice.service';\r\nimport { Promotion } from './models/promotion';\r\nimport { MakeContent } from './models/make-content';\r\n\r\ntype AppStore = {\r\n loading: WritableSignal;\r\n partTypes: WritableSignal;\r\n makes: WritableSignal;\r\n makeContents: WritableSignal;\r\n invoice: WritableSignal;\r\n mode: WritableSignal<'shop' | 'payment'>;\r\n webPhotos: WritableSignal;\r\n partTypeModelMaps: WritableSignal;\r\n shippingRate: WritableSignal;\r\n shippingRateRequest: WritableSignal;\r\n shippingEstimates: WritableSignal;\r\n shippingEstimatesRequest: WritableSignal;\r\n promotions: WritableSignal;\r\n};\r\n\r\ntype InvoiceSummary = {\r\n id: number;\r\n invoiceNumber: number;\r\n date: Date;\r\n tax: number;\r\n freight: number;\r\n total: number;\r\n pONumber?: string;\r\n typeId: number;\r\n statusId: number;\r\n shipAddressId: number;\r\n customerId: number;\r\n shipMethod?: string;\r\n subtotal: number;\r\n // shipAddress: CustomerAddress;\r\n // customer: Customer;\r\n // invoiceLines: InvoiceLine[];\r\n};\r\n\r\nexport type WebPhotos = {\r\n homeSliderPhotos: string[];\r\n};\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class StoreService {\r\n private store = signal({\r\n loading: signal(false),\r\n partTypes: signal([]),\r\n makes: signal([]),\r\n makeContents: signal([]),\r\n invoice: signal(new Invoice()),\r\n mode: signal('shop'),\r\n webPhotos: signal({ homeSliderPhotos: [] }),\r\n partTypeModelMaps: signal([]),\r\n shippingRate: signal(null),\r\n shippingRateRequest: signal(null),\r\n shippingEstimates: signal(null),\r\n shippingEstimatesRequest: signal(null),\r\n promotions: signal([])\r\n } as AppStore);\r\n\r\n readonly loading = computed(() => this.store().loading());\r\n readonly makes = computed(() => this.store().makes!());\r\n readonly makeContents = computed(() => this.store().makeContents());\r\n readonly partTypes = computed(() => this.store().partTypes!());\r\n readonly partTypeModelMaps = computed(() => this.store().partTypeModelMaps!());\r\n readonly invoice = computed(() => this.store().invoice!());\r\n readonly mode = computed(() => this.store().mode!());\r\n readonly webPhotos = computed(() => this.store().webPhotos());\r\n readonly shippingRate = computed(() => this.store().shippingRate());\r\n readonly shippingRateRequest = computed(() => this.store().shippingRateRequest());\r\n readonly shippingEstimates = computed(() => this.store().shippingEstimates());\r\n readonly shippingEstimatesRequest = computed(() => this.store().shippingEstimatesRequest());\r\n readonly promotions = computed(() => this.store().promotions());\r\n readonly invoiceSummary = signal({} as InvoiceSummary);\r\n\r\n setLoading(value: boolean) {\r\n this.store.update((s) => ({ ...s, loading: signal(value) }));\r\n }\r\n\r\n setMode(value: 'shop' | 'payment') {\r\n this.store.update((s) => ({ ...s, mode: signal(value) }));\r\n }\r\n\r\n setPartTypes(partTypes: PartType[]) {\r\n this.store.update((s) => ({ ...s, partTypes: signal(partTypes) }));\r\n }\r\n\r\n setMakes(mappedMakes: Make[]) {\r\n this.store.update((s) => ({ ...s, makes: signal(mappedMakes) }));\r\n }\r\n\r\n setMakeContents(makeContents: MakeContent[]) {\r\n this.store.update((s) => ({ ...s, makeContents: signal(makeContents) }));\r\n }\r\n\r\n setInvoice(invoice: Invoice) {\r\n this.store.update((s) => ({ ...s, invoice: signal(invoice) }));\r\n this.updateInvoiceSummary();\r\n }\r\n\r\n updateInvoiceSummary() {\r\n const invoice = this.invoice();\r\n this.invoiceSummary.set({\r\n id: invoice.id,\r\n invoiceNumber: invoice.invoiceNumber,\r\n date: invoice.date,\r\n tax: invoice.tax,\r\n freight: invoice.freight,\r\n total: invoice.total,\r\n pONumber: invoice.pONumber,\r\n typeId: invoice.typeId,\r\n statusId: invoice.statusId,\r\n shipAddressId: invoice.shipAddressId,\r\n customerId: invoice.customerId,\r\n shipMethod: invoice.isShipMethodFreight ? 'Freight' : invoice.shipMethod,\r\n subtotal: invoice.subtotal\r\n });\r\n }\r\n\r\n setWebPhotos(webPhotos: WebPhotos) {\r\n this.store.update((s) => ({ ...s, webPhotos: signal(webPhotos) }));\r\n }\r\n\r\n setPartTypeModelMaps(maps: PartTypeModelMap[]) {\r\n this.store.update((s) => ({ ...s, partTypeModelMaps: signal(maps) }));\r\n }\r\n\r\n setShippingRate(shippingRate: number | null = null) {\r\n this.store.update((s) => ({ ...s, shippingRate: signal(shippingRate) }));\r\n }\r\n\r\n setShippingRateRequest(request: ShippingRequest | null = null) {\r\n this.store.update((s) => ({ ...s, shippingRateRequest: signal(request) }));\r\n }\r\n\r\n setShippingEstimates(shippingEstimates: ShippingEstimate[] | null = null) {\r\n this.store.update((s) => ({ ...s, shippingEstimates: signal(shippingEstimates) }));\r\n }\r\n\r\n setShippingEstimatesRequest(request: ShippingRequest | null = null) {\r\n this.store.update((s) => ({ ...s, shippingEstimatesRequest: signal(request) }));\r\n }\r\n\r\n setPromotions(promotions: Promotion[] = []) {\r\n this.store.update((s) => ({ ...s, promotions: signal(promotions) }));\r\n }\r\n}\r\n", "import { Injectable, inject } from '@angular/core';\r\nimport { Contact } from './models/contact';\r\nimport { firstValueFrom } from 'rxjs';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { environment } from '../../environments/environment';\r\nimport { StoreService } from './store.service';\r\nimport { WebPhotos } from './store.service';\r\nimport { ApplicationInfoService } from './application-info.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class UtilityService {\r\n appInfo = inject(ApplicationInfoService);\r\n http = inject(HttpClient);\r\n storeService = inject(StoreService);\r\n\r\n static round(value: number, decimalPlaces: number = 0) {\r\n // negative numbers are rounded towards zero, which is wrong. To fix, convert value to positive, round, then convert back to negative\r\n return (Math.sign(value) * Math.round(Number((Math.abs(value) * Math.pow(10, decimalPlaces)).toFixed(decimalPlaces)))) / Math.pow(10, decimalPlaces);\r\n }\r\n\r\n pickRandomItems(items: T[], number: number) {\r\n const shuffled = items.slice().sort(() => 0.5 - Math.random());\r\n return shuffled.slice(0, number);\r\n }\r\n\r\n async submitContactForm(contact: Contact) {\r\n const invoiceNumber = await firstValueFrom(this.http.post(`${this.appInfo.shopUrl()}/api/utility/submit-contact-form`, contact));\r\n return invoiceNumber;\r\n }\r\n\r\n async getWebPhotos() {\r\n const webPhotos = await firstValueFrom(this.http.get(`${this.appInfo.shopUrl()}/api/utility/web-photos`));\r\n this.storeService.setWebPhotos(webPhotos);\r\n }\r\n\r\n static toKebabCase(value: string | undefined) {\r\n return value?.toLowerCase().replaceAll(' ', '-').replaceAll('/', '-') ?? '';\r\n }\r\n\r\n static validateEmailAddress(email: string) {\r\n if (!email) return true;\r\n\r\n return /^(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)$/g.test(\r\n email.trim()\r\n );\r\n }\r\n\r\n static compare(original: string, value: string) {\r\n if (!original || !value) return original == value;\r\n const result = original.localeCompare(value, undefined, { sensitivity: 'base' })\r\n return result === 0;\r\n }\r\n}\r\n"], "mappings": "+KAAA,IAAaA,EAAbC,EAAAC,EAAA,kBAAaF,EAAP,KAAsB,CASxB,IAAIG,eAAa,CACb,MAAO,CAAC,KAAKC,SAAU,KAAKC,QAAQ,EAAEC,OAAOC,GAAKA,CAAC,EAAEC,KAAK,GAAG,CACjE,CAEA,IAAIC,qBAAmB,CACnB,IAAIC,EAAY,CAAC,KAAKC,KAAM,KAAKC,KAAK,EAAEN,OAAOC,GAAKA,CAAC,EAAEC,KAAK,GAAG,EAC/D,OAAIE,GAAa,KAA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CAAO,CAAC,CAExI,GAEMK,cAAY,QAAAJ,EAAA,sBACd,IAAMK,EAAY,MAAMJ,EAAe,KAAKtB,KAAK2B,IAAe,GAAG,KAAK9B,QAAQ2B,QAAO,CAAE,yBAAyB,CAAC,EACnH,KAAKtB,aAAa0B,aAAaF,CAAS,CAC5C,GAEA,OAAOG,YAAYxB,EAAyB,CACxC,OAAOA,GAAOyB,YAAW,EAAGC,WAAW,IAAK,GAAG,EAAEA,WAAW,IAAK,GAAG,GAAK,EAC7E,CAEA,OAAOC,qBAAqBC,EAAa,CACrC,OAAKA,EAEE,uKAAuKC,KAC1KD,EAAME,KAAI,CAAE,EAHG,EAKvB,CAEA,OAAOC,QAAQC,EAAkBhC,EAAa,CAC1C,MAAI,CAACgC,GAAY,CAAChC,EAAcgC,GAAYhC,EAC7BgC,EAASC,cAAcjC,EAAOkC,OAAW,CAAEC,YAAa,MAAM,CAAE,IAC7D,CACtB,yCAzCSpD,EAAc,wBAAdA,EAAcqD,QAAdrD,EAAcsD,UAAAC,WAFX,MAAM,CAAA,EAEhB,IAAOvD,EAAPwD,SAAOxD,CAAc,GAAA", "names": ["CustomerAddress", "init_customer_address", "__esmMin", "displayStreet", "address1", "address2", "filter", "x", "join", "displayCityStateZip", "cityState", "city", "state", "zipCode", "constructor", "init", "Object", "assign", "Customer", "init_customer", "__esmMin", "init_customer_address", "displayName", "companyName", "contactName", "constructor", "init", "Object", "assign", "__spreadProps", "__spreadValues", "mainAddress", "CustomerAddress", "Model", "init_model", "__esmMin", "init_utility_service", "constructor", "init", "Object", "assign", "urlName", "UtilityService", "toKebabCase", "name", "path", "make", "Make", "init_make", "__esmMin", "init_utility_service", "init_model", "constructor", "init", "urlName", "UtilityService", "toKebabCase", "name", "Object", "assign", "__spreadProps", "__spreadValues", "models", "map", "model", "m", "Model", "make", "path", "getDisplayName", "Photo", "init_photo", "__esmMin", "constructor", "init", "Object", "assign", "Part", "init_part", "__esmMin", "init_parts_service", "init_photo", "setPromotions", "promotions", "map", "p", "text", "promotionPrice", "PartsService", "getPromotionPrice", "price", "constructor", "init", "Object", "assign", "__spreadProps", "__spreadValues", "title", "tagNumber", "year", "make", "model", "partTypeName", "partNumber", "join", "photos", "photo", "Photo", "PartType", "init_part_type", "__esmMin", "init_utility_service", "constructor", "init", "Object", "assign", "path", "id", "UtilityService", "toKebabCase", "name", "MakeContent", "init_make_content", "__esmMin", "constructor", "init", "Object", "assign", "__spreadValues", "PartsService", "init_parts_service", "__esmMin", "init_core", "init_store_service", "init_esm", "init_http", "init_make", "init_part", "init_part_type", "init_application_info_service", "init_make_content", "init_utility_service", "constructor", "appInfo", "inject", "ApplicationInfoService", "storeService", "StoreService", "http", "HttpClient", "getPartTypes", "__async", "partTypes", "firstValueFrom", "get", "shopUrl", "map", "partType", "PartType", "setPartTypes", "getMakes", "makes", "make", "Make", "setMakes", "getMakeContents", "makeContents", "MakeContent", "setMakeContents", "getMakeContent", "model", "contents", "filter", "content", "startsWith", "getPartTypeModelMaps", "maps", "setPartTypeModelMaps", "getParts", "request", "post", "search", "partTypeId", "partNumber", "hasPictures", "hasPrice", "isFeatured", "take", "excludePartId", "partIds", "result", "part", "Part", "setPromotions", "getPart", "id", "eligible", "getEligiblePromotions", "condition", "promotions", "getRelatedParts", "getPromotions", "promotion", "getPromotionPrice", "price", "rate", "discountPercent", "reduce", "total", "discount", "UtilityService", "round", "factory", "\u0275fac", "providedIn", "_PartsService", "Promotion", "init_promotion", "__esmMin", "_Promotion", "Types", "Discount", "FreeShipping", "FreeItem", "InvoiceLine", "init_invoice_line", "__esmMin", "init_parts_service", "init_part", "init_promotion", "title", "isCoreCharge", "part", "linePrice", "price", "setPromotions", "promotions", "promotionDtos", "promotion", "map", "text", "join", "hasFreeShipping", "some", "type", "Promotion", "Types", "FreeShipping", "updatePrice", "coreCharge", "PartsService", "getPromotionPrice", "constructor", "init", "Object", "assign", "__spreadProps", "__spreadValues", "Part", "newQuantity", "quantity", "Invoice", "init_invoice", "__esmMin", "init_customer", "init_invoice_line", "init_customer_address", "init_utility_service", "subtotal", "invoiceLines", "reduce", "total", "line", "UtilityService", "round", "price", "quantity", "isShipMethodFreight", "shipMethod", "startsWith", "freightCarrier", "slice", "constructor", "init", "Object", "assign", "__spreadProps", "__spreadValues", "tax", "freight", "shipAddress", "CustomerAddress", "customer", "Customer", "map", "invoiceLine", "InvoiceLine", "_Invoice", "StatusOptions", "Quote", "InProcess", "Complete", "Expired", "WebInProcess", "WebComplete", "StoreService", "init_store_service", "__esmMin", "init_core", "init_invoice", "constructor", "store", "signal", "loading", "partTypes", "makes", "makeContents", "invoice", "Invoice", "mode", "webPhotos", "homeSliderPhotos", "partTypeModelMaps", "shippingRate", "shippingRateRequest", "shippingEstimates", "shippingEstimatesRequest", "promotions", "computed", "invoiceSummary", "setLoading", "value", "update", "s", "__spreadProps", "__spreadValues", "setMode", "setPartTypes", "setMakes", "mappedMakes", "setMakeContents", "setInvoice", "updateInvoiceSummary", "set", "id", "invoiceNumber", "date", "tax", "freight", "total", "pONumber", "typeId", "statusId", "shipAddressId", "customerId", "shipMethod", "isShipMethodFreight", "subtotal", "setWebPhotos", "setPartTypeModelMaps", "maps", "setShippingRate", "setShippingRateRequest", "request", "setShippingEstimates", "setShippingEstimatesRequest", "setPromotions", "factory", "\u0275fac", "providedIn", "_StoreService", "UtilityService", "init_utility_service", "__esmMin", "init_core", "init_esm", "init_http", "init_store_service", "init_application_info_service", "constructor", "appInfo", "inject", "ApplicationInfoService", "http", "HttpClient", "storeService", "StoreService", "round", "value", "decimalPlaces", "Math", "sign", "Number", "abs", "pow", "toFixed", "pickRandomItems", "items", "number", "slice", "sort", "random", "submitContactForm", "contact", "__async", "firstValueFrom", "post", "shopUrl", "getWebPhotos", "webPhotos", "get", "setWebPhotos", "toKebabCase", "toLowerCase", "replaceAll", "validateEmailAddress", "email", "test", "trim", "compare", "original", "localeCompare", "undefined", "sensitivity", "factory", "\u0275fac", "providedIn", "_UtilityService"] }