adp-web-components 0.0.11 → 0.0.13

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 (90) hide show
  1. package/dist/cjs/dead-stock-lookup.cjs.entry.js +27 -15
  2. package/dist/cjs/distributor-lookup.cjs.entry.js +30 -20
  3. package/dist/cjs/dynamic-claim.cjs.entry.js +7 -7
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/manufacturer-lookup.cjs.entry.js +7 -20
  6. package/dist/cjs/paint-thickness.cjs.entry.js +8 -21
  7. package/dist/cjs/{partInformation-2a6a018b.js → partInformation-07651204.js} +2 -2
  8. package/dist/cjs/service-history.cjs.entry.js +6 -19
  9. package/dist/cjs/shift-components.cjs.js +1 -1
  10. package/dist/cjs/vehicle-accessories.cjs.entry.js +8 -21
  11. package/dist/cjs/vehicle-specification.cjs.entry.js +6 -19
  12. package/dist/cjs/{vehicleInformation-4c1dcaf2.js → vehicleInformation-35c470fc.js} +5 -5
  13. package/dist/cjs/warranty-details.cjs.entry.js +10 -34
  14. package/dist/collection/components/dynamic-claim/dynamic-claim.js +16 -8
  15. package/dist/collection/components/paint-thickness/paint-thickness.js +17 -22
  16. package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
  17. package/dist/collection/components/part-lookup/dead-stock-lookup.js +49 -30
  18. package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
  19. package/dist/collection/components/part-lookup/distributor-lookup.js +39 -21
  20. package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
  21. package/dist/collection/components/part-lookup/manufacturer-lookup.js +16 -21
  22. package/dist/collection/components/service-history/service-history.js +15 -20
  23. package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +17 -22
  24. package/dist/collection/components/vehicle-specification/vehicle-specification.js +15 -20
  25. package/dist/collection/components/warranty-details/warranty-details.js +21 -40
  26. package/dist/collection/global/api/partInformation.js +2 -2
  27. package/dist/collection/global/api/vehicleInformation.js +5 -5
  28. package/dist/collection/templates/vehicle-lookup.js +163 -96
  29. package/dist/components/dead-stock-lookup.js +1 -1
  30. package/dist/components/distributor-lookup.js +1 -1
  31. package/dist/components/dynamic-claim.js +1 -1
  32. package/dist/components/manufacturer-lookup.js +1 -1
  33. package/dist/components/p-4f08bcb8.js +5 -0
  34. package/dist/components/p-c4fad245.js +5 -0
  35. package/dist/components/paint-thickness.js +1 -1
  36. package/dist/components/service-history.js +1 -1
  37. package/dist/components/vehicle-accessories.js +1 -1
  38. package/dist/components/vehicle-specification.js +1 -1
  39. package/dist/components/warranty-details.js +1 -1
  40. package/dist/esm/dead-stock-lookup.entry.js +27 -15
  41. package/dist/esm/distributor-lookup.entry.js +30 -20
  42. package/dist/esm/dynamic-claim.entry.js +7 -7
  43. package/dist/esm/loader.js +1 -1
  44. package/dist/esm/manufacturer-lookup.entry.js +7 -20
  45. package/dist/esm/paint-thickness.entry.js +8 -21
  46. package/dist/esm/{partInformation-73ece994.js → partInformation-096a8f55.js} +2 -2
  47. package/dist/esm/service-history.entry.js +6 -19
  48. package/dist/esm/shift-components.js +1 -1
  49. package/dist/esm/vehicle-accessories.entry.js +8 -21
  50. package/dist/esm/vehicle-specification.entry.js +6 -19
  51. package/dist/esm/{vehicleInformation-f1081f83.js → vehicleInformation-f7290628.js} +5 -5
  52. package/dist/esm/warranty-details.entry.js +10 -34
  53. package/dist/shift-components/p-4f08bcb8.js +5 -0
  54. package/dist/shift-components/p-6b21ce2d.entry.js +5 -0
  55. package/dist/shift-components/p-7d85e912.entry.js +5 -0
  56. package/dist/shift-components/p-7f258017.entry.js +5 -0
  57. package/dist/shift-components/p-9653e992.entry.js +5 -0
  58. package/dist/shift-components/p-c4fad245.js +5 -0
  59. package/dist/shift-components/p-ca1e2e5b.entry.js +5 -0
  60. package/dist/shift-components/p-d1b9cd93.entry.js +5 -0
  61. package/dist/shift-components/p-d6f40c8d.entry.js +5 -0
  62. package/dist/shift-components/p-e05acce1.entry.js +5 -0
  63. package/dist/shift-components/p-faa8070a.entry.js +5 -0
  64. package/dist/shift-components/shift-components.esm.js +1 -1
  65. package/dist/types/components/dynamic-claim/dynamic-claim.d.ts +2 -2
  66. package/dist/types/components/paint-thickness/paint-thickness.d.ts +2 -2
  67. package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +4 -5
  68. package/dist/types/components/part-lookup/distributor-lookup.d.ts +2 -2
  69. package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +2 -2
  70. package/dist/types/components/service-history/service-history.d.ts +2 -2
  71. package/dist/types/components/vehicle-accessories/vehicle-accessories.d.ts +2 -2
  72. package/dist/types/components/vehicle-specification/vehicle-specification.d.ts +2 -2
  73. package/dist/types/components/warranty-details/warranty-details.d.ts +3 -4
  74. package/dist/types/components.d.ts +18 -18
  75. package/dist/types/global/api/partInformation.d.ts +1 -1
  76. package/dist/types/global/api/vehicleInformation.d.ts +1 -1
  77. package/package.json +1 -1
  78. package/dist/components/p-5df9bc5f.js +0 -5
  79. package/dist/components/p-d265c109.js +0 -5
  80. package/dist/shift-components/p-15f86441.entry.js +0 -5
  81. package/dist/shift-components/p-1ae3a61f.entry.js +0 -5
  82. package/dist/shift-components/p-5df9bc5f.js +0 -5
  83. package/dist/shift-components/p-8c261972.entry.js +0 -5
  84. package/dist/shift-components/p-9bd4471c.entry.js +0 -5
  85. package/dist/shift-components/p-9f790b14.entry.js +0 -5
  86. package/dist/shift-components/p-c113792c.entry.js +0 -5
  87. package/dist/shift-components/p-d265c109.js +0 -5
  88. package/dist/shift-components/p-dc9845ed.entry.js +0 -5
  89. package/dist/shift-components/p-e32b0798.entry.js +0 -5
  90. package/dist/shift-components/p-f759c597.entry.js +0 -5
