adp-web-components 0.0.63 → 0.0.65

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 (317) hide show
  1. package/package.json +1 -1
  2. package/dist/cjs/app-globals-4aa8f46f.js +0 -46
  3. package/dist/cjs/cn-f559f9e5.js +0 -2588
  4. package/dist/cjs/contact-us-form.cjs.entry.js +0 -209
  5. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +0 -445
  6. package/dist/cjs/dynamic-claim_6.cjs.entry.js +0 -1154
  7. package/dist/cjs/dynamic-redeem.cjs.entry.js +0 -156
  8. package/dist/cjs/form-dialog_8.cjs.entry.js +0 -503
  9. package/dist/cjs/get-local-language-18a7ccf5.js +0 -2380
  10. package/dist/cjs/index-603d8f32.js +0 -1610
  11. package/dist/cjs/index.cjs.js +0 -6
  12. package/dist/cjs/loader-baf2418b.js +0 -9
  13. package/dist/cjs/loader.cjs.js +0 -19
  14. package/dist/cjs/loading-spinner.cjs.entry.js +0 -27
  15. package/dist/cjs/part-lookup.cjs.entry.js +0 -129
  16. package/dist/cjs/service-booking-form.cjs.entry.js +0 -209
  17. package/dist/cjs/shift-components.cjs.js +0 -29
  18. package/dist/cjs/urls-9077b31c.js +0 -4874
  19. package/dist/cjs/vehicle-lookup.cjs.entry.js +0 -202
  20. package/dist/collection/collection-manifest.json +0 -35
  21. package/dist/collection/components/components/loading-spinner.css +0 -1
  22. package/dist/collection/components/components/loading-spinner.js +0 -47
  23. package/dist/collection/components/form-elements/form-dialog.css +0 -1
  24. package/dist/collection/components/form-elements/form-dialog.js +0 -137
  25. package/dist/collection/components/form-elements/form-input.css +0 -1
  26. package/dist/collection/components/form-elements/form-input.js +0 -323
  27. package/dist/collection/components/form-elements/form-select.css +0 -1
  28. package/dist/collection/components/form-elements/form-select.js +0 -400
  29. package/dist/collection/components/form-elements/form-shadow-input.css +0 -1
  30. package/dist/collection/components/form-elements/form-shadow-input.js +0 -100
  31. package/dist/collection/components/form-elements/form-structure-error.css +0 -1
  32. package/dist/collection/components/form-elements/form-structure-error.js +0 -72
  33. package/dist/collection/components/form-elements/form-structure.css +0 -1
  34. package/dist/collection/components/form-elements/form-structure.js +0 -269
  35. package/dist/collection/components/form-elements/form-submit.css +0 -1
  36. package/dist/collection/components/form-elements/form-submit.js +0 -140
  37. package/dist/collection/components/form-elements/form-text-area.css +0 -1
  38. package/dist/collection/components/form-elements/form-text-area.js +0 -264
  39. package/dist/collection/components/forms/contact-us/element-mapper.js +0 -87
  40. package/dist/collection/components/forms/contact-us/form.css +0 -1
  41. package/dist/collection/components/forms/contact-us/validations.js +0 -19
  42. package/dist/collection/components/forms/contact-us-form.js +0 -280
  43. package/dist/collection/components/forms/service-booking/element-mapper.js +0 -87
  44. package/dist/collection/components/forms/service-booking/form.css +0 -1
  45. package/dist/collection/components/forms/service-booking/validations.js +0 -19
  46. package/dist/collection/components/forms/service-booking-form.js +0 -280
  47. package/dist/collection/components/part-lookup/dead-stock-lookup.css +0 -1
  48. package/dist/collection/components/part-lookup/dead-stock-lookup.js +0 -405
  49. package/dist/collection/components/part-lookup/distributor-lookup.css +0 -1
  50. package/dist/collection/components/part-lookup/distributor-lookup.js +0 -470
  51. package/dist/collection/components/part-lookup/manufacturer-lookup.css +0 -1
  52. package/dist/collection/components/part-lookup/manufacturer-lookup.js +0 -468
  53. package/dist/collection/components/part-lookup/part-lookup.css +0 -1
  54. package/dist/collection/components/part-lookup/part-lookup.js +0 -376
  55. package/dist/collection/components/vehicle-lookup/assets/cancelled.svg +0 -8
  56. package/dist/collection/components/vehicle-lookup/assets/check.svg +0 -4
  57. package/dist/collection/components/vehicle-lookup/assets/expired.svg +0 -9
  58. package/dist/collection/components/vehicle-lookup/assets/loader.svg +0 -11
  59. package/dist/collection/components/vehicle-lookup/assets/pending.svg +0 -9
  60. package/dist/collection/components/vehicle-lookup/assets/processed.svg +0 -9
  61. package/dist/collection/components/vehicle-lookup/assets/x-mark.svg +0 -4
  62. package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +0 -10
  63. package/dist/collection/components/vehicle-lookup/components/Loading.js +0 -10
  64. package/dist/collection/components/vehicle-lookup/components/SSCTable.js +0 -16
  65. package/dist/collection/components/vehicle-lookup/components/StatusCard.js +0 -11
  66. package/dist/collection/components/vehicle-lookup/dynamic-claim.css +0 -1
  67. package/dist/collection/components/vehicle-lookup/dynamic-claim.js +0 -625
  68. package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +0 -1
  69. package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +0 -373
  70. package/dist/collection/components/vehicle-lookup/paint-thickness.css +0 -1
  71. package/dist/collection/components/vehicle-lookup/paint-thickness.js +0 -410
  72. package/dist/collection/components/vehicle-lookup/service-history.css +0 -1
  73. package/dist/collection/components/vehicle-lookup/service-history.js +0 -393
  74. package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +0 -1
  75. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +0 -414
  76. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +0 -1
  77. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +0 -405
  78. package/dist/collection/components/vehicle-lookup/vehicle-specification.css +0 -1
  79. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +0 -389
  80. package/dist/collection/components/vehicle-lookup/warranty-details.css +0 -1
  81. package/dist/collection/components/vehicle-lookup/warranty-details.js +0 -780
  82. package/dist/collection/global/api/partInformation.js +0 -32
  83. package/dist/collection/global/api/urls.js +0 -6
  84. package/dist/collection/global/api/vehicleInformation.js +0 -48
  85. package/dist/collection/global/assets/eye.svg +0 -5
  86. package/dist/collection/global/assets/loader.svg +0 -11
  87. package/dist/collection/global/assets/white-loader.svg +0 -11
  88. package/dist/collection/global/lib/cn.js +0 -9
  89. package/dist/collection/global/lib/form-hook.js +0 -162
  90. package/dist/collection/global/lib/general.js +0 -9
  91. package/dist/collection/global/lib/get-local-language.js +0 -20
  92. package/dist/collection/global/lib/image-expansion.js +0 -69
  93. package/dist/collection/global/lib/middleware.js +0 -39
  94. package/dist/collection/global/lib/recaptcha.js +0 -25
  95. package/dist/collection/global/lib/utils.js +0 -7
  96. package/dist/collection/global/lib/validate-form-structure.js +0 -47
  97. package/dist/collection/global/lib/validate-vin.js +0 -62
  98. package/dist/collection/global/types/components.js +0 -1
  99. package/dist/collection/global/types/forms.js +0 -1
  100. package/dist/collection/global/types/general.js +0 -1
  101. package/dist/collection/global/types/locales/error-schema.js +0 -17
  102. package/dist/collection/global/types/locales/forms/contact-us-schema.js +0 -24
  103. package/dist/collection/global/types/locales/forms/index.js +0 -11
  104. package/dist/collection/global/types/locales/general.js +0 -11
  105. package/dist/collection/global/types/locales/index.js +0 -33
  106. package/dist/collection/global/types/locales/inquiryTypes.js +0 -15
  107. package/dist/collection/global/types/locales/part-lookup/dead-stock-schema.js +0 -10
  108. package/dist/collection/global/types/locales/part-lookup/distributor-schema.js +0 -21
  109. package/dist/collection/global/types/locales/part-lookup/index.js +0 -13
  110. package/dist/collection/global/types/locales/part-lookup/manufacturer-schema.js +0 -22
  111. package/dist/collection/global/types/locales/vehicle-lookup/accessories-schema.js +0 -13
  112. package/dist/collection/global/types/locales/vehicle-lookup/dynamic-claim-schema.js +0 -21
  113. package/dist/collection/global/types/locales/vehicle-lookup/dynamic-redeem-schema.js +0 -19
  114. package/dist/collection/global/types/locales/vehicle-lookup/index.js +0 -21
  115. package/dist/collection/global/types/locales/vehicle-lookup/paint-thickness-schema.js +0 -14
  116. package/dist/collection/global/types/locales/vehicle-lookup/service-history-schema.js +0 -15
  117. package/dist/collection/global/types/locales/vehicle-lookup/specification-schema.js +0 -14
  118. package/dist/collection/global/types/locales/vehicle-lookup/warranty-schema.js +0 -23
  119. package/dist/collection/global/types/part-information.js +0 -1
  120. package/dist/collection/global/types/vehicle-information.js +0 -5
  121. package/dist/collection/index.js +0 -1
  122. package/dist/collection/templates/part-lookup/mock-data.js +0 -199
  123. package/dist/collection/templates/vehicle-lookup/mock-data.js +0 -4146
  124. package/dist/collection/templates/vehicle-lookup/vehicle-lookup.js +0 -285
  125. package/dist/collection/templates/vehicle-lookup/warranty-mock-data.js +0 -3000
  126. package/dist/components/contact-us-form.d.ts +0 -11
  127. package/dist/components/contact-us-form.js +0 -5
  128. package/dist/components/dead-stock-lookup.d.ts +0 -11
  129. package/dist/components/dead-stock-lookup.js +0 -5
  130. package/dist/components/distributor-lookup.d.ts +0 -11
  131. package/dist/components/distributor-lookup.js +0 -5
  132. package/dist/components/dynamic-claim.d.ts +0 -11
  133. package/dist/components/dynamic-claim.js +0 -5
  134. package/dist/components/dynamic-redeem.d.ts +0 -11
  135. package/dist/components/dynamic-redeem.js +0 -5
  136. package/dist/components/form-dialog.d.ts +0 -11
  137. package/dist/components/form-dialog.js +0 -5
  138. package/dist/components/form-input.d.ts +0 -11
  139. package/dist/components/form-input.js +0 -5
  140. package/dist/components/form-select.d.ts +0 -11
  141. package/dist/components/form-select.js +0 -5
  142. package/dist/components/form-shadow-input.d.ts +0 -11
  143. package/dist/components/form-shadow-input.js +0 -5
  144. package/dist/components/form-structure-error.d.ts +0 -11
  145. package/dist/components/form-structure-error.js +0 -5
  146. package/dist/components/form-structure.d.ts +0 -11
  147. package/dist/components/form-structure.js +0 -5
  148. package/dist/components/form-submit.d.ts +0 -11
  149. package/dist/components/form-submit.js +0 -5
  150. package/dist/components/form-text-area.d.ts +0 -11
  151. package/dist/components/form-text-area.js +0 -5
  152. package/dist/components/index.d.ts +0 -33
  153. package/dist/components/index.js +0 -5
  154. package/dist/components/loading-spinner.d.ts +0 -11
  155. package/dist/components/loading-spinner.js +0 -5
  156. package/dist/components/manufacturer-lookup.d.ts +0 -11
  157. package/dist/components/manufacturer-lookup.js +0 -5
  158. package/dist/components/p-0470fc51.js +0 -5
  159. package/dist/components/p-0cdfba30.js +0 -5
  160. package/dist/components/p-389eed80.js +0 -5
  161. package/dist/components/p-478117f0.js +0 -5
  162. package/dist/components/p-59e10e25.js +0 -5
  163. package/dist/components/p-69d1c33e.js +0 -5
  164. package/dist/components/p-6ec80da4.js +0 -5
  165. package/dist/components/p-6f732895.js +0 -5
  166. package/dist/components/p-75476014.js +0 -5
  167. package/dist/components/p-8b1d90d7.js +0 -5
  168. package/dist/components/p-8fa24168.js +0 -5
  169. package/dist/components/p-91129e05.js +0 -5
  170. package/dist/components/p-932ff922.js +0 -5
  171. package/dist/components/p-98d9e7ab.js +0 -5
  172. package/dist/components/p-a21e2e2e.js +0 -5
  173. package/dist/components/p-a793dc44.js +0 -5
  174. package/dist/components/p-aa673a70.js +0 -5
  175. package/dist/components/p-bf73c370.js +0 -5
  176. package/dist/components/p-c603ac5e.js +0 -5
  177. package/dist/components/p-cbaa5de0.js +0 -5
  178. package/dist/components/p-d0546e1e.js +0 -5
  179. package/dist/components/p-d43ef8c9.js +0 -5
  180. package/dist/components/p-d5ff7544.js +0 -5
  181. package/dist/components/p-d65dfa98.js +0 -5
  182. package/dist/components/p-d74f3ad8.js +0 -5
  183. package/dist/components/p-eec2a223.js +0 -5
  184. package/dist/components/p-fab97ac7.js +0 -5
  185. package/dist/components/paint-thickness.d.ts +0 -11
  186. package/dist/components/paint-thickness.js +0 -5
  187. package/dist/components/part-lookup.d.ts +0 -11
  188. package/dist/components/part-lookup.js +0 -5
  189. package/dist/components/service-booking-form.d.ts +0 -11
  190. package/dist/components/service-booking-form.js +0 -5
  191. package/dist/components/service-history.d.ts +0 -11
  192. package/dist/components/service-history.js +0 -5
  193. package/dist/components/vehicle-accessories.d.ts +0 -11
  194. package/dist/components/vehicle-accessories.js +0 -5
  195. package/dist/components/vehicle-lookup.d.ts +0 -11
  196. package/dist/components/vehicle-lookup.js +0 -5
  197. package/dist/components/vehicle-specification.d.ts +0 -11
  198. package/dist/components/vehicle-specification.js +0 -5
  199. package/dist/components/warranty-details.d.ts +0 -11
  200. package/dist/components/warranty-details.js +0 -5
  201. package/dist/esm/app-globals-68faa233.js +0 -44
  202. package/dist/esm/cn-cc419b94.js +0 -2586
  203. package/dist/esm/contact-us-form.entry.js +0 -205
  204. package/dist/esm/dead-stock-lookup_3.entry.js +0 -439
  205. package/dist/esm/dynamic-claim_6.entry.js +0 -1145
  206. package/dist/esm/dynamic-redeem.entry.js +0 -152
  207. package/dist/esm/form-dialog_8.entry.js +0 -492
  208. package/dist/esm/get-local-language-40614e53.js +0 -2375
  209. package/dist/esm/index-cac905b0.js +0 -1581
  210. package/dist/esm/index.js +0 -4
  211. package/dist/esm/loader-027b88af.js +0 -7
  212. package/dist/esm/loader.js +0 -15
  213. package/dist/esm/loading-spinner.entry.js +0 -23
  214. package/dist/esm/part-lookup.entry.js +0 -125
  215. package/dist/esm/service-booking-form.entry.js +0 -205
  216. package/dist/esm/shift-components.js +0 -24
  217. package/dist/esm/urls-e22234f9.js +0 -4870
  218. package/dist/esm/vehicle-lookup.entry.js +0 -198
  219. package/dist/index.cjs.js +0 -1
  220. package/dist/index.js +0 -1
  221. package/dist/locales/ar.json +0 -184
  222. package/dist/locales/en.json +0 -184
  223. package/dist/locales/ku.json +0 -184
  224. package/dist/locales/ru.json +0 -184
  225. package/dist/shift-components/index.esm.js +0 -4
  226. package/dist/shift-components/p-116b1698.entry.js +0 -5
  227. package/dist/shift-components/p-227d01ce.entry.js +0 -5
  228. package/dist/shift-components/p-2cf52456.entry.js +0 -5
  229. package/dist/shift-components/p-33561513.entry.js +0 -5
  230. package/dist/shift-components/p-446d908d.js +0 -5
  231. package/dist/shift-components/p-5bbbff4a.entry.js +0 -5
  232. package/dist/shift-components/p-65102e7a.js +0 -6
  233. package/dist/shift-components/p-777ff030.entry.js +0 -5
  234. package/dist/shift-components/p-932ff922.js +0 -5
  235. package/dist/shift-components/p-98d9e7ab.js +0 -5
  236. package/dist/shift-components/p-a21e2e2e.js +0 -5
  237. package/dist/shift-components/p-b131a56e.entry.js +0 -5
  238. package/dist/shift-components/p-c7d01b2c.entry.js +0 -5
  239. package/dist/shift-components/p-eab3606c.js +0 -5
  240. package/dist/shift-components/p-fda56efb.entry.js +0 -5
  241. package/dist/shift-components/shift-components.esm.js +0 -5
  242. package/dist/types/components/components/loading-spinner.d.ts +0 -4
  243. package/dist/types/components/form-elements/form-dialog.d.ts +0 -13
  244. package/dist/types/components/form-elements/form-input.d.ts +0 -28
  245. package/dist/types/components/form-elements/form-select.d.ts +0 -39
  246. package/dist/types/components/form-elements/form-shadow-input.d.ts +0 -9
  247. package/dist/types/components/form-elements/form-structure-error.d.ts +0 -8
  248. package/dist/types/components/form-elements/form-structure.d.ts +0 -23
  249. package/dist/types/components/form-elements/form-submit.d.ts +0 -12
  250. package/dist/types/components/form-elements/form-text-area.d.ts +0 -24
  251. package/dist/types/components/forms/contact-us/element-mapper.d.ts +0 -3
  252. package/dist/types/components/forms/contact-us/validations.d.ts +0 -26
  253. package/dist/types/components/forms/contact-us-form.d.ts +0 -32
  254. package/dist/types/components/forms/service-booking/element-mapper.d.ts +0 -3
  255. package/dist/types/components/forms/service-booking/validations.d.ts +0 -26
  256. package/dist/types/components/forms/service-booking-form.d.ts +0 -32
  257. package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +0 -31
  258. package/dist/types/components/part-lookup/distributor-lookup.d.ts +0 -32
  259. package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +0 -33
  260. package/dist/types/components/part-lookup/part-lookup.d.ts +0 -43
  261. package/dist/types/components/vehicle-lookup/components/CardsContainer.d.ts +0 -10
  262. package/dist/types/components/vehicle-lookup/components/Loading.d.ts +0 -5
  263. package/dist/types/components/vehicle-lookup/components/SSCTable.d.ts +0 -8
  264. package/dist/types/components/vehicle-lookup/components/StatusCard.d.ts +0 -12
  265. package/dist/types/components/vehicle-lookup/dynamic-claim.d.ts +0 -55
  266. package/dist/types/components/vehicle-lookup/dynamic-redeem.d.ts +0 -39
  267. package/dist/types/components/vehicle-lookup/paint-thickness.d.ts +0 -35
  268. package/dist/types/components/vehicle-lookup/service-history.d.ts +0 -30
  269. package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +0 -35
  270. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +0 -53
  271. package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +0 -29
  272. package/dist/types/components/vehicle-lookup/warranty-details.d.ts +0 -57
  273. package/dist/types/components.d.ts +0 -760
  274. package/dist/types/global/api/partInformation.d.ts +0 -19
  275. package/dist/types/global/api/urls.d.ts +0 -2
  276. package/dist/types/global/api/vehicleInformation.d.ts +0 -33
  277. package/dist/types/global/lib/cn.d.ts +0 -2
  278. package/dist/types/global/lib/form-hook.d.ts +0 -47
  279. package/dist/types/global/lib/general.d.ts +0 -1
  280. package/dist/types/global/lib/get-local-language.d.ts +0 -2
  281. package/dist/types/global/lib/image-expansion.d.ts +0 -9
  282. package/dist/types/global/lib/middleware.d.ts +0 -0
  283. package/dist/types/global/lib/recaptcha.d.ts +0 -16
  284. package/dist/types/global/lib/utils.d.ts +0 -1
  285. package/dist/types/global/lib/validate-form-structure.d.ts +0 -3
  286. package/dist/types/global/lib/validate-vin.d.ts +0 -1
  287. package/dist/types/global/types/components.d.ts +0 -7
  288. package/dist/types/global/types/forms.d.ts +0 -63
  289. package/dist/types/global/types/general.d.ts +0 -23
  290. package/dist/types/global/types/locales/error-schema.d.ts +0 -23
  291. package/dist/types/global/types/locales/forms/contact-us-schema.d.ts +0 -37
  292. package/dist/types/global/types/locales/forms/index.d.ts +0 -45
  293. package/dist/types/global/types/locales/general.d.ts +0 -11
  294. package/dist/types/global/types/locales/index.d.ts +0 -380
  295. package/dist/types/global/types/locales/inquiryTypes.d.ts +0 -19
  296. package/dist/types/global/types/locales/part-lookup/dead-stock-schema.d.ts +0 -9
  297. package/dist/types/global/types/locales/part-lookup/distributor-schema.d.ts +0 -31
  298. package/dist/types/global/types/locales/part-lookup/index.d.ts +0 -79
  299. package/dist/types/global/types/locales/part-lookup/manufacturer-schema.d.ts +0 -33
  300. package/dist/types/global/types/locales/vehicle-lookup/accessories-schema.d.ts +0 -15
  301. package/dist/types/global/types/locales/vehicle-lookup/dynamic-claim-schema.d.ts +0 -31
  302. package/dist/types/global/types/locales/vehicle-lookup/dynamic-redeem-schema.d.ts +0 -27
  303. package/dist/types/global/types/locales/vehicle-lookup/index.d.ts +0 -171
  304. package/dist/types/global/types/locales/vehicle-lookup/paint-thickness-schema.d.ts +0 -17
  305. package/dist/types/global/types/locales/vehicle-lookup/service-history-schema.d.ts +0 -19
  306. package/dist/types/global/types/locales/vehicle-lookup/specification-schema.d.ts +0 -17
  307. package/dist/types/global/types/locales/vehicle-lookup/warranty-schema.d.ts +0 -35
  308. package/dist/types/global/types/part-information.d.ts +0 -53
  309. package/dist/types/global/types/vehicle-information.d.ts +0 -167
  310. package/dist/types/index.d.ts +0 -10
  311. package/dist/types/stencil-public-runtime.d.ts +0 -1680
  312. package/loader/cdn.js +0 -5
  313. package/loader/index.cjs.js +0 -5
  314. package/loader/index.d.ts +0 -24
  315. package/loader/index.es2017.js +0 -5
  316. package/loader/index.js +0 -6
  317. package/loader/package.json +0 -11
