adp-web-components 0.0.45 → 0.0.48

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 (183) hide show
  1. package/dist/cjs/Loading-c3489701.js +16 -0
  2. package/dist/cjs/contact-us-form.cjs.entry.js +5096 -0
  3. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +4 -4
  4. package/dist/cjs/dynamic-claim_6.cjs.entry.js +7 -6
  5. package/dist/cjs/dynamic-redeem.cjs.entry.js +2 -3
  6. package/dist/cjs/form-input_4.cjs.entry.js +256 -0
  7. package/dist/cjs/form-structure_2.cjs.entry.js +97 -0
  8. package/dist/cjs/{index.esm-c628daeb.js → get-local-language-ebb05d9e.js} +242 -0
  9. package/dist/cjs/{index-846c93d2.js → index-603d8f32.js} +12 -19
  10. package/dist/cjs/{Loading-6f4f0127.js → loader-baf2418b.js} +0 -9
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/part-lookup.cjs.entry.js +2 -3
  13. package/dist/cjs/shift-components.cjs.js +2 -2
  14. package/dist/cjs/vehicle-lookup.cjs.entry.js +2 -3
  15. package/dist/collection/collection-manifest.json +7 -2
  16. package/dist/collection/components/form-elements/form-input.css +1 -0
  17. package/dist/collection/components/form-elements/form-input.js +400 -0
  18. package/dist/collection/components/form-elements/form-select.css +1 -0
  19. package/dist/collection/components/form-elements/form-select.js +397 -0
  20. package/dist/collection/components/form-elements/form-structure-error.css +1 -0
  21. package/dist/collection/components/form-elements/form-structure-error.js +72 -0
  22. package/dist/collection/components/form-elements/form-structure.css +1 -0
  23. package/dist/collection/components/form-elements/form-structure.js +227 -0
  24. package/dist/collection/components/form-elements/form-submit.css +1 -0
  25. package/dist/collection/components/form-elements/form-submit.js +93 -0
  26. package/dist/collection/components/form-elements/form-text-area.css +1 -0
  27. package/dist/collection/components/form-elements/form-text-area.js +288 -0
  28. package/dist/collection/components/forms/contact-us/form.css +1 -0
  29. package/dist/collection/components/forms/contact-us/mapper.js +12 -0
  30. package/dist/collection/components/forms/contact-us/params.js +72 -0
  31. package/dist/collection/components/forms/contact-us/validations.js +19 -0
  32. package/dist/collection/components/forms/contact-us-form.js +308 -0
  33. package/dist/collection/components/part-lookup/dead-stock-lookup.js +1 -1
  34. package/dist/collection/components/part-lookup/distributor-lookup.js +1 -1
  35. package/dist/collection/components/part-lookup/manufacturer-lookup.js +1 -1
  36. package/dist/collection/components/vehicle-lookup/dynamic-claim.js +1 -1
  37. package/dist/collection/components/vehicle-lookup/paint-thickness.js +1 -1
  38. package/dist/collection/components/vehicle-lookup/service-history.js +1 -1
  39. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +1 -1
  40. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +3 -2
  41. package/dist/collection/components/vehicle-lookup/warranty-details.js +2 -2
  42. package/dist/collection/global/api/urls.js +6 -0
  43. package/dist/collection/global/assets/white-loader.svg +11 -0
  44. package/dist/collection/global/lib/form-hook.js +25 -14
  45. package/dist/collection/global/lib/recaptcha.js +25 -0
  46. package/dist/collection/global/lib/validate-form-structure.js +47 -0
  47. package/dist/collection/global/types/forms.js +1 -0
  48. package/dist/collection/global/types/general.js +1 -0
  49. package/dist/collection/global/types/locales/error-schema.js +1 -0
  50. package/dist/collection/global/types/locales/forms/contact-us-schema.js +24 -0
  51. package/dist/collection/global/types/locales/forms/index.js +11 -0
  52. package/dist/collection/global/types/locales/general.js +8 -0
  53. package/dist/collection/global/types/locales/index.js +6 -0
  54. package/dist/collection/global/types/locales/inquiryTypes.js +15 -0
  55. package/dist/collection/templates/vehicle-lookup/mock-data.js +1 -5
  56. package/dist/components/{general-inquiry-form.d.ts → contact-us-form.d.ts} +4 -4
  57. package/dist/components/contact-us-form.js +5 -0
  58. package/dist/components/dead-stock-lookup.js +1 -1
  59. package/dist/components/distributor-lookup.js +1 -1
  60. package/dist/components/dynamic-claim.js +1 -1
  61. package/dist/components/dynamic-redeem.js +1 -1
  62. package/dist/components/form-input.js +1 -1
  63. package/dist/components/form-select.d.ts +11 -0
  64. package/dist/components/form-select.js +5 -0
  65. package/dist/components/form-structure-error.d.ts +11 -0
  66. package/dist/components/form-structure-error.js +5 -0
  67. package/dist/components/form-structure.d.ts +11 -0
  68. package/dist/components/form-structure.js +5 -0
  69. package/dist/components/form-submit.d.ts +11 -0
  70. package/dist/components/form-submit.js +5 -0
  71. package/dist/components/form-text-area.d.ts +11 -0
  72. package/dist/components/form-text-area.js +5 -0
  73. package/dist/components/index.js +1 -1
  74. package/dist/components/manufacturer-lookup.js +1 -1
  75. package/dist/components/{p-efd76ea7.js → p-08357e63.js} +1 -1
  76. package/dist/components/{p-443f6446.js → p-0d76f2b9.js} +1 -1
  77. package/dist/components/{p-64a8e560.js → p-171807db.js} +1 -1
  78. package/dist/components/{p-9c9f58f9.js → p-344f4417.js} +1 -1
  79. package/dist/components/p-5d5842e9.js +5 -0
  80. package/dist/components/{p-6a4bffe2.js → p-62beac88.js} +1 -1
  81. package/dist/components/p-638e64fa.js +5 -0
  82. package/dist/components/p-75476014.js +5 -0
  83. package/dist/components/{p-336607f4.js → p-7e62f352.js} +1 -1
  84. package/dist/components/p-87da0395.js +5 -0
  85. package/dist/components/p-8de98849.js +5 -0
  86. package/dist/components/{p-467cc8d5.js → p-9a50bc07.js} +1 -1
  87. package/dist/components/p-aae5c784.js +5 -0
  88. package/dist/components/{p-9e28d16d.js → p-ac4a782f.js} +1 -1
  89. package/dist/components/p-af8083e5.js +5 -0
  90. package/dist/components/{p-bc8714c3.js → p-b400d6f6.js} +1 -1
  91. package/dist/components/{p-a1adf184.js → p-bb28c098.js} +1 -1
  92. package/dist/components/p-da2ea879.js +5 -0
  93. package/dist/components/p-fefbfbe8.js +5 -0
  94. package/dist/components/paint-thickness.js +1 -1
  95. package/dist/components/part-lookup.js +1 -1
  96. package/dist/components/service-history.js +1 -1
  97. package/dist/components/vehicle-accessories.js +1 -1
  98. package/dist/components/vehicle-lookup.js +1 -1
  99. package/dist/components/vehicle-specification.js +1 -1
  100. package/dist/components/warranty-details.js +1 -1
  101. package/dist/esm/Loading-3fdd028d.js +14 -0
  102. package/dist/esm/contact-us-form.entry.js +5092 -0
  103. package/dist/esm/dead-stock-lookup_3.entry.js +4 -4
  104. package/dist/esm/dynamic-claim_6.entry.js +7 -6
  105. package/dist/esm/dynamic-redeem.entry.js +2 -3
  106. package/dist/esm/form-input_4.entry.js +249 -0
  107. package/dist/esm/form-structure_2.entry.js +92 -0
  108. package/dist/esm/{index.esm-46e0cdad.js → get-local-language-50038b04.js} +241 -1
  109. package/dist/esm/{index-33ae6859.js → index-cac905b0.js} +12 -19
  110. package/dist/esm/{Loading-f4d666ee.js → loader-027b88af.js} +1 -9
  111. package/dist/esm/loader.js +3 -3
  112. package/dist/esm/part-lookup.entry.js +2 -3
  113. package/dist/esm/shift-components.js +3 -3
  114. package/dist/esm/vehicle-lookup.entry.js +2 -3
  115. package/dist/locales/ar.json +39 -1
  116. package/dist/locales/en.json +38 -0
  117. package/dist/locales/ku.json +39 -1
  118. package/dist/locales/ru.json +40 -2
  119. package/dist/shift-components/p-49005e96.entry.js +5 -0
  120. package/dist/shift-components/p-4e5e528c.entry.js +5 -0
  121. package/dist/shift-components/p-65102e7a.js +6 -0
  122. package/dist/shift-components/{p-75363a52.entry.js → p-6cd76655.entry.js} +1 -1
  123. package/dist/shift-components/p-96570d9d.entry.js +5 -0
  124. package/dist/shift-components/p-983cb144.entry.js +5 -0
  125. package/dist/shift-components/p-a21e2e2e.js +5 -0
  126. package/dist/shift-components/p-aad6afa6.entry.js +5 -0
  127. package/dist/shift-components/p-b11c327e.js +5 -0
  128. package/dist/shift-components/p-b7d8b392.entry.js +5 -0
  129. package/dist/shift-components/p-bc1b619c.entry.js +5 -0
  130. package/dist/shift-components/p-fa19695e.js +5 -0
  131. package/dist/shift-components/shift-components.esm.js +1 -1
  132. package/dist/types/components/form-elements/form-input.d.ts +27 -0
  133. package/dist/types/components/form-elements/form-select.d.ts +38 -0
  134. package/dist/types/components/form-elements/form-structure-error.d.ts +8 -0
  135. package/dist/types/components/form-elements/form-structure.d.ts +18 -0
  136. package/dist/types/components/form-elements/form-submit.d.ts +7 -0
  137. package/dist/types/components/form-elements/form-text-area.d.ts +21 -0
  138. package/dist/types/components/forms/contact-us/mapper.d.ts +2 -0
  139. package/dist/types/components/forms/contact-us/params.d.ts +2 -0
  140. package/dist/types/components/forms/contact-us/validations.d.ts +26 -0
  141. package/dist/types/components/forms/contact-us-form.d.ts +29 -0
  142. package/dist/types/components.d.ts +194 -31
  143. package/dist/types/global/api/urls.d.ts +2 -0
  144. package/dist/types/global/lib/form-hook.d.ts +1 -30
  145. package/dist/types/global/lib/recaptcha.d.ts +16 -0
  146. package/dist/types/global/lib/validate-form-structure.d.ts +3 -0
  147. package/dist/types/global/types/forms.d.ts +48 -0
  148. package/dist/types/global/types/general.d.ts +14 -0
  149. package/dist/types/global/types/locales/error-schema.d.ts +2 -0
  150. package/dist/types/global/types/locales/forms/contact-us-schema.d.ts +37 -0
  151. package/dist/types/global/types/locales/forms/index.d.ts +45 -0
  152. package/dist/types/global/types/locales/general.d.ts +5 -0
  153. package/dist/types/global/types/locales/index.d.ts +74 -0
  154. package/dist/types/global/types/locales/inquiryTypes.d.ts +19 -0
  155. package/package.json +2 -1
  156. package/dist/cjs/form-input.cjs.entry.js +0 -36
  157. package/dist/cjs/general-inquiry-form.cjs.entry.js +0 -154
  158. package/dist/cjs/get-local-language-1ba6d190.js +0 -204
  159. package/dist/collection/components/form-input/form-input.css +0 -1
  160. package/dist/collection/components/form-input/form-input.js +0 -209
  161. package/dist/collection/components/general-inquiry-form/general-inquiry-form.css +0 -1
  162. package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +0 -46
  163. package/dist/components/general-inquiry-form.js +0 -5
  164. package/dist/components/p-83e017fe.js +0 -5
  165. package/dist/components/p-935af250.js +0 -5
  166. package/dist/components/p-9c8b634a.js +0 -5
  167. package/dist/components/p-b2051f01.js +0 -5
  168. package/dist/components/p-e446fb9d.js +0 -5
  169. package/dist/esm/form-input.entry.js +0 -32
  170. package/dist/esm/general-inquiry-form.entry.js +0 -150
  171. package/dist/esm/get-local-language-42468fce.js +0 -201
  172. package/dist/shift-components/p-0f0e54c1.js +0 -6
  173. package/dist/shift-components/p-219fb385.entry.js +0 -5
  174. package/dist/shift-components/p-33bf409e.entry.js +0 -5
  175. package/dist/shift-components/p-5ba2e35c.entry.js +0 -5
  176. package/dist/shift-components/p-6e4e85c0.entry.js +0 -5
  177. package/dist/shift-components/p-6f356085.js +0 -5
  178. package/dist/shift-components/p-8f603ea1.entry.js +0 -5
  179. package/dist/shift-components/p-95532c3e.entry.js +0 -5
  180. package/dist/shift-components/p-99d314b5.js +0 -5
  181. package/dist/shift-components/p-e446fb9d.js +0 -5
  182. package/dist/types/components/form-input/form-input.d.ts +0 -14
  183. package/dist/types/components/general-inquiry-form/general-inquiry-form.d.ts +0 -21
