@pisell/private-materials 6.3.10 → 6.3.12

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 (316) 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/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/Sales/Summary/utils.d.ts +1 -1
  13. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +27 -3
  14. package/es/components/appointmentBooking/components/Content/index.js +3 -3
  15. package/es/components/appointmentBooking/components/Voucher/index.js +6 -5
  16. package/es/components/appointmentBooking/hooks.js +4 -2
  17. package/es/components/appointmentBooking/index.js +10 -0
  18. package/es/components/booking/addons/index.js +12 -8
  19. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  20. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  21. package/es/components/booking/components/browserSelect/index.js +1 -1
  22. package/es/components/booking/components/footer/index.js +19 -9
  23. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  24. package/es/components/booking/components/voucher/index.js +8 -5
  25. package/es/components/booking/forms/model.js +5 -5
  26. package/es/components/booking/forms/table/index.d.ts +0 -1
  27. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  28. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  29. package/es/components/booking/info/index.d.ts +0 -1
  30. package/es/components/booking/info/service/like/index.d.ts +0 -1
  31. package/es/components/booking/info/service/like/index.js +1 -1
  32. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  33. package/es/components/booking/info2/service/addService/utils.js +16 -1
  34. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  35. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  36. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  37. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  38. package/es/components/booking/notes/model.js +5 -5
  39. package/es/components/booking/payments/model.js +5 -5
  40. package/es/components/booking/utils.d.ts +2 -2
  41. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  42. package/es/components/eftpos/form/index.d.ts +0 -1
  43. package/es/components/eftpos/group/index.d.ts +0 -1
  44. package/es/components/eftpos/hooks.d.ts +0 -1
  45. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  46. package/es/components/eftpos/icon/device.d.ts +0 -1
  47. package/es/components/eftpos/receipt/index.d.ts +0 -1
  48. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  49. package/es/components/eftposPay/amount.d.ts +1 -1
  50. package/es/components/eftposPay/app.d.ts +0 -1
  51. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  52. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  53. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  54. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  55. package/es/components/eftposPay/device.d.ts +1 -1
  56. package/es/components/eftposPay/hooks.d.ts +2 -2
  57. package/es/components/eftposPay/store/index.d.ts +3 -3
  58. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  59. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +34 -8
  60. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  62. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  63. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  64. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  65. package/es/components/eventBooking/components/progressBar/index.js +0 -20
  66. package/es/components/listComponent/index.js +5 -5
  67. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +7 -20
  68. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  69. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  70. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  71. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  72. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  73. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  74. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
  75. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -12
  76. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +24 -31
  77. package/es/components/pay/toC/utils.d.ts +1 -1
  78. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  79. package/es/components/productExtension/card/index.js +3 -3
  80. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  81. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  82. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  83. package/es/components/productExtension/fields/Forms/index.js +12 -12
  84. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  85. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  86. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  87. package/es/components/productExtension/server.js +2 -2
  88. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  89. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  90. package/es/components/schedules/calendar/index.js +4 -4
  91. package/es/components/schedules/calendar/serve.js +2 -2
  92. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  93. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  94. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  95. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  96. package/es/components/schedules/components/ResourceList/index.js +1 -1
  97. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  98. package/es/components/schedules/components/Search/index.js +5 -5
  99. package/es/components/schedules/model.js +5 -5
  100. package/es/components/schedules/openHours/index.js +1 -1
  101. package/es/components/schedules/openHours/serve.js +2 -2
  102. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  103. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  104. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  105. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  106. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  107. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  108. package/es/components/schedules/products/index.d.ts +0 -1
  109. package/es/components/schedules/products/serve.js +2 -2
  110. package/es/components/schedules/products/utils.js +5 -5
  111. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  112. package/es/components/schedules/resources/detail/index.js +10 -10
  113. package/es/components/schedules/resources/list/index.js +2 -2
  114. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  115. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  116. package/es/components/schedules/resources/serve.js +2 -2
  117. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  118. package/es/components/schedules/utils.d.ts +1 -1
  119. package/es/components/schedules/utils.js +4 -4
  120. package/es/components/selectModal/index.js +2 -2
  121. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  122. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  123. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  124. package/es/components/wallet/Detail/index.js +250 -64
  125. package/es/components/wallet/Detail/locales.d.ts +51 -0
  126. package/es/components/wallet/Detail/locales.js +57 -3
  127. package/es/components/wallet/Detail/serve.js +5 -1
  128. package/es/components/wallet/components/UsageRules/index.d.ts +23 -0
  129. package/es/components/wallet/components/UsageRules/index.js +147 -0
  130. package/es/components/wallet/components/UsageRules/index.less +157 -0
  131. package/es/components/wallet/components/WalletCard.js +2 -3
  132. package/es/components/wallet/components/index.d.ts +1 -0
  133. package/es/components/wallet/components/index.js +2 -1
  134. package/es/hooks/useComponents.js +1 -1
  135. package/es/index.d.ts +3 -0
  136. package/es/index.js +4 -1
  137. package/es/plus/productSelect/ProductCard/index.less +5 -22
  138. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
  139. package/es/plus/productSelect/components/pisellPriceText/index.js +1 -0
  140. package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
  141. package/es/plus/saasCreateOrganization/components/Header.d.ts +3 -0
  142. package/es/plus/saasCreateOrganization/components/Header.js +62 -0
  143. package/es/plus/saasCreateOrganization/index.d.ts +4 -0
  144. package/es/plus/saasCreateOrganization/index.js +15 -0
  145. package/es/plus/saasCreateOrganization/index.less +55 -0
  146. package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
  147. package/es/plus/saasCreateOrganization/locales.js +14 -0
  148. package/es/plus/saasCreateOrganization/types.d.ts +69 -0
  149. package/es/plus/saasCreateOrganization/types.js +1 -0
  150. package/es/plus/saasLogin/index.d.ts +5 -0
  151. package/es/plus/saasLogin/index.js +165 -0
  152. package/es/plus/saasLogin/index.less +136 -0
  153. package/es/plus/saasLogin/locales.d.ts +51 -0
  154. package/es/plus/saasLogin/locales.js +50 -0
  155. package/es/plus/saasLogin/types.d.ts +62 -0
  156. package/es/plus/saasLogin/types.js +1 -0
  157. package/es/plus/saasLogin/utils.d.ts +35 -0
  158. package/es/plus/saasLogin/utils.js +31 -0
  159. package/es/plus/saasRegister/components/EntryEmail.d.ts +9 -0
  160. package/es/plus/saasRegister/components/EntryEmail.js +92 -0
  161. package/es/plus/saasRegister/components/EntryInfo.d.ts +9 -0
  162. package/es/plus/saasRegister/components/EntryInfo.js +145 -0
  163. package/es/plus/saasRegister/components/GoLogin.d.ts +4 -0
  164. package/es/plus/saasRegister/components/GoLogin.js +27 -0
  165. package/es/plus/saasRegister/components/Header.d.ts +3 -0
  166. package/es/plus/saasRegister/components/Header.js +62 -0
  167. package/es/plus/saasRegister/components/VerifyError.d.ts +8 -0
  168. package/es/plus/saasRegister/components/VerifyError.js +68 -0
  169. package/es/plus/saasRegister/components/VerifyingLink.d.ts +5 -0
  170. package/es/plus/saasRegister/components/VerifyingLink.js +16 -0
  171. package/es/plus/saasRegister/components/VertifyEmail.d.ts +7 -0
  172. package/es/plus/saasRegister/components/VertifyEmail.js +121 -0
  173. package/es/plus/saasRegister/index.d.ts +5 -0
  174. package/es/plus/saasRegister/index.js +246 -0
  175. package/es/plus/saasRegister/index.less +218 -0
  176. package/es/plus/saasRegister/locales.d.ts +117 -0
  177. package/es/plus/saasRegister/locales.js +116 -0
  178. package/es/plus/saasRegister/types.d.ts +114 -0
  179. package/es/plus/saasRegister/types.js +24 -0
  180. package/es/utils/index.d.ts +1 -1
  181. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  182. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  183. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +22 -2
  184. package/lib/components/appointmentBooking/components/Content/index.js +2 -2
  185. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  186. package/lib/components/appointmentBooking/hooks.js +4 -2
  187. package/lib/components/appointmentBooking/index.js +6 -0
  188. package/lib/components/booking/addons/index.js +1 -11
  189. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  190. package/lib/components/booking/components/footer/index.js +15 -8
  191. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  192. package/lib/components/booking/components/voucher/index.js +3 -1
  193. package/lib/components/booking/forms/table/index.d.ts +0 -1
  194. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  195. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  196. package/lib/components/booking/info/index.d.ts +0 -1
  197. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  198. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  199. package/lib/components/booking/info2/service/addService/utils.js +15 -3
  200. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  201. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  202. package/lib/components/booking/utils.d.ts +2 -2
  203. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  204. package/lib/components/eftpos/form/index.d.ts +0 -1
  205. package/lib/components/eftpos/group/index.d.ts +0 -1
  206. package/lib/components/eftpos/hooks.d.ts +0 -1
  207. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  208. package/lib/components/eftpos/icon/device.d.ts +0 -1
  209. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  210. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  211. package/lib/components/eftposPay/amount.d.ts +1 -1
  212. package/lib/components/eftposPay/app.d.ts +0 -1
  213. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  214. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  215. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  216. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  217. package/lib/components/eftposPay/device.d.ts +1 -1
  218. package/lib/components/eftposPay/hooks.d.ts +2 -2
  219. package/lib/components/eftposPay/store/index.d.ts +3 -3
  220. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  221. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +30 -8
  222. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  223. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  224. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  225. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  226. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  227. package/lib/components/eventBooking/components/progressBar/index.js +0 -18
  228. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +7 -11
  229. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  230. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  231. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  232. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  233. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  234. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  235. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
  236. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -9
  237. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -6
  238. package/lib/components/pay/toC/utils.d.ts +1 -1
  239. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  240. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  241. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  242. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  243. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  244. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  245. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  246. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  247. package/lib/components/schedules/products/index.d.ts +0 -1
  248. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  249. package/lib/components/schedules/utils.d.ts +1 -1
  250. package/lib/components/schedules/utils.js +1 -1
  251. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  252. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  253. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  254. package/lib/components/wallet/Detail/index.js +128 -9
  255. package/lib/components/wallet/Detail/locales.d.ts +51 -0
  256. package/lib/components/wallet/Detail/locales.js +57 -3
  257. package/lib/components/wallet/Detail/serve.js +6 -1
  258. package/lib/components/wallet/components/UsageRules/index.d.ts +23 -0
  259. package/lib/components/wallet/components/UsageRules/index.js +113 -0
  260. package/lib/components/wallet/components/UsageRules/index.less +157 -0
  261. package/lib/components/wallet/components/WalletCard.js +1 -1
  262. package/lib/components/wallet/components/index.d.ts +1 -0
  263. package/lib/components/wallet/components/index.js +3 -0
  264. package/lib/index.d.ts +3 -0
  265. package/lib/index.js +9 -0
  266. package/lib/plus/productSelect/ProductCard/index.less +5 -22
  267. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
  268. package/lib/plus/productSelect/components/pisellPriceText/index.js +1 -0
  269. package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
  270. package/lib/plus/saasCreateOrganization/components/Header.d.ts +3 -0
  271. package/lib/plus/saasCreateOrganization/components/Header.js +99 -0
  272. package/lib/plus/saasCreateOrganization/index.d.ts +4 -0
  273. package/lib/plus/saasCreateOrganization/index.js +47 -0
  274. package/lib/plus/saasCreateOrganization/index.less +55 -0
  275. package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
  276. package/lib/plus/saasCreateOrganization/locales.js +38 -0
  277. package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
  278. package/lib/plus/saasCreateOrganization/types.js +17 -0
  279. package/lib/plus/saasLogin/index.d.ts +5 -0
  280. package/lib/plus/saasLogin/index.js +171 -0
  281. package/lib/plus/saasLogin/index.less +136 -0
  282. package/lib/plus/saasLogin/locales.d.ts +51 -0
  283. package/lib/plus/saasLogin/locales.js +74 -0
  284. package/lib/plus/saasLogin/types.d.ts +62 -0
  285. package/lib/plus/saasLogin/types.js +17 -0
  286. package/lib/plus/saasLogin/utils.d.ts +35 -0
  287. package/lib/plus/saasLogin/utils.js +50 -0
  288. package/lib/plus/saasRegister/components/EntryEmail.d.ts +9 -0
  289. package/lib/plus/saasRegister/components/EntryEmail.js +92 -0
  290. package/lib/plus/saasRegister/components/EntryInfo.d.ts +9 -0
  291. package/lib/plus/saasRegister/components/EntryInfo.js +128 -0
  292. package/lib/plus/saasRegister/components/GoLogin.d.ts +4 -0
  293. package/lib/plus/saasRegister/components/GoLogin.js +58 -0
  294. package/lib/plus/saasRegister/components/Header.d.ts +3 -0
  295. package/lib/plus/saasRegister/components/Header.js +99 -0
  296. package/lib/plus/saasRegister/components/VerifyError.d.ts +8 -0
  297. package/lib/plus/saasRegister/components/VerifyError.js +123 -0
  298. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +5 -0
  299. package/lib/plus/saasRegister/components/VerifyingLink.js +44 -0
  300. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +7 -0
  301. package/lib/plus/saasRegister/components/VertifyEmail.js +110 -0
  302. package/lib/plus/saasRegister/index.d.ts +5 -0
  303. package/lib/plus/saasRegister/index.js +205 -0
  304. package/lib/plus/saasRegister/index.less +218 -0
  305. package/lib/plus/saasRegister/locales.d.ts +117 -0
  306. package/lib/plus/saasRegister/locales.js +140 -0
  307. package/lib/plus/saasRegister/types.d.ts +114 -0
  308. package/lib/plus/saasRegister/types.js +54 -0
  309. package/lib/utils/index.d.ts +1 -1
  310. package/lowcode/saas-create-organization/meta.ts +214 -0
  311. package/lowcode/saas-create-organization/snippets.ts +25 -0
  312. package/lowcode/saas-login/meta.ts +370 -0
  313. package/lowcode/saas-login/snippets.ts +38 -0
  314. package/lowcode/saas-register/meta.ts +386 -0
  315. package/lowcode/saas-register/snippets.ts +31 -0
  316. package/package.json +5 -5
