adp-web-components 0.0.27 → 0.0.29

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 (147) hide show
  1. package/dist/cjs/{Loading-14fca13b.js → Loading-6f4f0127.js} +1 -1
  2. package/dist/cjs/dead-stock-lookup.cjs.entry.js +5 -5
  3. package/dist/cjs/distributor-lookup.cjs.entry.js +5 -5
  4. package/dist/cjs/dynamic-claim_6.cjs.entry.js +139 -71
  5. package/dist/cjs/dynamic-redeem.cjs.entry.js +21 -9
  6. package/dist/cjs/form-input.cjs.entry.js +1 -1
  7. package/dist/cjs/general-inquiry-form.cjs.entry.js +5 -2131
  8. package/dist/cjs/get-local-language-42973450.js +153 -0
  9. package/dist/cjs/{index-97b8da6d.js → index-846c93d2.js} +6 -1
  10. package/dist/cjs/index.esm-c628daeb.js +2135 -0
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/manufacturer-lookup.cjs.entry.js +5 -5
  13. package/dist/cjs/{partInformation-07651204.js → partInformation-2b4e0593.js} +1 -1
  14. package/dist/cjs/shift-components.cjs.js +2 -2
  15. package/dist/cjs/vehicle-lookup.cjs.entry.js +6 -5
  16. package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
  17. package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
  18. package/dist/collection/components/part-lookup/manufacturer-lookup.js +2 -2
  19. package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +3 -2
  20. package/dist/collection/components/vehicle-lookup/components/SSCTable.js +3 -2
  21. package/dist/collection/components/vehicle-lookup/components/StatusCard.js +2 -2
  22. package/dist/collection/components/vehicle-lookup/dynamic-claim.css +1 -1
  23. package/dist/collection/components/vehicle-lookup/dynamic-claim.js +53 -13
  24. package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +1 -1
  25. package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +49 -10
  26. package/dist/collection/components/vehicle-lookup/paint-thickness.js +47 -8
  27. package/dist/collection/components/vehicle-lookup/service-history.js +42 -3
  28. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +48 -9
  29. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +44 -19
  30. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +42 -3
  31. package/dist/collection/components/vehicle-lookup/warranty-details.js +76 -38
  32. package/dist/collection/global/api/partInformation.js +1 -1
  33. package/dist/collection/global/api/vehicleInformation.js +2 -2
  34. package/dist/collection/global/lib/get-local-language.js +19 -0
  35. package/dist/collection/global/types/locales/error-schema.js +9 -0
  36. package/dist/collection/global/types/locales/index.js +22 -0
  37. package/dist/collection/global/types/locales/vehicle-lookup/accessories-schema.js +13 -0
  38. package/dist/collection/global/types/locales/vehicle-lookup/dynamic-claim-schema.js +21 -0
  39. package/dist/collection/global/types/locales/vehicle-lookup/dynamic-redeem-schema.js +28 -0
  40. package/dist/collection/global/types/locales/vehicle-lookup/index.js +21 -0
  41. package/dist/collection/global/types/locales/vehicle-lookup/paint-thickness-schema.js +14 -0
  42. package/dist/collection/global/types/locales/vehicle-lookup/service-history-schema.js +15 -0
  43. package/dist/collection/global/types/locales/vehicle-lookup/specification-schema.js +14 -0
  44. package/dist/collection/global/types/locales/vehicle-lookup/warranty-schema.js +23 -0
  45. package/dist/components/dead-stock-lookup.js +1 -1
  46. package/dist/components/distributor-lookup.js +1 -1
  47. package/dist/components/dynamic-claim.js +1 -1
  48. package/dist/components/dynamic-redeem.js +1 -1
  49. package/dist/components/form-input.js +1 -1
  50. package/dist/components/general-inquiry-form.js +1 -1
  51. package/dist/components/index.js +1 -1
  52. package/dist/components/manufacturer-lookup.js +1 -1
  53. package/dist/components/p-0ae60f32.js +5 -0
  54. package/dist/components/p-1a626dfd.js +5 -0
  55. package/dist/components/{p-4bf4435e.js → p-1d80419b.js} +1 -1
  56. package/dist/components/p-1ea3089a.js +5 -0
  57. package/dist/components/p-2e747eb3.js +5 -0
  58. package/dist/components/p-4f99745c.js +5 -0
  59. package/dist/components/{p-c4fad245.js → p-609c2470.js} +1 -1
  60. package/dist/components/p-6c064413.js +5 -0
  61. package/dist/components/p-7360f9b1.js +5 -0
  62. package/dist/components/p-79ea7639.js +5 -0
  63. package/dist/components/p-a21e2e2e.js +5 -0
  64. package/dist/components/{p-be0a5ab5.js → p-b2051f01.js} +1 -1
  65. package/dist/components/p-e446fb9d.js +5 -0
  66. package/dist/components/p-eb89583a.js +5 -0
  67. package/dist/components/{p-b90fd51c.js → p-f001d15b.js} +1 -1
  68. package/dist/components/p-f691e103.js +5 -0
  69. package/dist/components/paint-thickness.js +1 -1
  70. package/dist/components/service-history.js +1 -1
  71. package/dist/components/vehicle-accessories.js +1 -1
  72. package/dist/components/vehicle-lookup.js +1 -1
  73. package/dist/components/vehicle-specification.js +1 -1
  74. package/dist/components/warranty-details.js +1 -1
  75. package/dist/esm/{Loading-2b8a745c.js → Loading-f4d666ee.js} +1 -1
  76. package/dist/esm/dead-stock-lookup.entry.js +5 -5
  77. package/dist/esm/distributor-lookup.entry.js +5 -5
  78. package/dist/esm/dynamic-claim_6.entry.js +139 -71
  79. package/dist/esm/dynamic-redeem.entry.js +21 -9
  80. package/dist/esm/form-input.entry.js +1 -1
  81. package/dist/esm/general-inquiry-form.entry.js +2 -2128
  82. package/dist/esm/get-local-language-85ed0b3b.js +150 -0
  83. package/dist/esm/{index-ff1dab22.js → index-33ae6859.js} +6 -1
  84. package/dist/esm/index.esm-46e0cdad.js +2132 -0
  85. package/dist/esm/loader.js +3 -3
  86. package/dist/esm/manufacturer-lookup.entry.js +5 -5
  87. package/dist/esm/{partInformation-096a8f55.js → partInformation-f40b1fe6.js} +1 -1
  88. package/dist/esm/shift-components.js +3 -3
  89. package/dist/esm/vehicle-lookup.entry.js +6 -5
  90. package/dist/locales/ar.json +105 -0
  91. package/dist/locales/en.json +105 -0
  92. package/dist/locales/ku.json +105 -0
  93. package/dist/shift-components/p-062cd94b.entry.js +5 -0
  94. package/dist/shift-components/p-0e0b69a1.entry.js +5 -0
  95. package/dist/shift-components/{p-f37b60d5.js → p-0f0e54c1.js} +2 -2
  96. package/dist/shift-components/p-10aae582.entry.js +5 -0
  97. package/dist/shift-components/p-1de8531d.entry.js +5 -0
  98. package/dist/shift-components/p-2e747eb3.js +5 -0
  99. package/dist/shift-components/{p-fad254c9.entry.js → p-496a721b.entry.js} +1 -1
  100. package/dist/shift-components/p-832fd942.entry.js +5 -0
  101. package/dist/shift-components/p-9120c049.entry.js +5 -0
  102. package/dist/shift-components/{p-e35e44a4.js → p-99d314b5.js} +1 -1
  103. package/dist/shift-components/p-c4efbdc3.js +5 -0
  104. package/dist/shift-components/p-d49f73db.entry.js +5 -0
  105. package/dist/shift-components/p-e446fb9d.js +5 -0
  106. package/dist/shift-components/shift-components.esm.js +1 -1
  107. package/dist/types/components/vehicle-lookup/components/CardsContainer.d.ts +3 -1
  108. package/dist/types/components/vehicle-lookup/components/SSCTable.d.ts +3 -1
  109. package/dist/types/components/vehicle-lookup/components/StatusCard.d.ts +3 -1
  110. package/dist/types/components/vehicle-lookup/dynamic-claim.d.ts +10 -5
  111. package/dist/types/components/vehicle-lookup/dynamic-redeem.d.ts +10 -5
  112. package/dist/types/components/vehicle-lookup/paint-thickness.d.ts +6 -1
  113. package/dist/types/components/vehicle-lookup/service-history.d.ts +6 -1
  114. package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +6 -1
  115. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +5 -3
  116. package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +6 -1
  117. package/dist/types/components/vehicle-lookup/warranty-details.d.ts +10 -5
  118. package/dist/types/components.d.ts +18 -0
  119. package/dist/types/global/lib/get-local-language.d.ts +2 -0
  120. package/dist/types/global/types/locales/error-schema.d.ts +7 -0
  121. package/dist/types/global/types/locales/index.d.ts +220 -0
  122. package/dist/types/global/types/locales/vehicle-lookup/accessories-schema.d.ts +15 -0
  123. package/dist/types/global/types/locales/vehicle-lookup/dynamic-claim-schema.d.ts +31 -0
  124. package/dist/types/global/types/locales/vehicle-lookup/dynamic-redeem-schema.d.ts +45 -0
  125. package/dist/types/global/types/locales/vehicle-lookup/index.d.ts +189 -0
  126. package/dist/types/global/types/locales/vehicle-lookup/paint-thickness-schema.d.ts +17 -0
  127. package/dist/types/global/types/locales/vehicle-lookup/service-history-schema.d.ts +19 -0
  128. package/dist/types/global/types/locales/vehicle-lookup/specification-schema.d.ts +17 -0
  129. package/dist/types/global/types/locales/vehicle-lookup/warranty-schema.d.ts +35 -0
  130. package/package.json +9 -4
  131. package/dist/components/p-2741b156.js +0 -5
  132. package/dist/components/p-2ea90585.js +0 -5
  133. package/dist/components/p-4f08bcb8.js +0 -5
  134. package/dist/components/p-514c4736.js +0 -5
  135. package/dist/components/p-6ffb4e5d.js +0 -5
  136. package/dist/components/p-9245caae.js +0 -5
  137. package/dist/components/p-c62be897.js +0 -5
  138. package/dist/components/p-d4718f3b.js +0 -5
  139. package/dist/components/p-d999f3c4.js +0 -5
  140. package/dist/shift-components/p-1719e164.entry.js +0 -5
  141. package/dist/shift-components/p-26b9d31a.entry.js +0 -5
  142. package/dist/shift-components/p-33e4c335.entry.js +0 -5
  143. package/dist/shift-components/p-4f08bcb8.js +0 -5
  144. package/dist/shift-components/p-9f58a33b.entry.js +0 -5
  145. package/dist/shift-components/p-d03dade1.entry.js +0 -5
  146. package/dist/shift-components/p-d1ffe0eb.entry.js +0 -5
  147. package/dist/shift-components/p-f6764fb5.entry.js +0 -5
