adp-web-components 0.1.9 → 0.1.11

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 (198) hide show
  1. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +6 -6
  2. package/dist/cjs/demo-form.cjs.entry.js +1 -1
  3. package/dist/cjs/flexible-container.cjs.entry.js +1 -1
  4. package/dist/cjs/form-checkbox_3.cjs.entry.js +3 -3
  5. package/dist/cjs/form-dialog_4.cjs.entry.js +5 -5
  6. package/dist/cjs/form-input_4.cjs.entry.js +4 -4
  7. package/dist/cjs/{get-local-language-Ck7SRKZU.js → get-local-language-BfxabMno.js} +1 -1
  8. package/dist/cjs/information-table.cjs.entry.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
  11. package/dist/cjs/part-lookup.cjs.entry.js +4 -4
  12. package/dist/cjs/shift-checkbox.cjs.entry.js +1 -1
  13. package/dist/cjs/shift-components.cjs.js +1 -1
  14. package/dist/cjs/shift-switch.cjs.entry.js +1 -1
  15. package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
  16. package/dist/cjs/shift-tabs_2.cjs.entry.js +10 -10
  17. package/dist/cjs/test-drive-demo-form.cjs.entry.js +2 -2
  18. package/dist/cjs/tmc-lookup.cjs.entry.js +33 -33
  19. package/dist/cjs/{type-fkCf15A8.js → type-B3DPLvPL.js} +1 -1
  20. package/dist/cjs/{type-4_pcYyPK.js → type-CfeiN8GL.js} +1 -1
  21. package/dist/cjs/{type-B1cXv76d.js → type-pFXmwuRI.js} +1 -4
  22. package/dist/cjs/vehicle-accessories_6.cjs.entry.js +21 -21
  23. package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
  24. package/dist/cjs/vehicle-quotation-form.cjs.entry.js +1 -1
  25. package/dist/cjs/vin-extractor.cjs.entry.js +1 -1
  26. package/dist/collection/components/components/empty.css +1 -1
  27. package/dist/collection/components/components/flexible-container.css +1 -1
  28. package/dist/collection/components/components/information-table.css +1 -1
  29. package/dist/collection/components/components/loading-spinner.css +1 -1
  30. package/dist/collection/components/components/shift-tab-content.css +1 -1
  31. package/dist/collection/components/components/shift-tabs.css +1 -1
  32. package/dist/collection/components/form-elements/form-inputs.css +1 -1
  33. package/dist/collection/components/forms/test-drive-demo/themes.css +1 -1
  34. package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
  35. package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
  36. package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
  37. package/dist/collection/components/part-lookup/part-lookup.css +1 -1
  38. package/dist/collection/components/part-lookup/part-lookup.js +1 -1
  39. package/dist/collection/components/part-lookup/tmc-lookup.css +1 -1
  40. package/dist/collection/components/part-lookup/tmc-lookup.js +31 -15
  41. package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
  42. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +2 -2
  43. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
  44. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +4 -4
  45. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
  46. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
  47. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
  48. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
  49. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +1 -1
  50. package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -1
  51. package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +1 -1
  52. package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
  53. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +1 -1
  54. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
  55. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +4 -4
  56. package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
  57. package/dist/collection/locales/partLookup/distributor/type.js +0 -3
  58. package/dist/components/dead-stock-lookup.js +1 -1
  59. package/dist/components/demo-form.js +1 -1
  60. package/dist/components/distributor-lookup.js +1 -1
  61. package/dist/components/flexible-container.js +1 -1
  62. package/dist/components/form-checkbox.js +1 -1
  63. package/dist/components/form-dialog.js +1 -1
  64. package/dist/components/form-input.js +1 -1
  65. package/dist/components/form-phone-number.js +1 -1
  66. package/dist/components/form-select.js +1 -1
  67. package/dist/components/form-shadow-input.js +1 -1
  68. package/dist/components/form-structure-error.js +1 -1
  69. package/dist/components/form-structure.js +1 -1
  70. package/dist/components/form-submit.js +1 -1
  71. package/dist/components/form-switch.js +1 -1
  72. package/dist/components/form-text-area.js +1 -1
  73. package/dist/components/information-table.js +1 -1
  74. package/dist/components/loading-spinner.js +1 -1
  75. package/dist/components/manufacturer-lookup.js +1 -1
  76. package/dist/components/{p-PtcMzBGA.js → p-2rMsFrE4.js} +1 -1
  77. package/dist/components/{p-jC6qE7RO.js → p-4Fv18jBS.js} +1 -1
  78. package/dist/components/p-BIUVWVLh.js +5 -0
  79. package/dist/components/{p-DlMR2MTf.js → p-BWqAzzDX.js} +1 -1
  80. package/dist/components/p-BXQ0m85E.js +5 -0
  81. package/dist/components/{p-C4D8t6VR.js → p-BaP0aVjK.js} +1 -1
  82. package/dist/components/{p-BOs5CurL.js → p-Bb4TFVjF.js} +1 -1
  83. package/dist/components/{p-D6Rsjqaq.js → p-Bg3Y6lbU.js} +1 -1
  84. package/dist/components/{p-CpwRuq20.js → p-BwLr2O7j.js} +1 -1
  85. package/dist/components/p-BwYa7Q32.js +5 -0
  86. package/dist/components/{p-DCL0KefD.js → p-C1JuYoJc.js} +1 -1
  87. package/dist/components/{p-fxCimPS7.js → p-C3s0h7RC.js} +1 -1
  88. package/dist/components/{p-HFAiSpKZ.js → p-C7tJhOkO.js} +1 -1
  89. package/dist/components/{p-D5menira.js → p-C8IA2xcR.js} +1 -1
  90. package/dist/components/{p-DBXIjdCt.js → p-CI7oKZ7a.js} +1 -1
  91. package/dist/components/{p-BL2YnUup.js → p-CKwdxCcT.js} +1 -1
  92. package/dist/components/{p-CRhdQvF0.js → p-COS-bXsj.js} +1 -1
  93. package/dist/components/{p-C0Lu2QLm.js → p-CQnGszy6.js} +1 -1
  94. package/dist/components/{p-Df83MLtN.js → p-C_mw3Nv_.js} +1 -1
  95. package/dist/components/{p-BMTh2AMH.js → p-CiufKArE.js} +1 -1
  96. package/dist/components/{p-BVVl9bxd.js → p-DRBOgMAX.js} +1 -1
  97. package/dist/components/p-DT5kiD_G.js +5 -0
  98. package/dist/components/{p-D0A5vrKw.js → p-DfP7J2V7.js} +1 -1
  99. package/dist/components/{p-Bn-FCjqw.js → p-Dg6aFSlo.js} +1 -1
  100. package/dist/components/{p-DBJ-L_XJ.js → p-Dxv7gWxc.js} +1 -1
  101. package/dist/components/p-E1Wv_JHA.js +5 -0
  102. package/dist/components/{p-Bgups6Vz.js → p-FBPkKSzr.js} +1 -1
  103. package/dist/components/{p-DWy24pex.js → p-GSFrWoQB.js} +1 -1
  104. package/dist/components/{p-B8-QiFLi.js → p-I-z49cnW.js} +1 -1
  105. package/dist/components/{p-DJaWpqrV.js → p-MJwr71KB.js} +1 -1
  106. package/dist/components/{p-DHkRDEck.js → p-RKX00sle.js} +1 -1
  107. package/dist/components/part-lookup.js +1 -1
  108. package/dist/components/shift-accordion.js +1 -1
  109. package/dist/components/shift-checkbox.js +1 -1
  110. package/dist/components/shift-slider.js +1 -1
  111. package/dist/components/shift-switch.js +1 -1
  112. package/dist/components/shift-tab-content.js +1 -1
  113. package/dist/components/shift-tabs.js +1 -1
  114. package/dist/components/test-drive-demo-form.js +1 -1
  115. package/dist/components/tmc-lookup.js +1 -1
  116. package/dist/components/vehicle-accessories.js +1 -1
  117. package/dist/components/vehicle-claimable-items.js +1 -1
  118. package/dist/components/vehicle-item-claim-form.js +1 -1
  119. package/dist/components/vehicle-lookup.js +1 -1
  120. package/dist/components/vehicle-paint-thickness.js +1 -1
  121. package/dist/components/vehicle-quotation-form.js +1 -1
  122. package/dist/components/vehicle-service-history.js +1 -1
  123. package/dist/components/vehicle-specification.js +1 -1
  124. package/dist/components/vehicle-warranty-details.js +1 -1
  125. package/dist/components/vin-extractor.js +1 -1
  126. package/dist/esm/dead-stock-lookup_3.entry.js +6 -6
  127. package/dist/esm/demo-form.entry.js +1 -1
  128. package/dist/esm/flexible-container.entry.js +1 -1
  129. package/dist/esm/form-checkbox_3.entry.js +3 -3
  130. package/dist/esm/form-dialog_4.entry.js +5 -5
  131. package/dist/esm/form-input_4.entry.js +4 -4
  132. package/dist/esm/{get-local-language-D2PrTSKu.js → get-local-language-BPVB7ZPG.js} +2 -2
  133. package/dist/esm/information-table.entry.js +1 -1
  134. package/dist/esm/loader.js +1 -1
  135. package/dist/esm/loading-spinner.entry.js +1 -1
  136. package/dist/esm/part-lookup.entry.js +4 -4
  137. package/dist/esm/shift-checkbox.entry.js +1 -1
  138. package/dist/esm/shift-components.js +1 -1
  139. package/dist/esm/shift-switch.entry.js +1 -1
  140. package/dist/esm/shift-tab-content.entry.js +1 -1
  141. package/dist/esm/shift-tabs_2.entry.js +10 -10
  142. package/dist/esm/test-drive-demo-form.entry.js +2 -2
  143. package/dist/esm/tmc-lookup.entry.js +34 -34
  144. package/dist/esm/{type-D1H2muQc.js → type-CiSJbYaI.js} +1 -1
  145. package/dist/esm/{type-BHRuxF2X.js → type-D0UpLWrh.js} +1 -4
  146. package/dist/esm/{type-BdIymws1.js → type-qzQHpBbH.js} +1 -1
  147. package/dist/esm/vehicle-accessories_6.entry.js +21 -21
  148. package/dist/esm/vehicle-lookup.entry.js +3 -3
  149. package/dist/esm/vehicle-quotation-form.entry.js +1 -1
  150. package/dist/esm/vin-extractor.entry.js +1 -1
  151. package/dist/locales/partLookup/distributor/ar.json +0 -3
  152. package/dist/locales/partLookup/distributor/en.json +0 -3
  153. package/dist/locales/partLookup/distributor/ku.json +0 -3
  154. package/dist/locales/partLookup/distributor/ru.json +0 -3
  155. package/dist/locales/partLookup/distributor/type.ts +0 -3
  156. package/dist/mocks/part-lookup.json +28 -28
  157. package/dist/shift-components/p-04a80adf.entry.js +5 -0
  158. package/dist/shift-components/p-082c37af.entry.js +5 -0
  159. package/dist/shift-components/p-09a5f2fc.entry.js +5 -0
  160. package/dist/shift-components/{p-7f821a3b.entry.js → p-0cb11022.entry.js} +1 -1
  161. package/dist/shift-components/{p-2fe3538e.entry.js → p-0ea039a0.entry.js} +1 -1
  162. package/dist/shift-components/{p-1dc61b80.entry.js → p-1db32ec8.entry.js} +1 -1
  163. package/dist/shift-components/p-2723819e.entry.js +5 -0
  164. package/dist/shift-components/{p-8011373e.entry.js → p-38eb18fa.entry.js} +1 -1
  165. package/dist/shift-components/{p-177bf401.entry.js → p-55a341da.entry.js} +1 -1
  166. package/dist/shift-components/p-5dee1709.entry.js +5 -0
  167. package/dist/shift-components/{p-f579fecb.entry.js → p-6b9b7303.entry.js} +1 -1
  168. package/dist/shift-components/{p-f4914abc.entry.js → p-8049016c.entry.js} +1 -1
  169. package/dist/shift-components/p-9a17c644.entry.js +5 -0
  170. package/dist/shift-components/{p-66314c83.entry.js → p-9b217fee.entry.js} +1 -1
  171. package/dist/shift-components/{p-093b429b.entry.js → p-9b43b3d8.entry.js} +1 -1
  172. package/dist/shift-components/{p-BCLWMzRB.js → p-BszwVi_k.js} +1 -1
  173. package/dist/shift-components/{p-oVQeYOtF.js → p-Ct1I_yxM.js} +1 -1
  174. package/dist/shift-components/{p-BBJRZ7VA.js → p-DESJHBOs.js} +1 -1
  175. package/dist/shift-components/{p-COcooj86.js → p-DRO-uSrL.js} +1 -1
  176. package/dist/shift-components/{p-beff5215.entry.js → p-d3386d31.entry.js} +1 -1
  177. package/dist/shift-components/{p-de4ac838.entry.js → p-e0c3f8c7.entry.js} +1 -1
  178. package/dist/shift-components/{p-a872fc25.entry.js → p-f3810a59.entry.js} +1 -1
  179. package/dist/shift-components/{p-1d3ee39f.entry.js → p-fe8ab270.entry.js} +1 -1
  180. package/dist/shift-components/shift-components.esm.js +1 -1
  181. package/dist/types/components/part-lookup/tmc-lookup.d.ts +4 -3
  182. package/dist/types/global/types/generated/part/dead-stock-dto.d.ts +1 -1
  183. package/dist/types/global/types/generated/part/part-lookup-dto.d.ts +1 -0
  184. package/dist/types/global/types/generated/part/price-dto.d.ts +1 -1
  185. package/dist/types/locales/partLookup/distributor/type.d.ts +0 -6
  186. package/dist/types/locales/partLookup/wrapper-type.d.ts +0 -6
  187. package/package.json +1 -1
  188. package/dist/components/p-B_jsnknd.js +0 -5
  189. package/dist/components/p-BdwSI1A9.js +0 -5
  190. package/dist/components/p-BsvIaa8a.js +0 -5
  191. package/dist/components/p-Bw4b9o-x.js +0 -5
  192. package/dist/components/p-DypMppPM.js +0 -5
  193. package/dist/shift-components/p-167610b0.entry.js +0 -5
  194. package/dist/shift-components/p-9064e1dd.entry.js +0 -5
  195. package/dist/shift-components/p-95cb1447.entry.js +0 -5
  196. package/dist/shift-components/p-b83497a3.entry.js +0 -5
  197. package/dist/shift-components/p-c90262d3.entry.js +0 -5
  198. package/dist/shift-components/p-fd9eba4c.entry.js +0 -5
