@fluid-app/portal-sdk 0.1.247 → 0.1.249

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 (257) hide show
  1. package/dist/{fluid-pay-api-adapter-CJ7-I8k-.mjs → AddressAutocompleteInput-B0qLrCHN.mjs} +153 -3
  2. package/dist/AddressAutocompleteInput-B0qLrCHN.mjs.map +1 -0
  3. package/dist/{fluid-pay-api-adapter-D63KLi5c.cjs → AddressAutocompleteInput-CbpNjpwB.cjs} +157 -1
  4. package/dist/AddressAutocompleteInput-CbpNjpwB.cjs.map +1 -0
  5. package/dist/{AlertWidget-CbhrQa9Z.mjs → AlertWidget-CcIBGBik.mjs} +3 -3
  6. package/dist/{AlertWidget-CbhrQa9Z.mjs.map → AlertWidget-CcIBGBik.mjs.map} +1 -1
  7. package/dist/{AppDownloadScreen-DPnbWP5G.mjs → AppDownloadScreen-ZxlnSAZ6.mjs} +3 -3
  8. package/dist/{AppDownloadScreen-DPnbWP5G.mjs.map → AppDownloadScreen-ZxlnSAZ6.mjs.map} +1 -1
  9. package/dist/{AppNavigationContext-DNod9mf6.mjs → AppNavigationContext-BcZZMtV6.mjs} +1 -1
  10. package/dist/{AppNavigationContext-DNod9mf6.mjs.map → AppNavigationContext-BcZZMtV6.mjs.map} +1 -1
  11. package/dist/{BulletListWidget-qvZIZ_B-.mjs → BulletListWidget-mRwUgtzN.mjs} +3 -3
  12. package/dist/{BulletListWidget-qvZIZ_B-.mjs.map → BulletListWidget-mRwUgtzN.mjs.map} +1 -1
  13. package/dist/{CalendarWidget-C03VcDLQ.mjs → CalendarWidget-Cn3Ngl8_.mjs} +5 -5
  14. package/dist/{CalendarWidget-C03VcDLQ.mjs.map → CalendarWidget-Cn3Ngl8_.mjs.map} +1 -1
  15. package/dist/{CardWidget-2wcjCf2M.mjs → CardWidget-DHTqvQPa.mjs} +4 -4
  16. package/dist/{CardWidget-2wcjCf2M.mjs.map → CardWidget-DHTqvQPa.mjs.map} +1 -1
  17. package/dist/{CarouselWidget-Cn5P4FVN.mjs → CarouselWidget-C0X-nFyW.mjs} +5 -5
  18. package/dist/{CarouselWidget-Cn5P4FVN.mjs.map → CarouselWidget-C0X-nFyW.mjs.map} +1 -1
  19. package/dist/{CatchUpWidget-B9CI7lq0.mjs → CatchUpWidget-BkeZR91e.mjs} +5 -5
  20. package/dist/{CatchUpWidget-B9CI7lq0.mjs.map → CatchUpWidget-BkeZR91e.mjs.map} +1 -1
  21. package/dist/{ChartWidget-obje-Xj9.mjs → ChartWidget-Ci4Q0Ig-.mjs} +4 -4
  22. package/dist/{ChartWidget-obje-Xj9.mjs.map → ChartWidget-Ci4Q0Ig-.mjs.map} +1 -1
  23. package/dist/{ContactsScreen-DuhDzRtI.mjs → ContactsScreen-Bq8zrA8k.mjs} +11 -11
  24. package/dist/{ContactsScreen-DuhDzRtI.mjs.map → ContactsScreen-Bq8zrA8k.mjs.map} +1 -1
  25. package/dist/{ContainerWidget-DNenbORS.mjs → ContainerWidget-cbX_KEOQ.mjs} +4 -4
  26. package/dist/{ContainerWidget-DNenbORS.mjs.map → ContainerWidget-cbX_KEOQ.mjs.map} +1 -1
  27. package/dist/{CustomersScreen-BJOBG5f5.mjs → CustomersScreen-0uI1R9lm.mjs} +2 -2
  28. package/dist/{CustomersScreen-BJOBG5f5.mjs.map → CustomersScreen-0uI1R9lm.mjs.map} +1 -1
  29. package/dist/{EmbedWidget-LYnd3TZD.mjs → EmbedWidget-BwR9mICd.mjs} +3 -3
  30. package/dist/{EmbedWidget-LYnd3TZD.mjs.map → EmbedWidget-BwR9mICd.mjs.map} +1 -1
  31. package/dist/FluidProvider-DGxCCmVB.cjs +17240 -0
  32. package/dist/FluidProvider-DGxCCmVB.cjs.map +1 -0
  33. package/dist/FluidProvider-DS1QKy5j.mjs +6371 -0
  34. package/dist/FluidProvider-DS1QKy5j.mjs.map +1 -0
  35. package/dist/{ImageWidget-vNWT_O1E.mjs → ImageWidget-DmaAQZBK.mjs} +4 -4
  36. package/dist/{ImageWidget-vNWT_O1E.mjs.map → ImageWidget-DmaAQZBK.mjs.map} +1 -1
  37. package/dist/{InfiniteScrollSentinel-D0XRJi51.mjs → InfiniteScrollSentinel-BHIgNtHI.mjs} +2 -2
  38. package/dist/{InfiniteScrollSentinel-D0XRJi51.mjs.map → InfiniteScrollSentinel-BHIgNtHI.mjs.map} +1 -1
  39. package/dist/{LayoutWidget-UI5fbsx4.mjs → LayoutWidget-CxaMx1nd.mjs} +4 -4
  40. package/dist/{LayoutWidget-UI5fbsx4.mjs.map → LayoutWidget-CxaMx1nd.mjs.map} +1 -1
  41. package/dist/{LinkWidget-CO-Cxf7Z.mjs → LinkWidget-utkZrvAV.mjs} +5 -5
  42. package/dist/{LinkWidget-CO-Cxf7Z.mjs.map → LinkWidget-utkZrvAV.mjs.map} +1 -1
  43. package/dist/{ListWidget-f88QhcGI.mjs → ListWidget-CNAxW_3c.mjs} +6 -6
  44. package/dist/{ListWidget-f88QhcGI.mjs.map → ListWidget-CNAxW_3c.mjs.map} +1 -1
  45. package/dist/{MediaRenderer-DMdb_5xw.mjs → MediaRenderer-13Jlf38P.mjs} +1 -1
  46. package/dist/{MediaRenderer-DMdb_5xw.mjs.map → MediaRenderer-13Jlf38P.mjs.map} +1 -1
  47. package/dist/{MessagingScreen-DF0Xmv8w.mjs → MessagingScreen-CJ_9yIHK.mjs} +9 -12
  48. package/dist/{MessagingScreen-DF0Xmv8w.mjs.map → MessagingScreen-CJ_9yIHK.mjs.map} +1 -1
  49. package/dist/{MessagingScreen-CYUeWbtR.cjs → MessagingScreen-DeYSVcMd.cjs} +2 -2
  50. package/dist/{MessagingScreen-CYUeWbtR.cjs.map → MessagingScreen-DeYSVcMd.cjs.map} +1 -1
  51. package/dist/{MessagingScreen-13jwskAp.cjs → MessagingScreen-FHwytr8B.cjs} +3 -3
  52. package/dist/MessagingScreen-s7CL9vPN.mjs +47 -0
  53. package/dist/{MySiteScreen-CK84vXa9.mjs → MySiteScreen-DX8tBz8Z.mjs} +7 -7
  54. package/dist/{MySiteScreen-CK84vXa9.mjs.map → MySiteScreen-DX8tBz8Z.mjs.map} +1 -1
  55. package/dist/{MySiteWidget-CQNASVaF.mjs → MySiteWidget-C0n9cSw7.mjs} +5 -5
  56. package/dist/{MySiteWidget-CQNASVaF.mjs.map → MySiteWidget-C0n9cSw7.mjs.map} +1 -1
  57. package/dist/{NestedWidget-RuyrOrFn.mjs → NestedWidget-BMKtDP_4.mjs} +6 -6
  58. package/dist/{NestedWidget-RuyrOrFn.mjs.map → NestedWidget-BMKtDP_4.mjs.map} +1 -1
  59. package/dist/{OrdersScreen-b-ZC4_NI.mjs → OrdersScreen-B3vtWt8_.mjs} +7 -7
  60. package/dist/{OrdersScreen-b-ZC4_NI.mjs.map → OrdersScreen-B3vtWt8_.mjs.map} +1 -1
  61. package/dist/{PointsWidget-BwA6aGVZ.mjs → PointsWidget-CaWklfIH.mjs} +5 -5
  62. package/dist/{PointsWidget-BwA6aGVZ.mjs.map → PointsWidget-CaWklfIH.mjs.map} +1 -1
  63. package/dist/{PortalProductsApiProvider-BFdHFvog.mjs → PortalProductsApiProvider-CNAu2pAb.mjs} +2 -2
  64. package/dist/{PortalProductsApiProvider-BFdHFvog.mjs.map → PortalProductsApiProvider-CNAu2pAb.mjs.map} +1 -1
  65. package/dist/{PortalTenantClientProvider-CjJzBCTL.mjs → PortalTenantClientProvider-Bni6J3KS.mjs} +1 -1
  66. package/dist/{PortalTenantClientProvider-CjJzBCTL.mjs.map → PortalTenantClientProvider-Bni6J3KS.mjs.map} +1 -1
  67. package/dist/{ProfileScreen-B-gHp1AD.cjs → ProfileScreen-BJzW-gC_.cjs} +4 -4
  68. package/dist/{ProfileScreen-OmqrjseW.cjs → ProfileScreen-DucZeLWI.cjs} +40 -20
  69. package/dist/ProfileScreen-DucZeLWI.cjs.map +1 -0
  70. package/dist/{ProfileScreen-CbnDuoYA.mjs → ProfileScreen-IPuXlf9V.mjs} +33 -18
  71. package/dist/ProfileScreen-IPuXlf9V.mjs.map +1 -0
  72. package/dist/ProfileScreen-m3fTsHyw.mjs +48 -0
  73. package/dist/{QuickLinksWidget-CJqwiBJ7.mjs → QuickLinksWidget-D0b33oyn.mjs} +3 -3
  74. package/dist/{QuickLinksWidget-CJqwiBJ7.mjs.map → QuickLinksWidget-D0b33oyn.mjs.map} +1 -1
  75. package/dist/{QuickShareWidget-DKE7Tba2.mjs → QuickShareWidget-DJ0Y71om.mjs} +3 -3
  76. package/dist/{QuickShareWidget-DKE7Tba2.mjs.map → QuickShareWidget-DJ0Y71om.mjs.map} +1 -1
  77. package/dist/{RecentActivityWidget-D1AlZgfV.mjs → RecentActivityWidget-Rpj33TiN.mjs} +5 -5
  78. package/dist/{RecentActivityWidget-D1AlZgfV.mjs.map → RecentActivityWidget-Rpj33TiN.mjs.map} +1 -1
  79. package/dist/{ScreenHeaderContext-Cemdo7bM.mjs → ScreenHeaderContext-4WYXIqQ5.mjs} +1 -1
  80. package/dist/{ScreenHeaderContext-Cemdo7bM.mjs.map → ScreenHeaderContext-4WYXIqQ5.mjs.map} +1 -1
  81. package/dist/{ScreenRenderer-Cl2aAJ7D.mjs → ScreenRenderer-BQal-fnZ.mjs} +2 -2
  82. package/dist/{ScreenRenderer-Cl2aAJ7D.mjs.map → ScreenRenderer-BQal-fnZ.mjs.map} +1 -1
  83. package/dist/{SearchSort-CokMCrhy.mjs → SearchSort-B5Jrk5lW.mjs} +2 -2
  84. package/dist/{SearchSort-CokMCrhy.mjs.map → SearchSort-B5Jrk5lW.mjs.map} +1 -1
  85. package/dist/{SeparatorWidget-gVlyr1MV.mjs → SeparatorWidget-Bgzsloji.mjs} +3 -3
  86. package/dist/{SeparatorWidget-gVlyr1MV.mjs.map → SeparatorWidget-Bgzsloji.mjs.map} +1 -1
  87. package/dist/ShareablesScreen-Cd8chxk4.mjs +13 -0
  88. package/dist/{ShareablesScreen-BZZ-RT71.mjs → ShareablesScreen-NMoZH9ed.mjs} +14 -18
  89. package/dist/{ShareablesScreen-BZZ-RT71.mjs.map → ShareablesScreen-NMoZH9ed.mjs.map} +1 -1
  90. package/dist/ShopScreen-BvSiWgsJ.mjs +47 -0
  91. package/dist/{ShopScreen-DxTDjfkY.cjs → ShopScreen-CM3DDvLt.cjs} +223 -62
  92. package/dist/ShopScreen-CM3DDvLt.cjs.map +1 -0
  93. package/dist/{ShopScreen-IhDmoEKQ.cjs → ShopScreen-Cz0dbkhp.cjs} +3 -3
  94. package/dist/{ShopScreen-DBInpm5S.mjs → ShopScreen-DJANOOka.mjs} +231 -75
  95. package/dist/ShopScreen-DJANOOka.mjs.map +1 -0
  96. package/dist/{SpacerWidget-BY7ywGP4.mjs → SpacerWidget-C1byII28.mjs} +2 -2
  97. package/dist/{SpacerWidget-BY7ywGP4.mjs.map → SpacerWidget-C1byII28.mjs.map} +1 -1
  98. package/dist/{SubscriptionsScreen-dhnfYn4L.cjs → SubscriptionsScreen-BgKpfzi0.cjs} +3 -3
  99. package/dist/{SubscriptionsScreen-B88_dLfE.cjs → SubscriptionsScreen-DCUwHrdm.cjs} +22 -32
  100. package/dist/SubscriptionsScreen-DCUwHrdm.cjs.map +1 -0
  101. package/dist/{SubscriptionsScreen-DK9-h3Cz.mjs → SubscriptionsScreen-rZxqb0eR.mjs} +21 -31
  102. package/dist/{SubscriptionsScreen-DK9-h3Cz.mjs.map → SubscriptionsScreen-rZxqb0eR.mjs.map} +1 -1
  103. package/dist/{TableWidget-dfUvhH0S.mjs → TableWidget-CNCHDRrR.mjs} +6 -6
  104. package/dist/{TableWidget-dfUvhH0S.mjs.map → TableWidget-CNCHDRrR.mjs.map} +1 -1
  105. package/dist/{TextWidget-BteaMIsX.mjs → TextWidget-CfLUQr6V.mjs} +3 -3
  106. package/dist/{TextWidget-BteaMIsX.mjs.map → TextWidget-CfLUQr6V.mjs.map} +1 -1
  107. package/dist/{ToDoWidget-BciI_D70.mjs → ToDoWidget-C3lh-3SB.mjs} +7 -7
  108. package/dist/{ToDoWidget-BciI_D70.mjs.map → ToDoWidget-C3lh-3SB.mjs.map} +1 -1
  109. package/dist/{UpgradeScreen-X6j0_625.mjs → UpgradeScreen-D_CM1n1M.mjs} +3 -3
  110. package/dist/{UpgradeScreen-X6j0_625.mjs.map → UpgradeScreen-D_CM1n1M.mjs.map} +1 -1
  111. package/dist/{VideoWidget-Dj9wue7j.mjs → VideoWidget-DKhqN_Rx.mjs} +4 -4
  112. package/dist/{VideoWidget-Dj9wue7j.mjs.map → VideoWidget-DKhqN_Rx.mjs.map} +1 -1
  113. package/dist/{WidgetInteractionContext-B1mELhQ_.mjs → WidgetInteractionContext-pLGNr8_2.mjs} +1 -1
  114. package/dist/{WidgetInteractionContext-B1mELhQ_.mjs.map → WidgetInteractionContext-pLGNr8_2.mjs.map} +1 -1
  115. package/dist/api-context-3GmfqvIB.mjs +22 -0
  116. package/dist/api-context-3GmfqvIB.mjs.map +1 -0
  117. package/dist/api-context-BkBvyFVK.cjs +46 -0
  118. package/dist/api-context-BkBvyFVK.cjs.map +1 -0
  119. package/dist/{components-CjgEvBYG.mjs → components-D2h9u3tH.mjs} +3 -3
  120. package/dist/{components-CjgEvBYG.mjs.map → components-D2h9u3tH.mjs.map} +1 -1
  121. package/dist/de-CH__cDep.mjs +6 -0
  122. package/dist/de-CH__cDep.mjs.map +1 -0
  123. package/dist/de-CqKH8kwp.cjs +12 -0
  124. package/dist/de-CqKH8kwp.cjs.map +1 -0
  125. package/dist/{dist-CTLDCXCc.mjs → dist-Di1hciu4.mjs} +1 -1
  126. package/dist/{dist-CTLDCXCc.mjs.map → dist-Di1hciu4.mjs.map} +1 -1
  127. package/dist/el-CIrAhB-W.cjs +12 -0
  128. package/dist/el-CIrAhB-W.cjs.map +1 -0
  129. package/dist/el-De9QZiqh.mjs +6 -0
  130. package/dist/el-De9QZiqh.mjs.map +1 -0
  131. package/dist/{error-state-DYzHx8tt.mjs → error-state--Z2OlDFr.mjs} +1 -1
  132. package/dist/{error-state-DYzHx8tt.mjs.map → error-state--Z2OlDFr.mjs.map} +1 -1
  133. package/dist/es-4Wsa13tV.cjs +12 -0
  134. package/dist/es-4Wsa13tV.cjs.map +1 -0
  135. package/dist/{es-BXxGlAp6.mjs → es-C5dhBJ9E.mjs} +4 -39
  136. package/dist/{es-BXxGlAp6.mjs.map → es-C5dhBJ9E.mjs.map} +1 -1
  137. package/dist/es-CZLh7tET.mjs +6 -0
  138. package/dist/es-CZLh7tET.mjs.map +1 -0
  139. package/dist/fr-BDKPrKKW.cjs +12 -0
  140. package/dist/fr-BDKPrKKW.cjs.map +1 -0
  141. package/dist/fr-CIfM_0kG.mjs +6 -0
  142. package/dist/fr-CIfM_0kG.mjs.map +1 -0
  143. package/dist/he-5dq6lV2h.cjs +12 -0
  144. package/dist/he-5dq6lV2h.cjs.map +1 -0
  145. package/dist/he-BTK1iEJE.mjs +6 -0
  146. package/dist/he-BTK1iEJE.mjs.map +1 -0
  147. package/dist/hu-CrZGIbz9.mjs +6 -0
  148. package/dist/hu-CrZGIbz9.mjs.map +1 -0
  149. package/dist/hu-Dpgriy5N.cjs +12 -0
  150. package/dist/hu-Dpgriy5N.cjs.map +1 -0
  151. package/dist/id-B-LeCfHj.mjs +6 -0
  152. package/dist/id-B-LeCfHj.mjs.map +1 -0
  153. package/dist/id-Ba-0RT7y.cjs +12 -0
  154. package/dist/id-Ba-0RT7y.cjs.map +1 -0
  155. package/dist/index.cjs +56 -19
  156. package/dist/index.cjs.map +1 -1
  157. package/dist/index.d.cts +8 -8
  158. package/dist/index.d.cts.map +1 -1
  159. package/dist/index.d.mts +8 -8
  160. package/dist/index.d.mts.map +1 -1
  161. package/dist/index.mjs +127 -90
  162. package/dist/index.mjs.map +1 -1
  163. package/dist/it-CaxIV-R4.cjs +12 -0
  164. package/dist/it-CaxIV-R4.cjs.map +1 -0
  165. package/dist/it-rIkFmAF3.mjs +6 -0
  166. package/dist/it-rIkFmAF3.mjs.map +1 -0
  167. package/dist/ja--J_bhk3I.mjs +6 -0
  168. package/dist/ja--J_bhk3I.mjs.map +1 -0
  169. package/dist/ja-Lcg_Qqtj.cjs +12 -0
  170. package/dist/ja-Lcg_Qqtj.cjs.map +1 -0
  171. package/dist/ko-B2fghWQ9.mjs +6 -0
  172. package/dist/ko-B2fghWQ9.mjs.map +1 -0
  173. package/dist/ko-CFu0TjJO.cjs +12 -0
  174. package/dist/ko-CFu0TjJO.cjs.map +1 -0
  175. package/dist/nl-DR9IRXGT.cjs +12 -0
  176. package/dist/nl-DR9IRXGT.cjs.map +1 -0
  177. package/dist/nl-KgHmrRKy.mjs +6 -0
  178. package/dist/nl-KgHmrRKy.mjs.map +1 -0
  179. package/dist/{order-status-badge-xuJ732eH.mjs → order-status-badge-CjX7Qxdk.mjs} +4 -4
  180. package/dist/{order-status-badge-xuJ732eH.mjs.map → order-status-badge-CjX7Qxdk.mjs.map} +1 -1
  181. package/dist/{parse-task-body-DEmYvdNM.mjs → parse-task-body-BK1v2806.mjs} +1 -1
  182. package/dist/{parse-task-body-DEmYvdNM.mjs.map → parse-task-body-BK1v2806.mjs.map} +1 -1
  183. package/dist/pl-BJvDPvs3.mjs +6 -0
  184. package/dist/pl-BJvDPvs3.mjs.map +1 -0
  185. package/dist/pl-DSGSRDM2.cjs +12 -0
  186. package/dist/pl-DSGSRDM2.cjs.map +1 -0
  187. package/dist/{portal_tenant_content-CQQfNOTc.mjs → portal_tenant_content-DPLnrtOG.mjs} +38 -2
  188. package/dist/{portal_tenant_content-CQQfNOTc.mjs.map → portal_tenant_content-DPLnrtOG.mjs.map} +1 -1
  189. package/dist/pt-CmZpxftX.mjs +6 -0
  190. package/dist/pt-CmZpxftX.mjs.map +1 -0
  191. package/dist/pt-Pz_D1HUz.cjs +12 -0
  192. package/dist/pt-Pz_D1HUz.cjs.map +1 -0
  193. package/dist/{purify.es-DzInNL5X.mjs → purify.es-Ba5Ug4-y.mjs} +1 -1
  194. package/dist/{purify.es-DzInNL5X.mjs.map → purify.es-Ba5Ug4-y.mjs.map} +1 -1
  195. package/dist/{query-keys-8SVs82aF.mjs → query-keys-DXle2tm8.mjs} +1 -1
  196. package/dist/{query-keys-8SVs82aF.mjs.map → query-keys-DXle2tm8.mjs.map} +1 -1
  197. package/dist/{registries-Ct8o2YRe.mjs → registries-kvRRUHcO.mjs} +1 -1
  198. package/dist/{registries-Ct8o2YRe.mjs.map → registries-kvRRUHcO.mjs.map} +1 -1
  199. package/dist/{registry-context-CTHUCfEc.mjs → registry-context-Bc-2fQnr.mjs} +1 -1
  200. package/dist/{registry-context-CTHUCfEc.mjs.map → registry-context-Bc-2fQnr.mjs.map} +1 -1
  201. package/dist/ro-BoGeZTac.cjs +12 -0
  202. package/dist/ro-BoGeZTac.cjs.map +1 -0
  203. package/dist/ro-C_4rHVWp.mjs +6 -0
  204. package/dist/ro-C_4rHVWp.mjs.map +1 -0
  205. package/dist/ru-B0lzoBye.mjs +6 -0
  206. package/dist/ru-B0lzoBye.mjs.map +1 -0
  207. package/dist/ru-Cd7LUmcu.cjs +12 -0
  208. package/dist/ru-Cd7LUmcu.cjs.map +1 -0
  209. package/dist/{scroll-arrows-CqDxJ0Pe.mjs → scroll-arrows-D90Miaz_.mjs} +1 -1
  210. package/dist/{scroll-arrows-CqDxJ0Pe.mjs.map → scroll-arrows-D90Miaz_.mjs.map} +1 -1
  211. package/dist/{sortable.esm-C8riJ_zv.mjs → sortable.esm-NmKxJoc7.mjs} +1 -1
  212. package/dist/{sortable.esm-C8riJ_zv.mjs.map → sortable.esm-NmKxJoc7.mjs.map} +1 -1
  213. package/dist/{src-C9vtVoJs.mjs → src-CSFJnkfN.mjs} +1 -1
  214. package/dist/{src-C9vtVoJs.mjs.map → src-CSFJnkfN.mjs.map} +1 -1
  215. package/dist/{src-pgBBOcJa.mjs → src-KINQ78Nj.mjs} +1 -1
  216. package/dist/{src-pgBBOcJa.mjs.map → src-KINQ78Nj.mjs.map} +1 -1
  217. package/dist/th-DwLAQd0u.cjs +12 -0
  218. package/dist/th-DwLAQd0u.cjs.map +1 -0
  219. package/dist/th-QhoPGZ6C.mjs +6 -0
  220. package/dist/th-QhoPGZ6C.mjs.map +1 -0
  221. package/dist/tl-Dsfp243U.mjs +6 -0
  222. package/dist/tl-Dsfp243U.mjs.map +1 -0
  223. package/dist/tl-DwAVpDyB.cjs +12 -0
  224. package/dist/tl-DwAVpDyB.cjs.map +1 -0
  225. package/dist/tr-BFbCmHQZ.cjs +12 -0
  226. package/dist/tr-BFbCmHQZ.cjs.map +1 -0
  227. package/dist/tr-BiolaqkO.mjs +6 -0
  228. package/dist/tr-BiolaqkO.mjs.map +1 -0
  229. package/dist/{use-account-DsTz5BlS.mjs → use-account-CGaDP8xd.mjs} +2 -2
  230. package/dist/{use-account-DsTz5BlS.mjs.map → use-account-CGaDP8xd.mjs.map} +1 -1
  231. package/dist/{use-store-C2KBIS41.mjs → use-store-BVCCB9kx.mjs} +1 -1
  232. package/dist/{use-store-C2KBIS41.mjs.map → use-store-BVCCB9kx.mjs.map} +1 -1
  233. package/dist/zh_CN-Cn-k18Y5.cjs +12 -0
  234. package/dist/zh_CN-Cn-k18Y5.cjs.map +1 -0
  235. package/dist/zh_CN-DcGf3QsR.mjs +6 -0
  236. package/dist/zh_CN-DcGf3QsR.mjs.map +1 -0
  237. package/dist/zh_TW-CIUhIeJP.cjs +12 -0
  238. package/dist/zh_TW-CIUhIeJP.cjs.map +1 -0
  239. package/dist/zh_TW-DFw2O0OX.mjs +6 -0
  240. package/dist/zh_TW-DFw2O0OX.mjs.map +1 -0
  241. package/package.json +17 -14
  242. package/dist/FluidProvider-7J0MNPAs.cjs +0 -2337
  243. package/dist/FluidProvider-7J0MNPAs.cjs.map +0 -1
  244. package/dist/FluidProvider-SBBG4bwO.mjs +0 -2238
  245. package/dist/FluidProvider-SBBG4bwO.mjs.map +0 -1
  246. package/dist/ProfileScreen-CbnDuoYA.mjs.map +0 -1
  247. package/dist/ProfileScreen-OmqrjseW.cjs.map +0 -1
  248. package/dist/ShopScreen-DBInpm5S.mjs.map +0 -1
  249. package/dist/ShopScreen-DxTDjfkY.cjs.map +0 -1
  250. package/dist/SubscriptionsScreen-B88_dLfE.cjs.map +0 -1
  251. package/dist/fluid-pay-api-adapter-CJ7-I8k-.mjs.map +0 -1
  252. package/dist/fluid-pay-api-adapter-D63KLi5c.cjs.map +0 -1
  253. package/dist/pay-api-context-CqKGSXnP.mjs +0 -13
  254. package/dist/pay-api-context-CqKGSXnP.mjs.map +0 -1
  255. package/dist/pay-api-context-_o5ZEXYt.cjs +0 -25
  256. package/dist/pay-api-context-_o5ZEXYt.cjs.map +0 -1
  257. /package/dist/{fields-B_iAnFXl.mjs → fields-FTgjMOdh.mjs} +0 -0