@@ -0,0 +1 @@
1
+ *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.mx-auto{margin-left:auto;margin-right:auto}.mb-\[24px\]{margin-bottom:24px}.block{display:block}.flex{display:flex}.max-w-\[700px\]{max-width:700px}.flex-col{flex-direction:column}.gap-\[24px\]{gap:24px}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}:host{all:initial!important;display:block}*{font-family:Arial}.contact-us-tiq #container{margin-left:auto;margin-right:auto;max-width:700px}.contact-us-tiq #inputs_wrapper{display:flex;flex-direction:column;gap:24px;margin-bottom:24px}@media (min-width:640px){.contact-us-tiq #inputs_wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}.contact-us-tiq #message{margin-bottom:24px}@media (min-width:640px){.sm\:grid{display:grid}}.static{position:static}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.top-0{top:0}.-z-10{z-index:-10}.mb-\[4px\]{margin-bottom:4px}.ms-0\.5{margin-inline-start:.125rem}.inline-flex{display:inline-flex}.h-\[38px\]{height:38px}.w-full{width:100%}.flex-1{flex:1 1 0%}.-translate-y-\[4px\]{--tw-translate-y:-4px}.-translate-y-\[4px\],.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.appearance-none{appearance:none}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-md{border-radius:.375rem}.border{border-width:1px}.\!border-red-500{--tw-border-opacity:1!important;border-color:rgb(239 68 68/var(--tw-border-opacity,1))!important}.px-2{padding-left:.5rem;padding-right:.5rem}.px-\[12px\]{padding-left:12px;padding-right:12px}.py-\[6px\]{padding-bottom:6px;padding-top:6px}.pt-\[1px\]{padding-top:1px}.text-\[12px\]{font-size:12px}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/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}.opacity-100{opacity:1}.opacity-75{opacity:.75}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.focus\:border-slate-600:focus{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity,1))}.focus\:shadow-\[0_0_0_0\.2rem_rgba\(239\2c 68\2c 68\2c 0\.25\)\]:focus{--tw-shadow:0 0 0 0.2rem rgba(239,68,68,.25);--tw-shadow-colored:0 0 0 0.2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:shadow-\[0_0_0_0\.2rem_rgba\(71\2c 85\2c 105\2c 0\.25\)\]:focus{--tw-shadow:0 0 0 0.2rem rgba(71,85,105,.25);--tw-shadow-colored:0 0 0 0.2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.disabled\:bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button{appearance:none}.pointer-events-auto{pointer-events:auto}.z-\[10\]{z-index:10}.-mt-\[8px\]{margin-top:-8px}.mt-\[8px\]{margin-top:8px}.hidden{display:none}.size-5{height:1.25rem;width:1.25rem}.size-6{height:1.5rem;width:1.5rem}.size-\[22px\]{height:22px;width:22px}.h-\[100px\]{height:100px}.max-h-\[250px\]{max-height:250px}.-translate-y-\[4px\],.-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%}.translate-y-\[38px\]{--tw-translate-y:38px}.rotate-180,.translate-y-\[38px\],.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.animate-spin-2s{animation:spin 2s linear infinite}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.text-\[\#9CA3AF\]{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.enabled\:border-slate-600:enabled{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity,1))}.enabled\:shadow-\[0_0_0_0\.2rem_rgba\(71\2c 85\2c 105\2c 0\.25\)\]:enabled{--tw-shadow:0 0 0 0.2rem rgba(71,85,105,.25);--tw-shadow-colored:0 0 0 0.2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.enabled\:focus\:border-slate-600:focus:enabled{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity,1))}.enabled\:focus\:shadow-\[0_0_0_0\.2rem_rgba\(71\2c 85\2c 105\2c 0\.25\)\]:focus:enabled{--tw-shadow:0 0 0 0.2rem rgba(71,85,105,.25);--tw-shadow-colored:0 0 0 0.2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.disabled\:opacity-75:disabled{opacity:.75}.min-h-\[100px\]{min-height:100px}.w-fit{width:fit-content}.rounded-\[8px\]{border-radius:8px}.border-\[\#f2aeb5\]{--tw-border-opacity:1;border-color:rgb(242 174 181/var(--tw-border-opacity,1))}.bg-\[\#f7d7d8\]{--tw-bg-opacity:1;background-color:rgb(247 215 216/var(--tw-bg-opacity,1))}.px-\[16px\]{padding-left:16px;padding-right:16px}.py-\[16px\]{padding-bottom:16px;padding-top:16px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.text-\[20px\]{font-size:20px}.text-\[\#58151c\]{--tw-text-opacity:1;color:rgb(88 21 28/var(--tw-text-opacity,1))}.size-full{height:100%;width:100%}.-translate-y-full,.translate-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))}.translate-y-0{--tw-translate-y:0px}.rounded{border-radius:.25rem}.bg-slate-600{--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity,1))}.bg-slate-700{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.duration-1000{transition-duration:1s}.enabled\:hover\:bg-slate-600:hover:enabled{--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity,1))}.enabled\:active\:bg-slate-800:active:enabled{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}.-mt-\[4px\]{margin-top:-4px}.h-\[200px\]{height:200px}.-translate-y-\[10px\]{--tw-translate-y:-10px}.-translate-y-\[10px\],.translate-y-\[calc\(100\%-5px\)\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[calc\(100\%-5px\)\]{--tw-translate-y:calc(100% - 5px)}.resize-none{resize:none}
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ export const formElementMapper = {
6
+ name: 'text',
7
+ email: 'text',
8
+ phone: 'text',
9
+ cityId: 'select',
10
+ message: 'text-area',
11
+ generalTicketType: 'select',
12
+ };
@@ -0,0 +1,72 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ import { CITY_ENDPOINT } from "../../../global/api/urls";
6
+ import { getLocaleLanguage } from "../../../global/lib/get-local-language";
7
+ import { phoneValidator } from "./validations";
8
+ const name = {
9
+ label: 'fullName',
10
+ formLocaleName: 'contactUs',
11
+ };
12
+ const email = {
13
+ type: 'email',
14
+ label: 'emailAddress',
15
+ formLocaleName: 'contactUs',
16
+ };
17
+ const message = {
18
+ label: 'writeAMessage',
19
+ formLocaleName: 'contactUs',
20
+ placeholder: 'leaveUsMessage',
21
+ };
22
+ const phone = {
23
+ type: 'text',
24
+ label: 'phoneNumber',
25
+ numberDirection: true,
26
+ formLocaleName: 'contactUs',
27
+ defaultValue: phoneValidator.default,
28
+ onChangeMiddleware: (event) => {
29
+ const target = event.target;
30
+ phoneValidator.reset();
31
+ target.value = phoneValidator.input(target.value);
32
+ return event;
33
+ },
34
+ };
35
+ const cityId = {
36
+ label: 'city',
37
+ placeholder: 'selectCity',
38
+ formLocaleName: 'contactUs',
39
+ fetcher: async (language, signal) => {
40
+ const response = await fetch(CITY_ENDPOINT, { signal, headers: { 'Accept-Language': language } });
41
+ const arrayRes = (await response.json());
42
+ const selectItems = arrayRes.map(item => ({ label: item.Name, value: item.ID }));
43
+ return selectItems;
44
+ },
45
+ };
46
+ const generalTicketType = {
47
+ label: 'inquiryType',
48
+ formLocaleName: 'contactUs',
49
+ placeholder: 'selectInquiryType',
50
+ fetcher: async (language, _) => {
51
+ const ticketTypes = (await getLocaleLanguage(language)).generalTicketTypes;
52
+ const generalInquiryTypes = [
53
+ {
54
+ value: 'GeneralInquiry',
55
+ label: ticketTypes.GeneralInquiry,
56
+ },
57
+ {
58
+ value: 'Complaint',
59
+ label: ticketTypes.Complaint,
60
+ },
61
+ ];
62
+ return generalInquiryTypes;
63
+ },
64
+ };
65
+ export const formFieldParams = {
66
+ name,
67
+ email,
68
+ message,
69
+ phone,
70
+ cityId,
71
+ generalTicketType,
72
+ };
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ import { AsYouType } from "libphonenumber-js";
6
+ import { object, string } from "yup";
7
+ export const phoneValidator = new AsYouType('IQ');
8
+ phoneValidator.default = '+' + phoneValidator.metadata.numberingPlan.metadata[0];
9
+ phoneValidator.input(phoneValidator.default);
10
+ export const contactUsSchema = object({
11
+ cityId: string(),
12
+ email: string().email('emailAddressNotValid'),
13
+ message: string().required('messageIsRequired'),
14
+ generalTicketType: string().required('inquiryTypeIsRequired'),
15
+ name: string().required('fullNameIsRequired').min(3, 'fullNameMinimum'),
16
+ phone: string()
17
+ .required('phoneNumberIsRequired')
18
+ .test('libphonenumber-validation', 'phoneNumberFormatInvalid', () => phoneValidator.isValid()),
19
+ });
@@ -0,0 +1,308 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ import { Host, h } from "@stencil/core";
6
+ import { localeSchema } from "../../global/types/locales/index";
7
+ import cn from "../../global/lib/cn";
8
+ import { FormHook } from "../../global/lib/form-hook";
9
+ import { getLocaleLanguage } from "../../global/lib/get-local-language";
10
+ import { isValidStructure } from "../../global/lib/validate-form-structure";
11
+ import { formFieldParams } from "./contact-us/params";
12
+ import { formElementMapper } from "./contact-us/mapper";
13
+ import { contactUsSchema } from "./contact-us/validations";
14
+ import themes from "./contact-us/themes.json";
15
+ export class ContactUsForm {
16
+ constructor() {
17
+ this.recaptchaWidget = null;
18
+ this.form = new FormHook(this, contactUsSchema);
19
+ this.theme = undefined;
20
+ this.baseUrl = undefined;
21
+ this.brandId = undefined;
22
+ this.queryString = '';
23
+ this.language = 'en';
24
+ this.errorCallback = undefined;
25
+ this.successCallback = undefined;
26
+ this.structure = '["submit.Submit"]';
27
+ this.loadingChanges = undefined;
28
+ this.recaptchaKey = '6Lehq6IpAAAAAETTDS2Zh60nHIT1a8oVkRtJ2WsA';
29
+ this.isLoading = undefined;
30
+ this.renderControl = {};
31
+ this.structureObject = null;
32
+ this.locale = localeSchema.getDefault();
33
+ }
34
+ async componentWillLoad() {
35
+ let structure;
36
+ if (this.theme && themes[this.theme])
37
+ structure = themes[this.theme];
38
+ else
39
+ structure = this.structure;
40
+ await Promise.all([this.structureValidation(structure), this.changeLanguage(this.language)]);
41
+ }
42
+ async changeLanguage(newLanguage) {
43
+ this.locale = await getLocaleLanguage(newLanguage);
44
+ }
45
+ async onStructureChange(newStructure) {
46
+ await this.structureValidation(newStructure);
47
+ }
48
+ async structureValidation(structureString) {
49
+ this.structureObject = isValidStructure(structureString);
50
+ }
51
+ async componentDidLoad() {
52
+ try {
53
+ if (this.recaptchaKey) {
54
+ const script = document.createElement('script');
55
+ script.src = `https://www.google.com/recaptcha/api.js?render=${this.recaptchaKey}&hl=${this.language}`;
56
+ script.async = true;
57
+ script.defer = true;
58
+ document.head.appendChild(script);
59
+ }
60
+ }
61
+ catch (error) {
62
+ console.log(error);
63
+ }
64
+ }
65
+ async formSubmit(formValues) {
66
+ try {
67
+ if (this.loadingChanges)
68
+ this.loadingChanges(true);
69
+ const token = await grecaptcha.execute(this.recaptchaKey, { action: 'submit' });
70
+ const response = await fetch(`${this.baseUrl}?${this.queryString}`, {
71
+ method: 'post',
72
+ body: JSON.stringify(formValues),
73
+ headers: {
74
+ 'Brand': this.brandId,
75
+ 'Recaptcha-Token': token,
76
+ 'Accept-Language': this.language,
77
+ 'Content-Type': 'application/json',
78
+ },
79
+ });
80
+ const data = await response.json();
81
+ if (this.successCallback)
82
+ this.successCallback(data);
83
+ }
84
+ catch (error) {
85
+ console.log(error);
86
+ if (this.errorCallback)
87
+ this.errorCallback(error);
88
+ }
89
+ finally {
90
+ if (this.loadingChanges)
91
+ this.loadingChanges(false);
92
+ }
93
+ }
94
+ render() {
95
+ if (this.structureObject === null)
96
+ return h("form-structure-error", { language: this.language });
97
+ return (h(Host, { class: cn({
98
+ [`contact-us-${this.theme}`]: this.theme,
99
+ }) }, h("form-structure", { form: this.form, language: this.language, isLoading: this.isLoading, formFieldParams: formFieldParams, renderControl: this.renderControl, formElementMapper: formElementMapper, structureObject: this.structureObject }, h("slot", null))));
100
+ }
101
+ static get is() { return "contact-us-form"; }
102
+ static get originalStyleUrls() {
103
+ return {
104
+ "$": ["contact-us/form.css"]
105
+ };
106
+ }
107
+ static get styleUrls() {
108
+ return {
109
+ "$": ["contact-us/form.css"]
110
+ };
111
+ }
112
+ static get properties() {
113
+ return {
114
+ "theme": {
115
+ "type": "string",
116
+ "mutable": false,
117
+ "complexType": {
118
+ "original": "string",
119
+ "resolved": "string",
120
+ "references": {}
121
+ },
122
+ "required": false,
123
+ "optional": false,
124
+ "docs": {
125
+ "tags": [],
126
+ "text": ""
127
+ },
128
+ "attribute": "theme",
129
+ "reflect": false
130
+ },
131
+ "baseUrl": {
132
+ "type": "string",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "string",
136
+ "resolved": "string",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": ""
144
+ },
145
+ "attribute": "base-url",
146
+ "reflect": false
147
+ },
148
+ "brandId": {
149
+ "type": "string",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "string",
153
+ "resolved": "string",
154
+ "references": {}
155
+ },
156
+ "required": false,
157
+ "optional": false,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": ""
161
+ },
162
+ "attribute": "brand-id",
163
+ "reflect": false
164
+ },
165
+ "queryString": {
166
+ "type": "string",
167
+ "mutable": false,
168
+ "complexType": {
169
+ "original": "string",
170
+ "resolved": "string",
171
+ "references": {}
172
+ },
173
+ "required": false,
174
+ "optional": false,
175
+ "docs": {
176
+ "tags": [],
177
+ "text": ""
178
+ },
179
+ "attribute": "query-string",
180
+ "reflect": false,
181
+ "defaultValue": "''"
182
+ },
183
+ "language": {
184
+ "type": "string",
185
+ "mutable": false,
186
+ "complexType": {
187
+ "original": "LanguageKeys",
188
+ "resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
189
+ "references": {
190
+ "LanguageKeys": {
191
+ "location": "import",
192
+ "path": "~types/locales",
193
+ "id": "src/global/types/locales/index.ts::LanguageKeys"
194
+ }
195
+ }
196
+ },
197
+ "required": false,
198
+ "optional": false,
199
+ "docs": {
200
+ "tags": [],
201
+ "text": ""
202
+ },
203
+ "attribute": "language",
204
+ "reflect": false,
205
+ "defaultValue": "'en'"
206
+ },
207
+ "errorCallback": {
208
+ "type": "unknown",
209
+ "mutable": false,
210
+ "complexType": {
211
+ "original": "(error: any) => void",
212
+ "resolved": "(error: any) => void",
213
+ "references": {}
214
+ },
215
+ "required": false,
216
+ "optional": false,
217
+ "docs": {
218
+ "tags": [],
219
+ "text": ""
220
+ }
221
+ },
222
+ "successCallback": {
223
+ "type": "unknown",
224
+ "mutable": false,
225
+ "complexType": {
226
+ "original": "(values: any) => void",
227
+ "resolved": "(values: any) => void",
228
+ "references": {}
229
+ },
230
+ "required": false,
231
+ "optional": false,
232
+ "docs": {
233
+ "tags": [],
234
+ "text": ""
235
+ }
236
+ },
237
+ "structure": {
238
+ "type": "string",
239
+ "mutable": false,
240
+ "complexType": {
241
+ "original": "string",
242
+ "resolved": "string",
243
+ "references": {}
244
+ },
245
+ "required": false,
246
+ "optional": false,
247
+ "docs": {
248
+ "tags": [],
249
+ "text": ""
250
+ },
251
+ "attribute": "structure",
252
+ "reflect": false,
253
+ "defaultValue": "'[\"submit.Submit\"]'"
254
+ },
255
+ "loadingChanges": {
256
+ "type": "unknown",
257
+ "mutable": false,
258
+ "complexType": {
259
+ "original": "(loading: boolean) => void",
260
+ "resolved": "(loading: boolean) => void",
261
+ "references": {}
262
+ },
263
+ "required": false,
264
+ "optional": false,
265
+ "docs": {
266
+ "tags": [],
267
+ "text": ""
268
+ }
269
+ },
270
+ "recaptchaKey": {
271
+ "type": "string",
272
+ "mutable": false,
273
+ "complexType": {
274
+ "original": "string",
275
+ "resolved": "string",
276
+ "references": {}
277
+ },
278
+ "required": false,
279
+ "optional": false,
280
+ "docs": {
281
+ "tags": [],
282
+ "text": ""
283
+ },
284
+ "attribute": "recaptcha-key",
285
+ "reflect": false,
286
+ "defaultValue": "'6Lehq6IpAAAAAETTDS2Zh60nHIT1a8oVkRtJ2WsA'"
287
+ }
288
+ };
289
+ }
290
+ static get states() {
291
+ return {
292
+ "isLoading": {},
293
+ "renderControl": {},
294
+ "structureObject": {},
295
+ "locale": {}
296
+ };
297
+ }
298
+ static get elementRef() { return "el"; }
299
+ static get watchers() {
300
+ return [{
301
+ "propName": "language",
302
+ "methodName": "changeLanguage"
303
+ }, {
304
+ "propName": "structure",
305
+ "methodName": "onStructureChange"
306
+ }];
307
+ }
308
+ }
@@ -314,7 +314,7 @@ export class DeadStockLookup {
314
314
  "signature": "(message: ErrorKeys) => Promise<void>",
315
315
  "parameters": [{
316
316
  "name": "message",
317
- "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
317
+ "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
318
318
  "docs": ""
319
319
  }],
320
320
  "references": {
@@ -377,7 +377,7 @@ export class DistributorLookup {
377
377
  "signature": "(message: ErrorKeys) => Promise<void>",
378
378
  "parameters": [{
379
379
  "name": "message",
380
- "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
380
+ "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
381
381
  "docs": ""
382
382
  }],
383
383
  "references": {
@@ -375,7 +375,7 @@ export class ManufacturerLookup {
375
375
  "signature": "(message: ErrorKeys) => Promise<void>",
376
376
  "parameters": [{
377
377
  "name": "message",
378
- "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
378
+ "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
379
379
  "docs": ""
380
380
  }],
381
381
  "references": {
@@ -536,7 +536,7 @@ export class DynamicClaim {
536
536
  "signature": "(message: ErrorKeys) => Promise<void>",
537
537
  "parameters": [{
538
538
  "name": "message",
539
- "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
539
+ "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
540
540
  "docs": ""
541
541
  }],
542
542
  "references": {
@@ -319,7 +319,7 @@ export class PaintThickness {
319
319
  "signature": "(message: ErrorKeys) => Promise<void>",
320
320
  "parameters": [{
321
321
  "name": "message",
322
- "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
322
+ "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
323
323
  "docs": ""
324
324
  }],
325
325
  "references": {
@@ -302,7 +302,7 @@ export class ServiceHistory {
302
302
  "signature": "(message: ErrorKeys) => Promise<void>",
303
303
  "parameters": [{
304
304
  "name": "message",
305
- "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
305
+ "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
306
306
  "docs": ""
307
307
  }],
308
308
  "references": {
@@ -323,7 +323,7 @@ export class VehicleAccessories {
323
323
  "signature": "(message: ErrorKeys) => Promise<void>",
324
324
  "parameters": [{
325
325
  "name": "message",
326
- "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
326
+ "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
327
327
  "docs": ""
328
328
  }],
329
329
  "references": {
@@ -92,7 +92,8 @@ export class VehicleSpecification {
92
92
  return (h(Host, { key: '6ed532937cdafcfab7aabc39bbfd0d4c1dff1b00' }, h("div", { key: 'ddb8b2dc2838a030499b5241f3dfa15f7a68bf07', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'f81b91d6c7cfd81df70b691b56b10c26ebaf1efc' }, h(Loading, { key: 'b96b054448c12ccbaf6fa6291382f51e3c334376', isLoading: this.state.includes('loading') }), h("div", { key: '76cd0cc45c7f84986bd813effac5a53a0295c491', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: '60724b3858a6707e3afa18d985f50616fa8484f0', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '60dcc26e1ecceb4cbca2c2de1e6db439c17e1019', class: "py-[16px] min-h-[100px] flex items-center" }, h("div", { key: '4d3c1afca968d2c7fc2a925fc626d70492f49869', class: "px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: 'af212e18ce332b031699b6c3e00df805fbc31db1', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '21a2974e7222b7d6a8fcaa2df1978ecf7670eedf', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.vehicleSpecification), h("div", { key: 'b3413a1f409cebfa51c3c84aab4acb1ddf88e3ac', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vehicleSpecification) && h("div", { key: '4e1d80fd788a29fce807c7bf7a55cf306691c614', class: "h-[80px] flex items-center justify-center text-[18px]" }, texts.noData), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.vehicleSpecification) && (h("table", { key: 'b8edb5185c70b660818af1023ecdff2d371732fd', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'fb412628f875cca8d6a9d6921e9bec42a4ee4a64', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '7676f04f48b6fce484f65f0c80a17e2c500eba27' }, ['model', 'variant', 'katashiki', 'modelYear', 'sfx'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), h("tbody", { key: '1075c4b0ea60a3ccca8c84ff0e85dbc743c2d344' }, h("tr", { key: 'a2e4bae8f5c53f9b2447242b12bba65288e7cece' }, h("td", { key: 'a792eb66c320e92c1b6a04159cf7f3d7076b30d3', 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) || '...', " ", h("br", { key: '2994aa18bdadecc364a34a0f9d3b88908e2c6676', 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) || '...'), h("td", { key: '215d557dab5b54a432cc0a1fe8f0dde27aa1a5b4', 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) || '...', " ", h("br", { key: 'ec59b6a49dd36a203d879bd60fd36094f3bc9407' }), ((_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 => {
93
93
  var _a;
94
94
  const [place, field] = infoPath.split('.');
95
- const cellValue = (_a = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _a === void 0 ? void 0 : _a[place][field].toString();
95
+ const targetPlace = (_a = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _a === void 0 ? void 0 : _a[place];
96
+ const cellValue = targetPlace && targetPlace[field] ? targetPlace[field].toString() : '';
96
97
  return (h("td", { key: infoPath, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, cellValue.trim() ? cellValue : '...'));
97
98
  })))))))))))));
98
99
  }
@@ -297,7 +298,7 @@ export class VehicleSpecification {
297
298
  "signature": "(message: ErrorKeys) => Promise<void>",
298
299
  "parameters": [{
299
300
  "name": "message",
300
- "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
301
+ "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
301
302
  "docs": ""
302
303
  }],
303
304
  "references": {
@@ -193,7 +193,7 @@ export class WarrantyDetails {
193
193
  }
194
194
  render() {
195
195
  var _a, _b, _c, _d, _e;
196
- return (h(Host, { key: '6821b3645071e6015c9480e32b99cc6990e187a8' }, h("div", { key: 'ef37a9cdd7efcbd6bfb4823513a05a4412bc18c3', dir: this.locale.direction, class: "min-h-[100px] warranty" }, h("div", { key: '753eae93bc53dfcd85f0ce6d28d7d7c8f953dd1e' }, h(Loading, { key: 'e4b5d05661ae73cd6e4033fa61950b3926537e84', isLoading: this.state.includes('loading') }), h("div", { key: 'bdd7d5282385fc0349963c1d1d6afbed48ca31de', 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) && (h("div", { key: 'c5bca4125c89fa3bd6154e8038b4cc979cd6dc31', 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) && (h("div", { key: '71bc6a8af3e12853618c06d0d06165a1cfd28708', class: "py-[16px] min-h-[100px] flex items-center" }, h("div", { key: 'a2ff7ca55fd8f16b3267f0325f2e9060bb5d5fe6', class: "px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard))), this.showWarranty && ['data', 'data-loading'].includes(this.state) && (h(CardsContainer, { key: '03d3ebc23d8f8115997d44ee8aa762071b82b82c', 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 })), h("div", { key: '395ad2728db263f98f2d446d8c7cc0ff1143eb81', style: Object.assign({}, (this.showRecaptcha ? { height: 'auto', padding: '16px 16px 0px 16px' } : { height: '0px' })), class: "recaptcha-container" }, h("slot", { key: 'e61abafe6d25dbd1325e2641b21a6b88f9b27b97' })), ['data', 'data-loading'].includes(this.state) && this.recaptchaRes && (h("div", { key: '79ff7d1118e3d45a61bfa1d84229a4ae64b17c2a', class: cn('recaptcha-response', !this.recaptchaRes.hasSSC ? 'success-card' : 'reject-card ') }, this.locale.vehicleLookup.warranty[this.recaptchaRes.message])), this.checkingUnauthorizedSSC && (h("div", { key: 'cbe2defddee50807d4688049419d55215364da0d', class: "loading-spinner", style: { marginTop: '20px', flexDirection: 'column' } }, h("div", { key: 'd2cb05bea50b54840a1622f21ee7025bd5e9fe27' }, h("strong", { key: 'a70d14aa5ee98b61764f0a422ef1d961ec7bd836' }, this.locale.vehicleLookup.warranty.checkingTMC)), h("img", { key: 'dbfc17747c5fb4e5e50eee25e06eeeb4aa15626c', class: "spin", src: Loader }))), 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) && (h(SSCTable, { key: 'd26f350f172c90725159f224e5788067c31c7f2c', locale: this.locale, ssc: this.vehicleInformation.ssc })))))));
196
+ return (h(Host, { key: 'a2450072b8322100a2b26fffde2f2368fa6f859e' }, h("div", { key: 'b62fc2c807ee3c7d28d86d247610d79b282bee77', dir: this.locale.direction, class: "min-h-[100px] warranty" }, h("div", { key: '07d047b42d6a2811b09bfb4a679580eae17007e8' }, h(Loading, { key: 'dbc3ab7702d82d35e77360730fb982e862794b29', isLoading: this.state.includes('loading') }), h("div", { key: '290ae621db597035e73f65a856c1bb438cd4b9e7', 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) && (h("div", { key: '8331397a1da36813069186f23fb40b4189549d27', 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) && (h("div", { key: '0c48f32b6ed6604dad626c32203a30af9107bdae', class: "py-[16px] min-h-[100px] flex items-center" }, h("div", { key: '1ca1709b2e88e66272b1de6f9c32c2b88f444172', class: "px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard))), this.showWarranty && ['data', 'data-loading'].includes(this.state) && (h(CardsContainer, { key: '6c72a9bc36dce8a07de4bb31324160925b99f0f5', 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 })), h("div", { key: '1df38bbb43f2068d07be564141d7ad05535a4821', style: Object.assign({}, (this.showRecaptcha ? { height: 'auto', padding: '16px 16px 0px 16px' } : { height: '0px' })), class: "recaptcha-container" }, h("slot", { key: 'c0a13e5c4b8472cec694eb0e3c86ec47126ed17f' })), ['data', 'data-loading'].includes(this.state) && this.recaptchaRes && (h("div", { key: '0538982583473257a4d950bf256c088600515059', class: cn('recaptcha-response', !this.recaptchaRes.hasSSC ? 'success-card' : 'reject-card ') }, this.locale.vehicleLookup.warranty[this.recaptchaRes.message])), this.checkingUnauthorizedSSC && (h("div", { key: 'b124c96b6cb2c04c9e66a26a29408df14658e020', class: "loading-spinner", style: { marginTop: '20px', flexDirection: 'column' } }, h("div", { key: 'c1f047e2cf8cc089ffd68bd973237a418220664d' }, h("strong", { key: 'f99dbf2f323fe499afcd5e4e75a970c40e40503e' }, this.locale.vehicleLookup.warranty.checkingTMC)), h("img", { key: '6232d00679900c7f6625311a3846b0c022b35c53', class: "spin", src: Loader }))), 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) && (h(SSCTable, { key: '633a617baadedc94ad0aacb5d8db7da6df880258', locale: this.locale, ssc: this.vehicleInformation.ssc })))))));
197
197
  }
198
198
  static get is() { return "warranty-details"; }
199
199
  static get encapsulation() { return "shadow"; }
@@ -689,7 +689,7 @@ export class WarrantyDetails {
689
689
  "signature": "(message: ErrorKeys) => Promise<void>",
690
690
  "parameters": [{
691
691
  "name": "message",
692
- "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
692
+ "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
693
693
  "docs": ""
694
694
  }],
695
695
  "references": {
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ export const TIQ_VEHICLES = 'https://tiq-tickets.azurewebsites.net';
6
+ export const CITY_ENDPOINT = 'https://tiq-identity-server.azurewebsites.net/api/public/city';
@@ -0,0 +1,11 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white"
2
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader">
3
+ <path d="M12 2v4" />
4
+ <path d="m16.2 7.8 2.9-2.9" />
5
+ <path d="M18 12h4" />
6
+ <path d="m16.2 16.2 2.9 2.9" />
7
+ <path d="M12 18v4" />
8
+ <path d="m4.9 19.1 2.9-2.9" />
9
+ <path d="M2 12h4" />
10
+ <path d="m4.9 4.9 2.9 2.9" />
11
+ </svg>