adp-web-components 0.0.13 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/dist/cjs/{loader-baf2418b.js → Loading-20e4ef35.js} +9 -0
  2. package/dist/cjs/app-globals-26499410.js +33 -0
  3. package/dist/cjs/dead-stock-lookup.cjs.entry.js +3 -4
  4. package/dist/cjs/distributor-lookup.cjs.entry.js +3 -4
  5. package/dist/cjs/dynamic-claim_6.cjs.entry.js +1046 -0
  6. package/dist/cjs/dynamic-redeem.cjs.entry.js +5 -5
  7. package/dist/cjs/form-input.cjs.entry.js +2 -2
  8. package/dist/cjs/general-inquiry-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{index-d4b5214c.js → index-97b8da6d.js} +289 -8
  10. package/dist/cjs/loader.cjs.js +3 -3
  11. package/dist/cjs/manufacturer-lookup.cjs.entry.js +3 -4
  12. package/dist/cjs/shift-components.cjs.js +3 -3
  13. package/dist/cjs/vehicle-lookup.cjs.entry.js +168 -0
  14. package/dist/collection/collection-manifest.json +8 -6
  15. package/dist/collection/components/dynamic-claim/dynamic-claim.css +1 -1
  16. package/dist/collection/components/dynamic-claim/dynamic-claim.js +2 -2
  17. package/dist/collection/components/dynamic-redeem/dynamic-redeem.css +1 -1
  18. package/dist/collection/components/dynamic-redeem/dynamic-redeem.js +3 -3
  19. package/dist/collection/components/form-input/form-input.js +1 -1
  20. package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +1 -1
  21. package/dist/collection/components/paint-thickness/paint-thickness.css +1 -1
  22. package/dist/collection/components/paint-thickness/paint-thickness.js +3 -3
  23. package/dist/collection/components/part-lookup/dead-stock-lookup.js +1 -1
  24. package/dist/collection/components/part-lookup/distributor-lookup.js +1 -1
  25. package/dist/collection/components/part-lookup/manufacturer-lookup.js +1 -1
  26. package/dist/collection/components/service-history/service-history.css +1 -1
  27. package/dist/collection/components/service-history/service-history.js +1 -1
  28. package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -1
  29. package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +3 -3
  30. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -0
  31. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +366 -0
  32. package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -1
  33. package/dist/collection/components/vehicle-specification/vehicle-specification.js +1 -1
  34. package/dist/collection/components/warranty-details/warranty-details.css +1 -1
  35. package/dist/collection/components/warranty-details/warranty-details.js +1 -1
  36. package/dist/collection/global/lib/middleware.js +26 -0
  37. package/dist/collection/global/lib/validate-vin.js +62 -0
  38. package/dist/components/dead-stock-lookup.js +1 -1
  39. package/dist/components/distributor-lookup.js +1 -1
  40. package/dist/components/dynamic-claim.js +1 -1
  41. package/dist/components/dynamic-redeem.js +1 -1
  42. package/dist/components/form-input.js +1 -1
  43. package/dist/components/general-inquiry-form.js +1 -1
  44. package/dist/components/index.js +1 -1
  45. package/dist/components/manufacturer-lookup.js +1 -1
  46. package/dist/components/p-05871c28.js +5 -0
  47. package/dist/components/p-23551e81.js +5 -0
  48. package/dist/components/p-325b6857.js +5 -0
  49. package/dist/components/{p-50f73226.js → p-3bf0339d.js} +1 -1
  50. package/dist/components/p-514c4736.js +5 -0
  51. package/dist/components/{p-2b0cc0c6.js → p-8385e385.js} +1 -1
  52. package/dist/components/p-be0a5ab5.js +5 -0
  53. package/dist/components/p-c8eef708.js +5 -0
  54. package/dist/components/p-da533bd7.js +5 -0
  55. package/dist/components/p-e46b126e.js +5 -0
  56. package/dist/components/p-f1ffc23d.js +5 -0
  57. package/dist/components/paint-thickness.js +1 -1
  58. package/dist/components/service-history.js +1 -1
  59. package/dist/components/vehicle-accessories.js +1 -1
  60. package/dist/components/vehicle-lookup.d.ts +11 -0
  61. package/dist/components/vehicle-lookup.js +5 -0
  62. package/dist/components/vehicle-specification.js +1 -1
  63. package/dist/components/warranty-details.js +1 -1
  64. package/dist/esm/{loader-027b88af.js → Loading-d050617c.js} +9 -1
  65. package/dist/esm/app-globals-7790014c.js +31 -0
  66. package/dist/esm/dead-stock-lookup.entry.js +3 -4
  67. package/dist/esm/distributor-lookup.entry.js +3 -4
  68. package/dist/esm/dynamic-claim_6.entry.js +1037 -0
  69. package/dist/esm/dynamic-redeem.entry.js +5 -5
  70. package/dist/esm/form-input.entry.js +2 -2
  71. package/dist/esm/general-inquiry-form.entry.js +2 -2
  72. package/dist/esm/{index-ef54644b.js → index-ff1dab22.js} +289 -8
  73. package/dist/esm/loader.js +4 -4
  74. package/dist/esm/manufacturer-lookup.entry.js +3 -4
  75. package/dist/esm/shift-components.js +4 -4
  76. package/dist/esm/vehicle-lookup.entry.js +164 -0
  77. package/dist/shift-components/{p-894e7518.entry.js → p-15e82b1a.entry.js} +1 -1
  78. package/dist/shift-components/p-1a727cfd.entry.js +5 -0
  79. package/dist/shift-components/p-2bb4415e.entry.js +5 -0
  80. package/dist/shift-components/p-3f3b41b4.entry.js +5 -0
  81. package/dist/shift-components/{p-8e818568.entry.js → p-4c3f2850.entry.js} +1 -1
  82. package/dist/shift-components/p-4ca95c3d.entry.js +5 -0
  83. package/dist/shift-components/p-65939a2f.js +5 -0
  84. package/dist/shift-components/p-7177b6f0.entry.js +5 -0
  85. package/dist/shift-components/p-8b198a04.entry.js +5 -0
  86. package/dist/shift-components/p-a92f02d4.js +5 -0
  87. package/dist/shift-components/p-f37b60d5.js +6 -0
  88. package/dist/shift-components/shift-components.esm.js +1 -1
  89. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +32 -0
  90. package/dist/types/components.d.ts +46 -2
  91. package/dist/types/global/lib/middleware.d.ts +0 -0
  92. package/dist/types/global/lib/validate-vin.d.ts +1 -0
  93. package/dist/types/global/types/components.d.ts +3 -0
  94. package/package.json +1 -1
  95. package/readme.md +2 -91
  96. package/dist/cjs/Loading-ee1a2ceb.js +0 -16
  97. package/dist/cjs/app-globals-3813fb46.js +0 -9
  98. package/dist/cjs/dynamic-claim.cjs.entry.js +0 -306
  99. package/dist/cjs/image-expansion-a9c9c6f7.js +0 -77
  100. package/dist/cjs/paint-thickness.cjs.entry.js +0 -118
  101. package/dist/cjs/service-history.cjs.entry.js +0 -103
  102. package/dist/cjs/vehicle-accessories.cjs.entry.js +0 -122
  103. package/dist/cjs/vehicle-specification.cjs.entry.js +0 -98
  104. package/dist/cjs/vehicleInformation-35c470fc.js +0 -52
  105. package/dist/cjs/warranty-details.cjs.entry.js +0 -257
  106. package/dist/components/p-4dc47f5f.js +0 -5
  107. package/dist/components/p-8375923d.js +0 -5
  108. package/dist/components/p-a454210b.js +0 -5
  109. package/dist/esm/Loading-61648252.js +0 -14
  110. package/dist/esm/app-globals-8befa224.js +0 -7
  111. package/dist/esm/dynamic-claim.entry.js +0 -302
  112. package/dist/esm/image-expansion-08c4bf0d.js +0 -73
  113. package/dist/esm/paint-thickness.entry.js +0 -114
  114. package/dist/esm/service-history.entry.js +0 -99
  115. package/dist/esm/vehicle-accessories.entry.js +0 -118
  116. package/dist/esm/vehicle-specification.entry.js +0 -94
  117. package/dist/esm/vehicleInformation-f7290628.js +0 -50
  118. package/dist/esm/warranty-details.entry.js +0 -253
  119. package/dist/shift-components/p-517b3e04.js +0 -5
  120. package/dist/shift-components/p-65e6ab8e.js +0 -5
  121. package/dist/shift-components/p-6b21ce2d.entry.js +0 -5
  122. package/dist/shift-components/p-7d85e912.entry.js +0 -5
  123. package/dist/shift-components/p-7f258017.entry.js +0 -5
  124. package/dist/shift-components/p-9653e992.entry.js +0 -5
  125. package/dist/shift-components/p-a21e2e2e.js +0 -5
  126. package/dist/shift-components/p-c4fad245.js +0 -5
  127. package/dist/shift-components/p-ca1e2e5b.entry.js +0 -5
  128. package/dist/shift-components/p-d1b9cd93.entry.js +0 -5
  129. package/dist/shift-components/p-d5ff7544.js +0 -5
  130. package/dist/shift-components/p-d6f40c8d.entry.js +0 -5
  131. package/dist/shift-components/p-e05acce1.entry.js +0 -5
  132. package/dist/shift-components/p-e97316d2.js +0 -6
  133. package/dist/shift-components/p-faa8070a.entry.js +0 -5
  134. package/dist/shift-components/p-feb3df85.entry.js +0 -5