@@ -4,7 +4,7 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- const index = require('./index-97b8da6d.js');
7
+ const index = require('./index-846c93d2.js');
8
8
  const cn = require('./cn-f559f9e5.js');
9
9
 
10
10
  const loaderSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIKICAgIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1sb2FkZXIiPgogICAgPHBhdGggZD0iTTEyIDJ2NCIgLz4KICAgIDxwYXRoIGQ9Im0xNi4yIDcuOCAyLjktMi45IiAvPgogICAgPHBhdGggZD0iTTE4IDEyaDQiIC8+CiAgICA8cGF0aCBkPSJtMTYuMiAxNi4yIDIuOSAyLjkiIC8+CiAgICA8cGF0aCBkPSJNMTIgMTh2NCIgLz4KICAgIDxwYXRoIGQ9Im00LjkgMTkuMSAyLjktMi45IiAvPgogICAgPHBhdGggZD0iTTIgMTJoNCIgLz4KICAgIDxwYXRoIGQ9Im00LjkgNC45IDIuOSAyLjkiIC8+Cjwvc3ZnPg==';
@@ -6,9 +6,9 @@
6
6
 
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
- const index = require('./index-97b8da6d.js');
10
- const partInformation = require('./partInformation-07651204.js');
11
- const Loading = require('./Loading-14fca13b.js');
9
+ const index = require('./index-846c93d2.js');
10
+ const partInformation = require('./partInformation-2b4e0593.js');
11
+ const Loading = require('./Loading-6f4f0127.js');
12
12
  const cn = require('./cn-f559f9e5.js');