@@ -1,16 +1,35 @@
1
- import { r as __exportAll } from "./es-BXxGlAp6.mjs";
2
- import { n as useFluidContext } from "./FluidProvider-SBBG4bwO.mjs";
3
- import { $ as DropdownMenuSeparator, A as Select, C as Skeleton, Dn as Button, F as RadioGroup, I as RadioGroupItem, J as DropdownMenuContent, M as SelectItem, N as SelectTrigger, P as SelectValue, Q as DropdownMenuRadioItem, X as DropdownMenuLabel, Z as DropdownMenuRadioGroup, dn as BreadcrumbLink, fn as BreadcrumbList, j as SelectContent, ln as Breadcrumb, mn as BreadcrumbSeparator, pn as BreadcrumbPage, q as DropdownMenu, rt as DropdownMenuTrigger, un as BreadcrumbItem, wt as Card } from "./src-pgBBOcJa.mjs";
4
- import { n as useScreenHeaderActions, r as useScreenHeaderBreadcrumbs } from "./ScreenHeaderContext-Cemdo7bM.mjs";
5
- import { t as useStore } from "./use-store-C2KBIS41.mjs";
6
- import { n as useAppNavigation } from "./AppNavigationContext-DNod9mf6.mjs";
7
- import { t as SearchSort } from "./SearchSort-CokMCrhy.mjs";
8
- import { a as usePortalProductCatalog, i as usePortalProductDetail, n as determineProductPrice, r as getProductImageUrl, t as PortalProductsApiProvider } from "./PortalProductsApiProvider-BFdHFvog.mjs";
9
- import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
1
+ import { l as useActiveLocale, n as useFluidContext } from "./FluidProvider-DS1QKy5j.mjs";
2
+ import { $ as DropdownMenuSeparator, A as Select, C as Skeleton, Dn as Button, F as RadioGroup, I as RadioGroupItem, J as DropdownMenuContent, M as SelectItem, N as SelectTrigger, P as SelectValue, Q as DropdownMenuRadioItem, X as DropdownMenuLabel, Z as DropdownMenuRadioGroup, dn as BreadcrumbLink, fn as BreadcrumbList, j as SelectContent, ln as Breadcrumb, mn as BreadcrumbSeparator, pn as BreadcrumbPage, q as DropdownMenu, rt as DropdownMenuTrigger, un as BreadcrumbItem, wt as Card } from "./src-KINQ78Nj.mjs";
3
+ import { n as useScreenHeaderActions, r as useScreenHeaderBreadcrumbs } from "./ScreenHeaderContext-4WYXIqQ5.mjs";
4
+ import { t as useStore } from "./use-store-BVCCB9kx.mjs";
5
+ import { n as useAppNavigation } from "./AppNavigationContext-BcZZMtV6.mjs";
6
+ import { t as SearchSort } from "./SearchSort-B5Jrk5lW.mjs";
7
+ import { a as usePortalProductCatalog, i as usePortalProductDetail, n as determineProductPrice, r as getProductImageUrl, t as PortalProductsApiProvider } from "./PortalProductsApiProvider-CNAu2pAb.mjs";
8
+ import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
10
9
  import { useInfiniteQuery } from "@tanstack/react-query";