@@ -5,32 +5,13 @@
5
5
  'use strict';
6
6
 
7
7
  var index = require('./index-CmK48vN3.js');
8
- var type = require('./type-B1cXv76d.js');
9
- var getLocalLanguage = require('./get-local-language-Ck7SRKZU.js');
8
+ var type = require('./type-pFXmwuRI.js');
9
+ var getLocalLanguage = require('./get-local-language-BfxabMno.js');
10
10
  var formHook = require('./form-hook-C2tmdNg8.js');
11
+ var cn = require('./cn-BHnqYtun.js');
11
12
  var getLanguageFromUrl = require('./get-language-from-url-DX6LNcV1.js');
12
13
 
13
- const CloudAlertIcon = props => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: props.class },
14
- index.h("path", { d: "M12 12v4" }),
15
- index.h("path", { d: "M12 20h.01" }),
16
- index.h("path", { d: "M17 18h.5a1 1 0 0 0 0-9h-1.79A7 7 0 1 0 7 17.708" })));
17
-
18
- const InfoIcon = props => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: props.class },
19
- index.h("circle", { cx: "12", cy: "12", r: "10" }),
20
- index.h("path", { d: "M12 16v-4" }),
21
- index.h("path", { d: "M12 8h.01" })));
22
-
23
- const LaptopMinimalCheckIcon = props => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: props.class },
24
- index.h("path", { d: "M2 20h20" }),
25
- index.h("path", { d: "m9 10 2 2 4-4" }),
26
- index.h("rect", { x: "3", y: "4", width: "18", height: "12", rx: "2" })));
27
-
28
- const OctagonXIcon = props => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: props.class },
29
- index.h("path", { d: "m15 9-6 6" }),
30
- index.h("path", { d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z" }),
31
- index.h("path", { d: "m9 9 6 6" })));
32
-
33
- const tmcLookupCss = "*,: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.17 | 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:inherit!important;font-family:Noto Kufi Arabic,Nunito,Roboto,Arial,sans-serif!important}*,:host *{font-family:inherit!important}.static{position:static}.flex{display:flex}.h-\\[200px\\]{height:200px}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.text-\\[26px\\]{font-size:26px}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.mx-auto{margin-left:auto;margin-right:auto}.me-2{margin-inline-end:.5rem}.ml-1{margin-left:.25rem}.mt-2{margin-top:.5rem}.mt-\\[32px\\]{margin-top:32px}.inline-flex{display:inline-flex}.h-\\[50px\\]{height:50px}.w-fit{width:fit-content}.max-w-full{max-width:100%}.flex-wrap{flex-wrap:wrap}.items-stretch{align-items:stretch}.gap-\\[16px\\]{gap:16px}.gap-\\[8px\\]{gap:8px}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.bg-\\[\\#f6f6f6\\]{--tw-bg-opacity:1;background-color:rgb(246 246 246/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.p-\\[16px\\]{padding:16px}.p-\\[2px\\]{padding:2px}.px-3{padding-left:.75rem;padding-right:.75rem}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.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))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);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)}@media (min-width:768px){.md\\:justify-between{justify-content:space-between}}.\\[\\&\\>div\\]\\:grow>div{flex-grow:1}.me-1{margin-inline-end:.25rem}.flex-col{flex-direction:column}.pb-\\[16px\\]{padding-bottom:16px}.relative{position:relative}.mb-\\[12px\\]{margin-bottom:12px}.size-\\[100px\\]{height:100px;width:100px}.max-w-\\[96vw\\]{max-width:96vw}.gap-2{gap:.5rem}.gap-\\[32px\\]{gap:32px}.rounded-md{border-radius:.375rem}.fill-transparent{fill:transparent}.stroke-blue-600{stroke:#2563eb}.stroke-green-600{stroke:#16a34a}.stroke-red-600{stroke:#dc2626}.stroke-yellow-600{stroke:#ca8a04}.py-\\[12px\\]{padding-bottom:12px;padding-top:12px}.pt-\\[22px\\]{padding-top:22px}.pt-\\[32px\\]{padding-top:32px}.pt-\\[8px\\]{padding-top:8px}.text-center{text-align:center}.text-\\[20px\\]{font-size:20px}.\\!pointer-events-none{pointer-events:none!important}.absolute{position:absolute}.top-0{top:0}.\\!w-full{width:100%!important}.translate-x-\\[-200\\%\\]{--tw-translate-x:-200%}.translate-x-\\[-200\\%\\],.translate-y-\\[200\\%\\]{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))}.translate-y-\\[200\\%\\]{--tw-translate-y:200%}.opacity-0{opacity:0}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\!duration-0{transition-duration:0s!important}.\\[\\&_\\*\\]\\:\\!pointer-events-none *{pointer-events:none!important}.my-auto{margin-bottom:auto;margin-top:auto}.border-b{border-bottom-width:1px}.py-\\[16px\\]{padding-bottom:16px;padding-top:16px}.duration-300{transition-duration:.3s}.last\\:border-b-0:last-child{border-bottom-width:0}.even\\:bg-slate-100:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.hover\\:bg-sky-100\\/50:hover{background-color:rgba(224,242,254,.5)}.\\!h-auto{height:auto!important}.min-w-full{min-width:100%}.resize{resize:both}.overflow-hidden{overflow:hidden}.\\!transition-none{transition-property:none!important}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500{transition-duration:.5s}.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}}.hidden{display:none}";
14
+ const tmcLookupCss = "*,: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.17 | 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:inherit!important;font-family:Noto Kufi Arabic,Nunito,Roboto,Arial,sans-serif!important}*,:host *{font-family:inherit!important}.static{position:static}.flex{display:flex}.h-\\[200px\\]{height:200px}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.text-\\[26px\\]{font-size:26px}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.flex-col{flex-direction:column}.gap-\\[16px\\]{gap:16px}.p-\\[16px\\]{padding:16px}.pb-\\[16px\\]{padding-bottom:16px}.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)}.mx-auto{margin-left:auto;margin-right:auto}.me-2{margin-inline-end:.5rem}.ml-1{margin-left:.25rem}.mt-2{margin-top:.5rem}.mt-\\[32px\\]{margin-top:32px}.inline-flex{display:inline-flex}.h-\\[50px\\]{height:50px}.w-fit{width:fit-content}.max-w-full{max-width:100%}.flex-wrap{flex-wrap:wrap}.items-stretch{align-items:stretch}.gap-\\[8px\\]{gap:8px}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.bg-\\[\\#f6f6f6\\]{--tw-bg-opacity:1;background-color:rgb(246 246 246/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.p-\\[2px\\]{padding:2px}.px-3{padding-left:.75rem;padding-right:.75rem}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.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))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}@media (min-width:768px){.md\\:justify-between{justify-content:space-between}}.\\[\\&\\>div\\]\\:grow>div{flex-grow:1}.me-1{margin-inline-end:.25rem}.relative{position:relative}.mb-\\[12px\\]{margin-bottom:12px}.w-\\[500px\\]{width:500px}.max-w-\\[250px\\]{max-width:250px}.max-w-\\[96vw\\]{max-width:96vw}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.gap-2{gap:.5rem}.gap-\\[32px\\]{gap:32px}.rounded-md{border-radius:.375rem}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.py-\\[12px\\]{padding-bottom:12px}.pt-\\[12px\\],.py-\\[12px\\]{padding-top:12px}.pt-\\[32px\\]{padding-top:32px}.pt-\\[8px\\]{padding-top:8px}.text-center{text-align:center}.text-\\[20px\\]{font-size:20px}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.even\\:bg-slate-100:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.hover\\:bg-sky-100\\/50:hover{background-color:rgba(224,242,254,.5)}.\\!pointer-events-none{pointer-events:none!important}.absolute{position:absolute}.top-0{top:0}.\\!w-full{width:100%!important}.translate-x-\\[-200\\%\\]{--tw-translate-x:-200%}.translate-x-\\[-200\\%\\],.translate-y-\\[200\\%\\]{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))}.translate-y-\\[200\\%\\]{--tw-translate-y:200%}.opacity-0{opacity:0}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\!duration-0{transition-duration:0s!important}.\\[\\&_\\*\\]\\:\\!pointer-events-none *{pointer-events:none!important}.my-auto{margin-bottom:auto;margin-top:auto}.py-\\[16px\\]{padding-bottom:16px;padding-top:16px}.duration-300{transition-duration:.3s}.last\\:border-b-0:last-child{border-bottom-width:0}.\\!h-auto{height:auto!important}.min-w-full{min-width:100%}.resize{resize:both}.overflow-hidden{overflow:hidden}.\\!transition-none{transition-property:none!important}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500{transition-duration:.5s}.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}}.hidden{display:none}";
34
15
 
