adp-web-components 0.0.28 → 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 (140) hide show
  1. package/dist/cjs/{Loading-df2a9144.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 +129 -94
  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 +1 -1
  8. package/dist/cjs/get-local-language-42973450.js +153 -0
  9. package/dist/cjs/{index-d2dc29e0.js → index-846c93d2.js} +0 -7
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/manufacturer-lookup.cjs.entry.js +5 -5
  12. package/dist/cjs/{partInformation-07651204.js → partInformation-2b4e0593.js} +1 -1
  13. package/dist/cjs/shift-components.cjs.js +2 -2
  14. package/dist/cjs/vehicle-lookup.cjs.entry.js +6 -5
  15. package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
  16. package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
  17. package/dist/collection/components/part-lookup/manufacturer-lookup.js +2 -2
  18. package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +3 -2
  19. package/dist/collection/components/vehicle-lookup/components/SSCTable.js +3 -2
  20. package/dist/collection/components/vehicle-lookup/components/StatusCard.js +2 -2
  21. package/dist/collection/components/vehicle-lookup/dynamic-claim.css +1 -1
  22. package/dist/collection/components/vehicle-lookup/dynamic-claim.js +53 -13
  23. package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +1 -1
  24. package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +49 -10
  25. package/dist/collection/components/vehicle-lookup/paint-thickness.js +47 -8
  26. package/dist/collection/components/vehicle-lookup/service-history.js +42 -3
  27. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +48 -9
  28. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +44 -19
  29. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +42 -3
  30. package/dist/collection/components/vehicle-lookup/warranty-details.js +13 -13
  31. package/dist/collection/global/api/partInformation.js +1 -1
  32. package/dist/collection/global/api/vehicleInformation.js +2 -2
  33. package/dist/collection/global/lib/get-local-language.js +19 -0
  34. package/dist/collection/global/types/locales/error-schema.js +9 -0
  35. package/dist/collection/global/types/locales/index.js +22 -0
  36. package/dist/collection/global/types/locales/vehicle-lookup/accessories-schema.js +13 -0
  37. package/dist/collection/global/types/locales/vehicle-lookup/dynamic-claim-schema.js +21 -0
  38. package/dist/collection/global/types/locales/vehicle-lookup/dynamic-redeem-schema.js +28 -0
  39. package/dist/collection/global/types/locales/vehicle-lookup/index.js +21 -0
  40. package/dist/collection/global/types/locales/vehicle-lookup/paint-thickness-schema.js +14 -0
  41. package/dist/collection/global/types/locales/vehicle-lookup/service-history-schema.js +15 -0
  42. package/dist/collection/global/types/locales/vehicle-lookup/specification-schema.js +14 -0
  43. package/dist/collection/global/types/locales/vehicle-lookup/warranty-schema.js +23 -0
  44. package/dist/components/dead-stock-lookup.js +1 -1
  45. package/dist/components/distributor-lookup.js +1 -1
  46. package/dist/components/dynamic-claim.js +1 -1
  47. package/dist/components/dynamic-redeem.js +1 -1
  48. package/dist/components/manufacturer-lookup.js +1 -1
  49. package/dist/components/p-0ae60f32.js +5 -0
  50. package/dist/components/p-1a626dfd.js +5 -0
  51. package/dist/components/{p-c2815a66.js → p-1d80419b.js} +1 -1
  52. package/dist/components/p-1ea3089a.js +5 -0
  53. package/dist/components/p-2e747eb3.js +5 -0
  54. package/dist/components/p-4f99745c.js +5 -0
  55. package/dist/components/{p-c4fad245.js → p-609c2470.js} +1 -1
  56. package/dist/components/p-6c064413.js +5 -0
  57. package/dist/components/p-7360f9b1.js +5 -0
  58. package/dist/components/p-79ea7639.js +5 -0
  59. package/dist/components/p-a21e2e2e.js +5 -0
  60. package/dist/components/p-eb89583a.js +5 -0
  61. package/dist/components/p-f691e103.js +5 -0
  62. package/dist/components/paint-thickness.js +1 -1
  63. package/dist/components/service-history.js +1 -1
  64. package/dist/components/vehicle-accessories.js +1 -1
  65. package/dist/components/vehicle-lookup.js +1 -1
  66. package/dist/components/vehicle-specification.js +1 -1
  67. package/dist/components/warranty-details.js +1 -1
  68. package/dist/esm/{Loading-3a10eb05.js → Loading-f4d666ee.js} +1 -1
  69. package/dist/esm/dead-stock-lookup.entry.js +5 -5
  70. package/dist/esm/distributor-lookup.entry.js +5 -5
  71. package/dist/esm/dynamic-claim_6.entry.js +127 -92
  72. package/dist/esm/dynamic-redeem.entry.js +21 -9
  73. package/dist/esm/form-input.entry.js +1 -1
  74. package/dist/esm/general-inquiry-form.entry.js +1 -1
  75. package/dist/esm/get-local-language-85ed0b3b.js +150 -0
  76. package/dist/esm/{index-c3d67367.js → index-33ae6859.js} +1 -7
  77. package/dist/esm/loader.js +3 -3
  78. package/dist/esm/manufacturer-lookup.entry.js +5 -5
  79. package/dist/esm/{partInformation-096a8f55.js → partInformation-f40b1fe6.js} +1 -1
  80. package/dist/esm/shift-components.js +3 -3
  81. package/dist/esm/vehicle-lookup.entry.js +6 -5
  82. package/dist/locales/ar.json +101 -1
  83. package/dist/locales/en.json +101 -1
  84. package/dist/locales/ku.json +101 -1
  85. package/dist/shift-components/p-062cd94b.entry.js +5 -0
  86. package/dist/shift-components/p-0e0b69a1.entry.js +5 -0
  87. package/dist/shift-components/p-0f0e54c1.js +6 -0
  88. package/dist/shift-components/p-10aae582.entry.js +5 -0
  89. package/dist/shift-components/p-1de8531d.entry.js +5 -0
  90. package/dist/shift-components/p-2e747eb3.js +5 -0
  91. package/dist/shift-components/{p-02ec4905.entry.js → p-496a721b.entry.js} +1 -1
  92. package/dist/shift-components/{p-0394e29f.entry.js → p-832fd942.entry.js} +1 -1
  93. package/dist/shift-components/p-9120c049.entry.js +5 -0
  94. package/dist/shift-components/{p-89d232e9.js → p-99d314b5.js} +1 -1
  95. package/dist/shift-components/p-c4efbdc3.js +5 -0
  96. package/dist/shift-components/p-d49f73db.entry.js +5 -0
  97. package/dist/shift-components/shift-components.esm.js +1 -1
  98. package/dist/types/components/vehicle-lookup/components/CardsContainer.d.ts +3 -1
  99. package/dist/types/components/vehicle-lookup/components/SSCTable.d.ts +3 -1
  100. package/dist/types/components/vehicle-lookup/components/StatusCard.d.ts +3 -1
  101. package/dist/types/components/vehicle-lookup/dynamic-claim.d.ts +10 -5
  102. package/dist/types/components/vehicle-lookup/dynamic-redeem.d.ts +10 -5
  103. package/dist/types/components/vehicle-lookup/paint-thickness.d.ts +6 -1
  104. package/dist/types/components/vehicle-lookup/service-history.d.ts +6 -1
  105. package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +6 -1
  106. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +5 -3
  107. package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +6 -1
  108. package/dist/types/components/vehicle-lookup/warranty-details.d.ts +4 -4
  109. package/dist/types/components.d.ts +16 -2
  110. package/dist/types/global/lib/get-local-language.d.ts +2 -0
  111. package/dist/types/global/types/locales/error-schema.d.ts +7 -0
  112. package/dist/types/global/types/locales/index.d.ts +220 -0
  113. package/dist/types/global/types/locales/vehicle-lookup/accessories-schema.d.ts +15 -0
  114. package/dist/types/global/types/locales/vehicle-lookup/dynamic-claim-schema.d.ts +31 -0
  115. package/dist/types/global/types/locales/vehicle-lookup/dynamic-redeem-schema.d.ts +45 -0
  116. package/dist/types/global/types/locales/vehicle-lookup/index.d.ts +189 -0
  117. package/dist/types/global/types/locales/vehicle-lookup/paint-thickness-schema.d.ts +17 -0
  118. package/dist/types/global/types/locales/vehicle-lookup/service-history-schema.d.ts +19 -0
  119. package/dist/types/global/types/locales/vehicle-lookup/specification-schema.d.ts +17 -0
  120. package/dist/types/global/types/locales/vehicle-lookup/warranty-schema.d.ts +35 -0
  121. package/package.json +1 -1
  122. package/dist/collection/global/types/locale-schema.js +0 -30
  123. package/dist/components/p-0be9e62f.js +0 -5
  124. package/dist/components/p-0e4c747d.js +0 -5
  125. package/dist/components/p-4f08bcb8.js +0 -5
  126. package/dist/components/p-5f03cbe9.js +0 -5
  127. package/dist/components/p-719499ff.js +0 -5
  128. package/dist/components/p-7aec104e.js +0 -5
  129. package/dist/components/p-a3d447f9.js +0 -5
  130. package/dist/components/p-d07331eb.js +0 -5
  131. package/dist/components/p-ec05b4cd.js +0 -5
  132. package/dist/shift-components/p-1265a8ec.entry.js +0 -5
  133. package/dist/shift-components/p-1f46b4d0.entry.js +0 -5
  134. package/dist/shift-components/p-4f08bcb8.js +0 -5
  135. package/dist/shift-components/p-7a17c535.entry.js +0 -5
  136. package/dist/shift-components/p-9d6b2cfb.entry.js +0 -5
  137. package/dist/shift-components/p-bf83fa95.entry.js +0 -5
  138. package/dist/shift-components/p-d0683e92.entry.js +0 -5
  139. package/dist/shift-components/p-dbaab71c.js +0 -6
  140. package/dist/types/global/types/locale-schema.d.ts +0 -21
@@ -6,10 +6,11 @@
6
6
 
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
- const index = require('./index-d2dc29e0.js');
9
+ const index = require('./index-846c93d2.js');
10
10
  const cn = require('./cn-f559f9e5.js');
11
- const Loading$1 = require('./Loading-df2a9144.js');
12
- const index_esm = require('./index.esm-c628daeb.js');
11
+ const getLocalLanguage = require('./get-local-language-42973450.js');
12
+ const Loading$1 = require('./Loading-6f4f0127.js');
13
+ require('./index.esm-c628daeb.js');
13
14
 
14
15
  const expiredSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzBweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjAiIC8+CiAgICA8ZyBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI4IiBmaWxsLW9wYWNpdHk9IjAuMjQiIGZpbGw9ImJsYWNrIiBzdHJva2U9ImJsYWNrIiAvPgogICAgICAgIDxwYXRoIGQ9Ik0xNiAxNkw4IDgiIHN0cm9rZS13aWR0aD0iMS4yIiBzdHJva2U9ImJsYWNrIiAvPgogICAgICAgIDxwYXRoIGQ9Ik0xNiA4TDggMTYiIHN0cm9rZS13aWR0aD0iMS4yIiBzdHJva2U9ImJsYWNrIiAvPgogICAgPC9nPgo8L3N2Zz4=';
15
16
 
@@ -30,7 +31,7 @@ const vehicleRequestHeaders = {
30
31
  cityIntegrationId: 'City-Integration-Id',
31
32
  brandIntegrationId: 'Brand-Integration-Id',
32
33
  companyIntegrationId: 'Company-Integration-Id',
33
- companyBranchIntegrationId: 'Company-Branch-Integration-Id'
34
+ companyBranchIntegrationId: 'Company-Branch-Integration-Id',
34
35
  };
35
36
  const getVehicleInformation = async (component, generalProps, headers = {}) => {
36
37
  const { notAvailableMessage, mockData, vin, scopedTimeoutRef, middlewareCallback } = generalProps;
@@ -38,7 +39,7 @@ const getVehicleInformation = async (component, generalProps, headers = {}) => {
38
39
  const handleResult = (newVehicleInformation) => {
39
40
  if (networkTimeoutRef === scopedTimeoutRef) {
40
41
  if (!newVehicleInformation && vin)
41
- throw new Error(notAvailableMessage || 'Wrong response format');
42
+ throw new Error(notAvailableMessage || 'wrongResponseFormat');
42
43
  if (loadedResponse)
43
44
  loadedResponse(newVehicleInformation);
44
45
  if (middlewareCallback)
@@ -64,7 +65,7 @@ const getVehicleInformation = async (component, generalProps, headers = {}) => {
64
65
  }
65
66
  };
66
67
 
67
- const dynamicClaimCss = "*,: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}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.flex{display:flex}.table{display:table}.hidden{display:none}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.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))}.border{border-width:1px}.outline{outline-style:solid}.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)}:host{all:initial!important;display:block;flex:1 1 0!important;flex-shrink:0!important;width:100%!important}*{box-sizing:content-box;font-family:Arial;margin:revert;padding:revert}.dynamic-claim-wrapper{background:#fdfdfd;border:1px solid #dcdcdc;border-radius:5px;box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 hsla(0,0%,100%,.1);overflow:hidden;padding:0;position:relative}.dynamic-claim-header{background:#f6f6f6;border:1px solid #ededed;padding:15px 0;text-align:center}.dynamic-claim-header-vin{display:inline-block;transition:.4s}.idle .dynamic-claim-header-vin,.loading .dynamic-claim-header-vin{opacity:0;transform:scale(150%);visibility:hidden}.dynamic-claim-body{display:flex;overflow-x:scroll;padding:100px 30px;transition:scrollbar-color .5s ease}.idle .dynamic-claim-body,.loading .dynamic-claim-body{pointer-events:none}.dynamic-claim-wrapper ::-webkit-scrollbar{height:10px;width:10px}.dynamic-claim-wrapper ::-webkit-scrollbar-track{background:#f6f6f6;border-radius:5px;border-top:1px solid #dcdcdc;border-top-left-radius:0;border-top-right-radius:0}.idle .dynamic-claim-body::-webkit-scrollbar-thumb,.loading .dynamic-claim-body::-webkit-scrollbar-thumb{background:transparent}.dynamic-claim-wrapper ::-webkit-scrollbar-thumb{background:#c5c5c5;border-radius:10px}.dynamic-claim-wrapper ::-webkit-scrollbar-thumb:hover{background:#a1a1a1}.dynamic-claim-progress-lane,.loading-lane{align-items:center;background-color:#f2f2f2;border:1px solid #ddd;border-radius:10px;display:flex;flex:1;flex-direction:row;height:10px;justify-content:space-around;position:relative}.idle .dynamic-claim-progress-lane,.loading .dynamic-claim-progress-lane{background-color:transparent;border:1px solid transparent}.loading-lane{position:absolute;visibility:hidden;width:calc(100% - 60px)}.loading .loading-lane{visibility:visible}.dynamic-claim-progress-bar{background-image:linear-gradient(180deg,#428bca,#3071a9);border:1px solid #ddd;border-radius:10px;height:10px;left:0;position:absolute;transition:all;transition-duration:.5s;transition-timing-function:ease-in-out;width:0;z-index:0}.idle .dynamic-claim-progress-bar,.loading .dynamic-claim-progress-bar{opacity:0;width:0!important}.dynamic-claim-item{align-items:center;display:flex;flex-direction:column;font-size:14px;gap:5px;min-width:250px}.popup-position-ref{bottom:0;display:flex;height:0;justify-content:center;position:absolute;width:0}.popup-container{position:fixed;z-index:100}.dynamic-claim-item-popup-info{background-color:#f9f9f9;border:1px solid #ddd;border-radius:5px;color:#282828;opacity:0;padding:20px;transition:.4s;visibility:hidden;width:auto}.dynamic-claim-item-popup-info-triangle.show,.dynamic-claim-item-popup-info.show{opacity:1;visibility:visible}.dynamic-claim-item-popup-info table{border-collapse:collapse;width:100%}.dynamic-claim-item-popup-info table td,.dynamic-claim-item-popup-info table th{border-bottom:1px solid #ddd;padding:10px 50px 10px 10px;text-align:left;white-space:nowrap}.dynamic-claim-item-popup-info table td{font-weight:400}.dynamic-claim-item-popup-info .claim-button{justify-content:center;margin:15px auto auto;width:80%}.dynamic-claim-item-popup-info-triangle{display:flex;justify-content:center;opacity:0;position:relative;transform:translateY(-9px);transition:.4s;visibility:hidden;width:100%;z-index:101}.dynamic-claim-item-popup-info-triangle-up{border-bottom:10px solid #ddd}.dynamic-claim-item-popup-info-triangle-up,.dynamic-claim-item-popup-info-triangle-up2{border-left:10px solid transparent;border-right:10px solid transparent;height:0;position:absolute;width:0}.dynamic-claim-item-popup-info-triangle-up2{border-bottom:10px solid #f9f9f9;margin-top:1px}.dynamic-claim-item-header{align-items:center;cursor:pointer;display:flex;flex-direction:column;height:3em;line-height:1em;padding:10px 0;position:relative;transition:.4s}.dynamic-claim-item-header.load-animation{animation:item-header-fade-in .65s ease forwards}@keyframes item-header-fade-in{0%{opacity:0;transform:translateY(-5px) scale(70%)}to{opacity:1;transform:translateY(0) scale(100%)}}.dynamic-claim-item-header span{font-weight:700}.dynamic-claim-item-header img{transition:.4s}.dynamic-claim-item-header:hover>img{transform:rotate(1turn) scale(125%)}.idle .dynamic-claim-item-header,.loading .dynamic-claim-item-header{opacity:0;transform:translateY(-5px) scale(70%)}.dynamic-claim-item-footer{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;height:4.5em;line-height:1.5em;margin:0;overflow:hidden;padding:0 20px;text-align:center;text-overflow:ellipsis;transition:.4s}.dynamic-claim-item-footer.load-animation{animation:item-footer-fade-in .65s ease forwards}@keyframes item-footer-fade-in{0%{opacity:0;transform:translateY(5px) scale(70%);visibility:hidden}to{opacity:1;transform:translateY(0) scale(100%);visibility:visible}}.idle .dynamic-claim-item-footer,.loading .dynamic-claim-item-footer{opacity:0;transform:translateY(5px) scale(70%);visibility:hidden}.dynamic-claim-item-circle{background-color:#a1a1a1;border:5px double #ececec;border-radius:50%;height:18px;transition:.4s;width:18px;z-index:1}.dynamic-claim-item-circle.load-animation{animation:item-circle-fade-in .65s ease forwards}@keyframes item-circle-fade-in{0%{opacity:0;transform:scale(150%);visibility:hidden}to{opacity:1;transform:scale(100%);visibility:visible}}.idle .dynamic-claim-item-circle,.loading .dynamic-claim-item-circle{opacity:0;transform:scale(150%);visibility:hidden}.dynamic-claim-item.processed .dynamic-claim-item-circle{background-color:#3071a9}.dynamic-claim-item.processed .dynamic-claim-item-header{color:#3071a9}.dynamic-claim-item.expired .dynamic-claim-item-circle{background-color:#282828}.dynamic-claim-item.expired .dynamic-claim-item-headaer{color:#282828}.dynamic-claim-item.cancelled .dynamic-claim-item-circle{background-color:#a80000}.dynamic-claim-item.cancelled .dynamic-claim-item-header{color:#a80000}.dynamic-claim-item.pending .dynamic-claim-item-circle{background-color:#00a300}.dynamic-claim-item.pending .dynamic-claim-item-header{color:#00a300}.dynamic-claim-loading-slider{border-radius:4px;height:10px;left:0;overflow-x:hidden;position:relative;position:absolute;top:0;width:100%}.dynamic-claim-loading-slider-line{background:#ddd;height:10px;opacity:0;position:absolute;width:150%}.dynamic-claim-loading-slider-subline{background-image:linear-gradient(180deg,#428bca,#3071a9);height:10px;position:absolute}.dynamic-claim-wrapper.loading .dynamic-claim-inc{animation:dynamic-claim-increase 2.5s ease infinite}.dynamic-claim-wrapper.loading .dynamic-claim-dec{animation:dynamic-claim-decrease 2.5s ease 1s infinite}@keyframes dynamic-claim-increase{0%{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes dynamic-claim-decrease{0%{left:-80%;width:80%}to{left:110%;width:10%}}.dynamic-claim-button{align-items:center;border:none;border-radius:5px;color:#fff;cursor:pointer;display:flex;font-weight:700;gap:3px;outline:none;padding:0 10px 0 0;transition:.3s}.dynamic-claim-button svg{transition:.2s}.claim-button{stroke:#27ae60;fill:#27ae60;background-color:transparent;border:1px solid #27ae60;color:#27ae60}.claim-button circle{fill:#2ecc71}.claim-button:hover{stroke:#fff;fill:#fff;background-color:#2ecc71;color:#fff}.claim-button:hover circle{fill:#fff}.claim-button:active{background-color:#27ae60}.claim-button:active svg{transform:scale(125%)}.cancel-button{stroke:#c0392b;fill:#c0392b;background-color:transparent;border:1px solid #c0392b;color:#c0392b}.cancel-button circle{fill:#c0392b;transition:.1s}.cancel-button:hover{stroke:#fff;fill:#fff;background-color:#e74c3c;color:#fff}.cancel-button:hover circle{fill:#fff}.static{position:static}.w-full{width:100%}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mt-\\[12px\\]{margin-top:12px}.h-0{height:0}.h-\\[40px\\]{height:40px}.h-\\[80px\\]{height:80px}.max-h-\\[70dvh\\]{max-height:70dvh}.min-h-\\[100px\\]{min-height:100px}.w-fit{width:fit-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.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-b{border-bottom-width:1px}.border-\\[\\#d6d8dc\\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-4{padding-bottom:1rem;padding-top:1rem}.py-\\[20px\\]{padding-bottom:20px;padding-top:20px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.pt-\\[4px\\]{padding-top:4px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.font-bold{font-weight:700}.text-\\[\\#383c43\\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.success-card{background-color:#d0e7de;border-color:#a2d0bb;color:#0b3521}.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)}.m-\\[3px\\]{margin:3px}.my-4{margin-bottom:1rem;margin-top:1rem}.ml-1{margin-left:.25rem}.border-separate{border-collapse:separate}.list-disc{list-style-type:disc}.gap-1{gap:.25rem}.pl-10{padding-left:2.5rem}";
68
+ const dynamicClaimCss = "*,: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}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.flex{display:flex}.table{display:table}.hidden{display:none}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.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))}.border{border-width:1px}.outline{outline-style:solid}.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)}:host{all:initial!important;display:block;flex:1 1 0!important;flex-shrink:0!important;width:100%!important}*{box-sizing:content-box;font-family:Arial;margin:revert;padding:revert}.dynamic-claim-wrapper{background:#fdfdfd;border:1px solid #dcdcdc;border-radius:5px;box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 hsla(0,0%,100%,.1);overflow:hidden;padding:0;position:relative}.dynamic-claim-header{background:#f6f6f6;border:1px solid #ededed;padding:15px 0;text-align:center}.dynamic-claim-header-vin{display:inline-block;transition:.4s}.idle .dynamic-claim-header-vin,.loading .dynamic-claim-header-vin{opacity:0;transform:scale(150%);visibility:hidden}.dynamic-claim-body{display:flex;overflow-x:scroll;padding:100px 30px;transition:scrollbar-color .5s ease}.idle .dynamic-claim-body,.loading .dynamic-claim-body{pointer-events:none}.dynamic-claim-wrapper ::-webkit-scrollbar{height:10px;width:10px}.dynamic-claim-wrapper ::-webkit-scrollbar-track{background:#f6f6f6;border-radius:5px;border-top:1px solid #dcdcdc;border-top-left-radius:0;border-top-right-radius:0}.idle .dynamic-claim-body::-webkit-scrollbar-thumb,.loading .dynamic-claim-body::-webkit-scrollbar-thumb{background:transparent}.dynamic-claim-wrapper ::-webkit-scrollbar-thumb{background:#c5c5c5;border-radius:10px}.dynamic-claim-wrapper ::-webkit-scrollbar-thumb:hover{background:#a1a1a1}.dynamic-claim-progress-lane,.loading-lane{align-items:center;background-color:#f2f2f2;border:1px solid #ddd;border-radius:10px;display:flex;flex:1;flex-direction:row;height:10px;justify-content:space-around;position:relative}.idle .dynamic-claim-progress-lane,.loading .dynamic-claim-progress-lane{background-color:transparent;border:1px solid transparent}.loading-lane{position:absolute;visibility:hidden;width:calc(100% - 60px)}.loading .loading-lane{visibility:visible}.dynamic-claim-progress-bar{background-image:linear-gradient(180deg,#428bca,#3071a9);border:1px solid #ddd;border-radius:10px;height:10px;left:0;position:absolute;transition:all;transition-duration:.5s;transition-timing-function:ease-in-out;width:0;z-index:0}.idle .dynamic-claim-progress-bar,.loading .dynamic-claim-progress-bar{opacity:0;width:0!important}.dynamic-claim-item{align-items:center;display:flex;flex-direction:column;font-size:14px;gap:5px;min-width:250px}.popup-position-ref{bottom:0;display:flex;height:0;justify-content:center;position:absolute;width:0}.popup-container{position:fixed;z-index:100}.dynamic-claim-item-popup-info{background-color:#f9f9f9;border:1px solid #ddd;border-radius:5px;color:#282828;opacity:0;padding:20px;transition:.4s;visibility:hidden;width:auto}.dynamic-claim-item-popup-info-triangle.show,.dynamic-claim-item-popup-info.show{opacity:1;visibility:visible}.dynamic-claim-item-popup-info table{border-collapse:collapse;width:100%}.dynamic-claim-item-popup-info table td,.dynamic-claim-item-popup-info table th{border-bottom:1px solid #ddd;padding:10px;padding-inline-end:50px;text-align:start;white-space:nowrap}.dynamic-claim-item-popup-info table td{font-weight:400}.dynamic-claim-item-popup-info .claim-button{justify-content:center;margin:15px auto auto;width:80%}.dynamic-claim-item-popup-info-triangle{display:flex;justify-content:center;opacity:0;position:relative;transform:translateY(-9px);transition:.4s;visibility:hidden;width:100%;z-index:101}.dynamic-claim-item-popup-info-triangle-up{border-bottom:10px solid #ddd}.dynamic-claim-item-popup-info-triangle-up,.dynamic-claim-item-popup-info-triangle-up2{border-left:10px solid transparent;border-right:10px solid transparent;height:0;position:absolute;width:0}.dynamic-claim-item-popup-info-triangle-up2{border-bottom:10px solid #f9f9f9;margin-top:1px}.dynamic-claim-item-header{align-items:center;cursor:pointer;display:flex;flex-direction:column;height:3em;line-height:1em;padding:10px 0;position:relative;transition:.4s}.dynamic-claim-item-header.load-animation{animation:item-header-fade-in .65s ease forwards}@keyframes item-header-fade-in{0%{opacity:0;transform:translateY(-5px) scale(70%)}to{opacity:1;transform:translateY(0) scale(100%)}}.dynamic-claim-item-header span{font-weight:700}.dynamic-claim-item-header img{transition:.4s}.dynamic-claim-item-header:hover>img{transform:rotate(1turn) scale(125%)}.idle .dynamic-claim-item-header,.loading .dynamic-claim-item-header{opacity:0;transform:translateY(-5px) scale(70%)}.dynamic-claim-item-footer{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;height:4.5em;line-height:1.5em;margin:0;overflow:hidden;padding:0 20px;text-align:center;text-overflow:ellipsis;transition:.4s}.dynamic-claim-item-footer.load-animation{animation:item-footer-fade-in .65s ease forwards}@keyframes item-footer-fade-in{0%{opacity:0;transform:translateY(5px) scale(70%);visibility:hidden}to{opacity:1;transform:translateY(0) scale(100%);visibility:visible}}.idle .dynamic-claim-item-footer,.loading .dynamic-claim-item-footer{opacity:0;transform:translateY(5px) scale(70%);visibility:hidden}.dynamic-claim-item-circle{background-color:#a1a1a1;border:5px double #ececec;border-radius:50%;height:18px;transition:.4s;width:18px;z-index:1}.dynamic-claim-item-circle.load-animation{animation:item-circle-fade-in .65s ease forwards}@keyframes item-circle-fade-in{0%{opacity:0;transform:scale(150%);visibility:hidden}to{opacity:1;transform:scale(100%);visibility:visible}}.idle .dynamic-claim-item-circle,.loading .dynamic-claim-item-circle{opacity:0;transform:scale(150%);visibility:hidden}.dynamic-claim-item.processed .dynamic-claim-item-circle{background-color:#3071a9}.dynamic-claim-item.processed .dynamic-claim-item-header{color:#3071a9}.dynamic-claim-item.expired .dynamic-claim-item-circle{background-color:#282828}.dynamic-claim-item.expired .dynamic-claim-item-headaer{color:#282828}.dynamic-claim-item.cancelled .dynamic-claim-item-circle{background-color:#a80000}.dynamic-claim-item.cancelled .dynamic-claim-item-header{color:#a80000}.dynamic-claim-item.pending .dynamic-claim-item-circle{background-color:#00a300}.dynamic-claim-item.pending .dynamic-claim-item-header{color:#00a300}.dynamic-claim-loading-slider{border-radius:4px;height:10px;left:0;overflow-x:hidden;position:relative;position:absolute;top:0;width:100%}.dynamic-claim-loading-slider-line{background:#ddd;height:10px;opacity:0;position:absolute;width:150%}.dynamic-claim-loading-slider-subline{background-image:linear-gradient(180deg,#428bca,#3071a9);height:10px;position:absolute}.dynamic-claim-wrapper.loading .dynamic-claim-inc{animation:dynamic-claim-increase 2.5s ease infinite}.dynamic-claim-wrapper.loading .dynamic-claim-dec{animation:dynamic-claim-decrease 2.5s ease 1s infinite}@keyframes dynamic-claim-increase{0%{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes dynamic-claim-decrease{0%{left:-80%;width:80%}to{left:110%;width:10%}}.dynamic-claim-button{align-items:center;border:none;border-radius:5px;color:#fff;cursor:pointer;display:flex;font-weight:700;gap:3px;outline:none;padding:0 10px 0 0;transition:.3s}.dynamic-claim-button svg{transition:.2s}.claim-button{stroke:#27ae60;fill:#27ae60;background-color:transparent;border:1px solid #27ae60;color:#27ae60}.claim-button circle{fill:#2ecc71}.claim-button:hover{stroke:#fff;fill:#fff;background-color:#2ecc71;color:#fff}.claim-button:hover circle{fill:#fff}.claim-button:active{background-color:#27ae60}.claim-button:active svg{transform:scale(125%)}.cancel-button{stroke:#c0392b;fill:#c0392b;background-color:transparent;border:1px solid #c0392b;color:#c0392b}.cancel-button circle{fill:#c0392b;transition:.1s}.cancel-button:hover{stroke:#fff;fill:#fff;background-color:#e74c3c;color:#fff}.cancel-button:hover circle{fill:#fff}.static{position:static}.w-full{width:100%}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mt-\\[12px\\]{margin-top:12px}.h-0{height:0}.h-\\[40px\\]{height:40px}.h-\\[80px\\]{height:80px}.max-h-\\[70dvh\\]{max-height:70dvh}.min-h-\\[100px\\]{min-height:100px}.w-fit{width:fit-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.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-b{border-bottom-width:1px}.border-\\[\\#d6d8dc\\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-4{padding-bottom:1rem;padding-top:1rem}.py-\\[20px\\]{padding-bottom:20px;padding-top:20px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.pt-\\[4px\\]{padding-top:4px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.font-bold{font-weight:700}.text-\\[\\#383c43\\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.success-card{background-color:#d0e7de;border-color:#a2d0bb;color:#0b3521}.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)}.m-\\[3px\\]{margin:3px}.my-4{margin-bottom:1rem;margin-top:1rem}.ml-1{margin-left:.25rem}.border-separate{border-collapse:separate}.list-disc{list-style-type:disc}.gap-1{gap:.25rem}";
68
69
  const DynamicClaimStyle0 = dynamicClaimCss;
69
70
 
70
71
  let mockData$5 = {};
@@ -98,15 +99,23 @@ const DynamicClaim = class {
98
99
  this.baseUrl = undefined;
99
100
  this.isDev = false;
100
101
  this.queryString = '';
102
+ this.language = 'en';
103
+ this.loadingStateChange = undefined;
104
+ this.loadedResponse = undefined;
105
+ this.locale = getLocalLanguage.localeSchema.getDefault();
101
106
  this.isIdle = true;
102
107
  this.popupClasses = '';
108
+ this.isLoading = false;
103
109
  this.externalVin = null;
110
+ this.errorMessage = null;
104
111
  this.activePopupIndex = null;
105
112
  this.vehicleInformation = undefined;
106
- this.errorMessage = null;
107
- this.isLoading = false;
108
- this.loadingStateChange = undefined;
109
- this.loadedResponse = undefined;
113
+ }
114
+ async componentWillLoad() {
115
+ await this.changeLanguage(this.language);
116
+ }
117
+ async changeLanguage(newLanguage) {
118
+ this.locale = await getLocalLanguage.getLocaleLanguage(newLanguage);
110
119
  }
111
120
  async componentDidLoad() {
112
121
  this.dynamicClaimBody = this.el.shadowRoot.querySelector('.dynamic-claim-body');
@@ -139,9 +148,9 @@ const DynamicClaim = class {
139
148
  const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData: mockData$5 }, headers) : newData;
140
149
  if (this.networkTimeoutRef === scopedTimeoutRef) {
141
150
  if (!vehicleResponse)
142
- throw new Error('Wrong response format');
151
+ throw new Error('wrongResponseFormat');
143
152
  if (!Array.isArray(vehicleResponse.serviceItems))
144
- throw new Error('No Service Available');
153
+ throw new Error('noServiceAvailable');
145
154
  this.vehicleInformation = vehicleResponse;
146
155
  }
147
156
  this.errorMessage = null;
@@ -324,12 +333,14 @@ const DynamicClaim = class {
324
333
  this.handleRedeemScanner();
325
334
  }
326
335
  createPopup(item) {
327
- return (index.h("div", { class: "popup-position-ref" }, index.h("div", { class: "popup-container" }, index.h("div", { class: cn.cn('dynamic-claim-item-popup-info-triangle', this.popupClasses) }, index.h("div", { class: "dynamic-claim-item-popup-info-triangle-up" }), index.h("div", { class: "dynamic-claim-item-popup-info-triangle-up2" })), index.h("div", { class: cn.cn('dynamic-claim-item-popup-info', this.popupClasses) }, index.h("table", null, index.h("tbody", null, index.h("tr", null, index.h("th", null, "Service Type:"), index.h("td", null, item.type.charAt(0).toUpperCase() + item.type.slice(1))), index.h("tr", null, index.h("th", null, "Activation Date"), index.h("td", null, item.activatedAt)), index.h("tr", null, index.h("th", null, "Expiry Date"), index.h("td", null, item.expiresAt)), index.h("tr", null, index.h("th", null, "Claimed At"), index.h("td", null, item.redeemDate)), index.h("tr", null, index.h("th", null, "Redeeming Dealer"), index.h("td", null, item.dealerName)), index.h("tr", null, index.h("th", null, "Invoice Number"), index.h("td", null, item.invoiceNumber)), index.h("tr", null, index.h("th", null, "WIP"), index.h("td", null, item.wip)), index.h("tr", null, index.h("th", null, "Menu Code"), index.h("td", null, item.menuCode)))), item.status === 'pending' && (index.h("button", { onClick: () => this.claim(item), class: "dynamic-claim-button claim-button" }, index.h("svg", { width: "30px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { "stroke-width": "0" }), index.h("g", { "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("g", null, index.h("circle", { cx: "12", cy: "12", r: "8", "fill-opacity": "0.24" }), index.h("path", { d: "M8.5 11L11.3939 13.8939C11.4525 13.9525 11.5475 13.9525 11.6061 13.8939L19.5 6", "stroke-width": "1.2" }))), index.h("span", null, "Claim")))))));
336
+ const texts = this.locale.vehicleLookup.dynamicClaim;
337
+ return (index.h("div", { dir: this.locale.direction, class: "popup-position-ref" }, index.h("div", { class: "popup-container" }, index.h("div", { class: cn.cn('dynamic-claim-item-popup-info-triangle', this.popupClasses) }, index.h("div", { class: "dynamic-claim-item-popup-info-triangle-up" }), index.h("div", { class: "dynamic-claim-item-popup-info-triangle-up2" })), index.h("div", { class: cn.cn('dynamic-claim-item-popup-info', this.popupClasses) }, index.h("table", null, index.h("tbody", null, index.h("tr", null, index.h("th", null, texts.serviceType), index.h("td", null, item.type.charAt(0).toUpperCase() + item.type.slice(1))), index.h("tr", null, index.h("th", null, texts.activationDate), index.h("td", null, item.activatedAt)), index.h("tr", null, index.h("th", null, texts.expireDate), index.h("td", null, item.expiresAt)), index.h("tr", null, index.h("th", null, texts.claimAt), index.h("td", null, item.redeemDate)), index.h("tr", null, index.h("th", null, texts.redeemingDealer), index.h("td", null, item.dealerName)), index.h("tr", null, index.h("th", null, texts.invoiceNumber), index.h("td", null, item.invoiceNumber)), index.h("tr", null, index.h("th", null, texts.wip), index.h("td", null, item.wip)), index.h("tr", null, index.h("th", null, texts.claim), index.h("td", null, item.menuCode)))), item.status === 'pending' && (index.h("button", { onClick: () => this.claim(item), class: "claim-button" }, index.h("svg", { width: "30px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { "stroke-width": "0" }), index.h("g", { "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("g", null, index.h("circle", { cx: "12", cy: "12", r: "8", "fill-opacity": "0.24" }), index.h("path", { d: "M8.5 11L11.3939 13.8939C11.4525 13.9525 11.5475 13.9525 11.6061 13.8939L19.5 6", "stroke-width": "1.2" }))), index.h("span", null, texts.claim)))))));
328
338
  }
329
339
  render() {
330
340
  var _a, _b;
331
341
  const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
332
- return (index.h(index.Host, { key: '6e978e300bae2dd76b153421a56180adac9b0181' }, index.h("dynamic-redeem", { key: '98762e62d38fedf77d328e8dc2da6c832b927f0c', id: "dynamic-redeem" }), index.h("div", { key: '46b817f023ce25c860c79c4fafe7c963b9acd6be', class: cn.cn('dynamic-claim-wrapper', { loading: this.isLoading, idle: this.isIdle }) }, index.h("div", { key: '3e93ee7b596ab9d4fb338e5a7c5973d102d6db2b', class: "dynamic-claim-header" }, index.h("strong", { key: '037bbee7e1aa4c3cf36d93fdc20c01959f194fca', onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-header-vin load-animation" }, this.errorMessage && index.h("span", { key: 'd68269004e338abd8d08c8bb840e5084a3b428a7', style: { color: 'red' } }, this.errorMessage), !this.errorMessage && ((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin))), index.h("div", { key: '7cc8f93760c08f55af3d56515c928c2a888c8f18', class: "dynamic-claim-body" }, index.h("div", { key: '471ede9a4acb83195d9b0f78a36d00364abd99cf', class: "loading-lane" }, index.h("div", { key: 'f734fcaca3e8653870e76a3e72c45a1cbb2bd320', class: "dynamic-claim-loading-slider" }, index.h("div", { key: '747118edb9777ee3833bcb27c01d3f8b19cef6c6', class: "dynamic-claim-loading-slider-line" }), index.h("div", { key: '3e65f85d83ba6aaa062e83989683675ad0ec5b7c', class: "dynamic-claim-loading-slider-subline dynamic-claim-inc" }), index.h("div", { key: '48a3aa105f30e70ff0bdb1f335a404e0a88fd791', class: "dynamic-claim-loading-slider-subline dynamic-claim-dec" }))), index.h("div", { key: '9009de9a5e02782908f0b4d79fa89aaf43dbba2d', class: "dynamic-claim-progress-lane" }, serviceItems.map((item, idx) => {
342
+ const texts = this.locale.vehicleLookup.dynamicClaim;
343
+ return (index.h(index.Host, { key: 'f2cfdf00146271981ecae27ecb4ec236828ff867' }, index.h("dynamic-redeem", { key: '8e48bb690fc3b836d62de1f070aafaf04745d0b0', language: this.language, id: "dynamic-redeem" }), index.h("div", { key: '6094c0caafc5739c604d9d4c4c47e333afe1f7e4', class: cn.cn('dynamic-claim-wrapper', { loading: this.isLoading, idle: this.isIdle }) }, index.h("div", { key: 'd60e75f110d3c256accc79a902002308b446474a', class: "dynamic-claim-header" }, index.h("strong", { key: '27b8c733c52f1da4a4698d3b8088ffd9f327d135', onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-header-vin load-animation" }, this.errorMessage && index.h("span", { key: 'abc5f47fb708a682ff332490bd0c141067918e20', style: { color: 'red' } }, this.locale.errors[this.errorMessage] || this.errorMessage), !this.errorMessage && ((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin))), index.h("div", { key: '60821e446380af29fe6ac69b8c857389852c38c3', class: "dynamic-claim-body" }, index.h("div", { key: 'a377796da2f109c6d7f6a191e0460557353ae699', class: "loading-lane" }, index.h("div", { key: '4a0160292a9b3c37144d31abb5522fb75290e4d6', class: "dynamic-claim-loading-slider" }, index.h("div", { key: 'c9b863afa89ff6d8e849174e3a6c9d1095ab79cf', class: "dynamic-claim-loading-slider-line" }), index.h("div", { key: '9b3281714f0bfbe115a97fa6a36a650a791b77c9', class: "dynamic-claim-loading-slider-subline dynamic-claim-inc" }), index.h("div", { key: 'ba327f47aa070fa45e5e8153834918cb68e18e34', class: "dynamic-claim-loading-slider-subline dynamic-claim-dec" }))), index.h("div", { key: 'c9ac7e0575e62b7a67312b4144c61350c351630d', class: "dynamic-claim-progress-lane" }, serviceItems.map((item, idx) => {
333
344
  let statusClass = '';
334
345
  if (item.status === 'pending') {
335
346
  if (serviceItems.findIndex(i => i.status === 'pending') === idx)
@@ -337,11 +348,12 @@ const DynamicClaim = class {
337
348
  }
338
349
  else
339
350
  statusClass = item.status;
340
- return (index.h("div", { key: item.name, class: cn.cn('dynamic-claim-item', statusClass), onMouseLeave: this.onMouseLeave }, index.h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-header load-animation", onMouseEnter: event => this.onMouseEnter(event.target, idx) }, index.h("img", { src: icons[item.status], alt: "status icon" }), index.h("span", null, item.status.charAt(0).toUpperCase() + item.status.slice(1)), this.activePopupIndex === idx && this.createPopup(item)), index.h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-circle load-animation" }), index.h("p", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-footer load-animation" }, item.name)));
341
- }), index.h("div", { key: '1e05a3af9851d7418c31e4fd16d9ec4836930bdc', class: "dynamic-claim-progress-bar" }))))));
351
+ return (index.h("div", { key: item.name, class: cn.cn('dynamic-claim-item', statusClass), onMouseLeave: this.onMouseLeave }, index.h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-header load-animation", onMouseEnter: event => this.onMouseEnter(event.target, idx) }, index.h("img", { src: icons[item.status], alt: "status icon" }), index.h("span", null, texts[item.status]), this.activePopupIndex === idx && this.createPopup(item)), index.h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-circle load-animation" }), index.h("p", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-footer load-animation" }, item.name)));
352
+ }), index.h("div", { key: 'ef131184baaf7d319a167ab3915a37ef8aa4c366', class: "dynamic-claim-progress-bar" }))))));
342
353
  }
343
354
  get el() { return index.getElement(this); }
344
355
  static get watchers() { return {
356
+ "language": ["changeLanguage"],
345
357
  "isLoading": ["onLoadingChange"],
346
358
  "vehicleInformation": ["resetProgressBar"],
347
359
  "popupClasses": ["windowScrollListener"]
@@ -436,14 +448,22 @@ const PaintThickness = class {
436
448
  this.baseUrl = '';
437
449
  this.isDev = false;
438
450
  this.queryString = '';
451
+ this.language = 'en';
439
452
  this.loadingStateChange = undefined;
440
453
  this.loadedResponse = undefined;
454
+ this.locale = getLocalLanguage.localeSchema.getDefault();
441
455
  this.state = 'idle';
442
456
  this.externalVin = null;
443
- this.errorMessage = null;
444
457
  this.expandedImage = null;
458
+ this.errorMessage = null;
445
459
  this.vehicleInformation = undefined;
446
460
  }
461
+ async componentWillLoad() {
462
+ await this.changeLanguage(this.language);
463
+ }
464
+ async changeLanguage(newLanguage) {
465
+ this.locale = await getLocalLanguage.getLocaleLanguage(newLanguage);
466
+ }
447
467
  handleSettingData(response) {
448
468
  if (!response.paintThickness)
449
469
  response.paintThickness = { imageGroups: [], parts: [] };
@@ -479,7 +499,7 @@ const PaintThickness = class {
479
499
  const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData: mockData$4 }, headers) : newData;
480
500
  if (this.networkTimeoutRef === scopedTimeoutRef) {
481
501
  if (!vehicleResponse)
482
- throw new Error('Wrong response format');
502
+ throw new Error('wrongResponseFormat');
483
503
  this.handleSettingData(vehicleResponse);
484
504
  }
485
505
  this.errorMessage = null;
@@ -505,15 +525,17 @@ const PaintThickness = class {
505
525
  }
506
526
  render() {
507
527
  var _a, _b;
528
+ const texts = this.locale.vehicleLookup.paintThickness;
508
529
  const { imageGroups, parts } = (this === null || this === void 0 ? void 0 : this.vehicleInformation) ? (_a = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.paintThickness : { imageGroups: [], parts: [] };
509
- return (index.h(index.Host, { key: '355f2df0a3e80a89c0fdcb8aabb0e40ccc700bf6' }, index.h("div", { key: '5aeb480a0b710ceb13d0bffcf6b71cc75b833143', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: '63cd6f54659b1cf4431fdf625993b3fa7a29bd39' }, index.h(Loading$1.Loading, { key: '012fb79e5ffbb120046a6ce2827f36406a0b048f', isLoading: this.state.includes('loading') }), index.h("div", { key: '1adcc025c0aec78f5c49898f8aa3aa7254692ade', class: cn.cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, index.h("div", { key: '73c09edaee5d53821c5ccbf664b939417138eb1b', class: cn.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) && (index.h("div", { key: '24c95b96da8bf0281f8651933bf52de6c09159e7', class: "py-[16px]" }, index.h("div", { key: '0f93d0e593172c81f9e9793385fcb41ba442708e', 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: '253e4eae86844769ef81f278f87583fbab791dea', class: "flex mt-[12px] w-full max-h-[70dvh] overflow-hidden mx-auto rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: '30ea8fa499edecc4d9a5f389d1b801041f3f8b41', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Paint Thickeness"), index.h("div", { key: '43bc2a9e95f73d028eee8c0b1d4ab07c3a54527b', class: "h-0 overflow-auto flex-1" }, !parts.length && index.h("div", { key: 'e5e6e8c3baa2f98df7d800a791d3c686013e357f', class: "h-[50px] px-[30px] flex items-center justify-center text-[18px]" }, "No parts are available."), !!parts.length && (index.h("table", { key: '17065cf14a8db4cddad1972deb0bdb36d826be04', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: '118e8822d316131999b936404afeafd495f10c8a', class: "top-0 font-bold sticky bg-white" }, index.h("tr", { key: '2823f3b683e6c7416ea5a6754b63fd49f2df03ac' }, ['Part', 'Left', 'Right'].map(title => (index.h("th", { key: title, class: "px-[15px] min-w-[100px] py-[15px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), index.h("tbody", { key: 'c5574301b73756700ff5ec867e31e379e573d96d' }, parts.map((part, idx) => (index.h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: part.part }, ['part', 'left', 'right'].map(key => (index.h("td", { key: part.part + key, class: cn.cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
530
+ return (index.h(index.Host, { key: 'c016cef77b893442d0d33c4f9b986ee9d704a047' }, index.h("div", { key: 'db3b0f02c3423e0483a5000fa52fcd02e106f417', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: '04f5488431c759be5a01e6bbe1d58a62b291e8f2' }, index.h(Loading$1.Loading, { key: '5b8a290c885e7a32f110522806f0e76545db3400', isLoading: this.state.includes('loading') }), index.h("div", { key: '3304d8d438eb74c7b1b0c3ce0ab6f42870dad451', class: cn.cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, index.h("div", { key: 'c7b7b7ff56602b4dc86433e351e3b398bdc49b54', class: cn.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) && (index.h("div", { key: 'aa565320287a2659040766032456e53b9108fddf', class: "py-[16px]" }, index.h("div", { key: 'e99991f62d92c8c80e2622189b481e09390a4836', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '06ddc28439757b99a2e66603a08085bfebab2887', class: "flex mt-[12px] w-full max-h-[70dvh] overflow-hidden mx-auto rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: '0191a58f1fed172f13a0c1448b0e5045f2898a2e', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.paintThickness), index.h("div", { key: '4ac786cbfec1df9c3a034f329ce5baa1591b124b', class: "h-0 overflow-auto flex-1" }, !parts.length && index.h("div", { key: '46261e7f73e45ccdcfee8af1e621cd4e4f405e79', class: "h-[50px] px-[30px] flex items-center justify-center text-[18px]" }, texts.noData), !!parts.length && (index.h("table", { key: 'eb30840419f8daa59aeb72190640eaadbca7f9ad', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: 'e94bfe40d27f90307fbe2303d10be468515dc0a4', class: "top-0 font-bold sticky bg-white" }, index.h("tr", { key: '3c51cc746f226512120e40711a0109924b3b518a' }, ['part', 'left', 'right'].map(title => (index.h("th", { key: title, class: "px-[15px] min-w-[100px] py-[15px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), index.h("tbody", { key: '9634a5a5ded1cb2ffb8488e7f36408708ee20431' }, parts.map((part, idx) => (index.h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: part.part }, ['part', 'left', 'right'].map(key => (index.h("td", { key: part.part + key, class: cn.cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
510
531
  '!border-none': idx === parts.length - 1,
511
- }) }, part[key] || '...')))))))))))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '07a2c492c12647c16ac2b6e494056d9ccdb1ea55' }, !imageGroups.length && index.h("div", { key: '3c96acc6216c2523c1f2ea3d5d32f39072ccdc68', class: "h-[40px] px-[30px] flex text-red-500 items-center justify-center text-[18px]" }, "No image groups are available."), !!imageGroups.length && (index.h("div", { key: 'b3179fc893a9f8b92395a1bedafd6955d7f5b664', class: "py-[16px] gap-[16px] justify-center flex flex-wrap px-[24px] w-full" }, imageGroups.map(imageGroup => (index.h("div", { class: "shrink-0 rounded-lg shadow-sm border overflow-hidden flex flex-col", key: imageGroup.name }, index.h("h1", { class: "text-center border-b bg-slate-200 font-semibold p-[6px]" }, imageGroup.name), index.h("div", { class: "flex p-[12px] gap-[8px]" }, imageGroup.images.map(image => (index.h("div", { class: "flex gap-[8px]", key: image }, index.h("button", { onClick: ({ target }) => this.openImage(target, image), class: "shrink-0 relative ring-0 outline-none w-fit mx-auto [&_img]:hover:shadow-lg [&_div]:hover:!opacity-100 cursor-pointer" }, index.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" }, index.h("img", { src: eyeSvg }), index.h("span", { class: "text-white" }, "Expand")), index.h("img", { class: "w-auto h-[150px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: image }))))))))), index.h("div", { key: 'a727d06966fd3aac08d5c5f8bd16f4fe00040db2', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn.cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-10 left-0 opacity-0 bg-black/40 transition-all duration-400', {
532
+ }) }, part[key] || '...')))))))))))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: 'd25a655f2d5f146cb84f42afea7c8d5c83e93403' }, !imageGroups.length && index.h("div", { key: '1541923dd14aa6f454b7213e17454880ec2903f9', class: "h-[40px] px-[30px] flex text-red-500 items-center justify-center text-[18px]" }, texts.noImageGroups), !!imageGroups.length && (index.h("div", { key: 'dd8785fb8af9453816c756ee253adc3f2ed273ff', class: "py-[16px] gap-[16px] justify-center flex flex-wrap px-[24px] w-full" }, imageGroups.map(imageGroup => (index.h("div", { class: "shrink-0 rounded-lg shadow-sm border overflow-hidden flex flex-col", key: imageGroup.name }, index.h("h1", { class: "text-center border-b bg-slate-200 font-semibold p-[6px]" }, imageGroup.name), index.h("div", { class: "flex p-[12px] gap-[8px]" }, imageGroup.images.map(image => (index.h("div", { class: "flex gap-[8px]", key: image }, index.h("button", { onClick: ({ target }) => this.openImage(target, image), class: "shrink-0 relative ring-0 outline-none w-fit mx-auto [&_img]:hover:shadow-lg [&_div]:hover:!opacity-100 cursor-pointer" }, index.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" }, index.h("img", { src: eyeSvg }), index.h("span", { class: "text-white" }, texts.expand)), index.h("img", { class: "w-auto h-[150px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: image }))))))))), index.h("div", { key: 'a6d5c4181ee71b5f8e33e45b5f0c701dbc3ea24b', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn.cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-10 left-0 opacity-0 bg-black/40 transition-all duration-400', {
512
533
  'pointer-events-auto opacity-100 delay-200': this.expandedImage,
513
- }) }, index.h("button", { key: 'dc3da2c8ac67e1c62db2958e29079b52ca514213', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, index.h("div", { key: 'abfc5c11a56825803a3b87ee0e36f2e5a47f2953', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), index.h("div", { key: 'a37fa84c8e51ea026a2869c246645bf816effd1d', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), index.h("img", { key: '062421c196e4ffb107c5b0c1aa93d117bad3a18d', alt: "", id: "expanded-image", class: "fixed opacity-0 z-40 transition-all rounded-lg" }))))))))));
534
+ }) }, index.h("button", { key: 'e970d607cba3e4032063c3bf2b7ba69c2b21c4a4', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, index.h("div", { key: 'e1ca12957a925aac35f8ce4180e155a72a3a5880', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), index.h("div", { key: '194f919ae1ac66550b9feb51c2d3a5bc968bb5b2', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), index.h("img", { key: '896ddba224ccf4f06ffc70ff13eb17eaa720330a', alt: "", id: "expanded-image", class: "fixed opacity-0 z-40 transition-all rounded-lg" }))))))))));
514
535
  }
515
536
  get el() { return index.getElement(this); }
516
537
  static get watchers() { return {
538
+ "language": ["changeLanguage"],
517
539
  "state": ["loadingListener"]
518
540
  }; }
519
541
  };
@@ -529,13 +551,21 @@ const ServiceHistory = class {
529
551
  this.baseUrl = '';
530
552
  this.isDev = false;
531
553
  this.queryString = '';
554
+ this.language = 'en';
532
555
  this.loadingStateChange = undefined;
533
556
  this.loadedResponse = undefined;
557
+ this.locale = getLocalLanguage.localeSchema.getDefault();
534
558
  this.state = 'idle';
535
559
  this.externalVin = null;
536
560
  this.errorMessage = null;
537
561
  this.vehicleInformation = undefined;
538
562
  }
563
+ async componentWillLoad() {
564
+ await this.changeLanguage(this.language);
565
+ }
566
+ async changeLanguage(newLanguage) {
567
+ this.locale = await getLocalLanguage.getLocaleLanguage(newLanguage);
568
+ }
539
569
  handleSettingData(response) {
540
570
  if (response.serviceHistory === null)
541
571
  response.serviceHistory = [];
@@ -567,7 +597,7 @@ const ServiceHistory = class {
567
597
  const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData: mockData$3 }, headers) : newData;
568
598
  if (this.networkTimeoutRef === scopedTimeoutRef) {
569
599
  if (!vehicleResponse)
570
- throw new Error('Wrong response format');
600
+ throw new Error('wrongResponseFormat');
571
601
  this.handleSettingData(vehicleResponse);
572
602
  }
573
603
  this.errorMessage = null;
@@ -593,7 +623,8 @@ const ServiceHistory = class {
593
623
  }
594
624
  render() {
595
625
  var _a, _b, _c, _d;
596
- return (index.h(index.Host, { key: '1b058ba5baea7e3249a66e5b7a040a673b140345' }, index.h("div", { key: '414432d67e85b8ad11a0f9a3bf9cf6336e06c8ce', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: 'd4129e8101efd34c820d64661c90c5d81a65a90c' }, index.h(Loading$1.Loading, { key: 'ff1d26799aceb06a1c7b22c556cc1391e3585481', isLoading: this.state.includes('loading') }), index.h("div", { key: '09a740c1f863f0bd90ea52e6f94c8c9add2901f4', class: cn.cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, index.h("div", { key: '1e40aeba7672c94cb70479d8cf4ca28e217a1ac2', class: cn.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) && (index.h("div", { key: '4b2102507916ecdd06ce0fbc8fe5b82cf9463fe3', class: "py-[16px]" }, index.h("div", { key: '89a48cf522a860d2840e772ca0a2750ffd6f6652', 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: '42b2403fae1685bf6a49f756ac3a6aae31a6423d', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: '462678b7179bb278d9a51845fda8c98deff3a790', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Service History"), index.h("div", { key: 'a3a484027fa040a6f80b94cdd3c8fcaf5d36a977', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.serviceHistory.length) && index.h("div", { key: '4562aaa28b8941799d7203c49d0a457feb881616', 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) && (index.h("table", { key: 'cbb4515b99b33e65536d2f577439bf5c4bd19c61', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: 'a6829bbcb8578d51a4be89b02b4095b21966ed9f', class: "top-0 font-bold sticky bg-white" }, index.h("tr", { key: 'd6bfa489b6797e499173b8e67b28f0eb519e70ac' }, ['Branch', 'Dealer', 'Invoice No.', 'Date', 'Service Type', 'Odometer'].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: '27f91e98246790262d844c68290f12abdad7ba74' }, (_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.serviceHistory.map((service, idx) => (index.h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: service.invoiceNumber }, ['branchName', 'companyName', 'invoiceNumber', 'serviceDate', 'serviceType', 'mileage'].map(serviceType => {
626
+ const texts = this.locale.vehicleLookup.serviceHistory;
627
+ return (index.h(index.Host, { key: 'e5eefccce115cb82190384b31dda1315bde5fc70' }, index.h("div", { key: 'ec5be235022339b210e9346035c54d32e931a1ca', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: 'c1fe096d2176c255bd481394da51b527b45cd9d7' }, index.h(Loading$1.Loading, { key: '4ed349910b887560911ac00ecd10fc01a6567837', isLoading: this.state.includes('loading') }), index.h("div", { key: 'a0617a3631df80fb41dbcf0c962fdd2e864d3493', class: cn.cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, index.h("div", { key: '2215c44cf4c0a4fe5675b12a59d0f6c77ed7fe49', class: cn.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) && (index.h("div", { key: 'be552c787c2c35a5c69e6a64619d75f75e1f6797', class: "py-[16px]" }, index.h("div", { key: '7edc33ca66e08ac62b7a01bab8bdf6644bbd63fa', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '29a7f3193a94147dbfe3ffa4b8ef2ad147868f1c', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: '1a94982c5578322eb257b3dceb6ff130c788d217', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.serviceHistory), index.h("div", { key: '057c1d07e82b95ea22bbc80e5dd4b56ebdda99e4', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.serviceHistory.length) && index.h("div", { key: '976ad885407d9e02135f60a3334e3f1e6d118a9b', class: "h-[80px] flex items-center justify-center text-[18px]" }, texts.noData), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.serviceHistory.length) && (index.h("table", { key: '6042aa7f6766c6847173d6714254fb8f377c3ca6', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: '2ee300fe27add43c20d215653f2cbd295c08f524', class: "top-0 font-bold sticky bg-white" }, index.h("tr", { key: 'c5331792c19ed2f6cfa8a4551ad5cd31d6d62d2a' }, ['branch', 'dealer', 'invoiceNumber', 'date', 'serviceType', 'odometer'].map(title => (index.h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), index.h("tbody", { key: '0940d07d7f4abc75f219286949ed5c347f456581' }, (_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.serviceHistory.map((service, idx) => (index.h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: service.invoiceNumber }, ['branchName', 'companyName', 'invoiceNumber', 'serviceDate', 'serviceType', 'mileage'].map(serviceType => {
597
628
  var _a;
598
629
  return (index.h("td", { key: service.invoiceNumber + serviceType, class: cn.cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
599
630
  '!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
@@ -602,6 +633,7 @@ const ServiceHistory = class {
602
633
  }
603
634
  get el() { return index.getElement(this); }
604
635
  static get watchers() { return {
636
+ "language": ["changeLanguage"],
605
637
  "state": ["loadingListener"]
606
638
  }; }
607
639
  };
@@ -626,14 +658,22 @@ const VehicleAccessories = class {
626
658
  this.baseUrl = '';
627
659
  this.isDev = false;
628
660
  this.queryString = '';
661
+ this.language = 'en';
629
662
  this.loadingStateChange = undefined;
630
663
  this.loadedResponse = undefined;
664
+ this.locale = getLocalLanguage.localeSchema.getDefault();
631
665
  this.state = 'idle';
632
666
  this.externalVin = null;
633
- this.errorMessage = null;
634
667
  this.expandedImage = null;
668
+ this.errorMessage = null;
635
669
  this.vehicleInformation = undefined;
636
670
  }
671
+ async componentWillLoad() {
672
+ await this.changeLanguage(this.language);
673
+ }
674
+ async changeLanguage(newLanguage) {
675
+ this.locale = await getLocalLanguage.getLocaleLanguage(newLanguage);
676
+ }
637
677
  handleSettingData(response) {
638
678
  if (!response.accessories || !Array.isArray(response.accessories))
639
679
  response.accessories = [];
@@ -665,7 +705,7 @@ const VehicleAccessories = class {
665
705
  const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData: mockData$2 }, headers) : newData;
666
706
  if (this.networkTimeoutRef === scopedTimeoutRef) {
667
707
  if (!vehicleResponse)
668
- throw new Error('Wrong response format');
708
+ throw new Error('wrongResponseFormat');
669
709
  this.handleSettingData(vehicleResponse);
670
710
  }
671
711
  this.errorMessage = null;
@@ -691,8 +731,9 @@ const VehicleAccessories = class {
691
731
  }
692
732
  render() {
693
733
  var _a, _b;
734
+ const texts = this.locale.vehicleLookup.accessories;
694
735
  const accessories = (this === null || this === void 0 ? void 0 : this.vehicleInformation) ? (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.accessories : [];
695
- return (index.h(index.Host, { key: '809010a784fce81c13a9f653768bcb2f792b2a8b' }, index.h("div", { key: '68da5c8fccf4b24c2d3a42cf4cc3fefb7dd560ab', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: '947bbad37c5117df4f79f2c896936a22f00b0531' }, index.h(Loading$1.Loading, { key: '855aa5567d59bbfac43495c5baba708fb5600c1c', isLoading: this.state.includes('loading') }), index.h("div", { key: '1fe9e47793a7f58b8b0f4251ced6f7ff49f93240', class: cn.cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, index.h("div", { key: '7ed9356bf45e5b27c4c5ad032d44d3fdbf60631a', class: cn.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) && (index.h("div", { key: 'dd349e9113ddde6a1447dd7b56d1045db29eecb6', class: "py-[16px]" }, index.h("div", { key: '0d720a59842a2f1e4adfdcf82bd2b443625d9c14', 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: '48030f4b6938c6174df0e80cea90221efcd80135', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: 'be06d52f77788855c3763833868bf8c5aa9fa259', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Vehicle Accessories"), index.h("div", { key: 'e38e31796058e2094531f1b364339dfbe6acdf77', class: "h-0 overflow-auto flex-1" }, !accessories.length && index.h("div", { key: 'f95c52c80f0a2dab3f0ee7e439c100b6b94a21b0', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!accessories.length && (index.h("table", { key: 'a207dd43d39984d701a654550040224866bf583b', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: 'ce3b75261934c67c9297a818fe8cfa7feaaa936c', class: "top-0 font-bold z-40 sticky bg-white" }, index.h("tr", { key: 'ab5f928cd658c193f9464974392dac8f937150b4' }, ['Part Number', 'Description', 'Image'].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: '359c90cabf19855f2fc0464c04899bdbf3890afa' }, accessories.map((accessory, idx) => {
736
+ return (index.h(index.Host, { key: '5b676008ffd07cf3c30f6a1dbef540aeddec5650' }, index.h("div", { key: '936db932754ee0c5774bb9bbadcab9acdf0bd8f1', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: '46029b531877e9641e0797a08449c446d6acb41d' }, index.h(Loading$1.Loading, { key: 'c831c9e7b6ae7e3c7748ec20a531fc653570d7a1', isLoading: this.state.includes('loading') }), index.h("div", { key: 'eb7b7864b47ab00025c7634995a2f3d868f379df', class: cn.cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, index.h("div", { key: 'fdb1c1e9673a300a974e1ade26079063e5a6780e', class: cn.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) && (index.h("div", { key: '5b777e9dabe4b1caac03d4ff4c77bc52eacafd0a', class: "py-[16px]" }, index.h("div", { key: 'e92c8f26bba943508ec0536f404bbf9b46b5ffef', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '7e3e5c940b3b52538c58cec0f6e9befcc8b20d85', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: 'fd6b52beb280f25ef122ca1616b3dc85ba868aac', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.vehicleAccessories), index.h("div", { key: 'df4343fae41a6118c73aadf8b2451c1ed55f0b24', class: "h-0 overflow-auto flex-1" }, !accessories.length && index.h("div", { key: 'c634537217daeb171ba9120b75baeec052727606', class: "h-[80px] flex items-center justify-center text-[18px]" }, texts.noData), !!accessories.length && (index.h("table", { key: '800b8700d5d7d96cccc3c0774b7c0c6d48411e51', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: '338f1360f25eeb71b0c766bc6995dc2d794694b0', class: "top-0 font-bold z-40 sticky bg-white" }, index.h("tr", { key: '4d7be4a922493d6e93b9a72a6de63932bb94f642' }, ['partNumber', 'description', 'image'].map(title => (index.h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), index.h("tbody", { key: 'eb798dcea38261093bc5fdfe5b015b79f3e6d6e9' }, accessories.map((accessory, idx) => {
696
737
  var _a;
697
738
  return (index.h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: accessory.partNumber }, ['partNumber', 'description'].map(key => {
698
739
  var _a;
@@ -701,13 +742,14 @@ const VehicleAccessories = class {
701
742
  }) }, accessory[key] || '...'));
702
743
  }), index.h("td", { class: cn.cn('px-[10px] py-[10px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
703
744
  '!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
704
- }) }, index.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" }, index.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" }, index.h("img", { src: eyeSvg }), index.h("span", { class: "text-white" }, "Expand")), index.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 })))));
705
- })), index.h("div", { key: '8dbd610b0699e78ff72321b3542d8a5bebaac697', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn.cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-50 left-0 opacity-0 bg-black/40 transition-all duration-400', {
745
+ }) }, index.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" }, index.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" }, index.h("img", { src: eyeSvg }), index.h("span", { class: "text-white" }, texts.expand)), index.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 })))));
746
+ })), index.h("div", { key: 'bb875932b3315b24afd3589948936dd3b471bc56', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn.cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-50 left-0 opacity-0 bg-black/40 transition-all duration-400', {
706
747
  'pointer-events-auto opacity-100 delay-200': this.expandedImage,
707
- }) }, index.h("button", { key: '504e17f2df3bbffe428e75e71b44fde9a681084e', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, index.h("div", { key: 'ea82b4f6759a5593d057a42a18f7e116d86ee921', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), index.h("div", { key: '6aabdfaf3e10b744c6ade52e12a5b1c9bc81f5f7', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), index.h("img", { key: 'b0d0a64346461b81c2113f4928bb2de08abeb440', alt: "", id: "expanded-image", class: "fixed opacity-0 z-50 transition-all rounded-lg" })))))))))));
748
+ }) }, index.h("button", { key: '9b6a9934ecd43a4988978772d3f9ec032fc2366d', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, index.h("div", { key: 'fc59bcd946d47fab25522506e1362ab92580efa8', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), index.h("div", { key: 'baf4b47120f23081e6f150ee3aacb8410e964c51', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), index.h("img", { key: '8dfbdb6402ba212b864fb7e6324db06b28e6b8b2', alt: "", id: "expanded-image", class: "fixed opacity-0 z-50 transition-all rounded-lg" })))))))))));
708
749
  }
709
750
  get el() { return index.getElement(this); }
710
751
  static get watchers() { return {
752
+ "language": ["changeLanguage"],
711
753
  "state": ["loadingListener"]
712
754
  }; }
713
755
  };
@@ -723,13 +765,21 @@ const VehicleSpecification = class {
723
765
  this.baseUrl = '';
724
766
  this.isDev = false;
725
767
  this.queryString = '';
768
+ this.language = 'en';
726
769
  this.loadingStateChange = undefined;
727
770
  this.loadedResponse = undefined;
771
+ this.locale = getLocalLanguage.localeSchema.getDefault();
728
772
  this.state = 'idle';
729
773
  this.externalVin = null;
730
774
  this.errorMessage = null;
731
775
  this.vehicleInformation = undefined;
732
776
  }
777
+ async componentWillLoad() {
778
+ await this.changeLanguage(this.language);
779
+ }
780
+ async changeLanguage(newLanguage) {
781
+ this.locale = await getLocalLanguage.getLocaleLanguage(newLanguage);
782
+ }
733
783
  async setData(newData, headers = {}) {
734
784
  clearTimeout(this.networkTimeoutRef);
735
785
  if (this.abortController)
@@ -756,7 +806,7 @@ const VehicleSpecification = class {
756
806
  const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData: mockData$1 }, headers) : newData;
757
807
  if (this.networkTimeoutRef === scopedTimeoutRef) {
758
808
  if (!vehicleResponse)
759
- throw new Error('Wrong response format');
809
+ throw new Error('wrongResponseFormat');
760
810
  this.vehicleInformation = vehicleResponse;
761
811
  }
762
812
  this.errorMessage = null;
@@ -782,7 +832,8 @@ const VehicleSpecification = class {
782
832
  }
783
833
  render() {
784
834
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
785
- return (index.h(index.Host, { key: 'e96ba82b8f58b3812bfb539e6e20020635d17c13' }, index.h("div", { key: '65896e18a4b328b657dc7ae37506f3f090be58ef', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: '85b32b58705d8ede8161f4bf429e4eea2eeab113' }, index.h(Loading$1.Loading, { key: '102144466024234e3b3d67f40a2ed613d8decb8f', isLoading: this.state.includes('loading') }), index.h("div", { key: 'ea3201bce6b9471c1c1b3cf2336bb4d3d820345a', class: cn.cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, index.h("div", { key: '063a8e9ae6202a207ee9e03bb8e21c8d269f105f', class: cn.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) && (index.h("div", { key: '5b6e0c8f594a4609ebe476e39c607ddd16221c2a', class: "py-4" }, index.h("div", { key: 'cd11ab7ea9c2b17b870bce21b793b06707b729ea', 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: '9afcbe4ffc5e11f39c2ff6f284d2f0b6b9f24df4', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: '324be66504bbe49d03d3e777d5fa5b14c8129975', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Vehicle Specifications"), index.h("div", { key: '0875021cb9dcf017b98d516e5898c05b5803a1ba', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vehicleSpecification) && index.h("div", { key: '9132eb142b5f67fbb5310936bfba4517174eafcf', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.vehicleSpecification) && (index.h("table", { key: 'ed324bef37bc05379b5bf9f7c2e86b9a45ec732e', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: '1fc091f01a228617523d213dcdf295368f875279', class: "top-0 font-bold sticky bg-white" }, index.h("tr", { key: '308569c58472d2680c5e7b9ed444d0e7360948f5' }, ['Model', 'Variant', 'Katashiki', 'Model Year', 'SFX'].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: '9d44d2b25f0cd37603d10d4632c1adf78cbaabeb' }, index.h("tr", { key: 'ce399b783d636d8f7e4cb5dac62ef08ca0e2383c' }, index.h("td", { key: '2f3fdaac2635377722caea73a05d097686606cb7', class: "px-[10px] py-[20px] text-center whitespace-nowrap" }, ((_e = (_d = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.vehicleVariantInfo) === null || _e === void 0 ? void 0 : _e.modelCode) || '...', " ", index.h("br", { key: 'f7b14609c4be0a16414311c9c42f594f37bf9a5d', class: "my-2" }), ((_g = (_f = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _f === void 0 ? void 0 : _f.vehicleSpecification) === null || _g === void 0 ? void 0 : _g.modelDesc) || '...'), index.h("td", { key: 'a20ed93430b4d33734e068b4495623ea0cbc1872', class: "px-[10px] py-[20px] text-center whitespace-nowrap" }, ((_j = (_h = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _h === void 0 ? void 0 : _h.identifiers) === null || _j === void 0 ? void 0 : _j.variant) || '...', " ", index.h("br", { key: '8b77dac46b0161eca0b5d1806f643d72d787b821' }), ((_l = (_k = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _k === void 0 ? void 0 : _k.vehicleSpecification) === null || _l === void 0 ? void 0 : _l.variantDesc) || '...'), ['identifiers.katashiki', 'vehicleVariantInfo.modelYear', 'vehicleVariantInfo.sfx'].map(infoPath => {
835
+ const texts = this.locale.vehicleLookup.specification;
836
+ return (index.h(index.Host, { key: '610f4bab084478eb7f60133ed6498fc6b53a6844' }, index.h("div", { key: '5d25c90dd19ae1fdf84d6484881b3fceeada61c4', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: 'bd3643977e70e46e86b7516a9407679209a7d4fa' }, index.h(Loading$1.Loading, { key: '9064190a3698c0534e36e8bc018bbaec3b08709a', isLoading: this.state.includes('loading') }), index.h("div", { key: '56426c064d0a0b1273f62e78b64cca65020c72c8', class: cn.cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, index.h("div", { key: 'ec8f12b6d2372053c097a057ba71d072d75e4fdc', class: cn.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) && (index.h("div", { key: '285ac738ecc896feeda7caf81f8a41c9a99cea19', class: "py-4" }, index.h("div", { key: 'a29855571fcc97bc19f3196427fdf67d9cadb501', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: '021f7bb6c6a1c9b44ebc112c48e4789aca7d387c', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: '43e4399b5064de1023a8e3d27fdd2632f75b3338', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.vehicleSpecification), index.h("div", { key: 'f0fa3e15cb9336be3a4061821438d82d9e73587c', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vehicleSpecification) && index.h("div", { key: '12d0257e9d94573a09fecda9c4fcc3e093c08f16', class: "h-[80px] flex items-center justify-center text-[18px]" }, texts.noData), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.vehicleSpecification) && (index.h("table", { key: 'ecc72141ecfb0b1ca2eeb4825eb6c90119089395', class: "w-full overflow-auto relative border-collapse" }, index.h("thead", { key: '01eeb96a4dc8c721d720f34b535cc1b917c53b3a', class: "top-0 font-bold sticky bg-white" }, index.h("tr", { key: '956677dd3a6a94a4fec8d9d784567aa3fdd62a16' }, ['model', 'variant', 'katashiki', 'modelYear', 'sfx'].map(title => (index.h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), index.h("tbody", { key: 'e62c17cb6047d082191913821426e6e1e928d9fc' }, index.h("tr", { key: '71a09174b51e10d070723c00b8db14499707bdc3' }, index.h("td", { key: '6fd71363e86b19311907a42348cee324e4137e43', class: "px-[10px] py-[20px] text-center whitespace-nowrap" }, ((_e = (_d = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.vehicleVariantInfo) === null || _e === void 0 ? void 0 : _e.modelCode) || '...', " ", index.h("br", { key: '759a2b9072f60aa917a001b39b91e38fc91e4b5a', class: "my-2" }), ((_g = (_f = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _f === void 0 ? void 0 : _f.vehicleSpecification) === null || _g === void 0 ? void 0 : _g.modelDesc) || '...'), index.h("td", { key: '3c634e53ec8955bcf1af66667a6fe004d6e46f01', class: "px-[10px] py-[20px] text-center whitespace-nowrap" }, ((_j = (_h = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _h === void 0 ? void 0 : _h.identifiers) === null || _j === void 0 ? void 0 : _j.variant) || '...', " ", index.h("br", { key: 'b81065d744067f06f60e6b34e31f219c6c58d373' }), ((_l = (_k = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _k === void 0 ? void 0 : _k.vehicleSpecification) === null || _l === void 0 ? void 0 : _l.variantDesc) || '...'), ['identifiers.katashiki', 'vehicleVariantInfo.modelYear', 'vehicleVariantInfo.sfx'].map(infoPath => {
786
837
  var _a;
787
838
  const [place, field] = infoPath.split('.');
788
839
  const cellValue = (_a = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _a === void 0 ? void 0 : _a[place][field].toString();
@@ -791,6 +842,7 @@ const VehicleSpecification = class {
791
842
  }
792
843
  get el() { return index.getElement(this); }
793
844
  static get watchers() { return {
845
+ "language": ["changeLanguage"],
794
846
  "state": ["loadingListener"]
795
847
  }; }
796
848
  };
@@ -803,47 +855,23 @@ function Loading({ isLoading }) {
803
855
  index.h("img", { class: "spin", src: loaderSvg })));
804
856
  }
805
857
 
806
- const checkSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgIDxwYXRoIGZpbGw9IiMwYjM1MjEiCiAgICAgICAgZD0iTTI1NiA1MTJBMjU2IDI1NiAwIDEgMCAyNTYgMGEyNTYgMjU2IDAgMSAwIDAgNTEyek0zNjkgMjA5TDI0MSAzMzdjLTkuNCA5LjQtMjQuNiA5LjQtMzMuOSAwbC02NC02NGMtOS40LTkuNC05LjQtMjQuNiAwLTMzLjlzMjQuNi05LjQgMzMuOSAwbDQ3IDQ3TDMzNSAxNzVjOS40LTkuNCAyNC42LTkuNCAzMy45IDBzOS40IDI0LjYgMCAzMy45eiIgLz4KPC9zdmc+';
807
-
808
858
  const xMarkSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgIDxwYXRoIGZpbGw9IiM1ODE1MWMiCiAgICAgICAgZD0iTTI1NiA1MTJBMjU2IDI1NiAwIDEgMCAyNTYgMGEyNTYgMjU2IDAgMSAwIDAgNTEyek0xNzUgMTc1YzkuNC05LjQgMjQuNi05LjQgMzMuOSAwbDQ3IDQ3IDQ3LTQ3YzkuNC05LjQgMjQuNi05LjQgMzMuOSAwczkuNCAyNC42IDAgMzMuOWwtNDcgNDcgNDcgNDdjOS40IDkuNCA5LjQgMjQuNiAwIDMzLjlzLTI0LjYgOS40LTMzLjkgMGwtNDctNDctNDcgNDdjLTkuNCA5LjQtMjQuNiA5LjQtMzMuOSAwcy05LjQtMjQuNiAwLTMzLjlsNDctNDctNDctNDdjLTkuNC05LjQtOS40LTI0LjYgMC0zMy45eiIgLz4KPC9zdmc+';
809
859
 
810
- function StatusCard({ desc, className, from, to, state = 'idle', icon = true }) {
811
- return (index.h("div", { class: cn.cn('card', className, `${state}-card`) },
812
- icon && state === 'reject' && index.h("img", { src: xMarkSvg }),
813
- icon && state === 'warning' && index.h("img", { src: xMarkSvg }),
814
- icon && state === 'success' && index.h("img", { src: checkSvg }),
815
- from && (index.h("p", { class: "no-padding" },
816
- index.h("span", { class: "font-semibold pr-1" }, "From:"),
817
- " ",
818
- desc)),
819
- to && (index.h("p", { class: "no-padding" },
820
- index.h("span", { class: "font-semibold pr-1" }, "To:"),
821
- " ",
822
- desc)),
823
- !from && !to && index.h("p", { class: state === 'idle' ? 'no-padding' : '' }, desc)));
824
- }
825
-
826
- function CardsContainer({ warranty, isAuthorized, unInvoicedByBrokerName }) {
827
- return (index.h("div", { class: "warranty-tags mx-auto pt-3" },
828
- index.h(StatusCard, { state: isAuthorized ? 'success' : 'reject', desc: isAuthorized ? 'Authorized' : 'Unauthorized' }),
829
- index.h(StatusCard, { state: warranty.hasActiveWarranty ? 'success' : 'reject', desc: warranty.hasActiveWarranty ? 'Has Active Warranty' : "Doesn't Have Active Warranty" }),
830
- unInvoicedByBrokerName && index.h(StatusCard, { className: 'span-entire-2nd-row', state: 'warning', icon: true, desc: `Warranty is not Active because this Vehicle is not Invoiced by the following Trusted Business Partner: ${unInvoicedByBrokerName}` }),
831
- warranty.warrantyStartDate && index.h(StatusCard, { state: (warranty === null || warranty === void 0 ? void 0 : warranty.hasActiveWarranty) ? 'success' : 'reject', icon: false, from: true, desc: warranty.warrantyStartDate }),
832
- warranty.warrantyEndDate && index.h(StatusCard, { state: (warranty === null || warranty === void 0 ? void 0 : warranty.hasActiveWarranty) ? 'success' : 'reject', icon: false, to: true, desc: warranty.warrantyEndDate })));
833
- }
860
+ const checkSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgIDxwYXRoIGZpbGw9IiMwYjM1MjEiCiAgICAgICAgZD0iTTI1NiA1MTJBMjU2IDI1NiAwIDEgMCAyNTYgMGEyNTYgMjU2IDAgMSAwIDAgNTEyek0zNjkgMjA5TDI0MSAzMzdjLTkuNCA5LjQtMjQuNiA5LjQtMzMuOSAwbC02NC02NGMtOS40LTkuNC05LjQtMjQuNiAwLTMzLjlzMjQuNi05LjQgMzMuOSAwbDQ3IDQ3TDMzNSAxNzVjOS40LTkuNCAyNC42LTkuNCAzMy45IDBzOS40IDI0LjYgMCAzMy45eiIgLz4KPC9zdmc+';
834
861
 
835
- function SSCTable({ ssc }) {
862
+ function SSCTable({ ssc, locale }) {
863
+ const warrantyLocale = locale.vehicleLookup.warranty;
836
864
  return (index.h("div", { class: "wrapper-table" },
837
- index.h("div", { class: "header" }, "SSC Campings"),
865
+ index.h("div", { class: "header" }, warrantyLocale.sscCampings),
838
866
  index.h("div", { class: "ssc-table-container" },
839
867
  index.h("table", { class: "ssc-table" },
840
868
  index.h("thead", null,
841
869
  index.h("tr", null,
842
- index.h("th", null, "Code"),
843
- index.h("th", null, "Description"),
844
- index.h("th", null, "Repair Status"),
845
- index.h("th", null, "OP-Codes"),
846
- index.h("th", null, "Part Number"))),
870
+ index.h("th", null, warrantyLocale.sscTableCode),
871
+ index.h("th", null, warrantyLocale.sscTableDescription),
872
+ index.h("th", null, warrantyLocale.sscTableRepairStatus),
873
+ index.h("th", null, warrantyLocale.sscTableOPCode),
874
+ index.h("th", null, warrantyLocale.sscTablePartNumber))),
847
875
  index.h("tbody", null, ssc.map(sscItem => (index.h("tr", { class: "transition", key: sscItem.sscCode },
848
876
  index.h("td", null, sscItem.sscCode),
849
877
  index.h("td", null, sscItem.description),
@@ -859,27 +887,35 @@ function SSCTable({ ssc }) {
859
887
  : '...'))))))))));
860
888
  }
861
889
 
862
- const ARABIC_JSON_FILE = 'ar.json';
863
- const ENGLISH_JSON_FILE = 'en.json';
864
- const KURDISH_JSON_FILE = 'ku.json';
865
- const languageMapper = {
866
- ar: ARABIC_JSON_FILE,
867
- en: ENGLISH_JSON_FILE,
868
- ku: KURDISH_JSON_FILE,
869
- };
870
- const localeSchema = index_esm.create$3({
871
- lang: index_esm.create$6().required(),
872
- language: index_esm.create$6().required(),
873
- direction: index_esm.create$6().required(),
874
- });
875
- const getLocaleLanguage = async (fileKey) => {
876
- const languageFile = languageMapper[fileKey] || languageMapper.ar;
877
- console.log(index.Build.isDev);
878
- let localeResponse;
879
- localeResponse = await fetch('https://cdn.jsdelivr.net/npm/adp-web-components@latest/dist/locales/' + languageFile);
880
- const localeJson = (await localeResponse.json());
881
- return localeJson;
882
- };
890
+ function StatusCard({ desc, className, fromDesc, toDesc, from, to, state = 'idle', icon = true }) {
891
+ return (index.h("div", { class: cn.cn('card', className, `${state}-card`) },
892
+ icon && state === 'reject' && index.h("img", { src: xMarkSvg }),
893
+ icon && state === 'warning' && index.h("img", { src: xMarkSvg }),
894
+ icon && state === 'success' && index.h("img", { src: checkSvg }),
895
+ from && (index.h("p", { class: "no-padding flex gap-2" },
896
+ index.h("span", { class: "font-semibold" },
897
+ fromDesc,
898
+ ":"),
899
+ " ",
900
+ desc)),
901
+ to && (index.h("p", { class: "no-padding flex gap-2" },
902
+ index.h("span", { class: "font-semibold" },
903
+ toDesc,
904
+ ":"),
905
+ " ",
906
+ desc)),
907
+ !from && !to && index.h("p", { class: state === 'idle' ? 'no-padding' : '' }, desc)));
908
+ }
909
+
910
+ function CardsContainer({ warranty, isAuthorized, unInvoicedByBrokerName, locale }) {
911
+ const warrantyLocale = locale.vehicleLookup.warranty;
912
+ return (index.h("div", { class: "warranty-tags mx-auto pt-3" },
913
+ index.h(StatusCard, { state: isAuthorized ? 'success' : 'reject', desc: isAuthorized ? warrantyLocale.authorized : warrantyLocale.unauthorized }),
914
+ index.h(StatusCard, { state: warranty.hasActiveWarranty ? 'success' : 'reject', desc: warranty.hasActiveWarranty ? warrantyLocale.activeWarranty : warrantyLocale.notActiveWarranty }),
915
+ unInvoicedByBrokerName && index.h(StatusCard, { className: "span-entire-2nd-row", state: "warning", icon: true, desc: warrantyLocale.notInvoiced + unInvoicedByBrokerName }),
916
+ warranty.warrantyStartDate && (index.h(StatusCard, { state: (warranty === null || warranty === void 0 ? void 0 : warranty.hasActiveWarranty) ? 'success' : 'reject', icon: false, from: true, fromDesc: warrantyLocale.from, desc: warranty.warrantyStartDate })),
917
+ warranty.warrantyEndDate && (index.h(StatusCard, { state: (warranty === null || warranty === void 0 ? void 0 : warranty.hasActiveWarranty) ? 'success' : 'reject', icon: false, to: true, toDesc: warrantyLocale.to, desc: warranty.warrantyEndDate }))));
918
+ }
883
919
 
884
920
  const warrantyDetailsCss = "*,: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}.collapse{visibility:collapse}.absolute{left:0;position:absolute;top:0}.relative{position:relative}.sticky{position:sticky}.mx-auto{margin-left:auto;margin-right:auto}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-0{height:0!important;height:0}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.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-wrap{flex-wrap:wrap}.border{border-width:1px}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pr-1{padding-right:4px}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.font-semibold{font-weight:600}.transition{transition:all;transition-duration:.3s;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-1000{transition-duration:1s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.success-card{background:#d0e7de;background-color:#d0e7de;border-color:#a2d0bb!important;border-color:#a2d0bb;color:#0b3521}.reject-card{background:#f7d7d8;background-color:#f7d7d8;border-color:#f2aeb5!important;border-color:#f2aeb5;color:#58151c}:host{all:initial!important;display:block}*{font-family:Arial}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fade-in{animation:fadeIn .3s ease-in forwards;opacity:0}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fade-out{animation:fadeIn .3s ease-in forwards;opacity:1}.spin{animation:spin 2s linear infinite}.loading-spinner{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;transition:all;transition-duration:.1s;width:100%}.loading-spinner img{height:40px;width:40px}.warranty{overflow:hidden;position:relative;transition:all;transition-duration:.3s}.hide{opacity:0}.card{border:1px solid;border-radius:6px;flex-shrink:0;gap:8px;padding:8px 12px}.card,.card p{align-items:center;display:flex}.card p{flex:1 1 0%;font-size:16px;height:25px;margin:0;padding-left:50px}.card p.no-padding{padding-left:4px}.card img{height:25px;width:25px}.recaptcha-response{border:1px solid;border-radius:8px;font-size:20px;margin:16px auto 0;padding:8px 16px;width:-moz-fit-content;width:fit-content}.warning-card{background:#fcf8e3;border-color:#faebcc!important;color:#8a6d3b}.span-entire-2nd-row{grid-column:1/3;grid-row:2/3}.warranty-tags{display:grid;gap:12px;grid-template-columns:1fr 1fr;max-width:1000px}.pt-3,.py-3{padding-top:12px}.pb-3,.py-3{padding-bottom:12px}.pt-4,.py-4{padding-top:16px}.pb-4,.py-4{padding-bottom:16px}.max-w-500{max-width:500px}.mt-4,.my-4{margin-bottom:16px;margin-top:16px}.warranty *{box-sizing:border-box}.wrapper-table{border:1px solid #d6d8dc;border-radius:4px;display:flex;flex-direction:column;margin-top:12px;max-height:70vh;overflow:hidden}.ssc-table-container{flex:1 1 0%;height:0;overflow:auto}.wrapper-table .header{align-items:center;background:#e1e3e5;color:#383c43;display:flex;flex-shrink:0;font-size:18px;height:40px;justify-content:center;width:100%}.ssc-table{border-collapse:collapse;overflow:auto;position:relative;width:100%}.ssc-table thead{background-color:#fff;font-weight:700;position:sticky;top:0}.ssc-table td,.ssc-table th{border-bottom:1px solid #d6d8dc;padding:10px 20px;text-align:center;transition:all;transition-duration:.3s;white-space:nowrap}.ssc-table tr:hover{background:#f4f4f4}.ssc-table tr:last-child td{border:none}.table-cell-container{align-items:center;display:flex;gap:8px;justify-content:center;width:100%}.table-cell-parts-container{flex-wrap:wrap}.table-cell-parts-container div{border-radius:4px;font-size:14px;padding:4px 8px}.table-cell-parts-container div.success{background:#d0e7de}.table-cell-parts-container div.reject{background:#f7d7d8}.table-status-icon{height:20px;width:20px}.warranty-vin{font-size:20px;padding-top:4px;text-align:center}.recaptcha-container{display:flex;justify-content:center;overflow:hidden}.static{position:static}.w-full{width:100%}.top-0{top:0}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mt-\\[12px\\]{margin-top:12px}.table{display:table}.h-\\[40px\\]{height:40px}.h-\\[80px\\]{height:80px}.max-h-\\[70dvh\\]{max-height:70dvh}.min-h-\\[100px\\]{min-height:100px}.w-fit{width:fit-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.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-b{border-bottom-width:1px}.border-\\[\\#d6d8dc\\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-4{padding-bottom:1rem;padding-top:1rem}.py-\\[20px\\]{padding-bottom:20px;padding-top:20px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.pt-\\[4px\\]{padding-top:4px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.font-bold{font-weight:700}.text-\\[\\#383c43\\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}";
885
921
  const WarrantyDetailsStyle0 = warrantyDetailsCss;
@@ -912,20 +948,20 @@ const WarrantyDetails = class {
912
948
  this.loadedResponse = undefined;
913
949
  this.state = 'idle';
914
950
  this.externalVin = null;
915
- this.errorMessage = null;
916
951
  this.showRecaptcha = false;
952
+ this.errorMessage = null;
917
953
  this.unInvoicedByBrokerName = null;
918
954
  this.vehicleInformation = undefined;
919
955
  this.checkingUnauthorizedSSC = false;
920
956
  this.recaptchaRes = null;
921
957
  this.headers = {};
922
- this.locale = localeSchema.getDefault();
958
+ this.locale = getLocalLanguage.localeSchema.getDefault();
923
959
  }
924
960
  async componentWillLoad() {
925
961
  await this.changeLanguage(this.language);
926
962
  }
927
963
  async changeLanguage(newLanguage) {
928
- this.locale = await getLocaleLanguage(newLanguage);
964
+ this.locale = await getLocalLanguage.getLocaleLanguage(newLanguage);
929
965
  }
930
966
  handleSettingData(response) {
931
967
  var _a, _b, _c;
@@ -963,7 +999,7 @@ const WarrantyDetails = class {
963
999
  const hasPendingSSC = Math.random() < 0.5 ? false : true;
964
1000
  this.recaptchaRes = {
965
1001
  hasSSC: hasPendingSSC,
966
- message: hasPendingSSC ? 'This Vehicle has a Pending SSC' : 'No Pending SSC',
1002
+ message: hasPendingSSC ? 'pendingSSC' : 'noPendingSSC',
967
1003
  };
968
1004
  }
969
1005
  else {
@@ -980,11 +1016,11 @@ const WarrantyDetails = class {
980
1016
  const hasPendingSSC = vinResponse.sscLookupStatus === 1;
981
1017
  this.recaptchaRes = {
982
1018
  hasSSC: hasPendingSSC,
983
- message: hasPendingSSC ? 'This Vehicle has a Pending SSC' : 'No Pending SSC',
1019
+ message: hasPendingSSC ? 'pendingSSC' : 'noPendingSSC',
984
1020
  };
985
1021
  }
986
1022
  else
987
- throw new Error('Wrong response format');
1023
+ throw new Error('wrongResponseFormat');
988
1024
  }
989
1025
  }
990
1026
  }, 500);
@@ -1023,7 +1059,7 @@ const WarrantyDetails = class {
1023
1059
  const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
1024
1060
  if (this.networkTimeoutRef === scopedTimeoutRef) {
1025
1061
  if (!vehicleResponse)
1026
- throw new Error('Wrong response format');
1062
+ throw new Error('wrongResponseFormat');
1027
1063
  this.handleSettingData(vehicleResponse);
1028
1064
  this.handleInitializingRecaptcha(vin, scopedTimeoutRef);
1029
1065
  }
@@ -1060,8 +1096,7 @@ const WarrantyDetails = class {
1060
1096
  }
1061
1097
  render() {
1062
1098
  var _a, _b, _c, _d, _e;
1063
- console.log(this.locale);
1064
- return (index.h(index.Host, { key: '107fdd1914182bc92f08bef60b7d953f48edaa64' }, index.h("div", { key: 'a58b0fd297b467b8bf9faac26d9649adbdd5c6f6', class: "min-h-[100px] warranty" }, index.h("div", { key: '4861d917e549d3f78938bcaf9571dae9b9250fff' }, index.h(Loading, { key: '990a985d814ad3a7bd8a91c2d60921eb119658cd', isLoading: this.state.includes('loading') }), index.h("div", { key: 'd0a1dd92a087381bd66b9ac12124c1b308e32d03', class: "transition duration-700", style: { transform: this.state.includes('loading') || this.state === 'idle' ? 'scale(0)' : 'scale(1)', opacity: this.state.includes('loading') ? '0' : '1' } }, (this.showSsc || this.showWarranty) && (index.h("div", { key: 'bfe59e8e9288320ffd640062ff03dcfff246b769', style: { color: !!this.errorMessage ? 'red' : 'black' }, class: "warranty-vin" }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin)), ['error', 'error-loading'].includes(this.state) && (index.h("div", { key: 'bd13d1459c2728c4c23feb874188706162bf2fc4', class: "py-4" }, index.h(StatusCard, { key: '2a771e9cdc0e50b2c63cef87e2385a04076385de', desc: this.errorMessage, className: "mx-auto reject-card max-w-500" }), ' ')), this.showWarranty && ['data', 'data-loading'].includes(this.state) && (index.h(CardsContainer, { key: '8fa4f9fd5ec9c5f13fc888ed07bb818aae86b153', isAuthorized: (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.isAuthorized, unInvoicedByBrokerName: this.unInvoicedByBrokerName, warranty: (_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.warranty })), index.h("div", { key: '2887905725bb330be348b01acd63a8b55e639ebf', style: Object.assign({}, (this.showRecaptcha ? { height: 'auto', padding: '16px 16px 0px 16px' } : { height: '0px' })), class: "recaptcha-container" }, index.h("slot", { key: 'e4b03e64b1352eb9945ff98a0f3ef602cc83b613' })), ['data', 'data-loading'].includes(this.state) && this.recaptchaRes && (index.h("div", { key: '282103798c40a2865808ade5f6b6700921796dba', class: cn.cn('recaptcha-response', !this.recaptchaRes.hasSSC ? 'success-card' : 'reject-card ') }, this.recaptchaRes.message)), this.checkingUnauthorizedSSC && (index.h("div", { key: '6a90ca1739b59538b1d9a9cdf70fa176d8085d94', class: "loading-spinner", style: { marginTop: '20px', flexDirection: 'column' } }, index.h("div", { key: '295bc8963dcbb628983d9e4ae40b7c6e9e830f36' }, index.h("strong", { key: '400e68401cce287fd1ba55279dc9d43896393863' }, "Checking TMC")), index.h("img", { key: '10c057c2dd74570ba7e691226df8b0cbc0ac68af', class: "spin", src: Loading$1.loaderSvg }))), this.showSsc && ['data', 'data-loading'].includes(this.state) && ((_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.ssc) !== null && !!((_e = this.vehicleInformation) === null || _e === void 0 ? void 0 : _e.ssc.length) && (index.h(SSCTable, { key: '677f72b4d1e357536c71989803b5104191972935', ssc: this.vehicleInformation.ssc })))))));
1099
+ return (index.h(index.Host, { key: '5976b28e5ddc465d0ae79b7882d40b4f7105ffdf' }, index.h("div", { key: '1c5623799b6fbfb7a343a78c6b96b027f4416d10', dir: this.locale.direction, class: "min-h-[100px] warranty" }, index.h("div", { key: '5dde3a2e0886f5ececd0e8d556abef41d167942d' }, index.h(Loading, { key: '7f8b0a8ed8b2f07fbbc2e7d5a5162ae7aca02a14', isLoading: this.state.includes('loading') }), index.h("div", { key: '240a44eefa85d905e3bf1900772524e4a660feca', class: "transition duration-700", style: { transform: this.state.includes('loading') || this.state === 'idle' ? 'scale(0)' : 'scale(1)', opacity: this.state.includes('loading') ? '0' : '1' } }, (this.showSsc || this.showWarranty) && (index.h("div", { key: '3d7488bbd306a360094636adc2732cf00aa4b877', style: { color: !!this.errorMessage ? 'red' : 'black' }, class: "warranty-vin" }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin)), ['error', 'error-loading'].includes(this.state) && (index.h("div", { key: '8f186a25db18cd00449ce68cf7261870b7996dc7', class: "py-4" }, index.h(StatusCard, { key: '5de5ac8872b809ef344440b6bc9fad956c744620', desc: this.locale.errors[this.errorMessage] || this.errorMessage, className: "mx-auto reject-card max-w-500" }), ' ')), this.showWarranty && ['data', 'data-loading'].includes(this.state) && (index.h(CardsContainer, { key: 'df36bf0f0e4906b662d11a3db6cf7cd40dabbae9', locale: this.locale, isAuthorized: (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.isAuthorized, unInvoicedByBrokerName: this.unInvoicedByBrokerName, warranty: (_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.warranty })), index.h("div", { key: '00d93ce17bfc3868709d67a74fa80983e5e9d312', style: Object.assign({}, (this.showRecaptcha ? { height: 'auto', padding: '16px 16px 0px 16px' } : { height: '0px' })), class: "recaptcha-container" }, index.h("slot", { key: 'b3cb909a47adb872390d3afca1c6eefd167d1b01' })), ['data', 'data-loading'].includes(this.state) && this.recaptchaRes && (index.h("div", { key: '067dacd8f980da721272ffc03a15d6b5740580d9', class: cn.cn('recaptcha-response', !this.recaptchaRes.hasSSC ? 'success-card' : 'reject-card ') }, this.locale.vehicleLookup.warranty[this.recaptchaRes.message])), this.checkingUnauthorizedSSC && (index.h("div", { key: '36564f7464cea7804439f58397b84d5554e19dd1', class: "loading-spinner", style: { marginTop: '20px', flexDirection: 'column' } }, index.h("div", { key: '92d1d9d3141f719a67e47e7187e65af814b93aa9' }, index.h("strong", { key: 'd93a6f157cd67de2fe8c93cf50c84aa6ba143a87' }, this.locale.vehicleLookup.warranty.checkingTMC)), index.h("img", { key: 'bb95bb4cc9f3d9dd5d1cf0a3f68f4af86a56b6d2', class: "spin", src: Loading$1.loaderSvg }))), this.showSsc && ['data', 'data-loading'].includes(this.state) && ((_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.ssc) !== null && !!((_e = this.vehicleInformation) === null || _e === void 0 ? void 0 : _e.ssc.length) && (index.h(SSCTable, { key: '02190f90bcf06693545848545013353e99baad12', locale: this.locale, ssc: this.vehicleInformation.ssc })))))));
1065
1100
  }
1066
1101
  get el() { return index.getElement(this); }
1067
1102
  static get watchers() { return {