11
10
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
12
11
  import { ArrowUpDown, ChevronLeft, ChevronRight, CirclePlay, ShoppingCart } from "lucide-react";
13
12
  import { createPortal } from "react-dom";
13
+ //#region ../../platform/i18n/src/translation-api-context-factory.ts
14
+ function createTranslationContext(domainName) {
15
+ const Ctx = createContext(null);
16
+ function useTranslation() {
17
+ const api = useContext(Ctx);
18
+ if (!api) throw new Error(`use${domainName}Translation must be used within a ${domainName}TranslationProvider`);
19
+ return api;
20
+ }
21
+ return {
22
+ Context: Ctx,
23
+ Provider: Ctx.Provider,
24
+ useTranslation
25
+ };
26
+ }
27
+ //#endregion
28
+ //#region ../../shop/core/src/translation-api-context.ts
29
+ const { Provider, useTranslation } = createTranslationContext("Shop");
30
+ const ShopTranslationProvider = Provider;
31
+ const useShopTranslation = useTranslation;
32
+ //#endregion
14
33
  //#region ../../shop/ui/src/utils/media-helpers.ts
15
34
  const VIDEO_EXTENSIONS = [
16
35
  ".mp4",
@@ -72,10 +91,11 @@ function formatPortalPrice(price, currency) {
72
91
  }
73
92
  function ProductCardContent({ product, countryIso, companyLogoUrl, renderImage = defaultRenderImage$1 }) {
74
93
  const [isHovered, setIsHovered] = useState(false);
94
+ const { t } = useShopTranslation();
75
95
  const isPortal = isPortalProduct(product);
76
96
  const coverImage = isPortal ? getPortalProductCoverImage(product) : getProductImageUrl(product);
77
97
  const isVideo = isVideoUrl(coverImage);
78
- const productName = isPortal ? product.name || "No title available" : product.title || "No title available";
98
+ const productName = isPortal ? product.name || t("no_title") : product.title || t("no_title");
79
99
  let repPrice = null;
80
100
  let price = null;
81
101
  if (isPortal) if (product.wholesale_price) {
@@ -328,18 +348,18 @@ function QuantitySelector({ quantity, setQuantity }) {
328
348
  //#endregion
329
349
  //#region ../../shop/ui/src/components/purchase-options.tsx
330
350
  function PurchaseOptions({ showBuyOnce, showSubscribe, isSubscribe, onSubscribeChange, product_subscription_plans, selectedSubscriptionPlan, onSubscriptionPlanChange, userSelectedSubscribe, wholesalePrice, wholesaleSubscriptionPrice }) {
351
+ const { t } = useShopTranslation();
331
352
  const defaultSubscriptionPlan = useMemo(() => {
332
353
  if (!product_subscription_plans?.length) return null;
333
354
  return product_subscription_plans.find((plan) => plan.default) || product_subscription_plans[0];
334
355
  }, [product_subscription_plans]);
335
356
  const currentSubscriptionPlan = selectedSubscriptionPlan || defaultSubscriptionPlan;
336
- const savingsText = useMemo(() => {
357
+ const savingsPercentage = useMemo(() => {
337
358
  if (wholesalePrice === void 0 || wholesaleSubscriptionPrice === void 0 || wholesalePrice <= 0) return null;
338
359
  const savings = wholesalePrice - wholesaleSubscriptionPrice;
339
360
  if (savings <= 0) return null;
340
- const savingsPercentage = Math.round(savings / wholesalePrice * 100);
341
- if (savingsPercentage <= 0) return null;
342
- return `Save ${savingsPercentage}%`;
361
+ const pct = Math.round(savings / wholesalePrice * 100);
362
+ return pct > 0 ? pct : null;
343
363
  }, [wholesalePrice, wholesaleSubscriptionPrice]);
344
364
  const formatSubscriptionPlan = (plan) => {
345
365
  return `${plan.subscription_plan.billing_interval} ${plan.subscription_plan.billing_interval_unit} (${plan.subscription_plan.name})`;
@@ -373,22 +393,22 @@ function PurchaseOptions({ showBuyOnce, showSubscribe, isSubscribe, onSubscribeC
373
393
  className: `flex items-center justify-center [&_svg]:h-1.5 [&_svg]:w-1.5 [&_svg]:fill-white ${isSubscribe ? "border-contrast bg-contrast text-foreground" : "border-border bg-background text-muted-foreground"}`
374
394
  }), /* @__PURE__ */ jsxs("div", {
375
395
  className: "flex-1",
376
- children: [/* @__PURE__ */ jsxs("div", {
396
+ children: [/* @__PURE__ */ jsx("div", {
377
397
  className: "text-foreground mb-1 text-sm leading-tight font-medium",
378
- children: ["Subscribe", savingsText ? ` & ${savingsText}` : ""]
398
+ children: savingsPercentage ? t("subscribe_and_save", { percentage: savingsPercentage }) : t("subscribe")
379
399
  }), product_subscription_plans?.length > 0 && /* @__PURE__ */ jsxs("div", {
380
400
  className: "bg-muted mt-3 rounded-lg p-2",
381
401
  onClick: (e) => e.stopPropagation(),
382
402
  children: [/* @__PURE__ */ jsx("div", {
383
403
  className: "text-foreground mb-1 text-xs font-medium",
384
- children: "Delivery Frequency:"
404
+ children: t("delivery_frequency")
385
405
  }), /* @__PURE__ */ jsxs(Select, {
386
406
  value: currentSubscriptionPlan?.subscription_plan.id.toString() || "",
387
407
  onValueChange: handleSubscriptionPlanChange,
388
408
  disabled: product_subscription_plans?.length === 1,
389
409
  children: [/* @__PURE__ */ jsx(SelectTrigger, {
390
410
  className: "bg-background text-foreground! w-full text-xs",
391
- children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select delivery schedule" })
411
+ children: /* @__PURE__ */ jsx(SelectValue, { placeholder: t("select_delivery_schedule") })
392
412
  }), /* @__PURE__ */ jsx(SelectContent, { children: subscriptionPlanOptions.map((option) => /* @__PURE__ */ jsx(SelectItem, {
393
413
  value: option.value,
394
414
  children: option.label
@@ -408,7 +428,7 @@ function PurchaseOptions({ showBuyOnce, showSubscribe, isSubscribe, onSubscribeC
408
428
  className: `flex items-center justify-center [&_svg]:h-1.5 [&_svg]:w-1.5 [&_svg]:fill-white ${!isSubscribe ? "border-contrast bg-contrast text-foreground" : "border-border bg-background text-muted-foreground"}`
409
429
  }), /* @__PURE__ */ jsx("div", {
410
430
  className: "text-foreground mb-1 text-sm leading-tight font-medium",
411
- children: "One-Time Purchase"
431
+ children: t("one_time_purchase")
412
432
  })]
413
433
  })
414
434
  })]
@@ -424,32 +444,6 @@ function sanitizeHtml(html) {
424
444
  for (const el of doc.querySelectorAll("*")) for (const attr of [...el.attributes]) if (attr.name.toLowerCase().startsWith("on") || attr.value.toLowerCase().trim().startsWith("javascript:")) el.removeAttribute(attr.name);
425
445
  return doc.body.innerHTML;
426
446
  }
427
- const SORT_OPTIONS = [
428
- {
429
- id: "title_asc",
430
- label: "Title (A-Z)"
431
- },
432
- {
433
- id: "title_desc",
434
- label: "Title (Z-A)"
435
- },
436
- {
437
- id: "price_asc",
438
- label: "Price (Low to High)"
439
- },
440
- {
441
- id: "price_desc",
442
- label: "Price (High to Low)"
443
- },
444
- {
445
- id: "created_at_desc",
446
- label: "Recently Updated"
447
- },
448
- {
449
- id: "created_at_asc",
450
- label: "Oldest Updated"
451
- }
452
- ];
453
447
  const GRID_CLASS = "grid grid-cols-1 gap-8 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-4";
454
448
  function SkeletonGrid({ count = 8 }) {
455
449
  return /* @__PURE__ */ jsx("div", {
@@ -467,6 +461,7 @@ function SkeletonGrid({ count = 8 }) {
467
461
  }
468
462
  function ProductListing({ companyLogoUrl, renderImage, onSelectProduct, cartButton }) {
469
463
  const observerTarget = useRef(null);
464
+ const { t } = useShopTranslation();
470
465
  const catalog = usePortalProductCatalog({ perPage: PAGE_SIZE });
471
466
  const { data, isLoading, isFetchingNextPage, hasNextPage, fetchNextPage, error, isFetched } = useInfiniteQuery({
472
467
  queryKey: catalog.queryKey,
@@ -492,6 +487,32 @@ function ProductListing({ companyLogoUrl, renderImage, onSelectProduct, cartButt
492
487
  return () => observer.disconnect();
493
488
  }, [handleIntersect]);
494
489
  const allProducts = data?.pages.flatMap((page) => page.products) ?? [];
490
+ const sortOptions = useMemo(() => [
491
+ {
492
+ id: "title_asc",
493
+ label: t("sort_title_asc")
494
+ },
495
+ {
496
+ id: "title_desc",
497
+ label: t("sort_title_desc")
498
+ },
499
+ {
500
+ id: "price_asc",
501
+ label: t("sort_price_asc")
502
+ },
503
+ {
504
+ id: "price_desc",
505
+ label: t("sort_price_desc")
506
+ },
507
+ {
508
+ id: "created_at_desc",
509
+ label: t("sort_recent")
510
+ },
511
+ {
512
+ id: "created_at_asc",
513
+ label: t("sort_oldest")
514
+ }
515
+ ], [t]);
495
516
  return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
496
517
  className: "mx-auto px-2 md:px-10",
497
518
  children: /* @__PURE__ */ jsxs("div", {
@@ -502,7 +523,7 @@ function ProductListing({ companyLogoUrl, renderImage, onSelectProduct, cartButt
502
523
  children: /* @__PURE__ */ jsx(SearchSort, {
503
524
  searchValue: catalog.searchTerm,
504
525
  onSearchChange: catalog.setSearchTerm,
505
- placeholder: "Search products..."
526
+ placeholder: t("search_placeholder")
506
527
  })
507
528
  }),
508
529
  /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
@@ -517,12 +538,12 @@ function ProductListing({ companyLogoUrl, renderImage, onSelectProduct, cartButt
517
538
  align: "end",
518
539
  className: "w-60",
519
540
  children: [
520
- /* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Sort By" }),
541
+ /* @__PURE__ */ jsx(DropdownMenuLabel, { children: t("sort_by") }),
521
542
  /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
522
543
  /* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
523
544
  value: catalog.currentSort,
524
545
  onValueChange: catalog.setCurrentSort,
525
- children: SORT_OPTIONS.map((opt) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
546
+ children: sortOptions.map((opt) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
526
547
  value: opt.id,
527
548
  children: opt.label
528
549
  }, opt.id))
@@ -537,14 +558,14 @@ function ProductListing({ companyLogoUrl, renderImage, onSelectProduct, cartButt
537
558
  })
538
559
  }), /* @__PURE__ */ jsx("div", {
539
560
  className: "mx-auto space-y-8 px-2 md:px-10 md:py-8",
540
- children: isLoading ? /* @__PURE__ */ jsx(SkeletonGrid, {}) : error ? /* @__PURE__ */ jsxs("p", {
561
+ children: isLoading ? /* @__PURE__ */ jsx(SkeletonGrid, {}) : error ? /* @__PURE__ */ jsx("p", {
541
562
  className: "mx-auto my-6 rounded-lg bg-red-100 px-3 py-2 text-red-500",
542
- children: ["Error: ", error.message]
563
+ children: t("error_generic")
543
564
  }) : isFetched && allProducts.length === 0 ? /* @__PURE__ */ jsx("div", {
544
565
  className: "flex flex-col items-center justify-center py-8 text-center",
545
566
  children: /* @__PURE__ */ jsx("p", {
546
567
  className: "text-muted-foreground text-sm",
547
- children: catalog.searchTerm ? `No products match "${catalog.searchTerm}". Try a different search term.` : "There are no products available at the moment."
568
+ children: catalog.searchTerm ? t("no_search_results", { term: catalog.searchTerm }) : t("no_products")
548
569
  })
549
570
  }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
550
571
  /* @__PURE__ */ jsx("div", {
@@ -637,6 +658,7 @@ function ProductDetail({ productId, renderImage }) {
637
658
  const [selections, setSelections] = useState({});
638
659
  const [userSelectedSubscribe, setUserSelectedSubscribe] = useState(false);
639
660
  const [selectedSubscriptionPlan, setSelectedSubscriptionPlan] = useState(void 0);
661
+ const { t } = useShopTranslation();
640
662
  const { product, isLoading, error, images } = usePortalProductDetail({ productId });
641
663
  const variants = useMemo(() => product?.variants ?? [], [product?.variants]);
642
664
  const subscriptionPlans = useMemo(() => product?.subscription_plans ?? [], [product?.subscription_plans]);
@@ -732,10 +754,10 @@ function ProductDetail({ productId, renderImage }) {
732
754
  className: "text-center",
733
755
  children: [/* @__PURE__ */ jsx("h3", {
734
756
  className: "text-foreground mb-2 text-lg font-medium",
735
- children: "Unable to load product"
757
+ children: t("error_loading")
736
758
  }), /* @__PURE__ */ jsx("p", {
737
759
  className: "text-muted-foreground",
738
- children: "Something went wrong. Please try again later."
760
+ children: t("error_generic")
739
761
  })]
740
762
  })
741
763
  });
@@ -745,14 +767,14 @@ function ProductDetail({ productId, renderImage }) {
745
767
  className: "text-center",
746
768
  children: [/* @__PURE__ */ jsx("h3", {
747
769
  className: "text-foreground mb-2 text-lg font-medium",
748
- children: "Product not found"
770
+ children: t("product_not_found")
749
771
  }), /* @__PURE__ */ jsx("p", {
750
772
  className: "text-muted-foreground",
751
- children: "The product you're looking for doesn't exist."
773
+ children: t("product_not_found_description")
752
774
  })]
753
775
  })
754
776
  });
755
- const title = product.name || "Product";
777
+ const title = product.name || t("product_fallback_name");
756
778
  const isBundle = product.bundle === true;
757
779
  const bundleUrl = isBundle && product.canonical_url ? product.canonical_url : null;
758
780
  return /* @__PURE__ */ jsx("div", {
@@ -787,7 +809,7 @@ function ProductDetail({ productId, renderImage }) {
787
809
  className: "pt-2",
788
810
  children: [/* @__PURE__ */ jsx("h3", {
789
811
  className: "text-foreground mb-1 text-sm font-medium",
790
- children: "Product Description"
812
+ children: t("product_description")
791
813
  }), /* @__PURE__ */ jsx("div", {
792
814
  className: "text-foreground mb-3 text-[12px]",
793
815
  dangerouslySetInnerHTML: { __html: sanitizeHtml(product.description ?? "") }
@@ -812,10 +834,10 @@ function ProductDetail({ productId, renderImage }) {
812
834
  onClick: () => {
813
835
  if (bundleUrl) window.open(bundleUrl, "_blank", "noopener,noreferrer");
814
836
  },
815
- children: "Purchase Bundle"
837
+ children: t("purchase_bundle")
816
838
  }), !bundleUrl && /* @__PURE__ */ jsx("p", {
817
839
  className: "text-muted-foreground mt-2 text-center text-xs",
818
- children: "Bundle configuration is unavailable. Please contact support."
840
+ children: t("bundle_unavailable")
819
841
  })]
820
842
  }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
821
843
  /* @__PURE__ */ jsx(PurchaseOptions, {
@@ -845,7 +867,7 @@ function ProductDetail({ productId, renderImage }) {
845
867
  })),
846
868
  children: [/* @__PURE__ */ jsx(SelectTrigger, {
847
869
  className: "w-48 max-w-full",
848
- children: /* @__PURE__ */ jsx(SelectValue, { placeholder: `Select ${group.name}` })
870
+ children: /* @__PURE__ */ jsx(SelectValue, { placeholder: t("select_option", { name: group.name }) })
849
871
  }), /* @__PURE__ */ jsx(SelectContent, {
850
872
  position: "popper",
851
873
  className: "max-h-60",
@@ -883,7 +905,7 @@ function ProductDetail({ productId, renderImage }) {
883
905
  }),
884
906
  selectedVariant?.subscription_only && !selectedVariant?.allow_subscription && /* @__PURE__ */ jsx("div", {
885
907
  className: "text-muted-foreground text-sm",
886
- children: "This product is unavailable for purchase."
908
+ children: t("product_unavailable")
887
909
  }),
888
910
  /* @__PURE__ */ jsx("div", { className: "mt-4 mb-3" }),
889
911
  /* @__PURE__ */ jsxs("div", {
@@ -900,7 +922,7 @@ function ProductDetail({ productId, renderImage }) {
900
922
  "data-fluid-subscribe": isSubscribe,
901
923
  "data-fluid-subscription-plan-id": isSubscribe ? String(resolvedPlanId ?? "") : "",
902
924
  "data-fluid-open-cart-after-add": "false",
903
- children: [/* @__PURE__ */ jsx(ShoppingCart, { className: "h-4 w-4" }), isSubscribe ? "Subscribe" : "Add to Cart"]
925
+ children: [/* @__PURE__ */ jsx(ShoppingCart, { className: "h-4 w-4" }), isSubscribe ? t("subscribe") : t("add_to_cart")]
904
926
  })]
905
927
  })
906
928
  ] })
@@ -1085,13 +1107,138 @@ function ShopContainer({ children, className = "", cartScript, cartWidget }) {
1085
1107
  }) });
1086
1108
  }
1087
1109
  //#endregion
1088
- //#region src/screens/ShopScreen.tsx
1089
- var ShopScreen_exports = /* @__PURE__ */ __exportAll({
1090
- ShopScreen: () => ShopScreen,
1091
- shopScreenPropertySchema: () => shopScreenPropertySchema
1110
+ //#region ../../platform/i18n/src/use-domain-dict.ts
1111
+ function useDomainDict(domain, locale) {
1112
+ const [dict, setDict] = useState(domain.fallback);
1113
+ useEffect(() => {
1114
+ let cancelled = false;
1115
+ if (locale === domain.fallbackLocale) {
1116
+ setDict(domain.fallback);
1117
+ return;
1118
+ }
1119
+ setDict(domain.fallback);
1120
+ domain.load(locale).then((next) => {
1121
+ if (!cancelled) setDict(next);
1122
+ }).catch(() => {
1123
+ if (!cancelled) setDict(domain.fallback);
1124
+ });
1125
+ return () => {
1126
+ cancelled = true;
1127
+ };
1128
+ }, [domain, locale]);
1129
+ return dict;
1130
+ }
1131
+ //#endregion
1132
+ //#region ../../platform/i18n/src/translations.ts
1133
+ function createDomainTranslations(config) {
1134
+ const fallbackLocale = config.fallbackLocale ?? "en";
1135
+ return {
1136
+ fallback: config.fallback,
1137
+ fallbackLocale,
1138
+ async load(locale) {
1139
+ if (locale === fallbackLocale) return config.fallback;
1140
+ const loader = config.loaders?.[locale];
1141
+ if (!loader) return config.fallback;
1142
+ const target = await loader();
1143
+ return {
1144
+ ...config.fallback,
1145
+ ...target
1146
+ };
1147
+ }
1148
+ };
1149
+ }
1150
+ //#endregion
1151
+ //#region ../../platform/i18n/src/static-dict-adapter.ts
1152
+ function createStaticDictAdapter(locale, dict) {
1153
+ return {
1154
+ locale,
1155
+ t(key, ...args) {
1156
+ const template = dict[key] ?? key;
1157
+ const params = args[0];
1158
+ if (!params) return template;
1159
+ return template.replace(/\{\{(\w+)\}\}/g, (match, name) => name in params ? String(params[name]) : match);
1160
+ }
1161
+ };
1162
+ }
1163
+ //#endregion
1164
+ //#region ../../shop/core/src/translation-adapter.ts
1165
+ const shopDomain = createDomainTranslations({
1166
+ fallback: {
1167
+ breadcrumb: "Shop",
1168
+ product_fallback_name: "Product",
1169
+ search_placeholder: "Search products...",
1170
+ sort_by: "Sort By",
1171
+ sort_title_asc: "Title (A-Z)",
1172
+ sort_title_desc: "Title (Z-A)",
1173
+ sort_price_asc: "Price (Low to High)",
1174
+ sort_price_desc: "Price (High to Low)",
1175
+ sort_recent: "Recently Updated",
1176
+ sort_oldest: "Oldest Updated",
1177
+ no_products: "There are no products available at the moment.",
1178
+ no_search_results: "No products match \"{{term}}\". Try a different search term.",
1179
+ error_loading: "Unable to load product",
1180
+ error_generic: "Something went wrong. Please try again later.",
1181
+ product_not_found: "Product not found",
1182
+ product_not_found_description: "The product you're looking for doesn't exist.",
1183
+ product_description: "Product Description",
1184
+ no_title: "No title available",
1185
+ add_to_cart: "Add to Cart",
1186
+ subscribe: "Subscribe",
1187
+ subscribe_and_save: "Subscribe & Save {{percentage}}%",
1188
+ one_time_purchase: "One-Time Purchase",
1189
+ delivery_frequency: "Delivery Frequency:",
1190
+ select_delivery_schedule: "Select delivery schedule",
1191
+ purchase_bundle: "Purchase Bundle",
1192
+ bundle_unavailable: "Bundle configuration is unavailable. Please contact support.",
1193
+ product_unavailable: "This product is unavailable for purchase.",
1194
+ ratings_and_reviews: "Ratings and reviews",
1195
+ ratings_count: "{{count}} ratings",
1196
+ select_option: "Select {{name}}"
1197
+ },
1198
+ loaders: {
1199
+ de: () => import("./de-CH__cDep.mjs").then((m) => m.default),
1200
+ el: () => import("./el-De9QZiqh.mjs").then((m) => m.default),
1201
+ es: () => import("./es-CZLh7tET.mjs").then((m) => m.default),
1202
+ fr: () => import("./fr-CIfM_0kG.mjs").then((m) => m.default),
1203
+ he: () => import("./he-BTK1iEJE.mjs").then((m) => m.default),
1204
+ hu: () => import("./hu-CrZGIbz9.mjs").then((m) => m.default),
1205
+ id: () => import("./id-B-LeCfHj.mjs").then((m) => m.default),
1206
+ it: () => import("./it-rIkFmAF3.mjs").then((m) => m.default),
1207
+ ja: () => import("./ja--J_bhk3I.mjs").then((m) => m.default),
1208
+ ko: () => import("./ko-B2fghWQ9.mjs").then((m) => m.default),
1209
+ nl: () => import("./nl-KgHmrRKy.mjs").then((m) => m.default),
1210
+ pl: () => import("./pl-BJvDPvs3.mjs").then((m) => m.default),
1211
+ pt: () => import("./pt-CmZpxftX.mjs").then((m) => m.default),
1212
+ ro: () => import("./ro-C_4rHVWp.mjs").then((m) => m.default),
1213
+ ru: () => import("./ru-B0lzoBye.mjs").then((m) => m.default),
1214
+ th: () => import("./th-QhoPGZ6C.mjs").then((m) => m.default),
1215
+ tl: () => import("./tl-Dsfp243U.mjs").then((m) => m.default),
1216
+ tr: () => import("./tr-BiolaqkO.mjs").then((m) => m.default),
1217
+ zh_CN: () => import("./zh_CN-DcGf3QsR.mjs").then((m) => m.default),
1218
+ zh_TW: () => import("./zh_TW-DFw2O0OX.mjs").then((m) => m.default)
1219
+ }
1092
1220
  });
1093
- function ShopScreen({ background, textColor, accentColor, padding, borderRadius, ...divProps }) {
1221
+ function createShopTranslationAdapter(locale, dict) {
1222
+ return createStaticDictAdapter(locale, dict);
1223
+ }
1224
+ //#endregion
1225
+ //#region src/providers/ShopTranslationBridge.tsx
1226
+ function ShopTranslationBridge({ children }) {
1227
+ const { locale } = useActiveLocale();
1228
+ const dict = useDomainDict(shopDomain, locale);
1229
+ return /* @__PURE__ */ jsx(ShopTranslationProvider, {
1230
+ value: useMemo(() => createShopTranslationAdapter(locale, dict), [locale, dict]),
1231
+ children
1232
+ });
1233
+ }
1234
+ //#endregion
1235
+ //#region src/screens/ShopScreen.tsx
1236
+ function ShopScreen(props) {
1237
+ return /* @__PURE__ */ jsx(ShopTranslationBridge, { children: /* @__PURE__ */ jsx(ShopScreenContent, { ...props }) });
1238
+ }
1239
+ function ShopScreenContent({ background, textColor, accentColor, padding, borderRadius, ...divProps }) {
1094
1240
  const { config } = useFluidContext();
1241
+ const { t } = useShopTranslation();
1095
1242
  const { data: store } = useStore();
1096
1243
  const { currentSlug, navigate } = useAppNavigation();
1097
1244
  const countryCode = config.countryIso ?? "US";
@@ -1102,12 +1249,16 @@ function ShopScreen({ background, textColor, accentColor, padding, borderRadius,
1102
1249
  children: /* @__PURE__ */ jsx(BreadcrumbItem, { children: productId ? /* @__PURE__ */ jsx(BreadcrumbLink, {
1103
1250
  onClick: () => navigate("shop"),
1104
1251
  className: "cursor-pointer font-semibold",
1105
- children: "Shop"
1252
+ children: t("breadcrumb")
1106
1253
  }) : /* @__PURE__ */ jsx(BreadcrumbPage, {
1107
1254
  className: "font-semibold",
1108
- children: "Shop"
1255
+ children: t("breadcrumb")
1109
1256
  }) })
1110
- }) }), [productId, navigate]));
1257
+ }) }), [
1258
+ productId,
1259
+ navigate,
1260
+ t
1261
+ ]));
1111
1262
  useScreenHeaderActions(useMemo(() => /* @__PURE__ */ jsx("div", {
1112
1263
  className: "flex items-center gap-4",
1113
1264
  children: /* @__PURE__ */ jsx(CartButton, {})
@@ -1181,15 +1332,16 @@ const shopScreenPropertySchema = {
1181
1332
  */
1182
1333
  function ProductBreadcrumb({ productId }) {
1183
1334
  const { navigate } = useAppNavigation();
1335
+ const { t } = useShopTranslation();
1184
1336
  const { product } = usePortalProductDetail({ productId });
1185
- const productName = product?.name ?? "Product";
1337
+ const productName = product?.name ?? t("product_fallback_name");
1186
1338
  useScreenHeaderBreadcrumbs(useMemo(() => /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsxs(BreadcrumbList, {
1187
1339
  className: "text-lg",
1188
1340
  children: [
1189
1341
  /* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbLink, {
1190
1342
  onClick: () => navigate("shop"),
1191
1343
  className: "cursor-pointer font-semibold",
1192
- children: "Shop"
1344
+ children: t("breadcrumb")
1193
1345
  }) }),
1194
1346
  /* @__PURE__ */ jsx(BreadcrumbSeparator, {}),
1195
1347
  /* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbPage, {
@@ -1197,10 +1349,14 @@ function ProductBreadcrumb({ productId }) {
1197
1349
  children: productName
1198
1350
  }) })
1199
1351
  ]
1200
- }) }), [productName, navigate]));
1352
+ }) }), [
1353
+ productName,
1354
+ navigate,
1355
+ t
1356
+ ]));
1201
1357
  return null;
1202
1358
  }
1203
1359
  //#endregion
1204
- export { ShopScreen_exports as n, shopScreenPropertySchema as r, ShopScreen as t };
1360
+ export { shopScreenPropertySchema as n, ShopScreen as t };
1205
1361
 
1206
- //# sourceMappingURL=ShopScreen-DBInpm5S.mjs.map
1362
+ //# sourceMappingURL=ShopScreen-DJANOOka.mjs.map