@@ -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}.success{color:green}.warning{color:orange}.reject{color:red}.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-\[40px\]{height:40px}.max-h-\[70dvh\]{max-height:70dvh}.min-h-\[100px\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.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-\[16px\]{padding-bottom:16px;padding-top:16px}.py-\[20px\]{padding-bottom:20px;padding-top:20px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.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))}.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)}.filter{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)}.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}.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-\[40px\]{height:40px}.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}.gap-\[15px\]{gap:15px}.gap-\[50px\]{gap:50px}.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))}.border-b-\[gray\],.border-b-\[grey\]{--tw-border-opacity:1;border-bottom-color:rgb(128 128 128/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-0{padding-left:0;padding-right:0}.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}.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-\[green\]{--tw-text-opacity:1;color:rgb(0 128 0/var(--tw-text-opacity,1))}.text-\[orange\]{--tw-text-opacity:1;color:rgb(255 165 0/var(--tw-text-opacity,1))}.text-\[red\]{--tw-text-opacity:1;color:rgb(255 0 0/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}.last\:border-none:last-child{border-style:none}.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}
@@ -22,7 +22,7 @@ export class DistributorLookup {
22
22
  handleSettingData(response) {
23
23
  this.partInformation = response;
24
24
  }
25
- async setData(newData) {
25
+ async setData(newData, headers = {}) {
26
26
  clearTimeout(this.networkTimeoutRef);
27
27
  if (this.abortController)
28
28
  this.abortController.abort();
@@ -33,7 +33,6 @@ export class DistributorLookup {
33
33
  this.externalPartNumber = partNumber;
34
34
  try {
35
35
  if (!partNumber || partNumber.trim().length === 0) {
36
- //this.componentHeight = '0px';
37
36
  this.state = 'idle';
38
37
  return;
39
38
  }
@@ -46,7 +45,7 @@ export class DistributorLookup {
46
45
  scopedTimeoutRef = setTimeout(r, 700);
47
46
  this.networkTimeoutRef = scopedTimeoutRef;
48
47
  });
49
- const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }) : newData;
48
+ const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }, headers) : newData;
50
49
  if (this.networkTimeoutRef === scopedTimeoutRef) {
51
50
  if (!partResponse)
52
51
  throw new Error('Wrong response format');
@@ -63,22 +62,10 @@ export class DistributorLookup {
63
62
  this.errorMessage = error.message;
64
63
  }
65
64
  }
66
- async fetchData(requestedVin = this.externalPartNumber) {
67
- await this.setData(requestedVin);
65
+ async fetchData(partNumber = this.externalPartNumber, headers = {}) {
66
+ await this.setData(partNumber, headers);
68
67
  }
69
- //calculateHeight(componentState: string) {
70
- // if (componentState.includes('loading') && this.componentHeight === '0px') {
71
- // this.componentHeight = '100px';
72
- // } else if (componentState !== 'idle') {
73
- // setTimeout(() => {
74
- // this.componentHeight = `${this.wrapperRef.clientHeight}px`;
75
- // }, 50);
76
- // } else {
77
- // this.componentHeight = '0px';
78
- // }
79
- //}
80
68
  async loadingListener() {
81
- //this.calculateHeight(newState);
82
69
  if (this.loadingStateChange)
83
70
  this.loadingStateChange(this.state.includes('loading'));
84
71
  }
@@ -87,7 +74,30 @@ export class DistributorLookup {
87
74
  }
88
75
  render() {
89
76
  var _a;
90
- return (h(Host, { key: '18e46bdaf73c1ac0b573a2a4c97eec437c44f9a4' }, h("div", { key: 'a69764ce918ebca3af36753836ef22ce1c8227d9', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '5ba603889723dbc2528c612f5df58c206cf4533d' }, h(Loading, { key: 'cebbe7720704e21b856e41edf33d5cdadf3e725b', isLoading: this.state.includes('loading') }), h("div", { key: '7569221713c28ab7d5d507e94af061510b1557ed', 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: '36ab68ce1ea56088fb75744add097325a12d4d04', class: "py-[16px]" }, h("div", { key: 'd21534b379eb44769c496a271e74ba7c10ed9041', 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: 'feeaf7618048313e0bbe7ac65d9bd3931a527599' }, h("div", { key: '810ba6e23698d801ad55ae0f96019b203c1e319b', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '30202f2756157e2c8d8fc187b16c6dab20789075', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Info"), h("div", { key: 'b3955a1639641a3a8e1d0ae11be53abd665d4121', style: { padding: '10px 30px', display: 'flex', flexDirection: 'column', gap: '15px' } }, h("div", { key: 'fb814db44447289a77368611768c44bdcebb7e85', style: { display: 'flex', gap: '50px' } }, h("div", { key: 'bd68069b67a5164e96eb028f4915b63b197a5667', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, h("strong", { key: '741695e764371b9737b90761c3e34d78e93fbc78', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Description"), h("div", { key: 'ff6fb20e5ab5bce00076b0e85a0297b7a036fb07', style: { padding: '10px 0px' } }, this.partInformation.stockParts[0].partDescription)), h("div", { key: '2b1f7aaf60c75a9d32a68da96cc8d8b7cfd6d27e', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, h("strong", { key: '9b7e58c0de6a48df4fbd5ce46ffaf77e7c709aa4', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Product Group"), h("div", { key: '904c2dfdefd7d1874e221fcfdf19074bbbb7543f', style: { padding: '10px 0px' } }, this.partInformation.stockParts[0].group)), h("div", { key: '1e61388e66c73e27ce5592350b4f6ff8dd902e2a', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, h("strong", { key: 'd0eb902d9f017f378394a79986b7713b67c28eba', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Price"), h("div", { key: '50721e8cae1a9091288262ee5c27542766381720', style: { padding: '10px 0px' } }, this.partInformation.stockParts[0].price))), h("div", { key: 'fa0f96a7c34c1eb3aad0afb3a75d2067e0441544', style: { display: 'flex', gap: '50px' } }, h("div", { key: '1c955aed56abf94ba1596d4db2fa767d872eefc2', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, h("strong", { key: 'ffb39000255ae820dc0c38a11520d96dc949f2ff', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Superseded To"), h("div", { key: '115754c8e1cf584f43333341bed83ebd2e8890a5', style: { padding: '10px 0px' } }, this.partInformation.stockParts[0].supersededTo)), h("div", { key: '6acaf301536e37a6f2b0002ed15bce62105ab37c', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, h("strong", { key: '3465f5aa0fc85a9ef1d554872a711986e80a4894', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Superseded From"), h("div", { key: 'a3146550e676e90ed3a7b2290d5590bd1c631707', style: { padding: '10px 0px' } }, this.partInformation.stockParts[0].supersededFrom)), h("div", { key: '0461b4ceca6f9e5d742561c557449a94e82c0e2c', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } })))), this.partInformation.stockParts.filter(y => { return y.quantityLookUpResult === 'LookupIsSkipped' || y.quantityLookUpResult === 'QuantityNotWithinLookupThreshold'; }).length === 0 && (h("div", { key: '91ee29017615ce40d5fdf44004676a97b0af1b59', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '6440991aeaa1be892831505e53a396f825b2f571', 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: 'b3bc251de59876fa04a70a4b368683c0a990c758', style: { padding: '10px 30px', display: 'flex', flexDirection: 'column', gap: '15px' } }, h("table", { key: 'e0deafdbda85e2cb9b46f97dc924fec6b2660f58', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '535589783511c833d9675f1131d9be565e52443f', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '9fa39b30a8786c04bf1e6fbbb4a8552fe699814f' }, ['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: '9d58d281010f2b32c28db6495e55c0602b10724c' }, (_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.stockParts.map((stock) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: stock.locationID }, h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]') }, stock.locationName), h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]') }, h("div", { class: stock.quantityLookUpResult === 'Available' ? 'success' : stock.quantityLookUpResult === 'PartiallyAvailable' ? 'warning' : 'reject' }, h("strong", null, stock.quantityLookUpResult === 'Available' ? 'Available' : stock.quantityLookUpResult === 'PartiallyAvailable' ? 'Partially Available' : 'Not Available'))))))))))))))))));
77
+ const infoRow1 = this.partInformation
78
+ ? [
79
+ { label: 'Description', value: this.partInformation.stockParts[0].partDescription },
80
+ { label: 'Product Group', value: this.partInformation.stockParts[0].group },
81
+ { label: 'Price', value: this.partInformation.stockParts[0].price },
82
+ ]
83
+ : [];
84
+ const infoRow2 = this.partInformation
85
+ ? [
86
+ { label: 'Superseded To', value: this.partInformation.stockParts[0].supersededTo },
87
+ { label: 'Superseded From', value: this.partInformation.stockParts[0].supersededFrom },
88
+ ]
89
+ : [];
90
+ const displayDistributer = this.partInformation
91
+ ? !this.partInformation.stockParts.some(({ quantityLookUpResult }) => quantityLookUpResult === 'LookupIsSkipped' || quantityLookUpResult === 'QuantityNotWithinLookupThreshold')
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]', {
94
+ 'text-[green]': stock.quantityLookUpResult === 'Available',
95
+ 'text-[orange]': stock.quantityLookUpResult === 'PartiallyAvailable',
96
+ }) }, h("strong", null, stock.quantityLookUpResult === 'Available'
97
+ ? 'Available'
98
+ : stock.quantityLookUpResult === 'PartiallyAvailable'
99
+ ? 'Partially Available'
100
+ : 'Not Available'))))))))))))))))));
91
101
  }
