@pisell/private-materials 6.3.10 → 6.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (448) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Content/index.js +2 -2
  15. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  19. package/es/components/appointmentBooking/components/Voucher/index.js +6 -5
  20. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  21. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  22. package/es/components/appointmentBooking/hooks.js +4 -2
  23. package/es/components/appointmentBooking/index.d.ts +1 -0
  24. package/es/components/booking/addons/index.js +12 -8
  25. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  26. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  27. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  28. package/es/components/booking/components/browserSelect/index.js +1 -1
  29. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  30. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  31. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  32. package/es/components/booking/components/footer/index.js +19 -9
  33. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  34. package/es/components/booking/components/voucher/index.js +8 -5
  35. package/es/components/booking/deposit/index.d.ts +1 -0
  36. package/es/components/booking/forms/footer.d.ts +1 -0
  37. package/es/components/booking/forms/model.js +5 -5
  38. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  39. package/es/components/booking/forms/single/index.d.ts +1 -0
  40. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  41. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  42. package/es/components/booking/info/date/index.d.ts +1 -0
  43. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  44. package/es/components/booking/info/header/index.d.ts +1 -0
  45. package/es/components/booking/info/notes/index.d.ts +1 -0
  46. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  47. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  48. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  49. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  50. package/es/components/booking/info/service/like/index.js +1 -1
  51. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  52. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  53. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  54. package/es/components/booking/info2/service/addService/utils.js +16 -1
  55. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  56. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  57. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  58. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  59. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  60. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  61. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  62. package/es/components/booking/notes/model.js +5 -5
  63. package/es/components/booking/payments/model.js +5 -5
  64. package/es/components/eftpos/index.d.ts +1 -0
  65. package/es/components/eftpos/pos.d.ts +1 -0
  66. package/es/components/eftposPay/amount.d.ts +2 -1
  67. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  68. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  69. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  70. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  71. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  72. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  73. package/es/components/eftposPay/device.d.ts +2 -1
  74. package/es/components/eftposPay/hooks.d.ts +1 -1
  75. package/es/components/eftposPay/index.d.ts +1 -0
  76. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  77. package/es/components/eftposPay/pay.d.ts +1 -0
  78. package/es/components/eftposPay/payo/config.d.ts +1 -0
  79. package/es/components/eftposPay/store/index.d.ts +2 -2
  80. package/es/components/eftposPay/tip.d.ts +1 -0
  81. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  82. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  83. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  86. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  88. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  89. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  92. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  94. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  95. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  96. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  97. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  98. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  99. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  100. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  101. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  102. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  103. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  104. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  105. package/es/components/eventBooking/components/progressBar/index.js +0 -20
  106. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  107. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  108. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  109. package/es/components/eventBooking/index.d.ts +1 -0
  110. package/es/components/listComponent/index.js +5 -5
  111. package/es/components/login/index.d.ts +1 -0
  112. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +7 -20
  113. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  114. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  115. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
  116. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -12
  117. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +24 -31
  118. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  119. package/es/components/pay/toC/utils.d.ts +1 -1
  120. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  121. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  122. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  123. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  124. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  125. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  126. package/es/components/productExtension/card/index.js +3 -3
  127. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  128. package/es/components/productExtension/fields/Forms/index.js +12 -12
  129. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  130. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  131. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  132. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  133. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  134. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  135. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  136. package/es/components/productExtension/index.d.ts +1 -0
  137. package/es/components/productExtension/server.js +2 -2
  138. package/es/components/ruleSetting/index.d.ts +1 -0
  139. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  140. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  141. package/es/components/schedules/calendar/index.d.ts +1 -0
  142. package/es/components/schedules/calendar/index.js +4 -4
  143. package/es/components/schedules/calendar/serve.js +2 -2
  144. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  145. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  146. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  147. package/es/components/schedules/components/ResourceList/index.js +1 -1
  148. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  149. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  150. package/es/components/schedules/components/Search/index.js +5 -5
  151. package/es/components/schedules/model.js +5 -5
  152. package/es/components/schedules/openHours/index.js +1 -1
  153. package/es/components/schedules/openHours/serve.js +2 -2
  154. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  155. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  156. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  157. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  158. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  159. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  160. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  161. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  162. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  163. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  164. package/es/components/schedules/products/list/index.d.ts +1 -0
  165. package/es/components/schedules/products/serve.js +2 -2
  166. package/es/components/schedules/products/utils.js +5 -5
  167. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  168. package/es/components/schedules/resources/detail/index.js +10 -10
  169. package/es/components/schedules/resources/index.d.ts +1 -0
  170. package/es/components/schedules/resources/list/index.d.ts +1 -0
  171. package/es/components/schedules/resources/list/index.js +2 -2
  172. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  173. package/es/components/schedules/resources/serve.js +2 -2
  174. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  175. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  176. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  177. package/es/components/schedules/schedules/index.d.ts +1 -0
  178. package/es/components/schedules/utils.d.ts +1 -1
  179. package/es/components/schedules/utils.js +4 -4
  180. package/es/components/selectModal/index.js +2 -2
  181. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  182. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  183. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  184. package/es/components/shoppingCart/index.d.ts +1 -0
  185. package/es/components/taxSelect/index.d.ts +1 -0
  186. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  187. package/es/components/wallet/Detail/index.js +250 -64
  188. package/es/components/wallet/Detail/locales.d.ts +51 -0
  189. package/es/components/wallet/Detail/locales.js +57 -3
  190. package/es/components/wallet/Detail/serve.js +5 -1
  191. package/es/components/wallet/components/UsageRules/index.d.ts +23 -0
  192. package/es/components/wallet/components/UsageRules/index.js +147 -0
  193. package/es/components/wallet/components/UsageRules/index.less +157 -0
  194. package/es/components/wallet/components/WalletCard.js +2 -3
  195. package/es/components/wallet/components/index.d.ts +1 -0
  196. package/es/components/wallet/components/index.js +2 -1
  197. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  198. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  199. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  200. package/es/hooks/useComponents.js +1 -1
  201. package/es/index.d.ts +3 -0
  202. package/es/index.js +4 -1
  203. package/es/plus/productSelect/ProductCard/index.less +5 -22
  204. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
  205. package/es/plus/productSelect/components/pisellPriceText/index.js +1 -0
  206. package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
  207. package/es/plus/saasCreateOrganization/components/Header.d.ts +4 -0
  208. package/es/plus/saasCreateOrganization/components/Header.js +62 -0
  209. package/es/plus/saasCreateOrganization/index.d.ts +5 -0
  210. package/es/plus/saasCreateOrganization/index.js +15 -0
  211. package/es/plus/saasCreateOrganization/index.less +55 -0
  212. package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
  213. package/es/plus/saasCreateOrganization/locales.js +14 -0
  214. package/es/plus/saasCreateOrganization/types.d.ts +69 -0
  215. package/es/plus/saasCreateOrganization/types.js +1 -0
  216. package/es/plus/saasLogin/index.d.ts +5 -0
  217. package/es/plus/saasLogin/index.js +165 -0
  218. package/es/plus/saasLogin/index.less +136 -0
  219. package/es/plus/saasLogin/locales.d.ts +51 -0
  220. package/es/plus/saasLogin/locales.js +50 -0
  221. package/es/plus/saasLogin/types.d.ts +62 -0
  222. package/es/plus/saasLogin/types.js +1 -0
  223. package/es/plus/saasLogin/utils.d.ts +35 -0
  224. package/es/plus/saasLogin/utils.js +31 -0
  225. package/es/plus/saasRegister/components/EntryEmail.d.ts +10 -0
  226. package/es/plus/saasRegister/components/EntryEmail.js +92 -0
  227. package/es/plus/saasRegister/components/EntryInfo.d.ts +10 -0
  228. package/es/plus/saasRegister/components/EntryInfo.js +145 -0
  229. package/es/plus/saasRegister/components/GoLogin.d.ts +5 -0
  230. package/es/plus/saasRegister/components/GoLogin.js +27 -0
  231. package/es/plus/saasRegister/components/Header.d.ts +4 -0
  232. package/es/plus/saasRegister/components/Header.js +62 -0
  233. package/es/plus/saasRegister/components/VerifyError.d.ts +9 -0
  234. package/es/plus/saasRegister/components/VerifyError.js +68 -0
  235. package/es/plus/saasRegister/components/VerifyingLink.d.ts +6 -0
  236. package/es/plus/saasRegister/components/VerifyingLink.js +16 -0
  237. package/es/plus/saasRegister/components/VertifyEmail.d.ts +8 -0
  238. package/es/plus/saasRegister/components/VertifyEmail.js +121 -0
  239. package/es/plus/saasRegister/index.d.ts +5 -0
  240. package/es/plus/saasRegister/index.js +246 -0
  241. package/es/plus/saasRegister/index.less +218 -0
  242. package/es/plus/saasRegister/locales.d.ts +117 -0
  243. package/es/plus/saasRegister/locales.js +116 -0
  244. package/es/plus/saasRegister/types.d.ts +114 -0
  245. package/es/plus/saasRegister/types.js +24 -0
  246. package/es/utils/index.d.ts +1 -1
  247. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  248. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  249. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  250. package/lib/components/appointmentBooking/components/Content/index.js +1 -1
  251. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  252. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  253. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  254. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  255. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  256. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  257. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  258. package/lib/components/appointmentBooking/hooks.js +4 -2
  259. package/lib/components/appointmentBooking/index.d.ts +1 -0
  260. package/lib/components/booking/addons/index.js +1 -11
  261. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  262. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  263. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  264. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  265. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  266. package/lib/components/booking/components/footer/index.js +15 -8
  267. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  268. package/lib/components/booking/components/voucher/index.js +3 -1
  269. package/lib/components/booking/deposit/index.d.ts +1 -0
  270. package/lib/components/booking/forms/footer.d.ts +1 -0
  271. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  272. package/lib/components/booking/forms/single/index.d.ts +1 -0
  273. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  274. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  275. package/lib/components/booking/info/date/index.d.ts +1 -0
  276. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  277. package/lib/components/booking/info/header/index.d.ts +1 -0
  278. package/lib/components/booking/info/notes/index.d.ts +1 -0
  279. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  280. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  281. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  282. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  283. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  284. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  285. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  286. package/lib/components/booking/info2/service/addService/utils.js +15 -3
  287. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  288. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  289. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  290. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  291. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  292. package/lib/components/eftpos/index.d.ts +1 -0
  293. package/lib/components/eftpos/pos.d.ts +1 -0
  294. package/lib/components/eftposPay/amount.d.ts +2 -1
  295. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  296. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  297. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  298. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  299. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  300. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  301. package/lib/components/eftposPay/device.d.ts +2 -1
  302. package/lib/components/eftposPay/hooks.d.ts +1 -1
  303. package/lib/components/eftposPay/index.d.ts +1 -0
  304. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  305. package/lib/components/eftposPay/pay.d.ts +1 -0
  306. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  307. package/lib/components/eftposPay/store/index.d.ts +2 -2
  308. package/lib/components/eftposPay/tip.d.ts +1 -0
  309. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  310. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  311. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  312. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  313. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  314. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  315. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  316. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  317. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  318. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  319. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  320. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  321. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  322. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  323. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  324. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  325. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  326. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  327. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  328. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  329. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  330. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  331. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  332. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  333. package/lib/components/eventBooking/components/progressBar/index.js +0 -18
  334. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  335. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  336. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  337. package/lib/components/eventBooking/index.d.ts +1 -0
  338. package/lib/components/login/index.d.ts +1 -0
  339. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +7 -11
  340. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  341. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  342. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
  343. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -9
  344. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -6
  345. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  346. package/lib/components/pay/toC/utils.d.ts +1 -1
  347. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  348. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  349. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  350. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  351. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  352. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  353. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  354. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  355. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  356. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  357. package/lib/components/productExtension/index.d.ts +1 -0
  358. package/lib/components/ruleSetting/index.d.ts +1 -0
  359. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  360. package/lib/components/schedules/calendar/index.d.ts +1 -0
  361. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  362. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  363. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  364. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  365. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  366. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  367. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  368. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  369. package/lib/components/schedules/products/list/index.d.ts +1 -0
  370. package/lib/components/schedules/resources/index.d.ts +1 -0
  371. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  372. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  373. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  374. package/lib/components/schedules/schedules/index.d.ts +1 -0
  375. package/lib/components/schedules/utils.d.ts +1 -1
  376. package/lib/components/schedules/utils.js +1 -1
  377. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  378. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  379. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  380. package/lib/components/shoppingCart/index.d.ts +1 -0
  381. package/lib/components/taxSelect/index.d.ts +1 -0
  382. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  383. package/lib/components/wallet/Detail/index.js +128 -9
  384. package/lib/components/wallet/Detail/locales.d.ts +51 -0
  385. package/lib/components/wallet/Detail/locales.js +57 -3
  386. package/lib/components/wallet/Detail/serve.js +6 -1
  387. package/lib/components/wallet/components/UsageRules/index.d.ts +23 -0
  388. package/lib/components/wallet/components/UsageRules/index.js +113 -0
  389. package/lib/components/wallet/components/UsageRules/index.less +157 -0
  390. package/lib/components/wallet/components/WalletCard.js +1 -1
  391. package/lib/components/wallet/components/index.d.ts +1 -0
  392. package/lib/components/wallet/components/index.js +3 -0
  393. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  394. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  395. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  396. package/lib/index.d.ts +3 -0
  397. package/lib/index.js +9 -0
  398. package/lib/plus/productSelect/ProductCard/index.less +5 -22
  399. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
  400. package/lib/plus/productSelect/components/pisellPriceText/index.js +1 -0
  401. package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
  402. package/lib/plus/saasCreateOrganization/components/Header.d.ts +4 -0
  403. package/lib/plus/saasCreateOrganization/components/Header.js +99 -0
  404. package/lib/plus/saasCreateOrganization/index.d.ts +5 -0
  405. package/lib/plus/saasCreateOrganization/index.js +47 -0
  406. package/lib/plus/saasCreateOrganization/index.less +55 -0
  407. package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
  408. package/lib/plus/saasCreateOrganization/locales.js +38 -0
  409. package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
  410. package/lib/plus/saasCreateOrganization/types.js +17 -0
  411. package/lib/plus/saasLogin/index.d.ts +5 -0
  412. package/lib/plus/saasLogin/index.js +171 -0
  413. package/lib/plus/saasLogin/index.less +136 -0
  414. package/lib/plus/saasLogin/locales.d.ts +51 -0
  415. package/lib/plus/saasLogin/locales.js +74 -0
  416. package/lib/plus/saasLogin/types.d.ts +62 -0
  417. package/lib/plus/saasLogin/types.js +17 -0
  418. package/lib/plus/saasLogin/utils.d.ts +35 -0
  419. package/lib/plus/saasLogin/utils.js +50 -0
  420. package/lib/plus/saasRegister/components/EntryEmail.d.ts +10 -0
  421. package/lib/plus/saasRegister/components/EntryEmail.js +92 -0
  422. package/lib/plus/saasRegister/components/EntryInfo.d.ts +10 -0
  423. package/lib/plus/saasRegister/components/EntryInfo.js +128 -0
  424. package/lib/plus/saasRegister/components/GoLogin.d.ts +5 -0
  425. package/lib/plus/saasRegister/components/GoLogin.js +58 -0
  426. package/lib/plus/saasRegister/components/Header.d.ts +4 -0
  427. package/lib/plus/saasRegister/components/Header.js +99 -0
  428. package/lib/plus/saasRegister/components/VerifyError.d.ts +9 -0
  429. package/lib/plus/saasRegister/components/VerifyError.js +123 -0
  430. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +6 -0
  431. package/lib/plus/saasRegister/components/VerifyingLink.js +44 -0
  432. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +8 -0
  433. package/lib/plus/saasRegister/components/VertifyEmail.js +110 -0
  434. package/lib/plus/saasRegister/index.d.ts +5 -0
  435. package/lib/plus/saasRegister/index.js +205 -0
  436. package/lib/plus/saasRegister/index.less +218 -0
  437. package/lib/plus/saasRegister/locales.d.ts +117 -0
  438. package/lib/plus/saasRegister/locales.js +140 -0
  439. package/lib/plus/saasRegister/types.d.ts +114 -0
  440. package/lib/plus/saasRegister/types.js +54 -0
  441. package/lib/utils/index.d.ts +1 -1
  442. package/lowcode/saas-create-organization/meta.ts +214 -0
  443. package/lowcode/saas-create-organization/snippets.ts +25 -0
  444. package/lowcode/saas-login/meta.ts +370 -0
  445. package/lowcode/saas-login/snippets.ts +38 -0
  446. package/lowcode/saas-register/meta.ts +386 -0
  447. package/lowcode/saas-register/snippets.ts +31 -0
  448. package/package.json +5 -5
