@wix/himalaya-cli 0.1865.0 → 0.1867.0

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 (393) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/copy.generated.d.ts +17 -7
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +1 -1
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +55 -11
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +55 -11
  5. package/dist/browser-plane/assets.json +5 -5
  6. package/dist/browser-plane/preview-deferred/{a60c092217d4c21970ff66e8b63221007e49d0792eb9d5fe66238f8efbce884a.bin → 4a8928bb82fc0db03269e14445bfc09155ceb3cde1f268162ac70b7ceb097b1f.bin} +1 -1
  7. package/dist/browser-plane/sw.js +9 -9
  8. package/dist/cli.mjs +55 -42
  9. package/dist/preview-assets.generated.bin +0 -0
  10. package/guides/designing-himi-screens.md +1 -0
  11. package/guides/one-app-to-himi-app.md +1 -0
  12. package/package.json +2 -2
  13. package/templates/bare-fashion/tier5-src/_shared/himi-account.ts +14 -1
  14. package/templates/beauty-salon/dev/index.ts +122 -8
  15. package/templates/beauty-salon/l10n/ar.json +5 -0
  16. package/templates/beauty-salon/l10n/cs.json +5 -0
  17. package/templates/beauty-salon/l10n/da.json +5 -0
  18. package/templates/beauty-salon/l10n/de.json +5 -0
  19. package/templates/beauty-salon/l10n/el.json +5 -0
  20. package/templates/beauty-salon/l10n/en.json +1 -1
  21. package/templates/beauty-salon/l10n/es.json +5 -0
  22. package/templates/beauty-salon/l10n/fi.json +5 -0
  23. package/templates/beauty-salon/l10n/fr.json +5 -0
  24. package/templates/beauty-salon/l10n/he.json +4 -0
  25. package/templates/beauty-salon/l10n/hu.json +5 -0
  26. package/templates/beauty-salon/l10n/id.json +5 -0
  27. package/templates/beauty-salon/l10n/it.json +5 -0
  28. package/templates/beauty-salon/l10n/ja.json +5 -0
  29. package/templates/beauty-salon/l10n/ko.json +5 -0
  30. package/templates/beauty-salon/l10n/lt.json +5 -0
  31. package/templates/beauty-salon/l10n/nl.json +5 -0
  32. package/templates/beauty-salon/l10n/no.json +5 -0
  33. package/templates/beauty-salon/l10n/pl.json +5 -0
  34. package/templates/beauty-salon/l10n/pt.json +5 -0
  35. package/templates/beauty-salon/l10n/ru.json +5 -0
  36. package/templates/beauty-salon/l10n/sv.json +5 -0
  37. package/templates/beauty-salon/l10n/th.json +5 -0
  38. package/templates/beauty-salon/l10n/tr.json +5 -0
  39. package/templates/beauty-salon/l10n/uk.json +5 -0
  40. package/templates/beauty-salon/l10n/vi.json +5 -0
  41. package/templates/beauty-salon/l10n/zh.json +5 -0
  42. package/templates/beauty-salon/tier5-src/_shared/himi-account.ts +14 -1
  43. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +192 -28
  44. package/templates/beauty-salon-owner/tier5-src/_shared/himi-account.ts +14 -1
  45. package/templates/branded-lite/dev/index.ts +732 -583
  46. package/templates/branded-lite/l10n/ar.json +5 -0
  47. package/templates/branded-lite/l10n/cs.json +5 -0
  48. package/templates/branded-lite/l10n/da.json +5 -0
  49. package/templates/branded-lite/l10n/de.json +5 -0
  50. package/templates/branded-lite/l10n/el.json +5 -0
  51. package/templates/branded-lite/l10n/en.json +2 -2
  52. package/templates/branded-lite/l10n/es.json +5 -0
  53. package/templates/branded-lite/l10n/fi.json +5 -0
  54. package/templates/branded-lite/l10n/fr.json +5 -0
  55. package/templates/branded-lite/l10n/he.json +4 -0
  56. package/templates/branded-lite/l10n/hu.json +5 -0
  57. package/templates/branded-lite/l10n/id.json +5 -0
  58. package/templates/branded-lite/l10n/it.json +5 -0
  59. package/templates/branded-lite/l10n/ja.json +5 -0
  60. package/templates/branded-lite/l10n/ko.json +5 -0
  61. package/templates/branded-lite/l10n/lt.json +5 -0
  62. package/templates/branded-lite/l10n/nl.json +5 -0
  63. package/templates/branded-lite/l10n/no.json +5 -0
  64. package/templates/branded-lite/l10n/pl.json +5 -0
  65. package/templates/branded-lite/l10n/pt.json +5 -0
  66. package/templates/branded-lite/l10n/ru.json +5 -0
  67. package/templates/branded-lite/l10n/sv.json +5 -0
  68. package/templates/branded-lite/l10n/th.json +5 -0
  69. package/templates/branded-lite/l10n/tr.json +5 -0
  70. package/templates/branded-lite/l10n/uk.json +5 -0
  71. package/templates/branded-lite/l10n/vi.json +5 -0
  72. package/templates/branded-lite/l10n/zh.json +5 -0
  73. package/templates/branded-lite/recipes/galleries-collage.json +379 -0
  74. package/templates/branded-lite/tier5-src/_shared/business-chat-presenter.ts +11 -0
  75. package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +61 -13
  76. package/templates/branded-lite/tier5-src/_shared/himi-account.ts +14 -1
  77. package/templates/branded-lite/tier5-src/business-chat/index.ts +20 -6
  78. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +192 -28
  79. package/templates/brandy/tier5-src/_shared/himi-account.ts +14 -1
  80. package/templates/brandy/tier5-src/himi-store-account/index.ts +192 -28
  81. package/templates/community-club/dev/index.ts +122 -8
  82. package/templates/community-club/l10n/ar.json +10 -0
  83. package/templates/community-club/l10n/cs.json +10 -0
  84. package/templates/community-club/l10n/da.json +10 -0
  85. package/templates/community-club/l10n/de.json +10 -0
  86. package/templates/community-club/l10n/el.json +10 -0
  87. package/templates/community-club/l10n/en.json +1 -1
  88. package/templates/community-club/l10n/es.json +10 -0
  89. package/templates/community-club/l10n/fi.json +10 -0
  90. package/templates/community-club/l10n/fr.json +10 -0
  91. package/templates/community-club/l10n/he.json +8 -0
  92. package/templates/community-club/l10n/hu.json +10 -0
  93. package/templates/community-club/l10n/id.json +10 -0
  94. package/templates/community-club/l10n/it.json +10 -0
  95. package/templates/community-club/l10n/ja.json +10 -0
  96. package/templates/community-club/l10n/ko.json +10 -0
  97. package/templates/community-club/l10n/lt.json +10 -0
  98. package/templates/community-club/l10n/nl.json +10 -0
  99. package/templates/community-club/l10n/no.json +10 -0
  100. package/templates/community-club/l10n/pl.json +10 -0
  101. package/templates/community-club/l10n/pt.json +10 -0
  102. package/templates/community-club/l10n/ru.json +10 -0
  103. package/templates/community-club/l10n/sv.json +10 -0
  104. package/templates/community-club/l10n/th.json +10 -0
  105. package/templates/community-club/l10n/tr.json +10 -0
  106. package/templates/community-club/l10n/uk.json +10 -0
  107. package/templates/community-club/l10n/vi.json +10 -0
  108. package/templates/community-club/l10n/zh.json +10 -0
  109. package/templates/community-club/tier5-src/_shared/himi-account.ts +14 -1
  110. package/templates/community-club/tier5-src/himi-store-account/index.ts +192 -28
  111. package/templates/community-club-owner/tier5-src/_shared/himi-account.ts +14 -1
  112. package/templates/conference/dev/index.ts +744 -595
  113. package/templates/conference/tier5-src/_shared/business-chat-presenter.ts +11 -0
  114. package/templates/conference/tier5-src/_shared/himi-account.ts +14 -1
  115. package/templates/conference/tier5-src/business-chat/index.ts +20 -6
  116. package/templates/conference/tier5-src/himi-store-account/index.ts +192 -28
  117. package/templates/events-meetups/dev/index.ts +122 -8
  118. package/templates/events-meetups/l10n/ar.json +10 -0
  119. package/templates/events-meetups/l10n/cs.json +10 -0
  120. package/templates/events-meetups/l10n/da.json +10 -0
  121. package/templates/events-meetups/l10n/de.json +10 -0
  122. package/templates/events-meetups/l10n/el.json +10 -0
  123. package/templates/events-meetups/l10n/en.json +1 -1
  124. package/templates/events-meetups/l10n/es.json +10 -0
  125. package/templates/events-meetups/l10n/fi.json +10 -0
  126. package/templates/events-meetups/l10n/fr.json +10 -0
  127. package/templates/events-meetups/l10n/he.json +8 -0
  128. package/templates/events-meetups/l10n/hu.json +10 -0
  129. package/templates/events-meetups/l10n/id.json +10 -0
  130. package/templates/events-meetups/l10n/it.json +10 -0
  131. package/templates/events-meetups/l10n/ja.json +10 -0
  132. package/templates/events-meetups/l10n/ko.json +10 -0
  133. package/templates/events-meetups/l10n/lt.json +10 -0
  134. package/templates/events-meetups/l10n/nl.json +10 -0
  135. package/templates/events-meetups/l10n/no.json +10 -0
  136. package/templates/events-meetups/l10n/pl.json +10 -0
  137. package/templates/events-meetups/l10n/pt.json +10 -0
  138. package/templates/events-meetups/l10n/ru.json +10 -0
  139. package/templates/events-meetups/l10n/sv.json +10 -0
  140. package/templates/events-meetups/l10n/th.json +10 -0
  141. package/templates/events-meetups/l10n/tr.json +10 -0
  142. package/templates/events-meetups/l10n/uk.json +10 -0
  143. package/templates/events-meetups/l10n/vi.json +10 -0
  144. package/templates/events-meetups/l10n/zh.json +10 -0
  145. package/templates/events-meetups/tier5-src/_shared/himi-account.ts +14 -1
  146. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +192 -28
  147. package/templates/events-meetups-owner/tier5-src/_shared/himi-account.ts +14 -1
  148. package/templates/fitness-gym/dev/index.ts +743 -507
  149. package/templates/fitness-gym/tier5-src/_shared/business-chat-presenter.ts +11 -0
  150. package/templates/fitness-gym/tier5-src/_shared/himi-account.ts +14 -1
  151. package/templates/fitness-gym/tier5-src/business-chat/index.ts +20 -6
  152. package/templates/fitness-gym/tier5-src/himi-booking-account/index.ts +14 -3
  153. package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +192 -28
  154. package/templates/gym-fitness/dev/index.ts +122 -8
  155. package/templates/gym-fitness/l10n/ar.json +5 -0
  156. package/templates/gym-fitness/l10n/cs.json +5 -0
  157. package/templates/gym-fitness/l10n/da.json +5 -0
  158. package/templates/gym-fitness/l10n/de.json +5 -0
  159. package/templates/gym-fitness/l10n/el.json +5 -0
  160. package/templates/gym-fitness/l10n/en.json +1 -1
  161. package/templates/gym-fitness/l10n/es.json +5 -0
  162. package/templates/gym-fitness/l10n/fi.json +5 -0
  163. package/templates/gym-fitness/l10n/fr.json +5 -0
  164. package/templates/gym-fitness/l10n/he.json +4 -0
  165. package/templates/gym-fitness/l10n/hu.json +5 -0
  166. package/templates/gym-fitness/l10n/id.json +5 -0
  167. package/templates/gym-fitness/l10n/it.json +5 -0
  168. package/templates/gym-fitness/l10n/ja.json +5 -0
  169. package/templates/gym-fitness/l10n/ko.json +5 -0
  170. package/templates/gym-fitness/l10n/lt.json +5 -0
  171. package/templates/gym-fitness/l10n/nl.json +5 -0
  172. package/templates/gym-fitness/l10n/no.json +5 -0
  173. package/templates/gym-fitness/l10n/pl.json +5 -0
  174. package/templates/gym-fitness/l10n/pt.json +5 -0
  175. package/templates/gym-fitness/l10n/ru.json +5 -0
  176. package/templates/gym-fitness/l10n/sv.json +5 -0
  177. package/templates/gym-fitness/l10n/th.json +5 -0
  178. package/templates/gym-fitness/l10n/tr.json +5 -0
  179. package/templates/gym-fitness/l10n/uk.json +5 -0
  180. package/templates/gym-fitness/l10n/vi.json +5 -0
  181. package/templates/gym-fitness/l10n/zh.json +5 -0
  182. package/templates/gym-fitness/tier5-src/_shared/himi-account.ts +14 -1
  183. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +192 -28
  184. package/templates/gym-fitness-owner/tier5-src/_shared/himi-account.ts +14 -1
  185. package/templates/medical-services/dev/index.ts +747 -595
  186. package/templates/medical-services/tier5-src/_shared/business-chat-presenter.ts +11 -0
  187. package/templates/medical-services/tier5-src/_shared/himi-account.ts +14 -1
  188. package/templates/medical-services/tier5-src/business-chat/index.ts +20 -6
  189. package/templates/medical-services/tier5-src/himi-booking-account/index.ts +14 -3
  190. package/templates/medical-services/tier5-src/himi-store-account/index.ts +192 -28
  191. package/templates/nonprofit-cause/dev/index.ts +122 -8
  192. package/templates/nonprofit-cause/l10n/ar.json +10 -0
  193. package/templates/nonprofit-cause/l10n/cs.json +10 -0
  194. package/templates/nonprofit-cause/l10n/da.json +10 -0
  195. package/templates/nonprofit-cause/l10n/de.json +10 -0
  196. package/templates/nonprofit-cause/l10n/el.json +10 -0
  197. package/templates/nonprofit-cause/l10n/en.json +1 -1
  198. package/templates/nonprofit-cause/l10n/es.json +10 -0
  199. package/templates/nonprofit-cause/l10n/fi.json +10 -0
  200. package/templates/nonprofit-cause/l10n/fr.json +10 -0
  201. package/templates/nonprofit-cause/l10n/he.json +8 -0
  202. package/templates/nonprofit-cause/l10n/hu.json +10 -0
  203. package/templates/nonprofit-cause/l10n/id.json +10 -0
  204. package/templates/nonprofit-cause/l10n/it.json +10 -0
  205. package/templates/nonprofit-cause/l10n/ja.json +10 -0
  206. package/templates/nonprofit-cause/l10n/ko.json +10 -0
  207. package/templates/nonprofit-cause/l10n/lt.json +10 -0
  208. package/templates/nonprofit-cause/l10n/nl.json +10 -0
  209. package/templates/nonprofit-cause/l10n/no.json +10 -0
  210. package/templates/nonprofit-cause/l10n/pl.json +10 -0
  211. package/templates/nonprofit-cause/l10n/pt.json +10 -0
  212. package/templates/nonprofit-cause/l10n/ru.json +10 -0
  213. package/templates/nonprofit-cause/l10n/sv.json +10 -0
  214. package/templates/nonprofit-cause/l10n/th.json +10 -0
  215. package/templates/nonprofit-cause/l10n/tr.json +10 -0
  216. package/templates/nonprofit-cause/l10n/uk.json +10 -0
  217. package/templates/nonprofit-cause/l10n/vi.json +10 -0
  218. package/templates/nonprofit-cause/l10n/zh.json +10 -0
  219. package/templates/nonprofit-cause/tier5-src/_shared/himi-account.ts +14 -1
  220. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +192 -28
  221. package/templates/nonprofit-cause-owner/tier5-src/_shared/himi-account.ts +14 -1
  222. package/templates/owner-lite/tier5-src/_shared/himi-account.ts +14 -1
  223. package/templates/personal-fitness-trainer/dev/index.ts +760 -602
  224. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-presenter.ts +11 -0
  225. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-account.ts +14 -1
  226. package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +20 -6
  227. package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +192 -28
  228. package/templates/podcast-creator/dev/index.ts +122 -8
  229. package/templates/podcast-creator/l10n/ar.json +10 -0
  230. package/templates/podcast-creator/l10n/cs.json +10 -0
  231. package/templates/podcast-creator/l10n/da.json +10 -0
  232. package/templates/podcast-creator/l10n/de.json +10 -0
  233. package/templates/podcast-creator/l10n/el.json +10 -0
  234. package/templates/podcast-creator/l10n/en.json +1 -1
  235. package/templates/podcast-creator/l10n/es.json +10 -0
  236. package/templates/podcast-creator/l10n/fi.json +10 -0
  237. package/templates/podcast-creator/l10n/fr.json +10 -0
  238. package/templates/podcast-creator/l10n/he.json +8 -0
  239. package/templates/podcast-creator/l10n/hu.json +10 -0
  240. package/templates/podcast-creator/l10n/id.json +10 -0
  241. package/templates/podcast-creator/l10n/it.json +10 -0
  242. package/templates/podcast-creator/l10n/ja.json +10 -0
  243. package/templates/podcast-creator/l10n/ko.json +10 -0
  244. package/templates/podcast-creator/l10n/lt.json +10 -0
  245. package/templates/podcast-creator/l10n/nl.json +10 -0
  246. package/templates/podcast-creator/l10n/no.json +10 -0
  247. package/templates/podcast-creator/l10n/pl.json +10 -0
  248. package/templates/podcast-creator/l10n/pt.json +10 -0
  249. package/templates/podcast-creator/l10n/ru.json +10 -0
  250. package/templates/podcast-creator/l10n/sv.json +10 -0
  251. package/templates/podcast-creator/l10n/th.json +10 -0
  252. package/templates/podcast-creator/l10n/tr.json +10 -0
  253. package/templates/podcast-creator/l10n/uk.json +10 -0
  254. package/templates/podcast-creator/l10n/vi.json +10 -0
  255. package/templates/podcast-creator/l10n/zh.json +10 -0
  256. package/templates/podcast-creator/tier5-src/_shared/himi-account.ts +14 -1
  257. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +192 -28
  258. package/templates/podcast-creator-owner/tier5-src/_shared/himi-account.ts +14 -1
  259. package/templates/portfolio-creative/dev/index.ts +122 -8
  260. package/templates/portfolio-creative/l10n/ar.json +10 -0
  261. package/templates/portfolio-creative/l10n/cs.json +10 -0
  262. package/templates/portfolio-creative/l10n/da.json +10 -0
  263. package/templates/portfolio-creative/l10n/de.json +10 -0
  264. package/templates/portfolio-creative/l10n/el.json +10 -0
  265. package/templates/portfolio-creative/l10n/en.json +1 -1
  266. package/templates/portfolio-creative/l10n/es.json +10 -0
  267. package/templates/portfolio-creative/l10n/fi.json +10 -0
  268. package/templates/portfolio-creative/l10n/fr.json +10 -0
  269. package/templates/portfolio-creative/l10n/he.json +8 -0
  270. package/templates/portfolio-creative/l10n/hu.json +10 -0
  271. package/templates/portfolio-creative/l10n/id.json +10 -0
  272. package/templates/portfolio-creative/l10n/it.json +10 -0
  273. package/templates/portfolio-creative/l10n/ja.json +10 -0
  274. package/templates/portfolio-creative/l10n/ko.json +10 -0
  275. package/templates/portfolio-creative/l10n/lt.json +10 -0
  276. package/templates/portfolio-creative/l10n/nl.json +10 -0
  277. package/templates/portfolio-creative/l10n/no.json +10 -0
  278. package/templates/portfolio-creative/l10n/pl.json +10 -0
  279. package/templates/portfolio-creative/l10n/pt.json +10 -0
  280. package/templates/portfolio-creative/l10n/ru.json +10 -0
  281. package/templates/portfolio-creative/l10n/sv.json +10 -0
  282. package/templates/portfolio-creative/l10n/th.json +10 -0
  283. package/templates/portfolio-creative/l10n/tr.json +10 -0
  284. package/templates/portfolio-creative/l10n/uk.json +10 -0
  285. package/templates/portfolio-creative/l10n/vi.json +10 -0
  286. package/templates/portfolio-creative/l10n/zh.json +10 -0
  287. package/templates/portfolio-creative/tier5-src/_shared/himi-account.ts +14 -1
  288. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +192 -28
  289. package/templates/portfolio-creative-owner/tier5-src/_shared/himi-account.ts +14 -1
  290. package/templates/restaurant/dev/index.ts +122 -8
  291. package/templates/restaurant/l10n/ar.json +10 -0
  292. package/templates/restaurant/l10n/cs.json +10 -0
  293. package/templates/restaurant/l10n/da.json +10 -0
  294. package/templates/restaurant/l10n/de.json +10 -0
  295. package/templates/restaurant/l10n/el.json +10 -0
  296. package/templates/restaurant/l10n/en.json +1 -1
  297. package/templates/restaurant/l10n/es.json +10 -0
  298. package/templates/restaurant/l10n/fi.json +10 -0
  299. package/templates/restaurant/l10n/fr.json +10 -0
  300. package/templates/restaurant/l10n/he.json +8 -0
  301. package/templates/restaurant/l10n/hu.json +10 -0
  302. package/templates/restaurant/l10n/id.json +10 -0
  303. package/templates/restaurant/l10n/it.json +10 -0
  304. package/templates/restaurant/l10n/ja.json +10 -0
  305. package/templates/restaurant/l10n/ko.json +10 -0
  306. package/templates/restaurant/l10n/lt.json +10 -0
  307. package/templates/restaurant/l10n/nl.json +10 -0
  308. package/templates/restaurant/l10n/no.json +10 -0
  309. package/templates/restaurant/l10n/pl.json +10 -0
  310. package/templates/restaurant/l10n/pt.json +10 -0
  311. package/templates/restaurant/l10n/ru.json +10 -0
  312. package/templates/restaurant/l10n/sv.json +10 -0
  313. package/templates/restaurant/l10n/th.json +10 -0
  314. package/templates/restaurant/l10n/tr.json +10 -0
  315. package/templates/restaurant/l10n/uk.json +10 -0
  316. package/templates/restaurant/l10n/vi.json +10 -0
  317. package/templates/restaurant/l10n/zh.json +10 -0
  318. package/templates/restaurant/tier5-src/_shared/himi-account.ts +14 -1
  319. package/templates/restaurant/tier5-src/himi-store-account/index.ts +192 -28
  320. package/templates/restaurant-owner/tier5-src/_shared/himi-account.ts +14 -1
  321. package/templates/retail-store/dev/index.ts +122 -8
  322. package/templates/retail-store/l10n/ar.json +10 -0
  323. package/templates/retail-store/l10n/cs.json +10 -0
  324. package/templates/retail-store/l10n/da.json +10 -0
  325. package/templates/retail-store/l10n/de.json +10 -0
  326. package/templates/retail-store/l10n/el.json +10 -0
  327. package/templates/retail-store/l10n/en.json +1 -1
  328. package/templates/retail-store/l10n/es.json +10 -0
  329. package/templates/retail-store/l10n/fi.json +10 -0
  330. package/templates/retail-store/l10n/fr.json +10 -0
  331. package/templates/retail-store/l10n/he.json +8 -0
  332. package/templates/retail-store/l10n/hu.json +10 -0
  333. package/templates/retail-store/l10n/id.json +10 -0
  334. package/templates/retail-store/l10n/it.json +10 -0
  335. package/templates/retail-store/l10n/ja.json +10 -0
  336. package/templates/retail-store/l10n/ko.json +10 -0
  337. package/templates/retail-store/l10n/lt.json +10 -0
  338. package/templates/retail-store/l10n/nl.json +10 -0
  339. package/templates/retail-store/l10n/no.json +10 -0
  340. package/templates/retail-store/l10n/pl.json +10 -0
  341. package/templates/retail-store/l10n/pt.json +10 -0
  342. package/templates/retail-store/l10n/ru.json +10 -0
  343. package/templates/retail-store/l10n/sv.json +10 -0
  344. package/templates/retail-store/l10n/th.json +10 -0
  345. package/templates/retail-store/l10n/tr.json +10 -0
  346. package/templates/retail-store/l10n/uk.json +10 -0
  347. package/templates/retail-store/l10n/vi.json +10 -0
  348. package/templates/retail-store/l10n/zh.json +10 -0
  349. package/templates/retail-store/tier5-src/_shared/himi-account.ts +14 -1
  350. package/templates/retail-store/tier5-src/himi-store-account/index.ts +192 -28
  351. package/templates/retail-store-owner/tier5-src/_shared/himi-account.ts +14 -1
  352. package/templates/salon-spa/dev/index.ts +744 -595
  353. package/templates/salon-spa/tier5-src/_shared/business-chat-presenter.ts +11 -0
  354. package/templates/salon-spa/tier5-src/_shared/himi-account.ts +14 -1
  355. package/templates/salon-spa/tier5-src/business-chat/index.ts +20 -6
  356. package/templates/salon-spa/tier5-src/himi-booking-account/index.ts +14 -3
  357. package/templates/salon-spa/tier5-src/himi-store-account/index.ts +192 -28
  358. package/templates/wholesale-store/dev/index.ts +751 -602
  359. package/templates/wholesale-store/tier5-src/_shared/business-chat-presenter.ts +11 -0
  360. package/templates/wholesale-store/tier5-src/_shared/himi-account.ts +14 -1
  361. package/templates/wholesale-store/tier5-src/business-chat/index.ts +20 -6
  362. package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +192 -28
  363. package/templates/yoga-studio/dev/index.ts +122 -8
  364. package/templates/yoga-studio/l10n/ar.json +5 -0
  365. package/templates/yoga-studio/l10n/cs.json +5 -0
  366. package/templates/yoga-studio/l10n/da.json +5 -0
  367. package/templates/yoga-studio/l10n/de.json +5 -0
  368. package/templates/yoga-studio/l10n/el.json +5 -0
  369. package/templates/yoga-studio/l10n/en.json +1 -1
  370. package/templates/yoga-studio/l10n/es.json +5 -0
  371. package/templates/yoga-studio/l10n/fi.json +5 -0
  372. package/templates/yoga-studio/l10n/fr.json +5 -0
  373. package/templates/yoga-studio/l10n/he.json +4 -0
  374. package/templates/yoga-studio/l10n/hu.json +5 -0
  375. package/templates/yoga-studio/l10n/id.json +5 -0
  376. package/templates/yoga-studio/l10n/it.json +5 -0
  377. package/templates/yoga-studio/l10n/ja.json +5 -0
  378. package/templates/yoga-studio/l10n/ko.json +5 -0
  379. package/templates/yoga-studio/l10n/lt.json +5 -0
  380. package/templates/yoga-studio/l10n/nl.json +5 -0
  381. package/templates/yoga-studio/l10n/no.json +5 -0
  382. package/templates/yoga-studio/l10n/pl.json +5 -0
  383. package/templates/yoga-studio/l10n/pt.json +5 -0
  384. package/templates/yoga-studio/l10n/ru.json +5 -0
  385. package/templates/yoga-studio/l10n/sv.json +5 -0
  386. package/templates/yoga-studio/l10n/th.json +5 -0
  387. package/templates/yoga-studio/l10n/tr.json +5 -0
  388. package/templates/yoga-studio/l10n/uk.json +5 -0
  389. package/templates/yoga-studio/l10n/vi.json +5 -0
  390. package/templates/yoga-studio/l10n/zh.json +5 -0
  391. package/templates/yoga-studio/tier5-src/_shared/himi-account.ts +14 -1
  392. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +192 -28
  393. package/templates/yoga-studio-owner/tier5-src/_shared/himi-account.ts +14 -1