92
102
  static get is() { return "distributor-lookup"; }
93
103
  static get encapsulation() { return "shadow"; }
@@ -207,11 +217,15 @@ export class DistributorLookup {
207
217
  return {
208
218
  "setData": {
209
219
  "complexType": {
210
- "signature": "(newData: PartInformation | string) => Promise<void>",
220
+ "signature": "(newData: PartInformation | string, headers?: any) => Promise<void>",
211
221
  "parameters": [{
212
222
  "name": "newData",
213
223
  "type": "string | PartInformation",
214
224
  "docs": ""
225
+ }, {
226
+ "name": "headers",
227
+ "type": "any",
228
+ "docs": ""
215
229
  }],
216
230
  "references": {
217
231
  "Promise": {
@@ -237,11 +251,15 @@ export class DistributorLookup {
237
251
  },
238
252
  "fetchData": {
239
253
  "complexType": {
240
- "signature": "(requestedVin?: string) => Promise<void>",
254
+ "signature": "(partNumber?: string, headers?: any) => Promise<void>",
241
255
  "parameters": [{
242
- "name": "requestedVin",
256
+ "name": "partNumber",
243
257
  "type": "string",
244
258
  "docs": ""
259
+ }, {
260
+ "name": "headers",
261
+ "type": "any",
262
+ "docs": ""
245
263
  }],
246
264
  "references": {
247
265
  "Promise": {
@@ -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}.success{color:green}.warning{color:orange}.reject{color:red}.static{position:static}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.mt-\[12px\]{margin-top:12px}.flex{display:flex}.h-\[40px\]{height:40px}.max-h-\[70dvh\]{max-height:70dvh}.min-h-\[100px\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.shrink-0{flex-shrink:0}.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-hidden{overflow:hidden}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.border{border-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))}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[\#383c43\]{--tw-text-opacity:1;color:rgb(56 60 67/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}.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}.duration-100{transition-duration:.1s}
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}.mx-auto{margin-left:auto;margin-right:auto}.mt-\[12px\]{margin-top:12px}.flex{display:flex}.h-\[40px\]{height:40px}.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}.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}.gap-\[15px\]{gap:15px}.gap-\[50px\]{gap:50px}.overflow-hidden{overflow:hidden}.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))}.border-b-\[grey\]{--tw-border-opacity:1;border-bottom-color:rgb(128 128 128/var(--tw-border-opacity,1))}.bg-\[\#e1e3e5\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.px-\[16px\]{padding-left:16px;padding-right:16px}.px-\[30px\]{padding-left:30px;padding-right:30px}.py-\[10px\]{padding-bottom:10px;padding-top:10px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[\#383c43\]{--tw-text-opacity:1;color:rgb(56 60 67/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}.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}.duration-100{transition-duration:.1s}
@@ -23,7 +23,7 @@ export class ManufacturerLookup {
23
23
  handleSettingData(response) {
24
24
  this.partInformation = response;
25
25
  }
26
- async setData(newData) {
26
+ async setData(newData, headers = {}) {
27
27
  clearTimeout(this.networkTimeoutRef);
28
28
  if (this.abortController)
29
29
  this.abortController.abort();
@@ -34,7 +34,6 @@ export class ManufacturerLookup {
34
34
  this.externalPartNumber = partNumber;
35
35
  try {
36
36
  if (!partNumber || partNumber.trim().length === 0) {
37
- //this.componentHeight = '0px';
38
37
  this.state = 'idle';
39
38
  return;
40
39
  }
@@ -47,7 +46,7 @@ export class ManufacturerLookup {
47
46
  scopedTimeoutRef = setTimeout(r, 700);
48
47
  this.networkTimeoutRef = scopedTimeoutRef;
49
48
  });
50
- const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }) : newData;
49
+ const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }, headers) : newData;
51
50
  if (this.networkTimeoutRef === scopedTimeoutRef) {
52
51
  if (!partResponse)
53
52
  throw new Error('Wrong response format');
@@ -64,22 +63,10 @@ export class ManufacturerLookup {
64
63
  this.errorMessage = error.message;
65
64
  }
66
65
  }
67
- async fetchData(requestedVin = this.externalPartNumber) {
68
- await this.setData(requestedVin);
66
+ async fetchData(partNumber = this.externalPartNumber, headers = {}) {
67
+ await this.setData(partNumber, headers);
69
68
  }
70
- //calculateHeight(componentState: string) {
71
- // if (componentState.includes('loading') && this.componentHeight === '0px') {
72
- // this.componentHeight = '100px';
73
- // } else if (componentState !== 'idle') {
74
- // setTimeout(() => {
75
- // this.componentHeight = `${this.wrapperRef.clientHeight}px`;
76
- // }, 50);
77
- // } else {
78
- // this.componentHeight = '0px';
79
- // }
80
- //}
81
69
  async loadingListener() {
82
- //this.calculateHeight(newState);
83
70
  if (this.loadingStateChange)
84
71
  this.loadingStateChange(this.state.includes('loading'));
85
72
  }
@@ -87,7 +74,7 @@ export class ManufacturerLookup {
87
74
  mockData = newMockData;
88
75
  }
89
76
  render() {
90
- return (h(Host, { key: '1a36762a66d4488c9141559041b011e43596f0a7' }, h("div", { key: 'e3bff7e899e2eef1a3ec2ae9e0656e7e952ab71a', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'cb58724e4fabee9964e4406ac7644612a30eb213' }, h(Loading, { key: '0c72c281bb566935736b07ec338d72359719511d', isLoading: this.state.includes('loading') }), h("div", { key: '72801178e4be5d4ca64a9e6b884f6cedbc0528a6', 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: 'db043ec989d9de0810e970f9f67b453e84b1f1db', class: "py-[16px]" }, h("div", { key: '25205f5b3d1bcd96d63ef3c33c89d61316a91db3', 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: '1e8c439d38a58588176ab12718d7e5ac290fe1aa' }, h("div", { key: 'c7ef0a2f55e0c5c8d2ed95ba5bc1f47f20307261', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '6246d5011ac1b6124a6f82839c942a24f5deb063', 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: '327ba973b69ea596c63d7c810c0cdf6b8bf7b067', style: { padding: '10px 30px', display: 'flex', flexDirection: 'column', gap: '15px' } }, h("div", { key: 'bde2099739e9f74da428d6df7b438d4a868a1caa', style: { display: 'flex', gap: '50px' } }, h("div", { key: '41a251e2f73aeb2f6f8c52cc12874c978eb30a7b', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, h("strong", { key: '1c538fe46397535aed87b98c053bd704869ba6e0', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Description"), h("div", { key: '013bf46fa8e77a421e5e4ccdd3787559ba3da6ee', style: { padding: '10px 0px' } }, this.partInformation.tmcPart.partDescription)), h("div", { key: '745adc8f9f294afc6e6b0ea4cac74c12d0b93c4e', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } }, h("strong", { key: 'f9c4a5cdc2b005f1f23e58fa6dd765a45132fec3', style: { padding: '10px 0', borderBottom: '1px solid grey', } }, "Product Group"), h("div", { key: '79561156dcce3b1c3281a11da39583f5ec14c289', style: { padding: '10px 0px' } }, this.partInformation.tmcPart.group)), h("div", { key: '8f2d47ab6a50f44d96b99bffd04ed80a35a805ab', style: { display: 'flex', flexDirection: 'column', 'flex': '1' } })))))))))));
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" })))))))))));
91
78
  }
92
79
  static get is() { return "manufacturer-lookup"; }
93
80
  static get encapsulation() { return "shadow"; }
@@ -225,11 +212,15 @@ export class ManufacturerLookup {
225
212
  return {
226
213
  "setData": {
227
214
  "complexType": {
228
- "signature": "(newData: PartInformation | string) => Promise<void>",
215
+ "signature": "(newData: PartInformation | string, headers?: any) => Promise<void>",
229
216
  "parameters": [{
230
217
  "name": "newData",
231
218
  "type": "string | PartInformation",
232
219
  "docs": ""
220
+ }, {
221
+ "name": "headers",
222
+ "type": "any",
223
+ "docs": ""
233
224
  }],
234
225
  "references": {
235
226
  "Promise": {
@@ -255,11 +246,15 @@ export class ManufacturerLookup {
255
246
  },
256
247
  "fetchData": {
257
248
  "complexType": {
258
- "signature": "(requestedVin?: string) => Promise<void>",
249
+ "signature": "(partNumber?: string, headers?: any) => Promise<void>",
259
250
  "parameters": [{
260
- "name": "requestedVin",
251
+ "name": "partNumber",
261
252
  "type": "string",
262
253
  "docs": ""
254
+ }, {
255
+ "name": "headers",
256
+ "type": "any",
257
+ "docs": ""
263
258
  }],
264
259
  "references": {
265
260
  "Promise": {
@@ -24,7 +24,7 @@ export class ServiceHistory {
24
24
  response.serviceHistory = [];
25
25
  this.vehicleInformation = response;
26
26
  }
27
- async setData(newData) {
27
+ async setData(newData, headers = {}) {
28
28
  clearTimeout(this.networkTimeoutRef);
29
29
  if (this.abortController)
30
30
  this.abortController.abort();
@@ -35,7 +35,6 @@ export class ServiceHistory {
35
35
  this.externalVin = vin;
36
36
  try {
37
37
  if (!vin || vin.trim().length === 0) {
38
- //this.componentHeight = '0px';
39
38
  this.state = 'idle';
40
39
  return;
41
40
  }
@@ -48,7 +47,7 @@ export class ServiceHistory {
48
47
  scopedTimeoutRef = setTimeout(r, 700);
49
48
  this.networkTimeoutRef = scopedTimeoutRef;
50
49
  });
51
- const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }) : newData;
50
+ const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
52
51
  if (this.networkTimeoutRef === scopedTimeoutRef) {
53
52
  if (!vehicleResponse)
54
53
  throw new Error('Wrong response format');
@@ -65,22 +64,10 @@ export class ServiceHistory {
65
64
  this.errorMessage = error.message;
66
65
  }
67
66
  }
68
- async fetchData(requestedVin = this.externalVin) {
69
- await this.setData(requestedVin);
67
+ async fetchData(requestedVin = this.externalVin, headers = {}) {
68
+ await this.setData(requestedVin, headers);
70
69
  }
71
- //calculateHeight(componentState: string) {
72
- // if (componentState.includes('loading') && this.componentHeight === '0px') {
73
- // this.componentHeight = '100px';
74
- // } else if (componentState !== 'idle') {
75
- // setTimeout(() => {
76
- // this.componentHeight = `${this.wrapperRef.clientHeight}px`;
77
- // }, 50);
78
- // } else {
79
- // this.componentHeight = '0px';
80
- // }
81
- //}
82
70
  async loadingListener() {
83
- //this.calculateHeight(newState);
84
71
  if (this.loadingStateChange)
85
72
  this.loadingStateChange(this.state.includes('loading'));
86
73
  }
@@ -89,7 +76,7 @@ export class ServiceHistory {
89
76
  }
90
77
  render() {
91
78
  var _a, _b, _c, _d;
92
- return (h(Host, { key: '75e08200e1ec78b560e01f487445a7c315dc0580' }, h("div", { key: 'f092c1e2bae0fb547f517bb02c7435c772166de6', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'd84b80cbfd9dd01c1183620d1584490c082f5a53' }, h(Loading, { key: '1a40343cff4d7b915e136a648b87d70aec707b1f', isLoading: this.state.includes('loading') }), h("div", { key: 'be2472312b50e070b6777e434bc646ef17f9e83b', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: 'f38d29f64f808b111fbcd867bb0f44e0744e2ebb', 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: '1f55d67a3fe663597bda3feefb2fad591561672d', class: "py-[16px]" }, h("div", { key: '62d77dca0e4bc4d59695e21896628e0b9ad7b665', 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: '629166ddd95de4a0d53a796080dfcff142ff916a', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '0ae9ca43d4b28857e284a85b3972435ef04ef52c', 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: 'dd17e99672d4bac232205374e30e94aeda34e3f5', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.serviceHistory.length) && h("div", { key: '55c2612215bf0518de501279d20096211842b606', 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: '8e9a42bd52b0c817d44235aab22bc4db2fad5362', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '1d49f4d6085fcb1dab4f9ab4b093605ba9f38511', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '2eaea4ec1577c03e5316fb62bbeb442c586dfe74' }, ['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: '210907b78fec19f688535fb34b316897c9bb2b8f' }, (_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: '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 => {
93
80
  var _a;
94
81
  return (h("td", { key: service.invoiceNumber + serviceType, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
95
82
  '!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
@@ -214,11 +201,15 @@ export class ServiceHistory {
214
201
  return {
215
202
  "setData": {
216
203
  "complexType": {
217
- "signature": "(newData: VehicleInformation | string) => Promise<void>",
204
+ "signature": "(newData: VehicleInformation | string, headers?: any) => Promise<void>",
218
205
  "parameters": [{
219
206
  "name": "newData",
220
207
  "type": "string | VehicleInformation",
221
208
  "docs": ""
209
+ }, {
210
+ "name": "headers",
211
+ "type": "any",
212
+ "docs": ""
222
213
  }],
223
214
  "references": {
224
215
  "Promise": {
@@ -244,11 +235,15 @@ export class ServiceHistory {
244
235
  },
245
236
  "fetchData": {
246
237
  "complexType": {
247
- "signature": "(requestedVin?: string) => Promise<void>",
238
+ "signature": "(requestedVin?: string, headers?: any) => Promise<void>",
248
239
  "parameters": [{
249
240
  "name": "requestedVin",
250
241
  "type": "string",
251
242
  "docs": ""
243
+ }, {
244
+ "name": "headers",
245
+ "type": "any",
246
+ "docs": ""
252
247
  }],
253
248
  "references": {
254
249
  "Promise": {
@@ -36,7 +36,7 @@ export class VehicleAccessories {
36
36
  response.accessories = [];
37
37
  this.vehicleInformation = response;
38
38
  }
39
- async setData(newData) {
39
+ async setData(newData, headers = {}) {
40
40
  clearTimeout(this.networkTimeoutRef);
41
41
  if (this.abortController)
42
42
  this.abortController.abort();
@@ -47,7 +47,6 @@ export class VehicleAccessories {
47
47
  this.externalVin = vin;
48
48
  try {
49
49
  if (!vin || vin.trim().length === 0) {
50
- //this.componentHeight = '0px';
51
50
  this.state = 'idle';
52
51
  return;
53
52
  }
@@ -60,7 +59,7 @@ export class VehicleAccessories {
60
59
  scopedTimeoutRef = setTimeout(r, 700);
61
60
  this.networkTimeoutRef = scopedTimeoutRef;
62
61
  });
63
- const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }) : newData;
62
+ const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
64
63
  if (this.networkTimeoutRef === scopedTimeoutRef) {
65
64
  if (!vehicleResponse)
66
65
  throw new Error('Wrong response format');
@@ -77,22 +76,10 @@ export class VehicleAccessories {
77
76
  this.errorMessage = error.message;
78
77
  }
79
78
  }
80
- async fetchData(requestedVin = this.externalVin) {
81
- await this.setData(requestedVin);
79
+ async fetchData(requestedVin = this.externalVin, headers = {}) {
80
+ await this.setData(requestedVin, headers);
82
81
  }
83
- //calculateHeight(componentState: string) {
84
- // if (componentState.includes('loading') && this.componentHeight === '0px') {
85
- // this.componentHeight = '100px';
86
- // } else if (componentState !== 'idle') {
87
- // setTimeout(() => {
88
- // this.componentHeight = `${this.wrapperRef.clientHeight}px`;
89
- // }, 50);
90
- // } else {
91
- // this.componentHeight = '0px';
92
- // }
93
- //}
94
82
  async loadingListener() {
95
- //this.calculateHeight(newState);
96
83
  if (this.loadingStateChange)
97
84
  this.loadingStateChange(this.state.includes('loading'));
98
85
  }
@@ -102,7 +89,7 @@ export class VehicleAccessories {
102
89
  render() {
103
90
  var _a, _b;
104
91
  const accessories = (this === null || this === void 0 ? void 0 : this.vehicleInformation) ? (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.accessories : [];
105
- return (h(Host, { key: '37762a5db052f532c697bb8442cc4ba3c6cf4068' }, h("div", { key: '2dc64881477dc8948a35c120255a37476f4476ab', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '31ec8d8d61838d2932401ce9fcf43cb2602865d0' }, h(Loading, { key: '144ffe00641e5b7325a9d6d5794d6ec46db3943d', isLoading: this.state.includes('loading') }), h("div", { key: '015d6a3b491612e038b6fecc501f3a97eb74984b', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: 'bf9bb4858401dc551fb6dd80792f9ebae8f2116d', 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: '647c4b2ae83cf076f6abb5a693b58883eccea2f6', class: "py-[16px]" }, h("div", { key: 'fb00fc12a5247809212c54bfc656e12079a8277c', 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: '3d049da77eac32bf3064f46d38d2e869531acc99', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '4212b8aeb910f96d3d5c0a7485629efd29f8a0e0', 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: '98b7d10413870e3e2e61fb3f9749ec00b4a117c5', class: "h-0 overflow-auto flex-1" }, !accessories.length && h("div", { key: '478659190641f3bd10a66697bb55b18adf8bd2f9', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!accessories.length && (h("table", { key: 'ab44323dda807276272dc900dd9e9c3c1482a75f', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'e43c0538bdb9b162b9e5ab00fb4032463bc47118', class: "top-0 font-bold z-40 sticky bg-white" }, h("tr", { key: 'b133f2fc56118b78fa7a8016245a405b4437fc76' }, ['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: '87bec24b165b4928cd36751bf7237016133f145e' }, accessories.map((accessory, idx) => {
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) => {
106
93
  var _a;
107
94
  return (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: accessory.partNumber }, ['partNumber', 'description'].map(key => {
108
95
  var _a;
@@ -112,9 +99,9 @@ export class VehicleAccessories {
112
99
  }), h("td", { class: cn('px-[10px] py-[10px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
113
100
  '!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
114
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 })))));
115
- })), h("div", { key: '2f132b70d008c91456c604cd6bd5d34b59626151', 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: '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', {
116
103
  'pointer-events-auto opacity-100 delay-200': this.expandedImage,
117
- }) }, h("button", { key: '1007182cd1ce49a92c134c8d90998f4fb601fdad', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, h("div", { key: 'c76af11f89e4735fa919167138093dc00eba7841', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), h("div", { key: 'c312b71d24988ae6f6ec1a5dfffc5a2d79e07660', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), h("img", { key: 'e14cb22e566105d7b977ed191ddd63174b24e54a', alt: "", id: "expanded-image", class: "fixed opacity-0 z-50 transition-all rounded-lg" })))))))))));
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" })))))))))));
118
105
  }
119
106
  static get is() { return "vehicle-accessories"; }
120
107
  static get encapsulation() { return "shadow"; }
@@ -235,11 +222,15 @@ export class VehicleAccessories {
235
222
  return {
236
223
  "setData": {
237
224
  "complexType": {
238
- "signature": "(newData: VehicleInformation | string) => Promise<void>",
225
+ "signature": "(newData: VehicleInformation | string, headers?: any) => Promise<void>",
239
226
  "parameters": [{
240
227
  "name": "newData",
241
228
  "type": "string | VehicleInformation",
242
229
  "docs": ""
230
+ }, {
231
+ "name": "headers",
232
+ "type": "any",
233
+ "docs": ""
243
234
  }],
244
235
  "references": {
245
236
  "Promise": {
@@ -265,11 +256,15 @@ export class VehicleAccessories {
265
256
  },
266
257
  "fetchData": {
267
258
  "complexType": {
268
- "signature": "(requestedVin?: string) => Promise<void>",
259
+ "signature": "(requestedVin?: string, headers?: any) => Promise<void>",
269
260
  "parameters": [{
270
261
  "name": "requestedVin",
271
262
  "type": "string",
272
263
  "docs": ""
264
+ }, {
265
+ "name": "headers",
266
+ "type": "any",
267
+ "docs": ""
273
268
  }],
274
269
  "references": {
275
270
  "Promise": {