@salla.sa/twilight-components 2.14.255 → 2.14.256

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 (303) hide show
  1. package/dist/cjs/{app-globals-CRbtFdLh.js → app-globals-DecFm_m-.js} +3 -3
  2. package/dist/cjs/{app-globals-CRbtFdLh.js.map → app-globals-DecFm_m-.js.map} +1 -1
  3. package/dist/cjs/{index-CiB3mE81.js → index-UNWHm5vs.js} +4 -4
  4. package/dist/cjs/index-UNWHm5vs.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/salla-accordion_4.cjs.entry.js +1 -1
  7. package/dist/cjs/salla-add-product-button_51.cjs.entry.js +1 -1
  8. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  9. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  10. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  11. package/dist/cjs/salla-booking-field_2.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-product-options.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  39. package/dist/cjs/twilight.cjs.js +2 -2
  40. package/dist/components/index.js +2 -2
  41. package/dist/components/index.js.map +1 -1
  42. package/dist/esm/{app-globals-CXaqPW0W.js → app-globals-BWI-Bb8y.js} +3 -3
  43. package/dist/esm/{app-globals-CXaqPW0W.js.map → app-globals-BWI-Bb8y.js.map} +1 -1
  44. package/dist/esm/{index-Cmh2bDlu.js → index-wQf8KFfR.js} +4 -4
  45. package/dist/esm/index-wQf8KFfR.js.map +1 -0
  46. package/dist/esm/loader.js +3 -3
  47. package/dist/esm/salla-accordion_4.entry.js +1 -1
  48. package/dist/esm/salla-add-product-button_51.entry.js +1 -1
  49. package/dist/esm/salla-advertisement.entry.js +1 -1
  50. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  51. package/dist/esm/salla-apps-icons.entry.js +1 -1
  52. package/dist/esm/salla-booking-field_2.entry.js +1 -1
  53. package/dist/esm/salla-cart-item-offers.entry.js +1 -1
  54. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  55. package/dist/esm/salla-contacts.entry.js +1 -1
  56. package/dist/esm/salla-filters-widget.entry.js +1 -1
  57. package/dist/esm/salla-filters.entry.js +1 -1
  58. package/dist/esm/salla-installment.entry.js +1 -1
  59. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  60. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  61. package/dist/esm/salla-metadata.entry.js +1 -1
  62. package/dist/esm/salla-notification-item.entry.js +1 -1
  63. package/dist/esm/salla-notifications.entry.js +1 -1
  64. package/dist/esm/salla-offer.entry.js +1 -1
  65. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  66. package/dist/esm/salla-order-details.entry.js +1 -1
  67. package/dist/esm/salla-order-summary.entry.js +1 -1
  68. package/dist/esm/salla-orders.entry.js +1 -1
  69. package/dist/esm/salla-payments.entry.js +1 -1
  70. package/dist/esm/salla-price-range.entry.js +1 -1
  71. package/dist/esm/salla-product-options.entry.js +1 -1
  72. package/dist/esm/salla-review-card.entry.js +1 -1
  73. package/dist/esm/salla-reviews-page.entry.js +1 -1
  74. package/dist/esm/salla-reviews.entry.js +1 -1
  75. package/dist/esm/salla-social.entry.js +1 -1
  76. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  77. package/dist/esm/salla-tooltip.entry.js +1 -1
  78. package/dist/esm/salla-verify.entry.js +1 -1
  79. package/dist/esm/salla-wallet.entry.js +1 -1
  80. package/dist/esm/twilight.js +3 -3
  81. package/dist/esm-es5/{app-globals-CXaqPW0W.js → app-globals-BWI-Bb8y.js} +2 -2
  82. package/dist/esm-es5/{app-globals-CXaqPW0W.js.map → app-globals-BWI-Bb8y.js.map} +1 -1
  83. package/dist/esm-es5/{index-Cmh2bDlu.js → index-wQf8KFfR.js} +3 -3
  84. package/dist/esm-es5/index-wQf8KFfR.js.map +1 -0
  85. package/dist/esm-es5/loader.js +1 -1
  86. package/dist/esm-es5/salla-accordion_4.entry.js +1 -1
  87. package/dist/esm-es5/salla-add-product-button_51.entry.js +4 -4
  88. package/dist/esm-es5/salla-advertisement.entry.js +1 -1
  89. package/dist/esm-es5/salla-app-install-alert.entry.js +1 -1
  90. package/dist/esm-es5/salla-apps-icons.entry.js +1 -1
  91. package/dist/esm-es5/salla-booking-field_2.entry.js +1 -1
  92. package/dist/esm-es5/salla-cart-item-offers.entry.js +1 -1
  93. package/dist/esm-es5/salla-conditional-offer.entry.js +1 -1
  94. package/dist/esm-es5/salla-contacts.entry.js +1 -1
  95. package/dist/esm-es5/salla-filters-widget.entry.js +1 -1
  96. package/dist/esm-es5/salla-filters.entry.js +1 -1
  97. package/dist/esm-es5/salla-installment.entry.js +1 -1
  98. package/dist/esm-es5/salla-loyalty-prize-item.entry.js +1 -1
  99. package/dist/esm-es5/salla-loyalty-program.entry.js +1 -1
  100. package/dist/esm-es5/salla-metadata.entry.js +2 -2
  101. package/dist/esm-es5/salla-notification-item.entry.js +1 -1
  102. package/dist/esm-es5/salla-notifications.entry.js +1 -1
  103. package/dist/esm-es5/salla-offer.entry.js +1 -1
  104. package/dist/esm-es5/salla-order-details-multiple-bundle-product.entry.js +1 -1
  105. package/dist/esm-es5/salla-order-details.entry.js +1 -1
  106. package/dist/esm-es5/salla-order-summary.entry.js +1 -1
  107. package/dist/esm-es5/salla-orders.entry.js +1 -1
  108. package/dist/esm-es5/salla-payments.entry.js +1 -1
  109. package/dist/esm-es5/salla-price-range.entry.js +1 -1
  110. package/dist/esm-es5/salla-product-options.entry.js +1 -1
  111. package/dist/esm-es5/salla-review-card.entry.js +1 -1
  112. package/dist/esm-es5/salla-reviews-page.entry.js +1 -1
  113. package/dist/esm-es5/salla-reviews.entry.js +1 -1
  114. package/dist/esm-es5/salla-social.entry.js +1 -1
  115. package/dist/esm-es5/salla-tiered-offer.entry.js +1 -1
  116. package/dist/esm-es5/salla-tooltip.entry.js +1 -1
  117. package/dist/esm-es5/salla-verify.entry.js +1 -1
  118. package/dist/esm-es5/salla-wallet.entry.js +1 -1
  119. package/dist/esm-es5/twilight.js +1 -1
  120. package/dist/twilight/{p-6c2ffbdb.entry.js → p-043b451e.entry.js} +2 -2
  121. package/dist/twilight/{p-302eb45d.system.entry.js → p-075582a1.system.entry.js} +2 -2
  122. package/dist/twilight/{p-cdadd220.entry.js → p-094e1bfb.entry.js} +2 -2
  123. package/dist/twilight/{p-ad83b353.system.entry.js → p-0e9ab63f.system.entry.js} +2 -2
  124. package/dist/twilight/{p-470e16b4.entry.js → p-14bc7704.entry.js} +2 -2
  125. package/dist/twilight/{p-fb5d9736.system.entry.js → p-187f0de5.system.entry.js} +2 -2
  126. package/dist/twilight/{p-471d0c2a.entry.js → p-18a1f403.entry.js} +2 -2
  127. package/dist/twilight/{p-6bd9b65d.system.entry.js → p-1a4075f6.system.entry.js} +2 -2
  128. package/dist/twilight/{p-7cdfb2ff.system.entry.js → p-1d2dc3d6.system.entry.js} +2 -2
  129. package/dist/twilight/{p-BVYqexVV.system.js.map → p-1viHRpqo.system.js.map} +1 -1
  130. package/dist/twilight/{p-dade84c6.entry.js → p-24683c1b.entry.js} +2 -2
  131. package/dist/twilight/{p-bef4449d.system.entry.js → p-29137c7f.system.entry.js} +2 -2
  132. package/dist/twilight/{p-7d060cdd.entry.js → p-2d9b7946.entry.js} +2 -2
  133. package/dist/twilight/{p-68cbea08.system.entry.js → p-2df289d8.system.entry.js} +2 -2
  134. package/dist/twilight/{p-6bd4f5dd.entry.js → p-2e4b02b7.entry.js} +2 -2
  135. package/dist/twilight/{p-b1266dbc.entry.js → p-30a71342.entry.js} +2 -2
  136. package/dist/twilight/{p-c9736f8b.entry.js → p-3416d165.entry.js} +2 -2
  137. package/dist/twilight/{p-c93aca68.system.entry.js → p-3ba77caf.system.entry.js} +2 -2
  138. package/dist/twilight/{p-84b61e25.entry.js → p-3dea4ce1.entry.js} +2 -2
  139. package/dist/twilight/{p-13a215f8.system.entry.js → p-44736c1f.system.entry.js} +2 -2
  140. package/dist/twilight/{p-53fdce47.system.entry.js → p-47f2f18e.system.entry.js} +2 -2
  141. package/dist/twilight/{p-bd97e5ea.system.entry.js → p-48df560c.system.entry.js} +2 -2
  142. package/dist/twilight/{p-41a7a590.system.entry.js → p-48f5142e.system.entry.js} +2 -2
  143. package/dist/twilight/{p-7f0e3435.entry.js → p-50f4a9e2.entry.js} +2 -2
  144. package/dist/twilight/{p-c4741c01.system.entry.js → p-52acbaea.system.entry.js} +2 -2
  145. package/dist/twilight/{p-889ec51e.system.entry.js → p-54080ee2.system.entry.js} +2 -2
  146. package/dist/twilight/{p-6868caa4.system.entry.js → p-57fa02ea.system.entry.js} +2 -2
  147. package/dist/twilight/{p-e53e006e.entry.js → p-5adde2a6.entry.js} +2 -2
  148. package/dist/twilight/{p-51915628.entry.js → p-5ed5d8f9.entry.js} +2 -2
  149. package/dist/twilight/{p-231440bc.system.entry.js → p-63435ed9.system.entry.js} +2 -2
  150. package/dist/twilight/{p-8e14e730.entry.js → p-69492d2a.entry.js} +2 -2
  151. package/dist/twilight/{p-468a7324.entry.js → p-6dc24b2b.entry.js} +2 -2
  152. package/dist/twilight/{p-7e3906fc.system.entry.js → p-73f3f2c3.system.entry.js} +2 -2
  153. package/dist/twilight/{p-6ef02abc.system.entry.js → p-78cfef2d.system.entry.js} +2 -2
  154. package/dist/twilight/{p-963ba76e.system.entry.js → p-7bd77519.system.entry.js} +2 -2
  155. package/dist/twilight/{p-d54d7cd7.system.entry.js → p-7c699521.system.entry.js} +2 -2
  156. package/dist/twilight/{p-fc7c940d.system.entry.js → p-8177fa38.system.entry.js} +2 -2
  157. package/dist/twilight/{p-56a2493e.entry.js → p-83c23d48.entry.js} +2 -2
  158. package/dist/twilight/{p-f0e1cc94.entry.js → p-853d41e8.entry.js} +2 -2
  159. package/dist/twilight/{p-02187d79.system.entry.js → p-89bf2f70.system.entry.js} +2 -2
  160. package/dist/twilight/{p-55a9da25.entry.js → p-96daa987.entry.js} +2 -2
  161. package/dist/twilight/{p-47f2e097.entry.js → p-9ba75295.entry.js} +2 -2
  162. package/dist/twilight/{p-DvzE4oQS.system.js.map → p-B2GM_QS5.system.js.map} +1 -1
  163. package/dist/twilight/{p-CbJXYJ5O.system.js → p-B3l0Kfzh.system.js} +3 -3
  164. package/dist/twilight/p-B3l0Kfzh.system.js.map +1 -0
  165. package/dist/twilight/{p-CYB_tFv0.system.js.map → p-B4Pb5WLq.system.js.map} +1 -1
  166. package/dist/twilight/{p-Ceb-eX-0.system.js.map → p-B60IU5Vs.system.js.map} +1 -1
  167. package/dist/twilight/{p-uNkJ2LZM.system.js.map → p-B7Sj5qYJ.system.js.map} +1 -1
  168. package/dist/twilight/{p-C3pcK7CB.js → p-B8IZTKFP.js} +2 -2
  169. package/dist/twilight/{p-C3pcK7CB.js.map → p-B8IZTKFP.js.map} +1 -1
  170. package/dist/twilight/{p-DJvU6sZZ.system.js.map → p-BDPbAe1K.system.js.map} +1 -1
  171. package/dist/twilight/{p-BpfPcg3W.system.js.map → p-BQLYc2vY.system.js.map} +1 -1
  172. package/dist/twilight/{p-aI0YGy91.system.js.map → p-Bf0KbqEp.system.js.map} +1 -1
  173. package/dist/twilight/{p-smRaSeBI.system.js.map → p-Bj9MrCiB.system.js.map} +1 -1
  174. package/dist/twilight/{p-CzmyZ_Nd.system.js → p-Bt6Eygwn.system.js} +2 -2
  175. package/dist/twilight/{p-CzmyZ_Nd.system.js.map → p-Bt6Eygwn.system.js.map} +1 -1
  176. package/dist/twilight/{p-BLd878to.system.js.map → p-BxJh7xdc.system.js.map} +1 -1
  177. package/dist/twilight/{p-Dk6V-4d2.system.js.map → p-C7iKwuQD.system.js.map} +1 -1
  178. package/dist/twilight/{p-CCrcmQ6i.system.js.map → p-C8F-L_m4.system.js.map} +1 -1
  179. package/dist/twilight/{p-BTHt_nZ5.system.js → p-CDwjlI7z.system.js} +2 -2
  180. package/dist/twilight/{p-BTHt_nZ5.system.js.map → p-CDwjlI7z.system.js.map} +1 -1
  181. package/dist/twilight/{p-BPogbRgc.system.js.map → p-CF3S17YT.system.js.map} +1 -1
  182. package/dist/twilight/{p-DsgPAMoP.system.js.map → p-CUf0HPrr.system.js.map} +1 -1
  183. package/dist/twilight/{p-DDgmoM0z.system.js.map → p-C_HvnS58.system.js.map} +1 -1
  184. package/dist/twilight/{p-By_R4wyt.system.js.map → p-Ca2Teikb.system.js.map} +1 -1
  185. package/dist/twilight/{p-CsF4wF5j.system.js.map → p-CgeNmDtS.system.js.map} +1 -1
  186. package/dist/twilight/{p-DoENPAoP.system.js.map → p-CghqBHSf.system.js.map} +1 -1
  187. package/dist/twilight/{p-KFQPthVf.system.js.map → p-CpKX8XYB.system.js.map} +1 -1
  188. package/dist/twilight/{p-D5AOZnju.system.js.map → p-D0J_AaUC.system.js.map} +1 -1
  189. package/dist/twilight/{p-D9CSx3Wz.system.js.map → p-D4G2wIz6.system.js.map} +1 -1
  190. package/dist/twilight/{p-DGWMlRvt.system.js.map → p-D4zrpBeO.system.js.map} +1 -1
  191. package/dist/twilight/{p-Ccypd_SM.system.js.map → p-DKjm4rCf.system.js.map} +1 -1
  192. package/dist/twilight/{p-C_ju2ao2.system.js.map → p-DMAlL0R0.system.js.map} +1 -1
  193. package/dist/twilight/{p-CKwOWJLk.system.js.map → p-DZSy6aSK.system.js.map} +1 -1
  194. package/dist/twilight/{p-BrKg9FB7.system.js.map → p-DjpII3ev.system.js.map} +1 -1
  195. package/dist/twilight/{p-DRcmoz10.system.js.map → p-DwFLdhIc.system.js.map} +1 -1
  196. package/dist/twilight/{p-DBkWclyq.system.js.map → p-Dx_ROnUt.system.js.map} +1 -1
  197. package/dist/twilight/{p-DDduzQA-.system.js.map → p-DyFLUz8M.system.js.map} +1 -1
  198. package/dist/twilight/{p-CXiTCFrN.system.js.map → p-DzXtTDb4.system.js.map} +1 -1
  199. package/dist/twilight/{p-BhewmKn2.system.js.map → p-R6dLd-aW.system.js.map} +1 -1
  200. package/dist/twilight/{p-b6c991e2.entry.js → p-a14111b9.entry.js} +2 -2
  201. package/dist/twilight/{p-02b2de19.system.entry.js → p-a3a9afb0.system.entry.js} +2 -2
  202. package/dist/twilight/{p-cfe9931b.system.entry.js → p-a8460414.system.entry.js} +2 -2
  203. package/dist/twilight/{p-e5ff9041.entry.js → p-a9996489.entry.js} +2 -2
  204. package/dist/twilight/{p-85b17c34.system.entry.js → p-af2294d6.system.entry.js} +2 -2
  205. package/dist/twilight/{p-419eb9a7.entry.js → p-afdaa346.entry.js} +2 -2
  206. package/dist/twilight/{p-2ac46fd5.system.entry.js → p-b3dc741c.system.entry.js} +2 -2
  207. package/dist/twilight/{p-9cf6cc9f.system.entry.js → p-bae72263.system.entry.js} +2 -2
  208. package/dist/twilight/{p-8277f14f.entry.js → p-bbf5e97b.entry.js} +2 -2
  209. package/dist/twilight/{p-459fff65.system.entry.js → p-bcd16c4e.system.entry.js} +2 -2
  210. package/dist/twilight/{p-67c93900.entry.js → p-be905670.entry.js} +2 -2
  211. package/dist/twilight/{p-4f3c5294.entry.js → p-cd5ce889.entry.js} +2 -2
  212. package/dist/twilight/{p-CaIXPRFW.system.js.map → p-d1T8kqjG.system.js.map} +1 -1
  213. package/dist/twilight/{p-9470463b.entry.js → p-d457dc38.entry.js} +2 -2
  214. package/dist/twilight/{p-e574830f.system.entry.js → p-d772798f.system.entry.js} +2 -2
  215. package/dist/twilight/{p-4710f397.entry.js → p-e34e1fb8.entry.js} +2 -2
  216. package/dist/twilight/{p-3099db22.system.entry.js → p-e95b04e6.system.entry.js} +2 -2
  217. package/dist/twilight/{p-44206730.entry.js → p-ea5a7966.entry.js} +2 -2
  218. package/dist/twilight/{p-78bf11f2.system.entry.js → p-ecbb77d9.system.entry.js} +2 -2
  219. package/dist/twilight/{p-93bc2972.system.entry.js → p-ed841a03.system.entry.js} +2 -2
  220. package/dist/twilight/{p-059379d0.entry.js → p-f3ec2b53.entry.js} +2 -2
  221. package/dist/twilight/{p-6fd8031a.entry.js → p-fc5efdeb.entry.js} +2 -2
  222. package/dist/twilight/{p-78715871.system.entry.js → p-fe17bbb4.system.entry.js} +3 -3
  223. package/dist/twilight/{p-72a5b284.entry.js → p-fef4ac95.entry.js} +2 -2
  224. package/dist/twilight/{p-2f228be7.entry.js → p-ff382951.entry.js} +2 -2
  225. package/dist/twilight/{p-4f1f3a1a.entry.js → p-ffbb9af5.entry.js} +2 -2
  226. package/dist/twilight/{p-Cmh2bDlu.js → p-wQf8KFfR.js} +3 -3
  227. package/dist/twilight/p-wQf8KFfR.js.map +1 -0
  228. package/dist/twilight/{p-C8tnyQ_B.system.js.map → p-ySzjfVuw.system.js.map} +1 -1
  229. package/dist/twilight/{p-EEU49bnm.system.js.map → p-ys-31B6G.system.js.map} +1 -1
  230. package/dist/twilight/twilight.esm.js +1 -1
  231. package/dist/twilight/twilight.js +1 -1
  232. package/package.json +5 -5
  233. package/dist/cjs/index-CiB3mE81.js.map +0 -1
  234. package/dist/esm/index-Cmh2bDlu.js.map +0 -1
  235. package/dist/esm-es5/index-Cmh2bDlu.js.map +0 -1
  236. package/dist/twilight/p-CbJXYJ5O.system.js.map +0 -1
  237. package/dist/twilight/p-Cmh2bDlu.js.map +0 -1
  238. /package/dist/twilight/{p-6c2ffbdb.entry.js.map → p-043b451e.entry.js.map} +0 -0
  239. /package/dist/twilight/{p-302eb45d.system.entry.js.map → p-075582a1.system.entry.js.map} +0 -0
  240. /package/dist/twilight/{p-cdadd220.entry.js.map → p-094e1bfb.entry.js.map} +0 -0
  241. /package/dist/twilight/{p-ad83b353.system.entry.js.map → p-0e9ab63f.system.entry.js.map} +0 -0
  242. /package/dist/twilight/{p-470e16b4.entry.js.map → p-14bc7704.entry.js.map} +0 -0
  243. /package/dist/twilight/{p-fb5d9736.system.entry.js.map → p-187f0de5.system.entry.js.map} +0 -0
  244. /package/dist/twilight/{p-471d0c2a.entry.js.map → p-18a1f403.entry.js.map} +0 -0
  245. /package/dist/twilight/{p-6bd9b65d.system.entry.js.map → p-1a4075f6.system.entry.js.map} +0 -0
  246. /package/dist/twilight/{p-7cdfb2ff.system.entry.js.map → p-1d2dc3d6.system.entry.js.map} +0 -0
  247. /package/dist/twilight/{p-dade84c6.entry.js.map → p-24683c1b.entry.js.map} +0 -0
  248. /package/dist/twilight/{p-bef4449d.system.entry.js.map → p-29137c7f.system.entry.js.map} +0 -0
  249. /package/dist/twilight/{p-7d060cdd.entry.js.map → p-2d9b7946.entry.js.map} +0 -0
  250. /package/dist/twilight/{p-68cbea08.system.entry.js.map → p-2df289d8.system.entry.js.map} +0 -0
  251. /package/dist/twilight/{p-6bd4f5dd.entry.js.map → p-2e4b02b7.entry.js.map} +0 -0
  252. /package/dist/twilight/{p-b1266dbc.entry.js.map → p-30a71342.entry.js.map} +0 -0
  253. /package/dist/twilight/{p-c9736f8b.entry.js.map → p-3416d165.entry.js.map} +0 -0
  254. /package/dist/twilight/{p-c93aca68.system.entry.js.map → p-3ba77caf.system.entry.js.map} +0 -0
  255. /package/dist/twilight/{p-84b61e25.entry.js.map → p-3dea4ce1.entry.js.map} +0 -0
  256. /package/dist/twilight/{p-13a215f8.system.entry.js.map → p-44736c1f.system.entry.js.map} +0 -0
  257. /package/dist/twilight/{p-53fdce47.system.entry.js.map → p-47f2f18e.system.entry.js.map} +0 -0
  258. /package/dist/twilight/{p-bd97e5ea.system.entry.js.map → p-48df560c.system.entry.js.map} +0 -0
  259. /package/dist/twilight/{p-41a7a590.system.entry.js.map → p-48f5142e.system.entry.js.map} +0 -0
  260. /package/dist/twilight/{p-7f0e3435.entry.js.map → p-50f4a9e2.entry.js.map} +0 -0
  261. /package/dist/twilight/{p-c4741c01.system.entry.js.map → p-52acbaea.system.entry.js.map} +0 -0
  262. /package/dist/twilight/{p-889ec51e.system.entry.js.map → p-54080ee2.system.entry.js.map} +0 -0
  263. /package/dist/twilight/{p-6868caa4.system.entry.js.map → p-57fa02ea.system.entry.js.map} +0 -0
  264. /package/dist/twilight/{p-e53e006e.entry.js.map → p-5adde2a6.entry.js.map} +0 -0
  265. /package/dist/twilight/{p-51915628.entry.js.map → p-5ed5d8f9.entry.js.map} +0 -0
  266. /package/dist/twilight/{p-231440bc.system.entry.js.map → p-63435ed9.system.entry.js.map} +0 -0
  267. /package/dist/twilight/{p-8e14e730.entry.js.map → p-69492d2a.entry.js.map} +0 -0
  268. /package/dist/twilight/{p-468a7324.entry.js.map → p-6dc24b2b.entry.js.map} +0 -0
  269. /package/dist/twilight/{p-7e3906fc.system.entry.js.map → p-73f3f2c3.system.entry.js.map} +0 -0
  270. /package/dist/twilight/{p-6ef02abc.system.entry.js.map → p-78cfef2d.system.entry.js.map} +0 -0
  271. /package/dist/twilight/{p-963ba76e.system.entry.js.map → p-7bd77519.system.entry.js.map} +0 -0
  272. /package/dist/twilight/{p-d54d7cd7.system.entry.js.map → p-7c699521.system.entry.js.map} +0 -0
  273. /package/dist/twilight/{p-fc7c940d.system.entry.js.map → p-8177fa38.system.entry.js.map} +0 -0
  274. /package/dist/twilight/{p-56a2493e.entry.js.map → p-83c23d48.entry.js.map} +0 -0
  275. /package/dist/twilight/{p-f0e1cc94.entry.js.map → p-853d41e8.entry.js.map} +0 -0
  276. /package/dist/twilight/{p-02187d79.system.entry.js.map → p-89bf2f70.system.entry.js.map} +0 -0
  277. /package/dist/twilight/{p-55a9da25.entry.js.map → p-96daa987.entry.js.map} +0 -0
  278. /package/dist/twilight/{p-47f2e097.entry.js.map → p-9ba75295.entry.js.map} +0 -0
  279. /package/dist/twilight/{p-b6c991e2.entry.js.map → p-a14111b9.entry.js.map} +0 -0
  280. /package/dist/twilight/{p-02b2de19.system.entry.js.map → p-a3a9afb0.system.entry.js.map} +0 -0
  281. /package/dist/twilight/{p-cfe9931b.system.entry.js.map → p-a8460414.system.entry.js.map} +0 -0
  282. /package/dist/twilight/{p-e5ff9041.entry.js.map → p-a9996489.entry.js.map} +0 -0
  283. /package/dist/twilight/{p-85b17c34.system.entry.js.map → p-af2294d6.system.entry.js.map} +0 -0
  284. /package/dist/twilight/{p-419eb9a7.entry.js.map → p-afdaa346.entry.js.map} +0 -0
  285. /package/dist/twilight/{p-2ac46fd5.system.entry.js.map → p-b3dc741c.system.entry.js.map} +0 -0
  286. /package/dist/twilight/{p-9cf6cc9f.system.entry.js.map → p-bae72263.system.entry.js.map} +0 -0
  287. /package/dist/twilight/{p-8277f14f.entry.js.map → p-bbf5e97b.entry.js.map} +0 -0
  288. /package/dist/twilight/{p-459fff65.system.entry.js.map → p-bcd16c4e.system.entry.js.map} +0 -0
  289. /package/dist/twilight/{p-67c93900.entry.js.map → p-be905670.entry.js.map} +0 -0
  290. /package/dist/twilight/{p-4f3c5294.entry.js.map → p-cd5ce889.entry.js.map} +0 -0
  291. /package/dist/twilight/{p-9470463b.entry.js.map → p-d457dc38.entry.js.map} +0 -0
  292. /package/dist/twilight/{p-e574830f.system.entry.js.map → p-d772798f.system.entry.js.map} +0 -0
  293. /package/dist/twilight/{p-4710f397.entry.js.map → p-e34e1fb8.entry.js.map} +0 -0
  294. /package/dist/twilight/{p-3099db22.system.entry.js.map → p-e95b04e6.system.entry.js.map} +0 -0
  295. /package/dist/twilight/{p-44206730.entry.js.map → p-ea5a7966.entry.js.map} +0 -0
  296. /package/dist/twilight/{p-78bf11f2.system.entry.js.map → p-ecbb77d9.system.entry.js.map} +0 -0
  297. /package/dist/twilight/{p-93bc2972.system.entry.js.map → p-ed841a03.system.entry.js.map} +0 -0
  298. /package/dist/twilight/{p-059379d0.entry.js.map → p-f3ec2b53.entry.js.map} +0 -0
  299. /package/dist/twilight/{p-6fd8031a.entry.js.map → p-fc5efdeb.entry.js.map} +0 -0
  300. /package/dist/twilight/{p-78715871.system.entry.js.map → p-fe17bbb4.system.entry.js.map} +0 -0
  301. /package/dist/twilight/{p-72a5b284.entry.js.map → p-fef4ac95.entry.js.map} +0 -0
  302. /package/dist/twilight/{p-2f228be7.entry.js.map → p-ff382951.entry.js.map} +0 -0
  303. /package/dist/twilight/{p-4f1f3a1a.entry.js.map → p-ffbb9af5.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{a as t,d as i,e,f as s,r,h as a,g as n}from"./p-Cmh2bDlu.js";import{S as o}from"./p-DiKTtDW5.js";import{H as l}from"./p-CGaH6V1S.js";import"./p-CgtvEd63.js";var c;var u;function f(){if(u)return c;u=1;var i=t();var e=function(){return i.Date.now()};c=e;return c}var h;var d;function v(){if(d)return h;d=1;var t=/\s/;function i(i){var e=i.length;while(e--&&t.test(i.charAt(e))){}return e}h=i;return h}var p;var m;function g(){if(m)return p;m=1;var t=v();var i=/^\s+/;function e(e){return e?e.slice(0,t(e)+1).replace(i,""):e}p=e;return p}var w;var y;function b(){if(y)return w;y=1;var t=g(),s=i(),r=e();var a=0/0;var n=/^[-+]0x[0-9a-f]+$/i;var o=/^0b[01]+$/i;var l=/^0o[0-7]+$/i;var c=parseInt;function u(i){if(typeof i=="number"){return i}if(r(i)){return a}if(s(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=s(e)?e+"":e}if(typeof i!="string"){return i===0?i:+i}i=t(i);var u=o.test(i);return u||l.test(i)?c(i.slice(2),u?2:8):n.test(i)?a:+i}w=u;return w}var _;var k;function T(){if(k)return _;k=1;var t=i(),e=f(),s=b();var r="Expected a function";var a=Math.max,n=Math.min;function o(i,o,l){var c,u,f,h,d,v,p=0,m=false,g=false,w=true;if(typeof i!="function"){throw new TypeError(r)}o=s(o)||0;if(t(l)){m=!!l.leading;g="maxWait"in l;f=g?a(s(l.maxWait)||0,o):f;w="trailing"in l?!!l.trailing:w}function y(t){var e=c,s=u;c=u=undefined;p=t;h=i.apply(s,e);return h}function b(t){p=t;d=setTimeout(T,o);return m?y(t):h}function _(t){var i=t-v,e=t-p,s=o-i;return g?n(s,f-e):s}function k(t){var i=t-v,e=t-p;return v===undefined||i>=o||i<0||g&&e>=f}function T(){var t=e();if(k(t)){return C(t)}d=setTimeout(T,_(t))}function C(t){d=undefined;if(w&&c){return y(t)}c=u=undefined;return h}function E(){if(d!==undefined){clearTimeout(d)}p=0;c=v=u=d=undefined}function S(){return d===undefined?h:C(e())}function M(){var t=e(),i=k(t);c=arguments;u=this;v=t;if(i){if(d===undefined){return b(v)}if(g){clearTimeout(d);d=setTimeout(T,o);return y(v)}}if(d===undefined){d=setTimeout(T,o)}return h}M.cancel=E;M.flush=S;return M}_=o;return _}var C;var E;function S(){if(E)return C;E=1;var t=T(),e=i();var s="Expected a function";function r(i,r,a){var n=true,o=true;if(typeof i!="function"){throw new TypeError(s)}if(e(a)){n="leading"in a?!!a.leading:n;o="trailing"in a?!!a.trailing:o}return t(i,r,{leading:n,maxWait:r,trailing:o})}C=r;return C}var M=S();var x=s(M);class A{constructor(t){this.grid=t;this.create=()=>{this.mutationObserver.observe(this.grid,{childList:true});for(const t of Array.from(this.grid.children)){this.resizeObserver.observe(t)}};this.onContainerMutation=t=>{const i=t.flatMap((t=>Array.from(t.removedNodes)));const e=t.flatMap((t=>Array.from(t.addedNodes)));for(const t of i){if(t instanceof Element){this.resizeObserver.unobserve(t)}}for(const t of e){if(t instanceof Element){this.resizeObserver.observe(t)}}if(i.length>0&&e.length===0){this.update()}};this.onChildrenResize=t=>{const i=t.filter((t=>t.target.parentElement!==null));if(i.length>0){this.update()}};this.update=x((()=>{const t=window.getComputedStyle(this.grid);if(t.getPropertyValue("display").includes("grid")===false){this.clean();return}const i=L(this.grid);if(i.length<=1){this.clean();return}const e=Number.parseFloat(t.getPropertyValue("row-gap").trim())||0;const s=Array.from(this.grid.children);for(let t=0;t<i.length;t++){const i=s[t];i===null||i===void 0?void 0:i.style.removeProperty("margin-top")}for(let t=0;t<s.length;t++){const r=s[t-i.length];const a=s[t];if(r!==undefined&&a!==undefined){const t=r.getBoundingClientRect().bottom;a.style.removeProperty("margin-top");const i=a.getBoundingClientRect().top;if(i-e!==t){const s=Math.round((t-(i-e)+Number.EPSILON)*100)/100;a.style.setProperty("margin-top",`${s}px`)}}}}),32);this.destroy=()=>{this.resizeObserver.disconnect();this.mutationObserver.disconnect();this.clean()};this.clean=()=>{for(const t of Array.from(this.grid.children)){t.style.removeProperty("margin-top")}};this.mutationObserver=new MutationObserver(this.onContainerMutation);this.resizeObserver=new ResizeObserver(this.onChildrenResize);if(CSS.supports("grid-template-rows","masonry")===false){this.create()}}[Symbol.dispose](){this.destroy()}}function L(t){const i=window.getComputedStyle(t);const e=i.getPropertyValue("grid-template-columns");return e.trim().split(/\s+(?=(?:[^()]*\([^()]*\))*[^()]*$)/)}const R=":host{display:block}";const j=class{constructor(t){r(this,t);this.reviews=[];this.isLoading=false;this.pagination=null;this.sort="latest"}getUrlParams(){const t=new URLSearchParams(window.location.search);return{sort:t.get("sort")||null,page:Number.parseInt(t.get("page"))||1}}updateUrlParams(t){const i=new URL(window.location.href);for(const[e,s]of Object.entries(t)){if(s){i.searchParams.set(e,s.toString())}else{i.searchParams.delete(e)}}window.history.replaceState({},"",i.toString())}fetchReviews(t,i){const e=this.getUrlParams();return salla.api.request("reviews",{params:{type:"products",format:"lite",per_page:8,page:i||e.page||1,sort:t||e.sort||null}})}async initializeMasonry(){const t=this.el.querySelector(".s-reviews-page-grid");if(!t)return;try{new A(t);salla.logger.info("Masonry initialized successfully")}catch(t){salla.logger.error("Masonry initialization failed:",t)}}animateReviewCards(){const t=this.wrapper.querySelectorAll("salla-review-card:not(.animated)");l.animateItems(t)}initiateInfiniteScroll(){var t,i,e;if(!this.wrapper){salla.logger.error("Wrapper is undefined. Cannot initiate infinite scroll.");return}this.infiniteScroll=salla.infiniteScroll.initiate(this.wrapper,this.wrapper,{path:()=>{var t,i;return((i=(t=this.pagination)===null||t===void 0?void 0:t.links)===null||i===void 0?void 0:i.next)||null},history:false,scrollThreshold:false},true);(t=this.infiniteScroll)===null||t===void 0?void 0:t.on("request",(()=>{this.isLoading=true}));(i=this.infiniteScroll)===null||i===void 0?void 0:i.on("load",(t=>{this.pagination=t.pagination;this.reviews=[...this.reviews,...t.data];this.isLoading=false;this.updateUrlParams({page:t.pagination.current_page})}));(e=this.infiniteScroll)===null||e===void 0?void 0:e.on("error",(t=>{salla.logger.error("Error loading more reviews:",t);this.isLoading=false}))}componentDidRender(){setTimeout((()=>{requestAnimationFrame(this.animateReviewCards.bind(this))}),176)}async componentWillLoad(){var t;try{await salla.onReady();this.langTitlesReviews=salla.lang.get("common.titles.reviews");this.langSorting=salla.lang.get("pages.categories.sorting");this.placeholderText=salla.lang.choice("pages.rating.reviews",0);this.langLoadMore=salla.lang.get("common.elements.load_more");this.langSortByTopRating=salla.lang.get("pages.testimonials.sort_by_rating_desc");this.langSortByMostRecent=salla.lang.get("pages.testimonials.sort_by_date_desc");this.langSortByLeastRated=salla.lang.get("pages.testimonials.sort_by_rating_asc");this.langSortByLeastRecent=salla.lang.get("pages.testimonials.sort_by_date_asc");const i=this.getUrlParams();const e=await this.fetchReviews(i.sort);this.sort=i.sort;this.reviews=e.data;this.pagination=e.pagination;this.langRatingReviews=salla.lang.choice("pages.rating.reviews",(t=this.pagination)===null||t===void 0?void 0:t.total)}catch(t){salla.logger.error("Error loading reviews:",t)}}async handleSorting(t){const i=t.target.value;this.sort=i;this.updateUrlParams({sort:i,page:1});const e=await this.fetchReviews(i,1);this.reviews=e.data;this.pagination=e.pagination}async componentDidLoad(){await this.initializeMasonry();this.initiateInfiniteScroll();this.sort=this.getUrlParams().sort||"latest";this.updateUrlParams({sort:this.sort,page:1})}disconnectedCallback(){if(this.infiniteScroll){this.infiniteScroll.destroy()}}renderSortingOptions(){const t=[{value:"latest",label:this.langSortByMostRecent},{value:"oldest",label:this.langSortByLeastRecent},{value:"top_rating",label:this.langSortByTopRating},{value:"bottom_rating",label:this.langSortByLeastRated}];return t.map((t=>a("option",{key:t.value,value:t.value,selected:t.value===this.sort},t.label)))}render(){var t,i;return a("host",{key:"f3b06307322a56ad320374a50e13161be4e7cc8a"},a("div",{key:"3dcabdae4ee87de5c62873f327657991a56bc0e1",class:"s-reviews-page-header-wrapper"},a("h2",{key:"61bca34f24c52440fd8f736f9a6ab2b37be65c34",class:"s-reviews-page-title"},this.langTitlesReviews,a("span",{key:"c29228eaa51e9c202c6031e5f69b95905aa5485a",class:"s-reviews-page-count"},"(",this.langRatingReviews,")")),a("div",{key:"81f964be39231e21cd7c994e7e241e755af54c86",class:"s-reviews-page-filter-wrapper"},a("label",{key:"d408952ef5ffba3bedd5e01b5c6edec1aeb34f28",class:"s-reviews-page-filter-label",htmlFor:"testimonials-filter"},this.langSorting),a("select",{key:"5138fdf478aed6fea544dd1adf4d32f715f89532",onChange:t=>this.handleSorting(t),disabled:!this.reviews.length,class:"s-reviews-page-filter"},this.renderSortingOptions()))),this.reviews.length?a("main",{class:"s-reviews-page-grid",ref:t=>{this.wrapper=t}},this.reviews.map((t=>a("salla-review-card",{key:t.id,review:t})))):a("div",{class:"s-products-list-placeholder"},a("span",{innerHTML:o}),a("p",null,this.placeholderText)),((i=(t=this.pagination)===null||t===void 0?void 0:t.links)===null||i===void 0?void 0:i.next)&&this.reviews.length?a("div",{class:"s-reviews-page-load-more-container"},a("salla-button",{class:"s-reviews-page-load-more-btn",loading:this.isLoading,onClick:()=>{var t;return(t=this.infiniteScroll)===null||t===void 0?void 0:t.loadNextPage()},onKeyUp:()=>{var t;return(t=this.infiniteScroll)===null||t===void 0?void 0:t.loadNextPage()}},this.langLoadMore)):null)}get el(){return n(this)}};j.style=R;export{j as salla_reviews_page};
5
- //# sourceMappingURL=p-2f228be7.entry.js.map
4
+ import{a as t,d as i,e,f as s,r,h as a,g as n}from"./p-wQf8KFfR.js";import{S as o}from"./p-DiKTtDW5.js";import{H as l}from"./p-CGaH6V1S.js";import"./p-CgtvEd63.js";var c;var f;function u(){if(f)return c;f=1;var i=t();var e=function(){return i.Date.now()};c=e;return c}var h;var d;function v(){if(d)return h;d=1;var t=/\s/;function i(i){var e=i.length;while(e--&&t.test(i.charAt(e))){}return e}h=i;return h}var p;var m;function g(){if(m)return p;m=1;var t=v();var i=/^\s+/;function e(e){return e?e.slice(0,t(e)+1).replace(i,""):e}p=e;return p}var w;var y;function b(){if(y)return w;y=1;var t=g(),s=i(),r=e();var a=0/0;var n=/^[-+]0x[0-9a-f]+$/i;var o=/^0b[01]+$/i;var l=/^0o[0-7]+$/i;var c=parseInt;function f(i){if(typeof i=="number"){return i}if(r(i)){return a}if(s(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=s(e)?e+"":e}if(typeof i!="string"){return i===0?i:+i}i=t(i);var f=o.test(i);return f||l.test(i)?c(i.slice(2),f?2:8):n.test(i)?a:+i}w=f;return w}var _;var k;function T(){if(k)return _;k=1;var t=i(),e=u(),s=b();var r="Expected a function";var a=Math.max,n=Math.min;function o(i,o,l){var c,f,u,h,d,v,p=0,m=false,g=false,w=true;if(typeof i!="function"){throw new TypeError(r)}o=s(o)||0;if(t(l)){m=!!l.leading;g="maxWait"in l;u=g?a(s(l.maxWait)||0,o):u;w="trailing"in l?!!l.trailing:w}function y(t){var e=c,s=f;c=f=undefined;p=t;h=i.apply(s,e);return h}function b(t){p=t;d=setTimeout(T,o);return m?y(t):h}function _(t){var i=t-v,e=t-p,s=o-i;return g?n(s,u-e):s}function k(t){var i=t-v,e=t-p;return v===undefined||i>=o||i<0||g&&e>=u}function T(){var t=e();if(k(t)){return E(t)}d=setTimeout(T,_(t))}function E(t){d=undefined;if(w&&c){return y(t)}c=f=undefined;return h}function S(){if(d!==undefined){clearTimeout(d)}p=0;c=v=f=d=undefined}function C(){return d===undefined?h:E(e())}function M(){var t=e(),i=k(t);c=arguments;f=this;v=t;if(i){if(d===undefined){return b(v)}if(g){clearTimeout(d);d=setTimeout(T,o);return y(v)}}if(d===undefined){d=setTimeout(T,o)}return h}M.cancel=S;M.flush=C;return M}_=o;return _}var E;var S;function C(){if(S)return E;S=1;var t=T(),e=i();var s="Expected a function";function r(i,r,a){var n=true,o=true;if(typeof i!="function"){throw new TypeError(s)}if(e(a)){n="leading"in a?!!a.leading:n;o="trailing"in a?!!a.trailing:o}return t(i,r,{leading:n,maxWait:r,trailing:o})}E=r;return E}var M=C();var x=s(M);class R{constructor(t){this.grid=t;this.create=()=>{this.mutationObserver.observe(this.grid,{childList:true});for(const t of Array.from(this.grid.children)){this.resizeObserver.observe(t)}};this.onContainerMutation=t=>{const i=t.flatMap((t=>Array.from(t.removedNodes)));const e=t.flatMap((t=>Array.from(t.addedNodes)));for(const t of i){if(t instanceof Element){this.resizeObserver.unobserve(t)}}for(const t of e){if(t instanceof Element){this.resizeObserver.observe(t)}}if(i.length>0&&e.length===0){this.update()}};this.onChildrenResize=t=>{const i=t.filter((t=>t.target.parentElement!==null));if(i.length>0){this.update()}};this.update=x((()=>{const t=window.getComputedStyle(this.grid);if(t.getPropertyValue("display").includes("grid")===false){this.clean();return}const i=A(this.grid);if(i.length<=1){this.clean();return}const e=Number.parseFloat(t.getPropertyValue("row-gap").trim())||0;const s=Array.from(this.grid.children);for(let t=0;t<i.length;t++){const i=s[t];i===null||i===void 0?void 0:i.style.removeProperty("margin-top")}for(let t=0;t<s.length;t++){const r=s[t-i.length];const a=s[t];if(r!==undefined&&a!==undefined){const t=r.getBoundingClientRect().bottom;a.style.removeProperty("margin-top");const i=a.getBoundingClientRect().top;if(i-e!==t){const s=Math.round((t-(i-e)+Number.EPSILON)*100)/100;a.style.setProperty("margin-top",`${s}px`)}}}}),32);this.destroy=()=>{this.resizeObserver.disconnect();this.mutationObserver.disconnect();this.clean()};this.clean=()=>{for(const t of Array.from(this.grid.children)){t.style.removeProperty("margin-top")}};this.mutationObserver=new MutationObserver(this.onContainerMutation);this.resizeObserver=new ResizeObserver(this.onChildrenResize);if(CSS.supports("grid-template-rows","masonry")===false){this.create()}}[Symbol.dispose](){this.destroy()}}function A(t){const i=window.getComputedStyle(t);const e=i.getPropertyValue("grid-template-columns");return e.trim().split(/\s+(?=(?:[^()]*\([^()]*\))*[^()]*$)/)}const L=":host{display:block}";const j=class{constructor(t){r(this,t);this.reviews=[];this.isLoading=false;this.pagination=null;this.sort="latest"}getUrlParams(){const t=new URLSearchParams(window.location.search);return{sort:t.get("sort")||null,page:Number.parseInt(t.get("page"))||1}}updateUrlParams(t){const i=new URL(window.location.href);for(const[e,s]of Object.entries(t)){if(s){i.searchParams.set(e,s.toString())}else{i.searchParams.delete(e)}}window.history.replaceState({},"",i.toString())}fetchReviews(t,i){const e=this.getUrlParams();return salla.api.request("reviews",{params:{type:"products",format:"lite",per_page:8,page:i||e.page||1,sort:t||e.sort||null}})}async initializeMasonry(){const t=this.el.querySelector(".s-reviews-page-grid");if(!t)return;try{new R(t);salla.logger.info("Masonry initialized successfully")}catch(t){salla.logger.error("Masonry initialization failed:",t)}}animateReviewCards(){const t=this.wrapper.querySelectorAll("salla-review-card:not(.animated)");l.animateItems(t)}initiateInfiniteScroll(){var t,i,e;if(!this.wrapper){salla.logger.error("Wrapper is undefined. Cannot initiate infinite scroll.");return}this.infiniteScroll=salla.infiniteScroll.initiate(this.wrapper,this.wrapper,{path:()=>{var t,i;return((i=(t=this.pagination)===null||t===void 0?void 0:t.links)===null||i===void 0?void 0:i.next)||null},history:false,scrollThreshold:false},true);(t=this.infiniteScroll)===null||t===void 0?void 0:t.on("request",(()=>{this.isLoading=true}));(i=this.infiniteScroll)===null||i===void 0?void 0:i.on("load",(t=>{this.pagination=t.pagination;this.reviews=[...this.reviews,...t.data];this.isLoading=false;this.updateUrlParams({page:t.pagination.current_page})}));(e=this.infiniteScroll)===null||e===void 0?void 0:e.on("error",(t=>{salla.logger.error("Error loading more reviews:",t);this.isLoading=false}))}componentDidRender(){setTimeout((()=>{requestAnimationFrame(this.animateReviewCards.bind(this))}),176)}async componentWillLoad(){var t;try{await salla.onReady();this.langTitlesReviews=salla.lang.get("common.titles.reviews");this.langSorting=salla.lang.get("pages.categories.sorting");this.placeholderText=salla.lang.choice("pages.rating.reviews",0);this.langLoadMore=salla.lang.get("common.elements.load_more");this.langSortByTopRating=salla.lang.get("pages.testimonials.sort_by_rating_desc");this.langSortByMostRecent=salla.lang.get("pages.testimonials.sort_by_date_desc");this.langSortByLeastRated=salla.lang.get("pages.testimonials.sort_by_rating_asc");this.langSortByLeastRecent=salla.lang.get("pages.testimonials.sort_by_date_asc");const i=this.getUrlParams();const e=await this.fetchReviews(i.sort);this.sort=i.sort;this.reviews=e.data;this.pagination=e.pagination;this.langRatingReviews=salla.lang.choice("pages.rating.reviews",(t=this.pagination)===null||t===void 0?void 0:t.total)}catch(t){salla.logger.error("Error loading reviews:",t)}}async handleSorting(t){const i=t.target.value;this.sort=i;this.updateUrlParams({sort:i,page:1});const e=await this.fetchReviews(i,1);this.reviews=e.data;this.pagination=e.pagination}async componentDidLoad(){await this.initializeMasonry();this.initiateInfiniteScroll();this.sort=this.getUrlParams().sort||"latest";this.updateUrlParams({sort:this.sort,page:1})}disconnectedCallback(){if(this.infiniteScroll){this.infiniteScroll.destroy()}}renderSortingOptions(){const t=[{value:"latest",label:this.langSortByMostRecent},{value:"oldest",label:this.langSortByLeastRecent},{value:"top_rating",label:this.langSortByTopRating},{value:"bottom_rating",label:this.langSortByLeastRated}];return t.map((t=>a("option",{key:t.value,value:t.value,selected:t.value===this.sort},t.label)))}render(){var t,i;return a("host",{key:"f3b06307322a56ad320374a50e13161be4e7cc8a"},a("div",{key:"3dcabdae4ee87de5c62873f327657991a56bc0e1",class:"s-reviews-page-header-wrapper"},a("h2",{key:"61bca34f24c52440fd8f736f9a6ab2b37be65c34",class:"s-reviews-page-title"},this.langTitlesReviews,a("span",{key:"c29228eaa51e9c202c6031e5f69b95905aa5485a",class:"s-reviews-page-count"},"(",this.langRatingReviews,")")),a("div",{key:"81f964be39231e21cd7c994e7e241e755af54c86",class:"s-reviews-page-filter-wrapper"},a("label",{key:"d408952ef5ffba3bedd5e01b5c6edec1aeb34f28",class:"s-reviews-page-filter-label",htmlFor:"testimonials-filter"},this.langSorting),a("select",{key:"5138fdf478aed6fea544dd1adf4d32f715f89532",onChange:t=>this.handleSorting(t),disabled:!this.reviews.length,class:"s-reviews-page-filter"},this.renderSortingOptions()))),this.reviews.length?a("main",{class:"s-reviews-page-grid",ref:t=>{this.wrapper=t}},this.reviews.map((t=>a("salla-review-card",{key:t.id,review:t})))):a("div",{class:"s-products-list-placeholder"},a("span",{innerHTML:o}),a("p",null,this.placeholderText)),((i=(t=this.pagination)===null||t===void 0?void 0:t.links)===null||i===void 0?void 0:i.next)&&this.reviews.length?a("div",{class:"s-reviews-page-load-more-container"},a("salla-button",{class:"s-reviews-page-load-more-btn",loading:this.isLoading,onClick:()=>{var t;return(t=this.infiniteScroll)===null||t===void 0?void 0:t.loadNextPage()},onKeyUp:()=>{var t;return(t=this.infiniteScroll)===null||t===void 0?void 0:t.loadNextPage()}},this.langLoadMore)):null)}get el(){return n(this)}};j.style=L;export{j as salla_reviews_page};
5
+ //# sourceMappingURL=p-ff382951.entry.js.map
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as s,h as t,F as e,H as a}from"./p-Cmh2bDlu.js";const r="";const l=class{constructor(t){s(this,t)}parseOrderDetailsData(s){this.parsedOrderDetailsData=s;if(typeof this.orderDetails==="string"){this.parsedOrderDetailsData=JSON.parse(s)}else{this.parsedOrderDetailsData=s}}componentWillLoad(){this.parseOrderDetailsData(this.orderDetails);console.log("Parent componentWillLoad - parsedOrderDetailsData:",this.parsedOrderDetailsData)}renderOrderDetailsContent(){if(!this.parsedOrderDetailsData){console.warn("No parsedOrderDetailsData available");return null}return[this.parsedOrderDetailsData.options&&this.parsedOrderDetailsData.options.length>0&&t("salla-order-details-options",{options:this.parsedOrderDetailsData.options}),this.parsedOrderDetailsData.sub_products&&this.parsedOrderDetailsData.sub_products.length>0&&t(e,null,t("h2",{class:"s-order-details-bundle-title"},salla.lang.get("pages.orders.sub_products")),t("div",{class:"s-order-details-bundle-content"},this.parsedOrderDetailsData.sub_products.map((s=>t("salla-order-details-multiple-bundle-product",{key:s===null||s===void 0?void 0:s.id,productDetails:s})))))]}render(){return t(a,{key:"d76fce6a442aca11f3544a9f101ea4245a9317db",class:"s-order-details-wrapper"},this.renderOrderDetailsContent())}static get watchers(){return{orderDetails:["parseOrderDetailsData"]}}};l.style=r;export{l as salla_order_details};
5
- //# sourceMappingURL=p-4f1f3a1a.entry.js.map
4
+ import{r as s,h as t,F as e,H as a}from"./p-wQf8KFfR.js";const r="";const l=class{constructor(t){s(this,t)}parseOrderDetailsData(s){this.parsedOrderDetailsData=s;if(typeof this.orderDetails==="string"){this.parsedOrderDetailsData=JSON.parse(s)}else{this.parsedOrderDetailsData=s}}componentWillLoad(){this.parseOrderDetailsData(this.orderDetails);console.log("Parent componentWillLoad - parsedOrderDetailsData:",this.parsedOrderDetailsData)}renderOrderDetailsContent(){if(!this.parsedOrderDetailsData){console.warn("No parsedOrderDetailsData available");return null}return[this.parsedOrderDetailsData.options&&this.parsedOrderDetailsData.options.length>0&&t("salla-order-details-options",{options:this.parsedOrderDetailsData.options}),this.parsedOrderDetailsData.sub_products&&this.parsedOrderDetailsData.sub_products.length>0&&t(e,null,t("h2",{class:"s-order-details-bundle-title"},salla.lang.get("pages.orders.sub_products")),t("div",{class:"s-order-details-bundle-content"},this.parsedOrderDetailsData.sub_products.map((s=>t("salla-order-details-multiple-bundle-product",{key:s===null||s===void 0?void 0:s.id,productDetails:s})))))]}render(){return t(a,{key:"d76fce6a442aca11f3544a9f101ea4245a9317db",class:"s-order-details-wrapper"},this.renderOrderDetailsContent())}static get watchers(){return{orderDetails:["parseOrderDetailsData"]}}};l.style=r;export{l as salla_order_details};
5
+ //# sourceMappingURL=p-ffbb9af5.entry.js.map