@@ -99,21 +99,31 @@ declare const _default: {
99
99
  readonly "auth.gate.code.show": "Show code";
100
100
  readonly "auth.gate.code.hide": "Hide code";
101
101
  readonly "auth.feedback.invalid_input": "Check the highlighted fields and try again.";
102
- readonly "auth.feedback.invalid_credentials": "The email or password is incorrect. Check your details or reset your password.";
103
- readonly "auth.feedback.registration_failed": "We could not create an account. Check your details, or try signing in or resetting your password.";
104
- readonly "auth.feedback.email_in_use": "This email already has an account. Sign in instead, or reset your password.";
102
+ readonly "auth.feedback.invalid_credentials": "Wrong email or password. Try again, or reset your password.";
103
+ readonly "auth.feedback.registration_failed": "We couldn't create your account. Try again.";
104
+ readonly "auth.feedback.email_in_use": "An account with this email already exists. Sign in instead.";
105
105
  readonly "auth.feedback.invalid_code": "That code is invalid or has expired. Check the code or request a new one.";
106
106
  readonly "auth.feedback.expired_code": "That code has expired. Request a new code and try again.";
107
107
  readonly "auth.feedback.totp": "That code did not work. Enter the current code from your authenticator app.";
108
- readonly "auth.feedback.network": "We could not connect. Check your connection and try again.";
109
- readonly "auth.feedback.rate_limited": "Too many attempts. Wait a few minutes and try again.";
108
+ readonly "auth.feedback.network": "No connection. Check your internet and try again.";
109
+ readonly "auth.feedback.rate_limited": "Too many attempts. Wait a few minutes, then try again.";
110
110
  readonly "auth.feedback.delivery_failed": "We couldn't send the code. Try again, or try another way.";
111
111
  readonly "auth.feedback.sms_region_unsupported": "SMS codes aren't available in your region. Try another way.";
112
112
  readonly "auth.feedback.verification_expired": "This verification has expired. Go back and sign in again.";
113
113
  readonly "auth.feedback.unavailable": "This action is not available here. Use a supported sign-in method or open the app.";
114
114
  readonly "auth.feedback.cancelled": "Sign-in was cancelled. Try again when you are ready.";
115
- readonly "auth.feedback.verification_required": "Complete verification to continue, then try again.";
116
- readonly "auth.feedback.unknown": "We could not complete this action. Please try again.";
115
+ readonly "auth.feedback.verification_required": "We couldn't complete the security check. Try again.";
116
+ readonly "auth.feedback.unknown": "There was a technical issue on our side. Try again.";
117
+ readonly "auth.feedback.signin_failed": "We couldn't sign you in. Try again.";
118
+ readonly "auth.feedback.account_not_found": "We couldn't find an account with this email. Check it, or create an account.";
119
+ readonly "auth.feedback.pending_approval": "Your request to join was sent. You'll get an email once it's approved.";
120
+ readonly "auth.feedback.password_reset_required": "As a security precaution, we had to reset your password. Send yourself a reset link to create a new one.";
121
+ readonly "auth.feedback.offline_signIn": "You're offline. Get online to sign in.";
122
+ readonly "auth.feedback.offline_register": "You're offline. Get online to create your account.";
123
+ readonly "auth.feedback.offline_reset": "You're offline. Get online to reset your password.";
124
+ readonly "auth.feedback.reset_rate_limited": "We already sent you an email. Wait a few minutes before you ask again.";
125
+ readonly "auth.gate.pendingApproval.title": "Pending approval";
126
+ readonly "auth.validation.passwordTooShort": "Password must have at least 6 characters.";
117
127
  readonly "auth.validation.emailRequired": "Enter your email address.";
118
128
  readonly "auth.validation.emailInvalid": "Enter a valid email address.";
119
129
  readonly "auth.validation.passwordMinimum": "Use at least 8 characters for your new password.";
@@ -1,4 +1,4 @@
1
- export type AuthFailureCode = "invalid_input" | "invalid_credentials" | "registration_failed" | "email_in_use" | "invalid_code" | "expired_code" | "network" | "rate_limited" | "unavailable" | "cancelled" | "verification_required" | "delivery_failed" | "sms_region_unsupported" | "verification_expired" | "unknown";
1
+ export type AuthFailureCode = "invalid_input" | "invalid_credentials" | "registration_failed" | "email_in_use" | "invalid_code" | "expired_code" | "network" | "rate_limited" | "unavailable" | "cancelled" | "verification_required" | "delivery_failed" | "sms_region_unsupported" | "verification_expired" | "unknown" | "signin_failed" | "account_not_found" | "pending_approval" | "password_reset_required" | "reset_rate_limited";
2
2
  export type AuthOperation = "signIn" | "register" | "reset" | "verify";
3
3
  /** The English default for a catalog key (`core/runtime/l10n/auth-gate/en.json`), or "" when none. */
4
4
  export declare function authDefault(key: string): string;
@@ -224,21 +224,31 @@ var copy_generated_default = {
224
224
  "auth.gate.code.show": "Show code",
225
225
  "auth.gate.code.hide": "Hide code",
226
226
  "auth.feedback.invalid_input": "Check the highlighted fields and try again.",
227
- "auth.feedback.invalid_credentials": "The email or password is incorrect. Check your details or reset your password.",
228
- "auth.feedback.registration_failed": "We could not create an account. Check your details, or try signing in or resetting your password.",
229
- "auth.feedback.email_in_use": "This email already has an account. Sign in instead, or reset your password.",
227
+ "auth.feedback.invalid_credentials": "Wrong email or password. Try again, or reset your password.",
228
+ "auth.feedback.registration_failed": "We couldn't create your account. Try again.",
229
+ "auth.feedback.email_in_use": "An account with this email already exists. Sign in instead.",
230
230
  "auth.feedback.invalid_code": "That code is invalid or has expired. Check the code or request a new one.",
231
231
  "auth.feedback.expired_code": "That code has expired. Request a new code and try again.",
232
232
  "auth.feedback.totp": "That code did not work. Enter the current code from your authenticator app.",
233
- "auth.feedback.network": "We could not connect. Check your connection and try again.",
234
- "auth.feedback.rate_limited": "Too many attempts. Wait a few minutes and try again.",
233
+ "auth.feedback.network": "No connection. Check your internet and try again.",
234
+ "auth.feedback.rate_limited": "Too many attempts. Wait a few minutes, then try again.",
235
235
  "auth.feedback.delivery_failed": "We couldn't send the code. Try again, or try another way.",
236
236
  "auth.feedback.sms_region_unsupported": "SMS codes aren't available in your region. Try another way.",
237
237
  "auth.feedback.verification_expired": "This verification has expired. Go back and sign in again.",
238
238
  "auth.feedback.unavailable": "This action is not available here. Use a supported sign-in method or open the app.",
239
239
  "auth.feedback.cancelled": "Sign-in was cancelled. Try again when you are ready.",
240
- "auth.feedback.verification_required": "Complete verification to continue, then try again.",
241
- "auth.feedback.unknown": "We could not complete this action. Please try again.",
240
+ "auth.feedback.verification_required": "We couldn't complete the security check. Try again.",
241
+ "auth.feedback.unknown": "There was a technical issue on our side. Try again.",
242
+ "auth.feedback.signin_failed": "We couldn't sign you in. Try again.",
243
+ "auth.feedback.account_not_found": "We couldn't find an account with this email. Check it, or create an account.",
244
+ "auth.feedback.pending_approval": "Your request to join was sent. You'll get an email once it's approved.",
245
+ "auth.feedback.password_reset_required": "As a security precaution, we had to reset your password. Send yourself a reset link to create a new one.",
246
+ "auth.feedback.offline_signIn": "You're offline. Get online to sign in.",
247
+ "auth.feedback.offline_register": "You're offline. Get online to create your account.",
248
+ "auth.feedback.offline_reset": "You're offline. Get online to reset your password.",
249
+ "auth.feedback.reset_rate_limited": "We already sent you an email. Wait a few minutes before you ask again.",
250
+ "auth.gate.pendingApproval.title": "Pending approval",
251
+ "auth.validation.passwordTooShort": "Password must have at least 6 characters.",
242
252
  "auth.validation.emailRequired": "Enter your email address.",
243
253
  "auth.validation.emailInvalid": "Enter a valid email address.",
244
254
  "auth.validation.passwordMinimum": "Use at least 8 characters for your new password.",
@@ -290,7 +300,13 @@ var failureKeys = {
290
300
  delivery_failed: "auth.feedback.delivery_failed",
291
301
  sms_region_unsupported: "auth.feedback.sms_region_unsupported",
292
302
  verification_expired: "auth.feedback.verification_expired",
293
- unknown: "auth.feedback.unknown"
303
+ unknown: "auth.feedback.unknown",
304
+ // The cases the Wix branded app and wix.com sites name on their own (IAM -19999, -19958, -19973).
305
+ signin_failed: "auth.feedback.signin_failed",
306
+ account_not_found: "auth.feedback.account_not_found",
307
+ pending_approval: "auth.feedback.pending_approval",
308
+ password_reset_required: "auth.feedback.password_reset_required",
309
+ reset_rate_limited: "auth.feedback.reset_rate_limited"
294
310
  };
295
311
  var codes = new Set(Object.keys(failureKeys));
296
312
  var aliases = {
@@ -314,8 +330,22 @@ var aliases = {
314
330
  smsRegionUnsupported: "sms_region_unsupported",
315
331
  verificationExpired: "verification_expired"
316
332
  };
317
- var iamCredentialCodes = /* @__PURE__ */ new Set(["-19999", "-19976"]);
333
+ var iamWrongPasswordCode = "-19976";
334
+ var iamUnknownAccountCode = "-19999";
335
+ var iamPendingApprovalCode = "-19958";
336
+ var iamPasswordResetCode = "-19973";
337
+ var iamBlockedCode = "-19956";
338
+ var iamCaptchaCodes = /* @__PURE__ */ new Set(["-19970", "-19971", "CAPTCHA_REQUIRED", "RECAPTCHA_REQUIRED", "recaptchaRequired"]);
318
339
  var iamEmailInUseCode = "-19995";
340
+ var unknownKeys = {
341
+ signIn: "auth.feedback.signin_failed",
342
+ register: "auth.feedback.registration_failed"
343
+ };
344
+ var offlineKeys = {
345
+ signIn: "auth.feedback.offline_signIn",
346
+ register: "auth.feedback.offline_register",
347
+ reset: "auth.feedback.offline_reset"
348
+ };
319
349
  function authDefault(key) {
320
350
  return copy_generated_default[key] ?? "";
321
351
  }
@@ -342,16 +372,29 @@ function authFailure(raw, operation = "signIn", translate) {
342
372
  const status = value.statusCode ?? value.status;
343
373
  const application = String(payload.details?.applicationError?.code ?? value.details?.applicationError?.code ?? payload.applicationCode ?? value.applicationCode ?? named ?? "");
344
374
  let code = codes.has(named) ? named : aliases[named] ?? "unknown";
345
- if (operation === "signIn" && iamCredentialCodes.has(application)) code = "invalid_credentials";
375
+ if (application === iamPendingApprovalCode) code = "pending_approval";
376
+ else if (operation === "signIn" && application === iamWrongPasswordCode) code = "invalid_credentials";
377
+ else if ((operation === "signIn" || operation === "reset") && application === iamUnknownAccountCode) code = "account_not_found";
378
+ else if (operation === "signIn" && application === iamPasswordResetCode) code = "password_reset_required";
379
+ else if (operation === "signIn" && application === iamBlockedCode) code = "signin_failed";
380
+ else if (operation === "signIn" && iamCaptchaCodes.has(application)) code = "rate_limited";
381
+ else if (operation === "register" && iamCaptchaCodes.has(application)) code = "registration_failed";
346
382
  else if (operation === "register" && (application === iamEmailInUseCode || status === 409)) code = "email_in_use";
347
- else if (status === 429) code = "rate_limited";
383
+ else if (status === 429) code = operation === "reset" ? "reset_rate_limited" : "rate_limited";
348
384
  else if ([404, 405, 501].includes(status)) code = "unavailable";
349
385
  else if ([401, 403].includes(status) && operation === "signIn") code = "invalid_credentials";
350
386
  else if (status === 0 || status >= 500 || value.name === "TypeError" || value.name === "TimeoutError") code = "network";
351
387
  if (operation === "verify" && code === "invalid_credentials") code = "invalid_code";
352
388
  if (operation === "register" && code === "invalid_credentials") code = "registration_failed";
389
+ if (operation === "reset" && code === "rate_limited") code = "reset_rate_limited";
390
+ if (code === "network" && typeof status === "number" && status >= 500) {
391
+ return { code, reason: authMessage(unknownKeys[operation] ?? failureKeys.unknown, translate) };
392
+ }
393
+ if (code === "network" && offlineKeys[operation]) return { code, reason: authMessage(offlineKeys[operation], translate) };
394
+ if (code === "unknown" && unknownKeys[operation]) return { code, reason: authMessage(unknownKeys[operation], translate) };
353
395
  return { code, reason: authMessage(failureKeys[code], translate) };
354
396
  }
397
+ var MIN_PASSWORD_LENGTH = 6;
355
398
  function identityErrors(input, operation, requireName = false) {
356
399
  const errors = {};
357
400
  if (operation === "verify") {
@@ -362,6 +405,7 @@ function identityErrors(input, operation, requireName = false) {
362
405
  if (!email) errors.email = "auth.validation.emailRequired";
363
406
  else if (validate({ type: "email" }, email)) errors.email = "auth.validation.emailInvalid";
364
407
  if ((operation === "signIn" || operation === "register") && !input.password?.length) errors.password = "auth.validation.passwordRequired";
408
+ else if (operation === "register" && (input.password?.length ?? 0) < MIN_PASSWORD_LENGTH) errors.password = "auth.validation.passwordTooShort";
365
409
  if (operation === "register" && requireName && !input.name?.trim()) errors.name = "auth.validation.nameRequired";
366
410
  return errors;
367
411
  }
@@ -2021,21 +2021,31 @@ var copy_generated_default = {
2021
2021
  "auth.gate.code.show": "Show code",
2022
2022
  "auth.gate.code.hide": "Hide code",
2023
2023
  "auth.feedback.invalid_input": "Check the highlighted fields and try again.",
2024
- "auth.feedback.invalid_credentials": "The email or password is incorrect. Check your details or reset your password.",
2025
- "auth.feedback.registration_failed": "We could not create an account. Check your details, or try signing in or resetting your password.",
2026
- "auth.feedback.email_in_use": "This email already has an account. Sign in instead, or reset your password.",
2024
+ "auth.feedback.invalid_credentials": "Wrong email or password. Try again, or reset your password.",
2025
+ "auth.feedback.registration_failed": "We couldn't create your account. Try again.",
2026
+ "auth.feedback.email_in_use": "An account with this email already exists. Sign in instead.",
2027
2027
  "auth.feedback.invalid_code": "That code is invalid or has expired. Check the code or request a new one.",
2028
2028
  "auth.feedback.expired_code": "That code has expired. Request a new code and try again.",
2029
2029
  "auth.feedback.totp": "That code did not work. Enter the current code from your authenticator app.",
2030
- "auth.feedback.network": "We could not connect. Check your connection and try again.",
2031
- "auth.feedback.rate_limited": "Too many attempts. Wait a few minutes and try again.",
2030
+ "auth.feedback.network": "No connection. Check your internet and try again.",
2031
+ "auth.feedback.rate_limited": "Too many attempts. Wait a few minutes, then try again.",
2032
2032
  "auth.feedback.delivery_failed": "We couldn't send the code. Try again, or try another way.",
2033
2033
  "auth.feedback.sms_region_unsupported": "SMS codes aren't available in your region. Try another way.",
2034
2034
  "auth.feedback.verification_expired": "This verification has expired. Go back and sign in again.",
2035
2035
  "auth.feedback.unavailable": "This action is not available here. Use a supported sign-in method or open the app.",
2036
2036
  "auth.feedback.cancelled": "Sign-in was cancelled. Try again when you are ready.",
2037
- "auth.feedback.verification_required": "Complete verification to continue, then try again.",
2038
- "auth.feedback.unknown": "We could not complete this action. Please try again.",
2037
+ "auth.feedback.verification_required": "We couldn't complete the security check. Try again.",
2038
+ "auth.feedback.unknown": "There was a technical issue on our side. Try again.",
2039
+ "auth.feedback.signin_failed": "We couldn't sign you in. Try again.",
2040
+ "auth.feedback.account_not_found": "We couldn't find an account with this email. Check it, or create an account.",
2041
+ "auth.feedback.pending_approval": "Your request to join was sent. You'll get an email once it's approved.",
2042
+ "auth.feedback.password_reset_required": "As a security precaution, we had to reset your password. Send yourself a reset link to create a new one.",
2043
+ "auth.feedback.offline_signIn": "You're offline. Get online to sign in.",
2044
+ "auth.feedback.offline_register": "You're offline. Get online to create your account.",
2045
+ "auth.feedback.offline_reset": "You're offline. Get online to reset your password.",
2046
+ "auth.feedback.reset_rate_limited": "We already sent you an email. Wait a few minutes before you ask again.",
2047
+ "auth.gate.pendingApproval.title": "Pending approval",
2048
+ "auth.validation.passwordTooShort": "Password must have at least 6 characters.",
2039
2049
  "auth.validation.emailRequired": "Enter your email address.",
2040
2050
  "auth.validation.emailInvalid": "Enter a valid email address.",
2041
2051
  "auth.validation.passwordMinimum": "Use at least 8 characters for your new password.",
@@ -2087,7 +2097,13 @@ var failureKeys = {
2087
2097
  delivery_failed: "auth.feedback.delivery_failed",
2088
2098
  sms_region_unsupported: "auth.feedback.sms_region_unsupported",
2089
2099
  verification_expired: "auth.feedback.verification_expired",
2090
- unknown: "auth.feedback.unknown"
2100
+ unknown: "auth.feedback.unknown",
2101
+ // The cases the Wix branded app and wix.com sites name on their own (IAM -19999, -19958, -19973).
2102
+ signin_failed: "auth.feedback.signin_failed",
2103
+ account_not_found: "auth.feedback.account_not_found",
2104
+ pending_approval: "auth.feedback.pending_approval",
2105
+ password_reset_required: "auth.feedback.password_reset_required",
2106
+ reset_rate_limited: "auth.feedback.reset_rate_limited"
2091
2107
  };
2092
2108
  var codes = new Set(Object.keys(failureKeys));
2093
2109
  var aliases = {
@@ -2111,8 +2127,22 @@ var aliases = {
2111
2127
  smsRegionUnsupported: "sms_region_unsupported",
2112
2128
  verificationExpired: "verification_expired"
2113
2129
  };
2114
- var iamCredentialCodes = /* @__PURE__ */ new Set(["-19999", "-19976"]);
2130
+ var iamWrongPasswordCode = "-19976";
2131
+ var iamUnknownAccountCode = "-19999";
2132
+ var iamPendingApprovalCode = "-19958";
2133
+ var iamPasswordResetCode = "-19973";
2134
+ var iamBlockedCode = "-19956";
2135
+ var iamCaptchaCodes = /* @__PURE__ */ new Set(["-19970", "-19971", "CAPTCHA_REQUIRED", "RECAPTCHA_REQUIRED", "recaptchaRequired"]);
2115
2136
  var iamEmailInUseCode = "-19995";
2137
+ var unknownKeys = {
2138
+ signIn: "auth.feedback.signin_failed",
2139
+ register: "auth.feedback.registration_failed"
2140
+ };
2141
+ var offlineKeys = {
2142
+ signIn: "auth.feedback.offline_signIn",
2143
+ register: "auth.feedback.offline_register",
2144
+ reset: "auth.feedback.offline_reset"
2145
+ };
2116
2146
  function authDefault(key) {
2117
2147
  return copy_generated_default[key] ?? "";
2118
2148
  }
@@ -2139,16 +2169,29 @@ function authFailure(raw, operation = "signIn", translate) {
2139
2169
  const status2 = value.statusCode ?? value.status;
2140
2170
  const application = String(payload.details?.applicationError?.code ?? value.details?.applicationError?.code ?? payload.applicationCode ?? value.applicationCode ?? named ?? "");
2141
2171
  let code = codes.has(named) ? named : aliases[named] ?? "unknown";
2142
- if (operation === "signIn" && iamCredentialCodes.has(application)) code = "invalid_credentials";
2172
+ if (application === iamPendingApprovalCode) code = "pending_approval";
2173
+ else if (operation === "signIn" && application === iamWrongPasswordCode) code = "invalid_credentials";
2174
+ else if ((operation === "signIn" || operation === "reset") && application === iamUnknownAccountCode) code = "account_not_found";
2175
+ else if (operation === "signIn" && application === iamPasswordResetCode) code = "password_reset_required";
2176
+ else if (operation === "signIn" && application === iamBlockedCode) code = "signin_failed";
2177
+ else if (operation === "signIn" && iamCaptchaCodes.has(application)) code = "rate_limited";
2178
+ else if (operation === "register" && iamCaptchaCodes.has(application)) code = "registration_failed";
2143
2179
  else if (operation === "register" && (application === iamEmailInUseCode || status2 === 409)) code = "email_in_use";
2144
- else if (status2 === 429) code = "rate_limited";
2180
+ else if (status2 === 429) code = operation === "reset" ? "reset_rate_limited" : "rate_limited";
2145
2181
  else if ([404, 405, 501].includes(status2)) code = "unavailable";
2146
2182
  else if ([401, 403].includes(status2) && operation === "signIn") code = "invalid_credentials";
2147
2183
  else if (status2 === 0 || status2 >= 500 || value.name === "TypeError" || value.name === "TimeoutError") code = "network";
2148
2184
  if (operation === "verify" && code === "invalid_credentials") code = "invalid_code";
2149
2185
  if (operation === "register" && code === "invalid_credentials") code = "registration_failed";
2186
+ if (operation === "reset" && code === "rate_limited") code = "reset_rate_limited";
2187
+ if (code === "network" && typeof status2 === "number" && status2 >= 500) {
2188
+ return { code, reason: authMessage(unknownKeys[operation] ?? failureKeys.unknown, translate) };
2189
+ }
2190
+ if (code === "network" && offlineKeys[operation]) return { code, reason: authMessage(offlineKeys[operation], translate) };
2191
+ if (code === "unknown" && unknownKeys[operation]) return { code, reason: authMessage(unknownKeys[operation], translate) };
2150
2192
  return { code, reason: authMessage(failureKeys[code], translate) };
2151
2193
  }
2194
+ var MIN_PASSWORD_LENGTH = 6;
2152
2195
  function identityErrors(input, operation, requireName = false) {
2153
2196
  const errors = {};
2154
2197
  if (operation === "verify") {
@@ -2159,6 +2202,7 @@ function identityErrors(input, operation, requireName = false) {
2159
2202
  if (!email) errors.email = "auth.validation.emailRequired";
2160
2203
  else if (validate({ type: "email" }, email)) errors.email = "auth.validation.emailInvalid";
2161
2204
  if ((operation === "signIn" || operation === "register") && !input.password?.length) errors.password = "auth.validation.passwordRequired";
2205
+ else if (operation === "register" && (input.password?.length ?? 0) < MIN_PASSWORD_LENGTH) errors.password = "auth.validation.passwordTooShort";
2162
2206
  if (operation === "register" && requireName && !input.name?.trim()) errors.name = "auth.validation.nameRequired";
2163
2207
  return errors;
2164
2208
  }
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2727046
5
+ "bytes": 2729758
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 24320
22
22
  },
23
23
  {
24
- "name": "preview-deferred/a60c092217d4c21970ff66e8b63221007e49d0792eb9d5fe66238f8efbce884a.bin",
24
+ "name": "preview-deferred/4a8928bb82fc0db03269e14445bfc09155ceb3cde1f268162ac70b7ceb097b1f.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-PejcntYu.js",
82
+ "key": "assets/pdf-7mOPF3vJ.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "a60c092217d4c21970ff66e8b63221007e49d0792eb9d5fe66238f8efbce884a",
85
- "file": "preview-deferred/a60c092217d4c21970ff66e8b63221007e49d0792eb9d5fe66238f8efbce884a.bin"
84
+ "sha256": "4a8928bb82fc0db03269e14445bfc09155ceb3cde1f268162ac70b7ceb097b1f",
85
+ "file": "preview-deferred/4a8928bb82fc0db03269e14445bfc09155ceb3cde1f268162ac70b7ceb097b1f.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",