35
16
  const tmcOrderTypesFetcher = async ({}) => {
36
17
  return [
@@ -57,7 +38,6 @@ const tmcLookupValidation = getLocalLanguage.create$3({
57
38
  .meta({ label: 'Part Number', placeholder: 'Part Number' })
58
39
  .required('This field is required.'),
59
40
  });
60
- const tmcResponses = ['Available', 'NotAvailable', 'PartiallyAvailable', 'RequestFailed'];
61
41
  const TmcLookup = class {
62
42
  constructor(hostRef) {
63
43
  index.registerInstance(this, hostRef);
@@ -69,14 +49,31 @@ const TmcLookup = class {
69
49
  try {
70
50
  if (this.isDev) {
71
51
  await new Promise(r => setTimeout(r, 2000));
72
- this.tmcResponse = tmcResponses[Math.floor(Math.random() * tmcResponses.length)];
52
+ if (0.5 < Math.random()) {
53
+ if (0.5 < Math.random())
54
+ this.tmcResponse = { isSuccess: true, data: 'This is sample success message' };
55
+ else
56
+ this.tmcResponse = { isSuccess: false, data: '' };
57
+ }
58
+ else {
59
+ this.tmcResponse = {
60
+ isSuccess: true,
61
+ data: {
62
+ 'item 1': Math.floor(Math.random() * 100),
63
+ 'item 2': 'Available',
64
+ 'item 3': Math.floor(Math.random() * 100),
65
+ 'item 4': 'Not Available',
66
+ },
67
+ };
68
+ }
73
69
  this.form.reset();
74
70
  return;
75
71
  }
76
72
  let tmcEndpoint = typeof this.tmcLookupEndpoint === 'string' ? JSON.parse(this.tmcLookupEndpoint) : this.tmcLookupEndpoint;
77
73
  const defaultHeaders = {
78
- 'Content-Type': 'application/json',
79
74
  'Accept': 'application/json',
75
+ 'Content-Type': 'application/json',
76
+ 'Accept-Language': this.language || 'en',
80
77
  };
81
78
  const config = {
82
79
  method: (tmcEndpoint === null || tmcEndpoint === void 0 ? void 0 : tmcEndpoint.method) || 'POST',
@@ -87,13 +84,13 @@ const TmcLookup = class {
87
84
  if (!response.ok) {
88
85
  throw new Error(`Request failed with status ${response.status}`);
89
86
  }
90
- const responseType = (await response.json()); // 'Available' | 'NotAvailable' | 'PartiallyAvailable' | 'RequestFailed'
87
+ const responseType = (await response.json());
91
88
  this.form.reset();
92
- this.tmcResponse = responseType;
89
+ this.tmcResponse = { isSuccess: true, data: responseType };
93
90
  }
94
91
  catch (error) {
95
92
  console.error('❌ TMC Lookup request failed:', error);
96
- this.tmcResponse = 'RequestFailed';
93
+ this.tmcResponse = { isSuccess: false, data: '' };
97
94
  }
98
95
  };
99
96
  this.standAlone = true;
@@ -110,11 +107,14 @@ const TmcLookup = class {
110
107
  }
111
108
  // #endregion
112
109
  render() {
113
- var _a, _b;
110
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
114
111
  const { formController } = this.form;
115
- return (index.h(index.Host, { key: '97d190057e06498182f8f4bf791bf3b751aa573b' }, index.h("flexible-container", { key: 'fa9d8af768c94038586eff2f4e73992644b925d9',
116
- // @ts-ignore
117
- isOpened: (!!((_a = this === null || this === void 0 ? void 0 : this.partLookup) === null || _a === void 0 ? void 0 : _a.showTMCPartLookup) && !this.closeTmcLookup) || this.standAlone }, index.h("div", { key: '9c64a84e70680e1c9e81b97e8294961d3b7f529d', class: "w-full max-w-[96vw] mx-auto pt-[32px]" }, index.h("div", { key: 'f798116cfd8203c8c80b4e96a38b9b1c612f40dd', class: "bg-[#f6f6f6] rounded-md p-[16px]" }, index.h("div", { key: 'f72368d687a666d3614cea4a1395106aa437a4d8', class: "flex items-center mb-[12px] justify-center px-[16px] font-bold text-[18px]" }, this.locale.TMCLookup), index.h("form", Object.assign({ key: '8bb6c019855bf12ace54b27542e14913f587e015', class: "relative tmc-form flex flex-col items-center gap-[32px] pt-[8px] pb-[16px]", dir: this.locale.sharedLocales.direction }, formController), index.h("div", { key: '875f42b761edbdfc4f7d7b03f9d33df15b04e30f', class: "flex gap-2" }, index.h("form-input", { form: this.form, name: "partNumber", isLoading: this.isLoading, key: this.locale.sharedLocales.lang, staticValue: ((_b = this.partLookup) === null || _b === void 0 ? void 0 : _b.partNumber) || undefined }), index.h("form-input", { inputProps: { type: 'number', min: 1 }, name: "quantity", isLoading: this.isLoading, key: this.locale.sharedLocales.lang, form: this.form }), index.h("form-select", { clearable: true, forceOpenUpwards: true, form: this.form, name: "orderType", isLoading: this.isLoading, fetcher: tmcOrderTypesFetcher, key: this.locale.sharedLocales.lang, language: this.locale.sharedLocales.language })), index.h("form-submit", { key: this.locale.sharedLocales.lang, isLoading: this.isLoading, form: this.form })), index.h("flexible-container", { key: 'f8e36db5b992405f5d3d3fa6d41cd1d7d299cded', isOpened: !!this.tmcResponse && !this.isLoading }, index.h("div", { key: 'ddf373363044a9809b76bb5993af4f243f67e520', class: "flex flex-col items-center pt-[22px]" }, this.tmcResponse === 'Available' && index.h(LaptopMinimalCheckIcon, { key: '80e0e4279553c1f00839e4467571f57073bea0bc', class: "size-[100px] fill-transparent stroke-green-600" }), this.tmcResponse === 'PartiallyAvailable' && index.h(InfoIcon, { key: '5009d6f5aa85c9e464209e60b0649276c816f7ef', class: "size-[100px] fill-transparent stroke-blue-600" }), this.tmcResponse === 'NotAvailable' && index.h(OctagonXIcon, { key: '1431ad523a471ed8e4c0512c9d1477ef2d9d2110', class: "size-[100px] fill-transparent stroke-yellow-600" }), !['Available', 'NotAvailable', 'PartiallyAvailable'].includes(this.tmcResponse || '') && index.h(CloudAlertIcon, { key: '9697498146eb458bd330cc0f3bde561d3aa5f90c', class: "size-[100px] fill-transparent stroke-red-600" }), index.h("div", { key: 'a5455cacb14e29fab0f0c89766ba494238d5c4c4', class: "text-center text-[20px] font-semibold py-[12px]" }, this.locale[this.tmcResponse] || this.tmcResponse))))))));
112
+ // @ts-ignore
113
+ const isComponentOpened = (!!((_a = this === null || this === void 0 ? void 0 : this.partLookup) === null || _a === void 0 ? void 0 : _a.showTMCPartLookup) && !this.closeTmcLookup) || this.standAlone;
114
+ return (index.h(index.Host, { key: 'd12f0b8e7876bb21ed32bea2a6d734d31170da36' }, index.h("flexible-container", { key: '2f7156b409caf59ee529b38a1c03f965546067f2', isOpened: isComponentOpened }, index.h("div", { key: 'f6c9dc49805135dff58b49673bf13a7366766f13', class: "w-full max-w-[96vw] mx-auto pt-[32px]" }, index.h("div", { key: '74abb5d6ef799f68943cddafb5bdc53e2a35e469', class: "bg-[#f6f6f6] rounded-md p-[16px]" }, index.h("div", { key: 'df7621ed13efa14b746db4a01db467c408ec3a48', class: "flex items-center mb-[12px] justify-center px-[16px] font-bold text-[18px]" }, this.locale.TMCLookup), index.h("form", Object.assign({ key: '8eac59f5d59e1a07cbd4d6bfc7acf35fd4f3be8e', class: "relative tmc-form flex flex-col items-center gap-[32px] pt-[8px] pb-[16px]", dir: this.locale.sharedLocales.direction }, formController), index.h("div", { key: 'd777fae02515032411bfca22b95f3417a099cb92', class: "flex gap-2" }, index.h("form-input", { form: this.form, name: "partNumber", isLoading: this.isLoading, key: this.locale.sharedLocales.lang, staticValue: ((_b = this.partLookup) === null || _b === void 0 ? void 0 : _b.partNumber) || undefined }), index.h("form-input", { inputProps: { type: 'number', min: 1 }, name: "quantity", isLoading: this.isLoading, key: this.locale.sharedLocales.lang, form: this.form }), index.h("form-select", { clearable: true, form: this.form, name: "orderType", isLoading: this.isLoading, fetcher: tmcOrderTypesFetcher, key: this.locale.sharedLocales.lang, language: this.locale.sharedLocales.language })), index.h("form-submit", { key: this.locale.sharedLocales.lang, isLoading: this.isLoading, form: this.form })), index.h("flexible-container", { key: '585c07918eb09904555a2248246b0f067c5af696', isOpened: !!this.tmcResponse && !this.isLoading }, index.h("div", { key: 'bcc8c0ef89bfdb6b64e632c7b24a9d662c5230e2', class: "flex flex-col items-center pt-[12px]" }, index.h("div", { key: 'e43ee6da755325ed7c3483134a0cb4e1e00c4594', class: cn.cn('text-center text-[20px] font-semibold py-[12px]', {
115
+ 'text-green-600': ((_c = this.tmcResponse) === null || _c === void 0 ? void 0 : _c.isSuccess) && typeof ((_d = this.tmcResponse) === null || _d === void 0 ? void 0 : _d.data) === 'string',
116
+ 'text-red-600': !((_e = this.tmcResponse) === null || _e === void 0 ? void 0 : _e.isSuccess),
117
+ }) }, typeof ((_f = this.tmcResponse) === null || _f === void 0 ? void 0 : _f.data) === 'string' && (((_g = this.tmcResponse) === null || _g === void 0 ? void 0 : _g.data) || this.locale.RequestFailed), typeof ((_h = this.tmcResponse) === null || _h === void 0 ? void 0 : _h.data) === 'object' && (index.h("div", { key: 'a85a1480c59a4e5dff956fa7335abdb436d890ca', class: "bg-white rounded-lg border w-[500px]" }, Object.entries((_j = this.tmcResponse) === null || _j === void 0 ? void 0 : _j.data).map(([key, value]) => (index.h("div", { key: `${key}-${value}`, class: "flex even:bg-slate-100 hover:bg-sky-100/50 border-b w-full text-xl text-center" }, index.h("div", { class: "text-center flex items-center flex-1 max-w-[250px] shrink-0 justify-center py-[10px] px-[16px] border-r" }, key), index.h("div", { class: "text-center flex items-center flex-1 shrink-0 justify-center py-[10px] px-[16px] border-l" }, value))))))))))))));
118
118
  }
119
119
  get el() { return index.getElement(this); }
120
120
  static get watchers() { return {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- var getLocalLanguage = require('./get-local-language-Ck7SRKZU.js');
7
+ var getLocalLanguage = require('./get-local-language-BfxabMno.js');
8
8
 
9
9
  const warrantySchema = getLocalLanguage.yupTypeMapper([
10
10
  'dealer',
@@ -4,7 +4,7 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- var getLocalLanguage = require('./get-local-language-Ck7SRKZU.js');
7
+ var getLocalLanguage = require('./get-local-language-BfxabMno.js');
8
8
 
9
9
  const deadStockSchema = getLocalLanguage.yupTypeMapper(['deadStock', 'branch', 'availableQuantity']);
10
10
 
@@ -4,7 +4,7 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- var getLocalLanguage = require('./get-local-language-Ck7SRKZU.js');
7
+ var getLocalLanguage = require('./get-local-language-BfxabMno.js');
8
8
 
9
9
  const distributerSchema = getLocalLanguage.yupTypeMapper([
10
10
  'info',
@@ -27,9 +27,6 @@ const distributerSchema = getLocalLanguage.yupTypeMapper([
27
27
  'Part Number',
28
28
  'quantity',
29
29
  'submit',
30
- 'Available',
31
- 'NotAvailable',
32
- 'PartiallyAvailable',
33
30
  'RequestFailed',
34
31
  ]);
35
32