13
13
 
14
14
  const deadStockLookupCss = "*,: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-scroll-snap-strictness:proximity;--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;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-scroll-snap-strictness:proximity;--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;}/*! 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}.mb-\\[10px\\]{margin-bottom:10px}.mt-\\[12px\\]{margin-top:12px}.flex{display:flex}.table{display:table}.size-\\[22px\\]{height:22px;width:22px}.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}.scale-0,.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))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.rounded-md{border-radius:.375rem}.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))}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.px-\\[20px\\]{padding-left:20px;padding-right:20px}.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-left{text-align:left}.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))}.text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/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)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.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}";
@@ -58,7 +58,7 @@ const DeadStockLookup = class {
58
58
  const partResponse = isPartNumberRequest ? await partInformation.getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }, headers) : newData;
59
59
  if (this.networkTimeoutRef === scopedTimeoutRef) {
60
60
  if (!partResponse)
61
- throw new Error('Wrong response format');
61
+ throw new Error('wrongResponseFormat');
62
62
  this.handleSettingData(partResponse);
63
63
  }
64
64
  this.errorMessage = null;
@@ -101,7 +101,7 @@ const DeadStockLookup = class {
101
101
  }
102
102
  render() {
103
103
  var _a, _b;
104
- return (index.h(index.Host, { key: '28085ac7a954bfdf05ea5d3724530c9d62100bb7' }, index.h("div", { key: 'f9f5e65102e89847011cd931c2b9acd7a2389335', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: '9fcc43106e15147a6bad64ac597133c0809eee00' }, index.h(Loading.Loading, { key: '9a33038473f140166debf1bc2fa11299e10ebfcd', isLoading: this.state.includes('loading') }), index.h("div", { key: '3462deafa07da32d76a1ea6b194ba728fbb12335', class: cn.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) && (index.h("div", { key: 'ff6d5801bca6a1dab34ff99ac4e2e211e47f4a13', class: "py-[16px]" }, index.h("div", { key: '4c9221e53ebecc13e3a51d4976c83acf9cf204fd', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '4f4bd9eea235444cf091070303ca29c5f2ed4320' }, index.h("div", { key: '03c29418532b04da39db959c6698cbd6f8e3b178', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: 'b489e74211486b2ead5eb4163e0e5492af13e1a0', 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 :
104
+ return (index.h(index.Host, { key: '03aef07a1e5e865b5be77ac81b4163c261f223ce' }, index.h("div", { key: '4321c798cc413935ac3c265153bdaf0e3da259ee', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: 'e00955d62aaaf6bca3b5a61cf3a0ef93fa5ff2f1' }, index.h(Loading.Loading, { key: '631fc0d4a96a45977f424952228c8f883bb33098', isLoading: this.state.includes('loading') }), index.h("div", { key: 'd74b04789c6a6b53e3a7d667997cf7128bb5fe78', class: cn.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) && (index.h("div", { key: '6902d2ef4bb02cbf05a2ced4fd6032f903245129', class: "py-[16px]" }, index.h("div", { key: 'd4b60c476c81d5420f3473239b3b66e98e41958d', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '7211f030324cf03bd01b30f24cd3822306013080' }, index.h("div", { key: '55e6f4877a8298f5d0b2f74f996c6c82c10a0977', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: 'fff37c9f8b072183cd45df22382ad10362772cbb', 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 :
105
105
  _b.map(deadStock => (index.h("div", { key: deadStock.companyIntegrationID, class: "py-[10px] px-[20px]" }, index.h("div", { "aria-expanded": "false", style: { height: closedAccordionHeight }, class: "border shadow transition-all duration-500 overflow-hidden rounded-md mb-[10px] border-[#d6d8dc]" }, index.h("button", { onClick: this.toggleAccordion, style: { height: closedAccordionHeight }, class: "w-full flex px-[10px] justify-between items-center text-slate-800" }, index.h("strong", null, deadStock.companyName), index.h("span", { class: "icon text-slate-800 transition-transform duration-500" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-[22px]" }, index.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" })))), index.h("div", { class: "content" }, index.h("table", { class: "w-full overflow-auto relative border-collapse" }, index.h("thead", null, index.h("tr", null, index.h("th", { class: "py-[20px] px-[10px] text-left whitespace-nowrap border-b border-[#d6d8dc]" }, "Branch"), index.h("th", { class: "py-[20px] px-[10px] text-left whitespace-nowrap border-b border-[#d6d8dc]" }, "Available Qty"))), index.h("tbody", null, deadStock === null || deadStock === void 0 ? void 0 : deadStock.branchDeadStock.map(branchDeadStock => (index.h("tr", { class: "transition-colors border-b border-[#d6d8dc] last:border-none duration-100 hover:bg-slate-100", key: branchDeadStock.companyBranchIntegrationID }, index.h("td", { class: cn.cn('py-[20px] px-[10px] text-left whitespace-nowrap') }, branchDeadStock.companyBranchName), index.h("td", { class: cn.cn('py-[20px] px-[10px] text-left whitespace-nowrap') }, index.h("strong", null, branchDeadStock.quantity))))))))))))))))))));
106
106
  }
107
107
  get el() { return index.getElement(this); }
@@ -6,11 +6,11 @@
6
6
 
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
- const index = require('./index-97b8da6d.js');
9
+ const index = require('./index-846c93d2.js');
10
10
  const cn = require('./cn-f559f9e5.js');
11
11
  const general = require('./general-a1e72036.js');
12
- const partInformation = require('./partInformation-07651204.js');
13
- const Loading = require('./Loading-14fca13b.js');
12
+ const partInformation = require('./partInformation-2b4e0593.js');
13
+ const Loading = require('./Loading-6f4f0127.js');
14
14
 
15
15
  const distributorLookupCss = "*,: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-scroll-snap-strictness:proximity;--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;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-scroll-snap-strictness:proximity;--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;}/*! 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}.grid{display:grid}.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))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.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\\]{--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}.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-\\[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}.capitalize{text-transform:capitalize}.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)}.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}.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}";
16
16
  const DistributorLookupStyle0 = distributorLookupCss;
@@ -60,7 +60,7 @@ const DistributorLookup = class {
60
60
  const partResponse = isPartNumberRequest ? await partInformation.getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }, headers) : newData;
61
61
  if (this.networkTimeoutRef === scopedTimeoutRef) {
62
62
  if (!partResponse)
63
- throw new Error('Wrong response format');
63
+ throw new Error('wrongResponseFormat');
64
64
  this.handleSettingData(partResponse);
65
65
  }
66
66
  this.errorMessage = null;
@@ -103,7 +103,7 @@ const DistributorLookup = class {
103
103
  const displayDistributer = this.partInformation
104
104
  ? !this.partInformation.stockParts.some(({ quantityLookUpResult }) => quantityLookUpResult === 'LookupIsSkipped' || quantityLookUpResult === 'QuantityNotWithinLookupThreshold')
105
105
  : false;
106
- return (index.h(index.Host, { key: 'fa76bb6b6dab895fc0ff1c05e495c67b1e786ea8' }, index.h("div", { key: 'e0c11116a2ebc7f728284dbe11c18d014e7cc36e', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: '9bcfd5c07807eb536562ce2384e3541ed3fcdab3' }, index.h(Loading.Loading, { key: '3b5fec76b359d7b0f55933e5729bad6f0d9c3f4a', isLoading: this.state.includes('loading') }), index.h("div", { key: '1c610d9d994938b0769e4a963e8221681fd813fc', class: cn.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) && (index.h("div", { key: '7052616da32a34c981ef66145edbe2ab67afa50a', class: "py-[16px]" }, index.h("div", { key: 'dc1e12e4a947f49ff1555a3370b9485d9027ab13', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '067b10f736c0997ee89dde521d6347e502df1efb' }, index.h("div", { key: '2e68ffd0e757ed385d6b4c1821a274905a859736', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: '5d2acdf14db3c2e9d2d629235ab2c19889eda284', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Info"), index.h("div", { key: 'fe366d9127cc75bc7a3cd65f875fd54b69f53e56', class: "py-[10px] px-[30px] flex flex-col gap-[15px]" }, index.h("div", { key: '537a4941c4987dc8a2bd1a70fe81c690f7036b63', class: "grid grid-cols-3 gap-[50px]" }, displayedFields.map(({ label, value, key }) => (index.h("div", { key: key, class: "flex flex-col flex-1" }, index.h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), index.h("div", { class: "py-[10px] px-0" }, value))))))), displayDistributer && (index.h("div", { key: '1281450dd7b8aba827ccb50268a03b0a95c6e1f9', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: 'ac7f771f521828a2ce26132e37157e233ca0e784', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Distributor Stock"), index.h("div", { key: 'fae623ee5b973ce06b0d6bdf4374661d9d3797e3', class: "flex flex-col gap-[15px]" }, index.h("table", { key: 'de70dc69228c6289ffb5e6b403da955e9c1a4393', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: '4ce5f815c60a6f32b04ed5472d0ff694d19b6d87', class: "top-0 font-bold sticky bg-white" }, index.h("tr", { key: '48b6674d15b88588147756aeced1518a06746041' }, ['Location', 'Availability'].map(title => (index.h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), index.h("tbody", { key: 'f80cb4732d9ce25e6b5b6162d6d8ebf08f7525a4' }, (_c = this.partInformation) === null || _c === void 0 ? void 0 : _c.stockParts.map(stock => (index.h("tr", { class: "transition-colors duration-100 border-b border-[#d6d8dc] last:border-none hover:bg-slate-100", key: stock.locationID }, index.h("td", { class: cn.cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, stock.locationName), index.h("td", { class: cn.cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, index.h("div", { class: cn.cn('text-[red]', {
106
+ return (index.h(index.Host, { key: '69a21d26bc4a0826d84de3e855b8d8f034a3481e' }, index.h("div", { key: '1c82a02d8856a94b3352fda68b2e11bf4402d4ab', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: 'f179a9cff7e47372e0573bfb80a776048edc5ff4' }, index.h(Loading.Loading, { key: '5ea6261b7a7bbb6b8f41a5db134fcdaa3933af0f', isLoading: this.state.includes('loading') }), index.h("div", { key: '4aa13955ea82102d9962c6005cd12295c3901ad6', class: cn.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) && (index.h("div", { key: '3e1fcb750564e355e59727246d2915b8cf78d84b', class: "py-[16px]" }, index.h("div", { key: '00d8f0686a0d1bd207fab046f8c189b778d6e430', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '88fd12caae26f78a81c506d8664f5426469bd36d' }, index.h("div", { key: '7207baa25e0e4bc3033910b8ce0ebf2655810bdb', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: 'fd4468f73a67cfd59d4ea0c356e7b14e5264d16b', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Info"), index.h("div", { key: 'd02d632a5e0f61680fa981adfa21a6016f77858e', class: "py-[10px] px-[30px] flex flex-col gap-[15px]" }, index.h("div", { key: '447cbac2d23d49b143be25b70634524779156ee0', class: "grid grid-cols-3 gap-[50px]" }, displayedFields.map(({ label, value, key }) => (index.h("div", { key: key, class: "flex flex-col flex-1" }, index.h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), index.h("div", { class: "py-[10px] px-0" }, value))))))), displayDistributer && (index.h("div", { key: '158ee436a589c6f1b4eaed9d14537a3f7a2eda98', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: '754d4b7952e83276c77a1536d33f681cc5a9b045', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Distributor Stock"), index.h("div", { key: '9e3c701e1257aeb2659ccb57ba6b8cf3c1ebfe18', class: "flex flex-col gap-[15px]" }, index.h("table", { key: '262b599058b83d76bf7d7806a5d4fb9a6c9e25ad', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: '59ccaef15a6a6121152b65a07a028b622ccdfe74', class: "top-0 font-bold sticky bg-white" }, index.h("tr", { key: '9c258eeb2454c9938d136b05a3b40227bf082b46' }, ['Location', 'Availability'].map(title => (index.h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), index.h("tbody", { key: '1780583a6c45d260bf0fc1e3180c6debe769434c' }, (_c = this.partInformation) === null || _c === void 0 ? void 0 : _c.stockParts.map(stock => (index.h("tr", { class: "transition-colors duration-100 border-b border-[#d6d8dc] last:border-none hover:bg-slate-100", key: stock.locationID }, index.h("td", { class: cn.cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, stock.locationName), index.h("td", { class: cn.cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, index.h("div", { class: cn.cn('text-[red]', {
107
107
  'text-[green]': stock.quantityLookUpResult === 'Available',
108
108
  'text-[orange]': stock.quantityLookUpResult === 'PartiallyAvailable',
109
109
  }) }, index.h("strong", null, stock.quantityLookUpResult === 'Available'