@@ -1,9 +1,9 @@
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; }
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
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); }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
7
  import { miniRedux } from "@pisell/utils";
8
8
  var defaultState = {};
9
9
  var _miniRedux = miniRedux({
@@ -1,9 +1,9 @@
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; }
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
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); }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
7
  import { miniRedux } from "@pisell/utils";
8
8
  var defaultState = {};
9
9
  var _miniRedux = miniRedux({
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "success" | "loading" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -13,7 +13,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
13
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
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
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- import React, { useMemo, useState } from 'react';
16
+ import React, { useEffect, useMemo, useState, useRef } from 'react';
17
17
  import { locales } from '@pisell/utils';
18
18
  import { Button, PisellToast } from '@pisell/materials';
19
19
  import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer, useSummary } from "../../../../../Sales";
@@ -26,7 +26,9 @@ import useEngineContext from "../../../../../../hooks/useEngineContext";
26
26
  import "./index.less";
27
27
  import { Toast } from "../../../../../appointmentBooking/utils";
28
28
  var ContinueButton = function ContinueButton() {
29
- var _context$appHelper, _cartData$cartItems;
29
+ var _context$appHelper, _context$appHelper2, _context$appHelper3, _cartData$cartItems;
30
+ // 用于跟踪是否已经订阅了事件,避免重复订阅
31
+ var hasSubscribedRef = useRef(false);
30
32
  var _useSales = useSales(),
31
33
  data = _useSales.data;
32
34
  var _useHolder = useHolder(),
@@ -71,7 +73,10 @@ var ContinueButton = function ContinueButton() {
71
73
  setData = _useSales2.setData,
72
74
  removeSessionStorage = _useSales2.removeSessionStorage;
73
75
  var context = useEngineContext();
74
- var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
76
+ var config = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.constants) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.config) || {};
77
+ var utils = (context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils) || {};
78
+ var pubsub = context.appHelper.utils.pubsub;
79
+ var _ref = ((_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.utils) || {},
75
80
  store = _ref.store,
76
81
  action = _ref.action,
77
82
  getStore = _ref.getStore;
@@ -95,7 +100,7 @@ var ContinueButton = function ContinueButton() {
95
100
  data: params,
96
101
  callback: function () {
97
102
  var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
98
- var _context$appHelper2;
103
+ var _context$appHelper4;
99
104
  var value, result, _result$err;
100
105
  return _regeneratorRuntime().wrap(function _callee$(_context) {
101
106
  while (1) switch (_context.prev = _context.next) {
@@ -108,7 +113,7 @@ var ContinueButton = function ContinueButton() {
108
113
  case 2:
109
114
  value = formatValues({
110
115
  state: data,
111
- platform: context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.constants) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.platform,
116
+ platform: context === null || context === void 0 || (_context$appHelper4 = context.appHelper) === null || _context$appHelper4 === void 0 || (_context$appHelper4 = _context$appHelper4.constants) === null || _context$appHelper4 === void 0 ? void 0 : _context$appHelper4.platform,
112
117
  excludeDisabled: false,
113
118
  extra: {
114
119
  relation_forms: e
@@ -395,7 +400,7 @@ var ContinueButton = function ContinueButton() {
395
400
  */
396
401
  var handleContinue = /*#__PURE__*/function () {
397
402
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
398
- var _context$appHelper3, _deposit$protocols, value, checkRes, emptyHolders;
403
+ var _context$appHelper5, _deposit$protocols, value, checkRes, emptyHolders;
399
404
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
400
405
  while (1) switch (_context6.prev = _context6.next) {
401
406
  case 0:
@@ -405,7 +410,7 @@ var ContinueButton = function ContinueButton() {
405
410
  }
406
411
  value = formatValues({
407
412
  state: data,
408
- platform: context === null || context === void 0 || (_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.constants) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.platform
413
+ platform: context === null || context === void 0 || (_context$appHelper5 = context.appHelper) === null || _context$appHelper5 === void 0 || (_context$appHelper5 = _context$appHelper5.constants) === null || _context$appHelper5 === void 0 ? void 0 : _context$appHelper5.platform
409
414
  }); // 如果未同意定金政策,则提示
410
415
  if (!(deposit !== null && deposit !== void 0 && deposit.hasDeposit && (deposit === null || deposit === void 0 || (_deposit$protocols = deposit.protocols) === null || _deposit$protocols === void 0 ? void 0 : _deposit$protocols.length) > 0 && !isAgreeDepositPolicy)) {
411
416
  _context6.next = 5;
@@ -481,6 +486,27 @@ var ContinueButton = function ContinueButton() {
481
486
  return _ref7.apply(this, arguments);
482
487
  };
483
488
  }();
489
+ var handleSubmit = function handleSubmit() {
490
+ var _utils$businessUtils, _utils$businessUtils$;
491
+ // 如果用户是guest用户,下单时则拉起注册弹窗
492
+ if (utils !== null && utils !== void 0 && (_utils$businessUtils = utils.businessUtils) !== null && _utils$businessUtils !== void 0 && (_utils$businessUtils$ = _utils$businessUtils.isGuestUser) !== null && _utils$businessUtils$ !== void 0 && _utils$businessUtils$.call(_utils$businessUtils)) {
493
+ var _utils$businessUtils2, _utils$businessUtils3;
494
+ // 避免重复订阅
495
+ if (!hasSubscribedRef.current) {
496
+ pubsub.subscribe('bind.guest.user', handleContinue);
497
+ hasSubscribedRef.current = true;
498
+ }
499
+ utils === null || utils === void 0 || (_utils$businessUtils2 = utils.businessUtils) === null || _utils$businessUtils2 === void 0 || (_utils$businessUtils3 = _utils$businessUtils2.openRegisterModal) === null || _utils$businessUtils3 === void 0 || _utils$businessUtils3.call(_utils$businessUtils2, true);
500
+ return;
501
+ }
502
+ handleContinue();
503
+ };
504
+ useEffect(function () {
505
+ return function () {
506
+ pubsub.unsubscribe('bind.guest.user', handleContinue);
507
+ hasSubscribedRef.current = false;
508
+ };
509
+ }, []);
484
510
 
485
511
  /**
486
512
  * @title: 确认按钮文案
@@ -515,7 +541,7 @@ var ContinueButton = function ContinueButton() {
515
541
  size: "large",
516
542
  type: "primary",
517
543
  onClick: function onClick() {
518
- return handleContinue();
544
+ return isLastStep ? handleSubmit() : handleContinue();
519
545
  },
520
546
  loading: confirmLoading
521
547
  }, continueText), /*#__PURE__*/React.createElement(OrderProductModal, {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: () => JSX.Element;
3
2
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -61,26 +61,6 @@ var ProgressBar = function ProgressBar(_ref) {
61
61
  var handleOk = function handleOk() {
62
62
  var _interaction$utils, _interaction$utils$is;
63
63
  if (interaction !== null && interaction !== void 0 && (_interaction$utils = interaction.utils) !== null && _interaction$utils !== void 0 && (_interaction$utils$is = _interaction$utils.isAppEnv) !== null && _interaction$utils$is !== void 0 && _interaction$utils$is.call(_interaction$utils)) {
64
- var url = window.location.href;
65
-
66
- // 如果 url中包含 isByTabbar 删除url中的cacheId 并刷新页面
67
- if (url.includes('isByTabbar')) {
68
- removeSessionStorage === null || removeSessionStorage === void 0 || removeSessionStorage();
69
- var urlParams = new URLSearchParams(window.location.search);
70
- urlParams.delete('cacheId');
71
- setOpen(false);
72
- interaction.utils.postMessageToApp({
73
- module: 'global',
74
- key: 'openNative',
75
- data: {
76
- link: {
77
- page: "home"
78
- }
79
- }
80
- });
81
- window.location.href = window.location.pathname + '?' + urlParams.toString();
82
- return;
83
- }
84
64
  interaction.utils.postMessageToApp({
85
65
  module: 'global',
86
66
  key: 'paymentResultAction',
@@ -1,9 +1,9 @@
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; }
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
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); }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
7
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
8
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
9
  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); }
@@ -15,7 +15,7 @@ import ThreedsLoading from "../MWCreditCard/TDSPay/ThreedsLoading";
15
15
  import { Context } from "../../model";
16
16
  import { getPayGroupParamsFromStorage } from "../../payGroup";
17
17
  import useEngineContext from "../../../../../hooks/useEngineContext";
18
- import { clientPayment, formatFranchiseeRoute } from "../../utils";
18
+ import { formatFranchiseeRoute } from "../../utils";
19
19
  /**
20
20
  * @title: 谷歌支付
21
21
  * @description:
@@ -26,7 +26,7 @@ import { clientPayment, formatFranchiseeRoute } from "../../utils";
26
26
  * @Date: 2024-08-16 11:01
27
27
  */
28
28
  var GooglePay = function GooglePay(props, ref) {
29
- var _context$appHelper, _context$appHelper2;
29
+ var _context$appHelper;
30
30
  var _useContext = useContext(Context),
31
31
  state = _useContext.state;
32
32
  var _useState = useState(false),
@@ -36,8 +36,6 @@ var GooglePay = function GooglePay(props, ref) {
36
36
  var context = useEngineContext();
37
37
  var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.constants) || {},
38
38
  config = _ref.config;
39
- var _context$appHelper$ut = (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils,
40
- interaction = _context$appHelper$ut.interaction;
41
39
 
42
40
  /**
43
41
  * @title: 初始化
@@ -49,34 +47,23 @@ var GooglePay = function GooglePay(props, ref) {
49
47
  */
50
48
  var init = /*#__PURE__*/function () {
51
49
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
52
- var _utils$getStore, _interaction$utils, _interaction$utils$is, _interaction$utils2, _interaction$utils2$i;
50
+ var _utils$getStore;
53
51
  var payGroup, utils, dvaStore, values, _dvaStore$core, _dvaStore$core2, _state$payGroup, locale, shopId, currentURL, linkElement, shop_domain, _href;
54
52
  return _regeneratorRuntime().wrap(function _callee$(_context) {
55
53
  while (1) switch (_context.prev = _context.next) {
56
54
  case 0:
57
55
  payGroup = _ref2.payGroup;
56
+ setOpen(true);
58
57
  utils = context.appHelper.utils || {};
59
58
  dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState(); // 获取交易组
60
59
  values = getPayGroupParamsFromStorage(payGroup.order_id);
61
- if (!(interaction !== null && interaction !== void 0 && (_interaction$utils = interaction.utils) !== null && _interaction$utils !== void 0 && (_interaction$utils$is = _interaction$utils.isAppEnv) !== null && _interaction$utils$is !== void 0 && _interaction$utils$is.call(_interaction$utils) && (interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$i = _interaction$utils2.isAndroid_ios) === null || _interaction$utils2$i === void 0 ? void 0 : _interaction$utils2$i.call(_interaction$utils2)) === 'android')) {
62
- _context.next = 6;
63
- break;
64
- }
65
- return _context.abrupt("return", clientPayment({
66
- order_id: payGroup.order_id,
67
- type: 'google_pay',
68
- values: values,
69
- interaction: interaction
70
- }));
71
- case 6:
72
- setOpen(true);
73
60
  if (values) {
74
- _context.next = 10;
61
+ _context.next = 8;
75
62
  break;
76
63
  }
77
64
  setOpen(false);
78
65
  return _context.abrupt("return");
79
- case 10:
66
+ case 8:
80
67
  try {
81
68
  locale = ((_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en';
82
69
  shopId = (_dvaStore$core2 = dvaStore.core) === null || _dvaStore$core2 === void 0 || (_dvaStore$core2 = _dvaStore$core2.core) === null || _dvaStore$core2 === void 0 || (_dvaStore$core2 = _dvaStore$core2.shop) === null || _dvaStore$core2 === void 0 ? void 0 : _dvaStore$core2.id;
@@ -91,7 +78,7 @@ var GooglePay = function GooglePay(props, ref) {
91
78
  } catch (err) {
92
79
  setOpen(false);
93
80
  }
94
- case 11:
81
+ case 9:
95
82
  case "end":
96
83
  return _context.stop();
97
84
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StripePayment: () => JSX.Element;
3
2
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PageLoading: () => JSX.Element;
3
2
  export default PageLoading;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PaymentRequestForm: () => JSX.Element | null;
3
2
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -10,7 +10,6 @@ export interface WalletPassListProps {
10
10
  walletSetting: {
11
11
  name: string;
12
12
  };
13
- onChangeDebounce?: boolean;
14
13
  }
15
14
  export declare type WalletPassListRef = {
16
15
  init: (params: MachineCodeListParams, formatList?: (val: WalletPassDataType[]) => WalletPassDataType[]) => void;
@@ -20,10 +20,7 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  onChange = props.onChange,
21
21
  propsData = props.data,
22
22
  value = props.value,
23
- walletSetting = props.walletSetting,
24
- onLoadingChange = props.onLoadingChange,
25
- propsLoading = props.loading,
26
- onChangeDebounce = props.onChangeDebounce;
23
+ walletSetting = props.walletSetting;
27
24
  var _useState = useState(propsData || []),
28
25
  _useState2 = _slicedToArray(_useState, 2),
29
26
  data = _useState2[0],
@@ -37,9 +34,6 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
37
34
  setData(propsData);
38
35
  }
39
36
  }, [propsData]);
40
- useEffect(function () {
41
- setLoading(!!propsLoading);
42
- }, [propsLoading]);
43
37
  var getList = /*#__PURE__*/function () {
44
38
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params, formatList) {
45
39
  var list;
@@ -90,9 +84,6 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
90
84
  init: init
91
85
  };
92
86
  });
93
- useEffect(function () {
94
- onLoadingChange === null || onLoadingChange === void 0 || onLoadingChange(loading);
95
- }, [loading]);
96
87
 
97
88
  /**
98
89
  * 拆分出可用的和不可用的列表
@@ -140,8 +131,7 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
140
131
  value: value,
141
132
  onChange: handleChange,
142
133
  showEmpty: data.length === 0,
143
- empty: empty,
144
- onChangeDebounce: onChangeDebounce
134
+ empty: empty
145
135
  }), !!disabledList.length && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
146
136
  className: "pisell-walletPass-list-disabled"
147
137
  }, locales.getText('tocPay.text.walletPassDisabled')), /*#__PURE__*/React.createElement(PisellCardList, {