@@ -92,7 +92,7 @@ export class DeadStockLookup {
92
92
  }
93
93
  render() {
94
94
  var _a, _b;
95
- return (h(Host, { key: 'f868a1c81dc98548642bb3baf78bc96d0a602c6a' }, h("div", { key: 'a868a68dc54e4a5463ad6395e209e6538f972960', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'c5cc22080a9c9ebc4b55dd038bfbc263c3cf4dd1' }, h(Loading, { key: 'c2d039a04fc763b329fd3d0ad0e70c68a2a3d716', isLoading: this.state.includes('loading') }), h("div", { key: 'f29a10d23d05c5266880fdb1f3c1618e87e1379d', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'd886904d0fe6521ea5a068a8a04b0828605c0264', class: "py-[16px]" }, h("div", { key: 'e59d14518de70ebbb5da2588199e5be6ff20d6d7', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '7b088662fc257bb3284a01fb492c0b976ef78a44' }, h("div", { key: '93df28e47a2ac1384606072e4fa1e4748d5f539a', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '0ccf2ca8e0761803289e0b07961c0ae294f27fd2', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Dead stock"), (_b = (_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.deadStock) === null || _b === void 0 ? void 0 :
95
+ return (h(Host, { key: '5afafb701488fe12ae7510942bb0abfee53f1d81' }, h("div", { key: 'c35e2b2b6dc469803dcacfe72c64f242eb71fc66', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'c887e169746b873d1faabc2dc7fcb6ac9b36088b' }, h(Loading, { key: '6895759b25d925520984a6a911646d154aeb6f1e', isLoading: this.state.includes('loading') }), h("div", { key: '53b1e3bbdd9d76d7f3adb31db67fc35578c5db31', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: '70e777c2e43cb5f702d14604e5daa3d24fe4b793', class: "py-[16px]" }, h("div", { key: '9b082979188f3ceebe6287e4618b81482025265d', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '858736a530a1eeb27be15bb6ce74d90eac69854a' }, h("div", { key: '34446c3dee2e3bb9e98eb095efb88f31eb068695', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'eb5644f27f839b85aba52bf1cb4e369030c95bcf', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Dead stock"), (_b = (_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.deadStock) === null || _b === void 0 ? void 0 :
96
96
  _b.map(deadStock => (h("div", { key: deadStock.companyIntegrationID, class: "py-[10px] px-[20px]" }, h("div", { "aria-expanded": "false", style: { height: closedAccordionHeight }, class: "border shadow transition-all duration-500 overflow-hidden rounded-md mb-[10px] border-[#d6d8dc]" }, h("button", { onClick: this.toggleAccordion, style: { height: closedAccordionHeight }, class: "w-full flex px-[10px] justify-between items-center text-slate-800" }, h("strong", null, deadStock.companyName), h("span", { class: "icon text-slate-800 transition-transform duration-500" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-[22px]" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.78 9.78a.75.75 0 0 1-1.06 0L8 7.06 5.28 9.78a.75.75 0 0 1-1.06-1.06l3.25-3.25a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06Z" })))), h("div", { class: "content" }, h("table", { class: "w-full overflow-auto relative border-collapse" }, h("thead", null, h("tr", null, h("th", { class: "py-[20px] px-[10px] text-left whitespace-nowrap border-b border-[#d6d8dc]" }, "Branch"), h("th", { class: "py-[20px] px-[10px] text-left whitespace-nowrap border-b border-[#d6d8dc]" }, "Available Qty"))), h("tbody", null, deadStock === null || deadStock === void 0 ? void 0 : deadStock.branchDeadStock.map(branchDeadStock => (h("tr", { class: "transition-colors border-b border-[#d6d8dc] last:border-none duration-100 hover:bg-slate-100", key: branchDeadStock.companyBranchIntegrationID }, h("td", { class: cn('py-[20px] px-[10px] text-left whitespace-nowrap') }, branchDeadStock.companyBranchName), h("td", { class: cn('py-[20px] px-[10px] text-left whitespace-nowrap') }, h("strong", null, branchDeadStock.quantity))))))))))))))))))));
97
97
  }
98
98
  static get is() { return "dead-stock-lookup"; }
@@ -90,7 +90,7 @@ export class DistributorLookup {
90
90
  const displayDistributer = this.partInformation
91
91
  ? !this.partInformation.stockParts.some(({ quantityLookUpResult }) => quantityLookUpResult === 'LookupIsSkipped' || quantityLookUpResult === 'QuantityNotWithinLookupThreshold')
92
92
  : false;
93
- return (h(Host, { key: '3c5a08da9bb6d8c0bbdf11a6c0ead0b8b3ece4fd' }, h("div", { key: 'dcbc04f9ece2c0a837bb89819606be82b0e625d5', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'b70cd016c852fcb6cece1f6be2f037d7af80f0be' }, h(Loading, { key: 'e404e25b376251fd9cb1b6bf8e520db09b0e6cc5', isLoading: this.state.includes('loading') }), h("div", { key: '33620d5b42941efe1d4f962d4df4d98aac8bdc15', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'f8fcc173188f6cbdfcf6da841ad6556b1a105d8d', class: "py-[16px]" }, h("div", { key: '7c2837559f70060bc3f133a0818299bd590bfb79', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: 'ad5eb569a94d00437c949317a6085e0df88911e1' }, h("div", { key: '159eb5d8c3e27a47352711b72f7364320a036adf', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '239a82c459a749aaef876be1f29651e4938e28ef', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Info"), h("div", { key: 'fc013a900a27b19650727cea7bb724c71e2efd20', class: "py-[10px] flex flex-col gap-[15px]" }, h("div", { key: '8621fa1329cb3373ac95cc155541322172a853a4', class: "flex gap-[50px]" }, infoRow1.map(({ label, value }) => (h("div", { key: label, class: "flex flex-col flex-1" }, h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), h("div", { class: "py-[10px] px-0" }, value))))), h("div", { key: 'b0df20fbafbb582eb26dd24021f636190ddad458', class: "flex gap-[50px]" }, infoRow2.map(({ label, value }) => (h("div", { key: label, class: "flex flex-col flex-1" }, h("strong", { class: "py-[10px] px-0 border-b border-b-[grey]" }, label), h("div", { class: "py-[10px] px-0" }, value)))), h("div", { key: '4d8824a39a0390e354863354c7d9edb8bdf3b28f', class: "flex-1" })))), displayDistributer && (h("div", { key: 'ad80b9e8a12cae61a5f734d13d51c07133667b2a', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '706d7fa5a761d47f93cfd6d6135f5b9eeff0c63a', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Distributor Stock"), h("div", { key: 'e660afe492e8722e22d1c2e96fbab51899549800', class: "flex flex-col gap-[15px]" }, h("table", { key: 'ff93c641d7c31b163957aa28086b3f4f49477b88', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'bfc5d1fe90425b6bfa964adf94b5291f29f5a05b', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: 'c162b0953b301b7cea3be6023ffe1cd51d145f54' }, ['Location', 'Availability'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: 'd4650b04d2292edbf185bedb4d34f065e04e0589' }, (_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.stockParts.map(stock => (h("tr", { class: "transition-colors duration-100 border-b border-[#d6d8dc] last:border-none hover:bg-slate-100", key: stock.locationID }, h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, stock.locationName), h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, h("div", { class: cn('text-[red]', {
93
+ return (h(Host, { key: '79c2ce86ba515ef9bc26e6ee0d337be842cee5f1' }, h("div", { key: 'f48591eaa1b5440d50ac9566907e1d771022de7c', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '381e363eec8c71ca7a639338c4ffb99a483542aa' }, h(Loading, { key: '5f59b51bff60f4a2ffb840c6e61697e67577074e', isLoading: this.state.includes('loading') }), h("div", { key: '8b7dc79b0731e99139720ab43153070279437991', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'dd1701dcb27b0436b1c6d13c6e35f603911eb373', class: "py-[16px]" }, h("div", { key: '8a94e43ebfaff59a1000b6fd253b2c8b1172c87c', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '9ac28a4b1fddea36b41cdad10244f95aa94bc400' }, h("div", { key: '1e1e65f06b0e30d6d7a087d412c9d5e54337ee17', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '7b675eb6ca2cd95dbbaebb3aebbbc54ac7340417', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Info"), h("div", { key: 'a4c2b16157f953406c5f14f7fd1e04112455b1eb', class: "py-[10px] flex flex-col gap-[15px]" }, h("div", { key: '9e0f362dcb01d78b78fbc3b27af289721fe7b1d7', class: "flex gap-[50px]" }, infoRow1.map(({ label, value }) => (h("div", { key: label, class: "flex flex-col flex-1" }, h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), h("div", { class: "py-[10px] px-0" }, value))))), h("div", { key: '6f031fb75275a7e91d76a9af02f2beb205dd2537', class: "flex gap-[50px]" }, infoRow2.map(({ label, value }) => (h("div", { key: label, class: "flex flex-col flex-1" }, h("strong", { class: "py-[10px] px-0 border-b border-b-[grey]" }, label), h("div", { class: "py-[10px] px-0" }, value)))), h("div", { key: '7a442c3e03c340e85810930ad0b47bf6f9e02619', class: "flex-1" })))), displayDistributer && (h("div", { key: '6fd4a90e0606586f300d49f224a4e2d43dacfd59', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'edd8c06e7f8e88507005bb5c0349985251161cf2', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Distributor Stock"), h("div", { key: '482ebf02eb1bcb4f179d71d9b9d0ee68b1df0765', class: "flex flex-col gap-[15px]" }, h("table", { key: '6df53c5a8af361cfb9b7805d904894774465eca2', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '80de5117fb5c3d88df9f3b2d978ab53b0a3d1ab6', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '6a41439bc02d475cd8b3f3f5aeb6d8893219a164' }, ['Location', 'Availability'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: 'a0752f0ac86dbc23f1a44fcef1a258bffc37cb6c' }, (_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.stockParts.map(stock => (h("tr", { class: "transition-colors duration-100 border-b border-[#d6d8dc] last:border-none hover:bg-slate-100", key: stock.locationID }, h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, stock.locationName), h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, h("div", { class: cn('text-[red]', {
94
94
  'text-[green]': stock.quantityLookUpResult === 'Available',
95
95
  'text-[orange]': stock.quantityLookUpResult === 'PartiallyAvailable',
96
96
  }) }, h("strong", null, stock.quantityLookUpResult === 'Available'
@@ -74,7 +74,7 @@ export class ManufacturerLookup {
74
74
  mockData = newMockData;
75
75
  }
76
76
  render() {
77
- return (h(Host, { key: '9cec65cb5b6300b130e8af6faf83e5e5218fcc1e' }, h("div", { key: '8d7661403efd16aeed5b4e481dbe01889e781b9d', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '2c0f35bc4bb0eb202b03d68f394a8b61aa45765f' }, h(Loading, { key: '5b501d52c3d36b5a0faa7447d8ee2884e5eedd9d', isLoading: this.state.includes('loading') }), h("div", { key: '0e9f54293dcf20797371b4788e45864d62517ed4', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: '1d295e9c0540942d84806c0a3e262b82f3a25ad5', class: "py-[16px]" }, h("div", { key: '59b91062e6270eb984945abb2f876e49bb2c827f', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '029fd4596e57bcaf22fe99af0b2df0d99918a9de' }, h("div", { key: '4238846980d8a390ad522e916f0d5ee0f9b566bb', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'ac90d7513b742b8a1300e9a2f337fd1a22fbf8d5', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, this.headerTitle), h("div", { key: 'cd8b5a2f0e1c0c2db8d7c6750727e4a8e03b601e', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, h("div", { key: '0cdfe3fd454e8a7ca19dd962cf9e1c3d2a156b2c', class: "flex gap-[50px]" }, h("div", { key: '03710ca72597273ef45dd40a12bc8c87c92c2ee6', class: "flex flex-col flex-1" }, h("strong", { key: '9121a29035dc3cb0624b814417eb2ae01fdd28ad', class: "py-[10px] border-b border-b-[grey]" }, "Description"), h("div", { key: '6278922b721b4b63b7d99ff1fd0490dee8a9dfc2', class: "py-[10px]" }, this.partInformation.tmcPart.partDescription)), h("div", { key: 'f3e651ba7f50de00873739f2b4bbb91d1835f792', class: "flex flex-col flex-1" }, h("strong", { key: '7351da14f1ac55180f18cbfafbc47ce44e7104cf', class: "py-[10px] border-b border-b-[grey]" }, "Product Group"), h("div", { key: '8869a8228b33fdc154f4a06d437ea7b6cddd73ed', class: "py-[10px]" }, this.partInformation.tmcPart.group)), h("div", { key: '19060b17fd4f1bd3ec7798915f35fac0f65694cc', class: "flex-1" })))))))))));
77
+ return (h(Host, { key: '2796ee666656f17a5f8003e3aef0eccc375f9a1e' }, h("div", { key: 'ffc13581fe7c55099237df50eb59dcff361cd309', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'bdd73d42532770c55ba77ea2f36ee050188682fd' }, h(Loading, { key: '0ed5c3a8a69d7b598ab2e8748884de8383b1a2a6', isLoading: this.state.includes('loading') }), h("div", { key: '2262bcf4726e9ceaea6c99135fd7cf20c4512bed', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'ccfcf127f404ecc6013f80d22ec90aadfb4a49e4', class: "py-[16px]" }, h("div", { key: 'e207d4ddb4cc91175bb6e82ea1604f8a1e5f740b', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '1af79d581ecd24f5cb02d347640d60320a72e322' }, h("div", { key: '47d2f26bb14a60837aea54d5cb4b5524e4bd7f7c', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '576cfd6e3dd323a2f1504ad794314b5f4bc36bf6', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, this.headerTitle), h("div", { key: 'ab4b39b5f189604a00610717c12b64f7c9376785', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, h("div", { key: 'd8663ed569051635bd5c6e661acaca67effe01a4', class: "flex gap-[50px]" }, h("div", { key: '3daf1a7ea0ce5650dc0fccacc24073546b5cba0f', class: "flex flex-col flex-1" }, h("strong", { key: '3d3c0920eb5b6fc0be35e30b567a5c4809054676', class: "py-[10px] border-b border-b-[grey]" }, "Description"), h("div", { key: 'fec76ebc8d7bd61e96236ad81ee2cb6a181d43bf', class: "py-[10px]" }, this.partInformation.tmcPart.partDescription)), h("div", { key: '9c65eeb1afe501d20b3c74b24f3cfe11f0cccc4a', class: "flex flex-col flex-1" }, h("strong", { key: 'adf74255acbc1437a291b4782e00c977a9fb4a50', class: "py-[10px] border-b border-b-[grey]" }, "Product Group"), h("div", { key: 'b98db7431c781d3bdf122b5b4b89eed1b8af8d3e', class: "py-[10px]" }, this.partInformation.tmcPart.group)), h("div", { key: '5c1ccd95bfeb9ce0963c27a509bdef054a538e8e', class: "flex-1" })))))))))));
78
78
  }
79
79
  static get is() { return "manufacturer-lookup"; }
80
80
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.mt-\[12px\]{margin-top:12px}.flex{display:flex}.table{display:table}.h-0{height:0}.h-\[40px\]{height:40px}.h-\[80px\]{height:80px}.max-h-\[70dvh\]{max-height:70dvh}.min-h-\[100px\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.\!border-none{border-style:none!important}.border-\[\#d6d8dc\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\[\#e1e3e5\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\[10px\]{padding-left:10px;padding-right:10px}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.py-\[20px\]{padding-bottom:20px;padding-top:20px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.pt-\[4px\]{padding-top:4px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.font-bold{font-weight:700}.text-\[\#383c43\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.z-50{z-index:50}.size-\[40px\]{height:40px;width:40px}.size-full{height:100%;width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}
1
+ *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.hidden{display:none}.w-full{width:100%}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mt-\[12px\]{margin-top:12px}.flex{display:flex}.table{display:table}.h-0{height:0}.h-\[40px\]{height:40px}.h-\[80px\]{height:80px}.max-h-\[70dvh\]{max-height:70dvh}.min-h-\[100px\]{min-height:100px}.w-fit{width:fit-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\[\#d6d8dc\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\[\#e1e3e5\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\[10px\]{padding-left:10px;padding-right:10px}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-4{padding-bottom:1rem;padding-top:1rem}.py-\[20px\]{padding-bottom:20px;padding-top:20px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.pt-\[4px\]{padding-top:4px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.font-bold{font-weight:700}.text-\[\#383c43\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.success-card{background-color:#d0e7de;border-color:#a2d0bb;color:#0b3521}.\!border-none{border-style:none!important}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.z-50{z-index:50}.size-\[40px\]{height:40px;width:40px}.size-full{height:100%;width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}
@@ -76,7 +76,7 @@ export class ServiceHistory {
76
76
  }
77
77
  render() {
78
78
  var _a, _b, _c, _d;
79
- return (h(Host, { key: '41626d52c1a46c5aa17d924c740ff128c717db72' }, h("div", { key: '148b48b3511bbb0edcb06c95f432cec3794bb8be', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '83af30eb9e1bb760b7d0524b5868b98390ae67c0' }, h(Loading, { key: '6f4a0f5c66407fc24ba9ffc624d3d2e37abca2f6', isLoading: this.state.includes('loading') }), h("div", { key: 'f16ed2ccb8a9e3bcd8f71eaf05fb3c4a28eb0a16', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: 'ffba94045d0641ffad445c78173ef139e133ae8d', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '710d22f3233b428cafab34984cc562e46fa92d8b', class: "py-[16px]" }, h("div", { key: 'b036ab0231e60c66a24757b23ec5acceeca359f9', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '64fd2439a7edc45b552a7e7ea2a6583b9376b57b', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'dec74cb4310d310094fa9958b0c3991f476d9bb8', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Service History"), h("div", { key: 'bc17bcd99593f7a86c00c6fbed2a9cc3c516eae7', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.serviceHistory.length) && h("div", { key: '8d5a0902e8a13909867f0f138bbd629ad97b8b3e', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.serviceHistory.length) && (h("table", { key: '9121de3dbcdd6ceb6e88380d15ba3a0885626af3', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '492edb0969f9774ff1fa78af9fdb4bab3f240e23', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '91bb78d8f37c12c20f331ec55f76d362572bfcee' }, ['Branch', 'Dealer', 'Invoice No.', 'Date', 'Service Type', 'Odometer'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: '6019cc8f4ad18c13b3b082fe87da6a2bfab65773' }, (_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.serviceHistory.map((service, idx) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: service.invoiceNumber }, ['branchName', 'companyName', 'invoiceNumber', 'serviceDate', 'serviceType', 'mileage'].map(serviceType => {
79
+ return (h(Host, { key: '52935e6fb3255892bdd284214cfc5400512ffdc3' }, h("div", { key: '13ebe565c3622e164a4c3341961fa09f197eff07', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '17409d800ef7272d68ee4b87ac5290a7840da6b8' }, h(Loading, { key: 'ab181a9f94a683a0c9a63022f91bf0be576407e4', isLoading: this.state.includes('loading') }), h("div", { key: '5c4fba056616fd0c73c4621796c03fce922ec585', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: 'd2274baa55784519e27959977137d1df96180176', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'e5bbed2b50658ea403a8313ae462bad757538174', class: "py-[16px]" }, h("div", { key: '7b591a9617de72e12f8d3d3dc3f20c4028cedb9c', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '02488e145ec167f0b6de715d13439029ea11a45a', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '1084269343da542e74cb1e9741d06067a3739af1', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Service History"), h("div", { key: '38cde65fb146f9b0c0e045f221eea6950ccc66d7', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.serviceHistory.length) && h("div", { key: 'a8180a5375a84bc95451df88fcee439713a6c529', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.serviceHistory.length) && (h("table", { key: '2e8edb3e5f49dacf3b14ea1259cf464e50c96686', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'b99cee125c4899a88b0ec6650c0a2e40e9a30617', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '6bd167c617c04d30daefc4b0c20fa688ab6ffc0f' }, ['Branch', 'Dealer', 'Invoice No.', 'Date', 'Service Type', 'Odometer'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: 'bd25354c05ee8b813be63a2278379910842ce24a' }, (_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.serviceHistory.map((service, idx) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: service.invoiceNumber }, ['branchName', 'companyName', 'invoiceNumber', 'serviceDate', 'serviceType', 'mileage'].map(serviceType => {
80
80
  var _a;
81
81
  return (h("td", { key: service.invoiceNumber + serviceType, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
82
82
  '!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
@@ -1 +1 @@
1
- *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-0{left:0}.top-0{top:0}.z-40{z-index:40}.z-50{z-index:50}.float-right{float:right}.mx-auto{margin-left:auto;margin-right:auto}.mr-\[16px\]{margin-right:16px}.mt-\[12px\]{margin-top:12px}.mt-\[16px\]{margin-top:16px}.flex{display:flex}.table{display:table}.size-12{height:3rem;width:3rem}.size-full{height:100%;width:100%}.h-0{height:0}.h-1{height:.25rem}.h-\[100dvh\]{height:100dvh}.h-\[40px\]{height:40px}.h-\[80px\]{height:80px}.h-auto{height:auto}.max-h-\[133px\]{max-height:133px}.max-h-\[70dvh\]{max-height:70dvh}.min-h-\[100px\]{min-height:100px}.w-12{width:3rem}.w-\[100dvw\]{width:100dvw}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[133px\]{max-width:133px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-rotate-45{--tw-rotate:-45deg}.-rotate-45,.rotate-45{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate:45deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-\[4px\]{gap:4px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.\!border-none{border-style:none!important}.border-\[\#d6d8dc\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\[\#e1e3e5\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-black\/40{background-color:rgba(0,0,0,.4)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\[10px\]{padding-left:10px;padding-right:10px}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-\[10px\]{padding-bottom:10px;padding-top:10px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.py-\[20px\]{padding-bottom:20px;padding-top:20px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.pt-\[4px\]{padding-top:4px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.font-bold{font-weight:700}.text-\[\#383c43\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-200{transition-delay:.2s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.hover\:opacity-100:hover{opacity:1}.\[\&_div\]\:hover\:\!opacity-100:hover div{opacity:1!important}.\[\&_img\]\:hover\:shadow-lg:hover img{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.size-\[40px\]{height:40px;width:40px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}
1
+ *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.hidden{display:none}.w-full{width:100%}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mt-\[12px\]{margin-top:12px}.flex{display:flex}.table{display:table}.h-0{height:0}.h-\[40px\]{height:40px}.h-\[80px\]{height:80px}.max-h-\[70dvh\]{max-height:70dvh}.min-h-\[100px\]{min-height:100px}.w-fit{width:fit-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\[\#d6d8dc\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\[\#e1e3e5\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\[10px\]{padding-left:10px;padding-right:10px}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-4{padding-bottom:1rem;padding-top:1rem}.py-\[20px\]{padding-bottom:20px;padding-top:20px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.pt-\[4px\]{padding-top:4px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.font-bold{font-weight:700}.text-\[\#383c43\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.success-card{background-color:#d0e7de;border-color:#a2d0bb;color:#0b3521}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.left-0{left:0}.z-40{z-index:40}.z-50{z-index:50}.float-right{float:right}.mr-\[16px\]{margin-right:16px}.mt-\[16px\]{margin-top:16px}.size-12{height:3rem;width:3rem}.size-full{height:100%;width:100%}.h-1{height:.25rem}.h-\[100dvh\]{height:100dvh}.h-auto{height:auto}.max-h-\[133px\]{max-height:133px}.w-12{width:3rem}.w-\[100dvw\]{width:100dvw}.w-auto{width:auto}.max-w-\[133px\]{max-width:133px}.-rotate-45{--tw-rotate:-45deg}.-rotate-45,.rotate-45{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate:45deg}.cursor-pointer{cursor:pointer}.gap-\[4px\]{gap:4px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.\!border-none{border-style:none!important}.bg-black\/40{background-color:rgba(0,0,0,.4)}.py-\[10px\]{padding-bottom:10px;padding-top:10px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-100{opacity:1}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-200{transition-delay:.2s}.duration-100{transition-duration:.1s}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.hover\:opacity-100:hover{opacity:1}.\[\&_div\]\:hover\:\!opacity-100:hover div{opacity:1!important}.\[\&_img\]\:hover\:shadow-lg:hover img{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.size-\[40px\]{height:40px;width:40px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}
@@ -89,7 +89,7 @@ export class VehicleAccessories {
89
89
  render() {
90
90
  var _a, _b;
91
91
  const accessories = (this === null || this === void 0 ? void 0 : this.vehicleInformation) ? (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.accessories : [];
92
- return (h(Host, { key: '7e5394e3dad05815f3a514a342f7afbe11a8d4c1' }, h("div", { key: '1d3fea9972e6827680908bc1becb9be17a4305db', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '853e8ff5ad5adf557db5805fc6cc841d7ee224d0' }, h(Loading, { key: '46cdabae84cf49eb88b277bf55b45f233cf28021', isLoading: this.state.includes('loading') }), h("div", { key: '948f2861dcf3e7a8b94f84400a75f681f405122a', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: '2b53f6a05b1beab10a9436435969bfc0bc383cae', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '90d5c9e6f1efd3cef3994d2d7ccd6d278d424a76', class: "py-[16px]" }, h("div", { key: '4cd2e9823137e6a7b861fea69f13a6a0343929b2', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '9481a97632f581c0b3ebdf0df9086730d10dfdc1', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '649fa9917501f66fa2380e3557c5e86ad26d7f89', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Vehicle Accessories"), h("div", { key: '262a67208efe49dbb113c7925cf6b6ae835b3f0c', class: "h-0 overflow-auto flex-1" }, !accessories.length && h("div", { key: 'ec443d025b8ca3e50f397ffb1c66e5b280e42f70', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!accessories.length && (h("table", { key: '48d6e63959a8732972b89ca514b72d5677eb4447', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'b9cdc265accdb543d14bacc09756e2a7ac44e6e8', class: "top-0 font-bold z-40 sticky bg-white" }, h("tr", { key: '2951863ff3d03fa9eab980acd348d2ae352cc1b4' }, ['Part Number', 'Description', 'Image'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: '7106dfb61229963e59d800f630a0e351be1d680f' }, accessories.map((accessory, idx) => {
92
+ return (h(Host, { key: 'c3e15f7ea4b5b4177a6ea39b3e1791ca0206c353' }, h("div", { key: '32fa68b52d7777bae7ad86457428075bcc8b1ba7', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'cd0e92a1743a9ab067b0a6fb19231d0e4d145381' }, h(Loading, { key: '3af0292db1134d58c0741c4b1b4dbe1cf969cb22', isLoading: this.state.includes('loading') }), h("div", { key: '52ecf54abe9713f27acb0674bb9e0b51a0069b04', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: '26b8c7fa02f831bb1d58bae0571ec0e46f107510', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '2c9aac9a53cb47d9289966fabdecd1d402869ba3', class: "py-[16px]" }, h("div", { key: '4f290b2884289fbf36347718ef3f578d87be96a7', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '463077e9325d5bb14018bbb4fa1b3c4a9b20e4d1', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '8be664eafbf0ff98d8b773ddc9581c4816da8599', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Vehicle Accessories"), h("div", { key: '340c3067fb9d0f52ff738b2c8af03722668cb1fc', class: "h-0 overflow-auto flex-1" }, !accessories.length && h("div", { key: '9a7df38a041191380041b01967724c0b240ab18a', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!accessories.length && (h("table", { key: '6b8807cd444c3413ecad6ce93a1c098aedf1b8ef', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '36b46237a44977caddfb9bd046cc607dcd0da66c', class: "top-0 font-bold z-40 sticky bg-white" }, h("tr", { key: 'edfbeee6354a1981bfa186e905dd2e080b47cc92' }, ['Part Number', 'Description', 'Image'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: 'd35c16f3e4d32302f2992278ae1cff317c92381f' }, accessories.map((accessory, idx) => {
93
93
  var _a;
94
94
  return (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: accessory.partNumber }, ['partNumber', 'description'].map(key => {
95
95
  var _a;
@@ -99,9 +99,9 @@ export class VehicleAccessories {
99
99
  }), h("td", { class: cn('px-[10px] py-[10px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
100
100
  '!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
101
101
  }) }, h("button", { onClick: ({ target }) => this.openImage(target, accessory.image), class: "shrink-0 relative ring-0 outline-none w-fit mx-auto [&_img]:hover:shadow-lg [&_div]:hover:!opacity-100 cursor-pointer" }, h("div", { class: "absolute flex-col justify-center gap-[4px] size-full flex items-center pointer-events-none hover:opacity-100 rounded-lg opacity-0 bg-black/40 transition-all duration-300" }, h("img", { src: Eye }), h("span", { class: "text-white" }, "Expand")), h("img", { class: "w-auto h-auto max-w-[133px] max-h-[133px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: accessory.image })))));
102
- })), h("div", { key: 'a16654412c64f0811caf281bc9a10b4325143f74', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-50 left-0 opacity-0 bg-black/40 transition-all duration-400', {
102
+ })), h("div", { key: '5bfa1550c43f457339a3d2d7d39d4840a9f13b2c', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-50 left-0 opacity-0 bg-black/40 transition-all duration-400', {
103
103
  'pointer-events-auto opacity-100 delay-200': this.expandedImage,
104
- }) }, h("button", { key: '2a1f6a6de320d464b549be5c8d0955743eab0c1a', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, h("div", { key: '9806406418b9a2588b18a9659a183b494d2dc029', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), h("div", { key: 'e52ccc81db9fad6cde21438bae24ac06ed06d886', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), h("img", { key: '9db20d318e852a02ad255e5dc463d5ffd3135eb5', alt: "", id: "expanded-image", class: "fixed opacity-0 z-50 transition-all rounded-lg" })))))))))));
104
+ }) }, h("button", { key: '074c83d8a0f9b50a71848721286d86104391475b', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, h("div", { key: '94eb63f587e347e325fd076b414e62ff09609b2e', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), h("div", { key: '7168d9abde6893935e20e07deac4a5ec0c7e20a0', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), h("img", { key: 'f963f6dcbed066596ef94c98f7e9406c8cbfab98', alt: "", id: "expanded-image", class: "fixed opacity-0 z-50 transition-all rounded-lg" })))))))))));
105
105
  }
106
106
  static get is() { return "vehicle-accessories"; }
107
107
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1 @@
1
+ *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{display:block}.static{position:static}.hidden{display:none}.w-full{width:100%}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mt-\[12px\]{margin-top:12px}.flex{display:flex}.table{display:table}.h-0{height:0}.h-\[40px\]{height:40px}.h-\[80px\]{height:80px}.max-h-\[70dvh\]{max-height:70dvh}.min-h-\[100px\]{min-height:100px}.w-fit{width:fit-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\[\#d6d8dc\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\[\#e1e3e5\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\[10px\]{padding-left:10px;padding-right:10px}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-4{padding-bottom:1rem;padding-top:1rem}.py-\[20px\]{padding-bottom:20px;padding-top:20px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.pt-\[4px\]{padding-top:4px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.font-bold{font-weight:700}.text-\[\#383c43\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.success-card{background-color:#d0e7de;border-color:#a2d0bb;color:#0b3521}
@@ -0,0 +1,366 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ import { Host, h } from "@stencil/core";
6
+ import cn from "../../global/lib/cn";
7
+ import validateVin from "../../global/lib/validate-vin";
8
+ export class VehicleLookup {
9
+ constructor() {
10
+ this.activeLookupIndex = '0';
11
+ this.baseUrl = '';
12
+ this.isDev = false;
13
+ this.queryString = '';
14
+ this.loadingStateChanged = undefined;
15
+ this.blazorOnLoadingStateChange = '';
16
+ this.wrapperErrorState = '';
17
+ this.errorStateListener = undefined;
18
+ this.blazorErrorStateListener = '';
19
+ this.blazorRef = undefined;
20
+ }
21
+ async componentDidLoad() {
22
+ const vehicleSpecification = this.el.getElementsByTagName('vehicle-specification')[0];
23
+ const vehicleAccessories = this.el.getElementsByTagName('vehicle-accessories')[0];
24
+ const vehicleDetails = this.el.getElementsByTagName('warranty-details')[0];
25
+ const vehicleHistory = this.el.getElementsByTagName('service-history')[0];
26
+ const vehicleThickness = this.el.getElementsByTagName('paint-thickness')[0];
27
+ const vehicleClaim = this.el.getElementsByTagName('dynamic-claim')[0];
28
+ this.componentsList = [vehicleSpecification, vehicleAccessories, vehicleDetails, vehicleHistory, vehicleThickness, vehicleClaim];
29
+ this.componentsList.forEach(element => {
30
+ if (!element)
31
+ return;
32
+ if (this.loadingStateChanged)
33
+ element.loadingStateChange = this.loadingStateChanged;
34
+ element.loadedResponse = newResponse => this.handleLoadData(newResponse, element);
35
+ });
36
+ }
37
+ async errorListener(newState) {
38
+ if (this.errorStateListener)
39
+ this.errorStateListener(newState);
40
+ if (this.blazorRef && this.blazorErrorStateListener)
41
+ this.blazorRef.invokeMethodAsync(this.blazorErrorStateListener, newState);
42
+ }
43
+ async handleLoadingListenerPropChange(newProp) {
44
+ this.componentsList.forEach(element => {
45
+ if (!element)
46
+ return;
47
+ element.loadingStateChange = newProp;
48
+ });
49
+ }
50
+ async handleBlazorLoadingRefChange(loadingInvokeRef) {
51
+ if (this.blazorRef) {
52
+ this.componentsList.forEach(element => {
53
+ if (!element)
54
+ return;
55
+ element.loadingStateChange = newState => this.blazorRef.invokeMethodAsync(loadingInvokeRef, newState);
56
+ });
57
+ }
58
+ }
59
+ async setBlazorRef(newBlazorRef) {
60
+ this.blazorRef = newBlazorRef;
61
+ if (this.blazorOnLoadingStateChange) {
62
+ this.componentsList.forEach(element => {
63
+ if (!element)
64
+ return;
65
+ element.loadingStateChange = newState => this.blazorRef.invokeMethodAsync(this.blazorOnLoadingStateChange, newState);
66
+ });
67
+ }
68
+ }
69
+ async fetchVin(vin, headers = {}) {
70
+ const activeElement = this.componentsList[this.activeLookupIndex] || null;
71
+ this.wrapperErrorState = '';
72
+ if (!activeElement)
73
+ return;
74
+ if (vin == '')
75
+ return (this.wrapperErrorState = 'VIN is required');
76
+ if (!validateVin(vin))
77
+ return (this.wrapperErrorState = 'Invalid VIN');
78
+ activeElement.fetchData(vin, headers);
79
+ }
80
+ async getPageContext() {
81
+ return { componentsList: this.componentsList };
82
+ }
83
+ handleLoadData(newResponse, activeElement) {
84
+ this.componentsList.forEach(element => {
85
+ if (element !== null && element !== activeElement && newResponse)
86
+ element.setData(newResponse);
87
+ });
88
+ }
89
+ render() {
90
+ return (h(Host, { key: 'a4d959364edc8724222e9c86e235c9fea7a841e8' }, h("div", { key: 'a7bb216fab47a8f43eca1869287bcab3ce22abad', class: cn('w-full', { hidden: this.activeLookupIndex !== '0' }) }, h("vehicle-specification", { key: '83b6a1ac41c1c8ebed52eb2e1b80e22cf3a2a682', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), h("div", { key: '206baae65524d3d5f9fc55e16c8be070ddcef2ab', class: cn('w-full', { hidden: this.activeLookupIndex !== '1' }) }, h("vehicle-accessories", { key: '91c6b7efd35569fe9f263ddf03b48dbdb3fff486', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), h("div", { key: 'c0a84686eec26167cffe814decccc2dddef38b44', class: cn('w-full', { hidden: this.activeLookupIndex !== '2' }) }, h("warranty-details", { key: '79e5ca9febb221b5cb6e68f09f8fb62e32ed81a1', "show-ssc": "true", "show-warranty": "true", isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString }, h("slot", { key: '21142a5eba6e79da1a0e0dfe57cea14ca312c6ef' }))), h("div", { key: '9aad6683a820af6bbbf97cfa3caa1459835902da', class: cn('w-full', { hidden: this.activeLookupIndex !== '3' }) }, h("service-history", { key: 'e2347128a60dcb2941043526e37bf61d58353684', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), h("div", { key: 'dd860e09c94add2795aa31d90be25de5974a51d0', class: cn('w-full', { hidden: this.activeLookupIndex !== '4' }) }, h("paint-thickness", { key: '53309a1e95589257164c4cc8e8effa68a5996466', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), h("div", { key: '1a19942869e935d7803877fae4bf6346c63c3011', class: cn('w-full', { hidden: this.activeLookupIndex !== '5' }) }, h("dynamic-claim", { key: 'f3e9bd8e57dda6f3b686ff09b6ec6ac20bb28d93', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString }))));
91
+ }
92
+ static get is() { return "vehicle-lookup"; }
93
+ static get originalStyleUrls() {
94
+ return {
95
+ "$": ["vehicle-lookup.css"]
96
+ };
97
+ }
98
+ static get styleUrls() {
99
+ return {
100
+ "$": ["vehicle-lookup.css"]
101
+ };
102
+ }
103
+ static get properties() {
104
+ return {
105
+ "activeLookupIndex": {
106
+ "type": "string",
107
+ "mutable": false,
108
+ "complexType": {
109
+ "original": "string",
110
+ "resolved": "string",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": true,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": ""
118
+ },
119
+ "attribute": "active-lookup-index",
120
+ "reflect": false,
121
+ "defaultValue": "'0'"
122
+ },
123
+ "baseUrl": {
124
+ "type": "string",
125
+ "mutable": false,
126
+ "complexType": {
127
+ "original": "string",
128
+ "resolved": "string",
129
+ "references": {}
130
+ },
131
+ "required": false,
132
+ "optional": false,
133
+ "docs": {
134
+ "tags": [],
135
+ "text": ""
136
+ },
137
+ "attribute": "base-url",
138
+ "reflect": false,
139
+ "defaultValue": "''"
140
+ },
141
+ "isDev": {
142
+ "type": "boolean",
143
+ "mutable": false,
144
+ "complexType": {
145
+ "original": "boolean",
146
+ "resolved": "boolean",
147
+ "references": {}
148
+ },
149
+ "required": false,
150
+ "optional": false,
151
+ "docs": {
152
+ "tags": [],
153
+ "text": ""
154
+ },
155
+ "attribute": "is-dev",
156
+ "reflect": false,
157
+ "defaultValue": "false"
158
+ },
159
+ "queryString": {
160
+ "type": "string",
161
+ "mutable": false,
162
+ "complexType": {
163
+ "original": "string",
164
+ "resolved": "string",
165
+ "references": {}
166
+ },
167
+ "required": false,
168
+ "optional": false,
169
+ "docs": {
170
+ "tags": [],
171
+ "text": ""
172
+ },
173
+ "attribute": "query-string",
174
+ "reflect": false,
175
+ "defaultValue": "''"
176
+ },
177
+ "loadingStateChanged": {
178
+ "type": "unknown",
179
+ "mutable": false,
180
+ "complexType": {
181
+ "original": "(isLoading: boolean) => void",
182
+ "resolved": "(isLoading: boolean) => void",
183
+ "references": {}
184
+ },
185
+ "required": false,
186
+ "optional": true,
187
+ "docs": {
188
+ "tags": [],
189
+ "text": ""
190
+ }
191
+ },
192
+ "blazorOnLoadingStateChange": {
193
+ "type": "string",
194
+ "mutable": false,
195
+ "complexType": {
196
+ "original": "string",
197
+ "resolved": "string",
198
+ "references": {}
199
+ },
200
+ "required": false,
201
+ "optional": false,
202
+ "docs": {
203
+ "tags": [],
204
+ "text": ""
205
+ },
206
+ "attribute": "blazor-on-loading-state-change",
207
+ "reflect": false,
208
+ "defaultValue": "''"
209
+ },
210
+ "errorStateListener": {
211
+ "type": "unknown",
212
+ "mutable": false,
213
+ "complexType": {
214
+ "original": "(newError: string) => void",
215
+ "resolved": "(newError: string) => void",
216
+ "references": {}
217
+ },
218
+ "required": false,
219
+ "optional": true,
220
+ "docs": {
221
+ "tags": [],
222
+ "text": ""
223
+ }
224
+ },
225
+ "blazorErrorStateListener": {
226
+ "type": "string",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "string",
230
+ "resolved": "string",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": ""
238
+ },
239
+ "attribute": "blazor-error-state-listener",
240
+ "reflect": false,
241
+ "defaultValue": "''"
242
+ }
243
+ };
244
+ }
245
+ static get states() {
246
+ return {
247
+ "wrapperErrorState": {},
248
+ "blazorRef": {}
249
+ };
250
+ }
251
+ static get methods() {
252
+ return {
253
+ "setBlazorRef": {
254
+ "complexType": {
255
+ "signature": "(newBlazorRef: DotNetObjectReference) => Promise<void>",
256
+ "parameters": [{
257
+ "name": "newBlazorRef",
258
+ "type": "{ invokeMethodAsync: (methodName: string, ...args: any[]) => Promise<any>; }",
259
+ "docs": ""
260
+ }],
261
+ "references": {
262
+ "Promise": {
263
+ "location": "global",
264
+ "id": "global::Promise"
265
+ },
266
+ "DotNetObjectReference": {
267
+ "location": "import",
268
+ "path": "~types/components",
269
+ "id": "src/global/types/components.ts::DotNetObjectReference"
270
+ }
271
+ },
272
+ "return": "Promise<void>"
273
+ },
274
+ "docs": {
275
+ "text": "",
276
+ "tags": []
277
+ }
278
+ },
279
+ "fetchVin": {
280
+ "complexType": {
281
+ "signature": "(vin: string, headers?: any) => Promise<\"VIN is required\" | \"Invalid VIN\">",
282
+ "parameters": [{
283
+ "name": "vin",
284
+ "type": "string",
285
+ "docs": ""
286
+ }, {
287
+ "name": "headers",
288
+ "type": "any",
289
+ "docs": ""
290
+ }],
291
+ "references": {
292
+ "Promise": {
293
+ "location": "global",
294
+ "id": "global::Promise"
295
+ }
296
+ },
297
+ "return": "Promise<\"VIN is required\" | \"Invalid VIN\">"
298
+ },
299
+ "docs": {
300
+ "text": "",
301
+ "tags": []
302
+ }
303
+ },
304
+ "getPageContext": {
305
+ "complexType": {
306
+ "signature": "() => Promise<{ componentsList: [VehicleSpecification, VehicleAccessories, WarrantyDetails, ServiceHistory, PaintThickness, DynamicClaim]; }>",
307
+ "parameters": [],
308
+ "references": {
309
+ "Promise": {
310
+ "location": "global",
311
+ "id": "global::Promise"
312
+ },
313
+ "VehicleSpecification": {
314
+ "location": "import",
315
+ "path": "components/vehicle-specification/vehicle-specification",
316
+ "id": "src/components/vehicle-specification/vehicle-specification.tsx::VehicleSpecification"
317
+ },
318
+ "VehicleAccessories": {
319
+ "location": "import",
320
+ "path": "components/vehicle-accessories/vehicle-accessories",
321
+ "id": "src/components/vehicle-accessories/vehicle-accessories.tsx::VehicleAccessories"
322
+ },
323
+ "WarrantyDetails": {
324
+ "location": "import",
325
+ "path": "components/warranty-details/warranty-details",
326
+ "id": "src/components/warranty-details/warranty-details.tsx::WarrantyDetails"
327
+ },
328
+ "ServiceHistory": {
329
+ "location": "import",
330
+ "path": "components/service-history/service-history",
331
+ "id": "src/components/service-history/service-history.tsx::ServiceHistory"
332
+ },
333
+ "PaintThickness": {
334
+ "location": "import",
335
+ "path": "components/paint-thickness/paint-thickness",
336
+ "id": "src/components/paint-thickness/paint-thickness.tsx::PaintThickness"
337
+ },
338
+ "DynamicClaim": {
339
+ "location": "import",
340
+ "path": "components/dynamic-claim/dynamic-claim",
341
+ "id": "src/components/dynamic-claim/dynamic-claim.tsx::DynamicClaim"
342
+ }
343
+ },
344
+ "return": "Promise<{ componentsList: [VehicleSpecification, VehicleAccessories, WarrantyDetails, ServiceHistory, PaintThickness, DynamicClaim]; }>"
345
+ },
346
+ "docs": {
347
+ "text": "",
348
+ "tags": []
349
+ }
350
+ }
351
+ };
352
+ }
353
+ static get elementRef() { return "el"; }
354
+ static get watchers() {
355
+ return [{
356
+ "propName": "wrapperErrorState",
357
+ "methodName": "errorListener"
358
+ }, {
359
+ "propName": "onLoadingStateChanged",
360
+ "methodName": "handleLoadingListenerPropChange"
361
+ }, {
362
+ "propName": "blazorOnLoadingStateChange",
363
+ "methodName": "handleBlazorLoadingRefChange"
364
+ }];
365
+ }
366
+ }