@@ -1,280 +0,0 @@
1
- /*!
2
- * Built by ShiftSoftware
3
- * Copyright (c)
4
- */
5
- import { Host, h } from "@stencil/core";
6
- import cn from "../../global/lib/cn";
7
- import { FormHook } from "../../global/lib/form-hook";
8
- import { contactUsSchema } from "./contact-us/validations";
9
- import themes from "./contact-us/themes.json";
10
- import { contactUsElements } from "./contact-us/element-mapper";
11
- export class ContactUsForm {
12
- constructor() {
13
- this.recaptchaWidget = null;
14
- this.form = new FormHook(this, contactUsSchema);
15
- this.theme = undefined;
16
- this.baseUrl = undefined;
17
- this.brandId = undefined;
18
- this.queryString = '';
19
- this.language = 'en';
20
- this.structure = '["submit.Submit"]';
21
- this.recaptchaKey = '6Lehq6IpAAAAAETTDS2Zh60nHIT1a8oVkRtJ2WsA';
22
- this.errorCallback = undefined;
23
- this.successCallback = undefined;
24
- this.loadingChanges = undefined;
25
- this.isLoading = undefined;
26
- this.renderControl = {};
27
- this.errorMessage = undefined;
28
- }
29
- async componentDidLoad() {
30
- try {
31
- if (this.recaptchaKey) {
32
- const script = document.createElement('script');
33
- script.src = `https://www.google.com/recaptcha/api.js?render=${this.recaptchaKey}&hl=${this.language}`;
34
- script.async = true;
35
- script.defer = true;
36
- document.head.appendChild(script);
37
- }
38
- }
39
- catch (error) {
40
- console.log(error);
41
- }
42
- }
43
- async formSubmit(formValues) {
44
- try {
45
- if (this.loadingChanges)
46
- this.loadingChanges(true);
47
- const token = await grecaptcha.execute(this.recaptchaKey, { action: 'submit' });
48
- const response = await fetch(`${this.baseUrl}?${this.queryString}`, {
49
- method: 'post',
50
- body: JSON.stringify(formValues),
51
- headers: {
52
- 'Brand': this.brandId,
53
- 'Recaptcha-Token': token,
54
- 'Accept-Language': this.language,
55
- 'Content-Type': 'application/json',
56
- },
57
- });
58
- const data = await response.json();
59
- if (this.successCallback)
60
- this.successCallback(data);
61
- this.form.successAnimation();
62
- setTimeout(() => {
63
- this.form.reset();
64
- }, 1000);
65
- }
66
- catch (error) {
67
- console.error(error);
68
- if (this.errorCallback)
69
- this.errorCallback(error);
70
- if (error === null || error === void 0 ? void 0 : error.message)
71
- this.errorMessage = error.message;
72
- }
73
- finally {
74
- if (this.loadingChanges)
75
- this.loadingChanges(false);
76
- }
77
- }
78
- render() {
79
- return (h(Host, { key: '8d34c46ca889c54ad0e22accd589d6b625f395f9', class: cn({
80
- [`contact-us-${this.theme}`]: this.theme,
81
- }) }, h("form-structure", { key: '11c245be8f9025fdfad68476f79dbb2f8dbce67d', themes: themes, form: this.form, theme: this.theme, language: this.language, isLoading: this.isLoading, errorMessage: this.errorMessage, renderControl: this.renderControl, formElementMapper: contactUsElements }, h("slot", { key: '53633aaf1c1ff3c43ea7676e423d9daf736ad60e' }))));
82
- }
83
- static get is() { return "contact-us-form"; }
84
- static get originalStyleUrls() {
85
- return {
86
- "$": ["contact-us/form.css"]
87
- };
88
- }
89
- static get styleUrls() {
90
- return {
91
- "$": ["contact-us/form.css"]
92
- };
93
- }
94
- static get properties() {
95
- return {
96
- "theme": {
97
- "type": "string",
98
- "mutable": false,
99
- "complexType": {
100
- "original": "string",
101
- "resolved": "string",
102
- "references": {}
103
- },
104
- "required": false,
105
- "optional": false,
106
- "docs": {
107
- "tags": [],
108
- "text": ""
109
- },
110
- "attribute": "theme",
111
- "reflect": false
112
- },
113
- "baseUrl": {
114
- "type": "string",
115
- "mutable": false,
116
- "complexType": {
117
- "original": "string",
118
- "resolved": "string",
119
- "references": {}
120
- },
121
- "required": false,
122
- "optional": false,
123
- "docs": {
124
- "tags": [],
125
- "text": ""
126
- },
127
- "attribute": "base-url",
128
- "reflect": false
129
- },
130
- "brandId": {
131
- "type": "string",
132
- "mutable": false,
133
- "complexType": {
134
- "original": "string",
135
- "resolved": "string",
136
- "references": {}
137
- },
138
- "required": false,
139
- "optional": false,
140
- "docs": {
141
- "tags": [],
142
- "text": ""
143
- },
144
- "attribute": "brand-id",
145
- "reflect": false
146
- },
147
- "queryString": {
148
- "type": "string",
149
- "mutable": false,
150
- "complexType": {
151
- "original": "string",
152
- "resolved": "string",
153
- "references": {}
154
- },
155
- "required": false,
156
- "optional": false,
157
- "docs": {
158
- "tags": [],
159
- "text": ""
160
- },
161
- "attribute": "query-string",
162
- "reflect": false,
163
- "defaultValue": "''"
164
- },
165
- "language": {
166
- "type": "string",
167
- "mutable": false,
168
- "complexType": {
169
- "original": "LanguageKeys",
170
- "resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
171
- "references": {
172
- "LanguageKeys": {
173
- "location": "import",
174
- "path": "~types/locales",
175
- "id": "src/global/types/locales/index.ts::LanguageKeys"
176
- }
177
- }
178
- },
179
- "required": false,
180
- "optional": false,
181
- "docs": {
182
- "tags": [],
183
- "text": ""
184
- },
185
- "attribute": "language",
186
- "reflect": false,
187
- "defaultValue": "'en'"
188
- },
189
- "structure": {
190
- "type": "string",
191
- "mutable": false,
192
- "complexType": {
193
- "original": "string",
194
- "resolved": "string",
195
- "references": {}
196
- },
197
- "required": false,
198
- "optional": false,
199
- "docs": {
200
- "tags": [],
201
- "text": ""
202
- },
203
- "attribute": "structure",
204
- "reflect": false,
205
- "defaultValue": "'[\"submit.Submit\"]'"
206
- },
207
- "recaptchaKey": {
208
- "type": "string",
209
- "mutable": false,
210
- "complexType": {
211
- "original": "string",
212
- "resolved": "string",
213
- "references": {}
214
- },
215
- "required": false,
216
- "optional": false,
217
- "docs": {
218
- "tags": [],
219
- "text": ""
220
- },
221
- "attribute": "recaptcha-key",
222
- "reflect": false,
223
- "defaultValue": "'6Lehq6IpAAAAAETTDS2Zh60nHIT1a8oVkRtJ2WsA'"
224
- },
225
- "errorCallback": {
226
- "type": "unknown",
227
- "mutable": false,
228
- "complexType": {
229
- "original": "(error: any) => void",
230
- "resolved": "(error: any) => void",
231
- "references": {}
232
- },
233
- "required": false,
234
- "optional": false,
235
- "docs": {
236
- "tags": [],
237
- "text": ""
238
- }
239
- },
240
- "successCallback": {
241
- "type": "unknown",
242
- "mutable": false,
243
- "complexType": {
244
- "original": "(values: any) => void",
245
- "resolved": "(values: any) => void",
246
- "references": {}
247
- },
248
- "required": false,
249
- "optional": false,
250
- "docs": {
251
- "tags": [],
252
- "text": ""
253
- }
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
- };
271
- }
272
- static get states() {
273
- return {
274
- "isLoading": {},
275
- "renderControl": {},
276
- "errorMessage": {}
277
- };
278
- }
279
- static get elementRef() { return "el"; }
280
- }
@@ -1,87 +0,0 @@
1
- /*!
2
- * Built by ShiftSoftware
3
- * Copyright (c)
4
- */
5
- import { h } from "@stencil/core";
6
- import { phoneValidator } from "./validations";
7
- import { getLocaleLanguage } from "../../../global/lib/get-local-language";
8
- import { CITY_ENDPOINT } from "../../../global/api/urls";
9
- export const contactUsElements = {
10
- submit: formContext => {
11
- return h("form-submit", Object.assign({}, formContext));
12
- },
13
- name: ({ form, language, structureElement }) => {
14
- const { disabled, errorMessage, isError, isRequired, name } = form.getInputState('name');
15
- const inputParams = {
16
- name,
17
- disabled,
18
- type: 'text',
19
- placeholder: 'fullName',
20
- };
21
- return (h("form-input", { form: form, label: "fullName", isError: isError, language: language, isRequired: isRequired, inputParams: inputParams, formLocaleName: "contactUs", errorMessage: errorMessage, wrapperId: structureElement.id, wrapperClass: structureElement.class }));
22
- },
23
- email: ({ form, language, structureElement }) => {
24
- const { disabled, errorMessage, isError, isRequired, name } = form.getInputState('email');
25
- const inputParams = {
26
- name,
27
- disabled,
28
- type: 'email',
29
- placeholder: 'emailAddress',
30
- };
31
- return (h("form-input", { form: form, isError: isError, language: language, label: "emailAddress", isRequired: isRequired, inputParams: inputParams, formLocaleName: "contactUs", errorMessage: errorMessage, wrapperId: structureElement.id, wrapperClass: structureElement.class }));
32
- },
33
- phone: ({ form, language, structureElement }) => {
34
- const { disabled, errorMessage, isError, isRequired, name } = form.getInputState('phone');
35
- const inputParams = {
36
- name,
37
- disabled,
38
- type: 'text',
39
- placeholder: 'phoneNumber',
40
- defaultValue: phoneValidator.default,
41
- onInput: (event) => {
42
- const target = event.target;
43
- phoneValidator.reset();
44
- target.value = phoneValidator.input(target.value);
45
- },
46
- };
47
- return (h("form-input", { form: form, numberDirection: true, isError: isError, language: language, label: "phoneNumber", isRequired: isRequired, inputParams: inputParams, formLocaleName: "contactUs", errorMessage: errorMessage, wrapperId: structureElement.id, wrapperClass: structureElement.class }));
48
- },
49
- message: ({ form, language, structureElement }) => {
50
- const { disabled, errorMessage, isError, isRequired, name } = form.getInputState('message');
51
- const inputParams = {
52
- name,
53
- disabled,
54
- type: 'email',
55
- placeholder: 'leaveUsMessage',
56
- };
57
- return (h("form-text-area", { form: form, isError: isError, language: language, label: "writeAMessage", isRequired: isRequired, inputParams: inputParams, formLocaleName: "contactUs", errorMessage: errorMessage, wrapperId: structureElement.id, wrapperClass: structureElement.class }));
58
- },
59
- generalTicketType: ({ form, language, structureElement }) => {
60
- const { disabled, errorMessage, isError, isRequired, name } = form.getInputState('generalTicketType');
61
- const fetcher = async (language, _) => {
62
- const ticketTypes = (await getLocaleLanguage(language)).generalTicketTypes;
63
- const generalInquiryTypes = [
64
- {
65
- value: 'GeneralInquiry',
66
- label: ticketTypes.GeneralInquiry,
67
- },
68
- {
69
- value: 'Complaint',
70
- label: ticketTypes.Complaint,
71
- },
72
- ];
73
- return generalInquiryTypes;
74
- };
75
- return (h("form-select", { name: name, form: form, fetcher: fetcher, isError: isError, disabled: disabled, language: language, label: "inquiryType", isRequired: isRequired, formLocaleName: "contactUs", errorMessage: errorMessage, placeholder: "selectInquiryType", wrapperId: structureElement.id, wrapperClass: structureElement.class }));
76
- },
77
- cityId: ({ form, language, structureElement }) => {
78
- const { disabled, errorMessage, isError, isRequired, name } = form.getInputState('cityId');
79
- const fetcher = async (language, signal) => {
80
- const response = await fetch(CITY_ENDPOINT, { signal, headers: { 'Accept-Language': language } });
81
- const arrayRes = (await response.json());
82
- const selectItems = arrayRes.map(item => ({ label: item.Name, value: item.ID }));
83
- return selectItems;
84
- };
85
- return (h("form-select", { name: name, form: form, label: "city", fetcher: fetcher, isError: isError, disabled: disabled, language: language, isRequired: isRequired, placeholder: "selectCity", formLocaleName: "contactUs", errorMessage: errorMessage, wrapperId: structureElement.id, wrapperClass: structureElement.class }));
86
- },
87
- };
@@ -1 +0,0 @@
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}
@@ -1,19 +0,0 @@
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
- });
@@ -1,280 +0,0 @@
1
- /*!
2
- * Built by ShiftSoftware
3
- * Copyright (c)
4
- */
5
- import { Host, h } from "@stencil/core";
6
- import cn from "../../global/lib/cn";
7
- import { FormHook } from "../../global/lib/form-hook";
8
- import { contactUsSchema } from "./service-booking/validations";
9
- import themes from "./service-booking/themes.json";
10
- import { contactUsElements } from "./service-booking/element-mapper";
11
- export class ContactUsForm {
12
- constructor() {
13
- this.recaptchaWidget = null;
14
- this.form = new FormHook(this, contactUsSchema);
15
- this.theme = undefined;
16
- this.baseUrl = undefined;
17
- this.brandId = undefined;
18
- this.queryString = '';
19
- this.language = 'en';
20
- this.structure = '["submit.Submit"]';
21
- this.recaptchaKey = '6Lehq6IpAAAAAETTDS2Zh60nHIT1a8oVkRtJ2WsA';
22
- this.errorCallback = undefined;
23
- this.successCallback = undefined;
24
- this.loadingChanges = undefined;
25
- this.isLoading = undefined;
26
- this.renderControl = {};
27
- this.errorMessage = undefined;
28
- }
29
- async componentDidLoad() {
30
- try {
31
- if (this.recaptchaKey) {
32
- const script = document.createElement('script');
33
- script.src = `https://www.google.com/recaptcha/api.js?render=${this.recaptchaKey}&hl=${this.language}`;
34
- script.async = true;
35
- script.defer = true;
36
- document.head.appendChild(script);
37
- }
38
- }
39
- catch (error) {
40
- console.log(error);
41
- }
42
- }
43
- async formSubmit(formValues) {
44
- try {
45
- if (this.loadingChanges)
46
- this.loadingChanges(true);
47
- const token = await grecaptcha.execute(this.recaptchaKey, { action: 'submit' });
48
- const response = await fetch(`${this.baseUrl}?${this.queryString}`, {
49
- method: 'post',
50
- body: JSON.stringify(formValues),
51
- headers: {
52
- 'Brand': this.brandId,
53
- 'Recaptcha-Token': token,
54
- 'Accept-Language': this.language,
55
- 'Content-Type': 'application/json',
56
- },
57
- });
58
- const data = await response.json();
59
- if (this.successCallback)
60
- this.successCallback(data);
61
- this.form.successAnimation();
62
- setTimeout(() => {
63
- this.form.reset();
64
- }, 1000);
65
- }
66
- catch (error) {
67
- console.error(error);
68
- if (this.errorCallback)
69
- this.errorCallback(error);
70
- if (error === null || error === void 0 ? void 0 : error.message)
71
- this.errorMessage = error.message;
72
- }
73
- finally {
74
- if (this.loadingChanges)
75
- this.loadingChanges(false);
76
- }
77
- }
78
- render() {
79
- return (h(Host, { key: 'ee8eaff020442e15644acebfd33adad68274ff6d', class: cn({
80
- [`contact-us-${this.theme}`]: this.theme,
81
- }) }, h("form-structure", { key: '512f20adf3e9297ccf3016651438d65d28b80223', themes: themes, form: this.form, theme: this.theme, language: this.language, isLoading: this.isLoading, errorMessage: this.errorMessage, renderControl: this.renderControl, formElementMapper: contactUsElements }, h("slot", { key: '05fe5cf7fefe1db62206f639c49712b215e75e03' }))));
82
- }
83
- static get is() { return "service-booking-form"; }
84
- static get originalStyleUrls() {
85
- return {
86
- "$": ["service-booking/form.css"]
87
- };
88
- }
89
- static get styleUrls() {
90
- return {
91
- "$": ["service-booking/form.css"]
92
- };
93
- }
94
- static get properties() {
95
- return {
96
- "theme": {
97
- "type": "string",
98
- "mutable": false,
99
- "complexType": {
100
- "original": "string",
101
- "resolved": "string",
102
- "references": {}
103
- },
104
- "required": false,
105
- "optional": false,
106
- "docs": {
107
- "tags": [],
108
- "text": ""
109
- },
110
- "attribute": "theme",
111
- "reflect": false
112
- },
113
- "baseUrl": {
114
- "type": "string",
115
- "mutable": false,
116
- "complexType": {
117
- "original": "string",
118
- "resolved": "string",
119
- "references": {}
120
- },
121
- "required": false,
122
- "optional": false,
123
- "docs": {
124
- "tags": [],
125
- "text": ""
126
- },
127
- "attribute": "base-url",
128
- "reflect": false
129
- },
130
- "brandId": {
131
- "type": "string",
132
- "mutable": false,
133
- "complexType": {
134
- "original": "string",
135
- "resolved": "string",
136
- "references": {}
137
- },
138
- "required": false,
139
- "optional": false,
140
- "docs": {
141
- "tags": [],
142
- "text": ""
143
- },
144
- "attribute": "brand-id",
145
- "reflect": false
146
- },
147
- "queryString": {
148
- "type": "string",
149
- "mutable": false,
150
- "complexType": {
151
- "original": "string",
152
- "resolved": "string",
153
- "references": {}
154
- },
155
- "required": false,
156
- "optional": false,
157
- "docs": {
158
- "tags": [],
159
- "text": ""
160
- },
161
- "attribute": "query-string",
162
- "reflect": false,
163
- "defaultValue": "''"
164
- },
165
- "language": {
166
- "type": "string",
167
- "mutable": false,
168
- "complexType": {
169
- "original": "LanguageKeys",
170
- "resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
171
- "references": {
172
- "LanguageKeys": {
173
- "location": "import",
174
- "path": "~types/locales",
175
- "id": "src/global/types/locales/index.ts::LanguageKeys"
176
- }
177
- }
178
- },
179
- "required": false,
180
- "optional": false,
181
- "docs": {
182
- "tags": [],
183
- "text": ""
184
- },
185
- "attribute": "language",
186
- "reflect": false,
187
- "defaultValue": "'en'"
188
- },
189
- "structure": {
190
- "type": "string",
191
- "mutable": false,
192
- "complexType": {
193
- "original": "string",
194
- "resolved": "string",
195
- "references": {}
196
- },
197
- "required": false,
198
- "optional": false,
199
- "docs": {
200
- "tags": [],
201
- "text": ""
202
- },
203
- "attribute": "structure",
204
- "reflect": false,
205
- "defaultValue": "'[\"submit.Submit\"]'"
206
- },
207
- "recaptchaKey": {
208
- "type": "string",
209
- "mutable": false,
210
- "complexType": {
211
- "original": "string",
212
- "resolved": "string",
213
- "references": {}
214
- },
215
- "required": false,
216
- "optional": false,
217
- "docs": {
218
- "tags": [],
219
- "text": ""
220
- },
221
- "attribute": "recaptcha-key",
222
- "reflect": false,
223
- "defaultValue": "'6Lehq6IpAAAAAETTDS2Zh60nHIT1a8oVkRtJ2WsA'"
224
- },
225
- "errorCallback": {
226
- "type": "unknown",
227
- "mutable": false,
228
- "complexType": {
229
- "original": "(error: any) => void",
230
- "resolved": "(error: any) => void",
231
- "references": {}
232
- },
233
- "required": false,
234
- "optional": false,
235
- "docs": {
236
- "tags": [],
237
- "text": ""
238
- }
239
- },
240
- "successCallback": {
241
- "type": "unknown",
242
- "mutable": false,
243
- "complexType": {
244
- "original": "(values: any) => void",
245
- "resolved": "(values: any) => void",
246
- "references": {}
247
- },
248
- "required": false,
249
- "optional": false,
250
- "docs": {
251
- "tags": [],
252
- "text": ""
253
- }
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
- };
271
- }
272
- static get states() {
273
- return {
274
- "isLoading": {},
275
- "renderControl": {},
276
- "errorMessage": {}
277
- };
278
- }
279
- static get elementRef() { return "el"; }
280
- }