@@ -0,0 +1,35 @@
1
+ import { SaasLoginProps } from './types';
2
+ export declare const mergeData: (locales: any, props: SaasLoginProps) => {
3
+ logo: string;
4
+ logoSize: {
5
+ width?: number | undefined;
6
+ height?: number | undefined;
7
+ };
8
+ logoPosition: "center" | "left" | "right";
9
+ welcomeMessage: any;
10
+ welcomeMessageAlign: "center" | "left" | "right";
11
+ title: any;
12
+ titleAlign: "center" | "left" | "right";
13
+ subtitle: any;
14
+ subtitleAlign: "center" | "left" | "right";
15
+ emailLabel: any;
16
+ emailPlaceholder: any;
17
+ passwordLabel: any;
18
+ passwordPlaceholder: any;
19
+ buttonText: any;
20
+ registerText: any;
21
+ registerLinkText: any;
22
+ registerAlign: "center" | "left" | "right";
23
+ showLogo?: boolean | undefined;
24
+ showWelcomeMessage?: boolean | undefined;
25
+ showTitle?: boolean | undefined;
26
+ showSubtitle?: boolean | undefined;
27
+ showRegister?: boolean | undefined;
28
+ showRegisterText?: boolean | undefined;
29
+ showRegisterLinkText?: boolean | undefined;
30
+ onLogin?: ((values: {
31
+ email: string;
32
+ loginMethod: string;
33
+ }) => void) | undefined;
34
+ onGoRegister?: (() => void) | undefined;
35
+ };
@@ -0,0 +1,31 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ export var mergeData = function mergeData(locales, props) {
8
+ var _props$logoPosition, _props$welcomeMessage, _props$welcomeMessage2, _props$title, _props$titleAlign, _props$subtitle, _props$subtitleAlign, _props$emailLabel, _props$emailPlacehold, _props$passwordLabel, _props$passwordPlaceh, _props$buttonText, _props$registerText, _props$registerLinkTe, _props$registerAlign;
9
+ return _objectSpread(_objectSpread({}, props), {}, {
10
+ logo: props.logo || '',
11
+ logoSize: props.logoSize || {
12
+ width: 48,
13
+ height: 48
14
+ },
15
+ logoPosition: (_props$logoPosition = props.logoPosition) !== null && _props$logoPosition !== void 0 ? _props$logoPosition : 'center',
16
+ welcomeMessage: (_props$welcomeMessage = props.welcomeMessage) !== null && _props$welcomeMessage !== void 0 ? _props$welcomeMessage : locales.getText('pisell-saas-login-welcome-message'),
17
+ welcomeMessageAlign: (_props$welcomeMessage2 = props.welcomeMessageAlign) !== null && _props$welcomeMessage2 !== void 0 ? _props$welcomeMessage2 : 'center',
18
+ title: (_props$title = props.title) !== null && _props$title !== void 0 ? _props$title : locales.getText('pisell-saas-login-title'),
19
+ titleAlign: (_props$titleAlign = props.titleAlign) !== null && _props$titleAlign !== void 0 ? _props$titleAlign : 'center',
20
+ subtitle: (_props$subtitle = props.subtitle) !== null && _props$subtitle !== void 0 ? _props$subtitle : locales.getText('pisell-saas-login-subtitle'),
21
+ subtitleAlign: (_props$subtitleAlign = props.subtitleAlign) !== null && _props$subtitleAlign !== void 0 ? _props$subtitleAlign : 'center',
22
+ emailLabel: (_props$emailLabel = props.emailLabel) !== null && _props$emailLabel !== void 0 ? _props$emailLabel : locales.getText('pisell-saas-login-email-label'),
23
+ emailPlaceholder: (_props$emailPlacehold = props.emailPlaceholder) !== null && _props$emailPlacehold !== void 0 ? _props$emailPlacehold : locales.getText('pisell-saas-login-email-placeholder'),
24
+ passwordLabel: (_props$passwordLabel = props.passwordLabel) !== null && _props$passwordLabel !== void 0 ? _props$passwordLabel : locales.getText('pisell-saas-login-password-label'),
25
+ passwordPlaceholder: (_props$passwordPlaceh = props.passwordPlaceholder) !== null && _props$passwordPlaceh !== void 0 ? _props$passwordPlaceh : locales.getText('pisell-saas-login-password-placeholder'),
26
+ buttonText: (_props$buttonText = props.buttonText) !== null && _props$buttonText !== void 0 ? _props$buttonText : locales.getText('pisell-saas-login-button'),
27
+ registerText: (_props$registerText = props.registerText) !== null && _props$registerText !== void 0 ? _props$registerText : locales.getText('pisell-saas-login-register-text'),
28
+ registerLinkText: (_props$registerLinkTe = props.registerLinkText) !== null && _props$registerLinkTe !== void 0 ? _props$registerLinkTe : locales.getText('pisell-saas-login-register-link'),
29
+ registerAlign: (_props$registerAlign = props.registerAlign) !== null && _props$registerAlign !== void 0 ? _props$registerAlign : 'center'
30
+ });
31
+ };
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { FormInstance } from 'antd';
3
+ import { SRProps } from '../types';
4
+ import '../index.less';
5
+ interface EntryEmailProps extends SRProps {
6
+ form: FormInstance;
7
+ handleVerifyEmail: (bool: boolean) => Promise<void>;
8
+ }
9
+ declare const EntryEmail: (props: EntryEmailProps) => JSX.Element;
10
+ export default EntryEmail;
@@ -0,0 +1,92 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import React, { useState } from 'react';
12
+ import { locales } from '@pisell/utils';
13
+ import { Form, Input, Button } from 'antd';
14
+ import "../index.less";
15
+ var EntryEmail = function EntryEmail(props) {
16
+ var _useState = useState(false),
17
+ _useState2 = _slicedToArray(_useState, 2),
18
+ loading = _useState2[0],
19
+ setLoading = _useState2[1];
20
+ var _props$emailLabel = props.emailLabel,
21
+ emailLabel = _props$emailLabel === void 0 ? locales.getText('pisell-saas-register-email-label') : _props$emailLabel,
22
+ _props$emailPlacehold = props.emailPlaceholder,
23
+ emailPlaceholder = _props$emailPlacehold === void 0 ? locales.getText('pisell-saas-register-email-placeholder') : _props$emailPlacehold,
24
+ onVerifyEmail = props.onVerifyEmail,
25
+ _props$buttonText = props.buttonText,
26
+ buttonText = _props$buttonText === void 0 ? locales.getText('pisell-saas-register-button') : _props$buttonText,
27
+ form = props.form;
28
+ var emailRules = [{
29
+ required: true,
30
+ message: locales.getText('pisell-saas-register-email-error')
31
+ }, {
32
+ type: 'email',
33
+ message: locales.getText('pisell-saas-register-email-error-valid')
34
+ }];
35
+ var _onClick = /*#__PURE__*/function () {
36
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
37
+ var values, result;
38
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
39
+ while (1) switch (_context.prev = _context.next) {
40
+ case 0:
41
+ _context.prev = 0;
42
+ setLoading(true);
43
+ _context.next = 4;
44
+ return form.validateFields();
45
+ case 4:
46
+ values = _context.sent;
47
+ _context.next = 7;
48
+ return onVerifyEmail === null || onVerifyEmail === void 0 ? void 0 : onVerifyEmail(values.email);
49
+ case 7:
50
+ result = _context.sent;
51
+ props.handleVerifyEmail(!!result);
52
+ _context.next = 14;
53
+ break;
54
+ case 11:
55
+ _context.prev = 11;
56
+ _context.t0 = _context["catch"](0);
57
+ console.error('handleVerifyEmail failed:', _context.t0);
58
+ case 14:
59
+ _context.prev = 14;
60
+ setLoading(false);
61
+ return _context.finish(14);
62
+ case 17:
63
+ case "end":
64
+ return _context.stop();
65
+ }
66
+ }, _callee, null, [[0, 11, 14, 17]]);
67
+ }));
68
+ return function _onClick() {
69
+ return _ref.apply(this, arguments);
70
+ };
71
+ }();
72
+ return /*#__PURE__*/React.createElement("div", {
73
+ className: "pisell-saas-register-form"
74
+ }, /*#__PURE__*/React.createElement("div", {
75
+ className: "form-item-label"
76
+ }, emailLabel), /*#__PURE__*/React.createElement(Form.Item, {
77
+ name: "email",
78
+ rules: emailRules
79
+ }, /*#__PURE__*/React.createElement(Input, {
80
+ placeholder: emailPlaceholder,
81
+ size: "large",
82
+ className: "pisell-saas-register-input"
83
+ })), /*#__PURE__*/React.createElement(Button, {
84
+ type: "primary",
85
+ block: true,
86
+ size: "large",
87
+ loading: loading,
88
+ className: "pisell-saas-register-button",
89
+ onClick: _onClick
90
+ }, buttonText));
91
+ };
92
+ export default EntryEmail;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { FormInstance } from 'antd';
3
+ import { SRProps } from '../types';
4
+ import '../index.less';
5
+ interface IProps extends SRProps {
6
+ form: FormInstance;
7
+ emailToken?: string;
8
+ }
9
+ declare const EntryInfo: (props: IProps) => JSX.Element;
10
+ export default EntryInfo;
@@ -0,0 +1,145 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
+ import React, { useState } from 'react';
17
+ import { Form, Input, Button } from 'antd';
18
+ import { locales } from '@pisell/utils';
19
+ import "../index.less";
20
+ var MAX_LENGTH = 50;
21
+ var EntryInfo = function EntryInfo(props) {
22
+ var _props$passwordLabel = props.passwordLabel,
23
+ passwordLabel = _props$passwordLabel === void 0 ? locales.getText('pisell-saas-register-password-label') : _props$passwordLabel,
24
+ _props$passwordPlaceh = props.passwordPlaceholder,
25
+ passwordPlaceholder = _props$passwordPlaceh === void 0 ? locales.getText('pisell-saas-register-password-placeholder') : _props$passwordPlaceh,
26
+ _props$showDivider = props.showDivider,
27
+ showDivider = _props$showDivider === void 0 ? true : _props$showDivider,
28
+ _props$dividerText = props.dividerText,
29
+ dividerText = _props$dividerText === void 0 ? locales.getText('pisell-saas-register-divider-text') : _props$dividerText,
30
+ _props$showFirstName = props.showFirstName,
31
+ showFirstName = _props$showFirstName === void 0 ? true : _props$showFirstName,
32
+ _props$showLastName = props.showLastName,
33
+ showLastName = _props$showLastName === void 0 ? true : _props$showLastName,
34
+ form = props.form;
35
+ var _useState = useState(false),
36
+ _useState2 = _slicedToArray(_useState, 2),
37
+ loading = _useState2[0],
38
+ setLoading = _useState2[1];
39
+ var _handleEntryInfo = /*#__PURE__*/function () {
40
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
41
+ var _props$onEntryInfo, values;
42
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
43
+ while (1) switch (_context.prev = _context.next) {
44
+ case 0:
45
+ if (!loading) {
46
+ _context.next = 2;
47
+ break;
48
+ }
49
+ return _context.abrupt("return");
50
+ case 2:
51
+ setLoading(true);
52
+ _context.prev = 3;
53
+ _context.next = 6;
54
+ return form.validateFields();
55
+ case 6:
56
+ _context.t0 = _context.sent;
57
+ if (_context.t0) {
58
+ _context.next = 9;
59
+ break;
60
+ }
61
+ _context.t0 = {};
62
+ case 9:
63
+ values = _context.t0;
64
+ _context.next = 12;
65
+ return props === null || props === void 0 || (_props$onEntryInfo = props.onEntryInfo) === null || _props$onEntryInfo === void 0 ? void 0 : _props$onEntryInfo.call(props, _objectSpread(_objectSpread({}, values), {}, {
66
+ token: props.emailToken
67
+ }));
68
+ case 12:
69
+ _context.next = 17;
70
+ break;
71
+ case 14:
72
+ _context.prev = 14;
73
+ _context.t1 = _context["catch"](3);
74
+ console.error('handleEntryInfo_failed:', _context.t1);
75
+ case 17:
76
+ _context.prev = 17;
77
+ setLoading(false);
78
+ return _context.finish(17);
79
+ case 20:
80
+ case "end":
81
+ return _context.stop();
82
+ }
83
+ }, _callee, null, [[3, 14, 17, 20]]);
84
+ }));
85
+ return function _handleEntryInfo() {
86
+ return _ref.apply(this, arguments);
87
+ };
88
+ }();
89
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
90
+ className: "pisell-saas-register-form-email",
91
+ style: {
92
+ marginTop: '12px'
93
+ }
94
+ }, form.getFieldValue('email')), /*#__PURE__*/React.createElement("div", {
95
+ className: "pisell-saas-register-form"
96
+ }, /*#__PURE__*/React.createElement("div", {
97
+ className: "form-item-label"
98
+ }, passwordLabel), /*#__PURE__*/React.createElement(Form.Item, {
99
+ name: "password",
100
+ rules: [{
101
+ required: true,
102
+ message: locales.getText('pisell-saas-register-password-required')
103
+ }]
104
+ }, /*#__PURE__*/React.createElement(Input.Password, {
105
+ placeholder: passwordPlaceholder,
106
+ size: "large",
107
+ className: "pisell-saas-register-input"
108
+ })), showDivider && /*#__PURE__*/React.createElement("div", {
109
+ className: "pisell-saas-register-divider"
110
+ }, /*#__PURE__*/React.createElement("div", {
111
+ className: "pisell-saas-register-divider-text"
112
+ }, dividerText)), /*#__PURE__*/React.createElement("div", null, showFirstName && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
113
+ className: "form-item-label"
114
+ }, locales.getText('pisell-saas-register-first-name-label')), /*#__PURE__*/React.createElement(Form.Item, {
115
+ name: "firstName",
116
+ rules: [{
117
+ required: false
118
+ }]
119
+ }, /*#__PURE__*/React.createElement(Input, {
120
+ placeholder: locales.getText('pisell-saas-register-first-name-placeholder'),
121
+ size: "large",
122
+ className: "pisell-saas-register-input",
123
+ maxLength: 50
124
+ }))), showLastName && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
125
+ className: "form-item-label"
126
+ }, locales.getText('pisell-saas-register-last-name-label')), /*#__PURE__*/React.createElement(Form.Item, {
127
+ name: "lastName",
128
+ rules: [{
129
+ required: false
130
+ }]
131
+ }, /*#__PURE__*/React.createElement(Input, {
132
+ placeholder: locales.getText('pisell-saas-register-last-name-placeholder'),
133
+ size: "large",
134
+ className: "pisell-saas-register-input",
135
+ maxLength: 50
136
+ }))), /*#__PURE__*/React.createElement(Button, {
137
+ type: "primary",
138
+ block: true,
139
+ size: "large",
140
+ className: "pisell-saas-register-button",
141
+ loading: loading,
142
+ onClick: _handleEntryInfo
143
+ }, locales.getText('pisell-saas-register-button')))));
144
+ };
145
+ export default EntryInfo;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SRProps } from '../types';
3
+ import '../index.less';
4
+ declare const GoLogin: (props: SRProps) => JSX.Element;
5
+ export default GoLogin;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { locales } from '@pisell/utils';
3
+ import "../index.less";
4
+ var GoLogin = function GoLogin(props) {
5
+ var _props$showLogin = props.showLogin,
6
+ showLogin = _props$showLogin === void 0 ? true : _props$showLogin,
7
+ _props$loginAlign = props.loginAlign,
8
+ loginAlign = _props$loginAlign === void 0 ? 'center' : _props$loginAlign,
9
+ _props$showLoginText = props.showLoginText,
10
+ showLoginText = _props$showLoginText === void 0 ? true : _props$showLoginText,
11
+ _props$loginText = props.loginText,
12
+ loginText = _props$loginText === void 0 ? locales.getText('pisell-saas-register-login-text') : _props$loginText,
13
+ _props$loginLinkText = props.loginLinkText,
14
+ loginLinkText = _props$loginLinkText === void 0 ? locales.getText('pisell-saas-register-login-link-text') : _props$loginLinkText,
15
+ _props$showLoginLinkT = props.showLoginLinkText,
16
+ showLoginLinkText = _props$showLoginLinkT === void 0 ? true : _props$showLoginLinkT,
17
+ onGoLogin = props.onGoLogin;
18
+ return /*#__PURE__*/React.createElement(React.Fragment, null, showLogin && /*#__PURE__*/React.createElement("p", {
19
+ className: "pisell-saas-register-action",
20
+ style: {
21
+ textAlign: loginAlign
22
+ }
23
+ }, showLoginText ? loginText : '', showLoginLinkText && /*#__PURE__*/React.createElement("a", {
24
+ onClick: onGoLogin
25
+ }, loginLinkText || '')));
26
+ };
27
+ export default GoLogin;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { SRProps } from '../types';
3
+ import '../index.less';
4
+ export declare const Header: (props: SRProps) => JSX.Element;
@@ -0,0 +1,62 @@
1
+ import React from 'react';
2
+ import { locales } from '@pisell/utils';
3
+ import "../index.less";
4
+ export var Header = function Header(props) {
5
+ var _props$showLogo = props.showLogo,
6
+ showLogo = _props$showLogo === void 0 ? true : _props$showLogo,
7
+ _props$logo = props.logo,
8
+ logo = _props$logo === void 0 ? '' : _props$logo,
9
+ _props$logoSize = props.logoSize,
10
+ logoSize = _props$logoSize === void 0 ? {
11
+ width: 48,
12
+ height: 48
13
+ } : _props$logoSize,
14
+ _props$logoPosition = props.logoPosition,
15
+ logoPosition = _props$logoPosition === void 0 ? 'center' : _props$logoPosition,
16
+ _props$showWelcomeMes = props.showWelcomeMessage,
17
+ showWelcomeMessage = _props$showWelcomeMes === void 0 ? true : _props$showWelcomeMes,
18
+ _props$welcomeMessage = props.welcomeMessage,
19
+ welcomeMessage = _props$welcomeMessage === void 0 ? locales.getText('pisell-saas-register-welcome-message') : _props$welcomeMessage,
20
+ _props$welcomeMessage2 = props.welcomeMessageAlign,
21
+ welcomeMessageAlign = _props$welcomeMessage2 === void 0 ? 'center' : _props$welcomeMessage2,
22
+ _props$showTitle = props.showTitle,
23
+ showTitle = _props$showTitle === void 0 ? true : _props$showTitle,
24
+ _props$title = props.title,
25
+ title = _props$title === void 0 ? locales.getText('pisell-saas-register-title') : _props$title,
26
+ _props$titleAlign = props.titleAlign,
27
+ titleAlign = _props$titleAlign === void 0 ? 'center' : _props$titleAlign,
28
+ _props$showSubtitle = props.showSubtitle,
29
+ showSubtitle = _props$showSubtitle === void 0 ? true : _props$showSubtitle,
30
+ _props$subtitle = props.subtitle,
31
+ subtitle = _props$subtitle === void 0 ? locales.getText('pisell-saas-register-subtitle') : _props$subtitle,
32
+ _props$subtitleAlign = props.subtitleAlign,
33
+ subtitleAlign = _props$subtitleAlign === void 0 ? 'center' : _props$subtitleAlign;
34
+ return /*#__PURE__*/React.createElement(React.Fragment, null, showLogo && /*#__PURE__*/React.createElement("div", {
35
+ className: "pisell-saas-register-logo ".concat(logoPosition),
36
+ style: {
37
+ width: logoSize.width,
38
+ height: logoSize.height
39
+ }
40
+ }, logo && /*#__PURE__*/React.createElement("img", {
41
+ src: logo,
42
+ alt: "logo",
43
+ style: {
44
+ height: (logoSize === null || logoSize === void 0 ? void 0 : logoSize.height) || 48
45
+ }
46
+ })), showWelcomeMessage && /*#__PURE__*/React.createElement("h1", {
47
+ className: "pisell-saas-register-welcome-message",
48
+ style: {
49
+ textAlign: welcomeMessageAlign
50
+ }
51
+ }, welcomeMessage || ''), showTitle && /*#__PURE__*/React.createElement("h1", {
52
+ className: "pisell-saas-register-title",
53
+ style: {
54
+ textAlign: titleAlign
55
+ }
56
+ }, title || ''), showSubtitle && /*#__PURE__*/React.createElement("div", {
57
+ className: "pisell-saas-register-subtitle",
58
+ style: {
59
+ textAlign: subtitleAlign
60
+ }
61
+ }, subtitle || ''));
62
+ };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { SRStepStatus } from '../types';
3
+ import '../index.less';
4
+ declare const VerifyError: (props: {
5
+ status?: SRStepStatus;
6
+ onBackToRegister?: () => void;
7
+ onGoLogin?: () => void;
8
+ }) => JSX.Element | null;
9
+ export default VerifyError;
@@ -0,0 +1,68 @@
1
+ import React from 'react';
2
+ import { locales } from '@pisell/utils';
3
+ import { Button } from 'antd';
4
+ import GoLogin from "./GoLogin";
5
+ import { SRStepStatus } from "../types";
6
+ import "../index.less";
7
+ var VerifyErrorContent = function VerifyErrorContent(props) {
8
+ return /*#__PURE__*/React.createElement("div", {
9
+ className: "pisell-saas-register-form"
10
+ }, /*#__PURE__*/React.createElement("div", {
11
+ className: "pisell-saas-register-form-main"
12
+ }, /*#__PURE__*/React.createElement("div", {
13
+ className: "pisell-saas-register-form-title"
14
+ }, props.title), props.subtitle ? /*#__PURE__*/React.createElement("div", {
15
+ className: "pisell-saas-register-form-subtitle"
16
+ }, props.subtitle) : null), /*#__PURE__*/React.createElement(Button, {
17
+ type: "primary",
18
+ block: true,
19
+ size: "large",
20
+ className: "pisell-saas-register-button margin-top-32",
21
+ onClick: props.onClick
22
+ }, props.buttonText), props.showGoLogin ? /*#__PURE__*/React.createElement(GoLogin, {
23
+ onGoLogin: props.onGoLogin
24
+ }) : null);
25
+ };
26
+ var VerifyError = function VerifyError(props) {
27
+ var status = props.status,
28
+ onBackToRegister = props.onBackToRegister;
29
+ if (status === SRStepStatus.FAILED_EMAIL_REGISTERED) {
30
+ return /*#__PURE__*/React.createElement(VerifyErrorContent, {
31
+ title: locales.getText('pisell-saas-register-failed-email-registered-title'),
32
+ buttonText: locales.getText('pisell-saas-register-failed-button-text'),
33
+ onClick: onBackToRegister,
34
+ showGoLogin: true,
35
+ onGoLogin: props.onGoLogin
36
+ });
37
+ }
38
+ if (status === SRStepStatus.FAILED_LINK_EXPIRED) {
39
+ return /*#__PURE__*/React.createElement(VerifyErrorContent, {
40
+ title: locales.getText('pisell-saas-register-failed-link-expired-title'),
41
+ subtitle: locales.getText('pisell-saas-register-failed-link-expired-subtitle'),
42
+ buttonText: locales.getText('pisell-saas-register-failed-button-text'),
43
+ onClick: onBackToRegister,
44
+ showGoLogin: true,
45
+ onGoLogin: props.onGoLogin
46
+ });
47
+ }
48
+ if (status === SRStepStatus.FAILED_LINK_EMAIL_REGISTERED) {
49
+ return /*#__PURE__*/React.createElement(VerifyErrorContent, {
50
+ title: locales.getText('pisell-saas-register-failed-link-email-registered-title'),
51
+ subtitle: locales.getText('pisell-saas-register-failed-link-email-registered-subtitle'),
52
+ buttonText: locales.getText('pisell-saas-register-failed-link-email-registered-button-text'),
53
+ onClick: props.onGoLogin
54
+ });
55
+ }
56
+ if (status === SRStepStatus.FAILED_LINK_INVALID) {
57
+ return /*#__PURE__*/React.createElement(VerifyErrorContent, {
58
+ title: locales.getText('pisell-saas-register-failed-link-invalid-title'),
59
+ subtitle: locales.getText('pisell-saas-register-failed-link-invalid-subtitle'),
60
+ buttonText: locales.getText('pisell-saas-register-failed-button-text'),
61
+ onClick: onBackToRegister,
62
+ showGoLogin: true,
63
+ onGoLogin: props.onGoLogin
64
+ });
65
+ }
66
+ return null;
67
+ };
68
+ export default VerifyError;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import '../index.less';
3
+ declare const VerifyingEmailLink: (props: {
4
+ onVerifyLink: () => Promise<void>;
5
+ }) => JSX.Element;
6
+ export default VerifyingEmailLink;
@@ -0,0 +1,16 @@
1
+ import React, { useEffect } from 'react';
2
+ import { locales } from '@pisell/utils';
3
+ import "../index.less";
4
+ var VerifyingEmailLink = function VerifyingEmailLink(props) {
5
+ useEffect(function () {
6
+ props.onVerifyLink();
7
+ }, []);
8
+ return /*#__PURE__*/React.createElement("div", {
9
+ className: "pisell-saas-register-form"
10
+ }, /*#__PURE__*/React.createElement("div", {
11
+ className: "pisell-saas-register-form-main"
12
+ }, /*#__PURE__*/React.createElement("div", {
13
+ className: "pisell-saas-register-form-title"
14
+ }, locales.getText('pisell-saas-register-verifying-email-title'))));
15
+ };
16
+ export default VerifyingEmailLink;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import '../index.less';
3
+ declare const VertifyEmail: (props: {
4
+ email: string;
5
+ onSendEmail: () => Promise<void>;
6
+ onEditEmail: () => void;
7
+ }) => JSX.Element;
8
+ export default VertifyEmail;